This sets up Atom to properly lint ES6+Babel+JSX using Airbnb's .eslintrc as a starting point.
- Download Atom and get these two packages: Linter and [Linter-ESLint)(https://atom.io/packages/linter-eslint)
- Run
npm i -D eslint eslint-config-airbnb babel-eslint eslint-plugin-babel eslint-plugin-react eslint-plugin-react-native eslint-plugin-import eslint-plugin-jsx-a11y
from your project root. - Add
"extends": "airbnb"
to your .eslintrc and"plugins": [ "babel", "react", "react-native", "jsx-a11y" ]
- Run
apm install linter-eslint
this also installslinter
which clashes with nuclide diagnostics - Run
apm disable linter
to stop the linter clashing with nuclide
See Airbnb's Javascript styleguide and the ESlint config docs for more information.