-
-
Notifications
You must be signed in to change notification settings - Fork 38
/
.eslintrc
83 lines (83 loc) · 1.91 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
72
73
74
75
76
77
78
79
80
81
82
83
{
"env": {
"browser": true,
"es6": true,
"node": true,
"cypress/globals": true
},
"extends": [
"standard",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:react/jsx-runtime",
"plugin:cypress/recommended",
"plugin:vitest/recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"allowImportExportEverywhere": false,
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true
},
"sourceType": "module"
},
"settings": {
"react": {
"version": "detect"
}
},
"plugins": [
"react",
"react-hooks",
"eslint-plugin-react-compiler",
"vitest",
"cypress",
"n",
"promise",
"no-only-tests"
],
"globals": {
"vi": true
},
"rules": {
"comma-dangle": [
"warn",
{
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "never"
}
],
"multiline-ternary": "off",
"no-console": "warn",
"no-only-tests/no-only-tests": "error",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["warn", {
"argsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_|error"
}],
"@typescript-eslint/no-duplicate-enum-values": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/ban-ts-comment": "warn",
"prefer-const": "warn",
"react-compiler/react-compiler": "warn",
"semi": [2, "always"],
"space-infix-ops": 1,
"space-before-function-paren": "off",
"strict": ["error", "global"]
},
"overrides": [
{
"files": ["cypress/**"],
"rules": {
"vitest/expect-expect": "off",
"vitest/valid-expect": "off",
"@typescript-eslint/no-require-imports": "off"
}
}
]
}