Created
May 14, 2015 01:32
-
-
Save gyaresu/05c196c72f08198a6015 to your computer and use it in GitHub Desktop.
.eslintrc for React ESLint Sublime Text 3 https://github.com/yannickcr/eslint-plugin-react
This file contains hidden or 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
{ | |
"plugins": [ | |
"react" | |
], | |
"ecmaFeatures": { | |
"jsx": true | |
}, | |
// I want to use babel-eslint for parsing! | |
"parser": "babel-eslint", | |
"env": { | |
// I write for browser | |
"browser": true, | |
// in CommonJS | |
"node": true | |
}, | |
// To give you an idea how to override rule options: | |
"rules": { | |
"react/display-name": 1, | |
"react/jsx-boolean-value": 1, | |
"react/jsx-quotes": 1, | |
"react/jsx-no-undef": 1, | |
"react/jsx-sort-props": 1, | |
"react/jsx-sort-prop-types": 1, | |
"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, | |
"react/prop-types": 1, | |
"react/react-in-jsx-scope": 1, | |
"react/self-closing-comp": 1, | |
"react/wrap-multilines": 1, | |
"quotes": [2, "single"], | |
"eol-last": [0], | |
"no-mixed-requires": [0], | |
"no-underscore-dangle": [0], | |
"strict": 0 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment