npm i eslint --save-dev
npm i eslint-plugin-react --save-dev
npm i eslint-config-airbnb --save-dev
- Take a look at
.eslintrc.json
npm i
npm run lint
- Stop and wait! That's a lot of errors... How can I see where they are in my code?
apm install linter-eslint
- (https://github.com/AtomLinter/linter-eslint)
- Close and open Atom
- Open up src/components/MessyComponent1.js and checkout the errors! (You may need to save the file to get the linter to go)
- Read error
- Fix error
- Repeat until all are destroyed
npm start
- Go to localhost:5000