Created
July 2, 2015 09:31
-
-
Save wuct/18deeb269fdc28ac578e to your computer and use it in GitHub Desktop.
.eslintrc for React projects
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", | |
"env": { | |
"browser": true, | |
"node": true, | |
"jasmine": true | |
}, | |
"plugins": [ | |
"react", | |
"babel" | |
], | |
"rules": { | |
"quotes": [1, "single"], | |
"strict": 0, | |
"no-underscore-dangle": 0, | |
"no-comma-dangle": 0, | |
"no-use-before-define": 0, | |
"new-cap": 0, | |
"react/display-name": 0, | |
"react/jsx-boolean-value": 1, | |
"react/jsx-no-undef": 1, | |
"react/jsx-quotes": [1, "single"], | |
"react/jsx-sort-prop-types": 0, | |
"react/jsx-sort-props": 0, | |
"react/jsx-uses-react": 1, | |
"react/jsx-uses-vars": 1, | |
"react/no-did-mount-set-state": 1, | |
"react/no-did-update-set-state": 1, | |
"react/no-multi-comp": 1, | |
"react/no-unknown-property": 1, | |
// TODO: open prop-types | |
"react/prop-types": 0, | |
"react/react-in-jsx-scope": 1, | |
"react/require-extension": 1, | |
"react/self-closing-comp": 1, | |
"react/sort-comp": 0, | |
"react/wrap-multilines": 1, | |
"babel/object-shorthand": 1, | |
"babel/generator-star": 1, | |
"babel/generator-star-spacing": 1, | |
"babel/new-cap": 0 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment