-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
71 lines (71 loc) · 1.96 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
61
62
63
64
65
66
67
68
69
70
71
{
"extends": ["airbnb", "prettier"],
"plugins": ["prettier"],
"parser": "babel-eslint",
"rules": {
"linebreak-style": 0,
"no-console": 0,
"no-underscore-dangle": 0,
"react/no-deprecated": 0,
"no-case-declarations": 0,
"no-undef": 0,
"react/forbid-prop-types": 0,
"func-names": 0,
"import/extensions": 0,
"camelcase": 0,
"react/void-dom-elements-no-children": 0,
"react/prop-types": 0,
"react/require-default-props": 0,
"prefer-destructuring": 0,
"react/button-has-type": 0,
"no-use-before-define": 0,
"import/no-cycle": 0,
"valid-typeof": 0,
"react/prefer-stateless-function": 0,
"no-param-reassign": 0,
"import/no-named-default": 0,
"import/no-named-as-default": 0,
"comma-dangle": [2, "always-multiline"],
"quotes": [
2,
"single",
{
"avoidEscape": true,
"allowTemplateLiterals": true
}
],
"import/prefer-default-export": 0,
"import/imports-first": ["error", "absolute-first"],
"import/newline-after-import": "error"
},
"globals": {
"window": true,
"document": true,
"localStorage": true,
"FormData": true,
"FileReader": true,
"Blob": true,
"navigator": true,
"fetch": false
},
"env": {
"es6": true,
"jest": true
},
"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"
}
}
]
}