-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy path.eslintrc.json
More file actions
64 lines (64 loc) · 1.45 KB
/
.eslintrc.json
File metadata and controls
64 lines (64 loc) · 1.45 KB
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
{
"env": {
"browser": true,
"es6": true,
"jest/globals": true
},
"extends": [
"plugin:react/recommended",
"standard",
"plugin:jest/all",
"prettier"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 11,
"sourceType": "module"
},
"plugins": [
"react",
"jest",
"prettier"
],
"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",
"block-scoped-var": "error",
"class-methods-use-this": "error",
"curly": "error",
"default-case": "error",
"default-case-last": "error",
"semi": [
"error",
"always"
],
// have conflicts with prettier
// "indent": [
// "error",
// 2
// ],
"linebreak-style": [
"error",
"unix"
],
"jest/no-hooks": "off",
"jsx-quotes": "error",
"space-before-function-paren": "off",
"prettier/prettier": "error"
},
"settings": {
"react": {
"pragma": "React",
"version": "16.12"
}
}
}