@lincy/eslint-config 5.3.2 → 5.4.1

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/dist/index.d.cts CHANGED
@@ -203,7 +203,7 @@ interface RuleOptions {
203
203
  */
204
204
  'default-case'?: Linter.RuleEntry<DefaultCase>
205
205
  /**
206
- * Enforce `default` clauses in switch statements to be last
206
+ * Enforce `default` clauses in `switch` statements to be last
207
207
  * @see https://eslint.org/docs/latest/rules/default-case-last
208
208
  */
209
209
  'default-case-last'?: Linter.RuleEntry<[]>
@@ -387,233 +387,233 @@ interface RuleOptions {
387
387
  'implicit-arrow-linebreak'?: Linter.RuleEntry<ImplicitArrowLinebreak>
388
388
  /**
389
389
  * Enforce or ban the use of inline type-only markers for named imports.
390
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/consistent-type-specifier-style.md
390
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/consistent-type-specifier-style.md
391
391
  */
392
392
  'import/consistent-type-specifier-style'?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>
393
393
  /**
394
394
  * Ensure a default export is present, given a default import.
395
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/default.md
395
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/default.md
396
396
  */
397
397
  'import/default'?: Linter.RuleEntry<[]>
398
398
  /**
399
399
  * Enforce a leading comment with the webpackChunkName for dynamic imports.
400
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/dynamic-import-chunkname.md
400
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/dynamic-import-chunkname.md
401
401
  */
402
402
  'import/dynamic-import-chunkname'?: Linter.RuleEntry<ImportDynamicImportChunkname>
403
403
  /**
404
404
  * Forbid any invalid exports, i.e. re-export of the same name.
405
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/export.md
405
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/export.md
406
406
  */
407
407
  'import/export'?: Linter.RuleEntry<[]>
408
408
  /**
409
409
  * Ensure all exports appear after other statements.
410
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/exports-last.md
410
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/exports-last.md
411
411
  */
412
412
  'import/exports-last'?: Linter.RuleEntry<[]>
413
413
  /**
414
414
  * Ensure consistent use of file extension within the import path.
415
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/extensions.md
415
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/extensions.md
416
416
  */
417
417
  'import/extensions'?: Linter.RuleEntry<ImportExtensions>
418
418
  /**
419
419
  * Ensure all imports appear before other statements.
420
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/first.md
420
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/first.md
421
421
  */
422
422
  'import/first'?: Linter.RuleEntry<ImportFirst>
423
423
  /**
424
424
  * Prefer named exports to be grouped together in a single export declaration.
425
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/group-exports.md
425
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/group-exports.md
426
426
  */
427
427
  'import/group-exports'?: Linter.RuleEntry<[]>
428
428
  /**
429
429
  * Replaced by `import-x/first`.
430
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/imports-first.md
430
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/imports-first.md
431
431
  * @deprecated
432
432
  */
433
433
  'import/imports-first'?: Linter.RuleEntry<ImportImportsFirst>
434
434
  /**
435
435
  * Enforce the maximum number of dependencies a module can have.
436
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/max-dependencies.md
436
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/max-dependencies.md
437
437
  */
438
438
  'import/max-dependencies'?: Linter.RuleEntry<ImportMaxDependencies>
439
439
  /**
440
440
  * Ensure named imports correspond to a named export in the remote file.
441
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/named.md
441
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/named.md
442
442
  */
443
443
  'import/named'?: Linter.RuleEntry<ImportNamed>
444
444
  /**
445
445
  * Ensure imported namespaces contain dereferenced properties as they are dereferenced.
446
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/namespace.md
446
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/namespace.md
447
447
  */
448
448
  'import/namespace'?: Linter.RuleEntry<ImportNamespace>
449
449
  /**
450
450
  * Enforce a newline after import statements.
451
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/newline-after-import.md
451
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/newline-after-import.md
452
452
  */
453
453
  'import/newline-after-import'?: Linter.RuleEntry<ImportNewlineAfterImport>
454
454
  /**
455
455
  * Forbid import of modules using absolute paths.
456
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-absolute-path.md
456
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-absolute-path.md
457
457
  */
458
458
  'import/no-absolute-path'?: Linter.RuleEntry<ImportNoAbsolutePath>
459
459
  /**
460
460
  * Forbid AMD `require` and `define` calls.
461
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-amd.md
461
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-amd.md
462
462
  */
463
463
  'import/no-amd'?: Linter.RuleEntry<[]>
464
464
  /**
465
465
  * Forbid anonymous values as default exports.
466
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-anonymous-default-export.md
466
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-anonymous-default-export.md
467
467
  */
468
468
  'import/no-anonymous-default-export'?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>
469
469
  /**
470
470
  * Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
471
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-commonjs.md
471
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-commonjs.md
472
472
  */
473
473
  'import/no-commonjs'?: Linter.RuleEntry<ImportNoCommonjs>
474
474
  /**
475
475
  * Forbid a module from importing a module with a dependency path back to itself.
476
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-cycle.md
476
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-cycle.md
477
477
  */
478
478
  'import/no-cycle'?: Linter.RuleEntry<ImportNoCycle>
479
479
  /**
480
480
  * Forbid default exports.
481
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-default-export.md
481
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-default-export.md
482
482
  */
483
483
  'import/no-default-export'?: Linter.RuleEntry<[]>
484
484
  /**
485
485
  * Forbid imported names marked with `@deprecated` documentation tag.
486
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-deprecated.md
486
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-deprecated.md
487
487
  */
488
488
  'import/no-deprecated'?: Linter.RuleEntry<[]>
489
489
  /**
490
490
  * Forbid repeated import of the same module in multiple places.
491
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-duplicates.md
491
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-duplicates.md
492
492
  */
493
493
  'import/no-duplicates'?: Linter.RuleEntry<ImportNoDuplicates>
494
494
  /**
495
495
  * Forbid `require()` calls with expressions.
496
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-dynamic-require.md
496
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-dynamic-require.md
497
497
  */
498
498
  'import/no-dynamic-require'?: Linter.RuleEntry<ImportNoDynamicRequire>
499
499
  /**
500
500
  * Forbid empty named import blocks.
501
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-empty-named-blocks.md
501
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-empty-named-blocks.md
502
502
  */
503
503
  'import/no-empty-named-blocks'?: Linter.RuleEntry<[]>
504
504
  /**
505
505
  * Forbid the use of extraneous packages.
506
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-extraneous-dependencies.md
506
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-extraneous-dependencies.md
507
507
  */
508
508
  'import/no-extraneous-dependencies'?: Linter.RuleEntry<ImportNoExtraneousDependencies>
509
509
  /**
510
510
  * Forbid import statements with CommonJS module.exports.
511
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-import-module-exports.md
511
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-import-module-exports.md
512
512
  */
513
513
  'import/no-import-module-exports'?: Linter.RuleEntry<ImportNoImportModuleExports>
514
514
  /**
515
515
  * Forbid importing the submodules of other modules.
516
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-internal-modules.md
516
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-internal-modules.md
517
517
  */
518
518
  'import/no-internal-modules'?: Linter.RuleEntry<ImportNoInternalModules>
519
519
  /**
520
520
  * Forbid the use of mutable exports with `var` or `let`.
521
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-mutable-exports.md
521
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-mutable-exports.md
522
522
  */
523
523
  'import/no-mutable-exports'?: Linter.RuleEntry<[]>
524
524
  /**
525
525
  * Forbid use of exported name as identifier of default export.
526
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-named-as-default.md
526
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-named-as-default.md
527
527
  */
528
528
  'import/no-named-as-default'?: Linter.RuleEntry<[]>
529
529
  /**
530
530
  * Forbid use of exported name as property of default export.
531
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-named-as-default-member.md
531
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-named-as-default-member.md
532
532
  */
533
533
  'import/no-named-as-default-member'?: Linter.RuleEntry<[]>
534
534
  /**
535
535
  * Forbid named default exports.
536
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-named-default.md
536
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-named-default.md
537
537
  */
538
538
  'import/no-named-default'?: Linter.RuleEntry<[]>
539
539
  /**
540
540
  * Forbid named exports.
541
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-named-export.md
541
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-named-export.md
542
542
  */
543
543
  'import/no-named-export'?: Linter.RuleEntry<[]>
544
544
  /**
545
545
  * Forbid namespace (a.k.a. "wildcard" `*`) imports.
546
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-namespace.md
546
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-namespace.md
547
547
  */
548
548
  'import/no-namespace'?: Linter.RuleEntry<ImportNoNamespace>
549
549
  /**
550
550
  * Forbid Node.js builtin modules.
551
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-nodejs-modules.md
551
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-nodejs-modules.md
552
552
  */
553
553
  'import/no-nodejs-modules'?: Linter.RuleEntry<ImportNoNodejsModules>
554
554
  /**
555
555
  * Forbid importing packages through relative paths.
556
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-relative-packages.md
556
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-relative-packages.md
557
557
  */
558
558
  'import/no-relative-packages'?: Linter.RuleEntry<ImportNoRelativePackages>
559
559
  /**
560
560
  * Forbid importing modules from parent directories.
561
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-relative-parent-imports.md
561
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-relative-parent-imports.md
562
562
  */
563
563
  'import/no-relative-parent-imports'?: Linter.RuleEntry<ImportNoRelativeParentImports>
564
564
  /**
565
565
  * Forbid importing a default export by a different name.
566
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-rename-default.md
566
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-rename-default.md
567
567
  */
568
568
  'import/no-rename-default'?: Linter.RuleEntry<ImportNoRenameDefault>
569
569
  /**
570
570
  * Enforce which files can be imported in a given folder.
571
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-restricted-paths.md
571
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-restricted-paths.md
572
572
  */
573
573
  'import/no-restricted-paths'?: Linter.RuleEntry<ImportNoRestrictedPaths>
574
574
  /**
575
575
  * Forbid a module from importing itself.
576
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-self-import.md
576
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-self-import.md
577
577
  */
578
578
  'import/no-self-import'?: Linter.RuleEntry<[]>
579
579
  /**
580
580
  * Forbid unassigned imports.
581
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-unassigned-import.md
581
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-unassigned-import.md
582
582
  */
583
583
  'import/no-unassigned-import'?: Linter.RuleEntry<ImportNoUnassignedImport>
584
584
  /**
585
585
  * Ensure imports point to a file/module that can be resolved.
586
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-unresolved.md
586
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-unresolved.md
587
587
  */
588
588
  'import/no-unresolved'?: Linter.RuleEntry<ImportNoUnresolved>
589
589
  /**
590
590
  * Forbid modules without exports, or exports without matching import in another module.
591
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-unused-modules.md
591
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-unused-modules.md
592
592
  */
593
593
  'import/no-unused-modules'?: Linter.RuleEntry<ImportNoUnusedModules>
594
594
  /**
595
595
  * Forbid unnecessary path segments in import and require statements.
596
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-useless-path-segments.md
596
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-useless-path-segments.md
597
597
  */
598
598
  'import/no-useless-path-segments'?: Linter.RuleEntry<ImportNoUselessPathSegments>
599
599
  /**
600
600
  * Forbid webpack loader syntax in imports.
601
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-webpack-loader-syntax.md
601
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-webpack-loader-syntax.md
602
602
  */
603
603
  'import/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>
604
604
  /**
605
605
  * Enforce a convention in module import order.
606
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/order.md
606
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/order.md
607
607
  */
608
608
  'import/order'?: Linter.RuleEntry<ImportOrder>
609
609
  /**
610
610
  * Prefer a default export if module exports a single name or multiple names.
611
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/prefer-default-export.md
611
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/prefer-default-export.md
612
612
  */
613
613
  'import/prefer-default-export'?: Linter.RuleEntry<ImportPreferDefaultExport>
614
614
  /**
615
615
  * Forbid potentially ambiguous parse goal (`script` vs. `module`).
616
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/unambiguous.md
616
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/unambiguous.md
617
617
  */
618
618
  'import/unambiguous'?: Linter.RuleEntry<[]>
619
619
  /**
@@ -2562,8 +2562,8 @@ interface RuleOptions {
2562
2562
  */
2563
2563
  'radix'?: Linter.RuleEntry<Radix>
2564
2564
  /**
2565
- * disallow passing 'children' to void DOM elements
2566
- * @see https://eslint-react.xyz/docs/rules/dom-no-children-in-void-dom-elements
2565
+ * disallow void elements (AKA self-closing elements) from having children
2566
+ * @see https://eslint-react.xyz/docs/rules/dom-no-void-elements-with-children
2567
2567
  */
2568
2568
  'react-dom/no-children-in-void-dom-elements'?: Linter.RuleEntry<[]>
2569
2569
  /**
@@ -2622,10 +2622,20 @@ interface RuleOptions {
2622
2622
  */
2623
2623
  'react-dom/no-unsafe-target-blank'?: Linter.RuleEntry<[]>
2624
2624
  /**
2625
- * enforce custom hooks to use at least one other hook inside
2626
- * @see https://eslint-react.xyz/docs/rules/hooks-extra-no-redundant-custom-hook
2625
+ * disallow void elements (AKA self-closing elements) from having children
2626
+ * @see https://eslint-react.xyz/docs/rules/dom-no-void-elements-with-children
2627
+ */
2628
+ 'react-dom/no-void-elements-with-children'?: Linter.RuleEntry<[]>
2629
+ /**
2630
+ * enforce custom Hooks to use at least one other hook inside
2631
+ * @see https://eslint-react.xyz/docs/rules/hooks-extra-no-useless-custom-hooks
2627
2632
  */
2628
2633
  'react-hooks-extra/ensure-custom-hooks-using-other-hooks'?: Linter.RuleEntry<[]>
2634
+ /**
2635
+ * disallow unnecessary usage of 'useCallback'
2636
+ * @see https://eslint-react.xyz/docs/rules/hooks-extra-no-unnecessary-use-callback
2637
+ */
2638
+ 'react-hooks-extra/ensure-use-callback-has-non-empty-deps'?: Linter.RuleEntry<[]>
2629
2639
  /**
2630
2640
  * disallow unnecessary usage of 'useMemo'
2631
2641
  * @see https://eslint-react.xyz/docs/rules/hooks-extra-no-unnecessary-use-memo
@@ -2642,8 +2652,8 @@ interface RuleOptions {
2642
2652
  */
2643
2653
  'react-hooks-extra/no-direct-set-state-in-use-layout-effect'?: Linter.RuleEntry<[]>
2644
2654
  /**
2645
- * enforce custom hooks to use at least one other hook inside
2646
- * @see https://eslint-react.xyz/docs/rules/hooks-extra-no-redundant-custom-hook
2655
+ * enforce custom Hooks to use at least one other hook inside
2656
+ * @see https://eslint-react.xyz/docs/rules/hooks-extra-no-useless-custom-hooks
2647
2657
  */
2648
2658
  'react-hooks-extra/no-redundant-custom-hook'?: Linter.RuleEntry<[]>
2649
2659
  /**
@@ -2656,6 +2666,11 @@ interface RuleOptions {
2656
2666
  * @see https://eslint-react.xyz/docs/rules/hooks-extra-no-unnecessary-use-memo
2657
2667
  */
2658
2668
  'react-hooks-extra/no-unnecessary-use-memo'?: Linter.RuleEntry<[]>
2669
+ /**
2670
+ * enforce custom Hooks to use at least one other hook inside
2671
+ * @see https://eslint-react.xyz/docs/rules/hooks-extra-no-useless-custom-hooks
2672
+ */
2673
+ 'react-hooks-extra/no-useless-custom-hooks'?: Linter.RuleEntry<[]>
2659
2674
  /**
2660
2675
  * disallow function calls in 'useState' that aren't wrapped in an initializer function
2661
2676
  * @see https://eslint-react.xyz/docs/rules/hooks-extra-prefer-use-state-lazy-initialization
@@ -2692,6 +2707,26 @@ interface RuleOptions {
2692
2707
  */
2693
2708
  'react-naming-convention/use-state'?: Linter.RuleEntry<[]>
2694
2709
  'react-refresh/only-export-components'?: Linter.RuleEntry<ReactRefreshOnlyExportComponents>
2710
+ /**
2711
+ * enforce that every 'addEventListener' in a component or custom Hook has a corresponding 'removeEventListener'.
2712
+ * @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-event-listener
2713
+ */
2714
+ 'react-web-api/no-leaked-event-listener'?: Linter.RuleEntry<[]>
2715
+ /**
2716
+ * enforce that every 'setInterval' in a component or custom Hook has a corresponding 'clearInterval'.
2717
+ * @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-interval
2718
+ */
2719
+ 'react-web-api/no-leaked-interval'?: Linter.RuleEntry<[]>
2720
+ /**
2721
+ * enforce cleanup of 'ResizeObserver' instances in components and custom Hooks.
2722
+ * @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-resize-observer
2723
+ */
2724
+ 'react-web-api/no-leaked-resize-observer'?: Linter.RuleEntry<[]>
2725
+ /**
2726
+ * enforce that every 'setTimeout' in a component or custom Hook has a corresponding 'clearTimeout'.
2727
+ * @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-timeout
2728
+ */
2729
+ 'react-web-api/no-leaked-timeout'?: Linter.RuleEntry<[]>
2695
2730
  /**
2696
2731
  * disallow using shorthand boolean attributes
2697
2732
  * @see https://eslint-react.xyz/docs/rules/avoid-shorthand-boolean
@@ -2709,12 +2744,12 @@ interface RuleOptions {
2709
2744
  'react/ensure-forward-ref-using-ref'?: Linter.RuleEntry<[]>
2710
2745
  /**
2711
2746
  * disallow duplicate props
2712
- * @see https://eslint-react.xyz/docs/rules/jsx-no-duplicate-props
2747
+ * @see https://eslint-react.xyz/docs/rules/no-duplicate-jsx-props
2713
2748
  */
2714
2749
  'react/jsx-no-duplicate-props'?: Linter.RuleEntry<[]>
2715
2750
  /**
2716
- * a helper rule to mark variables as used
2717
- * @see https://eslint-react.xyz/docs/rules/jsx-uses-vars
2751
+ * helpes `eslint/no-unused-vars` to correctly mark JSX variables as used.
2752
+ * @see https://eslint-react.xyz/docs/rules/use-jsx-vars
2718
2753
  */
2719
2754
  'react/jsx-uses-vars'?: Linter.RuleEntry<[]>
2720
2755
  /**
@@ -2817,6 +2852,11 @@ interface RuleOptions {
2817
2852
  * @see https://eslint-react.xyz/docs/rules/no-direct-mutation-state
2818
2853
  */
2819
2854
  'react/no-direct-mutation-state'?: Linter.RuleEntry<[]>
2855
+ /**
2856
+ * disallow duplicate props
2857
+ * @see https://eslint-react.xyz/docs/rules/no-duplicate-jsx-props
2858
+ */
2859
+ 'react/no-duplicate-jsx-props'?: Linter.RuleEntry<[]>
2820
2860
  /**
2821
2861
  * disallow duplicate keys when rendering list
2822
2862
  * @see https://eslint-react.xyz/docs/rules/no-duplicate-key
@@ -2947,6 +2987,11 @@ interface RuleOptions {
2947
2987
  * @see https://eslint-react.xyz/docs/rules/prefer-shorthand-fragment
2948
2988
  */
2949
2989
  'react/prefer-shorthand-fragment'?: Linter.RuleEntry<[]>
2990
+ /**
2991
+ * helpes `eslint/no-unused-vars` to correctly mark JSX variables as used.
2992
+ * @see https://eslint-react.xyz/docs/rules/use-jsx-vars
2993
+ */
2994
+ 'react/use-jsx-vars'?: Linter.RuleEntry<[]>
2950
2995
  /**
2951
2996
  * disallow confusing quantifiers
2952
2997
  * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/confusing-quantifier.html
@@ -3402,7 +3447,7 @@ interface RuleOptions {
3402
3447
  */
3403
3448
  'semi-style'?: Linter.RuleEntry<SemiStyle>
3404
3449
  /**
3405
- * Enforce sorted import declarations within modules
3450
+ * Enforce sorted `import` declarations within modules
3406
3451
  * @see https://eslint.org/docs/latest/rules/sort-imports
3407
3452
  */
3408
3453
  'sort-imports'?: Linter.RuleEntry<SortImports>
@@ -4128,7 +4173,7 @@ interface RuleOptions {
4128
4173
  */
4129
4174
  'test/padding-around-expect-groups'?: Linter.RuleEntry<[]>
4130
4175
  /**
4131
- * Enforce padding around afterAll blocks
4176
+ * Enforce padding around `test` blocks
4132
4177
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/padding-around-test-blocks.md
4133
4178
  */
4134
4179
  'test/padding-around-test-blocks'?: Linter.RuleEntry<[]>
@@ -4233,7 +4278,7 @@ interface RuleOptions {
4233
4278
  */
4234
4279
  'test/prefer-todo'?: Linter.RuleEntry<[]>
4235
4280
  /**
4236
- * Prefer `vi.mocked()` over `fn as Mock`
4281
+ * require `vi.mocked()` over `fn as Mock`
4237
4282
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-vi-mocked.md
4238
4283
  */
4239
4284
  'test/prefer-vi-mocked'?: Linter.RuleEntry<[]>
@@ -4268,7 +4313,7 @@ interface RuleOptions {
4268
4313
  */
4269
4314
  'test/valid-expect'?: Linter.RuleEntry<TestValidExpect>
4270
4315
  /**
4271
- * Require promises that have expectations in their chain to be valid
4316
+ * require promises that have expectations in their chain to be valid
4272
4317
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/valid-expect-in-promise.md
4273
4318
  */
4274
4319
  'test/valid-expect-in-promise'?: Linter.RuleEntry<[]>
@@ -4537,7 +4582,7 @@ interface RuleOptions {
4537
4582
  * Disallow using code marked as `@deprecated`
4538
4583
  * @see https://typescript-eslint.io/rules/no-deprecated
4539
4584
  */
4540
- 'ts/no-deprecated'?: Linter.RuleEntry<[]>
4585
+ 'ts/no-deprecated'?: Linter.RuleEntry<TsNoDeprecated>
4541
4586
  /**
4542
4587
  * Disallow duplicate class members
4543
4588
  * @see https://typescript-eslint.io/rules/no-dupe-class-members
@@ -4655,6 +4700,11 @@ interface RuleOptions {
4655
4700
  * @see https://typescript-eslint.io/rules/no-misused-promises
4656
4701
  */
4657
4702
  'ts/no-misused-promises'?: Linter.RuleEntry<TsNoMisusedPromises>
4703
+ /**
4704
+ * Disallow using the spread operator when it might cause unexpected behavior
4705
+ * @see https://typescript-eslint.io/rules/no-misused-spread
4706
+ */
4707
+ 'ts/no-misused-spread'?: Linter.RuleEntry<TsNoMisusedSpread>
4658
4708
  /**
4659
4709
  * Disallow enums from having both number and string members
4660
4710
  * @see https://typescript-eslint.io/rules/no-mixed-enums
@@ -4853,7 +4903,7 @@ interface RuleOptions {
4853
4903
  */
4854
4904
  'ts/no-wrapper-object-types'?: Linter.RuleEntry<[]>
4855
4905
  /**
4856
- * Enforce non-null assertions over explicit type casts
4906
+ * Enforce non-null assertions over explicit type assertions
4857
4907
  * @see https://typescript-eslint.io/rules/non-nullable-type-assertion-style
4858
4908
  */
4859
4909
  'ts/non-nullable-type-assertion-style'?: Linter.RuleEntry<[]>
@@ -4938,7 +4988,7 @@ interface RuleOptions {
4938
4988
  */
4939
4989
  'ts/prefer-readonly-parameter-types'?: Linter.RuleEntry<TsPreferReadonlyParameterTypes>
4940
4990
  /**
4941
- * Enforce using type parameter when calling `Array#reduce` instead of casting
4991
+ * Enforce using type parameter when calling `Array#reduce` instead of using a type assertion
4942
4992
  * @see https://typescript-eslint.io/rules/prefer-reduce-type-parameter
4943
4993
  */
4944
4994
  'ts/prefer-reduce-type-parameter'?: Linter.RuleEntry<[]>
@@ -9762,14 +9812,74 @@ type PaddingLineBetweenStatements = {
9762
9812
  next: _PaddingLineBetweenStatementsStatementType
9763
9813
  }[]
9764
9814
  // ----- perfectionist/sort-array-includes -----
9765
- type PerfectionistSortArrayIncludes = []|[{
9815
+ type PerfectionistSortArrayIncludes = {
9816
+
9817
+ specialCharacters?: ("remove" | "trim" | "keep")
9818
+
9819
+ ignoreCase?: boolean
9820
+
9821
+ alphabet?: string
9822
+
9823
+ locales?: (string | string[])
9766
9824
 
9767
- partitionByComment?: (string[] | boolean | string)
9825
+ order?: ("asc" | "desc")
9768
9826
 
9769
9827
  groupKind?: ("mixed" | "literals-first" | "spreads-first")
9770
9828
 
9829
+ customGroups?: ({
9830
+
9831
+ groupName?: string
9832
+
9833
+ type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
9834
+
9835
+ order?: ("desc" | "asc")
9836
+
9837
+ newlinesInside?: ("always" | "never")
9838
+ anyOf?: {
9839
+
9840
+ selector?: ("literal" | "spread")
9841
+
9842
+ elementNamePattern?: string
9843
+ }[]
9844
+ } | {
9845
+
9846
+ groupName?: string
9847
+
9848
+ type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
9849
+
9850
+ order?: ("desc" | "asc")
9851
+
9852
+ newlinesInside?: ("always" | "never")
9853
+
9854
+ selector?: ("literal" | "spread")
9855
+
9856
+ elementNamePattern?: string
9857
+ })[]
9858
+ useConfigurationIf?: {
9859
+ allNamesMatchPattern?: string
9860
+ }
9861
+
9862
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
9863
+
9864
+ partitionByComment?: (string[] | boolean | string | {
9865
+ block?: (string[] | boolean | string)
9866
+ line?: (string[] | boolean | string)
9867
+ [k: string]: unknown | undefined
9868
+ })
9869
+
9771
9870
  partitionByNewLine?: boolean
9772
9871
 
9872
+ newlinesBetween?: ("ignore" | "always" | "never")
9873
+
9874
+ groups?: (string | string[] | {
9875
+
9876
+ newlinesBetween?: ("ignore" | "always" | "never")
9877
+ [k: string]: unknown | undefined
9878
+ })[]
9879
+ }[]
9880
+ // ----- perfectionist/sort-classes -----
9881
+ type PerfectionistSortClasses = []|[{
9882
+
9773
9883
  specialCharacters?: ("remove" | "trim" | "keep")
9774
9884
 
9775
9885
  ignoreCase?: boolean
@@ -9780,15 +9890,8 @@ type PerfectionistSortArrayIncludes = []|[{
9780
9890
 
9781
9891
  order?: ("asc" | "desc")
9782
9892
 
9783
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
9784
- }]
9785
- // ----- perfectionist/sort-classes -----
9786
- type PerfectionistSortClasses = []|[{
9787
-
9788
9893
  ignoreCallbackDependenciesPatterns?: string[]
9789
9894
 
9790
- partitionByComment?: (string[] | boolean | string)
9791
-
9792
9895
  customGroups?: ({
9793
9896
 
9794
9897
  groupName?: string
@@ -9796,16 +9899,18 @@ type PerfectionistSortClasses = []|[{
9796
9899
  type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
9797
9900
 
9798
9901
  order?: ("desc" | "asc")
9902
+
9903
+ newlinesInside?: ("always" | "never")
9799
9904
  anyOf?: {
9800
9905
 
9801
- elementValuePattern?: string
9802
-
9803
9906
  decoratorNamePattern?: string
9804
9907
 
9805
9908
  modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[]
9806
9909
 
9807
9910
  selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method")
9808
9911
 
9912
+ elementValuePattern?: string
9913
+
9809
9914
  elementNamePattern?: string
9810
9915
  }[]
9811
9916
  } | {
@@ -9816,7 +9921,7 @@ type PerfectionistSortClasses = []|[{
9816
9921
 
9817
9922
  order?: ("desc" | "asc")
9818
9923
 
9819
- elementValuePattern?: string
9924
+ newlinesInside?: ("always" | "never")
9820
9925
 
9821
9926
  decoratorNamePattern?: string
9822
9927
 
@@ -9824,32 +9929,42 @@ type PerfectionistSortClasses = []|[{
9824
9929
 
9825
9930
  selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method")
9826
9931
 
9932
+ elementValuePattern?: string
9933
+
9827
9934
  elementNamePattern?: string
9828
9935
  })[]
9829
9936
 
9830
- partitionByNewLine?: boolean
9937
+ partitionByComment?: (string[] | boolean | string | {
9938
+ block?: (string[] | boolean | string)
9939
+ line?: (string[] | boolean | string)
9940
+ [k: string]: unknown | undefined
9941
+ })
9831
9942
 
9832
- specialCharacters?: ("remove" | "trim" | "keep")
9943
+ partitionByNewLine?: boolean
9833
9944
 
9834
9945
  newlinesBetween?: ("ignore" | "always" | "never")
9835
9946
 
9947
+ type?: ("alphabetical" | "natural" | "line-length" | "custom")
9948
+
9949
+ groups?: (string | string[] | {
9950
+
9951
+ newlinesBetween?: ("ignore" | "always" | "never")
9952
+ [k: string]: unknown | undefined
9953
+ })[]
9954
+ }]
9955
+ // ----- perfectionist/sort-decorators -----
9956
+ type PerfectionistSortDecorators = []|[{
9957
+
9958
+ specialCharacters?: ("remove" | "trim" | "keep")
9959
+
9836
9960
  ignoreCase?: boolean
9837
9961
 
9838
9962
  alphabet?: string
9839
9963
 
9840
9964
  locales?: (string | string[])
9841
9965
 
9842
- groups?: (string | string[])[]
9843
-
9844
9966
  order?: ("asc" | "desc")
9845
9967
 
9846
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
9847
- }]
9848
- // ----- perfectionist/sort-decorators -----
9849
- type PerfectionistSortDecorators = []|[{
9850
-
9851
- partitionByComment?: (string[] | boolean | string)
9852
-
9853
9968
  sortOnParameters?: boolean
9854
9969
 
9855
9970
  sortOnProperties?: boolean
@@ -9860,35 +9975,27 @@ type PerfectionistSortDecorators = []|[{
9860
9975
 
9861
9976
  sortOnClasses?: boolean
9862
9977
 
9863
- specialCharacters?: ("remove" | "trim" | "keep")
9978
+ partitionByComment?: (string[] | boolean | string | {
9979
+ block?: (string[] | boolean | string)
9980
+ line?: (string[] | boolean | string)
9981
+ [k: string]: unknown | undefined
9982
+ })
9864
9983
 
9865
9984
  customGroups?: {
9866
9985
  [k: string]: (string | string[]) | undefined
9867
9986
  }
9868
9987
 
9869
- ignoreCase?: boolean
9870
-
9871
- alphabet?: string
9872
-
9873
- locales?: (string | string[])
9874
-
9875
- groups?: (string | string[])[]
9876
-
9877
- order?: ("asc" | "desc")
9878
-
9879
9988
  type?: ("alphabetical" | "natural" | "line-length" | "custom")
9989
+
9990
+ groups?: (string | string[] | {
9991
+
9992
+ newlinesBetween?: ("ignore" | "always" | "never")
9993
+ [k: string]: unknown | undefined
9994
+ })[]
9880
9995
  }]
9881
9996
  // ----- perfectionist/sort-enums -----
9882
9997
  type PerfectionistSortEnums = []|[{
9883
9998
 
9884
- partitionByComment?: (string[] | boolean | string)
9885
-
9886
- forceNumericSort?: boolean
9887
-
9888
- sortByValue?: boolean
9889
-
9890
- partitionByNewLine?: boolean
9891
-
9892
9999
  specialCharacters?: ("remove" | "trim" | "keep")
9893
10000
 
9894
10001
  ignoreCase?: boolean
@@ -9899,17 +10006,23 @@ type PerfectionistSortEnums = []|[{
9899
10006
 
9900
10007
  order?: ("asc" | "desc")
9901
10008
 
9902
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
9903
- }]
9904
- // ----- perfectionist/sort-exports -----
9905
- type PerfectionistSortExports = []|[{
10009
+ forceNumericSort?: boolean
9906
10010
 
9907
- partitionByComment?: (string[] | boolean | string)
10011
+ sortByValue?: boolean
9908
10012
 
9909
- groupKind?: ("mixed" | "values-first" | "types-first")
10013
+ partitionByComment?: (string[] | boolean | string | {
10014
+ block?: (string[] | boolean | string)
10015
+ line?: (string[] | boolean | string)
10016
+ [k: string]: unknown | undefined
10017
+ })
9910
10018
 
9911
10019
  partitionByNewLine?: boolean
9912
10020
 
10021
+ type?: ("alphabetical" | "natural" | "line-length" | "custom")
10022
+ }]
10023
+ // ----- perfectionist/sort-exports -----
10024
+ type PerfectionistSortExports = []|[{
10025
+
9913
10026
  specialCharacters?: ("remove" | "trim" | "keep")
9914
10027
 
9915
10028
  ignoreCase?: boolean
@@ -9920,6 +10033,16 @@ type PerfectionistSortExports = []|[{
9920
10033
 
9921
10034
  order?: ("asc" | "desc")
9922
10035
 
10036
+ groupKind?: ("mixed" | "values-first" | "types-first")
10037
+
10038
+ partitionByComment?: (string[] | boolean | string | {
10039
+ block?: (string[] | boolean | string)
10040
+ line?: (string[] | boolean | string)
10041
+ [k: string]: unknown | undefined
10042
+ })
10043
+
10044
+ partitionByNewLine?: boolean
10045
+
9923
10046
  type?: ("alphabetical" | "natural" | "line-length" | "custom")
9924
10047
  }]
9925
10048
  // ----- perfectionist/sort-heritage-clauses -----
@@ -9927,26 +10050,40 @@ type PerfectionistSortHeritageClauses = []|[{
9927
10050
 
9928
10051
  specialCharacters?: ("remove" | "trim" | "keep")
9929
10052
 
9930
- customGroups?: {
9931
- [k: string]: (string | string[]) | undefined
9932
- }
9933
-
9934
10053
  ignoreCase?: boolean
9935
10054
 
9936
10055
  alphabet?: string
9937
10056
 
9938
10057
  locales?: (string | string[])
9939
10058
 
9940
- groups?: (string | string[])[]
9941
-
9942
10059
  order?: ("asc" | "desc")
9943
10060
 
10061
+ customGroups?: {
10062
+ [k: string]: (string | string[]) | undefined
10063
+ }
10064
+
9944
10065
  type?: ("alphabetical" | "natural" | "line-length" | "custom")
10066
+
10067
+ groups?: (string | string[] | {
10068
+
10069
+ newlinesBetween?: ("ignore" | "always" | "never")
10070
+ [k: string]: unknown | undefined
10071
+ })[]
9945
10072
  }]
9946
10073
  // ----- perfectionist/sort-imports -----
9947
10074
  type PerfectionistSortImports = []|[_PerfectionistSortImportsSortImports]
9948
10075
  type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLengthRequiresLineLengthType & {
9949
10076
 
10077
+ specialCharacters?: ("remove" | "trim" | "keep")
10078
+
10079
+ ignoreCase?: boolean
10080
+
10081
+ alphabet?: string
10082
+
10083
+ locales?: (string | string[])
10084
+
10085
+ order?: ("asc" | "desc")
10086
+
9950
10087
  customGroups?: {
9951
10088
 
9952
10089
  value?: {
@@ -9958,8 +10095,6 @@ type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLen
9958
10095
  }
9959
10096
  }
9960
10097
 
9961
- partitionByComment?: (string[] | boolean | string)
9962
-
9963
10098
  internalPattern?: string[]
9964
10099
 
9965
10100
  maxLineLength?: number
@@ -9970,23 +10105,23 @@ type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLen
9970
10105
 
9971
10106
  tsconfigRootDir?: string
9972
10107
 
9973
- partitionByNewLine?: boolean
10108
+ partitionByComment?: (string[] | boolean | string | {
10109
+ block?: (string[] | boolean | string)
10110
+ line?: (string[] | boolean | string)
10111
+ [k: string]: unknown | undefined
10112
+ })
9974
10113
 
9975
- specialCharacters?: ("remove" | "trim" | "keep")
10114
+ partitionByNewLine?: boolean
9976
10115
 
9977
10116
  newlinesBetween?: ("ignore" | "always" | "never")
9978
10117
 
9979
- ignoreCase?: boolean
9980
-
9981
- alphabet?: string
9982
-
9983
- locales?: (string | string[])
9984
-
9985
- groups?: (string | string[])[]
9986
-
9987
- order?: ("asc" | "desc")
9988
-
9989
10118
  type?: ("alphabetical" | "natural" | "line-length" | "custom")
10119
+
10120
+ groups?: (string | string[] | {
10121
+
10122
+ newlinesBetween?: ("ignore" | "always" | "never")
10123
+ [k: string]: unknown | undefined
10124
+ })[]
9990
10125
  })
9991
10126
  type _PerfectionistSortImportsMaxLineLengthRequiresLineLengthType = ({
9992
10127
  [k: string]: unknown | undefined
@@ -9996,11 +10131,23 @@ interface _PerfectionistSortImports_IsLineLength {
9996
10131
  [k: string]: unknown | undefined
9997
10132
  }
9998
10133
  // ----- perfectionist/sort-interfaces -----
9999
- type PerfectionistSortInterfaces = []|[{
10134
+ type PerfectionistSortInterfaces = {
10000
10135
 
10001
- ignorePattern?: string[]
10136
+ specialCharacters?: ("remove" | "trim" | "keep")
10137
+
10138
+ ignoreCase?: boolean
10139
+
10140
+ alphabet?: string
10141
+
10142
+ locales?: (string | string[])
10143
+
10144
+ order?: ("asc" | "desc")
10002
10145
 
10003
- partitionByComment?: (string[] | boolean | string)
10146
+ ignorePattern?: string[]
10147
+ useConfigurationIf?: {
10148
+ allNamesMatchPattern?: string
10149
+ declarationMatchesPattern?: string
10150
+ }
10004
10151
  customGroups?: ({
10005
10152
  [k: string]: (string | string[]) | undefined
10006
10153
  } | ({
@@ -10010,6 +10157,8 @@ type PerfectionistSortInterfaces = []|[{
10010
10157
  type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
10011
10158
 
10012
10159
  order?: ("desc" | "asc")
10160
+
10161
+ newlinesInside?: ("always" | "never")
10013
10162
  anyOf?: {
10014
10163
 
10015
10164
  modifiers?: ("optional" | "required" | "multiline")[]
@@ -10026,6 +10175,8 @@ type PerfectionistSortInterfaces = []|[{
10026
10175
 
10027
10176
  order?: ("desc" | "asc")
10028
10177
 
10178
+ newlinesInside?: ("always" | "never")
10179
+
10029
10180
  modifiers?: ("optional" | "required" | "multiline")[]
10030
10181
 
10031
10182
  selector?: ("index-signature" | "member" | "method" | "multiline" | "property")
@@ -10035,77 +10186,149 @@ type PerfectionistSortInterfaces = []|[{
10035
10186
 
10036
10187
  groupKind?: ("mixed" | "required-first" | "optional-first")
10037
10188
 
10038
- partitionByNewLine?: boolean
10189
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10039
10190
 
10040
- specialCharacters?: ("remove" | "trim" | "keep")
10191
+ partitionByComment?: (string[] | boolean | string | {
10192
+ block?: (string[] | boolean | string)
10193
+ line?: (string[] | boolean | string)
10194
+ [k: string]: unknown | undefined
10195
+ })
10196
+
10197
+ partitionByNewLine?: boolean
10041
10198
 
10042
10199
  newlinesBetween?: ("ignore" | "always" | "never")
10043
10200
 
10201
+ groups?: (string | string[] | {
10202
+
10203
+ newlinesBetween?: ("ignore" | "always" | "never")
10204
+ [k: string]: unknown | undefined
10205
+ })[]
10206
+ }[]
10207
+ // ----- perfectionist/sort-intersection-types -----
10208
+ type PerfectionistSortIntersectionTypes = []|[{
10209
+
10210
+ specialCharacters?: ("remove" | "trim" | "keep")
10211
+
10044
10212
  ignoreCase?: boolean
10045
10213
 
10046
10214
  alphabet?: string
10047
10215
 
10048
10216
  locales?: (string | string[])
10049
10217
 
10050
- groups?: (string | string[])[]
10051
-
10052
10218
  order?: ("asc" | "desc")
10053
10219
 
10054
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
10055
- }]
10056
- // ----- perfectionist/sort-intersection-types -----
10057
- type PerfectionistSortIntersectionTypes = []|[{
10058
-
10059
- partitionByComment?: (string[] | boolean | string)
10220
+ partitionByComment?: (string[] | boolean | string | {
10221
+ block?: (string[] | boolean | string)
10222
+ line?: (string[] | boolean | string)
10223
+ [k: string]: unknown | undefined
10224
+ })
10060
10225
 
10061
10226
  partitionByNewLine?: boolean
10062
10227
 
10063
- specialCharacters?: ("remove" | "trim" | "keep")
10064
-
10065
10228
  newlinesBetween?: ("ignore" | "always" | "never")
10066
10229
 
10230
+ type?: ("alphabetical" | "natural" | "line-length" | "custom")
10231
+
10232
+ groups?: (string | string[] | {
10233
+
10234
+ newlinesBetween?: ("ignore" | "always" | "never")
10235
+ [k: string]: unknown | undefined
10236
+ })[]
10237
+ }]
10238
+ // ----- perfectionist/sort-jsx-props -----
10239
+ type PerfectionistSortJsxProps = []|[{
10240
+
10241
+ specialCharacters?: ("remove" | "trim" | "keep")
10242
+
10067
10243
  ignoreCase?: boolean
10068
10244
 
10069
10245
  alphabet?: string
10070
10246
 
10071
10247
  locales?: (string | string[])
10072
10248
 
10073
- groups?: (string | string[])[]
10074
-
10075
10249
  order?: ("asc" | "desc")
10076
10250
 
10077
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
10078
- }]
10079
- // ----- perfectionist/sort-jsx-props -----
10080
- type PerfectionistSortJsxProps = []|[{
10081
-
10082
10251
  ignorePattern?: string[]
10083
10252
 
10084
- specialCharacters?: ("remove" | "trim" | "keep")
10253
+ partitionByNewLine?: boolean
10254
+
10255
+ newlinesBetween?: ("ignore" | "always" | "never")
10085
10256
 
10086
10257
  customGroups?: {
10087
10258
  [k: string]: (string | string[]) | undefined
10088
10259
  }
10089
10260
 
10261
+ type?: ("alphabetical" | "natural" | "line-length" | "custom")
10262
+
10263
+ groups?: (string | string[] | {
10264
+
10265
+ newlinesBetween?: ("ignore" | "always" | "never")
10266
+ [k: string]: unknown | undefined
10267
+ })[]
10268
+ }]
10269
+ // ----- perfectionist/sort-maps -----
10270
+ type PerfectionistSortMaps = {
10271
+
10272
+ specialCharacters?: ("remove" | "trim" | "keep")
10273
+
10090
10274
  ignoreCase?: boolean
10091
10275
 
10092
10276
  alphabet?: string
10093
10277
 
10094
10278
  locales?: (string | string[])
10095
10279
 
10096
- groups?: (string | string[])[]
10097
-
10098
10280
  order?: ("asc" | "desc")
10099
10281
 
10100
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
10101
- }]
10102
- // ----- perfectionist/sort-maps -----
10103
- type PerfectionistSortMaps = []|[{
10282
+ customGroups?: ({
10283
+
10284
+ groupName?: string
10285
+
10286
+ type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
10287
+
10288
+ order?: ("desc" | "asc")
10289
+
10290
+ newlinesInside?: ("always" | "never")
10291
+ anyOf?: {
10292
+
10293
+ elementNamePattern?: string
10294
+ }[]
10295
+ } | {
10296
+
10297
+ groupName?: string
10298
+
10299
+ type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
10300
+
10301
+ order?: ("desc" | "asc")
10302
+
10303
+ newlinesInside?: ("always" | "never")
10304
+
10305
+ elementNamePattern?: string
10306
+ })[]
10307
+ useConfigurationIf?: {
10308
+ allNamesMatchPattern?: string
10309
+ }
10104
10310
 
10105
- partitionByComment?: (string[] | boolean | string)
10311
+ partitionByComment?: (string[] | boolean | string | {
10312
+ block?: (string[] | boolean | string)
10313
+ line?: (string[] | boolean | string)
10314
+ [k: string]: unknown | undefined
10315
+ })
10106
10316
 
10107
10317
  partitionByNewLine?: boolean
10108
10318
 
10319
+ newlinesBetween?: ("ignore" | "always" | "never")
10320
+
10321
+ type?: ("alphabetical" | "natural" | "line-length" | "custom")
10322
+
10323
+ groups?: (string | string[] | {
10324
+
10325
+ newlinesBetween?: ("ignore" | "always" | "never")
10326
+ [k: string]: unknown | undefined
10327
+ })[]
10328
+ }[]
10329
+ // ----- perfectionist/sort-modules -----
10330
+ type PerfectionistSortModules = []|[{
10331
+
10109
10332
  specialCharacters?: ("remove" | "trim" | "keep")
10110
10333
 
10111
10334
  ignoreCase?: boolean
@@ -10116,13 +10339,6 @@ type PerfectionistSortMaps = []|[{
10116
10339
 
10117
10340
  order?: ("asc" | "desc")
10118
10341
 
10119
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
10120
- }]
10121
- // ----- perfectionist/sort-modules -----
10122
- type PerfectionistSortModules = []|[{
10123
-
10124
- partitionByComment?: (string[] | boolean | string)
10125
-
10126
10342
  customGroups?: ({
10127
10343
 
10128
10344
  groupName?: string
@@ -10130,6 +10346,8 @@ type PerfectionistSortModules = []|[{
10130
10346
  type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
10131
10347
 
10132
10348
  order?: ("desc" | "asc")
10349
+
10350
+ newlinesInside?: ("always" | "never")
10133
10351
  anyOf?: {
10134
10352
 
10135
10353
  decoratorNamePattern?: string
@@ -10148,6 +10366,8 @@ type PerfectionistSortModules = []|[{
10148
10366
 
10149
10367
  order?: ("desc" | "asc")
10150
10368
 
10369
+ newlinesInside?: ("always" | "never")
10370
+
10151
10371
  decoratorNamePattern?: string
10152
10372
 
10153
10373
  modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[]
@@ -10157,33 +10377,52 @@ type PerfectionistSortModules = []|[{
10157
10377
  elementNamePattern?: string
10158
10378
  })[]
10159
10379
 
10160
- partitionByNewLine?: boolean
10380
+ partitionByComment?: (string[] | boolean | string | {
10381
+ block?: (string[] | boolean | string)
10382
+ line?: (string[] | boolean | string)
10383
+ [k: string]: unknown | undefined
10384
+ })
10161
10385
 
10162
- specialCharacters?: ("remove" | "trim" | "keep")
10386
+ partitionByNewLine?: boolean
10163
10387
 
10164
10388
  newlinesBetween?: ("ignore" | "always" | "never")
10165
10389
 
10390
+ type?: ("alphabetical" | "natural" | "line-length" | "custom")
10391
+
10392
+ groups?: (string | string[] | {
10393
+
10394
+ newlinesBetween?: ("ignore" | "always" | "never")
10395
+ [k: string]: unknown | undefined
10396
+ })[]
10397
+ }]
10398
+ // ----- perfectionist/sort-named-exports -----
10399
+ type PerfectionistSortNamedExports = []|[{
10400
+
10401
+ specialCharacters?: ("remove" | "trim" | "keep")
10402
+
10166
10403
  ignoreCase?: boolean
10167
10404
 
10168
10405
  alphabet?: string
10169
10406
 
10170
10407
  locales?: (string | string[])
10171
10408
 
10172
- groups?: (string | string[])[]
10173
-
10174
10409
  order?: ("asc" | "desc")
10175
10410
 
10176
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
10177
- }]
10178
- // ----- perfectionist/sort-named-exports -----
10179
- type PerfectionistSortNamedExports = []|[{
10180
-
10181
- partitionByComment?: (string[] | boolean | string)
10182
-
10183
10411
  groupKind?: ("mixed" | "values-first" | "types-first")
10184
10412
 
10413
+ partitionByComment?: (string[] | boolean | string | {
10414
+ block?: (string[] | boolean | string)
10415
+ line?: (string[] | boolean | string)
10416
+ [k: string]: unknown | undefined
10417
+ })
10418
+
10185
10419
  partitionByNewLine?: boolean
10186
10420
 
10421
+ type?: ("alphabetical" | "natural" | "line-length" | "custom")
10422
+ }]
10423
+ // ----- perfectionist/sort-named-imports -----
10424
+ type PerfectionistSortNamedImports = []|[{
10425
+
10187
10426
  specialCharacters?: ("remove" | "trim" | "keep")
10188
10427
 
10189
10428
  ignoreCase?: boolean
@@ -10194,19 +10433,23 @@ type PerfectionistSortNamedExports = []|[{
10194
10433
 
10195
10434
  order?: ("asc" | "desc")
10196
10435
 
10197
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
10198
- }]
10199
- // ----- perfectionist/sort-named-imports -----
10200
- type PerfectionistSortNamedImports = []|[{
10201
-
10202
- partitionByComment?: (string[] | boolean | string)
10203
-
10204
10436
  groupKind?: ("mixed" | "values-first" | "types-first")
10205
10437
 
10206
10438
  ignoreAlias?: boolean
10207
10439
 
10440
+ partitionByComment?: (string[] | boolean | string | {
10441
+ block?: (string[] | boolean | string)
10442
+ line?: (string[] | boolean | string)
10443
+ [k: string]: unknown | undefined
10444
+ })
10445
+
10208
10446
  partitionByNewLine?: boolean
10209
10447
 
10448
+ type?: ("alphabetical" | "natural" | "line-length" | "custom")
10449
+ }]
10450
+ // ----- perfectionist/sort-object-types -----
10451
+ type PerfectionistSortObjectTypes = {
10452
+
10210
10453
  specialCharacters?: ("remove" | "trim" | "keep")
10211
10454
 
10212
10455
  ignoreCase?: boolean
@@ -10217,14 +10460,11 @@ type PerfectionistSortNamedImports = []|[{
10217
10460
 
10218
10461
  order?: ("asc" | "desc")
10219
10462
 
10220
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
10221
- }]
10222
- // ----- perfectionist/sort-object-types -----
10223
- type PerfectionistSortObjectTypes = []|[{
10224
-
10225
10463
  ignorePattern?: string[]
10226
-
10227
- partitionByComment?: (string[] | boolean | string)
10464
+ useConfigurationIf?: {
10465
+ allNamesMatchPattern?: string
10466
+ declarationMatchesPattern?: string
10467
+ }
10228
10468
  customGroups?: ({
10229
10469
  [k: string]: (string | string[]) | undefined
10230
10470
  } | ({
@@ -10234,6 +10474,8 @@ type PerfectionistSortObjectTypes = []|[{
10234
10474
  type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
10235
10475
 
10236
10476
  order?: ("desc" | "asc")
10477
+
10478
+ newlinesInside?: ("always" | "never")
10237
10479
  anyOf?: {
10238
10480
 
10239
10481
  modifiers?: ("optional" | "required" | "multiline")[]
@@ -10250,6 +10492,8 @@ type PerfectionistSortObjectTypes = []|[{
10250
10492
 
10251
10493
  order?: ("desc" | "asc")
10252
10494
 
10495
+ newlinesInside?: ("always" | "never")
10496
+
10253
10497
  modifiers?: ("optional" | "required" | "multiline")[]
10254
10498
 
10255
10499
  selector?: ("index-signature" | "member" | "method" | "multiline" | "property")
@@ -10259,35 +10503,86 @@ type PerfectionistSortObjectTypes = []|[{
10259
10503
 
10260
10504
  groupKind?: ("mixed" | "required-first" | "optional-first")
10261
10505
 
10262
- partitionByNewLine?: boolean
10506
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10263
10507
 
10264
- specialCharacters?: ("remove" | "trim" | "keep")
10508
+ partitionByComment?: (string[] | boolean | string | {
10509
+ block?: (string[] | boolean | string)
10510
+ line?: (string[] | boolean | string)
10511
+ [k: string]: unknown | undefined
10512
+ })
10513
+
10514
+ partitionByNewLine?: boolean
10265
10515
 
10266
10516
  newlinesBetween?: ("ignore" | "always" | "never")
10267
10517
 
10518
+ groups?: (string | string[] | {
10519
+
10520
+ newlinesBetween?: ("ignore" | "always" | "never")
10521
+ [k: string]: unknown | undefined
10522
+ })[]
10523
+ }[]
10524
+ // ----- perfectionist/sort-objects -----
10525
+ type PerfectionistSortObjects = {
10526
+
10527
+ specialCharacters?: ("remove" | "trim" | "keep")
10528
+
10268
10529
  ignoreCase?: boolean
10269
10530
 
10270
10531
  alphabet?: string
10271
10532
 
10272
10533
  locales?: (string | string[])
10273
10534
 
10274
- groups?: (string | string[])[]
10275
-
10276
10535
  order?: ("asc" | "desc")
10277
10536
 
10278
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
10279
- }]
10280
- // ----- perfectionist/sort-objects -----
10281
- type PerfectionistSortObjects = {
10282
-
10283
10537
  destructuredObjects?: (boolean | {
10284
10538
 
10285
10539
  groups?: boolean
10286
10540
  })
10287
10541
 
10288
10542
  ignorePattern?: string[]
10289
-
10290
- partitionByComment?: (string[] | boolean | string)
10543
+ useConfigurationIf?: {
10544
+ allNamesMatchPattern?: string
10545
+ callingFunctionNamePattern?: string
10546
+ }
10547
+ customGroups?: ({
10548
+ [k: string]: (string | string[]) | undefined
10549
+ } | ({
10550
+
10551
+ groupName?: string
10552
+
10553
+ type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
10554
+
10555
+ order?: ("desc" | "asc")
10556
+
10557
+ newlinesInside?: ("always" | "never")
10558
+ anyOf?: {
10559
+
10560
+ modifiers?: ("optional" | "required" | "multiline")[]
10561
+
10562
+ selector?: ("member" | "method" | "multiline" | "property")
10563
+
10564
+ elementValuePattern?: string
10565
+
10566
+ elementNamePattern?: string
10567
+ }[]
10568
+ } | {
10569
+
10570
+ groupName?: string
10571
+
10572
+ type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
10573
+
10574
+ order?: ("desc" | "asc")
10575
+
10576
+ newlinesInside?: ("always" | "never")
10577
+
10578
+ modifiers?: ("optional" | "required" | "multiline")[]
10579
+
10580
+ selector?: ("member" | "method" | "multiline" | "property")
10581
+
10582
+ elementValuePattern?: string
10583
+
10584
+ elementNamePattern?: string
10585
+ })[])
10291
10586
 
10292
10587
  destructureOnly?: boolean
10293
10588
 
@@ -10295,18 +10590,28 @@ type PerfectionistSortObjects = {
10295
10590
 
10296
10591
  styledComponents?: boolean
10297
10592
 
10298
- partitionByNewLine?: boolean
10299
- useConfigurationIf?: {
10300
- allNamesMatchPattern?: string
10301
- }
10593
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10302
10594
 
10303
- specialCharacters?: ("remove" | "trim" | "keep")
10595
+ partitionByComment?: (string[] | boolean | string | {
10596
+ block?: (string[] | boolean | string)
10597
+ line?: (string[] | boolean | string)
10598
+ [k: string]: unknown | undefined
10599
+ })
10600
+
10601
+ partitionByNewLine?: boolean
10304
10602
 
10305
10603
  newlinesBetween?: ("ignore" | "always" | "never")
10306
10604
 
10307
- customGroups?: {
10308
- [k: string]: (string | string[]) | undefined
10309
- }
10605
+ groups?: (string | string[] | {
10606
+
10607
+ newlinesBetween?: ("ignore" | "always" | "never")
10608
+ [k: string]: unknown | undefined
10609
+ })[]
10610
+ }[]
10611
+ // ----- perfectionist/sort-sets -----
10612
+ type PerfectionistSortSets = {
10613
+
10614
+ specialCharacters?: ("remove" | "trim" | "keep")
10310
10615
 
10311
10616
  ignoreCase?: boolean
10312
10617
 
@@ -10314,33 +10619,61 @@ type PerfectionistSortObjects = {
10314
10619
 
10315
10620
  locales?: (string | string[])
10316
10621
 
10317
- groups?: (string | string[])[]
10318
-
10319
10622
  order?: ("asc" | "desc")
10320
10623
 
10321
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
10322
- }[]
10323
- // ----- perfectionist/sort-sets -----
10324
- type PerfectionistSortSets = []|[{
10325
-
10326
- partitionByComment?: (string[] | boolean | string)
10327
-
10328
10624
  groupKind?: ("mixed" | "literals-first" | "spreads-first")
10329
10625
 
10330
- partitionByNewLine?: boolean
10331
-
10332
- specialCharacters?: ("remove" | "trim" | "keep")
10626
+ customGroups?: ({
10627
+
10628
+ groupName?: string
10629
+
10630
+ type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
10631
+
10632
+ order?: ("desc" | "asc")
10633
+
10634
+ newlinesInside?: ("always" | "never")
10635
+ anyOf?: {
10636
+
10637
+ selector?: ("literal" | "spread")
10638
+
10639
+ elementNamePattern?: string
10640
+ }[]
10641
+ } | {
10642
+
10643
+ groupName?: string
10644
+
10645
+ type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
10646
+
10647
+ order?: ("desc" | "asc")
10648
+
10649
+ newlinesInside?: ("always" | "never")
10650
+
10651
+ selector?: ("literal" | "spread")
10652
+
10653
+ elementNamePattern?: string
10654
+ })[]
10655
+ useConfigurationIf?: {
10656
+ allNamesMatchPattern?: string
10657
+ }
10333
10658
 
10334
- ignoreCase?: boolean
10659
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10335
10660
 
10336
- alphabet?: string
10661
+ partitionByComment?: (string[] | boolean | string | {
10662
+ block?: (string[] | boolean | string)
10663
+ line?: (string[] | boolean | string)
10664
+ [k: string]: unknown | undefined
10665
+ })
10337
10666
 
10338
- locales?: (string | string[])
10667
+ partitionByNewLine?: boolean
10339
10668
 
10340
- order?: ("asc" | "desc")
10669
+ newlinesBetween?: ("ignore" | "always" | "never")
10341
10670
 
10342
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
10343
- }]
10671
+ groups?: (string | string[] | {
10672
+
10673
+ newlinesBetween?: ("ignore" | "always" | "never")
10674
+ [k: string]: unknown | undefined
10675
+ })[]
10676
+ }[]
10344
10677
  // ----- perfectionist/sort-switch-case -----
10345
10678
  type PerfectionistSortSwitchCase = []|[{
10346
10679
 
@@ -10359,33 +10692,37 @@ type PerfectionistSortSwitchCase = []|[{
10359
10692
  // ----- perfectionist/sort-union-types -----
10360
10693
  type PerfectionistSortUnionTypes = []|[{
10361
10694
 
10362
- partitionByComment?: (string[] | boolean | string)
10363
-
10364
- partitionByNewLine?: boolean
10365
-
10366
10695
  specialCharacters?: ("remove" | "trim" | "keep")
10367
10696
 
10368
- newlinesBetween?: ("ignore" | "always" | "never")
10369
-
10370
10697
  ignoreCase?: boolean
10371
10698
 
10372
10699
  alphabet?: string
10373
10700
 
10374
10701
  locales?: (string | string[])
10375
10702
 
10376
- groups?: (string | string[])[]
10377
-
10378
10703
  order?: ("asc" | "desc")
10379
10704
 
10705
+ partitionByComment?: (string[] | boolean | string | {
10706
+ block?: (string[] | boolean | string)
10707
+ line?: (string[] | boolean | string)
10708
+ [k: string]: unknown | undefined
10709
+ })
10710
+
10711
+ partitionByNewLine?: boolean
10712
+
10713
+ newlinesBetween?: ("ignore" | "always" | "never")
10714
+
10380
10715
  type?: ("alphabetical" | "natural" | "line-length" | "custom")
10716
+
10717
+ groups?: (string | string[] | {
10718
+
10719
+ newlinesBetween?: ("ignore" | "always" | "never")
10720
+ [k: string]: unknown | undefined
10721
+ })[]
10381
10722
  }]
10382
10723
  // ----- perfectionist/sort-variable-declarations -----
10383
10724
  type PerfectionistSortVariableDeclarations = []|[{
10384
10725
 
10385
- partitionByComment?: (string[] | boolean | string)
10386
-
10387
- partitionByNewLine?: boolean
10388
-
10389
10726
  specialCharacters?: ("remove" | "trim" | "keep")
10390
10727
 
10391
10728
  ignoreCase?: boolean
@@ -10396,6 +10733,14 @@ type PerfectionistSortVariableDeclarations = []|[{
10396
10733
 
10397
10734
  order?: ("asc" | "desc")
10398
10735
 
10736
+ partitionByComment?: (string[] | boolean | string | {
10737
+ block?: (string[] | boolean | string)
10738
+ line?: (string[] | boolean | string)
10739
+ [k: string]: unknown | undefined
10740
+ })
10741
+
10742
+ partitionByNewLine?: boolean
10743
+
10399
10744
  type?: ("alphabetical" | "natural" | "line-length" | "custom")
10400
10745
  }]
10401
10746
  // ----- prefer-arrow-callback -----
@@ -10971,6 +11316,7 @@ type StyleIndent = []|[("tab" | number)]|[("tab" | number), {
10971
11316
  ImportDeclaration?: (number | ("first" | "off"))
10972
11317
  flatTernaryExpressions?: boolean
10973
11318
  offsetTernaryExpressions?: boolean
11319
+ offsetTernaryExpressionsOffsetCallExpressions?: boolean
10974
11320
  ignoredNodes?: string[]
10975
11321
  ignoreComments?: boolean
10976
11322
  tabLength?: number
@@ -11114,6 +11460,7 @@ type StyleKeySpacing = []|[({
11114
11460
  mode?: ("strict" | "minimum")
11115
11461
  beforeColon?: boolean
11116
11462
  afterColon?: boolean
11463
+ ignoredNodes?: ("ObjectExpression" | "ObjectPattern" | "ImportDeclaration" | "ExportNamedDeclaration" | "ExportAllDeclaration" | "TSTypeLiteral" | "TSInterfaceBody" | "ClassBody")[]
11117
11464
  } | {
11118
11465
  singleLine?: {
11119
11466
  mode?: ("strict" | "minimum")
@@ -11629,6 +11976,7 @@ type StyleNoExtraParens = ([]|["functions"] | []|["all"]|["all", {
11629
11976
  enforceForNewInMemberExpressions?: boolean
11630
11977
  enforceForFunctionPrototypeMethods?: boolean
11631
11978
  allowParensAfterCommentPattern?: string
11979
+ nestedConditionalExpressions?: boolean
11632
11980
  }])
11633
11981
  // ----- style/no-mixed-operators -----
11634
11982
  type StyleNoMixedOperators = []|[{
@@ -11726,14 +12074,14 @@ type StyleOperatorLinebreak = []|[(("after" | "before" | "none") | null)]|[(("af
11726
12074
  }
11727
12075
  }]
11728
12076
  // ----- style/padded-blocks -----
11729
- type StylePaddedBlocks = []|[(("always" | "never") | {
11730
- blocks?: ("always" | "never")
11731
- switches?: ("always" | "never")
11732
- classes?: ("always" | "never")
11733
- })]|[(("always" | "never") | {
11734
- blocks?: ("always" | "never")
11735
- switches?: ("always" | "never")
11736
- classes?: ("always" | "never")
12077
+ type StylePaddedBlocks = []|[(("always" | "never" | "start" | "end") | {
12078
+ blocks?: ("always" | "never" | "start" | "end")
12079
+ switches?: ("always" | "never" | "start" | "end")
12080
+ classes?: ("always" | "never" | "start" | "end")
12081
+ })]|[(("always" | "never" | "start" | "end") | {
12082
+ blocks?: ("always" | "never" | "start" | "end")
12083
+ switches?: ("always" | "never" | "start" | "end")
12084
+ classes?: ("always" | "never" | "start" | "end")
11737
12085
  }), {
11738
12086
  allowSingleLineBlocks?: boolean
11739
12087
  }]
@@ -11915,8 +12263,7 @@ type TestNoRestrictedViMethods = []|[{
11915
12263
  }]
11916
12264
  // ----- test/no-standalone-expect -----
11917
12265
  type TestNoStandaloneExpect = []|[{
11918
- additionaltestblockfunctions?: string[]
11919
- [k: string]: unknown | undefined
12266
+ additionalTestBlockFunctions?: string[]
11920
12267
  }]
11921
12268
  // ----- test/prefer-expect-assertions -----
11922
12269
  type TestPreferExpectAssertions = []|[{
@@ -12132,7 +12479,9 @@ type TsConsistentTypeAssertions = []|[({
12132
12479
  assertionStyle: "never"
12133
12480
  } | {
12134
12481
 
12135
- assertionStyle: ("as" | "angle-bracket")
12482
+ arrayLiteralTypeAssertions?: ("allow" | "allow-as-parameter" | "never")
12483
+
12484
+ assertionStyle?: ("as" | "angle-bracket")
12136
12485
 
12137
12486
  objectLiteralTypeAssertions?: ("allow" | "allow-as-parameter" | "never")
12138
12487
  })]
@@ -12588,6 +12937,22 @@ type TsNoConfusingVoidExpression = []|[{
12588
12937
 
12589
12938
  ignoreVoidReturningFunctions?: boolean
12590
12939
  }]
12940
+ // ----- ts/no-deprecated -----
12941
+ type TsNoDeprecated = []|[{
12942
+
12943
+ allow?: (string | {
12944
+ from: "file"
12945
+ name: (string | [string, ...(string)[]])
12946
+ path?: string
12947
+ } | {
12948
+ from: "lib"
12949
+ name: (string | [string, ...(string)[]])
12950
+ } | {
12951
+ from: "package"
12952
+ name: (string | [string, ...(string)[]])
12953
+ package: string
12954
+ })[]
12955
+ }]
12591
12956
  // ----- ts/no-duplicate-type-constituents -----
12592
12957
  type TsNoDuplicateTypeConstituents = []|[{
12593
12958
 
@@ -12729,6 +13094,22 @@ type TsNoMisusedPromises = []|[{
12729
13094
  variables?: boolean
12730
13095
  })
12731
13096
  }]
13097
+ // ----- ts/no-misused-spread -----
13098
+ type TsNoMisusedSpread = []|[{
13099
+
13100
+ allow?: (string | {
13101
+ from: "file"
13102
+ name: (string | [string, ...(string)[]])
13103
+ path?: string
13104
+ } | {
13105
+ from: "lib"
13106
+ name: (string | [string, ...(string)[]])
13107
+ } | {
13108
+ from: "package"
13109
+ name: (string | [string, ...(string)[]])
13110
+ package: string
13111
+ })[]
13112
+ }]
12732
13113
  // ----- ts/no-namespace -----
12733
13114
  type TsNoNamespace = []|[{
12734
13115
 
@@ -12804,7 +13185,7 @@ type TsNoShadow = []|[{
12804
13185
 
12805
13186
  builtinGlobals?: boolean
12806
13187
 
12807
- hoist?: ("all" | "functions" | "never")
13188
+ hoist?: ("all" | "functions" | "functions-and-types" | "never" | "types")
12808
13189
 
12809
13190
  ignoreFunctionTypeParameterNameValueShadow?: boolean
12810
13191
 
@@ -13166,6 +13547,8 @@ type TsSwitchExhaustivenessCheck = []|[{
13166
13547
 
13167
13548
  considerDefaultExhaustiveForUnions?: boolean
13168
13549
 
13550
+ defaultCaseCommentPattern?: string
13551
+
13169
13552
  requireDefaultForNonUnion?: boolean
13170
13553
  }]
13171
13554
  // ----- ts/triple-slash-reference -----
@@ -13715,6 +14098,7 @@ type VueKeySpacing = []|[({
13715
14098
  mode?: ("strict" | "minimum")
13716
14099
  beforeColon?: boolean
13717
14100
  afterColon?: boolean
14101
+ ignoredNodes?: ("ObjectExpression" | "ObjectPattern" | "ImportDeclaration" | "ExportNamedDeclaration" | "ExportAllDeclaration" | "TSTypeLiteral" | "TSInterfaceBody" | "ClassBody")[]
13718
14102
  } | {
13719
14103
  singleLine?: {
13720
14104
  mode?: ("strict" | "minimum")
@@ -14241,6 +14625,7 @@ type VueNoExtraParens = ([]|["functions"] | []|["all"]|["all", {
14241
14625
  enforceForNewInMemberExpressions?: boolean
14242
14626
  enforceForFunctionPrototypeMethods?: boolean
14243
14627
  allowParensAfterCommentPattern?: string
14628
+ nestedConditionalExpressions?: boolean
14244
14629
  }])
14245
14630
  // ----- vue/no-irregular-whitespace -----
14246
14631
  type VueNoIrregularWhitespace = []|[{