-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathoxlintrc.json
More file actions
62 lines (59 loc) · 1.66 KB
/
Copy pathoxlintrc.json
File metadata and controls
62 lines (59 loc) · 1.66 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
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["unicorn", "typescript", "oxc", "import", "node"],
"jsPlugins": ["./rules/plugin.js"],
"categories": {
"correctness": "error",
"suspicious": "warn"
},
"overrides": [
{
"files": ["**/*.config.{ts,mts,js,mjs,cjs}", "rules/**/*.{js,ts}"],
"rules": {
"import/no-default-export": "off"
}
}
],
"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": "off",
"bombshell-dev/no-console-log": "warn",
"prefer-const": "error",
"no-var": "error",
"max-params": "off",
"bombshell-dev/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",
"unicorn/consistent-function-scoping": "off",
"no-underscore-dangle": "off"
}
}