-
Notifications
You must be signed in to change notification settings - Fork 50
/
.eslintrc
60 lines (60 loc) · 1.62 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
{
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"jest": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:jest-dom/recommended",
],
"globals": {
"cy": true
},
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "testing-library", "jest-dom"],
"overrides": [
// enable eslint-plugin-testing-library rules or preset only for matching files!
{
"files": ["**/__tests__/**/*.[jt]s?(x)", "**/?(*.)+(spec|test).[jt]s?(x)"],
"extends": ["plugin:testing-library/react"]
}
],
"parserOptions": {
"ecmaVersion": 8,
"sourceType": "module",
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true
}
},
"rules": {
"@typescript-eslint/ban-ts-comment": "warn",
"@typescript-eslint/no-explicit-any": "off",
"no-console": "off",
"linebreak-style": ["error", "unix"],
"semi": ["error", "always"],
"quotes": ["error", "single", { "avoidEscape": true }],
"react/prop-types": 0,
"react/display-name": 0,
"react/react-in-jsx-scope": 0,
"testing-library/await-async-query": "error",
"testing-library/no-await-sync-query": "error",
"testing-library/no-debug": "off",
"testing-library/no-dom-import": "off",
"jest-dom/prefer-checked": "error",
"jest-dom/prefer-enabled-disabled": "error",
"jest-dom/prefer-required": "error",
"jest-dom/prefer-to-have-attribute": "error",
"no-debugger": "off"
},
"settings": {
"react": {
"version": "detect"
}
}
}