-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy path.oxlintrc.json
More file actions
36 lines (36 loc) · 932 Bytes
/
Copy path.oxlintrc.json
File metadata and controls
36 lines (36 loc) · 932 Bytes
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
{
"$schema": "https://raw.githubusercontent.com/oxc-project/oxc/main/npm/oxlint/configuration_schema.json",
"plugins": ["typescript", "unicorn"],
"rules": {
"typescript/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_"
}
],
"typescript/no-explicit-any": "error",
"typescript/prefer-as-const": "error",
"typescript/no-non-null-assertion": "error",
"unicorn/prefer-node-protocol": "error",
"unicorn/prefer-module": "error",
"unicorn/no-array-for-each": "error",
"unicorn/prefer-top-level-await": "error"
},
"overrides": [
{
"files": ["test/**/*.ts", "**/*.test.ts", "**/*.spec.ts"],
"rules": {
"typescript/no-non-null-assertion": "off"
}
}
],
"env": {
"node": true,
"es2022": true
},
"globals": {
"NodeJS": "readonly"
}
}