-
-
Notifications
You must be signed in to change notification settings - Fork 55
Expand file tree
/
Copy path.eslintrc
More file actions
70 lines (70 loc) · 1.86 KB
/
Copy path.eslintrc
File metadata and controls
70 lines (70 loc) · 1.86 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
65
66
67
68
69
70
{
"parser": "@babel/eslint-parser",
"env": {
"browser": true,
"node": true
},
"globals": {
"process": false,
"require": false,
"define": false,
"console": false,
"Set": "readonly",
"__UPLOAD_API__": false,
"__API_HOST__": false,
"__INVITE_KEY__": false,
"__LATEST_TERMS__": false
},
"extends": [
"plugin:react-hooks/recommended"
],
"rules": {
"quotes": [2, "single", {
"avoidEscape": true
}],
"strict": [2, "never"],
"eol-last": [0],
"no-mixed-requires": [0],
"no-underscore-dangle": [0],
"no-bitwise": 2,
"camelcase": ["error", { "allow": ["^UNSAFE_"] }],
"eqeqeq": 2,
"wrap-iife": [2, "inside"],
"no-use-before-define": [2, "nofunc"],
"no-caller": 2,
"no-undef": 2,
"new-cap": ["error", { "capIsNewExceptionPattern": "UNSAFE_" }],
"react/jsx-uses-react": 2,
"react/jsx-uses-vars": 2,
"react/react-in-jsx-scope": 2,
"react/jsx-no-target-blank": 2
},
"plugins": [
"react"
],
"overrides": [
{
"files": ["**/__tests__/**/*.test.[jt]s?(x)", "**/?(*.)+(test).[jt]s?(x)"],
"extends": [
"plugin:testing-library/react",
"plugin:jest-dom/recommended"
],
"env": {
"jest": true
},
"rules": {
"testing-library/prefer-presence-queries": "warn",
"testing-library/no-node-access": "warn",
"testing-library/render-result-naming-convention": "warn",
"testing-library/no-manual-cleanup": "warn",
"testing-library/no-container": "warn",
"testing-library/no-render-in-lifecycle": "warn",
"testing-library/no-wait-for-multiple-assertions": "warn",
"testing-library/prefer-screen-queries": "warn",
"jest-dom/prefer-in-document": "warn",
"jest-dom/prefer-enabled-disabled": "warn",
"jest-dom/prefer-empty": "warn",
}
}
]
}