Skip to content

Instantly share code, notes, and snippets.

@JSila
Created March 17, 2016 23:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JSila/f474acb2e20dd6cc97cb to your computer and use it in GitHub Desktop.
Save JSila/f474acb2e20dd6cc97cb to your computer and use it in GitHub Desktop.
eslint.js for React and ES6
{
"rules":{
"indent": 2,
"quotes": [2, "single"],
"linebreak-style": [2, "unix"],
"react/prop-types":1,
"react/no-multi-comp":1,
"no-unused-vars":2,
"no-undef":2
},
"env":{
"es6":true,
"browser":true,
"node": true
},
"extends":[
"eslint:recommended",
"plugin:react/recommended"
],
"ecmaFeatures":{
"modules":true,
"jsx":true,
"spread":true,
"restParams":true
},
"plugins":[
"react"
],
"parserOptions":{
"sourceType":"module"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment