Skip to content

Instantly share code, notes, and snippets.

@swapnil-webonise
Created June 16, 2017 09:11
Show Gist options
  • Save swapnil-webonise/9a9d28809576fe44300c0e87843a932e to your computer and use it in GitHub Desktop.
Save swapnil-webonise/9a9d28809576fe44300c0e87843a932e to your computer and use it in GitHub Desktop.
Eslint with react plugin settings
{
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
}
},
"env": {
"browser": true,
"node": true,
"jquery": true,
"jasmine": true,
"es6": true
},
"plugins": [
"react"
],
"rules": {
"no-dupe-keys": 2,
"no-cond-assign": 2,
"no-sparse-arrays": 2,
"eqeqeq": 2,
"no-unused-vars": 2,
"no-else-return": 2,
"react/jsx-no-target-blank": 2,
"react/jsx-key": 2,
"react/no-find-dom-node": 2,
"react/react-in-jsx-scope": 2,
"react/no-deprecated": 2,
"no-undef": 2,
"react/jsx-no-undef": [2, {"allowGlobals": true}],
"no-debugger": 1,
"no-console": 1,
"react/jsx-no-comment-textnodes": 1,
"radix": 0,
"react/no-string-refs": 0,
"react/display-name": 0,
"react/no-unescaped-entities": 0,
"no-mixed-spaces-and-tabs": 0
},
"extends": ["eslint:recommended", "plugin:react/recommended"],
"globals": {
"_": true,
"React": true,
"ReactDOM": true,
"URLSearchParams": true,
"Papa": true,
"L": true,
"Autosuggest": true,
"moment": true,
"LGeo": true,
"Stomp": true,
"ga": true,
},
"settings": {
"react": {
"pragma": "React",
"version": "15.4.1"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment