Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. #! /bin/bash
  2. npm install -g eslint eslint-config-react-app babel-eslint eslint-plugin-flowtype eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-react
  3. apm install linter linter-eslint
  4. echo '{' > ~/.eslintrc
  5. echo ' "extends": "react-app",' >> ~/.eslintrc
  6. echo ' "env":' { >> ~/.eslintrc
  7. echo ' "browser": true,' >> ~/.eslintrc
  8. echo ' "jquery": true,' >> ~/.eslintrc
  9. echo ' "jasmine": true' >> ~/.eslintrc
  10. echo ' }' >> ~/.eslintrc
  11. echo '}' >> ~/.eslintrc
  12.  
  13. # In atom, go to preferences. Select the packages tab and search for linter-eslint
  14. # In linter-eslint settings, UNSELECT "Disable whn no ESLint coonfig is found.
  15. # Under ".eslintrc Path", set that to you user directory (/Users/apprentice) for example
  16. # Near the bottom, SELECT "Use global ESLint installation
  17. # Restart atom for it to take effect
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement