-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.oxlintrc.json
More file actions
61 lines (58 loc) · 2 KB
/
.oxlintrc.json
File metadata and controls
61 lines (58 loc) · 2 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
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["typescript", "import", "unicorn"],
"ignorePatterns": ["dist", ".turbo", "coverage", "**/tests/fixtures/", "apps/docs"],
"categories": {
"correctness": "error",
"suspicious": "error",
"nursery": "error",
"perf": "error",
"restriction": "off",
"style": "off",
"pedantic": "off"
},
"env": {
"builtin": true,
"es2024": true,
"node": true
},
"rules": {
"typescript/no-unsafe-type-assertion": "off",
"typescript/prefer-readonly-parameter-types": "off",
"typescript/consistent-type-exports": "off",
"typescript/no-unnecessary-condition": "off",
"typescript/no-redundant-type-constituents": "off",
"unicorn/no-array-sort": "off",
"typescript/prefer-optional-chain": "off",
"unicorn/no-useless-spread": "off",
// custom config
// "eslint/func-style": ["error", "declaration"],
"typescript/return-await": ["error", "error-handling-correctness-only"],
// "unicorn/numeric-separators-style": ["error", { "number": { "minimumDigits": 4 } }],
// re-enable when autofix is implemented
"eslint/sort-imports": "off",
"eslint/sort-keys": "off",
// keep disabled
"eslint/id-length": "off",
"eslint/init-declarations": "off",
"eslint/max-lines": "off",
"eslint/max-lines-per-function": "off",
"eslint/max-statements": "off",
"eslint/no-duplicate-imports": "off",
"eslint/no-magic-numbers": "off",
"eslint/no-negated-condition": "off",
"eslint/no-ternary": "off",
"eslint/no-undefined": "off",
"import/group-exports": "off",
"import/max-dependencies": "off",
"import/no-default-export": "off",
"import/no-named-export": "off",
"import/no-namespace": "off",
"import/prefer-default-export": "off",
"typescript/strict-boolean-expressions": "off",
"unicorn/no-array-for-each": "off",
"unicorn/no-null": "off",
"unicorn/no-process-exit": "off",
"unicorn/number-literal-case": "off"
}
}