Last active
May 22, 2016 06:43
-
-
Save ouabing/b0afcac4dac3c355bdb97a9db27273e2 to your computer and use it in GitHub Desktop.
This file contains 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
sudo npm install -g eslint | |
sudo npm install -g eslint-plugin-react | |
sudo npm install -g babel-eslint | |
curl "https://packagecontrol.io/Package%20Control.sublime-package" -o ~/Library/Application\ Support/Sublime\ Text\ 2/Installed\ Packages/Package\ Control.sublime-package | |
echo "{ | |
"parser": "babel-eslint", | |
"env": { | |
"browser": true, | |
"node": true, | |
"es6": true | |
}, | |
"settings": { | |
"ecmascript": 6, | |
"jsx": true | |
}, | |
"plugins": [ "react" ], | |
"rules": { | |
"indent": ["error", 2], | |
"linebreak-style": [ "error", "unix" ], | |
"comma-dangle": 1, | |
"quotes": [ 1, "single" ], | |
"no-undef": 1, | |
"global-strict": 0, | |
"no-extra-semi": 1, | |
"semi": [ "error", "never" ], | |
"no-underscore-dangle": 0, | |
"no-console": 1, | |
"no-unused-vars": [1, { | |
"argsIgnorePattern": "^_$" | |
}], | |
"no-trailing-spaces": [1, { "skipBlankLines": true }], | |
"no-unreachable": 1, | |
"no-alert": 0, | |
"react/jsx-uses-react": 1, | |
"react/jsx-uses-vars": 1 | |
} | |
}" > ~/.eslintrc | |
open -a Sublime\ Text\ 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment