-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathoxlintrc.json
More file actions
49 lines (47 loc) · 1.4 KB
/
oxlintrc.json
File metadata and controls
49 lines (47 loc) · 1.4 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
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["unicorn", "typescript", "oxc", "import", "node"],
"jsPlugins": ["./rules/plugin.js"],
"categories": {
"correctness": "error",
"suspicious": "warn"
},
"rules": {
"no-restricted-imports": [
"error",
{
"paths": [
{
"name": "node:path",
"message": "Use File URLs (new URL()) instead. Only use fileURLToPath() at third-party module boundaries."
},
{
"name": "path",
"message": "Use File URLs (new URL()) instead. Only use fileURLToPath() at third-party module boundaries."
},
{
"name": "node:path/posix",
"message": "Use File URLs (new URL()) instead."
},
{
"name": "node:path/win32",
"message": "Use File URLs (new URL()) instead."
}
]
}
],
"import/no-commonjs": "error",
"node/no-path-concat": "error",
"unicorn/prefer-node-protocol": "error",
"typescript/consistent-type-imports": "error",
"no-console": ["warn", { "allow": ["info", "warn", "error", "debug"] }],
"prefer-const": "error",
"no-var": "error",
"max-params": ["error", { "max": 2 }],
"typescript/explicit-function-return-type": ["warn", { "allowExpressions": true }],
"import/no-default-export": "error",
"bombshell-dev/no-generic-error": "error",
"bombshell-dev/require-export-jsdoc": "warn",
"bombshell-dev/exported-function-async": "warn"
}
}