Demonstrate differences between eslint and prettier
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.eslintrc.js
.gitignore
.npmrc
README.md
package-lock.json
package.json
prettierDemo.js

README.md

Prettier-demo

Run npm run eslint to see how eslint formats the code in prettierDemo.js.

Run npm run prettier to see how prettier formats the code in prettierDemo.js.

Try editing prettierDemo.js and commit your changes, you will see prettierDemo.js formatted automatically before the commit. This is done thanks to typicode/husky and azz/pretty-quick.