-
Notifications
You must be signed in to change notification settings - Fork 6
/
.eslintrc.json
52 lines (51 loc) · 1.32 KB
/
.eslintrc.json
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
44
45
46
47
48
49
50
51
52
{
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"node": true
},
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
"jsx": true,
"ecmaVersion": 2016
},
"sourceType": "module"
},
"rules": {
"no-cond-assign": "error",
"no-const-assign": "error",
"no-this-before-super": "error",
"no-var": "error",
"no-undef": "error",
"no-unreachable": "warn",
"no-unused-vars": ["error", { "vars": "all", "args": "none", "ignoreRestSiblings": false }],
"constructor-super": "warn",
"valid-typeof": "warn",
// "indent": ["error", 2],
"quotes": ["error", "single"],
"semi": "error",
"comma-spacing": ["error"],
"key-spacing": ["error"],
"keyword-spacing": ["error"],
"space-infix-ops": ["error", {"int32Hint": false}],
"space-before-blocks": ["error"],
"object-curly-spacing": ["error", "always"],
"react/react-in-jsx-scope": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/no-static-element-interactions": "off",
"jsx-a11y/no-noninteractive-element-interactions": "off",
"jsx-a11y/label-has-for": "off"
},
"plugins": [
"import",
"jsx-a11y",
"promise"
],
"extends": [
"eslint:recommended",
"plugin:jsx-a11y/recommended",
"plugin:react/recommended"
]
}