-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy path.oxlintrc.json
More file actions
71 lines (67 loc) · 2.44 KB
/
Copy path.oxlintrc.json
File metadata and controls
71 lines (67 loc) · 2.44 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
67
68
69
70
71
{
"$schema": "https://raw.githubusercontent.com/nicolo-ribaudo/oxc/json-schema/.oxlintrc.json/npm/oxlint/configuration_schema.json",
"plugins": ["typescript", "promise", "unicorn", "import"],
"categories": {
"correctness": "error",
"suspicious": "warn"
},
"rules": {
"no-with": "error",
"no-labels": "error",
"no-underscore-dangle": "off",
"max-lines": ["error", { "max": 500, "skipBlankLines": true, "skipComments": true }],
"complexity": ["error", { "max": 10 }],
"no-console": "off",
"no-unused-vars": [
"warn",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"ignoreRestSiblings": true
}
],
"promise/no-return-wrap": "error",
"promise/param-names": "error",
"promise/catch-or-return": "error",
"promise/no-nesting": "warn",
"promise/no-promise-in-callback": "warn",
"promise/no-callback-in-promise": "warn",
"promise/no-new-statics": "error",
"promise/no-return-in-finally": "warn",
"promise/valid-params": "warn",
"unicorn/no-null": "off",
"unicorn/no-await-expression-member": "error",
"import/first": "error",
"import/no-duplicates": "error",
"import/no-cycle": "warn",
"typescript/no-unused-vars": "off",
"typescript/no-floating-promises": "error",
"typescript/await-thenable": "error"
},
"ignorePatterns": ["dist/**", "build/**", "coverage/**", ".bun/**", "node_modules/**", "*.lock"],
"overrides": [
{
"files": ["**/*.test.ts", "**/*.spec.ts", "**/test/**/*.ts", "**/__tests__/**/*.ts"],
"rules": {
"typescript/no-explicit-any": "off",
"typescript/no-unsafe-argument": "off",
"typescript/no-unsafe-assignment": "off",
"typescript/no-unsafe-call": "off",
"typescript/no-unsafe-member-access": "off",
"typescript/no-unsafe-return": "off",
"typescript/no-floating-promises": "off",
"typescript/no-non-null-assertion": "off",
"typescript/no-unnecessary-type-assertion": "off",
"typescript/no-unsafe-type-assertion": "off",
"typescript/no-unnecessary-boolean-literal-compare": "off",
"typescript/unbound-method": "off",
"typescript/require-await": "off",
"typescript/no-magic-numbers": "off",
"typescript/no-empty-function": "off",
"typescript/no-unused-expressions": "off",
"typescript/no-unused-vars": "off",
"no-unused-vars": "off"
}
}
]
}