Last active
September 26, 2017 00:36
-
-
Save intentionally-left-nil/c810a02ccbf3f18a475dfa7c40abb84e to your computer and use it in GitHub Desktop.
Setting up eslint in atom
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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