My Prettier style guide
-
Install the config by running:
npm install @redguy12/prettier-config prettier --save-dev --save-exact
-
Add the following to your
package.json
:"prettier": "@redguy12/prettier-config", "scripts": { "format": "prettier --write \"**\" \"!./dist\" --ignore-unknown --cache" }
-
To format your code, simply run
node --run format
Congrats! You've successfully integrated ESLint into your project with @redguy12/prettier-config
!