-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.oxlintrc.json
More file actions
91 lines (89 loc) · 3.27 KB
/
.oxlintrc.json
File metadata and controls
91 lines (89 loc) · 3.27 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
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["typescript", "import", "unicorn"],
"categories": {
"correctness": "error",
"nursery": "error",
"pedantic": "error",
"perf": "error",
"restriction": "error",
"style": "error",
"suspicious": "error"
},
"env": {
"builtin": true,
"es2024": true,
"node": true
},
"rules": {
"typescript/explicit-function-return-type": "off",
"typescript/no-unsafe-member-access": "off",
"typescript/no-unsafe-argument": "off",
"typescript/no-unsafe-assignment": "off",
"typescript/no-unsafe-call": "off",
"typescript/prefer-nullish-coalescing": "off",
"typescript/no-unsafe-type-assertion": "off",
"typescript/prefer-readonly-parameter-types": "off",
"typescript/consistent-type-exports": "off",
"typescript/promise-function-async": "off",
"typescript/no-unsafe-return": "off",
"typescript/no-unnecessary-condition": "off",
"typescript/no-redundant-type-constituents": "off",
"eslint/no-await-in-loop": "off",
"eslint/capitalized-comments": "off",
"import/no-nodejs-modules": "off",
"unicorn/no-typeof-undefined": "off",
"eslint/prefer-destructuring": "off",
"unicorn/no-array-reduce": "off",
"eslint/no-console": "off",
"import/no-relative-parent-imports": "off",
"eslint/func-style": "off",
"typescript/no-explicit-any": "off",
"typescript/no-extraneous-class": "off",
"typescript/consistent-type-definitions": "off",
"eslint/max-params": "off",
"eslint/no-plusplus": "off",
"unicorn/no-useless-spread": "off",
"unicorn/prefer-node-protocol": "off",
"import/no-unassigned-import": "off",
"typescript/explicit-module-boundary-types": "off",
"unicorn/no-useless-fallback-in-spread": "off",
"unicorn/text-encoding-identifier-case": "off",
"typescript/no-inferrable-types": "off",
"eslint/require-await": "off",
"eslint/new-cap": "off",
"unicorn/numeric-separators-style": "off",
"unicorn/prefer-module": "off",
"unicorn/catch-error-name": "off",
"typescript/no-unnecessary-type-arguments": "off",
// custom config
// "eslint/func-style": ["error", "declaration"],
"typescript/return-await": ["error", "error-handling-correctness-only"],
// "unicorn/numeric-separators-style": ["error", { "number": { "minimumDigits": 4 } }],
// re-enable when autofix is implemented
"eslint/sort-imports": "off",
"eslint/sort-keys": "off",
// keep disabled
"eslint/id-length": "off",
"eslint/init-declarations": "off",
"eslint/max-lines": "off",
"eslint/max-lines-per-function": "off",
"eslint/max-statements": "off",
"eslint/no-duplicate-imports": "off",
"eslint/no-magic-numbers": "off",
"eslint/no-negated-condition": "off",
"eslint/no-ternary": "off",
"eslint/no-undefined": "off",
"import/group-exports": "off",
"import/max-dependencies": "off",
"import/no-default-export": "off",
"import/no-named-export": "off",
"import/no-namespace": "off",
"import/prefer-default-export": "off",
"typescript/strict-boolean-expressions": "off",
"unicorn/no-array-for-each": "off",
"unicorn/no-null": "off",
"unicorn/no-process-exit": "off",
"unicorn/number-literal-case": "off"
}
}