-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.oxlintrc.json
More file actions
72 lines (68 loc) · 1.71 KB
/
.oxlintrc.json
File metadata and controls
72 lines (68 loc) · 1.71 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
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["typescript", "unicorn", "oxc"],
"env": {
"es2022": true,
"node": true
},
"categories": {
"correctness": "error",
"suspicious": "warn"
},
"rules": {
// Style rules matching previous Biome config
"no-var": "error",
"prefer-const": "error",
"prefer-template": "error",
// TypeScript-specific rules
"typescript/no-explicit-any": "warn",
"typescript/no-unused-vars": "error",
"typescript/strict-boolean-expressions": "off",
"typescript/no-unsafe-type-assertion": "off",
"typescript/require-await": "off",
"typescript/unbound-method": "off",
// Disable Node.js type checks in Bun environment (false positives)
"typescript/no-redundant-type-constituents": "off",
"typescript/no-unnecessary-type-assertion": "off",
// Unicorn best practices
"unicorn/prefer-node-protocol": "error",
"unicorn/no-array-for-each": "off",
"unicorn/prefer-module": "error",
// Additional correctness rules
"no-console": "off",
"eqeqeq": ["error", { "null": "ignore" }],
// Disable overly strict complexity rules
"max-depth": "off",
"max-lines-per-function": "off",
"max-statements": "off",
"complexity": "off"
},
"ignorePatterns": [
"dist",
"dist-bun",
"node_modules",
"tmp",
"*.min.js",
"coverage",
"bun.lock"
],
"overrides": [
{
"files": ["**/*.test.ts", "**/*.spec.ts", "tests/**/*.ts"],
"env": {
"vitest-globals": true
},
"rules": {
"typescript/no-explicit-any": "off"
}
},
{
"files": ["examples/**/*.ts"],
"rules": {
"typescript/no-explicit-any": "off",
"typescript/strict-boolean-expressions": "off",
"typescript/no-unsafe-type-assertion": "off"
}
}
]
}