forked from yihong0618/running_page
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
60 lines (49 loc) · 1.21 KB
/
.eslintrc
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
{
"root": true,
"extends": [
"airbnb",
"plugin:prettier/recommended",
],
"plugins": [
"prettier"
],
"env": {
"browser": true,
"node": true
},
"parser": "babel-eslint",
"rules": {
"react/forbid-foreign-prop-types": 2, // For babel-plugin-transform-react-remove-prop-types
"jsx-a11y/click-events-have-key-events": 1, // TODO: enable
"no-restricted-imports": 0, // TODO: enable with full RTL support
"react/jsx-props-no-spreading": 0, // TODO: re-evaluate
"react/no-deprecated": 1, // TODO: update to UNSAFE_componentWillReceiveProps
},
"overrides": [
{
"files": "test/**/*",
"env": {
"mocha": true,
},
"extends": "airbnb",
"rules": {
"react/jsx-props-no-spreading": 0,
//"import/no-extraneous-dependencies": [2, {
//"devDependencies": true
//}],
"indent": [2, 2, {
"MemberExpression": "off"
}],
},
},
],
"settings": {
"propWrapperFunctions": ["forbidExtraProps", "exact", "Object.freeze"],
"import/resolver": "webpack"
// "import/resolver": {
// "node": {
// "extensions": [".js", ".jsx", ".ts", ".tsx"]
// }
// }
}
}