Repository navigation
Expand file tree
/
Copy path.oxlintrc.json
More file actions
74 lines (74 loc) · 1.82 KB
/
Copy path.oxlintrc.json
File metadata and controls
74 lines (74 loc) · 1.82 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
71
72
73
74
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["eslint", "typescript", "vitest"],
"env": {
"browser": true,
"es2024": true
},
"globals": {
"Excel": "readonly",
"Office": "readonly"
},
"ignorePatterns": [
"**/node_modules/**",
"**/dist/**",
"**/build/**",
"**/coverage/**",
"**/*.d.ts",
"**/package-lock.json"
],
"categories": {
"correctness": "error"
},
"rules": {
"no-debugger": "error",
"prefer-const": "error",
"no-var": "error",
"object-shorthand": "error",
"prefer-arrow-callback": "error",
"no-console": "warn",
"typescript/no-explicit-any": "warn",
"typescript/no-non-null-assertion": "warn",
"typescript/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_"
}
]
},
"overrides": [
{
"files": ["src/**/*.{ts,tsx,mjs}"],
"rules": {
"no-console": "off",
"typescript/no-explicit-any": "warn",
"typescript/no-unused-vars": "warn"
}
},
{
"files": ["**/*.cjs"],
"rules": {
"typescript/no-require-imports": "off",
"no-console": "off"
}
},
{
"files": ["**/*.test.{ts,tsx}", "**/*.spec.{ts,tsx}", "**/tests/**/*.{ts,tsx}"],
"env": {
"vitest": true
},
"rules": {
"vitest/no-disabled-tests": "warn",
"vitest/no-focused-tests": "error",
"vitest/no-identical-title": "error",
"vitest/prefer-to-have-length": "warn",
"vitest/valid-expect": "error",
"vitest/expect-expect": "error",
"vitest/no-standalone-expect": "error",
"typescript/no-explicit-any": "off",
"no-console": "off"
}
}
]
}