-
-
Notifications
You must be signed in to change notification settings - Fork 91
Expand file tree
/
Copy path.oxlintrc.json
More file actions
89 lines (89 loc) · 3.11 KB
/
Copy path.oxlintrc.json
File metadata and controls
89 lines (89 loc) · 3.11 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
// ERROR = the gate. Only rules whose every hit in this repo was a real defect;
// a rule here fails CI. WARN = visible in the output, not blocking.
//
// `"categories": {}` does NOT switch oxlint's defaults off: about 35 further
// rules run at warn severity, so 98 rules run in total and a rule you cannot
// find below is one of those. The ERROR tier is exactly this list.
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": [
"unicorn",
"typescript",
"oxc"
],
"categories": {},
"rules": {
"no-async-promise-executor": "error",
"no-await-in-loop": "off",
"no-compare-neg-zero": "error",
"no-cond-assign": "error",
"no-const-assign": "error",
"no-constant-binary-expression": "error",
"no-control-regex": "error",
"no-debugger": "error",
"no-dupe-class-members": "error",
"no-dupe-else-if": "error",
"no-dupe-keys": "error",
"no-duplicate-case": "error",
"no-empty-character-class": "error",
"no-empty-pattern": "error",
"no-ex-assign": "error",
"no-fallthrough": "error",
"no-func-assign": "error",
"no-import-assign": "error",
"no-inner-declarations": "error",
"no-invalid-regexp": "error",
"no-irregular-whitespace": "error",
"no-new-native-nonconstructor": "error",
"no-obj-calls": "error",
"no-self-assign": "error",
"no-self-compare": "error",
"no-setter-return": "error",
"no-sparse-arrays": "error",
"no-template-curly-in-string": "error",
"no-this-before-super": "error",
"no-unreachable": "error",
"no-unsafe-finally": "error",
"no-unsafe-negation": "error",
"no-useless-backreference": "error",
"no-useless-catch": "error",
"no-with": "error",
"require-yield": "error",
"use-isnan": "error",
"valid-typeof": "error",
"typescript/no-duplicate-enum-values": "error",
"typescript/no-extra-non-null-assertion": "error",
"typescript/no-misused-new": "error",
"typescript/no-non-null-asserted-optional-chain": "error",
"typescript/no-unsafe-declaration-merging": "error",
"typescript/no-useless-empty-export": "error",
"typescript/prefer-as-const": "error",
"unicorn/no-await-in-promise-methods": "error",
"unicorn/no-invalid-fetch-options": "error",
"unicorn/no-invalid-remove-event-listener": "error",
"unicorn/no-single-promise-in-promise-methods": "error",
"unicorn/no-thenable": "error",
"unicorn/no-unnecessary-await": "error",
"unicorn/no-useless-fallback-in-spread": "warn",
"unicorn/no-useless-length-check": "warn",
"unicorn/no-useless-spread": "warn",
"unicorn/no-new-array": "off",
"eslint/no-unused-vars": "warn",
"eslint/no-unused-expressions": "warn",
"eslint/no-useless-escape": "warn",
"eslint/no-unsafe-optional-chaining": "warn",
"eslint/no-loss-of-precision": "error",
"oxc/erasing-op": "off",
"oxc/only-used-in-recursion": "warn"
},
"ignorePatterns": [
"**/dist/**",
"**/pkg/**",
"**/node_modules/**",
"**/*.d.ts",
"apps/viewer/src/lib/scripts/templates/**",
"**/generated/**",
"**/__fixtures__/**",
"apps/landing/**"
]
}