Skip to content

Instantly share code, notes, and snippets.

@udnaan
Created August 2, 2016 21:12
Show Gist options
  • Save udnaan/4968046ad01a7fd2c5b0df95e3dd8559 to your computer and use it in GitHub Desktop.
Save udnaan/4968046ad01a7fd2c5b0df95e3dd8559 to your computer and use it in GitHub Desktop.
eslint config
{
"env": {
"browser": true,
"es6": true,
"node": true
},
"extends": "eslint:recommended",
"parserOptions": {
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"experimentalObjectRestSpread": true
}
},
"rules": {
"indent": [
"error",
"tab"
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"always"
],
"no-console":0,
"no-unused-vars":1,
"no-redeclare":1,
"react/display-name": 1,
"react/jsx-boolean-value": 1,
"react/jsx-no-undef": 1,
"react/jsx-sort-props": 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
},
"plugins": [
"react"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment