-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathoxlintrc.json
More file actions
66 lines (66 loc) · 1.65 KB
/
oxlintrc.json
File metadata and controls
66 lines (66 loc) · 1.65 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
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["eslint", "unicorn", "typescript", "oxc", "promise"],
"categories": {
"correctness": "error",
"perf": "error",
"suspicious": "warn",
"pedantic": "error"
},
"env": {
"browser": true
},
"rules": {
"no-var": "error",
"no-debugger": "error",
"eqeqeq": ["error", "always", { "null": "ignore" }],
"max-lines-per-function": "off",
"array-callback-return": "off",
"unicorn/no-lonely-if": "off",
"unicorn/prefer-dom-node-append": "off",
"unicorn/prefer-dom-node-remove": "off",
"typescript/no-import-type-side-effects": "error",
"typescript/ban-ts-comment": "off",
"promise/always-return": "off"
},
"overrides": [
{
"files": ["src/**/*.ts"],
"rules": {
"no-console": ["error", { "allow": ["warn", "error"] }],
"oxc/no-this-in-exported-function": "error",
"oxc/no-rest-spread-properties": "error",
"oxc/no-map-spread": "error",
"oxc/no-async-await": "error"
}
},
{
"files": ["vitest.config.ts", "playwright.config.ts", "tests/unit/**/*.ts"],
"plugins": ["eslint", "unicorn", "typescript", "oxc", "promise", "vitest"],
"env": {
"node": true
}
},
{
"files": ["tests/browser/**/*.ts"],
"env": {
"node": true,
"browser": true
},
"rules": {
"oxc/no-this-in-exported-function": "off"
}
},
{
"files": ["**/*.d.ts"],
"rules": {
"unicorn/require-module-specifiers": "off"
}
}
],
"settings": {
"vitest": {
"typecheck": true
}
}
}