@slango.configs/oxlint 0.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,143 @@
1
+ // Generated by scripts/generate-rules.js from @slango.configs/eslint/javascript-node.js — do not edit.
2
+
3
+ const rules = {
4
+ plugins: ['import'],
5
+ rules: {
6
+ 'constructor-super': 'error',
7
+ 'for-direction': 'error',
8
+ 'getter-return': 'error',
9
+ 'no-async-promise-executor': 'error',
10
+ 'no-case-declarations': 'error',
11
+ 'no-class-assign': 'error',
12
+ 'no-compare-neg-zero': 'error',
13
+ 'no-cond-assign': 'error',
14
+ 'no-const-assign': 'error',
15
+ 'no-constant-binary-expression': 'error',
16
+ 'no-constant-condition': 'error',
17
+ 'no-control-regex': 'error',
18
+ 'no-debugger': 'error',
19
+ 'no-delete-var': 'error',
20
+ 'no-dupe-class-members': 'error',
21
+ 'no-dupe-else-if': 'error',
22
+ 'no-dupe-keys': 'error',
23
+ 'no-duplicate-case': 'error',
24
+ 'no-empty': 'error',
25
+ 'no-empty-pattern': 'error',
26
+ 'no-empty-static-block': 'error',
27
+ 'no-ex-assign': 'error',
28
+ 'no-extra-boolean-cast': 'error',
29
+ 'no-fallthrough': 'error',
30
+ 'no-func-assign': 'error',
31
+ 'no-global-assign': 'error',
32
+ 'no-import-assign': 'error',
33
+ 'no-irregular-whitespace': 'error',
34
+ 'no-loss-of-precision': 'error',
35
+ 'no-misleading-character-class': 'error',
36
+ 'no-new-native-nonconstructor': 'error',
37
+ 'no-nonoctal-decimal-escape': 'error',
38
+ 'no-obj-calls': 'error',
39
+ 'no-prototype-builtins': 'error',
40
+ 'no-redeclare': 'error',
41
+ 'no-regex-spaces': 'error',
42
+ 'no-self-assign': 'error',
43
+ 'no-setter-return': 'error',
44
+ 'no-shadow-restricted-names': 'error',
45
+ 'no-sparse-arrays': 'error',
46
+ 'no-this-before-super': 'error',
47
+ 'no-unassigned-vars': 'error',
48
+ 'no-unreachable': 'error',
49
+ 'no-unsafe-finally': 'error',
50
+ 'no-unsafe-negation': 'error',
51
+ 'no-unsafe-optional-chaining': 'error',
52
+ 'no-unused-labels': 'error',
53
+ 'no-unused-private-class-members': 'error',
54
+ 'no-unused-vars': 'error',
55
+ 'no-useless-catch': 'error',
56
+ 'no-useless-escape': 'error',
57
+ 'no-with': 'error',
58
+ 'preserve-caught-error': 'error',
59
+ 'require-yield': 'error',
60
+ 'use-isnan': 'error',
61
+ 'valid-typeof': 'error',
62
+ 'import/namespace': 'error',
63
+ 'import/default': 'error',
64
+ 'import/no-named-as-default': 'warn',
65
+ 'import/no-named-as-default-member': 'warn',
66
+ 'import/no-duplicates': 'warn',
67
+ 'prefer-regex-literals': 'error',
68
+ 'regexp/confusing-quantifier': 'warn',
69
+ 'regexp/control-character-escape': 'error',
70
+ 'regexp/match-any': 'error',
71
+ 'regexp/negation': 'error',
72
+ 'regexp/no-contradiction-with-assertion': 'error',
73
+ 'regexp/no-dupe-characters-character-class': 'error',
74
+ 'regexp/no-dupe-disjunctions': 'error',
75
+ 'regexp/no-empty-alternative': 'warn',
76
+ 'regexp/no-empty-capturing-group': 'error',
77
+ 'regexp/no-empty-character-class': 'error',
78
+ 'regexp/no-empty-group': 'error',
79
+ 'regexp/no-empty-lookarounds-assertion': 'error',
80
+ 'regexp/no-empty-string-literal': 'error',
81
+ 'regexp/no-escape-backspace': 'error',
82
+ 'regexp/no-extra-lookaround-assertions': 'error',
83
+ 'regexp/no-invalid-regexp': 'error',
84
+ 'regexp/no-invisible-character': 'error',
85
+ 'regexp/no-lazy-ends': 'warn',
86
+ 'regexp/no-legacy-features': 'error',
87
+ 'regexp/no-misleading-capturing-group': 'error',
88
+ 'regexp/no-misleading-unicode-character': 'error',
89
+ 'regexp/no-missing-g-flag': 'error',
90
+ 'regexp/no-non-standard-flag': 'error',
91
+ 'regexp/no-obscure-range': 'error',
92
+ 'regexp/no-optional-assertion': 'error',
93
+ 'regexp/no-potentially-useless-backreference': 'warn',
94
+ 'regexp/no-super-linear-backtracking': 'error',
95
+ 'regexp/no-trivially-nested-assertion': 'error',
96
+ 'regexp/no-trivially-nested-quantifier': 'error',
97
+ 'regexp/no-unused-capturing-group': 'error',
98
+ 'regexp/no-useless-assertions': 'error',
99
+ 'regexp/no-useless-backreference': 'error',
100
+ 'regexp/no-useless-character-class': 'error',
101
+ 'regexp/no-useless-dollar-replacements': 'error',
102
+ 'regexp/no-useless-escape': 'error',
103
+ 'regexp/no-useless-flag': 'warn',
104
+ 'regexp/no-useless-lazy': 'error',
105
+ 'regexp/no-useless-non-capturing-group': 'error',
106
+ 'regexp/no-useless-quantifier': 'error',
107
+ 'regexp/no-useless-range': 'error',
108
+ 'regexp/no-useless-set-operand': 'error',
109
+ 'regexp/no-useless-string-literal': 'error',
110
+ 'regexp/no-useless-two-nums-quantifier': 'error',
111
+ 'regexp/no-zero-quantifier': 'error',
112
+ 'regexp/optimal-lookaround-quantifier': 'warn',
113
+ 'regexp/optimal-quantifier-concatenation': 'error',
114
+ 'regexp/prefer-character-class': 'error',
115
+ 'regexp/prefer-d': 'error',
116
+ 'regexp/prefer-plus-quantifier': 'error',
117
+ 'regexp/prefer-predefined-assertion': 'error',
118
+ 'regexp/prefer-question-quantifier': 'error',
119
+ 'regexp/prefer-range': 'error',
120
+ 'regexp/prefer-set-operation': 'error',
121
+ 'regexp/prefer-star-quantifier': 'error',
122
+ 'regexp/prefer-unicode-codepoint-escapes': 'error',
123
+ 'regexp/prefer-w': 'error',
124
+ 'regexp/simplify-set-operations': 'error',
125
+ 'regexp/sort-flags': 'error',
126
+ 'regexp/strict': 'error',
127
+ 'regexp/use-ignore-case': 'error',
128
+ 'import/first': 'error',
129
+ 'import/no-anonymous-default-export': 'error',
130
+ },
131
+ typescriptRules: {},
132
+ dropped: [
133
+ 'import-x/export',
134
+ 'import-x/named',
135
+ 'import-x/no-unresolved',
136
+ 'no-dupe-args',
137
+ 'no-octal',
138
+ 'no-undef',
139
+ 'no-useless-assignment',
140
+ ],
141
+ };
142
+
143
+ export default rules;
@@ -0,0 +1,214 @@
1
+ // Generated by scripts/generate-rules.js from @slango.configs/eslint/typescript-browser.js — do not edit.
2
+
3
+ const rules = {
4
+ plugins: ['import', 'typescript'],
5
+ rules: {
6
+ 'constructor-super': 'error',
7
+ 'for-direction': 'error',
8
+ 'getter-return': 'error',
9
+ 'no-async-promise-executor': 'error',
10
+ 'no-case-declarations': 'error',
11
+ 'no-class-assign': 'error',
12
+ 'no-compare-neg-zero': 'error',
13
+ 'no-cond-assign': 'error',
14
+ 'no-const-assign': 'error',
15
+ 'no-constant-binary-expression': 'error',
16
+ 'no-constant-condition': 'error',
17
+ 'no-control-regex': 'error',
18
+ 'no-debugger': 'error',
19
+ 'no-delete-var': 'error',
20
+ 'no-dupe-class-members': 'error',
21
+ 'no-dupe-else-if': 'error',
22
+ 'no-dupe-keys': 'error',
23
+ 'no-duplicate-case': 'error',
24
+ 'no-empty': 'error',
25
+ 'no-empty-pattern': 'error',
26
+ 'no-empty-static-block': 'error',
27
+ 'no-ex-assign': 'error',
28
+ 'no-extra-boolean-cast': 'error',
29
+ 'no-fallthrough': 'error',
30
+ 'no-func-assign': 'error',
31
+ 'no-global-assign': 'error',
32
+ 'no-import-assign': 'error',
33
+ 'no-irregular-whitespace': 'error',
34
+ 'no-loss-of-precision': 'error',
35
+ 'no-misleading-character-class': 'error',
36
+ 'no-new-native-nonconstructor': 'error',
37
+ 'no-nonoctal-decimal-escape': 'error',
38
+ 'no-obj-calls': 'error',
39
+ 'no-prototype-builtins': 'error',
40
+ 'no-redeclare': 'error',
41
+ 'no-regex-spaces': 'error',
42
+ 'no-self-assign': 'error',
43
+ 'no-setter-return': 'error',
44
+ 'no-shadow-restricted-names': 'error',
45
+ 'no-sparse-arrays': 'error',
46
+ 'no-this-before-super': 'error',
47
+ 'no-unassigned-vars': 'error',
48
+ 'no-unreachable': 'error',
49
+ 'no-unsafe-finally': 'error',
50
+ 'no-unsafe-negation': 'error',
51
+ 'no-unsafe-optional-chaining': 'error',
52
+ 'no-unused-labels': 'error',
53
+ 'no-unused-private-class-members': 'error',
54
+ 'no-unused-vars': 'error',
55
+ 'no-useless-catch': 'error',
56
+ 'no-useless-escape': 'error',
57
+ 'no-with': 'error',
58
+ 'preserve-caught-error': 'error',
59
+ 'require-yield': 'error',
60
+ 'use-isnan': 'error',
61
+ 'valid-typeof': 'error',
62
+ 'import/namespace': 'error',
63
+ 'import/default': 'error',
64
+ 'import/no-named-as-default': 'warn',
65
+ 'import/no-named-as-default-member': 'warn',
66
+ 'import/no-duplicates': 'warn',
67
+ 'prefer-regex-literals': 'error',
68
+ 'regexp/confusing-quantifier': 'warn',
69
+ 'regexp/control-character-escape': 'error',
70
+ 'regexp/match-any': 'error',
71
+ 'regexp/negation': 'error',
72
+ 'regexp/no-contradiction-with-assertion': 'error',
73
+ 'regexp/no-dupe-characters-character-class': 'error',
74
+ 'regexp/no-dupe-disjunctions': 'error',
75
+ 'regexp/no-empty-alternative': 'warn',
76
+ 'regexp/no-empty-capturing-group': 'error',
77
+ 'regexp/no-empty-character-class': 'error',
78
+ 'regexp/no-empty-group': 'error',
79
+ 'regexp/no-empty-lookarounds-assertion': 'error',
80
+ 'regexp/no-empty-string-literal': 'error',
81
+ 'regexp/no-escape-backspace': 'error',
82
+ 'regexp/no-extra-lookaround-assertions': 'error',
83
+ 'regexp/no-invalid-regexp': 'error',
84
+ 'regexp/no-invisible-character': 'error',
85
+ 'regexp/no-lazy-ends': 'warn',
86
+ 'regexp/no-legacy-features': 'error',
87
+ 'regexp/no-misleading-capturing-group': 'error',
88
+ 'regexp/no-misleading-unicode-character': 'error',
89
+ 'regexp/no-missing-g-flag': 'error',
90
+ 'regexp/no-non-standard-flag': 'error',
91
+ 'regexp/no-obscure-range': 'error',
92
+ 'regexp/no-optional-assertion': 'error',
93
+ 'regexp/no-potentially-useless-backreference': 'warn',
94
+ 'regexp/no-super-linear-backtracking': 'error',
95
+ 'regexp/no-trivially-nested-assertion': 'error',
96
+ 'regexp/no-trivially-nested-quantifier': 'error',
97
+ 'regexp/no-unused-capturing-group': 'error',
98
+ 'regexp/no-useless-assertions': 'error',
99
+ 'regexp/no-useless-backreference': 'error',
100
+ 'regexp/no-useless-character-class': 'error',
101
+ 'regexp/no-useless-dollar-replacements': 'error',
102
+ 'regexp/no-useless-escape': 'error',
103
+ 'regexp/no-useless-flag': 'warn',
104
+ 'regexp/no-useless-lazy': 'error',
105
+ 'regexp/no-useless-non-capturing-group': 'error',
106
+ 'regexp/no-useless-quantifier': 'error',
107
+ 'regexp/no-useless-range': 'error',
108
+ 'regexp/no-useless-set-operand': 'error',
109
+ 'regexp/no-useless-string-literal': 'error',
110
+ 'regexp/no-useless-two-nums-quantifier': 'error',
111
+ 'regexp/no-zero-quantifier': 'error',
112
+ 'regexp/optimal-lookaround-quantifier': 'warn',
113
+ 'regexp/optimal-quantifier-concatenation': 'error',
114
+ 'regexp/prefer-character-class': 'error',
115
+ 'regexp/prefer-d': 'error',
116
+ 'regexp/prefer-plus-quantifier': 'error',
117
+ 'regexp/prefer-predefined-assertion': 'error',
118
+ 'regexp/prefer-question-quantifier': 'error',
119
+ 'regexp/prefer-range': 'error',
120
+ 'regexp/prefer-set-operation': 'error',
121
+ 'regexp/prefer-star-quantifier': 'error',
122
+ 'regexp/prefer-unicode-codepoint-escapes': 'error',
123
+ 'regexp/prefer-w': 'error',
124
+ 'regexp/simplify-set-operations': 'error',
125
+ 'regexp/sort-flags': 'error',
126
+ 'regexp/strict': 'error',
127
+ 'regexp/use-ignore-case': 'error',
128
+ 'import/first': 'error',
129
+ 'import/no-anonymous-default-export': 'error',
130
+ },
131
+ typescriptRules: {
132
+ 'no-var': 'error',
133
+ 'prefer-const': 'error',
134
+ 'prefer-rest-params': 'error',
135
+ 'prefer-spread': 'error',
136
+ 'typescript/await-thenable': 'error',
137
+ 'typescript/ban-ts-comment': 'error',
138
+ 'no-array-constructor': 'error',
139
+ 'typescript/no-array-delete': 'error',
140
+ 'typescript/no-base-to-string': 'error',
141
+ 'typescript/no-duplicate-enum-values': 'error',
142
+ 'typescript/no-duplicate-type-constituents': 'error',
143
+ 'typescript/no-empty-object-type': 'error',
144
+ 'typescript/no-explicit-any': 'error',
145
+ 'typescript/no-extra-non-null-assertion': 'error',
146
+ 'typescript/no-floating-promises': 'error',
147
+ 'typescript/no-for-in-array': 'error',
148
+ 'typescript/no-implied-eval': 'error',
149
+ 'typescript/no-misused-new': 'error',
150
+ 'typescript/no-misused-promises': 'error',
151
+ 'typescript/no-namespace': 'error',
152
+ 'typescript/no-non-null-asserted-optional-chain': 'error',
153
+ 'typescript/no-redundant-type-constituents': 'error',
154
+ 'typescript/no-require-imports': 'error',
155
+ 'typescript/no-this-alias': 'error',
156
+ 'typescript/no-unnecessary-type-assertion': 'error',
157
+ 'typescript/no-unnecessary-type-constraint': 'error',
158
+ 'typescript/no-unsafe-argument': 'error',
159
+ 'typescript/no-unsafe-assignment': 'error',
160
+ 'typescript/no-unsafe-call': 'error',
161
+ 'typescript/no-unsafe-declaration-merging': 'error',
162
+ 'typescript/no-unsafe-enum-comparison': 'error',
163
+ 'typescript/no-unsafe-function-type': 'error',
164
+ 'typescript/no-unsafe-member-access': 'error',
165
+ 'typescript/no-unsafe-return': 'error',
166
+ 'typescript/no-unsafe-unary-minus': 'error',
167
+ 'no-unused-expressions': 'error',
168
+ 'no-unused-vars': [
169
+ 'error',
170
+ {
171
+ ignoreRestSiblings: true,
172
+ },
173
+ ],
174
+ 'typescript/no-wrapper-object-types': 'error',
175
+ 'typescript/only-throw-error': 'error',
176
+ 'typescript/prefer-as-const': 'error',
177
+ 'typescript/prefer-namespace-keyword': 'error',
178
+ 'typescript/prefer-promise-reject-errors': 'error',
179
+ 'typescript/require-await': 'error',
180
+ 'typescript/restrict-plus-operands': 'error',
181
+ 'typescript/restrict-template-expressions': 'error',
182
+ 'typescript/triple-slash-reference': 'error',
183
+ 'typescript/unbound-method': 'error',
184
+ 'constructor-super': 'off',
185
+ 'getter-return': 'off',
186
+ 'no-class-assign': 'off',
187
+ 'no-const-assign': 'off',
188
+ 'no-dupe-class-members': 'off',
189
+ 'no-dupe-keys': 'off',
190
+ 'no-func-assign': 'off',
191
+ 'no-import-assign': 'off',
192
+ 'no-new-native-nonconstructor': 'off',
193
+ 'no-obj-calls': 'off',
194
+ 'no-redeclare': 'off',
195
+ 'no-setter-return': 'off',
196
+ 'no-this-before-super': 'off',
197
+ 'no-unreachable': 'off',
198
+ 'no-unsafe-negation': 'off',
199
+ 'no-with': 'off',
200
+ 'import/first': 'off',
201
+ 'import/no-anonymous-default-export': 'off',
202
+ },
203
+ dropped: [
204
+ 'import-x/export',
205
+ 'import-x/named',
206
+ 'import-x/no-unresolved',
207
+ 'no-dupe-args',
208
+ 'no-octal',
209
+ 'no-undef',
210
+ 'no-useless-assignment',
211
+ ],
212
+ };
213
+
214
+ export default rules;
@@ -0,0 +1,214 @@
1
+ // Generated by scripts/generate-rules.js from @slango.configs/eslint/typescript-isomorphic.js — do not edit.
2
+
3
+ const rules = {
4
+ plugins: ['import', 'typescript'],
5
+ rules: {
6
+ 'constructor-super': 'error',
7
+ 'for-direction': 'error',
8
+ 'getter-return': 'error',
9
+ 'no-async-promise-executor': 'error',
10
+ 'no-case-declarations': 'error',
11
+ 'no-class-assign': 'error',
12
+ 'no-compare-neg-zero': 'error',
13
+ 'no-cond-assign': 'error',
14
+ 'no-const-assign': 'error',
15
+ 'no-constant-binary-expression': 'error',
16
+ 'no-constant-condition': 'error',
17
+ 'no-control-regex': 'error',
18
+ 'no-debugger': 'error',
19
+ 'no-delete-var': 'error',
20
+ 'no-dupe-class-members': 'error',
21
+ 'no-dupe-else-if': 'error',
22
+ 'no-dupe-keys': 'error',
23
+ 'no-duplicate-case': 'error',
24
+ 'no-empty': 'error',
25
+ 'no-empty-pattern': 'error',
26
+ 'no-empty-static-block': 'error',
27
+ 'no-ex-assign': 'error',
28
+ 'no-extra-boolean-cast': 'error',
29
+ 'no-fallthrough': 'error',
30
+ 'no-func-assign': 'error',
31
+ 'no-global-assign': 'error',
32
+ 'no-import-assign': 'error',
33
+ 'no-irregular-whitespace': 'error',
34
+ 'no-loss-of-precision': 'error',
35
+ 'no-misleading-character-class': 'error',
36
+ 'no-new-native-nonconstructor': 'error',
37
+ 'no-nonoctal-decimal-escape': 'error',
38
+ 'no-obj-calls': 'error',
39
+ 'no-prototype-builtins': 'error',
40
+ 'no-redeclare': 'error',
41
+ 'no-regex-spaces': 'error',
42
+ 'no-self-assign': 'error',
43
+ 'no-setter-return': 'error',
44
+ 'no-shadow-restricted-names': 'error',
45
+ 'no-sparse-arrays': 'error',
46
+ 'no-this-before-super': 'error',
47
+ 'no-unassigned-vars': 'error',
48
+ 'no-unreachable': 'error',
49
+ 'no-unsafe-finally': 'error',
50
+ 'no-unsafe-negation': 'error',
51
+ 'no-unsafe-optional-chaining': 'error',
52
+ 'no-unused-labels': 'error',
53
+ 'no-unused-private-class-members': 'error',
54
+ 'no-unused-vars': 'error',
55
+ 'no-useless-catch': 'error',
56
+ 'no-useless-escape': 'error',
57
+ 'no-with': 'error',
58
+ 'preserve-caught-error': 'error',
59
+ 'require-yield': 'error',
60
+ 'use-isnan': 'error',
61
+ 'valid-typeof': 'error',
62
+ 'import/namespace': 'error',
63
+ 'import/default': 'error',
64
+ 'import/no-named-as-default': 'warn',
65
+ 'import/no-named-as-default-member': 'warn',
66
+ 'import/no-duplicates': 'warn',
67
+ 'prefer-regex-literals': 'error',
68
+ 'regexp/confusing-quantifier': 'warn',
69
+ 'regexp/control-character-escape': 'error',
70
+ 'regexp/match-any': 'error',
71
+ 'regexp/negation': 'error',
72
+ 'regexp/no-contradiction-with-assertion': 'error',
73
+ 'regexp/no-dupe-characters-character-class': 'error',
74
+ 'regexp/no-dupe-disjunctions': 'error',
75
+ 'regexp/no-empty-alternative': 'warn',
76
+ 'regexp/no-empty-capturing-group': 'error',
77
+ 'regexp/no-empty-character-class': 'error',
78
+ 'regexp/no-empty-group': 'error',
79
+ 'regexp/no-empty-lookarounds-assertion': 'error',
80
+ 'regexp/no-empty-string-literal': 'error',
81
+ 'regexp/no-escape-backspace': 'error',
82
+ 'regexp/no-extra-lookaround-assertions': 'error',
83
+ 'regexp/no-invalid-regexp': 'error',
84
+ 'regexp/no-invisible-character': 'error',
85
+ 'regexp/no-lazy-ends': 'warn',
86
+ 'regexp/no-legacy-features': 'error',
87
+ 'regexp/no-misleading-capturing-group': 'error',
88
+ 'regexp/no-misleading-unicode-character': 'error',
89
+ 'regexp/no-missing-g-flag': 'error',
90
+ 'regexp/no-non-standard-flag': 'error',
91
+ 'regexp/no-obscure-range': 'error',
92
+ 'regexp/no-optional-assertion': 'error',
93
+ 'regexp/no-potentially-useless-backreference': 'warn',
94
+ 'regexp/no-super-linear-backtracking': 'error',
95
+ 'regexp/no-trivially-nested-assertion': 'error',
96
+ 'regexp/no-trivially-nested-quantifier': 'error',
97
+ 'regexp/no-unused-capturing-group': 'error',
98
+ 'regexp/no-useless-assertions': 'error',
99
+ 'regexp/no-useless-backreference': 'error',
100
+ 'regexp/no-useless-character-class': 'error',
101
+ 'regexp/no-useless-dollar-replacements': 'error',
102
+ 'regexp/no-useless-escape': 'error',
103
+ 'regexp/no-useless-flag': 'warn',
104
+ 'regexp/no-useless-lazy': 'error',
105
+ 'regexp/no-useless-non-capturing-group': 'error',
106
+ 'regexp/no-useless-quantifier': 'error',
107
+ 'regexp/no-useless-range': 'error',
108
+ 'regexp/no-useless-set-operand': 'error',
109
+ 'regexp/no-useless-string-literal': 'error',
110
+ 'regexp/no-useless-two-nums-quantifier': 'error',
111
+ 'regexp/no-zero-quantifier': 'error',
112
+ 'regexp/optimal-lookaround-quantifier': 'warn',
113
+ 'regexp/optimal-quantifier-concatenation': 'error',
114
+ 'regexp/prefer-character-class': 'error',
115
+ 'regexp/prefer-d': 'error',
116
+ 'regexp/prefer-plus-quantifier': 'error',
117
+ 'regexp/prefer-predefined-assertion': 'error',
118
+ 'regexp/prefer-question-quantifier': 'error',
119
+ 'regexp/prefer-range': 'error',
120
+ 'regexp/prefer-set-operation': 'error',
121
+ 'regexp/prefer-star-quantifier': 'error',
122
+ 'regexp/prefer-unicode-codepoint-escapes': 'error',
123
+ 'regexp/prefer-w': 'error',
124
+ 'regexp/simplify-set-operations': 'error',
125
+ 'regexp/sort-flags': 'error',
126
+ 'regexp/strict': 'error',
127
+ 'regexp/use-ignore-case': 'error',
128
+ 'import/first': 'error',
129
+ 'import/no-anonymous-default-export': 'error',
130
+ },
131
+ typescriptRules: {
132
+ 'no-var': 'error',
133
+ 'prefer-const': 'error',
134
+ 'prefer-rest-params': 'error',
135
+ 'prefer-spread': 'error',
136
+ 'typescript/await-thenable': 'error',
137
+ 'typescript/ban-ts-comment': 'error',
138
+ 'no-array-constructor': 'error',
139
+ 'typescript/no-array-delete': 'error',
140
+ 'typescript/no-base-to-string': 'error',
141
+ 'typescript/no-duplicate-enum-values': 'error',
142
+ 'typescript/no-duplicate-type-constituents': 'error',
143
+ 'typescript/no-empty-object-type': 'error',
144
+ 'typescript/no-explicit-any': 'error',
145
+ 'typescript/no-extra-non-null-assertion': 'error',
146
+ 'typescript/no-floating-promises': 'error',
147
+ 'typescript/no-for-in-array': 'error',
148
+ 'typescript/no-implied-eval': 'error',
149
+ 'typescript/no-misused-new': 'error',
150
+ 'typescript/no-misused-promises': 'error',
151
+ 'typescript/no-namespace': 'error',
152
+ 'typescript/no-non-null-asserted-optional-chain': 'error',
153
+ 'typescript/no-redundant-type-constituents': 'error',
154
+ 'typescript/no-require-imports': 'error',
155
+ 'typescript/no-this-alias': 'error',
156
+ 'typescript/no-unnecessary-type-assertion': 'error',
157
+ 'typescript/no-unnecessary-type-constraint': 'error',
158
+ 'typescript/no-unsafe-argument': 'error',
159
+ 'typescript/no-unsafe-assignment': 'error',
160
+ 'typescript/no-unsafe-call': 'error',
161
+ 'typescript/no-unsafe-declaration-merging': 'error',
162
+ 'typescript/no-unsafe-enum-comparison': 'error',
163
+ 'typescript/no-unsafe-function-type': 'error',
164
+ 'typescript/no-unsafe-member-access': 'error',
165
+ 'typescript/no-unsafe-return': 'error',
166
+ 'typescript/no-unsafe-unary-minus': 'error',
167
+ 'no-unused-expressions': 'error',
168
+ 'no-unused-vars': [
169
+ 'error',
170
+ {
171
+ ignoreRestSiblings: true,
172
+ },
173
+ ],
174
+ 'typescript/no-wrapper-object-types': 'error',
175
+ 'typescript/only-throw-error': 'error',
176
+ 'typescript/prefer-as-const': 'error',
177
+ 'typescript/prefer-namespace-keyword': 'error',
178
+ 'typescript/prefer-promise-reject-errors': 'error',
179
+ 'typescript/require-await': 'error',
180
+ 'typescript/restrict-plus-operands': 'error',
181
+ 'typescript/restrict-template-expressions': 'error',
182
+ 'typescript/triple-slash-reference': 'error',
183
+ 'typescript/unbound-method': 'error',
184
+ 'constructor-super': 'off',
185
+ 'getter-return': 'off',
186
+ 'no-class-assign': 'off',
187
+ 'no-const-assign': 'off',
188
+ 'no-dupe-class-members': 'off',
189
+ 'no-dupe-keys': 'off',
190
+ 'no-func-assign': 'off',
191
+ 'no-import-assign': 'off',
192
+ 'no-new-native-nonconstructor': 'off',
193
+ 'no-obj-calls': 'off',
194
+ 'no-redeclare': 'off',
195
+ 'no-setter-return': 'off',
196
+ 'no-this-before-super': 'off',
197
+ 'no-unreachable': 'off',
198
+ 'no-unsafe-negation': 'off',
199
+ 'no-with': 'off',
200
+ 'import/first': 'off',
201
+ 'import/no-anonymous-default-export': 'off',
202
+ },
203
+ dropped: [
204
+ 'import-x/export',
205
+ 'import-x/named',
206
+ 'import-x/no-unresolved',
207
+ 'no-dupe-args',
208
+ 'no-octal',
209
+ 'no-undef',
210
+ 'no-useless-assignment',
211
+ ],
212
+ };
213
+
214
+ export default rules;