Created
February 27, 2016 13:04
-
-
Save Pushplaybang/76fe0654e9e9d83a8c93 to your computer and use it in GitHub Desktop.
eslintrc setup
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
/* | |
======= REMOVE THESE COMMENTS ========= | |
```sh | |
// eslint | |
npm install -g eslint | |
npm install -g babel-eslint | |
npm install -g eslint-plugin-react | |
``` | |
You'll want to setup an `.eslintrc` file in your root directoey, and if you'd like to use the one defined here, you'll need to install the airbnb eslint config locally as it extends it. | |
```sh | |
npm install - g eslint-config-airbnb --save-dev | |
``` | |
to use with sublime text instal the sublime linter package through package control as well as the eslint plugin. | |
======= REMOVE THESE COMMENTS ========= | |
*/ | |
{ | |
"parser": "babel-eslint", | |
"extends": "airbnb", | |
"env": { | |
"browser": true, | |
"node": true | |
}, | |
"rules": { | |
"no-console": 0, | |
"no-unused-vars": 0, | |
"no-undef": 0, | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For additional info check out :