-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathoxlint.config.ts
More file actions
39 lines (38 loc) · 1.13 KB
/
Copy pathoxlint.config.ts
File metadata and controls
39 lines (38 loc) · 1.13 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
import { defineConfig } from "oxlint";
export default defineConfig({
options: {
typeAware: true,
},
plugins: ["typescript", "import"],
categories: {
correctness: "error",
suspicious: "error",
perf: "error",
},
rules: {
"no-unused-vars": "error",
"no-console": "error",
eqeqeq: "error",
"typescript/no-explicit-any": "error",
"typescript/no-non-null-assertion": "error",
"typescript/no-floating-promises": ["error", { ignoreVoid: true }],
"typescript/no-unsafe-type-assertion": "off",
"typescript/no-unnecessary-type-arguments": "off",
"typescript/no-redundant-type-constituents": "off",
"typescript/restrict-template-expressions": "off",
"typescript/no-unnecessary-type-assertion": "off",
"typescript/no-unnecessary-template-expression": "off",
"typescript/no-base-to-string": "off",
"typescript/unbound-method": "off",
"no-await-in-loop": "off",
"typescript/consistent-type-assertions": ["error", { assertionStyle: "never" }],
"require-yield": "off",
},
settings: {},
env: {
builtin: true,
node: true,
},
globals: {},
ignorePatterns: [],
});