-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
52 lines (49 loc) · 1.2 KB
/
.eslintrc.json
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
{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"react-app",
"react-app/jest"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"allowImportExportEverywhere": false,
"ecmaFeatures": {
"globalReturn": false,
"jsx": true
},
"babelOptions": {
"configFile": "./babel.config.json"
}
},
"plugins": ["react", "prettier"],
"rules": {
"indent": ["error", "tab", { "SwitchCase": 1 }],
"linebreak-style": ["error", "unix"],
"quotes": ["warn", "single"],
"semi": ["error", "never"],
/* react-testing-library */
"testing-library/no-manual-cleanup": "error",
"testing-library/no-wait-for-snapshot": "error",
"testing-library/prefer-explicit-assert": "error",
"testing-library/prefer-presence-queries": "error",
"testing-library/prefer-wait-for": "error",
"testing-library/render-result-naming-convention": "off",
"testing-library/no-container": "off",
"testing-library/no-node-access": "off",
"testing-library/await-async-query": "off",
"testing-library/no-render-in-setup": "off"
},
"overrides": [
{
"files": ["**/*.spec.js", "**/*.spec.jsx"],
"env": {
"jest": true
}
}
]
}