-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
63 lines (63 loc) · 1.42 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
53
54
55
56
57
58
59
60
61
62
63
{
"root": true,
"env": {
"es6": true,
"browser": true,
"node": true
},
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"experimentalObjectRestSpread": true
}
},
"globals": {
"ReactDOM": false,
"React": false,
"jest": false,
"test": false,
"expect": false,
"describe": false,
"it": false
},
"plugins": ["react"],
"extends": ["eslint:recommended", "plugin:react/recommended"],
"settings": {
"react": {
"version": "16.4.1"
}
},
"rules": {
"no-extra-semi": 0,
"no-console": 0,
"react/prop-types": 0,
"no-extra-boolean-cast": 0,
"no-else-return": [1, { "allowElseIf": false }],
"no-loop-func": 1,
"arrow-spacing": 1,
"eqeqeq": 2,
"no-restricted-properties": [
2,
{
"object": "disallowedObjectName",
"property": "disallowedPropertyName"
},
{
"object": "disallowedObjectName",
"property": "anotherDisallowedPropertyName",
"message": "Please use allowedObjectName.allowedPropertyName."
}
],
"no-return-assign": [2, "always"],
"no-sequences": 2,
"no-throw-literal": 2,
"no-unmodified-loop-condition": 2,
"no-useless-return": 2,
"prefer-promise-reject-errors": [2, {"allowEmptyReject": true}],
"require-await": 2,
"jsx-quotes": [2, "prefer-double"],
"prefer-const": 2
}
}