This is a short note on how to setup prettier and eslint for create-react-app applications in the atom editor.
apm install prettier-atom
Setup Atom Prettier Preferences
- Check Format on Save
- Uncheck Use Semi
Setting up the linter, this step is not needed, because the linter is aready setup in create-react-app.
So proceed to building your application.
npm i create-react-app -g
create-react-app myapp
cd myapp
atom .
yarn start
CRA will automatically lint your code for you, you can test it by opening the index.js file and typing:
a = 0
Wnen your app is running it will show the lint errors on the screen.