Atom + React setup

In the Terminal

Easy Way

You only have to do this once

  1. npm install -g eslint eslint-plugin-react
  2. curl https://raw.githubusercontent.com/jacobthemyth/dotfiles/master/eslintrc > ~/.eslintrc

"Right" Way

You have to do this for every project, in the project directory

  1. npm install --save eslint eslint-plugin-react
  2. curl https://raw.githubusercontent.com/jacobthemyth/dotfiles/master/eslintrc > .eslintrc

In Atom -> Preferences

  1. Uninstall linter-jshint from "Packages"
  2. Install linter-eslint and react from "Install"
  3. [Optional] In Packages -> linter-eslint -> Settings, enable the "Use Global Eslint" if you followed the "Easy Way" above
  4. Completely close and restart Atom