-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.js
43 lines (43 loc) · 1.17 KB
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
module.exports = {
"extends": [
"@district01/eslint-config",
"@district01/eslint-config/lib/es6.js",
"plugin:react/recommended",
],
"parserOptions": {
"sourceType": "module", // override the default. Within react apps, all scripts are modules.
},
"ecmaFeatures": {
"jsx": true,
"classes": true,
},
"globals": {
"jest": true,
},
"parser": "babel-eslint",
"rules": {
"react/no-array-index-key": 1,
"react/no-danger": 1,
"react/no-did-mount-set-state": 1,
"react/no-did-update-set-state": 1,
"react/no-multi-comp": 1,
"react/no-redundant-should-component-update": 1,
"react/no-unused-prop-types": 1,
"react/no-will-update-set-state": 1,
"react/prefer-es6-class": 1,
"react/prefer-stateless-function": 1,
"react/void-dom-elements-no-children": 1,
"react/jsx-closing-bracket-location": 1,
"react/jsx-closing-tag-location": 1,
"react/jsx-curly-spacing": 1,
"react/jsx-equals-spacing": 1,
"react/jsx-handler-names": 1,
"react/jsx-pascal-case": 1,
"react/jsx-uses-react": 1,
"react/jsx-uses-vars": 1,
"react/jsx-wrap-multilines": 1,
"react/jsx-first-prop-new-line": [1, "multiline"],
"react/display-name": [0],
"indent": [2, 2]
}
}