@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.
- package/LICENSE +201 -0
- package/README.md +101 -0
- package/package.json +37 -0
- package/src/common.js +135 -0
- package/src/presets/javascript-node.d.ts +8 -0
- package/src/presets/javascript-node.js +11 -0
- package/src/presets/options.d.ts +6 -0
- package/src/presets/typescript-browser.d.ts +8 -0
- package/src/presets/typescript-browser.js +12 -0
- package/src/presets/typescript-isomorphic.d.ts +8 -0
- package/src/presets/typescript-isomorphic.js +12 -0
- package/src/presets/typescript-next.d.ts +8 -0
- package/src/presets/typescript-next.js +14 -0
- package/src/presets/typescript-node.d.ts +8 -0
- package/src/presets/typescript-node.js +11 -0
- package/src/presets/typescript-react.d.ts +8 -0
- package/src/presets/typescript-react.js +12 -0
- package/src/presets/typescript.d.ts +8 -0
- package/src/presets/typescript.js +11 -0
- package/src/rules/javascript-node.js +143 -0
- package/src/rules/typescript-browser.js +214 -0
- package/src/rules/typescript-isomorphic.js +214 -0
- package/src/rules/typescript-next.js +361 -0
- package/src/rules/typescript-node.js +214 -0
- package/src/rules/typescript-react.js +320 -0
- package/src/rules/typescript.js +214 -0
|
@@ -0,0 +1,361 @@
|
|
|
1
|
+
// Generated by scripts/generate-rules.js from @slango.configs/eslint/typescript-next.js — do not edit.
|
|
2
|
+
|
|
3
|
+
const rules = {
|
|
4
|
+
plugins: ['import', 'jsx-a11y', 'nextjs', 'react', '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
|
+
'jsx-a11y/alt-text': 'error',
|
|
131
|
+
'jsx-a11y/anchor-has-content': 'error',
|
|
132
|
+
'jsx-a11y/anchor-is-valid': 'error',
|
|
133
|
+
'jsx-a11y/aria-activedescendant-has-tabindex': 'error',
|
|
134
|
+
'jsx-a11y/aria-props': 'error',
|
|
135
|
+
'jsx-a11y/aria-proptypes': 'error',
|
|
136
|
+
'jsx-a11y/aria-role': 'error',
|
|
137
|
+
'jsx-a11y/aria-unsupported-elements': 'error',
|
|
138
|
+
'jsx-a11y/autocomplete-valid': 'error',
|
|
139
|
+
'jsx-a11y/click-events-have-key-events': 'error',
|
|
140
|
+
'jsx-a11y/heading-has-content': 'error',
|
|
141
|
+
'jsx-a11y/html-has-lang': 'error',
|
|
142
|
+
'jsx-a11y/iframe-has-title': 'error',
|
|
143
|
+
'jsx-a11y/img-redundant-alt': 'error',
|
|
144
|
+
'jsx-a11y/interactive-supports-focus': [
|
|
145
|
+
'error',
|
|
146
|
+
{
|
|
147
|
+
tabbable: ['button', 'checkbox', 'link', 'searchbox', 'spinbutton', 'switch', 'textbox'],
|
|
148
|
+
},
|
|
149
|
+
],
|
|
150
|
+
'jsx-a11y/label-has-associated-control': 'error',
|
|
151
|
+
'jsx-a11y/media-has-caption': 'error',
|
|
152
|
+
'jsx-a11y/mouse-events-have-key-events': 'error',
|
|
153
|
+
'jsx-a11y/no-access-key': 'error',
|
|
154
|
+
'jsx-a11y/no-autofocus': 'error',
|
|
155
|
+
'jsx-a11y/no-distracting-elements': 'error',
|
|
156
|
+
'jsx-a11y/no-interactive-element-to-noninteractive-role': [
|
|
157
|
+
'error',
|
|
158
|
+
{
|
|
159
|
+
tr: ['none', 'presentation'],
|
|
160
|
+
canvas: ['img'],
|
|
161
|
+
},
|
|
162
|
+
],
|
|
163
|
+
'jsx-a11y/no-noninteractive-element-interactions': [
|
|
164
|
+
'error',
|
|
165
|
+
{
|
|
166
|
+
handlers: [
|
|
167
|
+
'onClick',
|
|
168
|
+
'onError',
|
|
169
|
+
'onLoad',
|
|
170
|
+
'onMouseDown',
|
|
171
|
+
'onMouseUp',
|
|
172
|
+
'onKeyPress',
|
|
173
|
+
'onKeyDown',
|
|
174
|
+
'onKeyUp',
|
|
175
|
+
],
|
|
176
|
+
alert: ['onKeyUp', 'onKeyDown', 'onKeyPress'],
|
|
177
|
+
body: ['onError', 'onLoad'],
|
|
178
|
+
dialog: ['onKeyUp', 'onKeyDown', 'onKeyPress'],
|
|
179
|
+
iframe: ['onError', 'onLoad'],
|
|
180
|
+
img: ['onError', 'onLoad'],
|
|
181
|
+
},
|
|
182
|
+
],
|
|
183
|
+
'jsx-a11y/no-noninteractive-element-to-interactive-role': [
|
|
184
|
+
'error',
|
|
185
|
+
{
|
|
186
|
+
ul: ['listbox', 'menu', 'menubar', 'radiogroup', 'tablist', 'tree', 'treegrid'],
|
|
187
|
+
ol: ['listbox', 'menu', 'menubar', 'radiogroup', 'tablist', 'tree', 'treegrid'],
|
|
188
|
+
li: ['menuitem', 'menuitemradio', 'menuitemcheckbox', 'option', 'row', 'tab', 'treeitem'],
|
|
189
|
+
table: ['grid'],
|
|
190
|
+
td: ['gridcell'],
|
|
191
|
+
fieldset: ['radiogroup', 'presentation'],
|
|
192
|
+
},
|
|
193
|
+
],
|
|
194
|
+
'jsx-a11y/no-noninteractive-tabindex': [
|
|
195
|
+
'error',
|
|
196
|
+
{
|
|
197
|
+
tags: [],
|
|
198
|
+
roles: ['tabpanel'],
|
|
199
|
+
allowExpressionValues: true,
|
|
200
|
+
},
|
|
201
|
+
],
|
|
202
|
+
'jsx-a11y/no-redundant-roles': 'error',
|
|
203
|
+
'jsx-a11y/no-static-element-interactions': [
|
|
204
|
+
'error',
|
|
205
|
+
{
|
|
206
|
+
allowExpressionValues: true,
|
|
207
|
+
handlers: ['onClick', 'onMouseDown', 'onMouseUp', 'onKeyPress', 'onKeyDown', 'onKeyUp'],
|
|
208
|
+
},
|
|
209
|
+
],
|
|
210
|
+
'jsx-a11y/role-has-required-aria-props': 'error',
|
|
211
|
+
'jsx-a11y/role-supports-aria-props': 'error',
|
|
212
|
+
'jsx-a11y/scope': 'error',
|
|
213
|
+
'jsx-a11y/tabindex-no-positive': 'error',
|
|
214
|
+
'react/rules-of-hooks': 'error',
|
|
215
|
+
'react/exhaustive-deps': 'warn',
|
|
216
|
+
'react/static-components': 'error',
|
|
217
|
+
'react/use-memo': 'error',
|
|
218
|
+
'react/preserve-manual-memoization': 'error',
|
|
219
|
+
'react/incompatible-library': 'warn',
|
|
220
|
+
'react/immutability': 'error',
|
|
221
|
+
'react/globals': 'error',
|
|
222
|
+
'react/refs': 'error',
|
|
223
|
+
'react/set-state-in-effect': 'error',
|
|
224
|
+
'react/error-boundaries': 'error',
|
|
225
|
+
'react/purity': 'error',
|
|
226
|
+
'react/set-state-in-render': 'error',
|
|
227
|
+
'react/unsupported-syntax': 'warn',
|
|
228
|
+
'react/only-export-components': [
|
|
229
|
+
'error',
|
|
230
|
+
{
|
|
231
|
+
allowExportNames: [
|
|
232
|
+
'experimental_ppr',
|
|
233
|
+
'dynamic',
|
|
234
|
+
'dynamicParams',
|
|
235
|
+
'revalidate',
|
|
236
|
+
'fetchCache',
|
|
237
|
+
'runtime',
|
|
238
|
+
'preferredRegion',
|
|
239
|
+
'maxDuration',
|
|
240
|
+
'metadata',
|
|
241
|
+
'generateMetadata',
|
|
242
|
+
'viewport',
|
|
243
|
+
'generateViewport',
|
|
244
|
+
'generateImageMetadata',
|
|
245
|
+
'generateSitemaps',
|
|
246
|
+
'generateStaticParams',
|
|
247
|
+
'instant',
|
|
248
|
+
'contentType',
|
|
249
|
+
'size',
|
|
250
|
+
],
|
|
251
|
+
},
|
|
252
|
+
],
|
|
253
|
+
'nextjs/google-font-display': 'warn',
|
|
254
|
+
'nextjs/google-font-preconnect': 'warn',
|
|
255
|
+
'nextjs/next-script-for-ga': 'warn',
|
|
256
|
+
'nextjs/no-async-client-component': 'warn',
|
|
257
|
+
'nextjs/no-before-interactive-script-outside-document': 'warn',
|
|
258
|
+
'nextjs/no-css-tags': 'warn',
|
|
259
|
+
'nextjs/no-head-element': 'warn',
|
|
260
|
+
'nextjs/no-html-link-for-pages': 'error',
|
|
261
|
+
'nextjs/no-img-element': 'warn',
|
|
262
|
+
'nextjs/no-page-custom-font': 'warn',
|
|
263
|
+
'nextjs/no-styled-jsx-in-document': 'warn',
|
|
264
|
+
'nextjs/no-sync-scripts': 'error',
|
|
265
|
+
'nextjs/no-title-in-document-head': 'warn',
|
|
266
|
+
'nextjs/no-typos': 'warn',
|
|
267
|
+
'nextjs/no-unwanted-polyfillio': 'warn',
|
|
268
|
+
'nextjs/inline-script-id': 'error',
|
|
269
|
+
'nextjs/no-assign-module-variable': 'error',
|
|
270
|
+
'nextjs/no-document-import-in-page': 'error',
|
|
271
|
+
'nextjs/no-duplicate-head': 'error',
|
|
272
|
+
'nextjs/no-head-import-in-document': 'error',
|
|
273
|
+
'nextjs/no-script-component-in-head': 'error',
|
|
274
|
+
},
|
|
275
|
+
typescriptRules: {
|
|
276
|
+
'no-unused-vars': [
|
|
277
|
+
'error',
|
|
278
|
+
{
|
|
279
|
+
ignoreRestSiblings: true,
|
|
280
|
+
},
|
|
281
|
+
],
|
|
282
|
+
'no-var': 'error',
|
|
283
|
+
'prefer-const': 'error',
|
|
284
|
+
'prefer-rest-params': 'error',
|
|
285
|
+
'prefer-spread': 'error',
|
|
286
|
+
'typescript/await-thenable': 'error',
|
|
287
|
+
'typescript/ban-ts-comment': 'error',
|
|
288
|
+
'no-array-constructor': 'error',
|
|
289
|
+
'typescript/no-array-delete': 'error',
|
|
290
|
+
'typescript/no-base-to-string': 'error',
|
|
291
|
+
'typescript/no-duplicate-enum-values': 'error',
|
|
292
|
+
'typescript/no-duplicate-type-constituents': 'error',
|
|
293
|
+
'typescript/no-empty-object-type': 'error',
|
|
294
|
+
'typescript/no-explicit-any': 'error',
|
|
295
|
+
'typescript/no-extra-non-null-assertion': 'error',
|
|
296
|
+
'typescript/no-floating-promises': 'error',
|
|
297
|
+
'typescript/no-for-in-array': 'error',
|
|
298
|
+
'typescript/no-implied-eval': 'error',
|
|
299
|
+
'typescript/no-misused-new': 'error',
|
|
300
|
+
'typescript/no-misused-promises': 'error',
|
|
301
|
+
'typescript/no-namespace': 'error',
|
|
302
|
+
'typescript/no-non-null-asserted-optional-chain': 'error',
|
|
303
|
+
'typescript/no-redundant-type-constituents': 'error',
|
|
304
|
+
'typescript/no-require-imports': 'error',
|
|
305
|
+
'typescript/no-this-alias': 'error',
|
|
306
|
+
'typescript/no-unnecessary-type-assertion': 'error',
|
|
307
|
+
'typescript/no-unnecessary-type-constraint': 'error',
|
|
308
|
+
'typescript/no-unsafe-argument': 'error',
|
|
309
|
+
'typescript/no-unsafe-assignment': 'error',
|
|
310
|
+
'typescript/no-unsafe-call': 'error',
|
|
311
|
+
'typescript/no-unsafe-declaration-merging': 'error',
|
|
312
|
+
'typescript/no-unsafe-enum-comparison': 'error',
|
|
313
|
+
'typescript/no-unsafe-function-type': 'error',
|
|
314
|
+
'typescript/no-unsafe-member-access': 'error',
|
|
315
|
+
'typescript/no-unsafe-return': 'error',
|
|
316
|
+
'typescript/no-unsafe-unary-minus': 'error',
|
|
317
|
+
'no-unused-expressions': 'error',
|
|
318
|
+
'typescript/no-wrapper-object-types': 'error',
|
|
319
|
+
'typescript/only-throw-error': 'error',
|
|
320
|
+
'typescript/prefer-as-const': 'error',
|
|
321
|
+
'typescript/prefer-namespace-keyword': 'error',
|
|
322
|
+
'typescript/prefer-promise-reject-errors': 'error',
|
|
323
|
+
'typescript/require-await': 'error',
|
|
324
|
+
'typescript/restrict-plus-operands': 'error',
|
|
325
|
+
'typescript/restrict-template-expressions': 'error',
|
|
326
|
+
'typescript/triple-slash-reference': 'error',
|
|
327
|
+
'typescript/unbound-method': 'error',
|
|
328
|
+
'constructor-super': 'off',
|
|
329
|
+
'getter-return': 'off',
|
|
330
|
+
'no-class-assign': 'off',
|
|
331
|
+
'no-const-assign': 'off',
|
|
332
|
+
'no-dupe-class-members': 'off',
|
|
333
|
+
'no-dupe-keys': 'off',
|
|
334
|
+
'no-func-assign': 'off',
|
|
335
|
+
'no-import-assign': 'off',
|
|
336
|
+
'no-new-native-nonconstructor': 'off',
|
|
337
|
+
'no-obj-calls': 'off',
|
|
338
|
+
'no-redeclare': 'off',
|
|
339
|
+
'no-setter-return': 'off',
|
|
340
|
+
'no-this-before-super': 'off',
|
|
341
|
+
'no-unreachable': 'off',
|
|
342
|
+
'no-unsafe-negation': 'off',
|
|
343
|
+
'no-with': 'off',
|
|
344
|
+
'import/first': 'off',
|
|
345
|
+
'import/no-anonymous-default-export': 'off',
|
|
346
|
+
},
|
|
347
|
+
dropped: [
|
|
348
|
+
'@next/next/no-location-assign-relative-destination',
|
|
349
|
+
'import-x/export',
|
|
350
|
+
'import-x/named',
|
|
351
|
+
'import-x/no-unresolved',
|
|
352
|
+
'no-dupe-args',
|
|
353
|
+
'no-octal',
|
|
354
|
+
'no-undef',
|
|
355
|
+
'no-useless-assignment',
|
|
356
|
+
'react-hooks/config',
|
|
357
|
+
'react-hooks/gating',
|
|
358
|
+
],
|
|
359
|
+
};
|
|
360
|
+
|
|
361
|
+
export default rules;
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
// Generated by scripts/generate-rules.js from @slango.configs/eslint/typescript-node.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;
|