-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
56 lines (44 loc) · 1.12 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
{
"root": true,
"extends": [
"airbnb",
"plugin:react-with-styles/recommended"
],
"plugins": [
"react-with-styles"
],
"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
"react-with-styles/no-unused-styles": 2,
"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"],
}
}