Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement