-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.oxlintrc.json
More file actions
38 lines (37 loc) · 1.08 KB
/
Copy path.oxlintrc.json
File metadata and controls
38 lines (37 loc) · 1.08 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
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["import", "oxc", "unicorn", "jsdoc", "eslint", "typescript"],
"rules": {
"no-control-regex": "off",
"no-else-return": "error",
"no-lonely-if": "error",
"unicorn/no-lonely-if": "error",
"oxc/branches-sharing-code": "error",
"max-depth": "error",
"typescript/no-explicit-any": "error",
"typescript/restrict-template-expressions": "off",
"import/no-duplicates": "error",
"import/no-cycle": "error",
"sort-keys": ["error", "asc", { "natural": true }],
"oxc/no-map-spread": "error",
"oxc/no-accumulating-spread": "error",
"typescript/require-array-sort-compare": "off",
"unicorn/prefer-array-index-of": "error",
"unicorn/no-useless-iterator-to-array": "error",
"unicorn/no-new-array": "off",
"eslint/prefer-destructuring": "error",
"eslint/func-names": ["error", "always"],
"check-access": "warn"
},
"categories": {
"perf": "error"
},
"overrides": [
{
"files": ["src/test-npm-packlist/**/*.ts", "src/targets/**/*.test.ts"],
"rules": {
"sort-keys": "off"
}
}
]
}