Skip to content

Instantly share code, notes, and snippets.

@gyaresu
Created May 14, 2015 01:32
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gyaresu/05c196c72f08198a6015 to your computer and use it in GitHub Desktop.
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
{
"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