Created
May 13, 2016 16:46
-
-
Save syabro/644cab17f90fd8f898a7fc1c2af235c5 to your computer and use it in GitHub Desktop.
.eslintrc.json
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
Show hidden characters
{ | |
"extends": "airbnb", | |
"plugins": [ | |
"react" | |
], | |
"parser": "babel-eslint", | |
"parserOptions": { | |
"ecmaVersion": 7, | |
"sourceType": "module", | |
"ecmaFeatures": { | |
"classes": true, | |
"jsx": true | |
} | |
}, | |
"globals": { | |
"window": true, | |
"__DEBUG__": true | |
}, | |
"rules": { | |
"strict": 0, | |
"max-len": [ | |
2, | |
{ | |
"code": 120, | |
"tabWidth": 4, | |
"ignoreUrls": true | |
} | |
], | |
"no-use-before-define": [ | |
2, | |
{ | |
"functions": false, | |
"classes": true | |
} | |
], | |
"no-console": [ | |
2, | |
{ | |
"allow": [ | |
"error" | |
] | |
} | |
], | |
"no-alert": 0, | |
"no-param-reassign": 0, | |
"react/display-name": 0, | |
"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/jsx-indent-props": [ | |
2, | |
4 | |
], | |
"react/sort-prop-types": 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/sort-comp": 1, | |
"react/wrap-multilines": 1, | |
"indent": [ | |
2, | |
4, | |
{ | |
"SwitchCase": 1, | |
"VariableDeclarator": 2 | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment