-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy path.oxlintrc.jsonc
More file actions
52 lines (49 loc) · 1.52 KB
/
Copy path.oxlintrc.jsonc
File metadata and controls
52 lines (49 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
41
42
43
44
45
46
47
48
49
50
51
52
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["typescript", "unicorn", "oxc", "vitest", "import", "promise"],
"categories": {
"correctness": "error",
"suspicious": "error",
"perf": "error",
"pedantic": "error",
},
"options": {
"typeAware": true,
"typeCheck": false,
},
"rules": {
"func-style": "off",
"max-lines": "off",
"max-lines-per-function": "off",
"no-implicit-coercion": "off",
"no-magic-numbers": "off",
"no-ternary": "off",
"no-warning-comments": "off",
"sort-keys": "off",
"import/extensions": [
"error",
{
"ts": "always",
"tsx": "always",
"ignorePackages": true,
"checkTypeImports": true,
},
],
"vitest/no-conditional-in-test": "off",
"jest/no-conditional-in-test": "off",
"typescript/array-type": ["error", { "default": "generic", "readonly": "generic" }],
"typescript/ban-types": "off", // deprecated, replaced by no-unsafe-function-type and no-wrapper-object-types
"typescript/consistent-type-imports": "error",
"typescript/explicit-function-return-type": "off",
"typescript/explicit-module-boundary-types": "off",
"typescript/no-unsafe-type-assertion": "off",
"typescript/no-unsafe-function-type": "error",
"typescript/no-wrapper-object-types": "error",
"typescript/prefer-readonly-parameter-types": "off",
"typescript/return-await": "off",
"typescript/strict-boolean-expressions": "off",
},
"env": {
"builtin": true,
},
}