-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Expand file tree
/
Copy path.oxlintrc.json
More file actions
43 lines (43 loc) · 1.11 KB
/
.oxlintrc.json
File metadata and controls
43 lines (43 loc) · 1.11 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
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"env": {
"node": true
},
"options": {
"typeAware": true
},
"ignorePatterns": [".yarn"],
"categories": {
"correctness": "error",
"suspicious": "error",
"perf": "error"
},
"rules": {
"no-await-in-loop": "off",
"no-map-spread": "off",
"no-shadow": "off",
"typescript/no-misused-promises": "error",
"typescript/no-deprecated": "error",
"typescript/prefer-includes": "error",
"typescript/only-throw-error": "error",
"typescript/no-mixed-enums": "error",
"typescript/switch-exhaustiveness-check": "error",
"typescript/restrict-plus-operands": "error",
"typescript/prefer-promise-reject-errors": "error"
},
"overrides": [
{
"files": ["integration/**/*.cjs", "integration/**/*.mjs"],
"rules": {
"typescript/no-floating-promises": "off"
}
},
{
"files": ["**/*.test.ts", "**/*.test.mts", "**/*.test.mjs", "**/*.test.cjs"],
"rules": {
"unicorn/consistent-function-scoping": "off",
"typescript/unbound-method": "off"
}
}
]
}