Created
June 16, 2017 09:11
-
-
Save swapnil-webonise/9a9d28809576fe44300c0e87843a932e to your computer and use it in GitHub Desktop.
Eslint with react plugin settings
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
{ | |
"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