Skip to content

Instantly share code, notes, and snippets.

@intentionally-left-nil
Last active September 26, 2017 00:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save intentionally-left-nil/c810a02ccbf3f18a475dfa7c40abb84e to your computer and use it in GitHub Desktop.
Save intentionally-left-nil/c810a02ccbf3f18a475dfa7c40abb84e to your computer and use it in GitHub Desktop.
Setting up eslint in atom
#! /bin/bash
npm install -g eslint eslint-config-react-app babel-eslint eslint-plugin-flowtype eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-react
apm install linter linter-eslint
echo '{' > ~/.eslintrc
echo ' "extends": "react-app",' >> ~/.eslintrc
echo ' "env":' { >> ~/.eslintrc
echo ' "browser": true,' >> ~/.eslintrc
echo ' "jquery": true,' >> ~/.eslintrc
echo ' "jasmine": true' >> ~/.eslintrc
echo ' }' >> ~/.eslintrc
echo '}' >> ~/.eslintrc
# In atom, go to preferences. Select the packages tab and search for linter-eslint
# In linter-eslint settings, UNSELECT "Disable whn no ESLint coonfig is found.
# Under ".eslintrc Path", set that to you user directory (/Users/apprentice) for example
# Near the bottom, SELECT "Use global ESLint installation
# Restart atom for it to take effect
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment