-
Notifications
You must be signed in to change notification settings - Fork 48
Expand file tree
/
Copy path.oxlintrc.json
More file actions
46 lines (46 loc) · 1.34 KB
/
.oxlintrc.json
File metadata and controls
46 lines (46 loc) · 1.34 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
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["typescript", "vitest"],
"categories": {
"correctness": "error",
"suspicious": "warn"
},
"rules": {
"curly": "error",
"no-useless-concat": "off",
"no-unused-vars": "off",
"prefer-const": "error",
"@typescript-eslint/prefer-const": "error",
"@typescript-eslint/no-extraneous-class": "off",
"@typescript-eslint/await-thenable": "error",
"@typescript-eslint/no-floating-promises": "error",
"@typescript-eslint/require-await": "error"
},
"overrides": [
{
"files": ["**/*.test.ts", "**/*.spec.ts"],
"rules": {
"no-unsafe-optional-chaining": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unsafe-type-assertion": "off",
"@typescript-eslint/no-base-to-string": "off",
"@typescript-eslint/require-await": "off"
}
},
{
"files": ["examples/**/*.ts"],
"rules": {
"no-unused-vars": "off"
}
},
{
"files": ["apps/docs/**/*.{ts,tsx,mjs}"],
"rules": {
"@typescript-eslint/require-await": "off"
}
}
],
"ignorePatterns": ["dist", "node_modules", "checkouts", "tmp", ".docs"]
}