Atom + React setup
In the Terminal
Easy Way
You only have to do this once
npm install -g eslint eslint-plugin-react
curl https://raw.githubusercontent.com/jacobthemyth/dotfiles/master/eslintrc > ~/.eslintrc
"Right" Way
You have to do this for every project, in the project directory
npm install --save eslint eslint-plugin-react
curl https://raw.githubusercontent.com/jacobthemyth/dotfiles/master/eslintrc > .eslintrc
In Atom -> Preferences
- Uninstall
linter-jshint
from "Packages" - Install
linter-eslint
andreact
from "Install" - [Optional] In Packages -> linter-eslint -> Settings, enable the "Use Global Eslint" if you followed the "Easy Way" above
- Completely close and restart Atom