-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.oxlintrc.json
More file actions
64 lines (64 loc) · 1.97 KB
/
.oxlintrc.json
File metadata and controls
64 lines (64 loc) · 1.97 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
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["typescript", "unicorn", "eslint", "oxc"],
// All rules in all plugins are enabled and we can filter by category
// It's easier to disable rules like this
"categories": {
"correctness": "error",
"suspicious": "error",
"pedantic": "error",
"perf": "error",
"style": "error",
"restriction": "error"
},
"rules": {
// Force having file extensions
"import/extensions": ["error", "always"],
// We always use async
"oxc/no-async-await": "off",
"typescript/explicit-function-return-type": "off",
"typescript/explicit-module-boundary-types": "off",
"oxc/no-optional-chaining": "off",
"eslint/no-undefined": "warn",
"oxc/no-barrel-file": "warn",
"import/no-named-export": "off",
"import/group-exports": "off",
// Does not handle type imports
"eslint/no-duplicate-imports": "off",
"import/prefer-default-export": "off",
"eslint/arrow-body-style": "off",
"eslint/no-ternary": "off",
"eslint/id-length": "off",
// Wait until real autofix ?
"eslint/sort-imports": "off",
"eslint/no-continue": "off",
"eslint/require-await": "off",
"import/max-dependencies": "off",
"eslint/max-lines-per-function": "off",
"eslint/sort-keys": "off",
"eslint/no-magic-numbers": "off",
"oxc/no-rest-spread-properties": "off",
"eslint/no-empty-function": "off",
"import/exports-last": "off",
"eslint/max-statements": "off"
},
"overrides": [
{
"files": ["**/*.test.ts"],
"rules": {
"typescript/no-unsafe-assignment": "off",
"typescript/no-unsafe-type-assertion": "off",
"eslint/no-empty-pattern": "off",
"unicorn/no-null": "off"
}
},
{
"files": ["**/*.config.{js,ts}", "knip.ts"],
"rules": {
"import/extensions": "off",
"import/no-default-export": "off",
"import/no-anonymous-default-export": "off"
}
}
]
}