-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.oxlintrc.json
More file actions
40 lines (40 loc) · 1.52 KB
/
.oxlintrc.json
File metadata and controls
40 lines (40 loc) · 1.52 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
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["typescript", "vitest", "import", "unicorn"],
"categories": {
"correctness": "error"
},
"rules": {
"no-console": "off",
"no-unused-vars": "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-array-constructor": "error",
"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-unused-vars": "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/prefer-string-starts-ends-with": "error",
"typescript/promise-function-async": "error",
"typescript/require-array-sort-compare": "error",
"typescript/restrict-plus-operands": "error",
"typescript/unbound-method": "error"
},
"ignorePatterns": ["lib/", "dist/", "node_modules/", "coverage/", "*.json"]
}