-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
54 lines (52 loc) · 1.29 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
{
"extends": ["airbnb", "prettier", "prettier/react"],
"plugins": ["prettier"],
"env": {
"es6": true
},
"globals": {
"window": true,
"jest": true,
"document": true,
"localStorage": true,
"FormData": true,
"FileReader": true,
"Blob": true,
"navigator": true,
"Headers": true,
"Request": true,
"fetch": true
},
"parser": "babel-eslint",
"rules": {
"import/no-useless-path-segments": 0,
"jsx-a11y/click-events-have-key-events": 1,
"no-param-reassign": 0,
"no-plusplus": 0,
"no-restricted-imports": 0,
"no-void": 0,
"prefer-destructuring": 0,
"react/forbid-foreign-prop-types": 2,
"react/jsx-props-no-spreading": 0,
"react/no-deprecated": 1
},
"overrides": [
{
"files": ["**/*.test.js"],
"env": {
"jest": true
},
"plugins": ["jest"],
"rules": {
"jest/no-disabled-tests": "warn",
"jest/no-focused-tests": "error",
"jest/no-identical-title": "error",
"jest/prefer-to-have-length": "warn",
"jest/valid-expect": "error"
}
}
],
"settings": {
"propWrapperFunctions": ["forbidExtraProps", "exact", "Object.freeze"]
}
}