@rhyster/eslint-config 1.8.9 → 1.8.10

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.
@@ -1,876 +1,4 @@
1
1
  import type { Linter } from 'eslint';
2
- declare const _default: ({
3
- files: string[];
4
- name: "@rhyster/eslint-config/general";
5
- plugins: {
6
- readonly '@typescript-eslint': import("eslint").ESLint.Plugin;
7
- readonly '@stylistic': import("eslint").ESLint.Plugin;
8
- readonly 'import-x': import("eslint").ESLint.Plugin;
9
- };
10
- languageOptions: {
11
- readonly parser: Linter.Parser | undefined;
12
- readonly parserOptions: {
13
- readonly projectService: true;
14
- };
15
- };
16
- settings: {
17
- readonly 'import-x/parsers': {
18
- readonly espree: readonly [".js", ".mjs"];
19
- readonly '@typescript-eslint/parser': readonly [".ts", ".d.ts"];
20
- };
21
- readonly 'import-x/resolver': {
22
- readonly node: {
23
- readonly extensions: readonly [".mjs", ".js", ".json", ".ts", ".d.ts"];
24
- };
25
- };
26
- readonly 'import-x/extensions': readonly [".js", ".mjs", ".ts", ".d.ts"];
27
- readonly 'import-x/core-modules': readonly [];
28
- readonly 'import-x/ignore': readonly ["node_modules", "\\.(coffee|scss|css|less|hbs|svg|json)$"];
29
- readonly 'import-x/external-module-folders': readonly ["node_modules", "node_modules/@types"];
30
- };
31
- } | {
32
- files: string[];
33
- name?: string;
34
- basePath?: string;
35
- ignores?: string[];
36
- language?: string;
37
- languageOptions?: Linter.LanguageOptions;
38
- linterOptions?: Linter.LinterOptions;
39
- processor?: string | Linter.Processor;
40
- plugins?: Record<string, import("eslint").ESLint.Plugin>;
41
- rules?: Partial<Linter.RulesRecord> | undefined;
42
- settings?: Record<string, unknown>;
43
- } | {
44
- files: string[];
45
- rules: Readonly<Linter.RulesRecord>;
46
- } | {
47
- files: string[];
48
- name: string;
49
- rules: {
50
- 'accessor-pairs': "off";
51
- 'array-callback-return': ["error", {
52
- allowImplicit: boolean;
53
- }];
54
- 'block-scoped-var': "error";
55
- complexity: ["off", number];
56
- 'class-methods-use-this': ["error", {
57
- exceptMethods: never[];
58
- }];
59
- 'consistent-return': "error";
60
- curly: ["error", string];
61
- 'default-case': ["error", {
62
- commentPattern: string;
63
- }];
64
- 'default-case-last': "error";
65
- 'default-param-last': "error";
66
- 'dot-notation': ["error", {
67
- allowKeywords: boolean;
68
- }];
69
- '@stylistic/dot-location': ["error", string];
70
- eqeqeq: ["error", string, {
71
- null: string;
72
- }];
73
- 'grouped-accessor-pairs': "error";
74
- 'guard-for-in': "error";
75
- 'max-classes-per-file': ["error", number];
76
- 'no-alert': "error";
77
- 'no-caller': "error";
78
- 'no-case-declarations': "error";
79
- 'no-constructor-return': "error";
80
- 'no-div-regex': "off";
81
- 'no-else-return': ["error", {
82
- allowElseIf: boolean;
83
- }];
84
- 'no-empty-function': ["error", {
85
- allow: string[];
86
- }];
87
- 'no-empty-pattern': "error";
88
- 'no-empty-static-block': "error";
89
- 'no-eq-null': "off";
90
- 'no-eval': "error";
91
- 'no-extend-native': "error";
92
- 'no-extra-bind': "error";
93
- 'no-extra-label': "error";
94
- 'no-fallthrough': "error";
95
- '@stylistic/no-floating-decimal': "error";
96
- 'no-global-assign': ["error", {
97
- exceptions: never[];
98
- }];
99
- 'no-implicit-coercion': ["off", {
100
- boolean: boolean;
101
- number: boolean;
102
- string: boolean;
103
- allow: never[];
104
- }];
105
- 'no-implicit-globals': "off";
106
- 'no-implied-eval': "error";
107
- 'no-invalid-this': "off";
108
- 'no-iterator': "error";
109
- 'no-labels': ["error", {
110
- allowLoop: boolean;
111
- allowSwitch: boolean;
112
- }];
113
- 'no-lone-blocks': "error";
114
- 'no-loop-func': "error";
115
- 'no-magic-numbers': ["off", {
116
- ignore: never[];
117
- ignoreArrayIndexes: boolean;
118
- enforceConst: boolean;
119
- detectObjects: boolean;
120
- }];
121
- '@stylistic/no-multi-spaces': ["error", {
122
- ignoreEOLComments: boolean;
123
- }];
124
- 'no-multi-str': "error";
125
- 'no-new': "error";
126
- 'no-new-func': "error";
127
- 'no-new-wrappers': "error";
128
- 'no-nonoctal-decimal-escape': "error";
129
- 'no-object-constructor': "error";
130
- 'no-octal': "error";
131
- 'no-octal-escape': "error";
132
- 'no-param-reassign': ["error", {
133
- props: boolean;
134
- ignorePropertyModificationsFor: string[];
135
- }];
136
- 'no-proto': "error";
137
- 'no-redeclare': "error";
138
- 'no-restricted-properties': ["error", {
139
- object: string;
140
- property: string;
141
- message: string;
142
- }, {
143
- object: string;
144
- property: string;
145
- message: string;
146
- }, {
147
- object: string;
148
- property: string;
149
- message: string;
150
- }, {
151
- object: string;
152
- property: string;
153
- message: string;
154
- }, {
155
- object: string;
156
- property: string;
157
- message: string;
158
- }, {
159
- object: string;
160
- property: string;
161
- message: string;
162
- }, {
163
- object: string;
164
- property: string;
165
- message: string;
166
- }, {
167
- property: string;
168
- message: string;
169
- }, {
170
- property: string;
171
- message: string;
172
- }, {
173
- object: string;
174
- property: string;
175
- message: string;
176
- }];
177
- 'no-return-assign': ["error", string];
178
- 'no-return-await': "error";
179
- 'no-script-url': "error";
180
- 'no-self-assign': ["error", {
181
- props: boolean;
182
- }];
183
- 'no-self-compare': "error";
184
- 'no-sequences': "error";
185
- 'no-throw-literal': "error";
186
- 'no-unmodified-loop-condition': "off";
187
- 'no-unused-expressions': ["error", {
188
- allowShortCircuit: boolean;
189
- allowTernary: boolean;
190
- allowTaggedTemplates: boolean;
191
- }];
192
- 'no-unused-labels': "error";
193
- 'no-useless-call': "off";
194
- 'no-useless-catch': "error";
195
- 'no-useless-concat': "error";
196
- 'no-useless-escape': "error";
197
- 'no-useless-return': "error";
198
- 'no-void': "error";
199
- 'no-warning-comments': ["off", {
200
- terms: string[];
201
- location: string;
202
- }];
203
- 'no-with': "error";
204
- 'prefer-promise-reject-errors': ["error", {
205
- allowEmptyReject: boolean;
206
- }];
207
- 'prefer-named-capture-group': "off";
208
- 'prefer-object-has-own': "error";
209
- 'prefer-regex-literals': ["error", {
210
- disallowRedundantWrapping: boolean;
211
- }];
212
- radix: "error";
213
- 'require-await': "off";
214
- 'require-unicode-regexp': "off";
215
- 'vars-on-top': "error";
216
- '@stylistic/wrap-iife': ["error", string, {
217
- functionPrototypeMethods: boolean;
218
- }];
219
- yoda: "error";
220
- };
221
- } | {
222
- files: string[];
223
- name: string;
224
- rules: {
225
- 'for-direction': "error";
226
- 'getter-return': ["error", {
227
- allowImplicit: boolean;
228
- }];
229
- 'no-async-promise-executor': "error";
230
- 'no-await-in-loop': "error";
231
- 'no-compare-neg-zero': "error";
232
- 'no-cond-assign': ["error", string];
233
- 'no-console': ["error", {
234
- allow: string[];
235
- }];
236
- 'no-constant-binary-expression': "error";
237
- 'no-constant-condition': "error";
238
- 'no-control-regex': "error";
239
- 'no-debugger': "error";
240
- 'no-dupe-args': "error";
241
- 'no-dupe-else-if': "error";
242
- 'no-dupe-keys': "error";
243
- 'no-duplicate-case': "error";
244
- 'no-empty': "error";
245
- 'no-empty-character-class': "error";
246
- 'no-ex-assign': "error";
247
- 'no-extra-boolean-cast': "error";
248
- '@stylistic/no-extra-parens': ["off", string, {
249
- conditionalAssign: boolean;
250
- nestedBinaryExpressions: boolean;
251
- returnAssign: boolean;
252
- enforceForArrowConditionals: boolean;
253
- }];
254
- '@stylistic/no-extra-semi': "error";
255
- 'no-func-assign': "error";
256
- 'no-import-assign': "error";
257
- 'no-inner-declarations': "error";
258
- 'no-invalid-regexp': "error";
259
- 'no-irregular-whitespace': "error";
260
- 'no-loss-of-precision': "error";
261
- 'no-misleading-character-class': "error";
262
- 'no-obj-calls': "error";
263
- 'no-new-native-nonconstructor': "error";
264
- 'no-promise-executor-return': "error";
265
- 'no-prototype-builtins': "error";
266
- 'no-regex-spaces': "error";
267
- 'no-setter-return': "error";
268
- 'no-sparse-arrays': "error";
269
- 'no-template-curly-in-string': "error";
270
- 'no-unexpected-multiline': "error";
271
- 'no-unreachable': "error";
272
- 'no-unreachable-loop': ["error", {
273
- ignore: never[];
274
- }];
275
- 'no-unsafe-finally': "error";
276
- 'no-unsafe-negation': "error";
277
- 'no-unsafe-optional-chaining': ["error", {
278
- disallowArithmeticOperators: boolean;
279
- }];
280
- 'no-unused-private-class-members': "error";
281
- 'no-useless-backreference': "error";
282
- 'require-atomic-updates': "off";
283
- 'use-isnan': "error";
284
- 'valid-typeof': ["error", {
285
- requireStringLiterals: boolean;
286
- }];
287
- };
288
- } | {
289
- files: string[];
290
- name: string;
291
- rules: {
292
- '@stylistic/array-bracket-newline': ["error", string];
293
- '@stylistic/array-element-newline': ["error", {
294
- consistent: boolean;
295
- multiline: boolean;
296
- minItems: number;
297
- }];
298
- '@stylistic/array-bracket-spacing': ["error", string];
299
- '@stylistic/block-spacing': ["error", string];
300
- '@stylistic/brace-style': ["error", string, {
301
- allowSingleLine: boolean;
302
- }];
303
- camelcase: "error";
304
- 'capitalized-comments': ["off", string, {
305
- line: {
306
- ignorePattern: string;
307
- ignoreInlineComments: boolean;
308
- ignoreConsecutiveComments: boolean;
309
- };
310
- block: {
311
- ignorePattern: string;
312
- ignoreInlineComments: boolean;
313
- ignoreConsecutiveComments: boolean;
314
- };
315
- }];
316
- '@stylistic/comma-dangle': ["error", {
317
- arrays: string;
318
- objects: string;
319
- imports: string;
320
- exports: string;
321
- functions: string;
322
- enums: string;
323
- generics: string;
324
- tuples: string;
325
- }];
326
- '@stylistic/comma-spacing': ["error", {
327
- before: boolean;
328
- after: boolean;
329
- }];
330
- '@stylistic/comma-style': ["error", string, {
331
- exceptions: {
332
- ArrayExpression: boolean;
333
- ArrayPattern: boolean;
334
- ArrowFunctionExpression: boolean;
335
- CallExpression: boolean;
336
- FunctionDeclaration: boolean;
337
- FunctionExpression: boolean;
338
- ImportDeclaration: boolean;
339
- ObjectExpression: boolean;
340
- ObjectPattern: boolean;
341
- VariableDeclaration: boolean;
342
- NewExpression: boolean;
343
- ExportAllDeclaration: boolean;
344
- ExportNamedDeclaration: boolean;
345
- ImportExpression: boolean;
346
- SequenceExpression: boolean;
347
- ClassDeclaration: boolean;
348
- ClassExpression: boolean;
349
- TSDeclareFunction: boolean;
350
- TSFunctionType: boolean;
351
- TSConstructorType: boolean;
352
- TSEmptyBodyFunctionExpression: boolean;
353
- TSMethodSignature: boolean;
354
- TSCallSignatureDeclaration: boolean;
355
- TSConstructSignatureDeclaration: boolean;
356
- TSEnumBody: boolean;
357
- TSTypeLiteral: boolean;
358
- TSInterfaceBody: boolean;
359
- TSIndexSignature: boolean;
360
- TSInterfaceDeclaration: boolean;
361
- TSTupleType: boolean;
362
- TSTypeParameterDeclaration: boolean;
363
- TSTypeParameterInstantiation: boolean;
364
- };
365
- }];
366
- '@stylistic/computed-property-spacing': ["error", string];
367
- 'consistent-this': "off";
368
- '@stylistic/eol-last': ["error", string];
369
- '@stylistic/function-call-argument-newline': ["error", string];
370
- '@stylistic/function-call-spacing': ["error", string];
371
- 'func-name-matching': ["off", string, {
372
- includeCommonJSModuleExports: boolean;
373
- considerPropertyDescriptor: boolean;
374
- }];
375
- 'func-names': "error";
376
- 'func-style': ["error", string];
377
- '@stylistic/function-paren-newline': ["error", string];
378
- 'id-denylist': "off";
379
- 'id-length': "off";
380
- 'id-match': "off";
381
- '@stylistic/implicit-arrow-linebreak': ["error", string];
382
- '@stylistic/indent': ["error", number, {
383
- SwitchCase: number;
384
- VariableDeclarator: number;
385
- outerIIFEBody: number;
386
- FunctionDeclaration: {
387
- parameters: number;
388
- body: number;
389
- };
390
- FunctionExpression: {
391
- parameters: number;
392
- body: number;
393
- };
394
- CallExpression: {
395
- arguments: number;
396
- };
397
- ArrayExpression: number;
398
- ObjectExpression: number;
399
- ImportDeclaration: number;
400
- flatTernaryExpressions: boolean;
401
- ignoreComments: boolean;
402
- }];
403
- '@stylistic/indent-binary-ops': ["error", number];
404
- '@stylistic/jsx-quotes': ["off", string];
405
- '@stylistic/key-spacing': ["error", {
406
- beforeColon: boolean;
407
- afterColon: boolean;
408
- }];
409
- '@stylistic/keyword-spacing': ["error", {
410
- before: boolean;
411
- after: boolean;
412
- overrides: {
413
- return: {
414
- after: boolean;
415
- };
416
- throw: {
417
- after: boolean;
418
- };
419
- case: {
420
- after: boolean;
421
- };
422
- };
423
- }];
424
- '@stylistic/line-comment-position': ["off", {
425
- position: string;
426
- ignorePattern: string;
427
- applyDefaultIgnorePatterns: boolean;
428
- }];
429
- '@stylistic/linebreak-style': ["error", string];
430
- '@stylistic/lines-between-class-members': ["error", string, {
431
- exceptAfterSingleLine: boolean;
432
- }];
433
- '@stylistic/lines-around-comment': "off";
434
- 'logical-assignment-operators': ["error", string, {
435
- enforceForIfStatements: boolean;
436
- }];
437
- 'max-depth': ["off", number];
438
- '@stylistic/max-len': ["error", number, number, {
439
- ignoreUrls: boolean;
440
- ignoreComments: boolean;
441
- ignoreRegExpLiterals: boolean;
442
- ignoreStrings: boolean;
443
- ignoreTemplateLiterals: boolean;
444
- }];
445
- 'max-lines': ["off", {
446
- max: number;
447
- skipBlankLines: boolean;
448
- skipComments: boolean;
449
- }];
450
- 'max-lines-per-function': ["off", {
451
- max: number;
452
- skipBlankLines: boolean;
453
- skipComments: boolean;
454
- IIFEs: boolean;
455
- }];
456
- 'max-nested-callbacks': "off";
457
- 'max-params': ["off", number];
458
- 'max-statements': ["off", number];
459
- '@stylistic/max-statements-per-line': ["off", {
460
- max: number;
461
- }];
462
- '@stylistic/multiline-comment-style': ["off", string];
463
- '@stylistic/multiline-ternary': ["error", string];
464
- 'new-cap': ["error", {
465
- newIsCap: boolean;
466
- newIsCapExceptions: never[];
467
- capIsNew: boolean;
468
- capIsNewExceptions: string[];
469
- }];
470
- '@stylistic/new-parens': "error";
471
- '@stylistic/newline-per-chained-call': ["error", {
472
- ignoreChainWithDepth: number;
473
- }];
474
- 'no-array-constructor': "error";
475
- 'no-bitwise': "error";
476
- 'no-continue': "error";
477
- 'no-inline-comments': "off";
478
- 'no-lonely-if': "error";
479
- '@stylistic/no-mixed-operators': ["error", {
480
- groups: string[][];
481
- allowSamePrecedence: boolean;
482
- }];
483
- '@stylistic/no-mixed-spaces-and-tabs': "error";
484
- 'no-multi-assign': ["error"];
485
- '@stylistic/no-multiple-empty-lines': ["error", {
486
- max: number;
487
- maxBOF: number;
488
- maxEOF: number;
489
- }];
490
- 'no-negated-condition': "off";
491
- 'no-nested-ternary': "error";
492
- 'no-object-constructor': "error";
493
- 'no-plusplus': "error";
494
- 'no-restricted-syntax': ["error", {
495
- selector: string;
496
- message: string;
497
- }, {
498
- selector: string;
499
- message: string;
500
- }, {
501
- selector: string;
502
- message: string;
503
- }];
504
- '@stylistic/no-tabs': "error";
505
- 'no-ternary': "off";
506
- '@stylistic/no-trailing-spaces': ["error", {
507
- skipBlankLines: boolean;
508
- ignoreComments: boolean;
509
- }];
510
- 'no-underscore-dangle': ["error", {
511
- allow: never[];
512
- allowAfterThis: boolean;
513
- allowAfterSuper: boolean;
514
- enforceInMethodNames: boolean;
515
- }];
516
- 'no-unneeded-ternary': ["error", {
517
- defaultAssignment: boolean;
518
- }];
519
- '@stylistic/no-whitespace-before-property': "error";
520
- '@stylistic/nonblock-statement-body-position': ["error", string, {
521
- overrides: {};
522
- }];
523
- '@stylistic/object-curly-spacing': ["error", string];
524
- '@stylistic/object-curly-newline': ["error", {
525
- ObjectExpression: {
526
- minProperties: number;
527
- multiline: boolean;
528
- consistent: boolean;
529
- };
530
- ObjectPattern: {
531
- minProperties: number;
532
- multiline: boolean;
533
- consistent: boolean;
534
- };
535
- ImportDeclaration: {
536
- minProperties: number;
537
- multiline: boolean;
538
- consistent: boolean;
539
- };
540
- ExportDeclaration: {
541
- minProperties: number;
542
- multiline: boolean;
543
- consistent: boolean;
544
- };
545
- }];
546
- '@stylistic/object-property-newline': ["error", {
547
- allowAllPropertiesOnSameLine: boolean;
548
- }];
549
- 'one-var': ["error", string];
550
- '@stylistic/one-var-declaration-per-line': ["error", string];
551
- 'operator-assignment': ["error", string];
552
- '@stylistic/operator-linebreak': ["error", string, {
553
- overrides: {
554
- '=': string;
555
- };
556
- }];
557
- '@stylistic/padded-blocks': ["error", {
558
- blocks: string;
559
- classes: string;
560
- switches: string;
561
- }, {
562
- allowSingleLineBlocks: boolean;
563
- }];
564
- '@stylistic/padding-line-between-statements': "off";
565
- 'prefer-exponentiation-operator': "error";
566
- 'prefer-object-spread': "error";
567
- '@stylistic/quote-props': ["error", string, {
568
- keywords: boolean;
569
- unnecessary: boolean;
570
- numbers: boolean;
571
- }];
572
- '@stylistic/quotes': ["error", string, {
573
- avoidEscape: boolean;
574
- }];
575
- '@stylistic/semi': ["error", string];
576
- '@stylistic/semi-spacing': ["error", {
577
- before: boolean;
578
- after: boolean;
579
- }];
580
- '@stylistic/semi-style': ["error", string];
581
- 'sort-keys': ["off", string, {
582
- caseSensitive: boolean;
583
- natural: boolean;
584
- }];
585
- 'sort-vars': "off";
586
- '@stylistic/space-before-blocks': "error";
587
- '@stylistic/space-before-function-paren': ["error", {
588
- anonymous: string;
589
- named: string;
590
- asyncArrow: string;
591
- }];
592
- '@stylistic/space-in-parens': ["error", string];
593
- '@stylistic/space-infix-ops': "error";
594
- '@stylistic/space-unary-ops': ["error", {
595
- words: boolean;
596
- nonwords: boolean;
597
- overrides: {};
598
- }];
599
- '@stylistic/spaced-comment': ["error", string, {
600
- line: {
601
- exceptions: string[];
602
- markers: string[];
603
- };
604
- block: {
605
- exceptions: string[];
606
- markers: string[];
607
- balanced: boolean;
608
- };
609
- }];
610
- '@stylistic/switch-colon-spacing': ["error", {
611
- after: boolean;
612
- before: boolean;
613
- }];
614
- '@stylistic/template-tag-spacing': ["error", string];
615
- 'unicode-bom': ["error", string];
616
- '@stylistic/wrap-regex': "off";
617
- };
618
- } | {
619
- files: string[];
620
- name: string;
621
- rules: {
622
- 'init-declarations': "off";
623
- 'no-delete-var': "error";
624
- 'no-label-var': "error";
625
- 'no-restricted-globals': ["error", {
626
- name: string;
627
- message: string;
628
- }, {
629
- name: string;
630
- message: string;
631
- }, ...{
632
- name: "self" | "location" | "external" | "parent" | "addEventListener" | "blur" | "close" | "closed" | "confirm" | "defaultStatus" | "defaultstatus" | "event" | "find" | "focus" | "frameElement" | "frames" | "history" | "innerHeight" | "innerWidth" | "length" | "locationbar" | "menubar" | "moveBy" | "moveTo" | "name" | "onblur" | "onerror" | "onfocus" | "onload" | "onresize" | "onunload" | "open" | "opener" | "opera" | "outerHeight" | "outerWidth" | "pageXOffset" | "pageYOffset" | "print" | "removeEventListener" | "resizeBy" | "resizeTo" | "screen" | "screenLeft" | "screenTop" | "screenX" | "screenY" | "scroll" | "scrollbars" | "scrollBy" | "scrollTo" | "scrollX" | "scrollY" | "status" | "statusbar" | "stop" | "toolbar" | "top";
633
- message: string;
634
- }[]];
635
- 'no-shadow': "error";
636
- 'no-shadow-restricted-names': "error";
637
- 'no-undef': "error";
638
- 'no-undef-init': "error";
639
- 'no-undefined': "off";
640
- 'no-unused-vars': ["error", {
641
- vars: string;
642
- args: string;
643
- ignoreRestSiblings: boolean;
644
- }];
645
- 'no-use-before-define': ["error", {
646
- functions: boolean;
647
- classes: boolean;
648
- variables: boolean;
649
- }];
650
- };
651
- } | {
652
- files: string[];
653
- name: string;
654
- rules: {
655
- 'arrow-body-style': ["error", string, {
656
- requireReturnForObjectLiteral: boolean;
657
- }];
658
- '@stylistic/arrow-parens': ["error", string];
659
- '@stylistic/arrow-spacing': ["error", {
660
- before: boolean;
661
- after: boolean;
662
- }];
663
- 'constructor-super': "error";
664
- '@stylistic/generator-star-spacing': ["error", {
665
- before: boolean;
666
- after: boolean;
667
- }];
668
- 'no-class-assign': "error";
669
- '@stylistic/no-confusing-arrow': ["error", {
670
- allowParens: boolean;
671
- }];
672
- 'no-const-assign': "error";
673
- 'no-dupe-class-members': "error";
674
- 'no-duplicate-imports': "off";
675
- 'no-restricted-exports': ["error", {
676
- restrictedNamedExports: string[];
677
- }];
678
- 'no-restricted-imports': ["off", {
679
- paths: never[];
680
- patterns: never[];
681
- }];
682
- 'no-this-before-super': "error";
683
- 'no-useless-computed-key': "error";
684
- 'no-useless-constructor': "error";
685
- 'no-useless-rename': ["error", {
686
- ignoreDestructuring: boolean;
687
- ignoreImport: boolean;
688
- ignoreExport: boolean;
689
- }];
690
- 'no-var': "error";
691
- 'object-shorthand': ["error", string, {
692
- ignoreConstructors: boolean;
693
- avoidQuotes: boolean;
694
- }];
695
- 'prefer-arrow-callback': ["error", {
696
- allowNamedFunctions: boolean;
697
- allowUnboundThis: boolean;
698
- }];
699
- 'prefer-const': ["error", {
700
- destructuring: string;
701
- ignoreReadBeforeAssign: boolean;
702
- }];
703
- 'prefer-destructuring': ["error", {
704
- VariableDeclarator: {
705
- array: boolean;
706
- object: boolean;
707
- };
708
- AssignmentExpression: {
709
- array: boolean;
710
- object: boolean;
711
- };
712
- }, {
713
- enforceForRenamedProperties: boolean;
714
- }];
715
- 'prefer-numeric-literals': "error";
716
- 'prefer-rest-params': "error";
717
- 'prefer-spread': "error";
718
- 'prefer-template': "error";
719
- 'require-yield': "error";
720
- '@stylistic/rest-spread-spacing': ["error", string];
721
- 'sort-imports': ["off", {
722
- ignoreCase: boolean;
723
- ignoreDeclarationSort: boolean;
724
- ignoreMemberSort: boolean;
725
- memberSyntaxSortOrder: string[];
726
- }];
727
- 'symbol-description': "error";
728
- '@stylistic/template-curly-spacing': "error";
729
- '@stylistic/yield-star-spacing': ["error", string];
730
- };
731
- } | {
732
- files: string[];
733
- name: string;
734
- rules: {
735
- 'import-x/no-unresolved': ["error", {
736
- commonjs: boolean;
737
- caseSensitive: boolean;
738
- }];
739
- 'import-x/named': "error";
740
- 'import-x/default': "off";
741
- 'import-x/namespace': "off";
742
- 'import-x/export': "error";
743
- 'import-x/no-named-as-default': "error";
744
- 'import-x/no-named-as-default-member': "error";
745
- 'import-x/no-deprecated': "off";
746
- 'import-x/no-extraneous-dependencies': ["error", {
747
- devDependencies: string[];
748
- optionalDependencies: boolean;
749
- }];
750
- 'import-x/no-mutable-exports': "error";
751
- 'import-x/no-commonjs': "error";
752
- 'import-x/no-amd': "error";
753
- 'import-x/no-nodejs-modules': "error";
754
- 'import-x/first': "error";
755
- 'import-x/no-duplicates': "error";
756
- 'import-x/no-namespace': "error";
757
- 'import-x/extensions': ["error", string, {
758
- ignorePackages: boolean;
759
- checkTypeImports: boolean;
760
- }];
761
- 'import-x/order': ["error", {
762
- groups: string[];
763
- 'newlines-between': string;
764
- alphabetize: {
765
- order: string;
766
- orderImportKind: string;
767
- };
768
- }];
769
- 'import-x/newline-after-import': "error";
770
- 'import-x/prefer-default-export': "error";
771
- 'import-x/no-restricted-paths': "off";
772
- 'import-x/max-dependencies': ["off", {
773
- max: number;
774
- }];
775
- 'import-x/no-absolute-path': "error";
776
- 'import-x/no-dynamic-require': "error";
777
- 'import-x/no-internal-modules': ["off", {
778
- allow: never[];
779
- }];
780
- 'import-x/unambiguous': "off";
781
- 'import-x/no-webpack-loader-syntax': "error";
782
- 'import-x/no-unassigned-import': "off";
783
- 'import-x/no-named-default': "error";
784
- 'import-x/no-anonymous-default-export': ["off", {
785
- allowArray: boolean;
786
- allowArrowFunction: boolean;
787
- allowAnonymousClass: boolean;
788
- allowAnonymousFunction: boolean;
789
- allowLiteral: boolean;
790
- allowObject: boolean;
791
- }];
792
- 'import-x/exports-last': "error";
793
- 'import-x/group-exports': "off";
794
- 'import-x/no-default-export': "off";
795
- 'import-x/no-named-export': "off";
796
- 'import-x/no-self-import': "error";
797
- 'import-x/no-cycle': ["error", {
798
- maxDepth: string;
799
- }];
800
- 'import-x/no-useless-path-segments': ["error", {
801
- commonjs: boolean;
802
- }];
803
- 'import-x/dynamic-import-chunkname': ["off", {
804
- importFunctions: never[];
805
- webpackChunknameFormat: string;
806
- }];
807
- 'import-x/no-relative-parent-imports': "off";
808
- 'import-x/no-unused-modules': ["error", {
809
- ignoreExports: never[];
810
- missingExports: boolean;
811
- unusedExports: boolean;
812
- }];
813
- 'import-x/no-import-module-exports': ["error", {
814
- exceptions: never[];
815
- }];
816
- 'import-x/no-relative-packages': "error";
817
- 'import-x/consistent-type-specifier-style': ["error", string];
818
- 'import-x/no-empty-named-blocks': "error";
819
- };
820
- } | {
821
- files: string[];
822
- name: string;
823
- rules: {
824
- strict: ["error", string];
825
- };
826
- } | {
827
- files: string[];
828
- name: string;
829
- rules: {
830
- '@typescript-eslint/naming-convention': "error";
831
- camelcase: "off";
832
- '@typescript-eslint/default-param-last': "error";
833
- 'default-param-last': "off";
834
- '@typescript-eslint/dot-notation': "error";
835
- 'dot-notation': "off";
836
- '@typescript-eslint/no-array-constructor': "error";
837
- 'no-array-constructor': "off";
838
- '@typescript-eslint/no-empty-function': "error";
839
- 'no-empty-function': "off";
840
- '@typescript-eslint/no-implied-eval': "error";
841
- 'no-implied-eval': "off";
842
- 'no-new-func': "off";
843
- '@typescript-eslint/no-loop-func': "error";
844
- 'no-loop-func': "off";
845
- '@typescript-eslint/no-magic-numbers': "off";
846
- 'no-magic-numbers': "off";
847
- '@typescript-eslint/no-shadow': "error";
848
- 'no-shadow': "off";
849
- '@typescript-eslint/only-throw-error': "error";
850
- 'no-throw-literal': "off";
851
- '@typescript-eslint/no-unused-expressions': "error";
852
- 'no-unused-expressions': "off";
853
- '@typescript-eslint/no-unused-vars': "error";
854
- 'no-unused-vars': "off";
855
- '@typescript-eslint/no-use-before-define': "error";
856
- 'no-use-before-define': "off";
857
- '@typescript-eslint/no-useless-constructor': "error";
858
- 'no-useless-constructor': "off";
859
- '@typescript-eslint/prefer-promise-reject-errors': "error";
860
- 'prefer-promise-reject-errors': "off";
861
- '@typescript-eslint/require-await': "off";
862
- 'require-await': "off";
863
- '@typescript-eslint/return-await': ["error", string];
864
- 'no-return-await': "off";
865
- 'no-dupe-class-members': "off";
866
- 'no-redeclare': "off";
867
- 'import-x/named': "off";
868
- 'import-x/namespace': "off";
869
- 'import-x/default': "off";
870
- 'import-x/no-named-as-default-member': "off";
871
- 'import-x/no-unresolved': "off";
872
- '@typescript-eslint/strict-boolean-expressions': "error";
873
- };
874
- })[];
875
- export default _default;
2
+ declare const rules: Linter.Config[];
3
+ export default rules;
876
4
  //# sourceMappingURL=eslint.config.d.ts.map