peopledoc / eslint-config-peopledoc

ESLint config for PeopleDoc frontend projects
MIT License
1 stars 1 forks source link

Prettier #29

Closed edouard-lopez closed 6 years ago

edouard-lopez commented 6 years ago

We use prettier-eslint in order to format it with prettier (why?) then fix issue with eslint --fix:

./node_modules/.bin/prettier-eslint --list-different --single-quote {app,mirage,tests}/{**/,}*.js

Once you have review change you can write them with

./node_modules/.bin/prettier-eslint --write --single-quote {app,mirage,tests}/{**/,}*.js

:bulb: We recomment to add a custom format script to your package.json so you can run npm format