-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.oxlintrc.json
More file actions
97 lines (97 loc) · 3.4 KB
/
Copy path.oxlintrc.json
File metadata and controls
97 lines (97 loc) · 3.4 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["typescript", "unicorn", "oxc"],
"categories": {
"correctness": "error"
},
"ignorePatterns": ["coverage/**", "dist/**", "node_modules/**"],
"env": {
"builtin": true,
"node": true
},
"overrides": [
{
"files": ["test/**/*.ts", "vitest.config.ts"],
"env": {
"vitest": true
}
}
],
"options": {
"maxWarnings": 0,
"typeAware": true
},
"rules": {
"typescript/ban-ts-comment": ["error", { "minimumDescriptionLength": 10 }],
"typescript/consistent-type-imports": [
"error",
{ "prefer": "type-imports" }
],
"no-array-constructor": "error",
"no-case-declarations": "error",
"typescript/no-confusing-void-expression": [
"error",
{ "ignoreArrowShorthand": true }
],
"typescript/no-deprecated": "error",
"typescript/no-dynamic-delete": "error",
"no-empty": ["error", { "allowEmptyCatch": false }],
"typescript/no-empty-object-type": "error",
"typescript/no-explicit-any": "error",
"typescript/no-extraneous-class": "error",
"no-fallthrough": "error",
"typescript/no-floating-promises": "error",
"typescript/no-invalid-void-type": "error",
"typescript/no-misused-promises": "error",
"typescript/no-mixed-enums": "error",
"typescript/no-namespace": "error",
"unicorn/no-new-array": "off",
"typescript/no-non-null-asserted-nullish-coalescing": "error",
"typescript/no-non-null-assertion": "error",
"no-prototype-builtins": "error",
"no-regex-spaces": "error",
"typescript/no-require-imports": "error",
"typescript/no-unnecessary-boolean-literal-compare": "error",
"typescript/no-unnecessary-condition": "error",
"typescript/no-unnecessary-template-expression": "error",
"typescript/no-unnecessary-type-arguments": "error",
"typescript/no-unnecessary-type-assertion": "error",
"typescript/no-unnecessary-type-constraint": "error",
"typescript/no-unnecessary-type-conversion": "error",
"typescript/no-unnecessary-type-parameters": "error",
"typescript/no-unsafe-argument": "error",
"typescript/no-unsafe-assignment": "error",
"typescript/no-unsafe-call": "error",
"typescript/no-unsafe-enum-comparison": "error",
"typescript/no-unsafe-function-type": "error",
"typescript/no-unsafe-member-access": "error",
"typescript/no-unsafe-return": "error",
"no-useless-assignment": "off",
"no-useless-constructor": "error",
"no-var": "error",
"typescript/only-throw-error": "error",
"prefer-const": "error",
"typescript/prefer-literal-enum-member": "error",
"typescript/prefer-promise-reject-errors": "error",
"typescript/prefer-reduce-type-parameter": "error",
"prefer-rest-params": "error",
"typescript/prefer-return-this-type": "error",
"prefer-spread": "error",
"preserve-caught-error": "error",
"typescript/related-getter-setter-pairs": "error",
"typescript/require-await": "error",
"typescript/restrict-plus-operands": [
"error",
{
"allowAny": false,
"allowBoolean": false,
"allowNullish": false,
"allowNumberAndString": false,
"allowRegExp": false
}
],
"typescript/return-await": ["error", "error-handling-correctness-only"],
"typescript/unified-signatures": "error",
"typescript/use-unknown-in-catch-callback-variable": "error"
}
}