Skip to content

Instantly share code, notes, and snippets.

@Pushplaybang
Created February 27, 2016 13:04
Show Gist options
  • Save Pushplaybang/76fe0654e9e9d83a8c93 to your computer and use it in GitHub Desktop.
Save Pushplaybang/76fe0654e9e9d83a8c93 to your computer and use it in GitHub Desktop.
eslintrc setup
/*
======= 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,
}
}