generated from dsanders11/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.oxlintrc.json
More file actions
34 lines (34 loc) · 1.24 KB
/
.oxlintrc.json
File metadata and controls
34 lines (34 loc) · 1.24 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
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["typescript", "import", "vitest"],
"categories": {
"correctness": "warn"
},
"rules": {
"no-console": "off",
"typescript/array-type": "error",
"typescript/ban-ts-comment": "error",
"typescript/consistent-type-assertions": "error",
"typescript/explicit-function-return-type": [
"error",
{ "allowExpressions": true }
],
"typescript/no-empty-interface": "error",
"typescript/no-explicit-any": "error",
"typescript/no-extraneous-class": "error",
"typescript/no-inferrable-types": "error",
"typescript/no-namespace": "error",
"typescript/no-non-null-assertion": "warn",
"typescript/no-require-imports": "error",
"typescript/no-unnecessary-qualifier": "error",
"typescript/no-unnecessary-type-assertion": "error",
"typescript/no-useless-constructor": "error",
"typescript/no-var-requires": "error",
"typescript/prefer-for-of": "warn",
"typescript/prefer-function-type": "warn",
"typescript/prefer-includes": "error",
"typescript/promise-function-async": "error",
"typescript/restrict-plus-operands": "error"
},
"ignorePatterns": ["dist", "node_modules", "coverage", "*.json"]
}