πŸŽ‰ Add prettier + eslint to your project
Switch branches/tags
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.eslintrc.js πŸ”₯ remove react-app extension Dec 4, 2018
.gitignore πŸŽ‰ yayayaya πŸ”₯ Dec 4, 2018
LICENSE Create LICENSE (#1) Dec 4, 2018
README.md improve README to talk about default rules (#2) Dec 4, 2018
index.js add spinner Dec 4, 2018
package.json add spinner Dec 4, 2018
yarn.lock add spinner Dec 4, 2018

README.md

prettieslint

you need prettier in your life. you also need eslint because reasons.

npx prettieslint

now your codebase will be pretty and make eslint not cry.

Default rules

Note that there are no default rules enabled other than the three Prettier-related ones (semi, singleQuote, trailingComma). You can easily enable the default eslint rules by adding eslint:recommended to the extends array in your .eslintrc.js:

extends: ['prettier', 'eslint:recommended']

This does not require any additional dependencies.