-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.json
73 lines (73 loc) · 2.12 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "react-refresh"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"prettier",
"plugin:@typescript-eslint/recommended-type-checked",
"plugin:@typescript-eslint/strict-type-checked",
"plugin:@typescript-eslint/stylistic-type-checked"
],
"ignorePatterns": [
"node_modules/*",
"**/node_modules/*",
"**/.turbo/*",
"dist/*",
"client/public/sw*",
"**/*.js",
"**/*.map",
"**/vitest.config.ts.*",
"**/*.module.css.d.ts",
"**/*.sql.d.ts"
],
"rules": {
"no-fallthrough": "off",
"no-constant-condition": "off",
"no-mixed-spaces-and-tabs": "off",
"@typescript-eslint/consistent-type-imports": [
"error",
{ "fixStyle": "inline-type-imports" }
],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-invalid-void-type": "off",
"@typescript-eslint/no-confusing-void-expression": "off",
"@typescript-eslint/consistent-type-definitions": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-unused-vars": ["error", { "varsIgnorePattern": "^_" }],
"@typescript-eslint/restrict-template-expressions": "off", // good rule in theory, but doesn't work
"@typescript-eslint/restrict-plus-operands": "off", // good rule in theory, but doesn't work
"@typescript-eslint/use-unknown-in-catch-callback-variable": "off",
"no-empty": "off",
"react-refresh/only-export-components": ["error", { "allowConstantExport": true }],
"no-unused-labels": "off",
"@typescript-eslint/array-type": ["error", { "default": "array-simple" }],
"no-control-regex": "off",
"@typescript-eslint/no-dynamic-delete": "off"
},
"parserOptions": {
"project": ["tsconfig.tools.json"]
},
"overrides": [
{
"files": ["vitest.workspace.ts"],
"parserOptions": {
"project": ["tsconfig.tools.json"]
}
},
{
"files": ["types/*.d.ts"],
"parserOptions": {
"project": ["tsconfig.app.json"]
}
},
{
"files": ["**/*.test.ts"],
"rules": {
"@typescript-eslint/no-unsafe-assignment": "off"
}
}
]
}