forked from chenglou/pretext
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoxlintrc.json
More file actions
25 lines (25 loc) · 863 Bytes
/
oxlintrc.json
File metadata and controls
25 lines (25 loc) · 863 Bytes
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
{
"plugins": ["typescript", "oxc"],
"rules": {
"prefer-ts-expect-error": "error",
"no-unnecessary-type-assertion": "error",
"no-unreachable": "error",
"@typescript-eslint/no-unsafe-assignment": "error",
"@typescript-eslint/no-unsafe-return": "error",
"@typescript-eslint/prefer-nullish-coalescing": ["error", {
"ignorePrimitives": { "boolean": true }
}],
"@typescript-eslint/strict-boolean-expressions": ["error", {
"allowNullableBoolean": true,
"allowString": false
}],
"@typescript-eslint/switch-exhaustiveness-check": ["error", {
"allowDefaultCaseForExhaustiveSwitch": false,
"considerDefaultExhaustiveForUnions": true,
"requireDefaultForNonUnion": true
}],
"@typescript-eslint/no-unnecessary-condition": ["error", {
"allowConstantLoopConditions": true
}]
}
}