Skip to content

Pisyukaev/prettier-config

 
 

Repository files navigation

@pisyukaev/prettier-config

Here is my personal Prettier config.

Install

npm install @pisyukaev/prettier-config -D
yarn add @pisyukaev/prettier-config -D
pnpm add @pisyukaev/prettier-config -D

Usage

// .prettierrc.cjs
module.exports = require('@pisyukaev/prettier-config')

Copy the ignore file to your project folder

If you want to extend the ignore file, run the following command in the root of your project folder:

# unix
cp node_modules/@pisyukaev/prettier-config/.prettierignore .prettierignore

# windows
copy node_modules/@pisyukaev/prettier-config/.prettierignore .prettierignore

It will copy the .prettierignore from @pisyukaev/prettier-config to your project root folder.

Scripts

Some commonly used scripts in package.json.

{
  "scripts": {
    "format": "prettier --write '**/*.{js,ts,tsx,json}'",
  }
}

Related

About

✒ Here is my personal Prettier config.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%