-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.oxlintrc.json
81 lines (81 loc) · 3.04 KB
/
.oxlintrc.json
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
72
73
74
75
76
77
78
79
80
81
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["import", "typescript", "unicorn", "oxc", "oxc-security"],
"env": {
"node": true,
"commonjs": true,
"es6": true
},
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"settings": {},
"categories": {
"correctness": "error",
"pedantic": "error",
"perf": "error",
"style": "error",
"suspicious": "error"
},
"rules": {
"eqeqeq": "warn",
"eslint/default-case": "error",
"eslint/no-console": "error",
"eslint/no-div-regex": "error",
"eslint/no-else-return": "off",
"eslint/no-empty": "error",
"eslint/no-empty-function": "error",
"eslint/no-eq-null": "error",
"eslint/no-eval": "error",
"eslint/no-regex-spaces": "error",
"eslint/no-restricted-globals": "error",
"eslint/no-var": "error",
"eslint/no-void": "error",
"eslint/require-await": "off",
"eslint/max-lines": ["error", 550],
"eslint/max-params": "off",
"eslint/no-magic-numbers": "off",
"eslint/no-ternary": "off",
"eslint/sort-imports": "off",
"eslint/yoda": "off",
"import/max-dependencies": "off",
"import/no-amd": "error",
"import/no-commonjs": "error",
"import/no-cycle": "error",
"import/no-default-export": "error",
"import/no-dynamic-require": "error",
"import/unambiguous": "error",
"jsdoc/empty-tags": "error",
"oxc/bad-bitwise-operator": "error",
"oxc/no-barrel-file": "error",
"oxc/no-const-enum": "error",
"promise/catch-or-return": "error",
"promise/spec-only": "error",
"typescript/consistent-generic-constructors": "off",
"typescript/consistent-indexed-object-style": "off",
"typescript/explicit-function-return-type": "error",
"typescript/no-dynamic-delete": "error",
"typescript/no-empty-object-type": "error",
"typescript/no-explicit-any": "error",
"typescript/no-import-type-side-effects": "error",
"typescript/no-namespace": "error",
"typescript/no-non-null-asserted-nullish-coalescing": "error",
"typescript/no-non-null-assertion": "error",
"typescript/no-require-imports": "error",
"typescript/prefer-literal-enum-member": "error",
"unicorn/catch-error-name": "off",
"unicorn/filename-case": "off",
"unicorn/no-abusive-eslint-disable": "error",
"unicorn/no-anonymous-default-export": "error",
"unicorn/no-array-for-each": "error",
"unicorn/no-array-reduce": "error",
"unicorn/no-length-as-slice-end": "error",
"unicorn/no-magic-array-flat-depth": "error",
"unicorn/no-null": "off",
"unicorn/no-process-exit": "error",
"unicorn/prefer-modern-math-apis": "error",
"unicorn/prefer-node-protocol": "error",
"unicorn/prefer-number-properties": "error"
}
}