-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoxlint.config.ts
More file actions
39 lines (38 loc) · 920 Bytes
/
oxlint.config.ts
File metadata and controls
39 lines (38 loc) · 920 Bytes
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,
typeCheck: true,
},
plugins: ["unicorn", "typescript", "oxc"],
categories: {
correctness: "error",
perf: "error",
suspicious: "error",
},
rules: {
"eslint/no-await-in-loop": "off",
"no-console": ["error", { allow: ["error", "warn"] }],
"no-shadow": "off",
"typescript/no-unnecessary-boolean-literal-compare": "off",
"typescript/no-unsafe-type-assertion": "off",
curly: "off",
"typescript/no-base-to-string": "off",
"typescript/no-misused-spread": "off",
},
overrides: [
{
files: [".github/**/*", "scripts/**/*"],
rules: {
"no-console": "off",
},
},
{
files: ["test/**/*"],
rules: {
"typescript/unbound-method": "off",
"typescript/no-unsafe-member-access": "off",
},
},
],
});