Repository navigation
Expand file tree
/
Copy path.oxlintrc.jsonc
More file actions
45 lines (45 loc) · 1.5 KB
/
Copy path.oxlintrc.jsonc
File metadata and controls
45 lines (45 loc) · 1.5 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
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"options": {
"typeAware": true,
"denyWarnings": true,
"reportUnusedDisableDirectives": "error"
},
"rules": {
"eqeqeq": "error",
"curly": "warn",
"no-empty": ["warn", { "allowEmptyCatch": true }]
},
"overrides": [
{
// Strict type rules require files included in the TypeScript project.
// JavaScript scripts still receive the shared lint rules above.
"files": ["**/*.ts"],
"rules": {
"typescript/await-thenable": "error",
"typescript/no-floating-promises": "error",
"typescript/no-for-in-array": "error",
"typescript/no-implied-eval": "error",
// Some existing interfaces declare void methods that have async implementations.
// Keep all other Promise misuse checks, including void-returning callbacks.
"typescript/no-misused-promises": [
"error",
{
"checksVoidReturn": {
"inheritedMethods": false
}
}
],
"typescript/no-unsafe-argument": "error",
"typescript/no-unsafe-assignment": "error",
"typescript/no-unsafe-call": "error",
"typescript/no-unsafe-member-access": "error",
"typescript/no-unsafe-return": "error",
"typescript/require-await": "error",
"typescript/restrict-plus-operands": "error",
"typescript/restrict-template-expressions": "error",
"typescript/unbound-method": "error"
}
}
]
}