@lincy/eslint-config 4.6.3 → 4.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +72 -23
- package/dist/index.d.cts +822 -1191
- package/dist/index.d.ts +822 -1191
- package/dist/index.js +70 -23
- package/package.json +38 -38
package/dist/index.d.ts
CHANGED
|
@@ -476,42 +476,42 @@ interface RuleOptions {
|
|
|
476
476
|
'implicit-arrow-linebreak'?: Linter.RuleEntry<ImplicitArrowLinebreak>
|
|
477
477
|
/**
|
|
478
478
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
479
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
479
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/consistent-type-specifier-style.md
|
|
480
480
|
*/
|
|
481
481
|
'import/consistent-type-specifier-style'?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>
|
|
482
482
|
/**
|
|
483
483
|
* Ensure a default export is present, given a default import.
|
|
484
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
484
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/default.md
|
|
485
485
|
*/
|
|
486
486
|
'import/default'?: Linter.RuleEntry<[]>
|
|
487
487
|
/**
|
|
488
488
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
489
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
489
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/dynamic-import-chunkname.md
|
|
490
490
|
*/
|
|
491
491
|
'import/dynamic-import-chunkname'?: Linter.RuleEntry<ImportDynamicImportChunkname>
|
|
492
492
|
/**
|
|
493
493
|
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
494
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
494
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/export.md
|
|
495
495
|
*/
|
|
496
496
|
'import/export'?: Linter.RuleEntry<[]>
|
|
497
497
|
/**
|
|
498
498
|
* Ensure all exports appear after other statements.
|
|
499
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
499
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/exports-last.md
|
|
500
500
|
*/
|
|
501
501
|
'import/exports-last'?: Linter.RuleEntry<[]>
|
|
502
502
|
/**
|
|
503
503
|
* Ensure consistent use of file extension within the import path.
|
|
504
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
504
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/extensions.md
|
|
505
505
|
*/
|
|
506
506
|
'import/extensions'?: Linter.RuleEntry<ImportExtensions>
|
|
507
507
|
/**
|
|
508
508
|
* Ensure all imports appear before other statements.
|
|
509
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
509
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/first.md
|
|
510
510
|
*/
|
|
511
511
|
'import/first'?: Linter.RuleEntry<ImportFirst>
|
|
512
512
|
/**
|
|
513
513
|
* Prefer named exports to be grouped together in a single export declaration.
|
|
514
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
514
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/group-exports.md
|
|
515
515
|
*/
|
|
516
516
|
'import/group-exports'?: Linter.RuleEntry<[]>
|
|
517
517
|
/**
|
|
@@ -522,182 +522,182 @@ interface RuleOptions {
|
|
|
522
522
|
'import/imports-first'?: Linter.RuleEntry<ImportImportsFirst>
|
|
523
523
|
/**
|
|
524
524
|
* Enforce the maximum number of dependencies a module can have.
|
|
525
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
525
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/max-dependencies.md
|
|
526
526
|
*/
|
|
527
527
|
'import/max-dependencies'?: Linter.RuleEntry<ImportMaxDependencies>
|
|
528
528
|
/**
|
|
529
529
|
* Ensure named imports correspond to a named export in the remote file.
|
|
530
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
530
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/named.md
|
|
531
531
|
*/
|
|
532
532
|
'import/named'?: Linter.RuleEntry<ImportNamed>
|
|
533
533
|
/**
|
|
534
534
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
535
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
535
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/namespace.md
|
|
536
536
|
*/
|
|
537
537
|
'import/namespace'?: Linter.RuleEntry<ImportNamespace>
|
|
538
538
|
/**
|
|
539
539
|
* Enforce a newline after import statements.
|
|
540
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
540
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/newline-after-import.md
|
|
541
541
|
*/
|
|
542
542
|
'import/newline-after-import'?: Linter.RuleEntry<ImportNewlineAfterImport>
|
|
543
543
|
/**
|
|
544
544
|
* Forbid import of modules using absolute paths.
|
|
545
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
545
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-absolute-path.md
|
|
546
546
|
*/
|
|
547
547
|
'import/no-absolute-path'?: Linter.RuleEntry<ImportNoAbsolutePath>
|
|
548
548
|
/**
|
|
549
549
|
* Forbid AMD `require` and `define` calls.
|
|
550
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
550
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-amd.md
|
|
551
551
|
*/
|
|
552
552
|
'import/no-amd'?: Linter.RuleEntry<[]>
|
|
553
553
|
/**
|
|
554
554
|
* Forbid anonymous values as default exports.
|
|
555
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
555
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-anonymous-default-export.md
|
|
556
556
|
*/
|
|
557
557
|
'import/no-anonymous-default-export'?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>
|
|
558
558
|
/**
|
|
559
559
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
560
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
560
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-commonjs.md
|
|
561
561
|
*/
|
|
562
562
|
'import/no-commonjs'?: Linter.RuleEntry<ImportNoCommonjs>
|
|
563
563
|
/**
|
|
564
564
|
* Forbid a module from importing a module with a dependency path back to itself.
|
|
565
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
565
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-cycle.md
|
|
566
566
|
*/
|
|
567
567
|
'import/no-cycle'?: Linter.RuleEntry<ImportNoCycle>
|
|
568
568
|
/**
|
|
569
569
|
* Forbid default exports.
|
|
570
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
570
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-default-export.md
|
|
571
571
|
*/
|
|
572
572
|
'import/no-default-export'?: Linter.RuleEntry<[]>
|
|
573
573
|
/**
|
|
574
574
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
575
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
575
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-deprecated.md
|
|
576
576
|
*/
|
|
577
577
|
'import/no-deprecated'?: Linter.RuleEntry<[]>
|
|
578
578
|
/**
|
|
579
579
|
* Forbid repeated import of the same module in multiple places.
|
|
580
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
580
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-duplicates.md
|
|
581
581
|
*/
|
|
582
582
|
'import/no-duplicates'?: Linter.RuleEntry<ImportNoDuplicates>
|
|
583
583
|
/**
|
|
584
584
|
* Forbid `require()` calls with expressions.
|
|
585
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
585
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-dynamic-require.md
|
|
586
586
|
*/
|
|
587
587
|
'import/no-dynamic-require'?: Linter.RuleEntry<ImportNoDynamicRequire>
|
|
588
588
|
/**
|
|
589
589
|
* Forbid empty named import blocks.
|
|
590
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
590
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-empty-named-blocks.md
|
|
591
591
|
*/
|
|
592
592
|
'import/no-empty-named-blocks'?: Linter.RuleEntry<[]>
|
|
593
593
|
/**
|
|
594
594
|
* Forbid the use of extraneous packages.
|
|
595
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
595
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-extraneous-dependencies.md
|
|
596
596
|
*/
|
|
597
597
|
'import/no-extraneous-dependencies'?: Linter.RuleEntry<ImportNoExtraneousDependencies>
|
|
598
598
|
/**
|
|
599
599
|
* Forbid import statements with CommonJS module.exports.
|
|
600
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
600
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-import-module-exports.md
|
|
601
601
|
*/
|
|
602
602
|
'import/no-import-module-exports'?: Linter.RuleEntry<ImportNoImportModuleExports>
|
|
603
603
|
/**
|
|
604
604
|
* Forbid importing the submodules of other modules.
|
|
605
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
605
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-internal-modules.md
|
|
606
606
|
*/
|
|
607
607
|
'import/no-internal-modules'?: Linter.RuleEntry<ImportNoInternalModules>
|
|
608
608
|
/**
|
|
609
609
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
610
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
610
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-mutable-exports.md
|
|
611
611
|
*/
|
|
612
612
|
'import/no-mutable-exports'?: Linter.RuleEntry<[]>
|
|
613
613
|
/**
|
|
614
614
|
* Forbid use of exported name as identifier of default export.
|
|
615
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
615
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-named-as-default.md
|
|
616
616
|
*/
|
|
617
617
|
'import/no-named-as-default'?: Linter.RuleEntry<[]>
|
|
618
618
|
/**
|
|
619
619
|
* Forbid use of exported name as property of default export.
|
|
620
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
620
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-named-as-default-member.md
|
|
621
621
|
*/
|
|
622
622
|
'import/no-named-as-default-member'?: Linter.RuleEntry<[]>
|
|
623
623
|
/**
|
|
624
624
|
* Forbid named default exports.
|
|
625
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
625
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-named-default.md
|
|
626
626
|
*/
|
|
627
627
|
'import/no-named-default'?: Linter.RuleEntry<[]>
|
|
628
628
|
/**
|
|
629
629
|
* Forbid named exports.
|
|
630
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
630
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-named-export.md
|
|
631
631
|
*/
|
|
632
632
|
'import/no-named-export'?: Linter.RuleEntry<[]>
|
|
633
633
|
/**
|
|
634
634
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
635
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
635
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-namespace.md
|
|
636
636
|
*/
|
|
637
637
|
'import/no-namespace'?: Linter.RuleEntry<ImportNoNamespace>
|
|
638
638
|
/**
|
|
639
639
|
* Forbid Node.js builtin modules.
|
|
640
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
640
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-nodejs-modules.md
|
|
641
641
|
*/
|
|
642
642
|
'import/no-nodejs-modules'?: Linter.RuleEntry<ImportNoNodejsModules>
|
|
643
643
|
/**
|
|
644
644
|
* Forbid importing packages through relative paths.
|
|
645
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
645
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-relative-packages.md
|
|
646
646
|
*/
|
|
647
647
|
'import/no-relative-packages'?: Linter.RuleEntry<ImportNoRelativePackages>
|
|
648
648
|
/**
|
|
649
649
|
* Forbid importing modules from parent directories.
|
|
650
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
650
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-relative-parent-imports.md
|
|
651
651
|
*/
|
|
652
652
|
'import/no-relative-parent-imports'?: Linter.RuleEntry<ImportNoRelativeParentImports>
|
|
653
653
|
/**
|
|
654
654
|
* Enforce which files can be imported in a given folder.
|
|
655
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
655
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-restricted-paths.md
|
|
656
656
|
*/
|
|
657
657
|
'import/no-restricted-paths'?: Linter.RuleEntry<ImportNoRestrictedPaths>
|
|
658
658
|
/**
|
|
659
659
|
* Forbid a module from importing itself.
|
|
660
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
660
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-self-import.md
|
|
661
661
|
*/
|
|
662
662
|
'import/no-self-import'?: Linter.RuleEntry<[]>
|
|
663
663
|
/**
|
|
664
664
|
* Forbid unassigned imports.
|
|
665
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
665
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-unassigned-import.md
|
|
666
666
|
*/
|
|
667
667
|
'import/no-unassigned-import'?: Linter.RuleEntry<ImportNoUnassignedImport>
|
|
668
668
|
/**
|
|
669
669
|
* Ensure imports point to a file/module that can be resolved.
|
|
670
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
670
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-unresolved.md
|
|
671
671
|
*/
|
|
672
672
|
'import/no-unresolved'?: Linter.RuleEntry<ImportNoUnresolved>
|
|
673
673
|
/**
|
|
674
674
|
* Forbid modules without exports, or exports without matching import in another module.
|
|
675
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
675
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-unused-modules.md
|
|
676
676
|
*/
|
|
677
677
|
'import/no-unused-modules'?: Linter.RuleEntry<ImportNoUnusedModules>
|
|
678
678
|
/**
|
|
679
679
|
* Forbid unnecessary path segments in import and require statements.
|
|
680
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
680
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-useless-path-segments.md
|
|
681
681
|
*/
|
|
682
682
|
'import/no-useless-path-segments'?: Linter.RuleEntry<ImportNoUselessPathSegments>
|
|
683
683
|
/**
|
|
684
684
|
* Forbid webpack loader syntax in imports.
|
|
685
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
685
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-webpack-loader-syntax.md
|
|
686
686
|
*/
|
|
687
687
|
'import/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>
|
|
688
688
|
/**
|
|
689
689
|
* Enforce a convention in module import order.
|
|
690
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
690
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/order.md
|
|
691
691
|
*/
|
|
692
692
|
'import/order'?: Linter.RuleEntry<ImportOrder>
|
|
693
693
|
/**
|
|
694
694
|
* Prefer a default export if module exports a single name or multiple names.
|
|
695
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
695
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/prefer-default-export.md
|
|
696
696
|
*/
|
|
697
697
|
'import/prefer-default-export'?: Linter.RuleEntry<ImportPreferDefaultExport>
|
|
698
698
|
/**
|
|
699
699
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
700
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
700
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/unambiguous.md
|
|
701
701
|
*/
|
|
702
702
|
'import/unambiguous'?: Linter.RuleEntry<[]>
|
|
703
703
|
/**
|
|
@@ -762,6 +762,11 @@ interface RuleOptions {
|
|
|
762
762
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/check-tag-names.md#repos-sticky-header
|
|
763
763
|
*/
|
|
764
764
|
'jsdoc/check-tag-names'?: Linter.RuleEntry<JsdocCheckTagNames>
|
|
765
|
+
/**
|
|
766
|
+
* Checks that any `@template` names are actually used in the connected `@typedef` or type alias.
|
|
767
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-template.md#repos-sticky-header
|
|
768
|
+
*/
|
|
769
|
+
'jsdoc/check-template-names'?: Linter.RuleEntry<[]>
|
|
765
770
|
/**
|
|
766
771
|
* Reports invalid types.
|
|
767
772
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/check-types.md#repos-sticky-header
|
|
@@ -772,6 +777,11 @@ interface RuleOptions {
|
|
|
772
777
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/check-values.md#repos-sticky-header
|
|
773
778
|
*/
|
|
774
779
|
'jsdoc/check-values'?: Linter.RuleEntry<JsdocCheckValues>
|
|
780
|
+
/**
|
|
781
|
+
* Converts non-JSDoc comments preceding or following nodes into JSDoc ones
|
|
782
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/convert-to-jsdoc-comments.md#repos-sticky-header
|
|
783
|
+
*/
|
|
784
|
+
'jsdoc/convert-to-jsdoc-comments'?: Linter.RuleEntry<JsdocConvertToJsdocComments>
|
|
775
785
|
/**
|
|
776
786
|
* Expects specific tags to be empty of any content.
|
|
777
787
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/empty-tags.md#repos-sticky-header
|
|
@@ -946,6 +956,11 @@ interface RuleOptions {
|
|
|
946
956
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-returns-type.md#repos-sticky-header
|
|
947
957
|
*/
|
|
948
958
|
'jsdoc/require-returns-type'?: Linter.RuleEntry<JsdocRequireReturnsType>
|
|
959
|
+
/**
|
|
960
|
+
* Requires template tags for each generic type parameter
|
|
961
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-template.md#repos-sticky-header
|
|
962
|
+
*/
|
|
963
|
+
'jsdoc/require-template'?: Linter.RuleEntry<JsdocRequireTemplate>
|
|
949
964
|
/**
|
|
950
965
|
* Requires that throw statements are documented.
|
|
951
966
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-throws.md#repos-sticky-header
|
|
@@ -2408,88 +2423,98 @@ interface RuleOptions {
|
|
|
2408
2423
|
*/
|
|
2409
2424
|
'padding-line-between-statements'?: Linter.RuleEntry<PaddingLineBetweenStatements>
|
|
2410
2425
|
/**
|
|
2411
|
-
*
|
|
2412
|
-
* @see https://
|
|
2426
|
+
* Enforce sorted arrays before include method.
|
|
2427
|
+
* @see https://perfectionist.dev/rules/sort-array-includes
|
|
2413
2428
|
*/
|
|
2414
2429
|
'perfectionist/sort-array-includes'?: Linter.RuleEntry<PerfectionistSortArrayIncludes>
|
|
2415
2430
|
/**
|
|
2416
|
-
*
|
|
2417
|
-
* @see https://
|
|
2431
|
+
* Enforce sorted Astro attributes.
|
|
2432
|
+
* @see https://perfectionist.dev/rules/sort-astro-attributes
|
|
2418
2433
|
*/
|
|
2419
2434
|
'perfectionist/sort-astro-attributes'?: Linter.RuleEntry<PerfectionistSortAstroAttributes>
|
|
2420
2435
|
/**
|
|
2421
|
-
*
|
|
2422
|
-
* @see https://
|
|
2436
|
+
* Enforce sorted classes.
|
|
2437
|
+
* @see https://perfectionist.dev/rules/sort-classes
|
|
2423
2438
|
*/
|
|
2424
2439
|
'perfectionist/sort-classes'?: Linter.RuleEntry<PerfectionistSortClasses>
|
|
2425
2440
|
/**
|
|
2426
|
-
*
|
|
2427
|
-
* @see https://
|
|
2441
|
+
* Enforce sorted TypeScript enums.
|
|
2442
|
+
* @see https://perfectionist.dev/rules/sort-enums
|
|
2428
2443
|
*/
|
|
2429
2444
|
'perfectionist/sort-enums'?: Linter.RuleEntry<PerfectionistSortEnums>
|
|
2430
2445
|
/**
|
|
2431
|
-
*
|
|
2432
|
-
* @see https://
|
|
2446
|
+
* Enforce sorted exports.
|
|
2447
|
+
* @see https://perfectionist.dev/rules/sort-exports
|
|
2433
2448
|
*/
|
|
2434
2449
|
'perfectionist/sort-exports'?: Linter.RuleEntry<PerfectionistSortExports>
|
|
2435
2450
|
/**
|
|
2436
|
-
*
|
|
2437
|
-
* @see https://
|
|
2451
|
+
* Enforce sorted imports.
|
|
2452
|
+
* @see https://perfectionist.dev/rules/sort-imports
|
|
2438
2453
|
*/
|
|
2439
2454
|
'perfectionist/sort-imports'?: Linter.RuleEntry<PerfectionistSortImports>
|
|
2440
2455
|
/**
|
|
2441
|
-
*
|
|
2442
|
-
* @see https://
|
|
2456
|
+
* Enforce sorted interface properties.
|
|
2457
|
+
* @see https://perfectionist.dev/rules/sort-interfaces
|
|
2443
2458
|
*/
|
|
2444
2459
|
'perfectionist/sort-interfaces'?: Linter.RuleEntry<PerfectionistSortInterfaces>
|
|
2445
2460
|
/**
|
|
2446
|
-
*
|
|
2447
|
-
* @see https://
|
|
2461
|
+
* Enforce sorted intersection types.
|
|
2462
|
+
* @see https://perfectionist.dev/rules/sort-intersection-types
|
|
2448
2463
|
*/
|
|
2449
2464
|
'perfectionist/sort-intersection-types'?: Linter.RuleEntry<PerfectionistSortIntersectionTypes>
|
|
2450
2465
|
/**
|
|
2451
|
-
*
|
|
2452
|
-
* @see https://
|
|
2466
|
+
* Enforce sorted JSX props.
|
|
2467
|
+
* @see https://perfectionist.dev/rules/sort-jsx-props
|
|
2453
2468
|
*/
|
|
2454
2469
|
'perfectionist/sort-jsx-props'?: Linter.RuleEntry<PerfectionistSortJsxProps>
|
|
2455
2470
|
/**
|
|
2456
|
-
*
|
|
2457
|
-
* @see https://
|
|
2471
|
+
* Enforce sorted Map elements.
|
|
2472
|
+
* @see https://perfectionist.dev/rules/sort-maps
|
|
2458
2473
|
*/
|
|
2459
2474
|
'perfectionist/sort-maps'?: Linter.RuleEntry<PerfectionistSortMaps>
|
|
2460
2475
|
/**
|
|
2461
|
-
*
|
|
2462
|
-
* @see https://
|
|
2476
|
+
* Enforce sorted named exports.
|
|
2477
|
+
* @see https://perfectionist.dev/rules/sort-named-exports
|
|
2463
2478
|
*/
|
|
2464
2479
|
'perfectionist/sort-named-exports'?: Linter.RuleEntry<PerfectionistSortNamedExports>
|
|
2465
2480
|
/**
|
|
2466
|
-
*
|
|
2467
|
-
* @see https://
|
|
2481
|
+
* Enforce sorted named imports.
|
|
2482
|
+
* @see https://perfectionist.dev/rules/sort-named-imports
|
|
2468
2483
|
*/
|
|
2469
2484
|
'perfectionist/sort-named-imports'?: Linter.RuleEntry<PerfectionistSortNamedImports>
|
|
2470
2485
|
/**
|
|
2471
|
-
*
|
|
2472
|
-
* @see https://
|
|
2486
|
+
* Enforce sorted object types.
|
|
2487
|
+
* @see https://perfectionist.dev/rules/sort-object-types
|
|
2473
2488
|
*/
|
|
2474
2489
|
'perfectionist/sort-object-types'?: Linter.RuleEntry<PerfectionistSortObjectTypes>
|
|
2475
2490
|
/**
|
|
2476
|
-
*
|
|
2477
|
-
* @see https://
|
|
2491
|
+
* Enforce sorted objects.
|
|
2492
|
+
* @see https://perfectionist.dev/rules/sort-objects
|
|
2478
2493
|
*/
|
|
2479
2494
|
'perfectionist/sort-objects'?: Linter.RuleEntry<PerfectionistSortObjects>
|
|
2480
2495
|
/**
|
|
2481
|
-
*
|
|
2482
|
-
* @see https://
|
|
2496
|
+
* Enforce sorted Svelte attributes.
|
|
2497
|
+
* @see https://perfectionist.dev/rules/sort-svelte-attributes
|
|
2483
2498
|
*/
|
|
2484
2499
|
'perfectionist/sort-svelte-attributes'?: Linter.RuleEntry<PerfectionistSortSvelteAttributes>
|
|
2485
2500
|
/**
|
|
2486
|
-
*
|
|
2487
|
-
* @see https://
|
|
2501
|
+
* Enforce sorted switch cases.
|
|
2502
|
+
* @see https://perfectionist.dev/rules/sort-switch-case
|
|
2503
|
+
*/
|
|
2504
|
+
'perfectionist/sort-switch-case'?: Linter.RuleEntry<PerfectionistSortSwitchCase>
|
|
2505
|
+
/**
|
|
2506
|
+
* Enforce sorted union types.
|
|
2507
|
+
* @see https://perfectionist.dev/rules/sort-union-types
|
|
2488
2508
|
*/
|
|
2489
2509
|
'perfectionist/sort-union-types'?: Linter.RuleEntry<PerfectionistSortUnionTypes>
|
|
2490
2510
|
/**
|
|
2491
|
-
*
|
|
2492
|
-
* @see https://
|
|
2511
|
+
* Enforce sorted variable declarations.
|
|
2512
|
+
* @see https://perfectionist.dev/rules/sort-variable-declarations
|
|
2513
|
+
*/
|
|
2514
|
+
'perfectionist/sort-variable-declarations'?: Linter.RuleEntry<PerfectionistSortVariableDeclarations>
|
|
2515
|
+
/**
|
|
2516
|
+
* Enforce sorted Vue attributes.
|
|
2517
|
+
* @see https://perfectionist.dev/rules/sort-vue-attributes
|
|
2493
2518
|
*/
|
|
2494
2519
|
'perfectionist/sort-vue-attributes'?: Linter.RuleEntry<PerfectionistSortVueAttributes>
|
|
2495
2520
|
/**
|
|
@@ -2582,77 +2607,87 @@ interface RuleOptions {
|
|
|
2582
2607
|
'radix'?: Linter.RuleEntry<Radix>
|
|
2583
2608
|
/**
|
|
2584
2609
|
* disallow passing 'children' to void DOM elements
|
|
2585
|
-
* @see https://eslint-react.xyz/rules/dom-no-children-in-void-dom-elements
|
|
2610
|
+
* @see https://eslint-react.xyz/docs/rules/dom-no-children-in-void-dom-elements
|
|
2586
2611
|
*/
|
|
2587
2612
|
'react-dom/no-children-in-void-dom-elements'?: Linter.RuleEntry<[]>
|
|
2588
2613
|
/**
|
|
2589
2614
|
* disallow when a DOM component is using 'dangerouslySetInnerHTML'
|
|
2590
|
-
* @see https://eslint-react.xyz/rules/dom-no-dangerously-set-innerhtml
|
|
2615
|
+
* @see https://eslint-react.xyz/docs/rules/dom-no-dangerously-set-innerhtml
|
|
2591
2616
|
*/
|
|
2592
2617
|
'react-dom/no-dangerously-set-innerhtml'?: Linter.RuleEntry<[]>
|
|
2593
2618
|
/**
|
|
2594
2619
|
* disallow when a DOM component is using both 'children' and 'dangerouslySetInnerHTML'
|
|
2595
|
-
* @see https://eslint-react.xyz/rules/dom-no-dangerously-set-innerhtml-with-children
|
|
2620
|
+
* @see https://eslint-react.xyz/docs/rules/dom-no-dangerously-set-innerhtml-with-children
|
|
2596
2621
|
*/
|
|
2597
2622
|
'react-dom/no-dangerously-set-innerhtml-with-children'?: Linter.RuleEntry<[]>
|
|
2598
2623
|
/**
|
|
2599
2624
|
* disallow 'findDOMNode'
|
|
2600
|
-
* @see https://eslint-react.xyz/rules/dom-no-find-dom-node
|
|
2625
|
+
* @see https://eslint-react.xyz/docs/rules/dom-no-find-dom-node
|
|
2601
2626
|
*/
|
|
2602
2627
|
'react-dom/no-find-dom-node'?: Linter.RuleEntry<[]>
|
|
2603
2628
|
/**
|
|
2604
2629
|
* enforce that button component have an explicit 'type' attribute
|
|
2605
|
-
* @see https://eslint-react.xyz/rules/dom-no-missing-button-type
|
|
2630
|
+
* @see https://eslint-react.xyz/docs/rules/dom-no-missing-button-type
|
|
2606
2631
|
*/
|
|
2607
2632
|
'react-dom/no-missing-button-type'?: Linter.RuleEntry<[]>
|
|
2608
2633
|
/**
|
|
2609
2634
|
* enforce that 'iframe' component have an explicit 'sandbox' attribute
|
|
2610
|
-
* @see https://eslint-react.xyz/rules/dom-no-missing-iframe-sandbox
|
|
2635
|
+
* @see https://eslint-react.xyz/docs/rules/dom-no-missing-iframe-sandbox
|
|
2611
2636
|
*/
|
|
2612
2637
|
'react-dom/no-missing-iframe-sandbox'?: Linter.RuleEntry<[]>
|
|
2613
2638
|
/**
|
|
2614
2639
|
* enforce that namespaces are not used in React elements
|
|
2615
|
-
* @see https://eslint-react.xyz/rules/dom-no-namespace
|
|
2640
|
+
* @see https://eslint-react.xyz/docs/rules/dom-no-namespace
|
|
2616
2641
|
*/
|
|
2617
2642
|
'react-dom/no-namespace'?: Linter.RuleEntry<[]>
|
|
2618
2643
|
/**
|
|
2619
2644
|
* disallow usage of the return value of 'ReactDOM.render'
|
|
2620
|
-
* @see https://eslint-react.xyz/rules/dom-no-render-return-value
|
|
2645
|
+
* @see https://eslint-react.xyz/docs/rules/dom-no-render-return-value
|
|
2621
2646
|
*/
|
|
2622
2647
|
'react-dom/no-render-return-value'?: Linter.RuleEntry<[]>
|
|
2623
2648
|
/**
|
|
2624
2649
|
* disallow 'javascript:' URLs as JSX event handler prop's value
|
|
2625
|
-
* @see https://eslint-react.xyz/rules/dom-no-script-url
|
|
2650
|
+
* @see https://eslint-react.xyz/docs/rules/dom-no-script-url
|
|
2626
2651
|
*/
|
|
2627
2652
|
'react-dom/no-script-url'?: Linter.RuleEntry<[]>
|
|
2628
2653
|
/**
|
|
2629
2654
|
* disallow unsafe iframe 'sandbox' attribute combinations
|
|
2630
|
-
* @see https://eslint-react.xyz/rules/dom-no-unsafe-iframe-sandbox
|
|
2655
|
+
* @see https://eslint-react.xyz/docs/rules/dom-no-unsafe-iframe-sandbox
|
|
2631
2656
|
*/
|
|
2632
2657
|
'react-dom/no-unsafe-iframe-sandbox'?: Linter.RuleEntry<[]>
|
|
2633
2658
|
/**
|
|
2634
|
-
* disallow 'target="_blank"' on an external link without 'rel="noreferrer noopener"'
|
|
2635
|
-
* @see https://eslint-react.xyz/rules/dom-no-unsafe-target-blank
|
|
2659
|
+
* disallow 'target="_blank"' on an external link without 'rel="noreferrer noopener"'
|
|
2660
|
+
* @see https://eslint-react.xyz/docs/rules/dom-no-unsafe-target-blank
|
|
2636
2661
|
*/
|
|
2637
2662
|
'react-dom/no-unsafe-target-blank'?: Linter.RuleEntry<[]>
|
|
2638
2663
|
/**
|
|
2639
2664
|
* enforce custom hooks using other hooks
|
|
2640
|
-
* @see https://eslint-react.xyz/rules/hooks-extra-ensure-custom-hooks-using-other-hooks
|
|
2665
|
+
* @see https://eslint-react.xyz/docs/rules/hooks-extra-ensure-custom-hooks-using-other-hooks
|
|
2641
2666
|
*/
|
|
2642
2667
|
'react-hooks-extra/ensure-custom-hooks-using-other-hooks'?: Linter.RuleEntry<[]>
|
|
2643
2668
|
/**
|
|
2644
2669
|
* enforce 'useCallback' has non-empty dependencies array
|
|
2645
|
-
* @see https://eslint-react.xyz/rules/hooks-extra-ensure-use-callback-has-non-empty-deps
|
|
2670
|
+
* @see https://eslint-react.xyz/docs/rules/hooks-extra-ensure-use-callback-has-non-empty-deps
|
|
2646
2671
|
*/
|
|
2647
2672
|
'react-hooks-extra/ensure-use-callback-has-non-empty-deps'?: Linter.RuleEntry<[]>
|
|
2648
2673
|
/**
|
|
2649
2674
|
* enforce 'useMemo' has non-empty dependencies array
|
|
2650
|
-
* @see https://eslint-react.xyz/rules/hooks-extra-ensure-use-memo-has-non-empty-deps
|
|
2675
|
+
* @see https://eslint-react.xyz/docs/rules/hooks-extra-ensure-use-memo-has-non-empty-deps
|
|
2651
2676
|
*/
|
|
2652
2677
|
'react-hooks-extra/ensure-use-memo-has-non-empty-deps'?: Linter.RuleEntry<[]>
|
|
2678
|
+
/**
|
|
2679
|
+
* disallow direct calls to the 'set' function of 'useState' in 'useEffect'
|
|
2680
|
+
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-direct-set-state-in-use-effect
|
|
2681
|
+
*/
|
|
2682
|
+
'react-hooks-extra/no-direct-set-state-in-use-effect'?: Linter.RuleEntry<[]>
|
|
2683
|
+
/**
|
|
2684
|
+
* disallow direct calls to the 'set' function of 'useState' in 'useLayoutEffect'
|
|
2685
|
+
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-direct-set-state-in-use-layout-effect
|
|
2686
|
+
*/
|
|
2687
|
+
'react-hooks-extra/no-direct-set-state-in-use-layout-effect'?: Linter.RuleEntry<[]>
|
|
2653
2688
|
/**
|
|
2654
2689
|
* disallow function calls in 'useState' that aren't wrapped in an initializer function
|
|
2655
|
-
* @see https://eslint-react.xyz/rules/hooks-extra-prefer-use-state-lazy-initialization
|
|
2690
|
+
* @see https://eslint-react.xyz/docs/rules/hooks-extra-prefer-use-state-lazy-initialization
|
|
2656
2691
|
*/
|
|
2657
2692
|
'react-hooks-extra/prefer-use-state-lazy-initialization'?: Linter.RuleEntry<[]>
|
|
2658
2693
|
/**
|
|
@@ -2667,235 +2702,255 @@ interface RuleOptions {
|
|
|
2667
2702
|
'react-hooks/rules-of-hooks'?: Linter.RuleEntry<[]>
|
|
2668
2703
|
/**
|
|
2669
2704
|
* enforce component naming convention to 'PascalCase' or 'CONSTANT_CASE'
|
|
2670
|
-
* @see https://eslint-react.xyz/rules/naming-convention-component-name
|
|
2705
|
+
* @see https://eslint-react.xyz/docs/rules/naming-convention-component-name
|
|
2671
2706
|
*/
|
|
2672
2707
|
'react-naming-convention/component-name'?: Linter.RuleEntry<ReactNamingConventionComponentName>
|
|
2673
2708
|
/**
|
|
2674
2709
|
* enforce naming convention for JSX filenames
|
|
2675
|
-
* @see https://eslint-react.xyz/rules/naming-convention-filename
|
|
2710
|
+
* @see https://eslint-react.xyz/docs/rules/naming-convention-filename
|
|
2676
2711
|
*/
|
|
2677
2712
|
'react-naming-convention/filename'?: Linter.RuleEntry<ReactNamingConventionFilename>
|
|
2678
2713
|
/**
|
|
2679
2714
|
* enforce naming convention for JSX file extensions
|
|
2680
|
-
* @see https://eslint-react.xyz/rules/naming-convention-filename-extension
|
|
2715
|
+
* @see https://eslint-react.xyz/docs/rules/naming-convention-filename-extension
|
|
2681
2716
|
*/
|
|
2682
2717
|
'react-naming-convention/filename-extension'?: Linter.RuleEntry<ReactNamingConventionFilenameExtension>
|
|
2683
2718
|
/**
|
|
2684
2719
|
* enforce destructuring and symmetric naming of 'useState' hook value and setter variables
|
|
2685
|
-
* @see https://eslint-react.xyz/rules/naming-convention-use-state
|
|
2720
|
+
* @see https://eslint-react.xyz/docs/rules/naming-convention-use-state
|
|
2686
2721
|
*/
|
|
2687
2722
|
'react-naming-convention/use-state'?: Linter.RuleEntry<[]>
|
|
2688
2723
|
'react-refresh/only-export-components'?: Linter.RuleEntry<ReactRefreshOnlyExportComponents>
|
|
2689
2724
|
/**
|
|
2690
|
-
*
|
|
2691
|
-
* @see https://eslint-react.xyz/rules/avoid-shorthand-boolean
|
|
2725
|
+
* avoid using shorthand boolean attribute
|
|
2726
|
+
* @see https://eslint-react.xyz/docs/rules/avoid-shorthand-boolean
|
|
2692
2727
|
*/
|
|
2693
2728
|
'react/avoid-shorthand-boolean'?: Linter.RuleEntry<[]>
|
|
2694
2729
|
/**
|
|
2695
|
-
*
|
|
2696
|
-
* @see https://eslint-react.xyz/rules/avoid-shorthand-fragment
|
|
2730
|
+
* avoid using shorthand fragment syntax
|
|
2731
|
+
* @see https://eslint-react.xyz/docs/rules/avoid-shorthand-fragment
|
|
2697
2732
|
*/
|
|
2698
2733
|
'react/avoid-shorthand-fragment'?: Linter.RuleEntry<[]>
|
|
2699
2734
|
/**
|
|
2700
|
-
* require
|
|
2701
|
-
* @see https://eslint-react.xyz/rules/ensure-forward-ref-using-ref
|
|
2735
|
+
* require a 'ref' parameter to be set when using 'forwardRef'
|
|
2736
|
+
* @see https://eslint-react.xyz/docs/rules/ensure-forward-ref-using-ref
|
|
2702
2737
|
*/
|
|
2703
2738
|
'react/ensure-forward-ref-using-ref'?: Linter.RuleEntry<[]>
|
|
2704
2739
|
/**
|
|
2705
2740
|
* disallow accessing 'this.state' within 'setState'
|
|
2706
|
-
* @see https://eslint-react.xyz/rules/no-access-state-in-setstate
|
|
2741
|
+
* @see https://eslint-react.xyz/docs/rules/no-access-state-in-setstate
|
|
2707
2742
|
*/
|
|
2708
2743
|
'react/no-access-state-in-setstate'?: Linter.RuleEntry<[]>
|
|
2709
2744
|
/**
|
|
2710
|
-
* disallow using Array index as key
|
|
2711
|
-
* @see https://eslint-react.xyz/rules/no-array-index-key
|
|
2745
|
+
* disallow using Array index as 'key'
|
|
2746
|
+
* @see https://eslint-react.xyz/docs/rules/no-array-index-key
|
|
2712
2747
|
*/
|
|
2713
2748
|
'react/no-array-index-key'?: Linter.RuleEntry<[]>
|
|
2714
2749
|
/**
|
|
2715
|
-
* disallow 'Children.count'
|
|
2716
|
-
* @see https://eslint-react.xyz/rules/no-children-count
|
|
2750
|
+
* disallow using 'Children.count'
|
|
2751
|
+
* @see https://eslint-react.xyz/docs/rules/no-children-count
|
|
2717
2752
|
*/
|
|
2718
2753
|
'react/no-children-count'?: Linter.RuleEntry<[]>
|
|
2719
2754
|
/**
|
|
2720
|
-
* disallow 'Children.forEach'
|
|
2721
|
-
* @see https://eslint-react.xyz/rules/no-children-for-each
|
|
2755
|
+
* disallow using 'Children.forEach'
|
|
2756
|
+
* @see https://eslint-react.xyz/docs/rules/no-children-for-each
|
|
2722
2757
|
*/
|
|
2723
2758
|
'react/no-children-for-each'?: Linter.RuleEntry<[]>
|
|
2724
2759
|
/**
|
|
2725
|
-
* disallow 'Children.map'
|
|
2726
|
-
* @see https://eslint-react.xyz/rules/no-children-map
|
|
2760
|
+
* disallow using 'Children.map'
|
|
2761
|
+
* @see https://eslint-react.xyz/docs/rules/no-children-map
|
|
2727
2762
|
*/
|
|
2728
2763
|
'react/no-children-map'?: Linter.RuleEntry<[]>
|
|
2729
2764
|
/**
|
|
2730
|
-
* disallow 'Children.only'
|
|
2731
|
-
* @see https://eslint-react.xyz/rules/no-children-only
|
|
2765
|
+
* disallow using 'Children.only'
|
|
2766
|
+
* @see https://eslint-react.xyz/docs/rules/no-children-only
|
|
2732
2767
|
*/
|
|
2733
2768
|
'react/no-children-only'?: Linter.RuleEntry<[]>
|
|
2734
2769
|
/**
|
|
2735
|
-
* disallow passing
|
|
2736
|
-
* @see https://eslint-react.xyz/rules/no-children-prop
|
|
2770
|
+
* disallow passing 'children' as props
|
|
2771
|
+
* @see https://eslint-react.xyz/docs/rules/no-children-prop
|
|
2737
2772
|
*/
|
|
2738
2773
|
'react/no-children-prop'?: Linter.RuleEntry<[]>
|
|
2739
2774
|
/**
|
|
2740
|
-
* disallow 'Children.toArray'
|
|
2741
|
-
* @see https://eslint-react.xyz/rules/no-children-to-array
|
|
2775
|
+
* disallow using 'Children.toArray'
|
|
2776
|
+
* @see https://eslint-react.xyz/docs/rules/no-children-to-array
|
|
2742
2777
|
*/
|
|
2743
2778
|
'react/no-children-to-array'?: Linter.RuleEntry<[]>
|
|
2744
2779
|
/**
|
|
2745
|
-
* disallow class
|
|
2746
|
-
* @see https://eslint-react.xyz/rules/no-class-component
|
|
2780
|
+
* disallow using class components
|
|
2781
|
+
* @see https://eslint-react.xyz/docs/rules/no-class-component
|
|
2747
2782
|
*/
|
|
2748
2783
|
'react/no-class-component'?: Linter.RuleEntry<[]>
|
|
2749
2784
|
/**
|
|
2750
|
-
* disallow 'cloneElement'
|
|
2751
|
-
* @see https://eslint-react.xyz/rules/no-clone-element
|
|
2785
|
+
* disallow using 'cloneElement'
|
|
2786
|
+
* @see https://eslint-react.xyz/docs/rules/no-clone-element
|
|
2752
2787
|
*/
|
|
2753
2788
|
'react/no-clone-element'?: Linter.RuleEntry<[]>
|
|
2754
2789
|
/**
|
|
2755
2790
|
* disallow comments from being inserted as text nodes
|
|
2756
|
-
* @see https://eslint-react.xyz/rules/no-comment-textnodes
|
|
2791
|
+
* @see https://eslint-react.xyz/docs/rules/no-comment-textnodes
|
|
2757
2792
|
*/
|
|
2758
2793
|
'react/no-comment-textnodes'?: Linter.RuleEntry<[]>
|
|
2759
2794
|
/**
|
|
2760
|
-
* disallow
|
|
2761
|
-
* @see https://eslint-react.xyz/rules/no-
|
|
2795
|
+
* disallow complex conditional rendering
|
|
2796
|
+
* @see https://eslint-react.xyz/docs/rules/no-complex-conditional-rendering
|
|
2797
|
+
* @deprecated
|
|
2798
|
+
*/
|
|
2799
|
+
'react/no-complex-conditional-rendering'?: Linter.RuleEntry<[]>
|
|
2800
|
+
/**
|
|
2801
|
+
* disallow complex conditional rendering
|
|
2802
|
+
* @see https://eslint-react.xyz/docs/rules/no-complex-conditional-rendering
|
|
2762
2803
|
* @deprecated
|
|
2763
2804
|
*/
|
|
2764
2805
|
'react/no-complicated-conditional-rendering'?: Linter.RuleEntry<[]>
|
|
2765
2806
|
/**
|
|
2766
|
-
* disallow
|
|
2767
|
-
* @see https://eslint-react.xyz/rules/no-component-will-mount
|
|
2807
|
+
* disallow using 'componentWillMount'
|
|
2808
|
+
* @see https://eslint-react.xyz/docs/rules/no-component-will-mount
|
|
2768
2809
|
*/
|
|
2769
2810
|
'react/no-component-will-mount'?: Linter.RuleEntry<[]>
|
|
2770
2811
|
/**
|
|
2771
|
-
* disallow
|
|
2772
|
-
* @see https://eslint-react.xyz/rules/no-component-will-receive-props
|
|
2812
|
+
* disallow using 'componentWillReceiveProps'
|
|
2813
|
+
* @see https://eslint-react.xyz/docs/rules/no-component-will-receive-props
|
|
2773
2814
|
*/
|
|
2774
2815
|
'react/no-component-will-receive-props'?: Linter.RuleEntry<[]>
|
|
2775
2816
|
/**
|
|
2776
|
-
* disallow
|
|
2777
|
-
* @see https://eslint-react.xyz/rules/no-component-will-update
|
|
2817
|
+
* disallow using 'componentWillReceiveProps'
|
|
2818
|
+
* @see https://eslint-react.xyz/docs/rules/no-component-will-update
|
|
2778
2819
|
*/
|
|
2779
2820
|
'react/no-component-will-update'?: Linter.RuleEntry<[]>
|
|
2780
2821
|
/**
|
|
2781
|
-
* disallow 'createRef' in function components
|
|
2782
|
-
* @see https://eslint-react.xyz/rules/no-create-ref
|
|
2822
|
+
* disallow using 'createRef' in function components
|
|
2823
|
+
* @see https://eslint-react.xyz/docs/rules/no-create-ref
|
|
2783
2824
|
*/
|
|
2784
2825
|
'react/no-create-ref'?: Linter.RuleEntry<[]>
|
|
2826
|
+
/**
|
|
2827
|
+
* disallow using 'defaultProps' property in components
|
|
2828
|
+
* @see https://eslint-react.xyz/docs/rules/no-default-props
|
|
2829
|
+
*/
|
|
2830
|
+
'react/no-default-props'?: Linter.RuleEntry<[]>
|
|
2785
2831
|
/**
|
|
2786
2832
|
* disallow direct mutation of state
|
|
2787
|
-
* @see https://eslint-react.xyz/rules/no-direct-mutation-state
|
|
2833
|
+
* @see https://eslint-react.xyz/docs/rules/no-direct-mutation-state
|
|
2788
2834
|
*/
|
|
2789
2835
|
'react/no-direct-mutation-state'?: Linter.RuleEntry<[]>
|
|
2790
2836
|
/**
|
|
2791
2837
|
* disallow duplicate keys in 'key' prop when rendering list
|
|
2792
|
-
* @see https://eslint-react.xyz/rules/no-duplicate-key
|
|
2838
|
+
* @see https://eslint-react.xyz/docs/rules/no-duplicate-key
|
|
2793
2839
|
*/
|
|
2794
2840
|
'react/no-duplicate-key'?: Linter.RuleEntry<[]>
|
|
2795
2841
|
/**
|
|
2796
|
-
* disallow
|
|
2797
|
-
* @see https://eslint-react.xyz/rules/no-implicit-key
|
|
2798
|
-
* @deprecated
|
|
2842
|
+
* disallow implicit 'key' props
|
|
2843
|
+
* @see https://eslint-react.xyz/docs/rules/no-implicit-key
|
|
2799
2844
|
*/
|
|
2800
2845
|
'react/no-implicit-key'?: Linter.RuleEntry<[]>
|
|
2801
2846
|
/**
|
|
2802
2847
|
* disallow problematic leaked values from being rendered
|
|
2803
|
-
* @see https://eslint-react.xyz/rules/no-leaked-conditional-rendering
|
|
2848
|
+
* @see https://eslint-react.xyz/docs/rules/no-leaked-conditional-rendering
|
|
2804
2849
|
*/
|
|
2805
2850
|
'react/no-leaked-conditional-rendering'?: Linter.RuleEntry<[]>
|
|
2806
2851
|
/**
|
|
2807
|
-
* require 'displayName' for memo and forwardRef components
|
|
2808
|
-
* @see https://eslint-react.xyz/rules/no-missing-component-display-name
|
|
2852
|
+
* require 'displayName' for 'memo' and 'forwardRef' components
|
|
2853
|
+
* @see https://eslint-react.xyz/docs/rules/no-missing-component-display-name
|
|
2809
2854
|
*/
|
|
2810
2855
|
'react/no-missing-component-display-name'?: Linter.RuleEntry<[]>
|
|
2811
2856
|
/**
|
|
2812
2857
|
* require 'key' prop when rendering list
|
|
2813
|
-
* @see https://eslint-react.xyz/rules/no-missing-key
|
|
2858
|
+
* @see https://eslint-react.xyz/docs/rules/no-missing-key
|
|
2814
2859
|
*/
|
|
2815
2860
|
'react/no-missing-key'?: Linter.RuleEntry<[]>
|
|
2816
2861
|
/**
|
|
2817
|
-
* disallow
|
|
2818
|
-
* @see https://eslint-react.xyz/rules/no-nested-components
|
|
2862
|
+
* disallow using unstable nested components
|
|
2863
|
+
* @see https://eslint-react.xyz/docs/rules/no-nested-components
|
|
2819
2864
|
*/
|
|
2820
2865
|
'react/no-nested-components'?: Linter.RuleEntry<[]>
|
|
2821
2866
|
/**
|
|
2822
|
-
* disallow
|
|
2823
|
-
* @see https://eslint-react.xyz/rules/no-
|
|
2867
|
+
* disallow using 'propTypes' property in components
|
|
2868
|
+
* @see https://eslint-react.xyz/docs/rules/no-prop-types
|
|
2869
|
+
*/
|
|
2870
|
+
'react/no-prop-types'?: Linter.RuleEntry<[]>
|
|
2871
|
+
/**
|
|
2872
|
+
* disallow using 'shouldComponentUpdate' in class component extends 'React.PureComponent'
|
|
2873
|
+
* @see https://eslint-react.xyz/docs/rules/no-redundant-should-component-update
|
|
2824
2874
|
*/
|
|
2825
2875
|
'react/no-redundant-should-component-update'?: Linter.RuleEntry<[]>
|
|
2826
2876
|
/**
|
|
2827
|
-
* disallow 'setState' in 'componentDidMount'
|
|
2828
|
-
* @see https://eslint-react.xyz/rules/no-set-state-in-component-did-mount
|
|
2877
|
+
* disallow using 'setState' in 'componentDidMount'
|
|
2878
|
+
* @see https://eslint-react.xyz/docs/rules/no-set-state-in-component-did-mount
|
|
2829
2879
|
*/
|
|
2830
2880
|
'react/no-set-state-in-component-did-mount'?: Linter.RuleEntry<[]>
|
|
2831
2881
|
/**
|
|
2832
|
-
* disallow 'setState' in 'componentDidUpdate'
|
|
2833
|
-
* @see https://eslint-react.xyz/rules/no-set-state-in-component-did-update
|
|
2882
|
+
* disallow using 'setState' in 'componentDidUpdate'
|
|
2883
|
+
* @see https://eslint-react.xyz/docs/rules/no-set-state-in-component-did-update
|
|
2834
2884
|
*/
|
|
2835
2885
|
'react/no-set-state-in-component-did-update'?: Linter.RuleEntry<[]>
|
|
2836
2886
|
/**
|
|
2837
|
-
* disallow 'setState' in 'componentWillUpdate'
|
|
2838
|
-
* @see https://eslint-react.xyz/rules/no-set-state-in-component-will-update
|
|
2887
|
+
* disallow using 'setState' in 'componentWillUpdate'
|
|
2888
|
+
* @see https://eslint-react.xyz/docs/rules/no-set-state-in-component-will-update
|
|
2839
2889
|
*/
|
|
2840
2890
|
'react/no-set-state-in-component-will-update'?: Linter.RuleEntry<[]>
|
|
2841
2891
|
/**
|
|
2842
2892
|
* disallow using deprecated string refs
|
|
2843
|
-
* @see https://eslint-react.xyz/rules/no-string-refs
|
|
2893
|
+
* @see https://eslint-react.xyz/docs/rules/no-string-refs
|
|
2844
2894
|
*/
|
|
2845
2895
|
'react/no-string-refs'?: Linter.RuleEntry<[]>
|
|
2846
2896
|
/**
|
|
2847
|
-
* disallow
|
|
2848
|
-
* @see https://eslint-react.xyz/rules/no-unsafe-component-will-mount
|
|
2897
|
+
* disallow using 'UNSAFE_componentWillMount'
|
|
2898
|
+
* @see https://eslint-react.xyz/docs/rules/no-unsafe-component-will-mount
|
|
2849
2899
|
*/
|
|
2850
2900
|
'react/no-unsafe-component-will-mount'?: Linter.RuleEntry<[]>
|
|
2851
2901
|
/**
|
|
2852
|
-
* disallow
|
|
2853
|
-
* @see https://eslint-react.xyz/rules/no-unsafe-component-will-receive-props
|
|
2902
|
+
* disallow using 'UNSAFE_componentWillReceiveProps'
|
|
2903
|
+
* @see https://eslint-react.xyz/docs/rules/no-unsafe-component-will-receive-props
|
|
2854
2904
|
*/
|
|
2855
2905
|
'react/no-unsafe-component-will-receive-props'?: Linter.RuleEntry<[]>
|
|
2856
2906
|
/**
|
|
2857
|
-
* disallow
|
|
2858
|
-
* @see https://eslint-react.xyz/rules/no-unsafe-component-will-update
|
|
2907
|
+
* disallow using 'UNSAFE_componentWillUpdate'
|
|
2908
|
+
* @see https://eslint-react.xyz/docs/rules/no-unsafe-component-will-update
|
|
2859
2909
|
*/
|
|
2860
2910
|
'react/no-unsafe-component-will-update'?: Linter.RuleEntry<[]>
|
|
2861
2911
|
/**
|
|
2862
2912
|
* disallow passing constructed values to context providers
|
|
2863
|
-
* @see https://eslint-react.xyz/rules/no-unstable-context-value
|
|
2913
|
+
* @see https://eslint-react.xyz/docs/rules/no-unstable-context-value
|
|
2864
2914
|
*/
|
|
2865
2915
|
'react/no-unstable-context-value'?: Linter.RuleEntry<[]>
|
|
2866
2916
|
/**
|
|
2867
|
-
* disallow
|
|
2868
|
-
* @see https://eslint-react.xyz/rules/no-unstable-default-props
|
|
2917
|
+
* disallow using unstable value as default param in function component
|
|
2918
|
+
* @see https://eslint-react.xyz/docs/rules/no-unstable-default-props
|
|
2869
2919
|
*/
|
|
2870
2920
|
'react/no-unstable-default-props'?: Linter.RuleEntry<[]>
|
|
2871
2921
|
/**
|
|
2872
2922
|
* disallow unused class component members
|
|
2873
|
-
* @see https://eslint-react.xyz/rules/no-unused-class-component-members
|
|
2923
|
+
* @see https://eslint-react.xyz/docs/rules/no-unused-class-component-members
|
|
2874
2924
|
*/
|
|
2875
2925
|
'react/no-unused-class-component-members'?: Linter.RuleEntry<[]>
|
|
2876
2926
|
/**
|
|
2877
|
-
*
|
|
2878
|
-
* @see https://eslint-react.xyz/rules/no-unused-state
|
|
2927
|
+
* disallow unused state of class component
|
|
2928
|
+
* @see https://eslint-react.xyz/docs/rules/no-unused-state
|
|
2879
2929
|
*/
|
|
2880
2930
|
'react/no-unused-state'?: Linter.RuleEntry<[]>
|
|
2881
2931
|
/**
|
|
2882
2932
|
* disallow unnecessary fragments
|
|
2883
|
-
* @see https://eslint-react.xyz/rules/no-useless-fragment
|
|
2933
|
+
* @see https://eslint-react.xyz/docs/rules/no-useless-fragment
|
|
2884
2934
|
*/
|
|
2885
2935
|
'react/no-useless-fragment'?: Linter.RuleEntry<[]>
|
|
2886
2936
|
/**
|
|
2887
2937
|
* enforce using destructuring assignment in component props and context
|
|
2888
|
-
* @see https://eslint-react.xyz/rules/prefer-destructuring-assignment
|
|
2938
|
+
* @see https://eslint-react.xyz/docs/rules/prefer-destructuring-assignment
|
|
2889
2939
|
*/
|
|
2890
2940
|
'react/prefer-destructuring-assignment'?: Linter.RuleEntry<[]>
|
|
2891
2941
|
/**
|
|
2892
|
-
* enforce
|
|
2893
|
-
* @see https://eslint-react.xyz/rules/prefer-
|
|
2942
|
+
* enforce read-only props in components
|
|
2943
|
+
* @see https://eslint-react.xyz/docs/rules/prefer-read-only-props
|
|
2944
|
+
*/
|
|
2945
|
+
'react/prefer-read-only-props'?: Linter.RuleEntry<[]>
|
|
2946
|
+
/**
|
|
2947
|
+
* enforce using shorthand boolean attributes
|
|
2948
|
+
* @see https://eslint-react.xyz/docs/rules/prefer-shorthand-boolean
|
|
2894
2949
|
*/
|
|
2895
2950
|
'react/prefer-shorthand-boolean'?: Linter.RuleEntry<[]>
|
|
2896
2951
|
/**
|
|
2897
|
-
* enforce using fragment syntax instead of Fragment component
|
|
2898
|
-
* @see https://eslint-react.xyz/rules/prefer-shorthand-fragment
|
|
2952
|
+
* enforce using fragment syntax instead of 'Fragment' component
|
|
2953
|
+
* @see https://eslint-react.xyz/docs/rules/prefer-shorthand-fragment
|
|
2899
2954
|
*/
|
|
2900
2955
|
'react/prefer-shorthand-fragment'?: Linter.RuleEntry<[]>
|
|
2901
2956
|
/**
|
|
@@ -3559,8 +3614,9 @@ interface RuleOptions {
|
|
|
3559
3614
|
*/
|
|
3560
3615
|
'style/jsx-function-call-newline'?: Linter.RuleEntry<StyleJsxFunctionCallNewline>
|
|
3561
3616
|
/**
|
|
3562
|
-
* Enforce JSX indentation
|
|
3617
|
+
* Enforce JSX indentation. Deprecated, use `indent` rule instead.
|
|
3563
3618
|
* @see https://eslint.style/rules/jsx/jsx-indent
|
|
3619
|
+
* @deprecated
|
|
3564
3620
|
*/
|
|
3565
3621
|
'style/jsx-indent'?: Linter.RuleEntry<StyleJsxIndent>
|
|
3566
3622
|
/**
|
|
@@ -3745,7 +3801,7 @@ interface RuleOptions {
|
|
|
3745
3801
|
'style/nonblock-statement-body-position'?: Linter.RuleEntry<StyleNonblockStatementBodyPosition>
|
|
3746
3802
|
/**
|
|
3747
3803
|
* Enforce consistent line breaks after opening and before closing braces
|
|
3748
|
-
* @see https://eslint.style/rules/
|
|
3804
|
+
* @see https://eslint.style/rules/ts/object-curly-newline
|
|
3749
3805
|
*/
|
|
3750
3806
|
'style/object-curly-newline'?: Linter.RuleEntry<StyleObjectCurlyNewline>
|
|
3751
3807
|
/**
|
|
@@ -3755,7 +3811,7 @@ interface RuleOptions {
|
|
|
3755
3811
|
'style/object-curly-spacing'?: Linter.RuleEntry<StyleObjectCurlySpacing>
|
|
3756
3812
|
/**
|
|
3757
3813
|
* Enforce placing object properties on separate lines
|
|
3758
|
-
* @see https://eslint.style/rules/
|
|
3814
|
+
* @see https://eslint.style/rules/ts/object-property-newline
|
|
3759
3815
|
*/
|
|
3760
3816
|
'style/object-property-newline'?: Linter.RuleEntry<StyleObjectPropertyNewline>
|
|
3761
3817
|
/**
|
|
@@ -4308,23 +4364,6 @@ interface RuleOptions {
|
|
|
4308
4364
|
* @see https://typescript-eslint.io/rules/ban-tslint-comment
|
|
4309
4365
|
*/
|
|
4310
4366
|
'ts/ban-tslint-comment'?: Linter.RuleEntry<[]>
|
|
4311
|
-
/**
|
|
4312
|
-
* Disallow certain types
|
|
4313
|
-
* @see https://typescript-eslint.io/rules/ban-types
|
|
4314
|
-
*/
|
|
4315
|
-
'ts/ban-types'?: Linter.RuleEntry<TsBanTypes>
|
|
4316
|
-
/**
|
|
4317
|
-
* Disallow or enforce spaces inside of blocks after opening block and before closing block
|
|
4318
|
-
* @see https://typescript-eslint.io/rules/block-spacing
|
|
4319
|
-
* @deprecated
|
|
4320
|
-
*/
|
|
4321
|
-
'ts/block-spacing'?: Linter.RuleEntry<TsBlockSpacing>
|
|
4322
|
-
/**
|
|
4323
|
-
* Enforce consistent brace style for blocks
|
|
4324
|
-
* @see https://typescript-eslint.io/rules/brace-style
|
|
4325
|
-
* @deprecated
|
|
4326
|
-
*/
|
|
4327
|
-
'ts/brace-style'?: Linter.RuleEntry<TsBraceStyle>
|
|
4328
4367
|
/**
|
|
4329
4368
|
* Enforce that literals on classes are exposed in a consistent style
|
|
4330
4369
|
* @see https://typescript-eslint.io/rules/class-literal-property-style
|
|
@@ -4335,18 +4374,6 @@ interface RuleOptions {
|
|
|
4335
4374
|
* @see https://typescript-eslint.io/rules/class-methods-use-this
|
|
4336
4375
|
*/
|
|
4337
4376
|
'ts/class-methods-use-this'?: Linter.RuleEntry<TsClassMethodsUseThis>
|
|
4338
|
-
/**
|
|
4339
|
-
* Require or disallow trailing commas
|
|
4340
|
-
* @see https://typescript-eslint.io/rules/comma-dangle
|
|
4341
|
-
* @deprecated
|
|
4342
|
-
*/
|
|
4343
|
-
'ts/comma-dangle'?: Linter.RuleEntry<TsCommaDangle>
|
|
4344
|
-
/**
|
|
4345
|
-
* Enforce consistent spacing before and after commas
|
|
4346
|
-
* @see https://typescript-eslint.io/rules/comma-spacing
|
|
4347
|
-
* @deprecated
|
|
4348
|
-
*/
|
|
4349
|
-
'ts/comma-spacing'?: Linter.RuleEntry<TsCommaSpacing>
|
|
4350
4377
|
/**
|
|
4351
4378
|
* Enforce specifying generic type arguments on type annotation or constructor name of a constructor call
|
|
4352
4379
|
* @see https://typescript-eslint.io/rules/consistent-generic-constructors
|
|
@@ -4407,58 +4434,16 @@ interface RuleOptions {
|
|
|
4407
4434
|
* @see https://typescript-eslint.io/rules/explicit-module-boundary-types
|
|
4408
4435
|
*/
|
|
4409
4436
|
'ts/explicit-module-boundary-types'?: Linter.RuleEntry<TsExplicitModuleBoundaryTypes>
|
|
4410
|
-
/**
|
|
4411
|
-
* Require or disallow spacing between function identifiers and their invocations
|
|
4412
|
-
* @see https://typescript-eslint.io/rules/func-call-spacing
|
|
4413
|
-
* @deprecated
|
|
4414
|
-
*/
|
|
4415
|
-
'ts/func-call-spacing'?: Linter.RuleEntry<TsFuncCallSpacing>
|
|
4416
|
-
/**
|
|
4417
|
-
* Enforce consistent indentation
|
|
4418
|
-
* @see https://typescript-eslint.io/rules/indent
|
|
4419
|
-
* @deprecated
|
|
4420
|
-
*/
|
|
4421
|
-
'ts/indent'?: Linter.RuleEntry<TsIndent>
|
|
4422
4437
|
/**
|
|
4423
4438
|
* Require or disallow initialization in variable declarations
|
|
4424
4439
|
* @see https://typescript-eslint.io/rules/init-declarations
|
|
4425
4440
|
*/
|
|
4426
4441
|
'ts/init-declarations'?: Linter.RuleEntry<TsInitDeclarations>
|
|
4427
|
-
/**
|
|
4428
|
-
* Enforce consistent spacing between property names and type annotations in types and interfaces
|
|
4429
|
-
* @see https://typescript-eslint.io/rules/key-spacing
|
|
4430
|
-
* @deprecated
|
|
4431
|
-
*/
|
|
4432
|
-
'ts/key-spacing'?: Linter.RuleEntry<TsKeySpacing>
|
|
4433
|
-
/**
|
|
4434
|
-
* Enforce consistent spacing before and after keywords
|
|
4435
|
-
* @see https://typescript-eslint.io/rules/keyword-spacing
|
|
4436
|
-
* @deprecated
|
|
4437
|
-
*/
|
|
4438
|
-
'ts/keyword-spacing'?: Linter.RuleEntry<TsKeywordSpacing>
|
|
4439
|
-
/**
|
|
4440
|
-
* Require empty lines around comments
|
|
4441
|
-
* @see https://typescript-eslint.io/rules/lines-around-comment
|
|
4442
|
-
* @deprecated
|
|
4443
|
-
*/
|
|
4444
|
-
'ts/lines-around-comment'?: Linter.RuleEntry<TsLinesAroundComment>
|
|
4445
|
-
/**
|
|
4446
|
-
* Require or disallow an empty line between class members
|
|
4447
|
-
* @see https://typescript-eslint.io/rules/lines-between-class-members
|
|
4448
|
-
* @deprecated
|
|
4449
|
-
*/
|
|
4450
|
-
'ts/lines-between-class-members'?: Linter.RuleEntry<TsLinesBetweenClassMembers>
|
|
4451
4442
|
/**
|
|
4452
4443
|
* Enforce a maximum number of parameters in function definitions
|
|
4453
4444
|
* @see https://typescript-eslint.io/rules/max-params
|
|
4454
4445
|
*/
|
|
4455
4446
|
'ts/max-params'?: Linter.RuleEntry<TsMaxParams>
|
|
4456
|
-
/**
|
|
4457
|
-
* Require a specific member delimiter style for interfaces and type literals
|
|
4458
|
-
* @see https://typescript-eslint.io/rules/member-delimiter-style
|
|
4459
|
-
* @deprecated
|
|
4460
|
-
*/
|
|
4461
|
-
'ts/member-delimiter-style'?: Linter.RuleEntry<TsMemberDelimiterStyle>
|
|
4462
4447
|
/**
|
|
4463
4448
|
* Require a consistent member declaration order
|
|
4464
4449
|
* @see https://typescript-eslint.io/rules/member-ordering
|
|
@@ -4527,8 +4512,14 @@ interface RuleOptions {
|
|
|
4527
4512
|
/**
|
|
4528
4513
|
* Disallow the declaration of empty interfaces
|
|
4529
4514
|
* @see https://typescript-eslint.io/rules/no-empty-interface
|
|
4515
|
+
* @deprecated
|
|
4530
4516
|
*/
|
|
4531
4517
|
'ts/no-empty-interface'?: Linter.RuleEntry<TsNoEmptyInterface>
|
|
4518
|
+
/**
|
|
4519
|
+
* Disallow accidentally using the "empty object" type
|
|
4520
|
+
* @see https://typescript-eslint.io/rules/no-empty-object-type
|
|
4521
|
+
*/
|
|
4522
|
+
'ts/no-empty-object-type'?: Linter.RuleEntry<TsNoEmptyObjectType>
|
|
4532
4523
|
/**
|
|
4533
4524
|
* Disallow the `any` type
|
|
4534
4525
|
* @see https://typescript-eslint.io/rules/no-explicit-any
|
|
@@ -4539,18 +4530,6 @@ interface RuleOptions {
|
|
|
4539
4530
|
* @see https://typescript-eslint.io/rules/no-extra-non-null-assertion
|
|
4540
4531
|
*/
|
|
4541
4532
|
'ts/no-extra-non-null-assertion'?: Linter.RuleEntry<[]>
|
|
4542
|
-
/**
|
|
4543
|
-
* Disallow unnecessary parentheses
|
|
4544
|
-
* @see https://typescript-eslint.io/rules/no-extra-parens
|
|
4545
|
-
* @deprecated
|
|
4546
|
-
*/
|
|
4547
|
-
'ts/no-extra-parens'?: Linter.RuleEntry<TsNoExtraParens>
|
|
4548
|
-
/**
|
|
4549
|
-
* Disallow unnecessary semicolons
|
|
4550
|
-
* @see https://typescript-eslint.io/rules/no-extra-semi
|
|
4551
|
-
* @deprecated
|
|
4552
|
-
*/
|
|
4553
|
-
'ts/no-extra-semi'?: Linter.RuleEntry<[]>
|
|
4554
4533
|
/**
|
|
4555
4534
|
* Disallow classes used as namespaces
|
|
4556
4535
|
* @see https://typescript-eslint.io/rules/no-extraneous-class
|
|
@@ -4599,6 +4578,7 @@ interface RuleOptions {
|
|
|
4599
4578
|
/**
|
|
4600
4579
|
* Disallow literal numbers that lose precision
|
|
4601
4580
|
* @see https://typescript-eslint.io/rules/no-loss-of-precision
|
|
4581
|
+
* @deprecated
|
|
4602
4582
|
*/
|
|
4603
4583
|
'ts/no-loss-of-precision'?: Linter.RuleEntry<[]>
|
|
4604
4584
|
/**
|
|
@@ -4666,6 +4646,11 @@ interface RuleOptions {
|
|
|
4666
4646
|
* @see https://typescript-eslint.io/rules/no-restricted-imports
|
|
4667
4647
|
*/
|
|
4668
4648
|
'ts/no-restricted-imports'?: Linter.RuleEntry<TsNoRestrictedImports>
|
|
4649
|
+
/**
|
|
4650
|
+
* Disallow certain types
|
|
4651
|
+
* @see https://typescript-eslint.io/rules/no-restricted-types
|
|
4652
|
+
*/
|
|
4653
|
+
'ts/no-restricted-types'?: Linter.RuleEntry<TsNoRestrictedTypes>
|
|
4669
4654
|
/**
|
|
4670
4655
|
* Disallow variable declarations from shadowing variables declared in the outer scope
|
|
4671
4656
|
* @see https://typescript-eslint.io/rules/no-shadow
|
|
@@ -4676,12 +4661,6 @@ interface RuleOptions {
|
|
|
4676
4661
|
* @see https://typescript-eslint.io/rules/no-this-alias
|
|
4677
4662
|
*/
|
|
4678
4663
|
'ts/no-this-alias'?: Linter.RuleEntry<TsNoThisAlias>
|
|
4679
|
-
/**
|
|
4680
|
-
* Disallow throwing literals as exceptions
|
|
4681
|
-
* @see https://typescript-eslint.io/rules/no-throw-literal
|
|
4682
|
-
* @deprecated
|
|
4683
|
-
*/
|
|
4684
|
-
'ts/no-throw-literal'?: Linter.RuleEntry<TsNoThrowLiteral>
|
|
4685
4664
|
/**
|
|
4686
4665
|
* Disallow type aliases
|
|
4687
4666
|
* @see https://typescript-eslint.io/rules/no-type-alias
|
|
@@ -4698,11 +4677,21 @@ interface RuleOptions {
|
|
|
4698
4677
|
* @see https://typescript-eslint.io/rules/no-unnecessary-condition
|
|
4699
4678
|
*/
|
|
4700
4679
|
'ts/no-unnecessary-condition'?: Linter.RuleEntry<TsNoUnnecessaryCondition>
|
|
4680
|
+
/**
|
|
4681
|
+
* Disallow unnecessary assignment of constructor property parameter
|
|
4682
|
+
* @see https://typescript-eslint.io/rules/no-unnecessary-parameter-property-assignment
|
|
4683
|
+
*/
|
|
4684
|
+
'ts/no-unnecessary-parameter-property-assignment'?: Linter.RuleEntry<[]>
|
|
4701
4685
|
/**
|
|
4702
4686
|
* Disallow unnecessary namespace qualifiers
|
|
4703
4687
|
* @see https://typescript-eslint.io/rules/no-unnecessary-qualifier
|
|
4704
4688
|
*/
|
|
4705
4689
|
'ts/no-unnecessary-qualifier'?: Linter.RuleEntry<[]>
|
|
4690
|
+
/**
|
|
4691
|
+
* Disallow unnecessary template expressions
|
|
4692
|
+
* @see https://typescript-eslint.io/rules/no-unnecessary-template-expression
|
|
4693
|
+
*/
|
|
4694
|
+
'ts/no-unnecessary-template-expression'?: Linter.RuleEntry<[]>
|
|
4706
4695
|
/**
|
|
4707
4696
|
* Disallow type arguments that are equal to the default
|
|
4708
4697
|
* @see https://typescript-eslint.io/rules/no-unnecessary-type-arguments
|
|
@@ -4718,6 +4707,11 @@ interface RuleOptions {
|
|
|
4718
4707
|
* @see https://typescript-eslint.io/rules/no-unnecessary-type-constraint
|
|
4719
4708
|
*/
|
|
4720
4709
|
'ts/no-unnecessary-type-constraint'?: Linter.RuleEntry<[]>
|
|
4710
|
+
/**
|
|
4711
|
+
* Disallow type parameters that only appear once
|
|
4712
|
+
* @see https://typescript-eslint.io/rules/no-unnecessary-type-parameters
|
|
4713
|
+
*/
|
|
4714
|
+
'ts/no-unnecessary-type-parameters'?: Linter.RuleEntry<[]>
|
|
4721
4715
|
/**
|
|
4722
4716
|
* Disallow calling a function with a value with type `any`
|
|
4723
4717
|
* @see https://typescript-eslint.io/rules/no-unsafe-argument
|
|
@@ -4743,6 +4737,11 @@ interface RuleOptions {
|
|
|
4743
4737
|
* @see https://typescript-eslint.io/rules/no-unsafe-enum-comparison
|
|
4744
4738
|
*/
|
|
4745
4739
|
'ts/no-unsafe-enum-comparison'?: Linter.RuleEntry<[]>
|
|
4740
|
+
/**
|
|
4741
|
+
* Disallow using the unsafe built-in Function type
|
|
4742
|
+
* @see https://typescript-eslint.io/rules/no-unsafe-function-type
|
|
4743
|
+
*/
|
|
4744
|
+
'ts/no-unsafe-function-type'?: Linter.RuleEntry<[]>
|
|
4746
4745
|
/**
|
|
4747
4746
|
* Disallow member access on a value with type `any`
|
|
4748
4747
|
* @see https://typescript-eslint.io/rules/no-unsafe-member-access
|
|
@@ -4783,38 +4782,27 @@ interface RuleOptions {
|
|
|
4783
4782
|
* @see https://typescript-eslint.io/rules/no-useless-empty-export
|
|
4784
4783
|
*/
|
|
4785
4784
|
'ts/no-useless-empty-export'?: Linter.RuleEntry<[]>
|
|
4786
|
-
/**
|
|
4787
|
-
* Disallow unnecessary template literals
|
|
4788
|
-
* @see https://typescript-eslint.io/rules/no-useless-template-literals
|
|
4789
|
-
*/
|
|
4790
|
-
'ts/no-useless-template-literals'?: Linter.RuleEntry<[]>
|
|
4791
4785
|
/**
|
|
4792
4786
|
* Disallow `require` statements except in import statements
|
|
4793
4787
|
* @see https://typescript-eslint.io/rules/no-var-requires
|
|
4788
|
+
* @deprecated
|
|
4794
4789
|
*/
|
|
4795
4790
|
'ts/no-var-requires'?: Linter.RuleEntry<TsNoVarRequires>
|
|
4791
|
+
/**
|
|
4792
|
+
* Disallow using confusing built-in primitive class wrappers
|
|
4793
|
+
* @see https://typescript-eslint.io/rules/no-wrapper-object-types
|
|
4794
|
+
*/
|
|
4795
|
+
'ts/no-wrapper-object-types'?: Linter.RuleEntry<[]>
|
|
4796
4796
|
/**
|
|
4797
4797
|
* Enforce non-null assertions over explicit type casts
|
|
4798
4798
|
* @see https://typescript-eslint.io/rules/non-nullable-type-assertion-style
|
|
4799
4799
|
*/
|
|
4800
4800
|
'ts/non-nullable-type-assertion-style'?: Linter.RuleEntry<[]>
|
|
4801
|
-
/**
|
|
4802
|
-
* Enforce consistent spacing inside braces
|
|
4803
|
-
* @see https://typescript-eslint.io/rules/object-curly-spacing
|
|
4804
|
-
* @deprecated
|
|
4805
|
-
*/
|
|
4806
|
-
'ts/object-curly-spacing'?: Linter.RuleEntry<TsObjectCurlySpacing>
|
|
4807
4801
|
/**
|
|
4808
4802
|
* Disallow throwing non-`Error` values as exceptions
|
|
4809
4803
|
* @see https://typescript-eslint.io/rules/only-throw-error
|
|
4810
4804
|
*/
|
|
4811
4805
|
'ts/only-throw-error'?: Linter.RuleEntry<TsOnlyThrowError>
|
|
4812
|
-
/**
|
|
4813
|
-
* Require or disallow padding lines between statements
|
|
4814
|
-
* @see https://typescript-eslint.io/rules/padding-line-between-statements
|
|
4815
|
-
* @deprecated
|
|
4816
|
-
*/
|
|
4817
|
-
'ts/padding-line-between-statements'?: Linter.RuleEntry<TsPaddingLineBetweenStatements>
|
|
4818
4806
|
/**
|
|
4819
4807
|
* Require or disallow parameter properties in class constructors
|
|
4820
4808
|
* @see https://typescript-eslint.io/rules/parameter-properties
|
|
@@ -4921,19 +4909,13 @@ interface RuleOptions {
|
|
|
4921
4909
|
* @see https://typescript-eslint.io/rules/promise-function-async
|
|
4922
4910
|
*/
|
|
4923
4911
|
'ts/promise-function-async'?: Linter.RuleEntry<TsPromiseFunctionAsync>
|
|
4924
|
-
/**
|
|
4925
|
-
* Enforce the consistent use of either backticks, double, or single quotes
|
|
4926
|
-
* @see https://typescript-eslint.io/rules/quotes
|
|
4927
|
-
* @deprecated
|
|
4928
|
-
*/
|
|
4929
|
-
'ts/quotes'?: Linter.RuleEntry<TsQuotes>
|
|
4930
4912
|
/**
|
|
4931
4913
|
* Require `Array#sort` and `Array#toSorted` calls to always provide a `compareFunction`
|
|
4932
4914
|
* @see https://typescript-eslint.io/rules/require-array-sort-compare
|
|
4933
4915
|
*/
|
|
4934
4916
|
'ts/require-array-sort-compare'?: Linter.RuleEntry<TsRequireArraySortCompare>
|
|
4935
4917
|
/**
|
|
4936
|
-
* Disallow async functions which have no `await` expression
|
|
4918
|
+
* Disallow async functions which do not return promises and have no `await` expression
|
|
4937
4919
|
* @see https://typescript-eslint.io/rules/require-await
|
|
4938
4920
|
*/
|
|
4939
4921
|
'ts/require-await'?: Linter.RuleEntry<[]>
|
|
@@ -4948,39 +4930,16 @@ interface RuleOptions {
|
|
|
4948
4930
|
*/
|
|
4949
4931
|
'ts/restrict-template-expressions'?: Linter.RuleEntry<TsRestrictTemplateExpressions>
|
|
4950
4932
|
/**
|
|
4951
|
-
* Enforce consistent
|
|
4933
|
+
* Enforce consistent awaiting of returned promises
|
|
4952
4934
|
* @see https://typescript-eslint.io/rules/return-await
|
|
4953
4935
|
*/
|
|
4954
4936
|
'ts/return-await'?: Linter.RuleEntry<TsReturnAwait>
|
|
4955
|
-
/**
|
|
4956
|
-
* Require or disallow semicolons instead of ASI
|
|
4957
|
-
* @see https://typescript-eslint.io/rules/semi
|
|
4958
|
-
* @deprecated
|
|
4959
|
-
*/
|
|
4960
|
-
'ts/semi'?: Linter.RuleEntry<TsSemi>
|
|
4961
4937
|
/**
|
|
4962
4938
|
* Enforce constituents of a type union/intersection to be sorted alphabetically
|
|
4963
4939
|
* @see https://typescript-eslint.io/rules/sort-type-constituents
|
|
4964
|
-
*/
|
|
4965
|
-
'ts/sort-type-constituents'?: Linter.RuleEntry<TsSortTypeConstituents>
|
|
4966
|
-
/**
|
|
4967
|
-
* Enforce consistent spacing before blocks
|
|
4968
|
-
* @see https://typescript-eslint.io/rules/space-before-blocks
|
|
4969
|
-
* @deprecated
|
|
4970
|
-
*/
|
|
4971
|
-
'ts/space-before-blocks'?: Linter.RuleEntry<TsSpaceBeforeBlocks>
|
|
4972
|
-
/**
|
|
4973
|
-
* Enforce consistent spacing before function parenthesis
|
|
4974
|
-
* @see https://typescript-eslint.io/rules/space-before-function-paren
|
|
4975
|
-
* @deprecated
|
|
4976
|
-
*/
|
|
4977
|
-
'ts/space-before-function-paren'?: Linter.RuleEntry<TsSpaceBeforeFunctionParen>
|
|
4978
|
-
/**
|
|
4979
|
-
* Require spacing around infix operators
|
|
4980
|
-
* @see https://typescript-eslint.io/rules/space-infix-ops
|
|
4981
4940
|
* @deprecated
|
|
4982
4941
|
*/
|
|
4983
|
-
'ts/
|
|
4942
|
+
'ts/sort-type-constituents'?: Linter.RuleEntry<TsSortTypeConstituents>
|
|
4984
4943
|
/**
|
|
4985
4944
|
* Disallow certain types in boolean expressions
|
|
4986
4945
|
* @see https://typescript-eslint.io/rules/strict-boolean-expressions
|
|
@@ -4996,12 +4955,6 @@ interface RuleOptions {
|
|
|
4996
4955
|
* @see https://typescript-eslint.io/rules/triple-slash-reference
|
|
4997
4956
|
*/
|
|
4998
4957
|
'ts/triple-slash-reference'?: Linter.RuleEntry<TsTripleSlashReference>
|
|
4999
|
-
/**
|
|
5000
|
-
* Require consistent spacing around type annotations
|
|
5001
|
-
* @see https://typescript-eslint.io/rules/type-annotation-spacing
|
|
5002
|
-
* @deprecated
|
|
5003
|
-
*/
|
|
5004
|
-
'ts/type-annotation-spacing'?: Linter.RuleEntry<TsTypeAnnotationSpacing>
|
|
5005
4958
|
/**
|
|
5006
4959
|
* Require type annotations in certain places
|
|
5007
4960
|
* @see https://typescript-eslint.io/rules/typedef
|
|
@@ -5029,677 +4982,687 @@ interface RuleOptions {
|
|
|
5029
4982
|
'unicode-bom'?: Linter.RuleEntry<UnicodeBom>
|
|
5030
4983
|
/**
|
|
5031
4984
|
* Improve regexes by making them shorter, consistent, and safer.
|
|
5032
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4985
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/better-regex.md
|
|
5033
4986
|
*/
|
|
5034
4987
|
'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>
|
|
5035
4988
|
/**
|
|
5036
4989
|
* Enforce a specific parameter name in catch clauses.
|
|
5037
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4990
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/catch-error-name.md
|
|
5038
4991
|
*/
|
|
5039
4992
|
'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>
|
|
5040
4993
|
/**
|
|
5041
4994
|
* Use destructured variables over properties.
|
|
5042
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4995
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/consistent-destructuring.md
|
|
5043
4996
|
*/
|
|
5044
4997
|
'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>
|
|
5045
4998
|
/**
|
|
5046
4999
|
* Prefer consistent types when spreading a ternary in an array literal.
|
|
5047
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5000
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/consistent-empty-array-spread.md
|
|
5048
5001
|
*/
|
|
5049
5002
|
'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>
|
|
5050
5003
|
/**
|
|
5051
5004
|
* Move function definitions to the highest possible scope.
|
|
5052
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5005
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/consistent-function-scoping.md
|
|
5053
5006
|
*/
|
|
5054
5007
|
'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>
|
|
5055
5008
|
/**
|
|
5056
5009
|
* Enforce correct `Error` subclassing.
|
|
5057
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5010
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/custom-error-definition.md
|
|
5058
5011
|
*/
|
|
5059
5012
|
'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>
|
|
5060
5013
|
/**
|
|
5061
5014
|
* Enforce no spaces between braces.
|
|
5062
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5015
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/empty-brace-spaces.md
|
|
5063
5016
|
*/
|
|
5064
5017
|
'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>
|
|
5065
5018
|
/**
|
|
5066
5019
|
* Enforce passing a `message` value when creating a built-in error.
|
|
5067
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5020
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/error-message.md
|
|
5068
5021
|
*/
|
|
5069
5022
|
'unicorn/error-message'?: Linter.RuleEntry<[]>
|
|
5070
5023
|
/**
|
|
5071
5024
|
* Require escape sequences to use uppercase values.
|
|
5072
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5025
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/escape-case.md
|
|
5073
5026
|
*/
|
|
5074
5027
|
'unicorn/escape-case'?: Linter.RuleEntry<[]>
|
|
5075
5028
|
/**
|
|
5076
5029
|
* Add expiration conditions to TODO comments.
|
|
5077
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5030
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/expiring-todo-comments.md
|
|
5078
5031
|
*/
|
|
5079
5032
|
'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>
|
|
5080
5033
|
/**
|
|
5081
5034
|
* Enforce explicitly comparing the `length` or `size` property of a value.
|
|
5082
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5035
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/explicit-length-check.md
|
|
5083
5036
|
*/
|
|
5084
5037
|
'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>
|
|
5085
5038
|
/**
|
|
5086
5039
|
* Enforce a case style for filenames.
|
|
5087
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5040
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/filename-case.md
|
|
5088
5041
|
*/
|
|
5089
5042
|
'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>
|
|
5090
5043
|
/**
|
|
5091
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5044
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#import-index
|
|
5092
5045
|
* @deprecated
|
|
5093
5046
|
*/
|
|
5094
5047
|
'unicorn/import-index'?: Linter.RuleEntry<[]>
|
|
5095
5048
|
/**
|
|
5096
5049
|
* Enforce specific import styles per module.
|
|
5097
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5050
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/import-style.md
|
|
5098
5051
|
*/
|
|
5099
5052
|
'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>
|
|
5100
5053
|
/**
|
|
5101
5054
|
* Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
|
|
5102
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5055
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/new-for-builtins.md
|
|
5103
5056
|
*/
|
|
5104
5057
|
'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>
|
|
5105
5058
|
/**
|
|
5106
5059
|
* Enforce specifying rules to disable in `eslint-disable` comments.
|
|
5107
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5060
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-abusive-eslint-disable.md
|
|
5108
5061
|
*/
|
|
5109
5062
|
'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>
|
|
5110
5063
|
/**
|
|
5111
5064
|
* Disallow anonymous functions and classes as the default export.
|
|
5112
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5065
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-anonymous-default-export.md
|
|
5113
5066
|
*/
|
|
5114
5067
|
'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>
|
|
5115
5068
|
/**
|
|
5116
5069
|
* Prevent passing a function reference directly to iterator methods.
|
|
5117
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5070
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-array-callback-reference.md
|
|
5118
5071
|
*/
|
|
5119
5072
|
'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>
|
|
5120
5073
|
/**
|
|
5121
5074
|
* Prefer `for…of` over the `forEach` method.
|
|
5122
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5075
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-array-for-each.md
|
|
5123
5076
|
*/
|
|
5124
5077
|
'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>
|
|
5125
5078
|
/**
|
|
5126
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5079
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#no-array-instanceof
|
|
5127
5080
|
* @deprecated
|
|
5128
5081
|
*/
|
|
5129
5082
|
'unicorn/no-array-instanceof'?: Linter.RuleEntry<[]>
|
|
5130
5083
|
/**
|
|
5131
5084
|
* Disallow using the `this` argument in array methods.
|
|
5132
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5085
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-array-method-this-argument.md
|
|
5133
5086
|
*/
|
|
5134
5087
|
'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>
|
|
5135
5088
|
/**
|
|
5136
5089
|
* Enforce combining multiple `Array#push()` into one call.
|
|
5137
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5090
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-array-push-push.md
|
|
5138
5091
|
*/
|
|
5139
5092
|
'unicorn/no-array-push-push'?: Linter.RuleEntry<UnicornNoArrayPushPush>
|
|
5140
5093
|
/**
|
|
5141
5094
|
* Disallow `Array#reduce()` and `Array#reduceRight()`.
|
|
5142
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5095
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-array-reduce.md
|
|
5143
5096
|
*/
|
|
5144
5097
|
'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>
|
|
5145
5098
|
/**
|
|
5146
5099
|
* Disallow member access from await expression.
|
|
5147
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5100
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-await-expression-member.md
|
|
5148
5101
|
*/
|
|
5149
5102
|
'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>
|
|
5150
5103
|
/**
|
|
5151
5104
|
* Disallow using `await` in `Promise` method parameters.
|
|
5152
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5105
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-await-in-promise-methods.md
|
|
5153
5106
|
*/
|
|
5154
5107
|
'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>
|
|
5155
5108
|
/**
|
|
5156
5109
|
* Do not use leading/trailing space between `console.log` parameters.
|
|
5157
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5110
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-console-spaces.md
|
|
5158
5111
|
*/
|
|
5159
5112
|
'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>
|
|
5160
5113
|
/**
|
|
5161
5114
|
* Do not use `document.cookie` directly.
|
|
5162
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5115
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-document-cookie.md
|
|
5163
5116
|
*/
|
|
5164
5117
|
'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>
|
|
5165
5118
|
/**
|
|
5166
5119
|
* Disallow empty files.
|
|
5167
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5120
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-empty-file.md
|
|
5168
5121
|
*/
|
|
5169
5122
|
'unicorn/no-empty-file'?: Linter.RuleEntry<[]>
|
|
5170
5123
|
/**
|
|
5171
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5124
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#no-fn-reference-in-iterator
|
|
5172
5125
|
* @deprecated
|
|
5173
5126
|
*/
|
|
5174
5127
|
'unicorn/no-fn-reference-in-iterator'?: Linter.RuleEntry<[]>
|
|
5175
5128
|
/**
|
|
5176
5129
|
* Do not use a `for` loop that can be replaced with a `for-of` loop.
|
|
5177
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5130
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-for-loop.md
|
|
5178
5131
|
*/
|
|
5179
5132
|
'unicorn/no-for-loop'?: Linter.RuleEntry<[]>
|
|
5180
5133
|
/**
|
|
5181
5134
|
* Enforce the use of Unicode escapes instead of hexadecimal escapes.
|
|
5182
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5135
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-hex-escape.md
|
|
5183
5136
|
*/
|
|
5184
5137
|
'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>
|
|
5185
5138
|
/**
|
|
5186
5139
|
* Require `Array.isArray()` instead of `instanceof Array`.
|
|
5187
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5140
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-instanceof-array.md
|
|
5188
5141
|
*/
|
|
5189
5142
|
'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>
|
|
5190
5143
|
/**
|
|
5191
5144
|
* Disallow invalid options in `fetch()` and `new Request()`.
|
|
5192
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5145
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-invalid-fetch-options.md
|
|
5193
5146
|
*/
|
|
5194
5147
|
'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>
|
|
5195
5148
|
/**
|
|
5196
5149
|
* Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
|
|
5197
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5150
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-invalid-remove-event-listener.md
|
|
5198
5151
|
*/
|
|
5199
5152
|
'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>
|
|
5200
5153
|
/**
|
|
5201
5154
|
* Disallow identifiers starting with `new` or `class`.
|
|
5202
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5155
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-keyword-prefix.md
|
|
5203
5156
|
*/
|
|
5204
5157
|
'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>
|
|
5158
|
+
/**
|
|
5159
|
+
* Disallow using `.length` as the `end` argument of `{Array,String,TypedArray}#slice()`.
|
|
5160
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-length-as-slice-end.md
|
|
5161
|
+
*/
|
|
5162
|
+
'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>
|
|
5205
5163
|
/**
|
|
5206
5164
|
* Disallow `if` statements as the only statement in `if` blocks without `else`.
|
|
5207
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5165
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-lonely-if.md
|
|
5208
5166
|
*/
|
|
5209
5167
|
'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>
|
|
5210
5168
|
/**
|
|
5211
5169
|
* Disallow a magic number as the `depth` argument in `Array#flat(…).`
|
|
5212
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5170
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-magic-array-flat-depth.md
|
|
5213
5171
|
*/
|
|
5214
5172
|
'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>
|
|
5215
5173
|
/**
|
|
5216
5174
|
* Disallow negated conditions.
|
|
5217
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5175
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-negated-condition.md
|
|
5218
5176
|
*/
|
|
5219
5177
|
'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>
|
|
5178
|
+
/**
|
|
5179
|
+
* Disallow negated expression in equality check.
|
|
5180
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-negation-in-equality-check.md
|
|
5181
|
+
*/
|
|
5182
|
+
'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>
|
|
5220
5183
|
/**
|
|
5221
5184
|
* Disallow nested ternary expressions.
|
|
5222
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5185
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-nested-ternary.md
|
|
5223
5186
|
*/
|
|
5224
5187
|
'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>
|
|
5225
5188
|
/**
|
|
5226
5189
|
* Disallow `new Array()`.
|
|
5227
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5190
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-new-array.md
|
|
5228
5191
|
*/
|
|
5229
5192
|
'unicorn/no-new-array'?: Linter.RuleEntry<[]>
|
|
5230
5193
|
/**
|
|
5231
5194
|
* Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
|
|
5232
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5195
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-new-buffer.md
|
|
5233
5196
|
*/
|
|
5234
5197
|
'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>
|
|
5235
5198
|
/**
|
|
5236
5199
|
* Disallow the use of the `null` literal.
|
|
5237
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5200
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-null.md
|
|
5238
5201
|
*/
|
|
5239
5202
|
'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>
|
|
5240
5203
|
/**
|
|
5241
5204
|
* Disallow the use of objects as default parameters.
|
|
5242
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5205
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-object-as-default-parameter.md
|
|
5243
5206
|
*/
|
|
5244
5207
|
'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>
|
|
5245
5208
|
/**
|
|
5246
5209
|
* Disallow `process.exit()`.
|
|
5247
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5210
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-process-exit.md
|
|
5248
5211
|
*/
|
|
5249
5212
|
'unicorn/no-process-exit'?: Linter.RuleEntry<[]>
|
|
5250
5213
|
/**
|
|
5251
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5214
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#no-reduce
|
|
5252
5215
|
* @deprecated
|
|
5253
5216
|
*/
|
|
5254
5217
|
'unicorn/no-reduce'?: Linter.RuleEntry<[]>
|
|
5255
5218
|
/**
|
|
5256
5219
|
* Disallow passing single-element arrays to `Promise` methods.
|
|
5257
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5220
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-single-promise-in-promise-methods.md
|
|
5258
5221
|
*/
|
|
5259
5222
|
'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>
|
|
5260
5223
|
/**
|
|
5261
5224
|
* Disallow classes that only have static members.
|
|
5262
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5225
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-static-only-class.md
|
|
5263
5226
|
*/
|
|
5264
5227
|
'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>
|
|
5265
5228
|
/**
|
|
5266
5229
|
* Disallow `then` property.
|
|
5267
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5230
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-thenable.md
|
|
5268
5231
|
*/
|
|
5269
5232
|
'unicorn/no-thenable'?: Linter.RuleEntry<[]>
|
|
5270
5233
|
/**
|
|
5271
5234
|
* Disallow assigning `this` to a variable.
|
|
5272
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5235
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-this-assignment.md
|
|
5273
5236
|
*/
|
|
5274
5237
|
'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>
|
|
5275
5238
|
/**
|
|
5276
5239
|
* Disallow comparing `undefined` using `typeof`.
|
|
5277
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5240
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-typeof-undefined.md
|
|
5278
5241
|
*/
|
|
5279
5242
|
'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>
|
|
5280
5243
|
/**
|
|
5281
5244
|
* Disallow awaiting non-promise values.
|
|
5282
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5245
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-unnecessary-await.md
|
|
5283
5246
|
*/
|
|
5284
5247
|
'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>
|
|
5285
5248
|
/**
|
|
5286
5249
|
* Enforce the use of built-in methods instead of unnecessary polyfills.
|
|
5287
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5250
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-unnecessary-polyfills.md
|
|
5288
5251
|
*/
|
|
5289
5252
|
'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>
|
|
5290
5253
|
/**
|
|
5291
5254
|
* Disallow unreadable array destructuring.
|
|
5292
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5255
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-unreadable-array-destructuring.md
|
|
5293
5256
|
*/
|
|
5294
5257
|
'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>
|
|
5295
5258
|
/**
|
|
5296
5259
|
* Disallow unreadable IIFEs.
|
|
5297
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5260
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-unreadable-iife.md
|
|
5298
5261
|
*/
|
|
5299
5262
|
'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>
|
|
5300
5263
|
/**
|
|
5301
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5264
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#no-unsafe-regex
|
|
5302
5265
|
* @deprecated
|
|
5303
5266
|
*/
|
|
5304
5267
|
'unicorn/no-unsafe-regex'?: Linter.RuleEntry<[]>
|
|
5305
5268
|
/**
|
|
5306
5269
|
* Disallow unused object properties.
|
|
5307
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5270
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-unused-properties.md
|
|
5308
5271
|
*/
|
|
5309
5272
|
'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>
|
|
5310
5273
|
/**
|
|
5311
5274
|
* Disallow useless fallback when spreading in object literals.
|
|
5312
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5275
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-useless-fallback-in-spread.md
|
|
5313
5276
|
*/
|
|
5314
5277
|
'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>
|
|
5315
5278
|
/**
|
|
5316
5279
|
* Disallow useless array length check.
|
|
5317
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5280
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-useless-length-check.md
|
|
5318
5281
|
*/
|
|
5319
5282
|
'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>
|
|
5320
5283
|
/**
|
|
5321
5284
|
* Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
|
|
5322
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5285
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-useless-promise-resolve-reject.md
|
|
5323
5286
|
*/
|
|
5324
5287
|
'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>
|
|
5325
5288
|
/**
|
|
5326
5289
|
* Disallow unnecessary spread.
|
|
5327
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5290
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-useless-spread.md
|
|
5328
5291
|
*/
|
|
5329
5292
|
'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>
|
|
5330
5293
|
/**
|
|
5331
5294
|
* Disallow useless case in switch statements.
|
|
5332
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5295
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-useless-switch-case.md
|
|
5333
5296
|
*/
|
|
5334
5297
|
'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>
|
|
5335
5298
|
/**
|
|
5336
5299
|
* Disallow useless `undefined`.
|
|
5337
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5300
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-useless-undefined.md
|
|
5338
5301
|
*/
|
|
5339
5302
|
'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>
|
|
5340
5303
|
/**
|
|
5341
5304
|
* Disallow number literals with zero fractions or dangling dots.
|
|
5342
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5305
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-zero-fractions.md
|
|
5343
5306
|
*/
|
|
5344
5307
|
'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>
|
|
5345
5308
|
/**
|
|
5346
5309
|
* Enforce proper case for numeric literals.
|
|
5347
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5310
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/number-literal-case.md
|
|
5348
5311
|
*/
|
|
5349
5312
|
'unicorn/number-literal-case'?: Linter.RuleEntry<[]>
|
|
5350
5313
|
/**
|
|
5351
5314
|
* Enforce the style of numeric separators by correctly grouping digits.
|
|
5352
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5315
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/numeric-separators-style.md
|
|
5353
5316
|
*/
|
|
5354
5317
|
'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>
|
|
5355
5318
|
/**
|
|
5356
5319
|
* Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
|
|
5357
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5320
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-add-event-listener.md
|
|
5358
5321
|
*/
|
|
5359
5322
|
'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>
|
|
5360
5323
|
/**
|
|
5361
5324
|
* Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
|
|
5362
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5325
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-array-find.md
|
|
5363
5326
|
*/
|
|
5364
5327
|
'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>
|
|
5365
5328
|
/**
|
|
5366
5329
|
* Prefer `Array#flat()` over legacy techniques to flatten arrays.
|
|
5367
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5330
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-array-flat.md
|
|
5368
5331
|
*/
|
|
5369
5332
|
'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>
|
|
5370
5333
|
/**
|
|
5371
5334
|
* Prefer `.flatMap(…)` over `.map(…).flat()`.
|
|
5372
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5335
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-array-flat-map.md
|
|
5373
5336
|
*/
|
|
5374
5337
|
'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>
|
|
5375
5338
|
/**
|
|
5376
5339
|
* Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
|
|
5377
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5340
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-array-index-of.md
|
|
5378
5341
|
*/
|
|
5379
5342
|
'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>
|
|
5380
5343
|
/**
|
|
5381
|
-
* Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast}(…)`.
|
|
5382
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5344
|
+
* Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
|
|
5345
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-array-some.md
|
|
5383
5346
|
*/
|
|
5384
5347
|
'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>
|
|
5385
5348
|
/**
|
|
5386
5349
|
* Prefer `.at()` method for index access and `String#charAt()`.
|
|
5387
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5350
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-at.md
|
|
5388
5351
|
*/
|
|
5389
5352
|
'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>
|
|
5390
5353
|
/**
|
|
5391
5354
|
* Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
|
|
5392
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5355
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-blob-reading-methods.md
|
|
5393
5356
|
*/
|
|
5394
5357
|
'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>
|
|
5395
5358
|
/**
|
|
5396
5359
|
* Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
|
|
5397
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5360
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-code-point.md
|
|
5398
5361
|
*/
|
|
5399
5362
|
'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>
|
|
5400
5363
|
/**
|
|
5401
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5364
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#prefer-dataset
|
|
5402
5365
|
* @deprecated
|
|
5403
5366
|
*/
|
|
5404
5367
|
'unicorn/prefer-dataset'?: Linter.RuleEntry<[]>
|
|
5405
5368
|
/**
|
|
5406
5369
|
* Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
|
|
5407
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5370
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-date-now.md
|
|
5408
5371
|
*/
|
|
5409
5372
|
'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>
|
|
5410
5373
|
/**
|
|
5411
5374
|
* Prefer default parameters over reassignment.
|
|
5412
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5375
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-default-parameters.md
|
|
5413
5376
|
*/
|
|
5414
5377
|
'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>
|
|
5415
5378
|
/**
|
|
5416
5379
|
* Prefer `Node#append()` over `Node#appendChild()`.
|
|
5417
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5380
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-dom-node-append.md
|
|
5418
5381
|
*/
|
|
5419
5382
|
'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>
|
|
5420
5383
|
/**
|
|
5421
5384
|
* Prefer using `.dataset` on DOM elements over calling attribute methods.
|
|
5422
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5385
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-dom-node-dataset.md
|
|
5423
5386
|
*/
|
|
5424
5387
|
'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>
|
|
5425
5388
|
/**
|
|
5426
5389
|
* Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
|
|
5427
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5390
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-dom-node-remove.md
|
|
5428
5391
|
*/
|
|
5429
5392
|
'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>
|
|
5430
5393
|
/**
|
|
5431
5394
|
* Prefer `.textContent` over `.innerText`.
|
|
5432
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5395
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-dom-node-text-content.md
|
|
5433
5396
|
*/
|
|
5434
5397
|
'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>
|
|
5435
5398
|
/**
|
|
5436
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5399
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#prefer-event-key
|
|
5437
5400
|
* @deprecated
|
|
5438
5401
|
*/
|
|
5439
5402
|
'unicorn/prefer-event-key'?: Linter.RuleEntry<[]>
|
|
5440
5403
|
/**
|
|
5441
5404
|
* Prefer `EventTarget` over `EventEmitter`.
|
|
5442
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5405
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-event-target.md
|
|
5443
5406
|
*/
|
|
5444
5407
|
'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>
|
|
5445
5408
|
/**
|
|
5446
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5409
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#prefer-exponentiation-operator
|
|
5447
5410
|
* @deprecated
|
|
5448
5411
|
*/
|
|
5449
5412
|
'unicorn/prefer-exponentiation-operator'?: Linter.RuleEntry<[]>
|
|
5450
5413
|
/**
|
|
5451
5414
|
* Prefer `export…from` when re-exporting.
|
|
5452
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5415
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-export-from.md
|
|
5453
5416
|
*/
|
|
5454
5417
|
'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>
|
|
5455
5418
|
/**
|
|
5456
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5419
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#prefer-flat-map
|
|
5457
5420
|
* @deprecated
|
|
5458
5421
|
*/
|
|
5459
5422
|
'unicorn/prefer-flat-map'?: Linter.RuleEntry<[]>
|
|
5460
5423
|
/**
|
|
5461
|
-
* Prefer `.includes()` over `.indexOf()
|
|
5462
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5424
|
+
* Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
|
|
5425
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-includes.md
|
|
5463
5426
|
*/
|
|
5464
5427
|
'unicorn/prefer-includes'?: Linter.RuleEntry<[]>
|
|
5465
5428
|
/**
|
|
5466
5429
|
* Prefer reading a JSON file as a buffer.
|
|
5467
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5430
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-json-parse-buffer.md
|
|
5468
5431
|
*/
|
|
5469
5432
|
'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>
|
|
5470
5433
|
/**
|
|
5471
5434
|
* Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
|
|
5472
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5435
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-keyboard-event-key.md
|
|
5473
5436
|
*/
|
|
5474
5437
|
'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>
|
|
5475
5438
|
/**
|
|
5476
5439
|
* Prefer using a logical operator over a ternary.
|
|
5477
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5440
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-logical-operator-over-ternary.md
|
|
5478
5441
|
*/
|
|
5479
5442
|
'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>
|
|
5480
5443
|
/**
|
|
5481
5444
|
* Enforce the use of `Math.trunc` instead of bitwise operators.
|
|
5482
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5445
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-math-trunc.md
|
|
5483
5446
|
*/
|
|
5484
5447
|
'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>
|
|
5485
5448
|
/**
|
|
5486
5449
|
* Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
|
|
5487
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5450
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-modern-dom-apis.md
|
|
5488
5451
|
*/
|
|
5489
5452
|
'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>
|
|
5490
5453
|
/**
|
|
5491
5454
|
* Prefer modern `Math` APIs over legacy patterns.
|
|
5492
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5455
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-modern-math-apis.md
|
|
5493
5456
|
*/
|
|
5494
5457
|
'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>
|
|
5495
5458
|
/**
|
|
5496
5459
|
* Prefer JavaScript modules (ESM) over CommonJS.
|
|
5497
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5460
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-module.md
|
|
5498
5461
|
*/
|
|
5499
5462
|
'unicorn/prefer-module'?: Linter.RuleEntry<[]>
|
|
5500
5463
|
/**
|
|
5501
5464
|
* Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
|
|
5502
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5465
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-native-coercion-functions.md
|
|
5503
5466
|
*/
|
|
5504
5467
|
'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>
|
|
5505
5468
|
/**
|
|
5506
5469
|
* Prefer negative index over `.length - index` when possible.
|
|
5507
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5470
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-negative-index.md
|
|
5508
5471
|
*/
|
|
5509
5472
|
'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>
|
|
5510
5473
|
/**
|
|
5511
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5474
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#prefer-node-append
|
|
5512
5475
|
* @deprecated
|
|
5513
5476
|
*/
|
|
5514
5477
|
'unicorn/prefer-node-append'?: Linter.RuleEntry<[]>
|
|
5515
5478
|
/**
|
|
5516
5479
|
* Prefer using the `node:` protocol when importing Node.js builtin modules.
|
|
5517
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5480
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-node-protocol.md
|
|
5518
5481
|
*/
|
|
5519
5482
|
'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>
|
|
5520
5483
|
/**
|
|
5521
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5484
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#prefer-node-remove
|
|
5522
5485
|
* @deprecated
|
|
5523
5486
|
*/
|
|
5524
5487
|
'unicorn/prefer-node-remove'?: Linter.RuleEntry<[]>
|
|
5525
5488
|
/**
|
|
5526
5489
|
* Prefer `Number` static properties over global ones.
|
|
5527
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5490
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-number-properties.md
|
|
5528
5491
|
*/
|
|
5529
5492
|
'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>
|
|
5530
5493
|
/**
|
|
5531
5494
|
* Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
|
|
5532
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5495
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-object-from-entries.md
|
|
5533
5496
|
*/
|
|
5534
5497
|
'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>
|
|
5535
5498
|
/**
|
|
5536
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5499
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#prefer-object-has-own
|
|
5537
5500
|
* @deprecated
|
|
5538
5501
|
*/
|
|
5539
5502
|
'unicorn/prefer-object-has-own'?: Linter.RuleEntry<[]>
|
|
5540
5503
|
/**
|
|
5541
5504
|
* Prefer omitting the `catch` binding parameter.
|
|
5542
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5505
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-optional-catch-binding.md
|
|
5543
5506
|
*/
|
|
5544
5507
|
'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>
|
|
5545
5508
|
/**
|
|
5546
5509
|
* Prefer borrowing methods from the prototype instead of the instance.
|
|
5547
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5510
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-prototype-methods.md
|
|
5548
5511
|
*/
|
|
5549
5512
|
'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>
|
|
5550
5513
|
/**
|
|
5551
5514
|
* Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()`.
|
|
5552
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5515
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-query-selector.md
|
|
5553
5516
|
*/
|
|
5554
5517
|
'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>
|
|
5555
5518
|
/**
|
|
5556
5519
|
* Prefer `Reflect.apply()` over `Function#apply()`.
|
|
5557
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5520
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-reflect-apply.md
|
|
5558
5521
|
*/
|
|
5559
5522
|
'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>
|
|
5560
5523
|
/**
|
|
5561
5524
|
* Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
|
|
5562
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5525
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-regexp-test.md
|
|
5563
5526
|
*/
|
|
5564
5527
|
'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>
|
|
5565
5528
|
/**
|
|
5566
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5529
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#prefer-replace-all
|
|
5567
5530
|
* @deprecated
|
|
5568
5531
|
*/
|
|
5569
5532
|
'unicorn/prefer-replace-all'?: Linter.RuleEntry<[]>
|
|
5570
5533
|
/**
|
|
5571
5534
|
* Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
|
|
5572
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5535
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-set-has.md
|
|
5573
5536
|
*/
|
|
5574
5537
|
'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>
|
|
5575
5538
|
/**
|
|
5576
5539
|
* Prefer using `Set#size` instead of `Array#length`.
|
|
5577
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5540
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-set-size.md
|
|
5578
5541
|
*/
|
|
5579
5542
|
'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>
|
|
5580
5543
|
/**
|
|
5581
5544
|
* Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
|
|
5582
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5545
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-spread.md
|
|
5583
5546
|
*/
|
|
5584
5547
|
'unicorn/prefer-spread'?: Linter.RuleEntry<[]>
|
|
5585
5548
|
/**
|
|
5586
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5549
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#prefer-starts-ends-with
|
|
5587
5550
|
* @deprecated
|
|
5588
5551
|
*/
|
|
5589
5552
|
'unicorn/prefer-starts-ends-with'?: Linter.RuleEntry<[]>
|
|
5590
5553
|
/**
|
|
5591
5554
|
* Prefer using the `String.raw` tag to avoid escaping `\`.
|
|
5592
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5555
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-string-raw.md
|
|
5593
5556
|
*/
|
|
5594
5557
|
'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>
|
|
5595
5558
|
/**
|
|
5596
5559
|
* Prefer `String#replaceAll()` over regex searches with the global flag.
|
|
5597
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5560
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-string-replace-all.md
|
|
5598
5561
|
*/
|
|
5599
5562
|
'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>
|
|
5600
5563
|
/**
|
|
5601
5564
|
* Prefer `String#slice()` over `String#substr()` and `String#substring()`.
|
|
5602
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5565
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-string-slice.md
|
|
5603
5566
|
*/
|
|
5604
5567
|
'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>
|
|
5605
5568
|
/**
|
|
5606
5569
|
* Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
|
|
5607
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5570
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-string-starts-ends-with.md
|
|
5608
5571
|
*/
|
|
5609
5572
|
'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>
|
|
5610
5573
|
/**
|
|
5611
5574
|
* Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
|
|
5612
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5575
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-string-trim-start-end.md
|
|
5613
5576
|
*/
|
|
5614
5577
|
'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>
|
|
5615
5578
|
/**
|
|
5616
5579
|
* Prefer using `structuredClone` to create a deep clone.
|
|
5617
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5580
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-structured-clone.md
|
|
5618
5581
|
*/
|
|
5619
5582
|
'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>
|
|
5620
5583
|
/**
|
|
5621
5584
|
* Prefer `switch` over multiple `else-if`.
|
|
5622
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5585
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-switch.md
|
|
5623
5586
|
*/
|
|
5624
5587
|
'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>
|
|
5625
5588
|
/**
|
|
5626
5589
|
* Prefer ternary expressions over simple `if-else` statements.
|
|
5627
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5590
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-ternary.md
|
|
5628
5591
|
*/
|
|
5629
5592
|
'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>
|
|
5630
5593
|
/**
|
|
5631
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5594
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#prefer-text-content
|
|
5632
5595
|
* @deprecated
|
|
5633
5596
|
*/
|
|
5634
5597
|
'unicorn/prefer-text-content'?: Linter.RuleEntry<[]>
|
|
5635
5598
|
/**
|
|
5636
5599
|
* Prefer top-level await over top-level promises and async function calls.
|
|
5637
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5600
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-top-level-await.md
|
|
5638
5601
|
*/
|
|
5639
5602
|
'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>
|
|
5640
5603
|
/**
|
|
5641
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5604
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#prefer-trim-start-end
|
|
5642
5605
|
* @deprecated
|
|
5643
5606
|
*/
|
|
5644
5607
|
'unicorn/prefer-trim-start-end'?: Linter.RuleEntry<[]>
|
|
5645
5608
|
/**
|
|
5646
5609
|
* Enforce throwing `TypeError` in type checking conditions.
|
|
5647
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5610
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-type-error.md
|
|
5648
5611
|
*/
|
|
5649
5612
|
'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>
|
|
5650
5613
|
/**
|
|
5651
5614
|
* Prevent abbreviations.
|
|
5652
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5615
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prevent-abbreviations.md
|
|
5653
5616
|
*/
|
|
5654
5617
|
'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>
|
|
5655
5618
|
/**
|
|
5656
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5619
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#regex-shorthand
|
|
5657
5620
|
* @deprecated
|
|
5658
5621
|
*/
|
|
5659
5622
|
'unicorn/regex-shorthand'?: Linter.RuleEntry<[]>
|
|
5660
5623
|
/**
|
|
5661
5624
|
* Enforce consistent relative URL style.
|
|
5662
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5625
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/relative-url-style.md
|
|
5663
5626
|
*/
|
|
5664
5627
|
'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>
|
|
5665
5628
|
/**
|
|
5666
5629
|
* Enforce using the separator argument with `Array#join()`.
|
|
5667
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5630
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/require-array-join-separator.md
|
|
5668
5631
|
*/
|
|
5669
5632
|
'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>
|
|
5670
5633
|
/**
|
|
5671
5634
|
* Enforce using the digits argument with `Number#toFixed()`.
|
|
5672
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5635
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/require-number-to-fixed-digits-argument.md
|
|
5673
5636
|
*/
|
|
5674
5637
|
'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>
|
|
5675
5638
|
/**
|
|
5676
5639
|
* Enforce using the `targetOrigin` argument with `window.postMessage()`.
|
|
5677
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5640
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/require-post-message-target-origin.md
|
|
5678
5641
|
*/
|
|
5679
5642
|
'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>
|
|
5680
5643
|
/**
|
|
5681
5644
|
* Enforce better string content.
|
|
5682
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5645
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/string-content.md
|
|
5683
5646
|
*/
|
|
5684
5647
|
'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>
|
|
5685
5648
|
/**
|
|
5686
5649
|
* Enforce consistent brace style for `case` clauses.
|
|
5687
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5650
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/switch-case-braces.md
|
|
5688
5651
|
*/
|
|
5689
5652
|
'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>
|
|
5690
5653
|
/**
|
|
5691
5654
|
* Fix whitespace-insensitive template indentation.
|
|
5692
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5655
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/template-indent.md
|
|
5693
5656
|
*/
|
|
5694
5657
|
'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>
|
|
5695
5658
|
/**
|
|
5696
5659
|
* Enforce consistent case for text encoding identifiers.
|
|
5697
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5660
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/text-encoding-identifier-case.md
|
|
5698
5661
|
*/
|
|
5699
5662
|
'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<[]>
|
|
5700
5663
|
/**
|
|
5701
5664
|
* Require `new` when creating an error.
|
|
5702
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5665
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/throw-new-error.md
|
|
5703
5666
|
*/
|
|
5704
5667
|
'unicorn/throw-new-error'?: Linter.RuleEntry<[]>
|
|
5705
5668
|
/**
|
|
@@ -7759,6 +7722,25 @@ type JsdocCheckValues = []|[{
|
|
|
7759
7722
|
licensePattern?: string
|
|
7760
7723
|
numericOnlyVariation?: boolean
|
|
7761
7724
|
}]
|
|
7725
|
+
// ----- jsdoc/convert-to-jsdoc-comments -----
|
|
7726
|
+
type JsdocConvertToJsdocComments = []|[{
|
|
7727
|
+
allowedPrefixes?: string[]
|
|
7728
|
+
contexts?: (string | {
|
|
7729
|
+
context?: string
|
|
7730
|
+
inlineCommentBlock?: boolean
|
|
7731
|
+
})[]
|
|
7732
|
+
contextsAfter?: (string | {
|
|
7733
|
+
context?: string
|
|
7734
|
+
inlineCommentBlock?: boolean
|
|
7735
|
+
})[]
|
|
7736
|
+
contextsBeforeAndAfter?: (string | {
|
|
7737
|
+
context?: string
|
|
7738
|
+
inlineCommentBlock?: boolean
|
|
7739
|
+
})[]
|
|
7740
|
+
enableFixer?: boolean
|
|
7741
|
+
enforceJsdocLineStyle?: ("multi" | "single")
|
|
7742
|
+
lineOrBlockStyle?: ("block" | "line" | "both")
|
|
7743
|
+
}]
|
|
7762
7744
|
// ----- jsdoc/empty-tags -----
|
|
7763
7745
|
type JsdocEmptyTags = []|[{
|
|
7764
7746
|
tags?: string[]
|
|
@@ -8046,6 +8028,10 @@ type JsdocRequireReturnsType = []|[{
|
|
|
8046
8028
|
context?: string
|
|
8047
8029
|
})[]
|
|
8048
8030
|
}]
|
|
8031
|
+
// ----- jsdoc/require-template -----
|
|
8032
|
+
type JsdocRequireTemplate = []|[{
|
|
8033
|
+
requireSeparateTemplates?: boolean
|
|
8034
|
+
}]
|
|
8049
8035
|
// ----- jsdoc/require-throws -----
|
|
8050
8036
|
type JsdocRequireThrows = []|[{
|
|
8051
8037
|
contexts?: (string | {
|
|
@@ -9117,18 +9103,11 @@ type NoRestrictedImports = ((string | {
|
|
|
9117
9103
|
importNames?: string[]
|
|
9118
9104
|
allowImportNames?: string[]
|
|
9119
9105
|
})[]
|
|
9120
|
-
patterns?: (string[] | {
|
|
9121
|
-
|
|
9122
|
-
|
|
9123
|
-
|
|
9124
|
-
|
|
9125
|
-
|
|
9126
|
-
group: [string, ...(string)[]]
|
|
9127
|
-
importNamePattern?: string
|
|
9128
|
-
allowImportNamePattern?: string
|
|
9129
|
-
message?: string
|
|
9130
|
-
caseSensitive?: boolean
|
|
9131
|
-
}[])
|
|
9106
|
+
patterns?: (string[] | ({
|
|
9107
|
+
[k: string]: unknown | undefined
|
|
9108
|
+
} | {
|
|
9109
|
+
[k: string]: unknown | undefined
|
|
9110
|
+
})[])
|
|
9132
9111
|
}])
|
|
9133
9112
|
// ----- no-restricted-modules -----
|
|
9134
9113
|
type NoRestrictedModules = ((string | {
|
|
@@ -9434,6 +9413,7 @@ type NodeNoUnpublishedImport = []|[{
|
|
|
9434
9413
|
})[]])
|
|
9435
9414
|
resolvePaths?: string[]
|
|
9436
9415
|
ignoreTypeImport?: boolean
|
|
9416
|
+
ignorePrivate?: boolean
|
|
9437
9417
|
}]
|
|
9438
9418
|
// ----- node/no-unpublished-require -----
|
|
9439
9419
|
type NodeNoUnpublishedRequire = []|[{
|
|
@@ -9456,6 +9436,7 @@ type NodeNoUnpublishedRequire = []|[{
|
|
|
9456
9436
|
})[]])
|
|
9457
9437
|
resolvePaths?: string[]
|
|
9458
9438
|
tryExtensions?: string[]
|
|
9439
|
+
ignorePrivate?: boolean
|
|
9459
9440
|
}]
|
|
9460
9441
|
// ----- node/no-unsupported-features/es-builtins -----
|
|
9461
9442
|
type NodeNoUnsupportedFeaturesEsBuiltins = []|[{
|
|
@@ -9471,7 +9452,7 @@ type NodeNoUnsupportedFeaturesEsSyntax = []|[{
|
|
|
9471
9452
|
type NodeNoUnsupportedFeaturesNodeBuiltins = []|[{
|
|
9472
9453
|
version?: string
|
|
9473
9454
|
allowExperimental?: boolean
|
|
9474
|
-
ignores?: ("__filename" | "__dirname" | "require" | "require.cache" | "require.extensions" | "require.main" | "require.resolve" | "require.resolve.paths" | "module" | "module.children" | "module.exports" | "module.filename" | "module.id" | "module.isPreloading" | "module.loaded" | "module.parent" | "module.path" | "module.paths" | "module.require" | "exports" | "AbortController" | "AbortSignal" | "AbortSignal.abort" | "AbortSignal.timeout" | "AbortSignal.any" | "DOMException" | "FormData" | "Headers" | "MessageEvent" | "Navigator" | "Request" | "Response" | "WebAssembly" | "WebSocket" | "fetch" | "global" | "queueMicrotask" | "navigator" | "navigator.hardwareConcurrency" | "navigator.language" | "navigator.languages" | "navigator.platform" | "navigator.userAgent" | "structuredClone" | "Blob" | "new Buffer()" | "Buffer" | "Buffer.alloc" | "Buffer.allocUnsafe" | "Buffer.allocUnsafeSlow" | "Buffer.byteLength" | "Buffer.compare" | "Buffer.concat" | "Buffer.copyBytesFrom" | "Buffer.from" | "Buffer.isBuffer" | "Buffer.isEncoding" | "File" | "atob" | "btoa" | "console" | "console.profile" | "console.profileEnd" | "console.timeStamp" | "console.Console" | "console.assert" | "console.clear" | "console.count" | "console.countReset" | "console.debug" | "console.dir" | "console.dirxml" | "console.error" | "console.group" | "console.groupCollapsed" | "console.groupEnd" | "console.info" | "console.log" | "console.table" | "console.time" | "console.timeEnd" | "console.timeLog" | "console.trace" | "console.warn" | "crypto" | "crypto.subtle" | "crypto.subtle.decrypt" | "crypto.subtle.deriveBits" | "crypto.subtle.deriveKey" | "crypto.subtle.digest" | "crypto.subtle.encrypt" | "crypto.subtle.exportKey" | "crypto.subtle.generateKey" | "crypto.subtle.importKey" | "crypto.subtle.sign" | "crypto.subtle.unwrapKey" | "crypto.subtle.verify" | "crypto.subtle.wrapKey" | "crypto.getRandomValues" | "crypto.randomUUID" | "Crypto" | "CryptoKey" | "SubtleCrypto" | "CustomEvent" | "Event" | "EventTarget" | "PerformanceEntry" | "PerformanceMark" | "PerformanceMeasure" | "PerformanceObserver" | "PerformanceObserverEntryList" | "PerformanceResourceTiming" | "performance" | "process" | "process.allowedNodeEnvironmentFlags" | "process.availableMemory" | "process.arch" | "process.argv" | "process.argv0" | "process.channel" | "process.config" | "process.connected" | "process.debugPort" | "process.env" | "process.execArgv" | "process.execPath" | "process.exitCode" | "process.mainModule" | "process.noDeprecation" | "process.permission" | "process.pid" | "process.platform" | "process.ppid" | "process.release" | "process.report" | "process.sourceMapsEnabled" | "process.stdin" | "process.stdin.isRaw" | "process.stdin.isTTY" | "process.stdin.setRawMode" | "process.stdout" | "process.stdout.clearLine" | "process.stdout.clearScreenDown" | "process.stdout.columns" | "process.stdout.cursorTo" | "process.stdout.getColorDepth" | "process.stdout.getWindowSize" | "process.stdout.hasColors" | "process.stdout.isTTY" | "process.stdout.moveCursor" | "process.stdout.rows" | "process.stderr" | "process.stderr.clearLine" | "process.stderr.clearScreenDown" | "process.stderr.columns" | "process.stderr.cursorTo" | "process.stderr.getColorDepth" | "process.stderr.getWindowSize" | "process.stderr.hasColors" | "process.stderr.isTTY" | "process.stderr.moveCursor" | "process.stderr.rows" | "process.throwDeprecation" | "process.title" | "process.traceDeprecation" | "process.version" | "process.versions" | "process.abort" | "process.chdir" | "process.constrainedMemory" | "process.cpuUsage" | "process.cwd" | "process.disconnect" | "process.dlopen" | "process.emitWarning" | "process.exit" | "process.getActiveResourcesInfo" | "process.getegid" | "process.geteuid" | "process.getgid" | "process.getgroups" | "process.getuid" | "process.hasUncaughtExceptionCaptureCallback" | "process.hrtime" | "process.hrtime.bigint" | "process.initgroups" | "process.kill" | "process.loadEnvFile" | "process.memoryUsage" | "process.rss" | "process.nextTick" | "process.resourceUsage" | "process.send" | "process.setegid" | "process.seteuid" | "process.setgid" | "process.setgroups" | "process.setuid" | "process.setSourceMapsEnabled" | "process.setUncaughtExceptionCaptureCallback" | "process.umask" | "process.uptime" | "ReadableStream" | "ReadableStream.from" | "ReadableStreamDefaultReader" | "ReadableStreamBYOBReader" | "ReadableStreamDefaultController" | "ReadableByteStreamController" | "ReadableStreamBYOBRequest" | "WritableStream" | "WritableStreamDefaultWriter" | "WritableStreamDefaultController" | "TransformStream" | "TransformStreamDefaultController" | "ByteLengthQueuingStrategy" | "CountQueuingStrategy" | "TextEncoderStream" | "TextDecoderStream" | "CompressionStream" | "DecompressionStream" | "setInterval" | "clearInterval" | "setTimeout" | "clearTimeout" | "setImmediate" | "clearImmediate" | "URL" | "URL.canParse" | "URL.createObjectURL" | "URL.revokeObjectURL" | "URLSearchParams" | "TextDecoder" | "TextEncoder" | "BroadcastChannel" | "MessageChannel" | "MessagePort" | "assert" | "assert.assert" | "assert.deepEqual" | "assert.deepStrictEqual" | "assert.doesNotMatch" | "assert.doesNotReject" | "assert.doesNotThrow" | "assert.equal" | "assert.fail" | "assert.ifError" | "assert.match" | "assert.notDeepEqual" | "assert.notDeepStrictEqual" | "assert.notEqual" | "assert.notStrictEqual" | "assert.ok" | "assert.rejects" | "assert.strictEqual" | "assert.throws" | "assert.CallTracker" | "assert.strict" | "assert.strict.assert" | "assert.strict.deepEqual" | "assert.strict.deepStrictEqual" | "assert.strict.doesNotMatch" | "assert.strict.doesNotReject" | "assert.strict.doesNotThrow" | "assert.strict.equal" | "assert.strict.fail" | "assert.strict.ifError" | "assert.strict.match" | "assert.strict.notDeepEqual" | "assert.strict.notDeepStrictEqual" | "assert.strict.notEqual" | "assert.strict.notStrictEqual" | "assert.strict.ok" | "assert.strict.rejects" | "assert.strict.strictEqual" | "assert.strict.throws" | "assert.strict.CallTracker" | "assert/strict" | "assert/strict.assert" | "assert/strict.deepEqual" | "assert/strict.deepStrictEqual" | "assert/strict.doesNotMatch" | "assert/strict.doesNotReject" | "assert/strict.doesNotThrow" | "assert/strict.equal" | "assert/strict.fail" | "assert/strict.ifError" | "assert/strict.match" | "assert/strict.notDeepEqual" | "assert/strict.notDeepStrictEqual" | "assert/strict.notEqual" | "assert/strict.notStrictEqual" | "assert/strict.ok" | "assert/strict.rejects" | "assert/strict.strictEqual" | "assert/strict.throws" | "assert/strict.CallTracker" | "async_hooks" | "async_hooks.createHook" | "async_hooks.executionAsyncResource" | "async_hooks.executionAsyncId" | "async_hooks.triggerAsyncId" | "async_hooks.AsyncLocalStorage" | "async_hooks.AsyncLocalStorage.bind" | "async_hooks.AsyncLocalStorage.snapshot" | "async_hooks.AsyncResource" | "async_hooks.AsyncResource.bind" | "buffer" | "buffer.constants" | "buffer.INSPECT_MAX_BYTES" | "buffer.kMaxLength" | "buffer.kStringMaxLength" | "buffer.atob" | "buffer.btoa" | "buffer.isAscii" | "buffer.isUtf8" | "buffer.resolveObjectURL" | "buffer.transcode" | "buffer.SlowBuffer" | "buffer.Blob" | "new buffer.Buffer()" | "buffer.Buffer" | "buffer.Buffer.alloc" | "buffer.Buffer.allocUnsafe" | "buffer.Buffer.allocUnsafeSlow" | "buffer.Buffer.byteLength" | "buffer.Buffer.compare" | "buffer.Buffer.concat" | "buffer.Buffer.copyBytesFrom" | "buffer.Buffer.from" | "buffer.Buffer.isBuffer" | "buffer.Buffer.isEncoding" | "buffer.File" | "child_process" | "child_process.exec" | "child_process.execFile" | "child_process.fork" | "child_process.spawn" | "child_process.execFileSync" | "child_process.execSync" | "child_process.spawnSync" | "child_process.ChildProcess" | "cluster" | "cluster.isMaster" | "cluster.isPrimary" | "cluster.isWorker" | "cluster.schedulingPolicy" | "cluster.settings" | "cluster.worker" | "cluster.workers" | "cluster.disconnect" | "cluster.fork" | "cluster.setupMaster" | "cluster.setupPrimary" | "cluster.Worker" | "crypto.constants" | "crypto.fips" | "crypto.webcrypto" | "crypto.webcrypto.subtle" | "crypto.webcrypto.subtle.decrypt" | "crypto.webcrypto.subtle.deriveBits" | "crypto.webcrypto.subtle.deriveKey" | "crypto.webcrypto.subtle.digest" | "crypto.webcrypto.subtle.encrypt" | "crypto.webcrypto.subtle.exportKey" | "crypto.webcrypto.subtle.generateKey" | "crypto.webcrypto.subtle.importKey" | "crypto.webcrypto.subtle.sign" | "crypto.webcrypto.subtle.unwrapKey" | "crypto.webcrypto.subtle.verify" | "crypto.webcrypto.subtle.wrapKey" | "crypto.webcrypto.getRandomValues" | "crypto.webcrypto.randomUUID" | "crypto.checkPrime" | "crypto.checkPrimeSync" | "crypto.createCipher" | "crypto.createCipheriv" | "crypto.createDecipher" | "crypto.createDecipheriv" | "crypto.createDiffieHellman" | "crypto.createDiffieHellmanGroup" | "crypto.createECDH" | "crypto.createHash" | "crypto.createHmac" | "crypto.createPrivateKey" | "crypto.createPublicKey" | "crypto.createSecretKey" | "crypto.createSign" | "crypto.createVerify" | "crypto.diffieHellman" | "crypto.generateKey" | "crypto.generateKeyPair" | "crypto.generateKeyPairSync" | "crypto.generateKeySync" | "crypto.generatePrime" | "crypto.generatePrimeSync" | "crypto.getCipherInfo" | "crypto.getCiphers" | "crypto.getCurves" | "crypto.getDiffieHellman" | "crypto.getFips" | "crypto.getHashes" | "crypto.hash" | "crypto.hkdf" | "crypto.hkdfSync" | "crypto.pbkdf2" | "crypto.pbkdf2Sync" | "crypto.privateDecrypt" | "crypto.privateEncrypt" | "crypto.publicDecrypt" | "crypto.publicEncrypt" | "crypto.randomBytes" | "crypto.randomFillSync" | "crypto.randomFill" | "crypto.randomInt" | "crypto.scrypt" | "crypto.scryptSync" | "crypto.secureHeapUsed" | "crypto.setEngine" | "crypto.setFips" | "crypto.sign" | "crypto.timingSafeEqual" | "crypto.verify" | "crypto.Certificate" | "crypto.Certificate.exportChallenge" | "crypto.Certificate.exportPublicKey" | "crypto.Certificate.verifySpkac" | "crypto.Cipher" | "crypto.Decipher" | "crypto.DiffieHellman" | "crypto.DiffieHellmanGroup" | "crypto.ECDH" | "crypto.ECDH.convertKey" | "crypto.Hash()" | "new crypto.Hash()" | "crypto.Hash" | "crypto.Hmac()" | "new crypto.Hmac()" | "crypto.Hmac" | "crypto.KeyObject" | "crypto.KeyObject.from" | "crypto.Sign" | "crypto.Verify" | "crypto.X509Certificate" | "dgram" | "dgram.createSocket" | "dgram.Socket" | "diagnostics_channel" | "diagnostics_channel.hasSubscribers" | "diagnostics_channel.channel" | "diagnostics_channel.subscribe" | "diagnostics_channel.unsubscribe" | "diagnostics_channel.tracingChannel" | "diagnostics_channel.Channel" | "diagnostics_channel.TracingChannel" | "dns" | "dns.Resolver" | "dns.getServers" | "dns.lookup" | "dns.lookupService" | "dns.resolve" | "dns.resolve4" | "dns.resolve6" | "dns.resolveAny" | "dns.resolveCname" | "dns.resolveCaa" | "dns.resolveMx" | "dns.resolveNaptr" | "dns.resolveNs" | "dns.resolvePtr" | "dns.resolveSoa" | "dns.resolveSrv" | "dns.resolveTxt" | "dns.reverse" | "dns.setDefaultResultOrder" | "dns.getDefaultResultOrder" | "dns.setServers" | "dns.promises" | "dns.promises.Resolver" | "dns.promises.cancel" | "dns.promises.getServers" | "dns.promises.lookup" | "dns.promises.lookupService" | "dns.promises.resolve" | "dns.promises.resolve4" | "dns.promises.resolve6" | "dns.promises.resolveAny" | "dns.promises.resolveCaa" | "dns.promises.resolveCname" | "dns.promises.resolveMx" | "dns.promises.resolveNaptr" | "dns.promises.resolveNs" | "dns.promises.resolvePtr" | "dns.promises.resolveSoa" | "dns.promises.resolveSrv" | "dns.promises.resolveTxt" | "dns.promises.reverse" | "dns.promises.setDefaultResultOrder" | "dns.promises.getDefaultResultOrder" | "dns.promises.setServers" | "dns/promises" | "dns/promises.Resolver" | "dns/promises.cancel" | "dns/promises.getServers" | "dns/promises.lookup" | "dns/promises.lookupService" | "dns/promises.resolve" | "dns/promises.resolve4" | "dns/promises.resolve6" | "dns/promises.resolveAny" | "dns/promises.resolveCaa" | "dns/promises.resolveCname" | "dns/promises.resolveMx" | "dns/promises.resolveNaptr" | "dns/promises.resolveNs" | "dns/promises.resolvePtr" | "dns/promises.resolveSoa" | "dns/promises.resolveSrv" | "dns/promises.resolveTxt" | "dns/promises.reverse" | "dns/promises.setDefaultResultOrder" | "dns/promises.getDefaultResultOrder" | "dns/promises.setServers" | "domain" | "domain.create" | "domain.Domain" | "events" | "events.Event" | "events.EventTarget" | "events.CustomEvent" | "events.NodeEventTarget" | "events.EventEmitter" | "events.EventEmitter.defaultMaxListeners" | "events.EventEmitter.errorMonitor" | "events.EventEmitter.captureRejections" | "events.EventEmitter.captureRejectionSymbol" | "events.EventEmitter.getEventListeners" | "events.EventEmitter.getMaxListeners" | "events.EventEmitter.once" | "events.EventEmitter.listenerCount" | "events.EventEmitter.on" | "events.EventEmitter.setMaxListeners" | "events.EventEmitter.addAbortListener" | "events.EventEmitterAsyncResource" | "events.EventEmitterAsyncResource.defaultMaxListeners" | "events.EventEmitterAsyncResource.errorMonitor" | "events.EventEmitterAsyncResource.captureRejections" | "events.EventEmitterAsyncResource.captureRejectionSymbol" | "events.EventEmitterAsyncResource.getEventListeners" | "events.EventEmitterAsyncResource.getMaxListeners" | "events.EventEmitterAsyncResource.once" | "events.EventEmitterAsyncResource.listenerCount" | "events.EventEmitterAsyncResource.on" | "events.EventEmitterAsyncResource.setMaxListeners" | "events.EventEmitterAsyncResource.addAbortListener" | "events.defaultMaxListeners" | "events.errorMonitor" | "events.captureRejections" | "events.captureRejectionSymbol" | "events.getEventListeners" | "events.getMaxListeners" | "events.once" | "events.listenerCount" | "events.on" | "events.setMaxListeners" | "events.addAbortListener" | "fs" | "fs.promises" | "fs.promises.FileHandle" | "fs.promises.access" | "fs.promises.appendFile" | "fs.promises.chmod" | "fs.promises.chown" | "fs.promises.constants" | "fs.promises.copyFile" | "fs.promises.cp" | "fs.promises.glob" | "fs.promises.lchmod" | "fs.promises.lchown" | "fs.promises.link" | "fs.promises.lstat" | "fs.promises.lutimes" | "fs.promises.mkdir" | "fs.promises.mkdtemp" | "fs.promises.open" | "fs.promises.opendir" | "fs.promises.readFile" | "fs.promises.readdir" | "fs.promises.readlink" | "fs.promises.realpath" | "fs.promises.rename" | "fs.promises.rm" | "fs.promises.rmdir" | "fs.promises.stat" | "fs.promises.statfs" | "fs.promises.symlink" | "fs.promises.truncate" | "fs.promises.unlink" | "fs.promises.utimes" | "fs.promises.watch" | "fs.promises.writeFile" | "fs.access" | "fs.appendFile" | "fs.chmod" | "fs.chown" | "fs.close" | "fs.copyFile" | "fs.cp" | "fs.createReadStream" | "fs.createWriteStream" | "fs.exists" | "fs.fchmod" | "fs.fchown" | "fs.fdatasync" | "fs.fstat" | "fs.fsync" | "fs.ftruncate" | "fs.futimes" | "fs.glob" | "fs.lchmod" | "fs.lchown" | "fs.link" | "fs.lstat" | "fs.lutimes" | "fs.mkdir" | "fs.mkdtemp" | "fs.native" | "fs.open" | "fs.openAsBlob" | "fs.opendir" | "fs.read" | "fs.readdir" | "fs.readFile" | "fs.readlink" | "fs.readv" | "fs.realpath" | "fs.realpath.native" | "fs.rename" | "fs.rm" | "fs.rmdir" | "fs.stat" | "fs.statfs" | "fs.symlink" | "fs.truncate" | "fs.unlink" | "fs.unwatchFile" | "fs.utimes" | "fs.watch" | "fs.watchFile" | "fs.write" | "fs.writeFile" | "fs.writev" | "fs.accessSync" | "fs.appendFileSync" | "fs.chmodSync" | "fs.chownSync" | "fs.closeSync" | "fs.copyFileSync" | "fs.cpSync" | "fs.existsSync" | "fs.fchmodSync" | "fs.fchownSync" | "fs.fdatasyncSync" | "fs.fstatSync" | "fs.fsyncSync" | "fs.ftruncateSync" | "fs.futimesSync" | "fs.globSync" | "fs.lchmodSync" | "fs.lchownSync" | "fs.linkSync" | "fs.lstatSync" | "fs.lutimesSync" | "fs.mkdirSync" | "fs.mkdtempSync" | "fs.opendirSync" | "fs.openSync" | "fs.readdirSync" | "fs.readFileSync" | "fs.readlinkSync" | "fs.readSync" | "fs.readvSync" | "fs.realpathSync" | "fs.realpathSync.native" | "fs.renameSync" | "fs.rmdirSync" | "fs.rmSync" | "fs.statfsSync" | "fs.statSync" | "fs.symlinkSync" | "fs.truncateSync" | "fs.unlinkSync" | "fs.utimesSync" | "fs.writeFileSync" | "fs.writeSync" | "fs.writevSync" | "fs.constants" | "fs.Dir" | "fs.Dirent" | "fs.FSWatcher" | "fs.StatWatcher" | "fs.ReadStream" | "fs.Stats()" | "new fs.Stats()" | "fs.Stats" | "fs.StatFs" | "fs.WriteStream" | "fs.common_objects" | "fs/promises" | "fs/promises.FileHandle" | "fs/promises.access" | "fs/promises.appendFile" | "fs/promises.chmod" | "fs/promises.chown" | "fs/promises.constants" | "fs/promises.copyFile" | "fs/promises.cp" | "fs/promises.glob" | "fs/promises.lchmod" | "fs/promises.lchown" | "fs/promises.link" | "fs/promises.lstat" | "fs/promises.lutimes" | "fs/promises.mkdir" | "fs/promises.mkdtemp" | "fs/promises.open" | "fs/promises.opendir" | "fs/promises.readFile" | "fs/promises.readdir" | "fs/promises.readlink" | "fs/promises.realpath" | "fs/promises.rename" | "fs/promises.rm" | "fs/promises.rmdir" | "fs/promises.stat" | "fs/promises.statfs" | "fs/promises.symlink" | "fs/promises.truncate" | "fs/promises.unlink" | "fs/promises.utimes" | "fs/promises.watch" | "fs/promises.writeFile" | "http2" | "http2.constants" | "http2.sensitiveHeaders" | "http2.createServer" | "http2.createSecureServer" | "http2.connect" | "http2.getDefaultSettings" | "http2.getPackedSettings" | "http2.getUnpackedSettings" | "http2.performServerHandshake" | "http2.Http2Session" | "http2.ServerHttp2Session" | "http2.ClientHttp2Session" | "http2.Http2Stream" | "http2.ClientHttp2Stream" | "http2.ServerHttp2Stream" | "http2.Http2Server" | "http2.Http2SecureServer" | "http2.Http2ServerRequest" | "http2.Http2ServerResponse" | "http" | "http.globalAgent" | "http.createServer" | "http.get" | "http.request" | "http.Agent" | "http.Server" | "inspector" | "inspector.Session" | "inspector.console" | "inspector.close" | "inspector.open" | "inspector.url" | "inspector.waitForDebugger" | "inspector/promises" | "inspector/promises.Session" | "inspector/promises.console" | "inspector/promises.close" | "inspector/promises.open" | "inspector/promises.url" | "inspector/promises.waitForDebugger" | "module.builtinModules" | "module.createRequire" | "module.createRequireFromPath" | "module.isBuiltin" | "module.register" | "module.syncBuiltinESMExports" | "module.findSourceMap" | "module.SourceMap" | "module.Module.builtinModules" | "module.Module.createRequire" | "module.Module.createRequireFromPath" | "module.Module.isBuiltin" | "module.Module.register" | "module.Module.syncBuiltinESMExports" | "module.Module.findSourceMap" | "module.Module.SourceMap" | "net" | "net.connect" | "net.createConnection" | "net.createServer" | "net.getDefaultAutoSelectFamily" | "net.setDefaultAutoSelectFamily" | "net.getDefaultAutoSelectFamilyAttemptTimeout" | "net.setDefaultAutoSelectFamilyAttemptTimeout" | "net.isIP" | "net.isIPv4" | "net.isIPv6" | "net.BlockList" | "net.SocketAddress" | "net.Server" | "net.Socket" | "os" | "os.EOL" | "os.constants" | "os.constants.priority" | "os.devNull" | "os.availableParallelism" | "os.arch" | "os.cpus" | "os.endianness" | "os.freemem" | "os.getPriority" | "os.homedir" | "os.hostname" | "os.loadavg" | "os.machine" | "os.networkInterfaces" | "os.platform" | "os.release" | "os.setPriority" | "os.tmpdir" | "os.totalmem" | "os.type" | "os.uptime" | "os.userInfo" | "os.version" | "path" | "path.posix" | "path.posix.delimiter" | "path.posix.sep" | "path.posix.basename" | "path.posix.dirname" | "path.posix.extname" | "path.posix.format" | "path.posix.isAbsolute" | "path.posix.join" | "path.posix.normalize" | "path.posix.parse" | "path.posix.relative" | "path.posix.resolve" | "path.posix.toNamespacedPath" | "path.win32" | "path.win32.delimiter" | "path.win32.sep" | "path.win32.basename" | "path.win32.dirname" | "path.win32.extname" | "path.win32.format" | "path.win32.isAbsolute" | "path.win32.join" | "path.win32.normalize" | "path.win32.parse" | "path.win32.relative" | "path.win32.resolve" | "path.win32.toNamespacedPath" | "path.delimiter" | "path.sep" | "path.basename" | "path.dirname" | "path.extname" | "path.format" | "path.isAbsolute" | "path.join" | "path.normalize" | "path.parse" | "path.relative" | "path.resolve" | "path.toNamespacedPath" | "path/posix" | "path/posix.delimiter" | "path/posix.sep" | "path/posix.basename" | "path/posix.dirname" | "path/posix.extname" | "path/posix.format" | "path/posix.isAbsolute" | "path/posix.join" | "path/posix.normalize" | "path/posix.parse" | "path/posix.relative" | "path/posix.resolve" | "path/posix.toNamespacedPath" | "path/win32" | "path/win32.delimiter" | "path/win32.sep" | "path/win32.basename" | "path/win32.dirname" | "path/win32.extname" | "path/win32.format" | "path/win32.isAbsolute" | "path/win32.join" | "path/win32.normalize" | "path/win32.parse" | "path/win32.relative" | "path/win32.resolve" | "path/win32.toNamespacedPath" | "perf_hooks" | "perf_hooks.performance" | "perf_hooks.createHistogram" | "perf_hooks.monitorEventLoopDelay" | "perf_hooks.PerformanceEntry" | "perf_hooks.PerformanceMark" | "perf_hooks.PerformanceMeasure" | "perf_hooks.PerformanceNodeEntry" | "perf_hooks.PerformanceNodeTiming" | "perf_hooks.PerformanceResourceTiming" | "perf_hooks.PerformanceObserver" | "perf_hooks.PerformanceObserverEntryList" | "perf_hooks.Histogram" | "perf_hooks.IntervalHistogram" | "perf_hooks.RecordableHistogram" | "punycode" | "punycode.ucs2" | "punycode.version" | "punycode.decode" | "punycode.encode" | "punycode.toASCII" | "punycode.toUnicode" | "querystring" | "querystring.decode" | "querystring.encode" | "querystring.escape" | "querystring.parse" | "querystring.stringify" | "querystring.unescape" | "readline" | "readline.promises" | "readline.promises.createInterface" | "readline.promises.Interface" | "readline.promises.Readline" | "readline.clearLine" | "readline.clearScreenDown" | "readline.createInterface" | "readline.cursorTo" | "readline.moveCursor" | "readline.Interface" | "readline.emitKeypressEvents" | "readline.InterfaceConstructor" | "readline/promises" | "readline/promises.createInterface" | "readline/promises.Interface" | "readline/promises.Readline" | "sea" | "sea.isSea" | "sea.getAsset" | "sea.getAssetAsBlob" | "sea.getRawAsset" | "sea.test.isSea" | "sea.test.getAsset" | "sea.test.getAssetAsBlob" | "sea.test.getRawAsset" | "stream" | "stream.promises" | "stream.promises.pipeline" | "stream.promises.finished" | "stream.finished" | "stream.pipeline" | "stream.compose" | "stream.Readable" | "stream.Readable.from" | "stream.Readable.isDisturbed" | "stream.Readable.fromWeb" | "stream.Readable.toWeb" | "stream.Writable" | "stream.Writable.fromWeb" | "stream.Writable.toWeb" | "stream.Duplex" | "stream.Duplex.from" | "stream.Duplex.fromWeb" | "stream.Duplex.toWeb" | "stream.Transform" | "stream.isErrored" | "stream.isReadable" | "stream.addAbortSignal" | "stream.getDefaultHighWaterMark" | "stream.setDefaultHighWaterMark" | "stream/promises.pipeline" | "stream/promises.finished" | "stream/web" | "stream/web.ReadableStream" | "stream/web.ReadableStream.from" | "stream/web.ReadableStreamDefaultReader" | "stream/web.ReadableStreamBYOBReader" | "stream/web.ReadableStreamDefaultController" | "stream/web.ReadableByteStreamController" | "stream/web.ReadableStreamBYOBRequest" | "stream/web.WritableStream" | "stream/web.WritableStreamDefaultWriter" | "stream/web.WritableStreamDefaultController" | "stream/web.TransformStream" | "stream/web.TransformStreamDefaultController" | "stream/web.ByteLengthQueuingStrategy" | "stream/web.CountQueuingStrategy" | "stream/web.TextEncoderStream" | "stream/web.TextDecoderStream" | "stream/web.CompressionStream" | "stream/web.DecompressionStream" | "stream/consumers" | "stream/consumers.arrayBuffer" | "stream/consumers.blob" | "stream/consumers.buffer" | "stream/consumers.json" | "stream/consumers.text" | "string_decoder" | "string_decoder.StringDecoder" | "test" | "test.run" | "test.skip" | "test.todo" | "test.only" | "test.describe" | "test.describe.skip" | "test.describe.todo" | "test.describe.only" | "test.it" | "test.it.skip" | "test.it.todo" | "test.it.only" | "test.suite" | "test.suite.skip" | "test.suite.todo" | "test.suite.only" | "test.before" | "test.after" | "test.beforeEach" | "test.afterEach" | "test.MockFunctionContext" | "test.MockTracker" | "test.MockTimers" | "test.TestsStream" | "test.TestContext" | "test.SuiteContext" | "test.test.run" | "test.test.skip" | "test.test.todo" | "test.test.only" | "test.test.describe" | "test.test.it" | "test.test.suite" | "test.test.before" | "test.test.after" | "test.test.beforeEach" | "test.test.afterEach" | "test.test.MockFunctionContext" | "test.test.MockTracker" | "test.test.MockTimers" | "test.test.TestsStream" | "test.test.TestContext" | "test.test.SuiteContext" | "timers" | "timers.Immediate" | "timers.Timeout" | "timers.setImmediate" | "timers.clearImmediate" | "timers.setInterval" | "timers.clearInterval" | "timers.setTimeout" | "timers.clearTimeout" | "timers.promises" | "timers.promises.setTimeout" | "timers.promises.setImmediate" | "timers.promises.setInterval" | "timers.promises.scheduler.wait" | "timers.promises.scheduler.yield" | "timers/promises" | "timers/promises.setTimeout" | "timers/promises.setImmediate" | "timers/promises.setInterval" | "tls" | "tls.rootCertificates" | "tls.DEFAULT_ECDH_CURVE" | "tls.DEFAULT_MAX_VERSION" | "tls.DEFAULT_MIN_VERSION" | "tls.DEFAULT_CIPHERS" | "tls.checkServerIdentity" | "tls.connect" | "tls.createSecureContext" | "tls.createSecurePair" | "tls.createServer" | "tls.getCiphers" | "tls.SecureContext" | "tls.CryptoStream" | "tls.SecurePair" | "tls.Server" | "tls.TLSSocket" | "trace_events" | "trace_events.createTracing" | "trace_events.getEnabledCategories" | "tty" | "tty.isatty" | "tty.ReadStream" | "tty.WriteStream" | "url" | "url.domainToASCII" | "url.domainToUnicode" | "url.fileURLToPath" | "url.format" | "url.pathToFileURL" | "url.urlToHttpOptions" | "url.URL" | "url.URL.canParse" | "url.URL.createObjectURL" | "url.URL.revokeObjectURL" | "url.URLSearchParams" | "url.Url" | "util.promisify" | "util.promisify.custom" | "util.callbackify" | "util.debuglog" | "util.debug" | "util.deprecate" | "util.format" | "util.formatWithOptions" | "util.getSystemErrorName" | "util.getSystemErrorMap" | "util.inherits" | "util.inspect" | "util.inspect.custom" | "util.inspect.defaultOptions" | "util.inspect.replDefaults" | "util.isDeepStrictEqual" | "util.parseArgs" | "util.parseEnv" | "util.stripVTControlCharacters" | "util.styleText" | "util.toUSVString" | "util.transferableAbortController" | "util.transferableAbortSignal" | "util.aborted" | "util.MIMEType" | "util.MIMEParams" | "util.TextDecoder" | "util.TextEncoder" | "util.types" | "util.types.isExternal" | "util.types.isDate" | "util.types.isArgumentsObject" | "util.types.isBigIntObject" | "util.types.isBooleanObject" | "util.types.isNumberObject" | "util.types.isStringObject" | "util.types.isSymbolObject" | "util.types.isNativeError" | "util.types.isRegExp" | "util.types.isAsyncFunction" | "util.types.isGeneratorFunction" | "util.types.isGeneratorObject" | "util.types.isPromise" | "util.types.isMap" | "util.types.isSet" | "util.types.isMapIterator" | "util.types.isSetIterator" | "util.types.isWeakMap" | "util.types.isWeakSet" | "util.types.isArrayBuffer" | "util.types.isDataView" | "util.types.isSharedArrayBuffer" | "util.types.isProxy" | "util.types.isModuleNamespaceObject" | "util.types.isAnyArrayBuffer" | "util.types.isBoxedPrimitive" | "util.types.isArrayBufferView" | "util.types.isTypedArray" | "util.types.isUint8Array" | "util.types.isUint8ClampedArray" | "util.types.isUint16Array" | "util.types.isUint32Array" | "util.types.isInt8Array" | "util.types.isInt16Array" | "util.types.isInt32Array" | "util.types.isFloat32Array" | "util.types.isFloat64Array" | "util.types.isBigInt64Array" | "util.types.isBigUint64Array" | "util.types.isKeyObject" | "util.types.isCryptoKey" | "util.types.isWebAssemblyCompiledModule" | "util._extend" | "util.isArray" | "util.isBoolean" | "util.isBuffer" | "util.isDate" | "util.isError" | "util.isFunction" | "util.isNull" | "util.isNullOrUndefined" | "util.isNumber" | "util.isObject" | "util.isPrimitive" | "util.isRegExp" | "util.isString" | "util.isSymbol" | "util.isUndefined" | "util.log" | "util" | "util/types" | "util/types.isExternal" | "util/types.isDate" | "util/types.isArgumentsObject" | "util/types.isBigIntObject" | "util/types.isBooleanObject" | "util/types.isNumberObject" | "util/types.isStringObject" | "util/types.isSymbolObject" | "util/types.isNativeError" | "util/types.isRegExp" | "util/types.isAsyncFunction" | "util/types.isGeneratorFunction" | "util/types.isGeneratorObject" | "util/types.isPromise" | "util/types.isMap" | "util/types.isSet" | "util/types.isMapIterator" | "util/types.isSetIterator" | "util/types.isWeakMap" | "util/types.isWeakSet" | "util/types.isArrayBuffer" | "util/types.isDataView" | "util/types.isSharedArrayBuffer" | "util/types.isProxy" | "util/types.isModuleNamespaceObject" | "util/types.isAnyArrayBuffer" | "util/types.isBoxedPrimitive" | "util/types.isArrayBufferView" | "util/types.isTypedArray" | "util/types.isUint8Array" | "util/types.isUint8ClampedArray" | "util/types.isUint16Array" | "util/types.isUint32Array" | "util/types.isInt8Array" | "util/types.isInt16Array" | "util/types.isInt32Array" | "util/types.isFloat32Array" | "util/types.isFloat64Array" | "util/types.isBigInt64Array" | "util/types.isBigUint64Array" | "util/types.isKeyObject" | "util/types.isCryptoKey" | "util/types.isWebAssemblyCompiledModule" | "v8" | "v8.serialize" | "v8.deserialize" | "v8.Serializer" | "v8.Deserializer" | "v8.DefaultSerializer" | "v8.DefaultDeserializer" | "v8.promiseHooks" | "v8.promiseHooks.onInit" | "v8.promiseHooks.onSettled" | "v8.promiseHooks.onBefore" | "v8.promiseHooks.onAfter" | "v8.promiseHooks.createHook" | "v8.startupSnapshot" | "v8.startupSnapshot.addSerializeCallback" | "v8.startupSnapshot.addDeserializeCallback" | "v8.startupSnapshot.setDeserializeMainFunction" | "v8.startupSnapshot.isBuildingSnapshot" | "v8.cachedDataVersionTag" | "v8.getHeapCodeStatistics" | "v8.getHeapSnapshot" | "v8.getHeapSpaceStatistics" | "v8.getHeapStatistics" | "v8.queryObjects" | "v8.setFlagsFromString" | "v8.stopCoverage" | "v8.takeCoverage" | "v8.writeHeapSnapshot" | "v8.setHeapSnapshotNearHeapLimit" | "v8.GCProfiler" | "vm.constants" | "vm.compileFunction" | "vm.createContext" | "vm.isContext" | "vm.measureMemory" | "vm.runInContext" | "vm.runInNewContext" | "vm.runInThisContext" | "vm.Script" | "vm.Module" | "vm.SourceTextModule" | "vm.SyntheticModule" | "vm" | "wasi.WASI" | "wasi" | "worker_threads" | "worker_threads.isMainThread" | "worker_threads.parentPort" | "worker_threads.resourceLimits" | "worker_threads.SHARE_ENV" | "worker_threads.threadId" | "worker_threads.workerData" | "worker_threads.getEnvironmentData" | "worker_threads.markAsUntransferable" | "worker_threads.isMarkedAsUntransferable" | "worker_threads.moveMessagePortToContext" | "worker_threads.receiveMessageOnPort" | "worker_threads.setEnvironmentData" | "worker_threads.BroadcastChannel" | "worker_threads.MessageChannel" | "worker_threads.MessagePort" | "worker_threads.Worker" | "zlib.constants" | "zlib.createBrotliCompress" | "zlib.createBrotliDecompress" | "zlib.createDeflate" | "zlib.createDeflateRaw" | "zlib.createGunzip" | "zlib.createGzip" | "zlib.createInflate" | "zlib.createInflateRaw" | "zlib.createUnzip" | "zlib.brotliCompress" | "zlib.brotliCompressSync" | "zlib.brotliDecompress" | "zlib.brotliDecompressSync" | "zlib.deflate" | "zlib.deflateSync" | "zlib.deflateRaw" | "zlib.deflateRawSync" | "zlib.gunzip" | "zlib.gunzipSync" | "zlib.gzip" | "zlib.gzipSync" | "zlib.inflate" | "zlib.inflateSync" | "zlib.inflateRaw" | "zlib.inflateRawSync" | "zlib.unzip" | "zlib.unzipSync" | "zlib.BrotliCompress" | "zlib.BrotliDecompress" | "zlib.Deflate" | "zlib.DeflateRaw" | "zlib.Gunzip" | "zlib.Gzip" | "zlib.Inflate" | "zlib.InflateRaw" | "zlib.Unzip" | "zlib")[]
|
|
9455
|
+
ignores?: ("__filename" | "__dirname" | "require" | "require.cache" | "require.extensions" | "require.main" | "require.resolve" | "require.resolve.paths" | "module" | "module.children" | "module.exports" | "module.filename" | "module.id" | "module.isPreloading" | "module.loaded" | "module.parent" | "module.path" | "module.paths" | "module.require" | "exports" | "AbortController" | "AbortSignal" | "AbortSignal.abort" | "AbortSignal.timeout" | "AbortSignal.any" | "DOMException" | "FormData" | "Headers" | "MessageEvent" | "Navigator" | "Request" | "Response" | "WebAssembly" | "WebSocket" | "fetch" | "global" | "queueMicrotask" | "navigator" | "navigator.hardwareConcurrency" | "navigator.language" | "navigator.languages" | "navigator.platform" | "navigator.userAgent" | "structuredClone" | "localStorage" | "sessionStorage" | "Storage" | "Blob" | "new Buffer()" | "Buffer" | "Buffer.alloc" | "Buffer.allocUnsafe" | "Buffer.allocUnsafeSlow" | "Buffer.byteLength" | "Buffer.compare" | "Buffer.concat" | "Buffer.copyBytesFrom" | "Buffer.from" | "Buffer.isBuffer" | "Buffer.isEncoding" | "File" | "atob" | "btoa" | "console" | "console.profile" | "console.profileEnd" | "console.timeStamp" | "console.Console" | "console.assert" | "console.clear" | "console.count" | "console.countReset" | "console.debug" | "console.dir" | "console.dirxml" | "console.error" | "console.group" | "console.groupCollapsed" | "console.groupEnd" | "console.info" | "console.log" | "console.table" | "console.time" | "console.timeEnd" | "console.timeLog" | "console.trace" | "console.warn" | "crypto" | "crypto.subtle" | "crypto.subtle.decrypt" | "crypto.subtle.deriveBits" | "crypto.subtle.deriveKey" | "crypto.subtle.digest" | "crypto.subtle.encrypt" | "crypto.subtle.exportKey" | "crypto.subtle.generateKey" | "crypto.subtle.importKey" | "crypto.subtle.sign" | "crypto.subtle.unwrapKey" | "crypto.subtle.verify" | "crypto.subtle.wrapKey" | "crypto.getRandomValues" | "crypto.randomUUID" | "Crypto" | "CryptoKey" | "SubtleCrypto" | "CustomEvent" | "Event" | "EventTarget" | "PerformanceEntry" | "PerformanceMark" | "PerformanceMeasure" | "PerformanceObserver" | "PerformanceObserverEntryList" | "PerformanceResourceTiming" | "performance" | "process" | "process.allowedNodeEnvironmentFlags" | "process.availableMemory" | "process.arch" | "process.argv" | "process.argv0" | "process.channel" | "process.config" | "process.connected" | "process.debugPort" | "process.env" | "process.execArgv" | "process.execPath" | "process.exitCode" | "process.finalization.register" | "process.finalization.registerBeforeExit" | "process.finalization.unregister" | "process.getBuiltinModule" | "process.mainModule" | "process.noDeprecation" | "process.permission" | "process.pid" | "process.platform" | "process.ppid" | "process.release" | "process.report" | "process.sourceMapsEnabled" | "process.stdin" | "process.stdin.isRaw" | "process.stdin.isTTY" | "process.stdin.setRawMode" | "process.stdout" | "process.stdout.clearLine" | "process.stdout.clearScreenDown" | "process.stdout.columns" | "process.stdout.cursorTo" | "process.stdout.getColorDepth" | "process.stdout.getWindowSize" | "process.stdout.hasColors" | "process.stdout.isTTY" | "process.stdout.moveCursor" | "process.stdout.rows" | "process.stderr" | "process.stderr.clearLine" | "process.stderr.clearScreenDown" | "process.stderr.columns" | "process.stderr.cursorTo" | "process.stderr.getColorDepth" | "process.stderr.getWindowSize" | "process.stderr.hasColors" | "process.stderr.isTTY" | "process.stderr.moveCursor" | "process.stderr.rows" | "process.throwDeprecation" | "process.title" | "process.traceDeprecation" | "process.version" | "process.versions" | "process.abort" | "process.chdir" | "process.constrainedMemory" | "process.cpuUsage" | "process.cwd" | "process.disconnect" | "process.dlopen" | "process.emitWarning" | "process.exit" | "process.getActiveResourcesInfo" | "process.getegid" | "process.geteuid" | "process.getgid" | "process.getgroups" | "process.getuid" | "process.hasUncaughtExceptionCaptureCallback" | "process.hrtime" | "process.hrtime.bigint" | "process.initgroups" | "process.kill" | "process.loadEnvFile" | "process.memoryUsage" | "process.rss" | "process.nextTick" | "process.resourceUsage" | "process.send" | "process.setegid" | "process.seteuid" | "process.setgid" | "process.setgroups" | "process.setuid" | "process.setSourceMapsEnabled" | "process.setUncaughtExceptionCaptureCallback" | "process.umask" | "process.uptime" | "ReadableStream" | "ReadableStream.from" | "ReadableStreamDefaultReader" | "ReadableStreamBYOBReader" | "ReadableStreamDefaultController" | "ReadableByteStreamController" | "ReadableStreamBYOBRequest" | "WritableStream" | "WritableStreamDefaultWriter" | "WritableStreamDefaultController" | "TransformStream" | "TransformStreamDefaultController" | "ByteLengthQueuingStrategy" | "CountQueuingStrategy" | "TextEncoderStream" | "TextDecoderStream" | "CompressionStream" | "DecompressionStream" | "setInterval" | "clearInterval" | "setTimeout" | "clearTimeout" | "setImmediate" | "clearImmediate" | "URL" | "URL.canParse" | "URL.createObjectURL" | "URL.revokeObjectURL" | "URLSearchParams" | "TextDecoder" | "TextEncoder" | "BroadcastChannel" | "MessageChannel" | "MessagePort" | "assert" | "assert.assert" | "assert.deepEqual" | "assert.deepStrictEqual" | "assert.doesNotMatch" | "assert.doesNotReject" | "assert.doesNotThrow" | "assert.equal" | "assert.fail" | "assert.ifError" | "assert.match" | "assert.notDeepEqual" | "assert.notDeepStrictEqual" | "assert.notEqual" | "assert.notStrictEqual" | "assert.ok" | "assert.rejects" | "assert.strictEqual" | "assert.throws" | "assert.CallTracker" | "assert.strict" | "assert.strict.assert" | "assert.strict.deepEqual" | "assert.strict.deepStrictEqual" | "assert.strict.doesNotMatch" | "assert.strict.doesNotReject" | "assert.strict.doesNotThrow" | "assert.strict.equal" | "assert.strict.fail" | "assert.strict.ifError" | "assert.strict.match" | "assert.strict.notDeepEqual" | "assert.strict.notDeepStrictEqual" | "assert.strict.notEqual" | "assert.strict.notStrictEqual" | "assert.strict.ok" | "assert.strict.rejects" | "assert.strict.strictEqual" | "assert.strict.throws" | "assert.strict.CallTracker" | "assert/strict" | "assert/strict.assert" | "assert/strict.deepEqual" | "assert/strict.deepStrictEqual" | "assert/strict.doesNotMatch" | "assert/strict.doesNotReject" | "assert/strict.doesNotThrow" | "assert/strict.equal" | "assert/strict.fail" | "assert/strict.ifError" | "assert/strict.match" | "assert/strict.notDeepEqual" | "assert/strict.notDeepStrictEqual" | "assert/strict.notEqual" | "assert/strict.notStrictEqual" | "assert/strict.ok" | "assert/strict.rejects" | "assert/strict.strictEqual" | "assert/strict.throws" | "assert/strict.CallTracker" | "async_hooks" | "async_hooks.createHook" | "async_hooks.executionAsyncResource" | "async_hooks.executionAsyncId" | "async_hooks.triggerAsyncId" | "async_hooks.AsyncLocalStorage" | "async_hooks.AsyncLocalStorage.bind" | "async_hooks.AsyncLocalStorage.snapshot" | "async_hooks.AsyncResource" | "async_hooks.AsyncResource.bind" | "buffer" | "buffer.constants" | "buffer.INSPECT_MAX_BYTES" | "buffer.kMaxLength" | "buffer.kStringMaxLength" | "buffer.atob" | "buffer.btoa" | "buffer.isAscii" | "buffer.isUtf8" | "buffer.resolveObjectURL" | "buffer.transcode" | "buffer.SlowBuffer" | "buffer.Blob" | "new buffer.Buffer()" | "buffer.Buffer" | "buffer.Buffer.alloc" | "buffer.Buffer.allocUnsafe" | "buffer.Buffer.allocUnsafeSlow" | "buffer.Buffer.byteLength" | "buffer.Buffer.compare" | "buffer.Buffer.concat" | "buffer.Buffer.copyBytesFrom" | "buffer.Buffer.from" | "buffer.Buffer.isBuffer" | "buffer.Buffer.isEncoding" | "buffer.File" | "child_process" | "child_process.exec" | "child_process.execFile" | "child_process.fork" | "child_process.spawn" | "child_process.execFileSync" | "child_process.execSync" | "child_process.spawnSync" | "child_process.ChildProcess" | "cluster" | "cluster.isMaster" | "cluster.isPrimary" | "cluster.isWorker" | "cluster.schedulingPolicy" | "cluster.settings" | "cluster.worker" | "cluster.workers" | "cluster.disconnect" | "cluster.fork" | "cluster.setupMaster" | "cluster.setupPrimary" | "cluster.Worker" | "crypto.constants" | "crypto.fips" | "crypto.webcrypto" | "crypto.webcrypto.subtle" | "crypto.webcrypto.subtle.decrypt" | "crypto.webcrypto.subtle.deriveBits" | "crypto.webcrypto.subtle.deriveKey" | "crypto.webcrypto.subtle.digest" | "crypto.webcrypto.subtle.encrypt" | "crypto.webcrypto.subtle.exportKey" | "crypto.webcrypto.subtle.generateKey" | "crypto.webcrypto.subtle.importKey" | "crypto.webcrypto.subtle.sign" | "crypto.webcrypto.subtle.unwrapKey" | "crypto.webcrypto.subtle.verify" | "crypto.webcrypto.subtle.wrapKey" | "crypto.webcrypto.getRandomValues" | "crypto.webcrypto.randomUUID" | "crypto.checkPrime" | "crypto.checkPrimeSync" | "crypto.createCipher" | "crypto.createCipheriv" | "crypto.createDecipher" | "crypto.createDecipheriv" | "crypto.createDiffieHellman" | "crypto.createDiffieHellmanGroup" | "crypto.createECDH" | "crypto.createHash" | "crypto.createHmac" | "crypto.createPrivateKey" | "crypto.createPublicKey" | "crypto.createSecretKey" | "crypto.createSign" | "crypto.createVerify" | "crypto.diffieHellman" | "crypto.generateKey" | "crypto.generateKeyPair" | "crypto.generateKeyPairSync" | "crypto.generateKeySync" | "crypto.generatePrime" | "crypto.generatePrimeSync" | "crypto.getCipherInfo" | "crypto.getCiphers" | "crypto.getCurves" | "crypto.getDiffieHellman" | "crypto.getFips" | "crypto.getHashes" | "crypto.hash" | "crypto.hkdf" | "crypto.hkdfSync" | "crypto.pbkdf2" | "crypto.pbkdf2Sync" | "crypto.privateDecrypt" | "crypto.privateEncrypt" | "crypto.publicDecrypt" | "crypto.publicEncrypt" | "crypto.randomBytes" | "crypto.randomFillSync" | "crypto.randomFill" | "crypto.randomInt" | "crypto.scrypt" | "crypto.scryptSync" | "crypto.secureHeapUsed" | "crypto.setEngine" | "crypto.setFips" | "crypto.sign" | "crypto.timingSafeEqual" | "crypto.verify" | "crypto.Certificate" | "crypto.Certificate.exportChallenge" | "crypto.Certificate.exportPublicKey" | "crypto.Certificate.verifySpkac" | "crypto.Cipher" | "crypto.Decipher" | "crypto.DiffieHellman" | "crypto.DiffieHellmanGroup" | "crypto.ECDH" | "crypto.ECDH.convertKey" | "crypto.Hash()" | "new crypto.Hash()" | "crypto.Hash" | "crypto.Hmac()" | "new crypto.Hmac()" | "crypto.Hmac" | "crypto.KeyObject" | "crypto.KeyObject.from" | "crypto.Sign" | "crypto.Verify" | "crypto.X509Certificate" | "dgram" | "dgram.createSocket" | "dgram.Socket" | "diagnostics_channel" | "diagnostics_channel.hasSubscribers" | "diagnostics_channel.channel" | "diagnostics_channel.subscribe" | "diagnostics_channel.unsubscribe" | "diagnostics_channel.tracingChannel" | "diagnostics_channel.Channel" | "diagnostics_channel.TracingChannel" | "dns" | "dns.Resolver" | "dns.getServers" | "dns.lookup" | "dns.lookupService" | "dns.resolve" | "dns.resolve4" | "dns.resolve6" | "dns.resolveAny" | "dns.resolveCname" | "dns.resolveCaa" | "dns.resolveMx" | "dns.resolveNaptr" | "dns.resolveNs" | "dns.resolvePtr" | "dns.resolveSoa" | "dns.resolveSrv" | "dns.resolveTxt" | "dns.reverse" | "dns.setDefaultResultOrder" | "dns.getDefaultResultOrder" | "dns.setServers" | "dns.promises" | "dns.promises.Resolver" | "dns.promises.cancel" | "dns.promises.getServers" | "dns.promises.lookup" | "dns.promises.lookupService" | "dns.promises.resolve" | "dns.promises.resolve4" | "dns.promises.resolve6" | "dns.promises.resolveAny" | "dns.promises.resolveCaa" | "dns.promises.resolveCname" | "dns.promises.resolveMx" | "dns.promises.resolveNaptr" | "dns.promises.resolveNs" | "dns.promises.resolvePtr" | "dns.promises.resolveSoa" | "dns.promises.resolveSrv" | "dns.promises.resolveTxt" | "dns.promises.reverse" | "dns.promises.setDefaultResultOrder" | "dns.promises.getDefaultResultOrder" | "dns.promises.setServers" | "dns/promises" | "dns/promises.Resolver" | "dns/promises.cancel" | "dns/promises.getServers" | "dns/promises.lookup" | "dns/promises.lookupService" | "dns/promises.resolve" | "dns/promises.resolve4" | "dns/promises.resolve6" | "dns/promises.resolveAny" | "dns/promises.resolveCaa" | "dns/promises.resolveCname" | "dns/promises.resolveMx" | "dns/promises.resolveNaptr" | "dns/promises.resolveNs" | "dns/promises.resolvePtr" | "dns/promises.resolveSoa" | "dns/promises.resolveSrv" | "dns/promises.resolveTxt" | "dns/promises.reverse" | "dns/promises.setDefaultResultOrder" | "dns/promises.getDefaultResultOrder" | "dns/promises.setServers" | "domain" | "domain.create" | "domain.Domain" | "events" | "events.Event" | "events.EventTarget" | "events.CustomEvent" | "events.NodeEventTarget" | "events.EventEmitter" | "events.EventEmitter.defaultMaxListeners" | "events.EventEmitter.errorMonitor" | "events.EventEmitter.captureRejections" | "events.EventEmitter.captureRejectionSymbol" | "events.EventEmitter.getEventListeners" | "events.EventEmitter.getMaxListeners" | "events.EventEmitter.once" | "events.EventEmitter.listenerCount" | "events.EventEmitter.on" | "events.EventEmitter.setMaxListeners" | "events.EventEmitter.addAbortListener" | "events.EventEmitterAsyncResource" | "events.EventEmitterAsyncResource.defaultMaxListeners" | "events.EventEmitterAsyncResource.errorMonitor" | "events.EventEmitterAsyncResource.captureRejections" | "events.EventEmitterAsyncResource.captureRejectionSymbol" | "events.EventEmitterAsyncResource.getEventListeners" | "events.EventEmitterAsyncResource.getMaxListeners" | "events.EventEmitterAsyncResource.once" | "events.EventEmitterAsyncResource.listenerCount" | "events.EventEmitterAsyncResource.on" | "events.EventEmitterAsyncResource.setMaxListeners" | "events.EventEmitterAsyncResource.addAbortListener" | "events.defaultMaxListeners" | "events.errorMonitor" | "events.captureRejections" | "events.captureRejectionSymbol" | "events.getEventListeners" | "events.getMaxListeners" | "events.once" | "events.listenerCount" | "events.on" | "events.setMaxListeners" | "events.addAbortListener" | "fs" | "fs.promises" | "fs.promises.FileHandle" | "fs.promises.access" | "fs.promises.appendFile" | "fs.promises.chmod" | "fs.promises.chown" | "fs.promises.constants" | "fs.promises.copyFile" | "fs.promises.cp" | "fs.promises.glob" | "fs.promises.lchmod" | "fs.promises.lchown" | "fs.promises.link" | "fs.promises.lstat" | "fs.promises.lutimes" | "fs.promises.mkdir" | "fs.promises.mkdtemp" | "fs.promises.open" | "fs.promises.opendir" | "fs.promises.readFile" | "fs.promises.readdir" | "fs.promises.readlink" | "fs.promises.realpath" | "fs.promises.rename" | "fs.promises.rm" | "fs.promises.rmdir" | "fs.promises.stat" | "fs.promises.statfs" | "fs.promises.symlink" | "fs.promises.truncate" | "fs.promises.unlink" | "fs.promises.utimes" | "fs.promises.watch" | "fs.promises.writeFile" | "fs.access" | "fs.appendFile" | "fs.chmod" | "fs.chown" | "fs.close" | "fs.copyFile" | "fs.cp" | "fs.createReadStream" | "fs.createWriteStream" | "fs.exists" | "fs.fchmod" | "fs.fchown" | "fs.fdatasync" | "fs.fstat" | "fs.fsync" | "fs.ftruncate" | "fs.futimes" | "fs.glob" | "fs.lchmod" | "fs.lchown" | "fs.link" | "fs.lstat" | "fs.lutimes" | "fs.mkdir" | "fs.mkdtemp" | "fs.native" | "fs.open" | "fs.openAsBlob" | "fs.opendir" | "fs.read" | "fs.readdir" | "fs.readFile" | "fs.readlink" | "fs.readv" | "fs.realpath" | "fs.realpath.native" | "fs.rename" | "fs.rm" | "fs.rmdir" | "fs.stat" | "fs.statfs" | "fs.symlink" | "fs.truncate" | "fs.unlink" | "fs.unwatchFile" | "fs.utimes" | "fs.watch" | "fs.watchFile" | "fs.write" | "fs.writeFile" | "fs.writev" | "fs.accessSync" | "fs.appendFileSync" | "fs.chmodSync" | "fs.chownSync" | "fs.closeSync" | "fs.copyFileSync" | "fs.cpSync" | "fs.existsSync" | "fs.fchmodSync" | "fs.fchownSync" | "fs.fdatasyncSync" | "fs.fstatSync" | "fs.fsyncSync" | "fs.ftruncateSync" | "fs.futimesSync" | "fs.globSync" | "fs.lchmodSync" | "fs.lchownSync" | "fs.linkSync" | "fs.lstatSync" | "fs.lutimesSync" | "fs.mkdirSync" | "fs.mkdtempSync" | "fs.opendirSync" | "fs.openSync" | "fs.readdirSync" | "fs.readFileSync" | "fs.readlinkSync" | "fs.readSync" | "fs.readvSync" | "fs.realpathSync" | "fs.realpathSync.native" | "fs.renameSync" | "fs.rmdirSync" | "fs.rmSync" | "fs.statfsSync" | "fs.statSync" | "fs.symlinkSync" | "fs.truncateSync" | "fs.unlinkSync" | "fs.utimesSync" | "fs.writeFileSync" | "fs.writeSync" | "fs.writevSync" | "fs.constants" | "fs.Dir" | "fs.Dirent" | "fs.FSWatcher" | "fs.StatWatcher" | "fs.ReadStream" | "fs.Stats()" | "new fs.Stats()" | "fs.Stats" | "fs.StatFs" | "fs.WriteStream" | "fs.common_objects" | "fs/promises" | "fs/promises.FileHandle" | "fs/promises.access" | "fs/promises.appendFile" | "fs/promises.chmod" | "fs/promises.chown" | "fs/promises.constants" | "fs/promises.copyFile" | "fs/promises.cp" | "fs/promises.glob" | "fs/promises.lchmod" | "fs/promises.lchown" | "fs/promises.link" | "fs/promises.lstat" | "fs/promises.lutimes" | "fs/promises.mkdir" | "fs/promises.mkdtemp" | "fs/promises.open" | "fs/promises.opendir" | "fs/promises.readFile" | "fs/promises.readdir" | "fs/promises.readlink" | "fs/promises.realpath" | "fs/promises.rename" | "fs/promises.rm" | "fs/promises.rmdir" | "fs/promises.stat" | "fs/promises.statfs" | "fs/promises.symlink" | "fs/promises.truncate" | "fs/promises.unlink" | "fs/promises.utimes" | "fs/promises.watch" | "fs/promises.writeFile" | "http2" | "http2.constants" | "http2.sensitiveHeaders" | "http2.createServer" | "http2.createSecureServer" | "http2.connect" | "http2.getDefaultSettings" | "http2.getPackedSettings" | "http2.getUnpackedSettings" | "http2.performServerHandshake" | "http2.Http2Session" | "http2.ServerHttp2Session" | "http2.ClientHttp2Session" | "http2.Http2Stream" | "http2.ClientHttp2Stream" | "http2.ServerHttp2Stream" | "http2.Http2Server" | "http2.Http2SecureServer" | "http2.Http2ServerRequest" | "http2.Http2ServerResponse" | "http" | "http.globalAgent" | "http.createServer" | "http.get" | "http.request" | "http.Agent" | "http.Server" | "inspector" | "inspector.Session" | "inspector.console" | "inspector.close" | "inspector.open" | "inspector.url" | "inspector.waitForDebugger" | "inspector/promises" | "inspector/promises.Session" | "inspector/promises.console" | "inspector/promises.close" | "inspector/promises.open" | "inspector/promises.url" | "inspector/promises.waitForDebugger" | "module.builtinModules" | "module.createRequire" | "module.createRequireFromPath" | "module.isBuiltin" | "module.register" | "module.syncBuiltinESMExports" | "module.findSourceMap" | "module.SourceMap" | "module.Module.builtinModules" | "module.Module.createRequire" | "module.Module.createRequireFromPath" | "module.Module.isBuiltin" | "module.Module.register" | "module.Module.syncBuiltinESMExports" | "module.Module.findSourceMap" | "module.Module.SourceMap" | "net" | "net.connect" | "net.createConnection" | "net.createServer" | "net.getDefaultAutoSelectFamily" | "net.setDefaultAutoSelectFamily" | "net.getDefaultAutoSelectFamilyAttemptTimeout" | "net.setDefaultAutoSelectFamilyAttemptTimeout" | "net.isIP" | "net.isIPv4" | "net.isIPv6" | "net.BlockList" | "net.SocketAddress" | "net.Server" | "net.Socket" | "os" | "os.EOL" | "os.constants" | "os.constants.priority" | "os.devNull" | "os.availableParallelism" | "os.arch" | "os.cpus" | "os.endianness" | "os.freemem" | "os.getPriority" | "os.homedir" | "os.hostname" | "os.loadavg" | "os.machine" | "os.networkInterfaces" | "os.platform" | "os.release" | "os.setPriority" | "os.tmpdir" | "os.totalmem" | "os.type" | "os.uptime" | "os.userInfo" | "os.version" | "path" | "path.posix" | "path.posix.delimiter" | "path.posix.sep" | "path.posix.basename" | "path.posix.dirname" | "path.posix.extname" | "path.posix.format" | "path.posix.matchesGlob" | "path.posix.isAbsolute" | "path.posix.join" | "path.posix.normalize" | "path.posix.parse" | "path.posix.relative" | "path.posix.resolve" | "path.posix.toNamespacedPath" | "path.win32" | "path.win32.delimiter" | "path.win32.sep" | "path.win32.basename" | "path.win32.dirname" | "path.win32.extname" | "path.win32.format" | "path.win32.matchesGlob" | "path.win32.isAbsolute" | "path.win32.join" | "path.win32.normalize" | "path.win32.parse" | "path.win32.relative" | "path.win32.resolve" | "path.win32.toNamespacedPath" | "path.delimiter" | "path.sep" | "path.basename" | "path.dirname" | "path.extname" | "path.format" | "path.matchesGlob" | "path.isAbsolute" | "path.join" | "path.normalize" | "path.parse" | "path.relative" | "path.resolve" | "path.toNamespacedPath" | "path/posix" | "path/posix.delimiter" | "path/posix.sep" | "path/posix.basename" | "path/posix.dirname" | "path/posix.extname" | "path/posix.format" | "path/posix.matchesGlob" | "path/posix.isAbsolute" | "path/posix.join" | "path/posix.normalize" | "path/posix.parse" | "path/posix.relative" | "path/posix.resolve" | "path/posix.toNamespacedPath" | "path/win32" | "path/win32.delimiter" | "path/win32.sep" | "path/win32.basename" | "path/win32.dirname" | "path/win32.extname" | "path/win32.format" | "path/win32.matchesGlob" | "path/win32.isAbsolute" | "path/win32.join" | "path/win32.normalize" | "path/win32.parse" | "path/win32.relative" | "path/win32.resolve" | "path/win32.toNamespacedPath" | "perf_hooks" | "perf_hooks.performance" | "perf_hooks.createHistogram" | "perf_hooks.monitorEventLoopDelay" | "perf_hooks.PerformanceEntry" | "perf_hooks.PerformanceMark" | "perf_hooks.PerformanceMeasure" | "perf_hooks.PerformanceNodeEntry" | "perf_hooks.PerformanceNodeTiming" | "perf_hooks.PerformanceResourceTiming" | "perf_hooks.PerformanceObserver" | "perf_hooks.PerformanceObserverEntryList" | "perf_hooks.Histogram" | "perf_hooks.IntervalHistogram" | "perf_hooks.RecordableHistogram" | "punycode" | "punycode.ucs2" | "punycode.version" | "punycode.decode" | "punycode.encode" | "punycode.toASCII" | "punycode.toUnicode" | "querystring" | "querystring.decode" | "querystring.encode" | "querystring.escape" | "querystring.parse" | "querystring.stringify" | "querystring.unescape" | "readline" | "readline.promises" | "readline.promises.createInterface" | "readline.promises.Interface" | "readline.promises.Readline" | "readline.clearLine" | "readline.clearScreenDown" | "readline.createInterface" | "readline.cursorTo" | "readline.moveCursor" | "readline.Interface" | "readline.emitKeypressEvents" | "readline.InterfaceConstructor" | "readline/promises" | "readline/promises.createInterface" | "readline/promises.Interface" | "readline/promises.Readline" | "sea" | "sea.isSea" | "sea.getAsset" | "sea.getAssetAsBlob" | "sea.getRawAsset" | "sea.test.isSea" | "sea.test.getAsset" | "sea.test.getAssetAsBlob" | "sea.test.getRawAsset" | "stream" | "stream.promises" | "stream.promises.pipeline" | "stream.promises.finished" | "stream.finished" | "stream.pipeline" | "stream.compose" | "stream.Readable" | "stream.Readable.from" | "stream.Readable.isDisturbed" | "stream.Readable.fromWeb" | "stream.Readable.toWeb" | "stream.Writable" | "stream.Writable.fromWeb" | "stream.Writable.toWeb" | "stream.Duplex" | "stream.Duplex.from" | "stream.Duplex.fromWeb" | "stream.Duplex.toWeb" | "stream.Transform" | "stream.isErrored" | "stream.isReadable" | "stream.addAbortSignal" | "stream.getDefaultHighWaterMark" | "stream.setDefaultHighWaterMark" | "stream/promises.pipeline" | "stream/promises.finished" | "stream/web" | "stream/web.ReadableStream" | "stream/web.ReadableStream.from" | "stream/web.ReadableStreamDefaultReader" | "stream/web.ReadableStreamBYOBReader" | "stream/web.ReadableStreamDefaultController" | "stream/web.ReadableByteStreamController" | "stream/web.ReadableStreamBYOBRequest" | "stream/web.WritableStream" | "stream/web.WritableStreamDefaultWriter" | "stream/web.WritableStreamDefaultController" | "stream/web.TransformStream" | "stream/web.TransformStreamDefaultController" | "stream/web.ByteLengthQueuingStrategy" | "stream/web.CountQueuingStrategy" | "stream/web.TextEncoderStream" | "stream/web.TextDecoderStream" | "stream/web.CompressionStream" | "stream/web.DecompressionStream" | "stream/consumers" | "stream/consumers.arrayBuffer" | "stream/consumers.blob" | "stream/consumers.buffer" | "stream/consumers.json" | "stream/consumers.text" | "string_decoder" | "string_decoder.StringDecoder" | "test" | "test.run" | "test.skip" | "test.todo" | "test.only" | "test.describe" | "test.describe.skip" | "test.describe.todo" | "test.describe.only" | "test.it" | "test.it.skip" | "test.it.todo" | "test.it.only" | "test.suite" | "test.suite.skip" | "test.suite.todo" | "test.suite.only" | "test.before" | "test.after" | "test.beforeEach" | "test.afterEach" | "test.snapshot" | "test.snapshot.setDefaultSnapshotSerializers" | "test.snapshot.setResolveSnapshotPath" | "test.MockFunctionContext" | "test.MockModuleContext" | "test.MockTracker" | "test.MockTimers" | "test.TestsStream" | "test.TestContext" | "test.SuiteContext" | "test.test.run" | "test.test.skip" | "test.test.todo" | "test.test.only" | "test.test.describe" | "test.test.it" | "test.test.suite" | "test.test.before" | "test.test.after" | "test.test.beforeEach" | "test.test.afterEach" | "test.test.snapshot" | "test.test.MockFunctionContext" | "test.test.MockModuleContext" | "test.test.MockTracker" | "test.test.MockTimers" | "test.test.TestsStream" | "test.test.TestContext" | "test.test.SuiteContext" | "timers" | "timers.Immediate" | "timers.Timeout" | "timers.setImmediate" | "timers.clearImmediate" | "timers.setInterval" | "timers.clearInterval" | "timers.setTimeout" | "timers.clearTimeout" | "timers.promises" | "timers.promises.setTimeout" | "timers.promises.setImmediate" | "timers.promises.setInterval" | "timers.promises.scheduler.wait" | "timers.promises.scheduler.yield" | "timers/promises" | "timers/promises.setTimeout" | "timers/promises.setImmediate" | "timers/promises.setInterval" | "tls" | "tls.rootCertificates" | "tls.DEFAULT_ECDH_CURVE" | "tls.DEFAULT_MAX_VERSION" | "tls.DEFAULT_MIN_VERSION" | "tls.DEFAULT_CIPHERS" | "tls.checkServerIdentity" | "tls.connect" | "tls.createSecureContext" | "tls.createSecurePair" | "tls.createServer" | "tls.getCiphers" | "tls.SecureContext" | "tls.CryptoStream" | "tls.SecurePair" | "tls.Server" | "tls.TLSSocket" | "trace_events" | "trace_events.createTracing" | "trace_events.getEnabledCategories" | "tty" | "tty.isatty" | "tty.ReadStream" | "tty.WriteStream" | "url" | "url.domainToASCII" | "url.domainToUnicode" | "url.fileURLToPath" | "url.format" | "url.pathToFileURL" | "url.urlToHttpOptions" | "url.URL" | "url.URL.canParse" | "url.URL.createObjectURL" | "url.URL.revokeObjectURL" | "url.URLSearchParams" | "url.Url" | "util.promisify" | "util.promisify.custom" | "util.callbackify" | "util.debuglog" | "util.debug" | "util.deprecate" | "util.format" | "util.formatWithOptions" | "util.getSystemErrorName" | "util.getSystemErrorMap" | "util.inherits" | "util.inspect" | "util.inspect.custom" | "util.inspect.defaultOptions" | "util.inspect.replDefaults" | "util.isDeepStrictEqual" | "util.parseArgs" | "util.parseEnv" | "util.stripVTControlCharacters" | "util.styleText" | "util.toUSVString" | "util.transferableAbortController" | "util.transferableAbortSignal" | "util.aborted" | "util.MIMEType" | "util.MIMEParams" | "util.TextDecoder" | "util.TextEncoder" | "util.types" | "util.types.isExternal" | "util.types.isDate" | "util.types.isArgumentsObject" | "util.types.isBigIntObject" | "util.types.isBooleanObject" | "util.types.isNumberObject" | "util.types.isStringObject" | "util.types.isSymbolObject" | "util.types.isNativeError" | "util.types.isRegExp" | "util.types.isAsyncFunction" | "util.types.isGeneratorFunction" | "util.types.isGeneratorObject" | "util.types.isPromise" | "util.types.isMap" | "util.types.isSet" | "util.types.isMapIterator" | "util.types.isSetIterator" | "util.types.isWeakMap" | "util.types.isWeakSet" | "util.types.isArrayBuffer" | "util.types.isDataView" | "util.types.isSharedArrayBuffer" | "util.types.isProxy" | "util.types.isModuleNamespaceObject" | "util.types.isAnyArrayBuffer" | "util.types.isBoxedPrimitive" | "util.types.isArrayBufferView" | "util.types.isTypedArray" | "util.types.isUint8Array" | "util.types.isUint8ClampedArray" | "util.types.isUint16Array" | "util.types.isUint32Array" | "util.types.isInt8Array" | "util.types.isInt16Array" | "util.types.isInt32Array" | "util.types.isFloat32Array" | "util.types.isFloat64Array" | "util.types.isBigInt64Array" | "util.types.isBigUint64Array" | "util.types.isKeyObject" | "util.types.isCryptoKey" | "util.types.isWebAssemblyCompiledModule" | "util._extend" | "util.isArray" | "util.isBoolean" | "util.isBuffer" | "util.isDate" | "util.isError" | "util.isFunction" | "util.isNull" | "util.isNullOrUndefined" | "util.isNumber" | "util.isObject" | "util.isPrimitive" | "util.isRegExp" | "util.isString" | "util.isSymbol" | "util.isUndefined" | "util.log" | "util" | "util/types" | "util/types.isExternal" | "util/types.isDate" | "util/types.isArgumentsObject" | "util/types.isBigIntObject" | "util/types.isBooleanObject" | "util/types.isNumberObject" | "util/types.isStringObject" | "util/types.isSymbolObject" | "util/types.isNativeError" | "util/types.isRegExp" | "util/types.isAsyncFunction" | "util/types.isGeneratorFunction" | "util/types.isGeneratorObject" | "util/types.isPromise" | "util/types.isMap" | "util/types.isSet" | "util/types.isMapIterator" | "util/types.isSetIterator" | "util/types.isWeakMap" | "util/types.isWeakSet" | "util/types.isArrayBuffer" | "util/types.isDataView" | "util/types.isSharedArrayBuffer" | "util/types.isProxy" | "util/types.isModuleNamespaceObject" | "util/types.isAnyArrayBuffer" | "util/types.isBoxedPrimitive" | "util/types.isArrayBufferView" | "util/types.isTypedArray" | "util/types.isUint8Array" | "util/types.isUint8ClampedArray" | "util/types.isUint16Array" | "util/types.isUint32Array" | "util/types.isInt8Array" | "util/types.isInt16Array" | "util/types.isInt32Array" | "util/types.isFloat32Array" | "util/types.isFloat64Array" | "util/types.isBigInt64Array" | "util/types.isBigUint64Array" | "util/types.isKeyObject" | "util/types.isCryptoKey" | "util/types.isWebAssemblyCompiledModule" | "v8" | "v8.serialize" | "v8.deserialize" | "v8.Serializer" | "v8.Deserializer" | "v8.DefaultSerializer" | "v8.DefaultDeserializer" | "v8.promiseHooks" | "v8.promiseHooks.onInit" | "v8.promiseHooks.onSettled" | "v8.promiseHooks.onBefore" | "v8.promiseHooks.onAfter" | "v8.promiseHooks.createHook" | "v8.startupSnapshot" | "v8.startupSnapshot.addSerializeCallback" | "v8.startupSnapshot.addDeserializeCallback" | "v8.startupSnapshot.setDeserializeMainFunction" | "v8.startupSnapshot.isBuildingSnapshot" | "v8.cachedDataVersionTag" | "v8.getHeapCodeStatistics" | "v8.getHeapSnapshot" | "v8.getHeapSpaceStatistics" | "v8.getHeapStatistics" | "v8.queryObjects" | "v8.setFlagsFromString" | "v8.stopCoverage" | "v8.takeCoverage" | "v8.writeHeapSnapshot" | "v8.setHeapSnapshotNearHeapLimit" | "v8.GCProfiler" | "vm.constants" | "vm.compileFunction" | "vm.createContext" | "vm.isContext" | "vm.measureMemory" | "vm.runInContext" | "vm.runInNewContext" | "vm.runInThisContext" | "vm.Script" | "vm.Module" | "vm.SourceTextModule" | "vm.SyntheticModule" | "vm" | "wasi.WASI" | "wasi" | "worker_threads" | "worker_threads.isMainThread" | "worker_threads.parentPort" | "worker_threads.resourceLimits" | "worker_threads.SHARE_ENV" | "worker_threads.threadId" | "worker_threads.workerData" | "worker_threads.getEnvironmentData" | "worker_threads.markAsUntransferable" | "worker_threads.isMarkedAsUntransferable" | "worker_threads.moveMessagePortToContext" | "worker_threads.postMessageToThread" | "worker_threads.receiveMessageOnPort" | "worker_threads.setEnvironmentData" | "worker_threads.BroadcastChannel" | "worker_threads.MessageChannel" | "worker_threads.MessagePort" | "worker_threads.Worker" | "zlib.constants" | "zlib.crc32" | "zlib.createBrotliCompress" | "zlib.createBrotliDecompress" | "zlib.createDeflate" | "zlib.createDeflateRaw" | "zlib.createGunzip" | "zlib.createGzip" | "zlib.createInflate" | "zlib.createInflateRaw" | "zlib.createUnzip" | "zlib.brotliCompress" | "zlib.brotliCompressSync" | "zlib.brotliDecompress" | "zlib.brotliDecompressSync" | "zlib.deflate" | "zlib.deflateSync" | "zlib.deflateRaw" | "zlib.deflateRawSync" | "zlib.gunzip" | "zlib.gunzipSync" | "zlib.gzip" | "zlib.gzipSync" | "zlib.inflate" | "zlib.inflateSync" | "zlib.inflateRaw" | "zlib.inflateRawSync" | "zlib.unzip" | "zlib.unzipSync" | "zlib.BrotliCompress" | "zlib.BrotliDecompress" | "zlib.Deflate" | "zlib.DeflateRaw" | "zlib.Gunzip" | "zlib.Gzip" | "zlib.Inflate" | "zlib.InflateRaw" | "zlib.Unzip" | "zlib")[]
|
|
9475
9456
|
}]
|
|
9476
9457
|
// ----- node/prefer-global/buffer -----
|
|
9477
9458
|
type NodePreferGlobalBuffer = []|[("always" | "never")]
|
|
@@ -9613,45 +9594,86 @@ type PaddingLineBetweenStatements = {
|
|
|
9613
9594
|
}[]
|
|
9614
9595
|
// ----- perfectionist/sort-array-includes -----
|
|
9615
9596
|
type PerfectionistSortArrayIncludes = []|[{
|
|
9597
|
+
|
|
9616
9598
|
type?: ("alphabetical" | "natural" | "line-length")
|
|
9599
|
+
|
|
9617
9600
|
order?: ("asc" | "desc")
|
|
9618
|
-
|
|
9619
|
-
|
|
9601
|
+
|
|
9602
|
+
ignoreCase?: boolean
|
|
9603
|
+
|
|
9604
|
+
groupKind?: ("mixed" | "literals-first" | "spreads-first")
|
|
9620
9605
|
}]
|
|
9621
9606
|
// ----- perfectionist/sort-astro-attributes -----
|
|
9622
9607
|
type PerfectionistSortAstroAttributes = []|[{
|
|
9623
|
-
|
|
9624
|
-
[k: string]: unknown | undefined
|
|
9625
|
-
}
|
|
9608
|
+
|
|
9626
9609
|
type?: ("alphabetical" | "natural" | "line-length")
|
|
9610
|
+
|
|
9627
9611
|
order?: ("asc" | "desc")
|
|
9628
|
-
|
|
9629
|
-
|
|
9612
|
+
|
|
9613
|
+
ignoreCase?: boolean
|
|
9614
|
+
|
|
9615
|
+
groups?: (string | string[])[]
|
|
9616
|
+
|
|
9617
|
+
customGroups?: {
|
|
9618
|
+
[k: string]: (string | string[]) | undefined
|
|
9619
|
+
}
|
|
9630
9620
|
}]
|
|
9631
9621
|
// ----- perfectionist/sort-classes -----
|
|
9632
9622
|
type PerfectionistSortClasses = []|[{
|
|
9623
|
+
|
|
9633
9624
|
type?: ("alphabetical" | "natural" | "line-length")
|
|
9634
|
-
|
|
9625
|
+
|
|
9635
9626
|
order?: ("asc" | "desc")
|
|
9636
|
-
|
|
9627
|
+
|
|
9628
|
+
ignoreCase?: boolean
|
|
9629
|
+
|
|
9630
|
+
partitionByComment?: (string[] | boolean | string)
|
|
9631
|
+
|
|
9632
|
+
groups?: (string | string[])[]
|
|
9633
|
+
|
|
9634
|
+
customGroups?: {
|
|
9635
|
+
[k: string]: (string | string[]) | undefined
|
|
9636
|
+
}
|
|
9637
9637
|
}]
|
|
9638
9638
|
// ----- perfectionist/sort-enums -----
|
|
9639
9639
|
type PerfectionistSortEnums = []|[{
|
|
9640
|
-
|
|
9640
|
+
|
|
9641
9641
|
type?: ("alphabetical" | "natural" | "line-length")
|
|
9642
|
-
|
|
9642
|
+
|
|
9643
9643
|
order?: ("asc" | "desc")
|
|
9644
|
+
|
|
9645
|
+
ignoreCase?: boolean
|
|
9646
|
+
|
|
9647
|
+
partitionByComment?: (string[] | boolean | string)
|
|
9644
9648
|
}]
|
|
9645
9649
|
// ----- perfectionist/sort-exports -----
|
|
9646
9650
|
type PerfectionistSortExports = []|[{
|
|
9651
|
+
|
|
9647
9652
|
type?: ("alphabetical" | "natural" | "line-length")
|
|
9653
|
+
|
|
9648
9654
|
order?: ("asc" | "desc")
|
|
9649
|
-
|
|
9655
|
+
|
|
9656
|
+
ignoreCase?: boolean
|
|
9650
9657
|
}]
|
|
9651
9658
|
// ----- perfectionist/sort-imports -----
|
|
9652
9659
|
type PerfectionistSortImports = []|[_PerfectionistSortImportsSortImports]
|
|
9653
9660
|
type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLengthRequiresLineLengthType & {
|
|
9654
|
-
|
|
9661
|
+
|
|
9662
|
+
type?: ("alphabetical" | "natural" | "line-length")
|
|
9663
|
+
|
|
9664
|
+
order?: ("asc" | "desc")
|
|
9665
|
+
|
|
9666
|
+
ignoreCase?: boolean
|
|
9667
|
+
|
|
9668
|
+
internalPattern?: string[]
|
|
9669
|
+
|
|
9670
|
+
newlinesBetween?: ("ignore" | "always" | "never")
|
|
9671
|
+
|
|
9672
|
+
maxLineLength?: number
|
|
9673
|
+
|
|
9674
|
+
groups?: (string | string[])[]
|
|
9675
|
+
|
|
9676
|
+
customGroups?: {
|
|
9655
9677
|
type?: {
|
|
9656
9678
|
[k: string]: unknown | undefined
|
|
9657
9679
|
}
|
|
@@ -9659,13 +9681,8 @@ type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLen
|
|
|
9659
9681
|
[k: string]: unknown | undefined
|
|
9660
9682
|
}
|
|
9661
9683
|
}
|
|
9662
|
-
|
|
9663
|
-
|
|
9664
|
-
"ignore-case"?: boolean
|
|
9665
|
-
groups?: unknown[]
|
|
9666
|
-
"internal-pattern"?: string[]
|
|
9667
|
-
"newlines-between"?: ("ignore" | "always" | "never")
|
|
9668
|
-
"max-line-length"?: number
|
|
9684
|
+
|
|
9685
|
+
environment?: ("node" | "bun")
|
|
9669
9686
|
})
|
|
9670
9687
|
type _PerfectionistSortImportsMaxLineLengthRequiresLineLengthType = ({
|
|
9671
9688
|
[k: string]: unknown | undefined
|
|
@@ -9676,105 +9693,188 @@ interface _PerfectionistSortImports_IsLineLength {
|
|
|
9676
9693
|
}
|
|
9677
9694
|
// ----- perfectionist/sort-interfaces -----
|
|
9678
9695
|
type PerfectionistSortInterfaces = []|[{
|
|
9679
|
-
|
|
9680
|
-
[k: string]: unknown | undefined
|
|
9681
|
-
}
|
|
9682
|
-
"optionality-order"?: ("ignore" | "optional-first" | "required-first")
|
|
9696
|
+
|
|
9683
9697
|
type?: ("alphabetical" | "natural" | "line-length")
|
|
9698
|
+
|
|
9684
9699
|
order?: ("asc" | "desc")
|
|
9685
|
-
|
|
9686
|
-
|
|
9687
|
-
|
|
9688
|
-
|
|
9700
|
+
|
|
9701
|
+
ignoreCase?: boolean
|
|
9702
|
+
|
|
9703
|
+
ignorePattern?: string[]
|
|
9704
|
+
|
|
9705
|
+
partitionByNewLine?: boolean
|
|
9706
|
+
|
|
9707
|
+
groupKind?: ("mixed" | "optional-first" | "required-first")
|
|
9708
|
+
|
|
9709
|
+
groups?: (string | string[])[]
|
|
9710
|
+
|
|
9711
|
+
customGroups?: {
|
|
9712
|
+
[k: string]: (string | string[]) | undefined
|
|
9713
|
+
}
|
|
9689
9714
|
}]
|
|
9690
9715
|
// ----- perfectionist/sort-intersection-types -----
|
|
9691
9716
|
type PerfectionistSortIntersectionTypes = []|[{
|
|
9717
|
+
|
|
9692
9718
|
type?: ("alphabetical" | "natural" | "line-length")
|
|
9719
|
+
|
|
9693
9720
|
order?: ("asc" | "desc")
|
|
9694
|
-
|
|
9721
|
+
|
|
9722
|
+
ignoreCase?: boolean
|
|
9723
|
+
|
|
9724
|
+
groups?: (string | string[])[]
|
|
9695
9725
|
}]
|
|
9696
9726
|
// ----- perfectionist/sort-jsx-props -----
|
|
9697
9727
|
type PerfectionistSortJsxProps = []|[{
|
|
9698
|
-
|
|
9699
|
-
[k: string]: unknown | undefined
|
|
9700
|
-
}
|
|
9728
|
+
|
|
9701
9729
|
type?: ("alphabetical" | "natural" | "line-length")
|
|
9730
|
+
|
|
9702
9731
|
order?: ("asc" | "desc")
|
|
9703
|
-
|
|
9704
|
-
|
|
9732
|
+
|
|
9733
|
+
ignoreCase?: boolean
|
|
9734
|
+
|
|
9735
|
+
ignorePattern?: string[]
|
|
9736
|
+
|
|
9737
|
+
groups?: (string | string[])[]
|
|
9738
|
+
|
|
9739
|
+
customGroups?: {
|
|
9740
|
+
[k: string]: (string | string[]) | undefined
|
|
9741
|
+
}
|
|
9705
9742
|
}]
|
|
9706
9743
|
// ----- perfectionist/sort-maps -----
|
|
9707
9744
|
type PerfectionistSortMaps = []|[{
|
|
9745
|
+
|
|
9708
9746
|
type?: ("alphabetical" | "natural" | "line-length")
|
|
9747
|
+
|
|
9709
9748
|
order?: ("asc" | "desc")
|
|
9710
|
-
|
|
9749
|
+
|
|
9750
|
+
ignoreCase?: boolean
|
|
9711
9751
|
}]
|
|
9712
9752
|
// ----- perfectionist/sort-named-exports -----
|
|
9713
9753
|
type PerfectionistSortNamedExports = []|[{
|
|
9754
|
+
|
|
9714
9755
|
type?: ("alphabetical" | "natural" | "line-length")
|
|
9756
|
+
|
|
9715
9757
|
order?: ("asc" | "desc")
|
|
9716
|
-
|
|
9717
|
-
|
|
9758
|
+
|
|
9759
|
+
ignoreCase?: boolean
|
|
9760
|
+
|
|
9761
|
+
groupKind?: ("mixed" | "values-first" | "types-first")
|
|
9718
9762
|
}]
|
|
9719
9763
|
// ----- perfectionist/sort-named-imports -----
|
|
9720
9764
|
type PerfectionistSortNamedImports = []|[{
|
|
9765
|
+
|
|
9721
9766
|
type?: ("alphabetical" | "natural" | "line-length")
|
|
9767
|
+
|
|
9722
9768
|
order?: ("asc" | "desc")
|
|
9723
|
-
|
|
9724
|
-
|
|
9725
|
-
|
|
9769
|
+
|
|
9770
|
+
ignoreCase?: boolean
|
|
9771
|
+
|
|
9772
|
+
ignoreAlias?: boolean
|
|
9773
|
+
|
|
9774
|
+
groupKind?: ("mixed" | "values-first" | "types-first")
|
|
9726
9775
|
}]
|
|
9727
9776
|
// ----- perfectionist/sort-object-types -----
|
|
9728
9777
|
type PerfectionistSortObjectTypes = []|[{
|
|
9729
|
-
|
|
9730
|
-
[k: string]: unknown | undefined
|
|
9731
|
-
}
|
|
9778
|
+
|
|
9732
9779
|
type?: ("alphabetical" | "natural" | "line-length")
|
|
9780
|
+
|
|
9733
9781
|
order?: ("asc" | "desc")
|
|
9734
|
-
|
|
9735
|
-
|
|
9736
|
-
|
|
9782
|
+
|
|
9783
|
+
ignoreCase?: boolean
|
|
9784
|
+
|
|
9785
|
+
partitionByNewLine?: boolean
|
|
9786
|
+
|
|
9787
|
+
groupKind?: ("mixed" | "required-first" | "optional-first")
|
|
9788
|
+
|
|
9789
|
+
groups?: (string | string[])[]
|
|
9790
|
+
|
|
9791
|
+
customGroups?: {
|
|
9792
|
+
[k: string]: (string | string[]) | undefined
|
|
9793
|
+
}
|
|
9737
9794
|
}]
|
|
9738
9795
|
// ----- perfectionist/sort-objects -----
|
|
9739
9796
|
type PerfectionistSortObjects = []|[{
|
|
9740
|
-
|
|
9741
|
-
[k: string]: unknown | undefined
|
|
9742
|
-
}
|
|
9743
|
-
"partition-by-comment"?: (boolean | string | unknown[])
|
|
9744
|
-
"partition-by-new-line"?: boolean
|
|
9745
|
-
"styled-components"?: boolean
|
|
9797
|
+
|
|
9746
9798
|
type?: ("alphabetical" | "natural" | "line-length")
|
|
9799
|
+
|
|
9747
9800
|
order?: ("asc" | "desc")
|
|
9748
|
-
|
|
9749
|
-
|
|
9750
|
-
|
|
9801
|
+
|
|
9802
|
+
ignoreCase?: boolean
|
|
9803
|
+
|
|
9804
|
+
partitionByComment?: (string[] | boolean | string)
|
|
9805
|
+
|
|
9806
|
+
partitionByNewLine?: boolean
|
|
9807
|
+
|
|
9808
|
+
styledComponents?: boolean
|
|
9809
|
+
|
|
9810
|
+
ignorePattern?: string[]
|
|
9811
|
+
|
|
9812
|
+
customIgnore?: unknown[]
|
|
9813
|
+
|
|
9814
|
+
groups?: (string | string[])[]
|
|
9815
|
+
|
|
9816
|
+
customGroups?: {
|
|
9817
|
+
[k: string]: (string | string[]) | undefined
|
|
9818
|
+
}
|
|
9751
9819
|
}]
|
|
9752
9820
|
// ----- perfectionist/sort-svelte-attributes -----
|
|
9753
9821
|
type PerfectionistSortSvelteAttributes = []|[{
|
|
9754
|
-
|
|
9755
|
-
|
|
9822
|
+
|
|
9823
|
+
type?: ("alphabetical" | "natural" | "line-length")
|
|
9824
|
+
|
|
9825
|
+
order?: ("asc" | "desc")
|
|
9826
|
+
|
|
9827
|
+
ignoreCase?: boolean
|
|
9828
|
+
|
|
9829
|
+
groups?: (string | string[])[]
|
|
9830
|
+
|
|
9831
|
+
customGroups?: {
|
|
9832
|
+
[k: string]: (string | string[]) | undefined
|
|
9756
9833
|
}
|
|
9834
|
+
}]
|
|
9835
|
+
// ----- perfectionist/sort-switch-case -----
|
|
9836
|
+
type PerfectionistSortSwitchCase = []|[{
|
|
9837
|
+
|
|
9757
9838
|
type?: ("alphabetical" | "natural" | "line-length")
|
|
9839
|
+
|
|
9758
9840
|
order?: ("asc" | "desc")
|
|
9759
|
-
|
|
9760
|
-
|
|
9841
|
+
|
|
9842
|
+
ignoreCase?: boolean
|
|
9761
9843
|
}]
|
|
9762
9844
|
// ----- perfectionist/sort-union-types -----
|
|
9763
9845
|
type PerfectionistSortUnionTypes = []|[{
|
|
9846
|
+
|
|
9847
|
+
type?: ("alphabetical" | "natural" | "line-length")
|
|
9848
|
+
|
|
9849
|
+
order?: ("asc" | "desc")
|
|
9850
|
+
|
|
9851
|
+
ignoreCase?: boolean
|
|
9852
|
+
|
|
9853
|
+
groups?: (string | string[])[]
|
|
9854
|
+
}]
|
|
9855
|
+
// ----- perfectionist/sort-variable-declarations -----
|
|
9856
|
+
type PerfectionistSortVariableDeclarations = []|[{
|
|
9857
|
+
|
|
9764
9858
|
type?: ("alphabetical" | "natural" | "line-length")
|
|
9859
|
+
|
|
9765
9860
|
order?: ("asc" | "desc")
|
|
9766
|
-
|
|
9767
|
-
|
|
9861
|
+
|
|
9862
|
+
ignoreCase?: boolean
|
|
9768
9863
|
}]
|
|
9769
9864
|
// ----- perfectionist/sort-vue-attributes -----
|
|
9770
9865
|
type PerfectionistSortVueAttributes = []|[{
|
|
9771
|
-
|
|
9772
|
-
[k: string]: unknown | undefined
|
|
9773
|
-
}
|
|
9866
|
+
|
|
9774
9867
|
type?: ("alphabetical" | "natural" | "line-length")
|
|
9868
|
+
|
|
9775
9869
|
order?: ("asc" | "desc")
|
|
9776
|
-
|
|
9777
|
-
|
|
9870
|
+
|
|
9871
|
+
ignoreCase?: boolean
|
|
9872
|
+
|
|
9873
|
+
groups?: (string | string[])[]
|
|
9874
|
+
|
|
9875
|
+
customGroups?: {
|
|
9876
|
+
[k: string]: (string | string[]) | undefined
|
|
9877
|
+
}
|
|
9778
9878
|
}]
|
|
9779
9879
|
// ----- prefer-arrow-callback -----
|
|
9780
9880
|
type PreferArrowCallback = []|[{
|
|
@@ -10085,6 +10185,7 @@ type StyleArrayElementNewline = []|[(_StyleArrayElementNewlineBasicConfig | {
|
|
|
10085
10185
|
ArrayPattern?: _StyleArrayElementNewlineBasicConfig
|
|
10086
10186
|
})]
|
|
10087
10187
|
type _StyleArrayElementNewlineBasicConfig = (("always" | "never" | "consistent") | {
|
|
10188
|
+
consistent?: boolean
|
|
10088
10189
|
multiline?: boolean
|
|
10089
10190
|
minItems?: (number | null)
|
|
10090
10191
|
})
|
|
@@ -10281,7 +10382,7 @@ type StyleJsxNewline = []|[{
|
|
|
10281
10382
|
}]
|
|
10282
10383
|
// ----- style/jsx-one-expression-per-line -----
|
|
10283
10384
|
type StyleJsxOneExpressionPerLine = []|[{
|
|
10284
|
-
allow?: ("none" | "literal" | "single-child" | "single-line")
|
|
10385
|
+
allow?: ("none" | "literal" | "single-child" | "single-line" | "non-jsx")
|
|
10285
10386
|
}]
|
|
10286
10387
|
// ----- style/jsx-pascal-case -----
|
|
10287
10388
|
type StyleJsxPascalCase = []|[{
|
|
@@ -10914,6 +11015,16 @@ type StyleObjectCurlyNewline = []|[((("always" | "never") | {
|
|
|
10914
11015
|
minProperties?: number
|
|
10915
11016
|
consistent?: boolean
|
|
10916
11017
|
})
|
|
11018
|
+
TSTypeLiteral?: (("always" | "never") | {
|
|
11019
|
+
multiline?: boolean
|
|
11020
|
+
minProperties?: number
|
|
11021
|
+
consistent?: boolean
|
|
11022
|
+
})
|
|
11023
|
+
TSInterfaceBody?: (("always" | "never") | {
|
|
11024
|
+
multiline?: boolean
|
|
11025
|
+
minProperties?: number
|
|
11026
|
+
consistent?: boolean
|
|
11027
|
+
})
|
|
10917
11028
|
})]
|
|
10918
11029
|
// ----- style/object-curly-spacing -----
|
|
10919
11030
|
type StyleObjectCurlySpacing = []|[("always" | "never")]|[("always" | "never"), {
|
|
@@ -10947,7 +11058,7 @@ type StylePaddedBlocks = []|[(("always" | "never") | {
|
|
|
10947
11058
|
}]
|
|
10948
11059
|
// ----- style/padding-line-between-statements -----
|
|
10949
11060
|
type _StylePaddingLineBetweenStatementsPaddingType = ("any" | "never" | "always")
|
|
10950
|
-
type _StylePaddingLineBetweenStatementsStatementType = (("*" | "block-like" | "exports" | "require" | "directive" | "expression" | "iife" | "multiline-block-like" | "multiline-expression" | "multiline-const" | "multiline-let" | "multiline-var" | "singleline-const" | "singleline-let" | "singleline-var" | "block" | "empty" | "function" | "break" | "case" | "class" | "const" | "continue" | "debugger" | "default" | "do" | "export" | "for" | "if" | "import" | "let" | "return" | "switch" | "throw" | "try" | "var" | "while" | "with" | "cjs-export" | "cjs-import" | "interface" | "type" | "function-overload") | [("*" | "block-like" | "exports" | "require" | "directive" | "expression" | "iife" | "multiline-block-like" | "multiline-expression" | "multiline-const" | "multiline-let" | "multiline-var" | "singleline-const" | "singleline-let" | "singleline-var" | "block" | "empty" | "function" | "break" | "case" | "class" | "const" | "continue" | "debugger" | "default" | "do" | "export" | "for" | "if" | "import" | "let" | "return" | "switch" | "throw" | "try" | "var" | "while" | "with" | "cjs-export" | "cjs-import" | "interface" | "type" | "function-overload"), ...(("*" | "block-like" | "exports" | "require" | "directive" | "expression" | "iife" | "multiline-block-like" | "multiline-expression" | "multiline-const" | "multiline-let" | "multiline-var" | "singleline-const" | "singleline-let" | "singleline-var" | "block" | "empty" | "function" | "break" | "case" | "class" | "const" | "continue" | "debugger" | "default" | "do" | "export" | "for" | "if" | "import" | "let" | "return" | "switch" | "throw" | "try" | "var" | "while" | "with" | "cjs-export" | "cjs-import" | "interface" | "type" | "function-overload"))[]])
|
|
11061
|
+
type _StylePaddingLineBetweenStatementsStatementType = (("*" | "block-like" | "exports" | "require" | "directive" | "expression" | "iife" | "multiline-block-like" | "multiline-expression" | "multiline-const" | "multiline-let" | "multiline-var" | "singleline-const" | "singleline-let" | "singleline-var" | "block" | "empty" | "function" | "break" | "case" | "class" | "const" | "continue" | "debugger" | "default" | "do" | "export" | "for" | "if" | "import" | "let" | "return" | "switch" | "throw" | "try" | "var" | "while" | "with" | "cjs-export" | "cjs-import" | "enum" | "interface" | "type" | "function-overload") | [("*" | "block-like" | "exports" | "require" | "directive" | "expression" | "iife" | "multiline-block-like" | "multiline-expression" | "multiline-const" | "multiline-let" | "multiline-var" | "singleline-const" | "singleline-let" | "singleline-var" | "block" | "empty" | "function" | "break" | "case" | "class" | "const" | "continue" | "debugger" | "default" | "do" | "export" | "for" | "if" | "import" | "let" | "return" | "switch" | "throw" | "try" | "var" | "while" | "with" | "cjs-export" | "cjs-import" | "enum" | "interface" | "type" | "function-overload"), ...(("*" | "block-like" | "exports" | "require" | "directive" | "expression" | "iife" | "multiline-block-like" | "multiline-expression" | "multiline-const" | "multiline-let" | "multiline-var" | "singleline-const" | "singleline-let" | "singleline-var" | "block" | "empty" | "function" | "break" | "case" | "class" | "const" | "continue" | "debugger" | "default" | "do" | "export" | "for" | "if" | "import" | "let" | "return" | "switch" | "throw" | "try" | "var" | "while" | "with" | "cjs-export" | "cjs-import" | "enum" | "interface" | "type" | "function-overload"))[]])
|
|
10951
11062
|
type StylePaddingLineBetweenStatements = {
|
|
10952
11063
|
blankLine: _StylePaddingLineBetweenStatementsPaddingType
|
|
10953
11064
|
prev: _StylePaddingLineBetweenStatementsStatementType
|
|
@@ -10963,6 +11074,7 @@ type StyleQuoteProps = ([]|[("always" | "as-needed" | "consistent" | "consistent
|
|
|
10963
11074
|
type StyleQuotes = []|[("single" | "double" | "backtick")]|[("single" | "double" | "backtick"), ("avoid-escape" | {
|
|
10964
11075
|
avoidEscape?: boolean
|
|
10965
11076
|
allowTemplateLiterals?: boolean
|
|
11077
|
+
ignoreStringLiterals?: boolean
|
|
10966
11078
|
})]
|
|
10967
11079
|
// ----- style/rest-spread-spacing -----
|
|
10968
11080
|
type StyleRestSpreadSpacing = []|[("always" | "never")]
|
|
@@ -11309,589 +11421,108 @@ type TsBanTsComment = []|[{
|
|
|
11309
11421
|
})
|
|
11310
11422
|
minimumDescriptionLength?: number
|
|
11311
11423
|
}]
|
|
11312
|
-
// ----- ts/
|
|
11313
|
-
type
|
|
11314
|
-
|
|
11315
|
-
|
|
11316
|
-
|
|
11317
|
-
|
|
11318
|
-
|
|
11319
|
-
|
|
11320
|
-
|
|
11321
|
-
|
|
11322
|
-
|
|
11323
|
-
|
|
11324
|
-
extendDefaults?: boolean
|
|
11325
|
-
}]
|
|
11326
|
-
// ----- ts/block-spacing -----
|
|
11327
|
-
type TsBlockSpacing = []|[("always" | "never")]
|
|
11328
|
-
// ----- ts/brace-style -----
|
|
11329
|
-
type TsBraceStyle = []|[("1tbs" | "stroustrup" | "allman")]|[("1tbs" | "stroustrup" | "allman"), {
|
|
11330
|
-
allowSingleLine?: boolean
|
|
11331
|
-
}]
|
|
11332
|
-
// ----- ts/class-literal-property-style -----
|
|
11333
|
-
type TsClassLiteralPropertyStyle = []|[("fields" | "getters")]
|
|
11334
|
-
// ----- ts/class-methods-use-this -----
|
|
11335
|
-
type TsClassMethodsUseThis = []|[{
|
|
11336
|
-
|
|
11337
|
-
exceptMethods?: string[]
|
|
11338
|
-
|
|
11339
|
-
enforceForClassFields?: boolean
|
|
11340
|
-
|
|
11341
|
-
ignoreOverrideMethods?: boolean
|
|
11342
|
-
|
|
11343
|
-
ignoreClassesThatImplementAnInterface?: (boolean | "public-fields")
|
|
11344
|
-
}]
|
|
11345
|
-
// ----- ts/comma-dangle -----
|
|
11346
|
-
type TsCommaDangle = []|[(_TsCommaDangleValue | {
|
|
11347
|
-
arrays?: _TsCommaDangleValueWithIgnore
|
|
11348
|
-
objects?: _TsCommaDangleValueWithIgnore
|
|
11349
|
-
imports?: _TsCommaDangleValueWithIgnore
|
|
11350
|
-
exports?: _TsCommaDangleValueWithIgnore
|
|
11351
|
-
functions?: _TsCommaDangleValueWithIgnore
|
|
11352
|
-
enums?: _TsCommaDangleValueWithIgnore
|
|
11353
|
-
generics?: _TsCommaDangleValueWithIgnore
|
|
11354
|
-
tuples?: _TsCommaDangleValueWithIgnore
|
|
11355
|
-
})]
|
|
11356
|
-
type _TsCommaDangleValue = ("always-multiline" | "always" | "never" | "only-multiline")
|
|
11357
|
-
type _TsCommaDangleValueWithIgnore = ("always-multiline" | "always" | "never" | "only-multiline" | "ignore")
|
|
11358
|
-
// ----- ts/comma-spacing -----
|
|
11359
|
-
type TsCommaSpacing = []|[{
|
|
11360
|
-
before?: boolean
|
|
11361
|
-
after?: boolean
|
|
11362
|
-
}]
|
|
11363
|
-
// ----- ts/consistent-generic-constructors -----
|
|
11364
|
-
type TsConsistentGenericConstructors = []|[("type-annotation" | "constructor")]
|
|
11365
|
-
// ----- ts/consistent-indexed-object-style -----
|
|
11366
|
-
type TsConsistentIndexedObjectStyle = []|[("record" | "index-signature")]
|
|
11367
|
-
// ----- ts/consistent-return -----
|
|
11368
|
-
type TsConsistentReturn = []|[{
|
|
11369
|
-
treatUndefinedAsUnspecified?: boolean
|
|
11370
|
-
}]
|
|
11371
|
-
// ----- ts/consistent-type-assertions -----
|
|
11372
|
-
type TsConsistentTypeAssertions = []|[({
|
|
11373
|
-
assertionStyle: "never"
|
|
11374
|
-
} | {
|
|
11375
|
-
assertionStyle: ("as" | "angle-bracket")
|
|
11376
|
-
objectLiteralTypeAssertions?: ("allow" | "allow-as-parameter" | "never")
|
|
11377
|
-
})]
|
|
11378
|
-
// ----- ts/consistent-type-definitions -----
|
|
11379
|
-
type TsConsistentTypeDefinitions = []|[("interface" | "type")]
|
|
11380
|
-
// ----- ts/consistent-type-exports -----
|
|
11381
|
-
type TsConsistentTypeExports = []|[{
|
|
11382
|
-
fixMixedExportsWithInlineTypeSpecifier?: boolean
|
|
11383
|
-
}]
|
|
11384
|
-
// ----- ts/consistent-type-imports -----
|
|
11385
|
-
type TsConsistentTypeImports = []|[{
|
|
11386
|
-
disallowTypeAnnotations?: boolean
|
|
11387
|
-
fixStyle?: ("separate-type-imports" | "inline-type-imports")
|
|
11388
|
-
prefer?: ("type-imports" | "no-type-imports")
|
|
11389
|
-
}]
|
|
11390
|
-
// ----- ts/dot-notation -----
|
|
11391
|
-
type TsDotNotation = []|[{
|
|
11392
|
-
allowKeywords?: boolean
|
|
11393
|
-
allowPattern?: string
|
|
11394
|
-
allowPrivateClassPropertyAccess?: boolean
|
|
11395
|
-
allowProtectedClassPropertyAccess?: boolean
|
|
11396
|
-
allowIndexSignaturePropertyAccess?: boolean
|
|
11397
|
-
}]
|
|
11398
|
-
// ----- ts/explicit-function-return-type -----
|
|
11399
|
-
type TsExplicitFunctionReturnType = []|[{
|
|
11400
|
-
|
|
11401
|
-
allowConciseArrowFunctionExpressionsStartingWithVoid?: boolean
|
|
11402
|
-
|
|
11403
|
-
allowExpressions?: boolean
|
|
11404
|
-
|
|
11405
|
-
allowHigherOrderFunctions?: boolean
|
|
11406
|
-
|
|
11407
|
-
allowTypedFunctionExpressions?: boolean
|
|
11408
|
-
|
|
11409
|
-
allowDirectConstAssertionInArrowFunctions?: boolean
|
|
11410
|
-
|
|
11411
|
-
allowFunctionsWithoutTypeParameters?: boolean
|
|
11412
|
-
|
|
11413
|
-
allowedNames?: string[]
|
|
11414
|
-
|
|
11415
|
-
allowIIFEs?: boolean
|
|
11416
|
-
}]
|
|
11417
|
-
// ----- ts/explicit-member-accessibility -----
|
|
11418
|
-
type TsExplicitMemberAccessibility = []|[{
|
|
11419
|
-
accessibility?: ("explicit" | "no-public" | "off")
|
|
11420
|
-
overrides?: {
|
|
11421
|
-
accessors?: ("explicit" | "no-public" | "off")
|
|
11422
|
-
constructors?: ("explicit" | "no-public" | "off")
|
|
11423
|
-
methods?: ("explicit" | "no-public" | "off")
|
|
11424
|
-
properties?: ("explicit" | "no-public" | "off")
|
|
11425
|
-
parameterProperties?: ("explicit" | "no-public" | "off")
|
|
11426
|
-
}
|
|
11427
|
-
ignoredMethodNames?: string[]
|
|
11428
|
-
}]
|
|
11429
|
-
// ----- ts/explicit-module-boundary-types -----
|
|
11430
|
-
type TsExplicitModuleBoundaryTypes = []|[{
|
|
11431
|
-
|
|
11432
|
-
allowArgumentsExplicitlyTypedAsAny?: boolean
|
|
11433
|
-
|
|
11434
|
-
allowDirectConstAssertionInArrowFunctions?: boolean
|
|
11435
|
-
|
|
11436
|
-
allowedNames?: string[]
|
|
11437
|
-
|
|
11438
|
-
allowHigherOrderFunctions?: boolean
|
|
11439
|
-
|
|
11440
|
-
allowTypedFunctionExpressions?: boolean
|
|
11441
|
-
}]
|
|
11442
|
-
// ----- ts/func-call-spacing -----
|
|
11443
|
-
type TsFuncCallSpacing = ([]|["never"] | []|["always"]|["always", {
|
|
11444
|
-
allowNewlines?: boolean
|
|
11445
|
-
}])
|
|
11446
|
-
// ----- ts/indent -----
|
|
11447
|
-
type TsIndent = []|[("tab" | number)]|[("tab" | number), {
|
|
11448
|
-
SwitchCase?: number
|
|
11449
|
-
VariableDeclarator?: ((number | ("first" | "off")) | {
|
|
11450
|
-
var?: (number | ("first" | "off"))
|
|
11451
|
-
let?: (number | ("first" | "off"))
|
|
11452
|
-
const?: (number | ("first" | "off"))
|
|
11453
|
-
})
|
|
11454
|
-
outerIIFEBody?: (number | "off")
|
|
11455
|
-
MemberExpression?: (number | "off")
|
|
11456
|
-
FunctionDeclaration?: {
|
|
11457
|
-
parameters?: (number | ("first" | "off"))
|
|
11458
|
-
body?: number
|
|
11459
|
-
}
|
|
11460
|
-
FunctionExpression?: {
|
|
11461
|
-
parameters?: (number | ("first" | "off"))
|
|
11462
|
-
body?: number
|
|
11463
|
-
}
|
|
11464
|
-
StaticBlock?: {
|
|
11465
|
-
body?: number
|
|
11466
|
-
}
|
|
11467
|
-
CallExpression?: {
|
|
11468
|
-
arguments?: (number | ("first" | "off"))
|
|
11469
|
-
}
|
|
11470
|
-
ArrayExpression?: (number | ("first" | "off"))
|
|
11471
|
-
ObjectExpression?: (number | ("first" | "off"))
|
|
11472
|
-
ImportDeclaration?: (number | ("first" | "off"))
|
|
11473
|
-
flatTernaryExpressions?: boolean
|
|
11474
|
-
offsetTernaryExpressions?: boolean
|
|
11475
|
-
ignoredNodes?: string[]
|
|
11476
|
-
ignoreComments?: boolean
|
|
11477
|
-
}]
|
|
11478
|
-
// ----- ts/init-declarations -----
|
|
11479
|
-
type TsInitDeclarations = ([]|["always"] | []|["never"]|["never", {
|
|
11480
|
-
ignoreForLoopInit?: boolean
|
|
11481
|
-
}])
|
|
11482
|
-
// ----- ts/key-spacing -----
|
|
11483
|
-
type TsKeySpacing = []|[({
|
|
11484
|
-
align?: (("colon" | "value") | {
|
|
11485
|
-
mode?: ("strict" | "minimum")
|
|
11486
|
-
on?: ("colon" | "value")
|
|
11487
|
-
beforeColon?: boolean
|
|
11488
|
-
afterColon?: boolean
|
|
11489
|
-
})
|
|
11490
|
-
mode?: ("strict" | "minimum")
|
|
11491
|
-
beforeColon?: boolean
|
|
11492
|
-
afterColon?: boolean
|
|
11493
|
-
} | {
|
|
11494
|
-
singleLine?: {
|
|
11495
|
-
mode?: ("strict" | "minimum")
|
|
11496
|
-
beforeColon?: boolean
|
|
11497
|
-
afterColon?: boolean
|
|
11498
|
-
}
|
|
11499
|
-
multiLine?: {
|
|
11500
|
-
align?: (("colon" | "value") | {
|
|
11501
|
-
mode?: ("strict" | "minimum")
|
|
11502
|
-
on?: ("colon" | "value")
|
|
11503
|
-
beforeColon?: boolean
|
|
11504
|
-
afterColon?: boolean
|
|
11505
|
-
})
|
|
11506
|
-
mode?: ("strict" | "minimum")
|
|
11507
|
-
beforeColon?: boolean
|
|
11508
|
-
afterColon?: boolean
|
|
11509
|
-
}
|
|
11510
|
-
} | {
|
|
11511
|
-
singleLine?: {
|
|
11512
|
-
mode?: ("strict" | "minimum")
|
|
11513
|
-
beforeColon?: boolean
|
|
11514
|
-
afterColon?: boolean
|
|
11515
|
-
}
|
|
11516
|
-
multiLine?: {
|
|
11517
|
-
mode?: ("strict" | "minimum")
|
|
11518
|
-
beforeColon?: boolean
|
|
11519
|
-
afterColon?: boolean
|
|
11520
|
-
}
|
|
11521
|
-
align?: {
|
|
11522
|
-
mode?: ("strict" | "minimum")
|
|
11523
|
-
on?: ("colon" | "value")
|
|
11524
|
-
beforeColon?: boolean
|
|
11525
|
-
afterColon?: boolean
|
|
11526
|
-
}
|
|
11527
|
-
})]
|
|
11528
|
-
// ----- ts/keyword-spacing -----
|
|
11529
|
-
type TsKeywordSpacing = []|[{
|
|
11530
|
-
before?: boolean
|
|
11531
|
-
after?: boolean
|
|
11532
|
-
overrides?: {
|
|
11533
|
-
abstract?: {
|
|
11534
|
-
before?: boolean
|
|
11535
|
-
after?: boolean
|
|
11536
|
-
}
|
|
11537
|
-
as?: {
|
|
11538
|
-
before?: boolean
|
|
11539
|
-
after?: boolean
|
|
11540
|
-
}
|
|
11541
|
-
async?: {
|
|
11542
|
-
before?: boolean
|
|
11543
|
-
after?: boolean
|
|
11544
|
-
}
|
|
11545
|
-
await?: {
|
|
11546
|
-
before?: boolean
|
|
11547
|
-
after?: boolean
|
|
11548
|
-
}
|
|
11549
|
-
boolean?: {
|
|
11550
|
-
before?: boolean
|
|
11551
|
-
after?: boolean
|
|
11552
|
-
}
|
|
11553
|
-
break?: {
|
|
11554
|
-
before?: boolean
|
|
11555
|
-
after?: boolean
|
|
11556
|
-
}
|
|
11557
|
-
byte?: {
|
|
11558
|
-
before?: boolean
|
|
11559
|
-
after?: boolean
|
|
11560
|
-
}
|
|
11561
|
-
case?: {
|
|
11562
|
-
before?: boolean
|
|
11563
|
-
after?: boolean
|
|
11564
|
-
}
|
|
11565
|
-
catch?: {
|
|
11566
|
-
before?: boolean
|
|
11567
|
-
after?: boolean
|
|
11568
|
-
}
|
|
11569
|
-
char?: {
|
|
11570
|
-
before?: boolean
|
|
11571
|
-
after?: boolean
|
|
11572
|
-
}
|
|
11573
|
-
class?: {
|
|
11574
|
-
before?: boolean
|
|
11575
|
-
after?: boolean
|
|
11576
|
-
}
|
|
11577
|
-
const?: {
|
|
11578
|
-
before?: boolean
|
|
11579
|
-
after?: boolean
|
|
11580
|
-
}
|
|
11581
|
-
continue?: {
|
|
11582
|
-
before?: boolean
|
|
11583
|
-
after?: boolean
|
|
11584
|
-
}
|
|
11585
|
-
debugger?: {
|
|
11586
|
-
before?: boolean
|
|
11587
|
-
after?: boolean
|
|
11588
|
-
}
|
|
11589
|
-
default?: {
|
|
11590
|
-
before?: boolean
|
|
11591
|
-
after?: boolean
|
|
11592
|
-
}
|
|
11593
|
-
delete?: {
|
|
11594
|
-
before?: boolean
|
|
11595
|
-
after?: boolean
|
|
11596
|
-
}
|
|
11597
|
-
do?: {
|
|
11598
|
-
before?: boolean
|
|
11599
|
-
after?: boolean
|
|
11600
|
-
}
|
|
11601
|
-
double?: {
|
|
11602
|
-
before?: boolean
|
|
11603
|
-
after?: boolean
|
|
11604
|
-
}
|
|
11605
|
-
else?: {
|
|
11606
|
-
before?: boolean
|
|
11607
|
-
after?: boolean
|
|
11608
|
-
}
|
|
11609
|
-
enum?: {
|
|
11610
|
-
before?: boolean
|
|
11611
|
-
after?: boolean
|
|
11612
|
-
}
|
|
11613
|
-
export?: {
|
|
11614
|
-
before?: boolean
|
|
11615
|
-
after?: boolean
|
|
11616
|
-
}
|
|
11617
|
-
extends?: {
|
|
11618
|
-
before?: boolean
|
|
11619
|
-
after?: boolean
|
|
11620
|
-
}
|
|
11621
|
-
false?: {
|
|
11622
|
-
before?: boolean
|
|
11623
|
-
after?: boolean
|
|
11624
|
-
}
|
|
11625
|
-
final?: {
|
|
11626
|
-
before?: boolean
|
|
11627
|
-
after?: boolean
|
|
11628
|
-
}
|
|
11629
|
-
finally?: {
|
|
11630
|
-
before?: boolean
|
|
11631
|
-
after?: boolean
|
|
11632
|
-
}
|
|
11633
|
-
float?: {
|
|
11634
|
-
before?: boolean
|
|
11635
|
-
after?: boolean
|
|
11636
|
-
}
|
|
11637
|
-
for?: {
|
|
11638
|
-
before?: boolean
|
|
11639
|
-
after?: boolean
|
|
11640
|
-
}
|
|
11641
|
-
from?: {
|
|
11642
|
-
before?: boolean
|
|
11643
|
-
after?: boolean
|
|
11644
|
-
}
|
|
11645
|
-
function?: {
|
|
11646
|
-
before?: boolean
|
|
11647
|
-
after?: boolean
|
|
11648
|
-
}
|
|
11649
|
-
get?: {
|
|
11650
|
-
before?: boolean
|
|
11651
|
-
after?: boolean
|
|
11652
|
-
}
|
|
11653
|
-
goto?: {
|
|
11654
|
-
before?: boolean
|
|
11655
|
-
after?: boolean
|
|
11656
|
-
}
|
|
11657
|
-
if?: {
|
|
11658
|
-
before?: boolean
|
|
11659
|
-
after?: boolean
|
|
11660
|
-
}
|
|
11661
|
-
implements?: {
|
|
11662
|
-
before?: boolean
|
|
11663
|
-
after?: boolean
|
|
11664
|
-
}
|
|
11665
|
-
import?: {
|
|
11666
|
-
before?: boolean
|
|
11667
|
-
after?: boolean
|
|
11668
|
-
}
|
|
11669
|
-
in?: {
|
|
11670
|
-
before?: boolean
|
|
11671
|
-
after?: boolean
|
|
11672
|
-
}
|
|
11673
|
-
instanceof?: {
|
|
11674
|
-
before?: boolean
|
|
11675
|
-
after?: boolean
|
|
11676
|
-
}
|
|
11677
|
-
int?: {
|
|
11678
|
-
before?: boolean
|
|
11679
|
-
after?: boolean
|
|
11680
|
-
}
|
|
11681
|
-
interface?: {
|
|
11682
|
-
before?: boolean
|
|
11683
|
-
after?: boolean
|
|
11684
|
-
}
|
|
11685
|
-
let?: {
|
|
11686
|
-
before?: boolean
|
|
11687
|
-
after?: boolean
|
|
11688
|
-
}
|
|
11689
|
-
long?: {
|
|
11690
|
-
before?: boolean
|
|
11691
|
-
after?: boolean
|
|
11692
|
-
}
|
|
11693
|
-
native?: {
|
|
11694
|
-
before?: boolean
|
|
11695
|
-
after?: boolean
|
|
11696
|
-
}
|
|
11697
|
-
new?: {
|
|
11698
|
-
before?: boolean
|
|
11699
|
-
after?: boolean
|
|
11700
|
-
}
|
|
11701
|
-
null?: {
|
|
11702
|
-
before?: boolean
|
|
11703
|
-
after?: boolean
|
|
11704
|
-
}
|
|
11705
|
-
of?: {
|
|
11706
|
-
before?: boolean
|
|
11707
|
-
after?: boolean
|
|
11708
|
-
}
|
|
11709
|
-
package?: {
|
|
11710
|
-
before?: boolean
|
|
11711
|
-
after?: boolean
|
|
11712
|
-
}
|
|
11713
|
-
private?: {
|
|
11714
|
-
before?: boolean
|
|
11715
|
-
after?: boolean
|
|
11716
|
-
}
|
|
11717
|
-
protected?: {
|
|
11718
|
-
before?: boolean
|
|
11719
|
-
after?: boolean
|
|
11720
|
-
}
|
|
11721
|
-
public?: {
|
|
11722
|
-
before?: boolean
|
|
11723
|
-
after?: boolean
|
|
11724
|
-
}
|
|
11725
|
-
return?: {
|
|
11726
|
-
before?: boolean
|
|
11727
|
-
after?: boolean
|
|
11728
|
-
}
|
|
11729
|
-
set?: {
|
|
11730
|
-
before?: boolean
|
|
11731
|
-
after?: boolean
|
|
11732
|
-
}
|
|
11733
|
-
short?: {
|
|
11734
|
-
before?: boolean
|
|
11735
|
-
after?: boolean
|
|
11736
|
-
}
|
|
11737
|
-
static?: {
|
|
11738
|
-
before?: boolean
|
|
11739
|
-
after?: boolean
|
|
11740
|
-
}
|
|
11741
|
-
super?: {
|
|
11742
|
-
before?: boolean
|
|
11743
|
-
after?: boolean
|
|
11744
|
-
}
|
|
11745
|
-
switch?: {
|
|
11746
|
-
before?: boolean
|
|
11747
|
-
after?: boolean
|
|
11748
|
-
}
|
|
11749
|
-
synchronized?: {
|
|
11750
|
-
before?: boolean
|
|
11751
|
-
after?: boolean
|
|
11752
|
-
}
|
|
11753
|
-
this?: {
|
|
11754
|
-
before?: boolean
|
|
11755
|
-
after?: boolean
|
|
11756
|
-
}
|
|
11757
|
-
throw?: {
|
|
11758
|
-
before?: boolean
|
|
11759
|
-
after?: boolean
|
|
11760
|
-
}
|
|
11761
|
-
throws?: {
|
|
11762
|
-
before?: boolean
|
|
11763
|
-
after?: boolean
|
|
11764
|
-
}
|
|
11765
|
-
transient?: {
|
|
11766
|
-
before?: boolean
|
|
11767
|
-
after?: boolean
|
|
11768
|
-
}
|
|
11769
|
-
true?: {
|
|
11770
|
-
before?: boolean
|
|
11771
|
-
after?: boolean
|
|
11772
|
-
}
|
|
11773
|
-
try?: {
|
|
11774
|
-
before?: boolean
|
|
11775
|
-
after?: boolean
|
|
11776
|
-
}
|
|
11777
|
-
typeof?: {
|
|
11778
|
-
before?: boolean
|
|
11779
|
-
after?: boolean
|
|
11780
|
-
}
|
|
11781
|
-
var?: {
|
|
11782
|
-
before?: boolean
|
|
11783
|
-
after?: boolean
|
|
11784
|
-
}
|
|
11785
|
-
void?: {
|
|
11786
|
-
before?: boolean
|
|
11787
|
-
after?: boolean
|
|
11788
|
-
}
|
|
11789
|
-
volatile?: {
|
|
11790
|
-
before?: boolean
|
|
11791
|
-
after?: boolean
|
|
11792
|
-
}
|
|
11793
|
-
while?: {
|
|
11794
|
-
before?: boolean
|
|
11795
|
-
after?: boolean
|
|
11796
|
-
}
|
|
11797
|
-
with?: {
|
|
11798
|
-
before?: boolean
|
|
11799
|
-
after?: boolean
|
|
11800
|
-
}
|
|
11801
|
-
yield?: {
|
|
11802
|
-
before?: boolean
|
|
11803
|
-
after?: boolean
|
|
11804
|
-
}
|
|
11805
|
-
type?: {
|
|
11806
|
-
before?: boolean
|
|
11807
|
-
after?: boolean
|
|
11808
|
-
}
|
|
11809
|
-
}
|
|
11424
|
+
// ----- ts/class-literal-property-style -----
|
|
11425
|
+
type TsClassLiteralPropertyStyle = []|[("fields" | "getters")]
|
|
11426
|
+
// ----- ts/class-methods-use-this -----
|
|
11427
|
+
type TsClassMethodsUseThis = []|[{
|
|
11428
|
+
|
|
11429
|
+
exceptMethods?: string[]
|
|
11430
|
+
|
|
11431
|
+
enforceForClassFields?: boolean
|
|
11432
|
+
|
|
11433
|
+
ignoreOverrideMethods?: boolean
|
|
11434
|
+
|
|
11435
|
+
ignoreClassesThatImplementAnInterface?: (boolean | "public-fields")
|
|
11810
11436
|
}]
|
|
11811
|
-
// ----- ts/
|
|
11812
|
-
type
|
|
11813
|
-
|
|
11814
|
-
|
|
11815
|
-
|
|
11816
|
-
|
|
11817
|
-
|
|
11818
|
-
|
|
11819
|
-
|
|
11820
|
-
|
|
11821
|
-
|
|
11822
|
-
|
|
11823
|
-
|
|
11824
|
-
|
|
11825
|
-
|
|
11826
|
-
|
|
11827
|
-
|
|
11828
|
-
|
|
11829
|
-
|
|
11830
|
-
|
|
11831
|
-
|
|
11832
|
-
|
|
11833
|
-
|
|
11834
|
-
|
|
11437
|
+
// ----- ts/consistent-generic-constructors -----
|
|
11438
|
+
type TsConsistentGenericConstructors = []|[("type-annotation" | "constructor")]
|
|
11439
|
+
// ----- ts/consistent-indexed-object-style -----
|
|
11440
|
+
type TsConsistentIndexedObjectStyle = []|[("record" | "index-signature")]
|
|
11441
|
+
// ----- ts/consistent-return -----
|
|
11442
|
+
type TsConsistentReturn = []|[{
|
|
11443
|
+
treatUndefinedAsUnspecified?: boolean
|
|
11444
|
+
}]
|
|
11445
|
+
// ----- ts/consistent-type-assertions -----
|
|
11446
|
+
type TsConsistentTypeAssertions = []|[({
|
|
11447
|
+
assertionStyle: "never"
|
|
11448
|
+
} | {
|
|
11449
|
+
assertionStyle: ("as" | "angle-bracket")
|
|
11450
|
+
objectLiteralTypeAssertions?: ("allow" | "allow-as-parameter" | "never")
|
|
11451
|
+
})]
|
|
11452
|
+
// ----- ts/consistent-type-definitions -----
|
|
11453
|
+
type TsConsistentTypeDefinitions = []|[("interface" | "type")]
|
|
11454
|
+
// ----- ts/consistent-type-exports -----
|
|
11455
|
+
type TsConsistentTypeExports = []|[{
|
|
11456
|
+
fixMixedExportsWithInlineTypeSpecifier?: boolean
|
|
11457
|
+
}]
|
|
11458
|
+
// ----- ts/consistent-type-imports -----
|
|
11459
|
+
type TsConsistentTypeImports = []|[{
|
|
11460
|
+
disallowTypeAnnotations?: boolean
|
|
11461
|
+
fixStyle?: ("separate-type-imports" | "inline-type-imports")
|
|
11462
|
+
prefer?: ("type-imports" | "no-type-imports")
|
|
11463
|
+
}]
|
|
11464
|
+
// ----- ts/dot-notation -----
|
|
11465
|
+
type TsDotNotation = []|[{
|
|
11466
|
+
allowKeywords?: boolean
|
|
11467
|
+
allowPattern?: string
|
|
11468
|
+
allowPrivateClassPropertyAccess?: boolean
|
|
11469
|
+
allowProtectedClassPropertyAccess?: boolean
|
|
11470
|
+
allowIndexSignaturePropertyAccess?: boolean
|
|
11835
11471
|
}]
|
|
11836
|
-
// ----- ts/
|
|
11837
|
-
type
|
|
11472
|
+
// ----- ts/explicit-function-return-type -----
|
|
11473
|
+
type TsExplicitFunctionReturnType = []|[{
|
|
11838
11474
|
|
|
11839
|
-
|
|
11840
|
-
blankLine: ("always" | "never")
|
|
11841
|
-
prev: ("method" | "field" | "*")
|
|
11842
|
-
next: ("method" | "field" | "*")
|
|
11843
|
-
}, ...({
|
|
11844
|
-
blankLine: ("always" | "never")
|
|
11845
|
-
prev: ("method" | "field" | "*")
|
|
11846
|
-
next: ("method" | "field" | "*")
|
|
11847
|
-
})[]]
|
|
11848
|
-
} | ("always" | "never"))]|[({
|
|
11475
|
+
allowConciseArrowFunctionExpressionsStartingWithVoid?: boolean
|
|
11849
11476
|
|
|
11850
|
-
|
|
11851
|
-
|
|
11852
|
-
|
|
11853
|
-
|
|
11854
|
-
|
|
11855
|
-
|
|
11856
|
-
|
|
11857
|
-
|
|
11858
|
-
|
|
11859
|
-
|
|
11860
|
-
|
|
11861
|
-
|
|
11477
|
+
allowExpressions?: boolean
|
|
11478
|
+
|
|
11479
|
+
allowHigherOrderFunctions?: boolean
|
|
11480
|
+
|
|
11481
|
+
allowTypedFunctionExpressions?: boolean
|
|
11482
|
+
|
|
11483
|
+
allowDirectConstAssertionInArrowFunctions?: boolean
|
|
11484
|
+
|
|
11485
|
+
allowFunctionsWithoutTypeParameters?: boolean
|
|
11486
|
+
|
|
11487
|
+
allowedNames?: string[]
|
|
11488
|
+
|
|
11489
|
+
allowIIFEs?: boolean
|
|
11490
|
+
}]
|
|
11491
|
+
// ----- ts/explicit-member-accessibility -----
|
|
11492
|
+
type TsExplicitMemberAccessibility = []|[{
|
|
11493
|
+
accessibility?: ("explicit" | "no-public" | "off")
|
|
11494
|
+
overrides?: {
|
|
11495
|
+
accessors?: ("explicit" | "no-public" | "off")
|
|
11496
|
+
constructors?: ("explicit" | "no-public" | "off")
|
|
11497
|
+
methods?: ("explicit" | "no-public" | "off")
|
|
11498
|
+
properties?: ("explicit" | "no-public" | "off")
|
|
11499
|
+
parameterProperties?: ("explicit" | "no-public" | "off")
|
|
11500
|
+
}
|
|
11501
|
+
ignoredMethodNames?: string[]
|
|
11502
|
+
}]
|
|
11503
|
+
// ----- ts/explicit-module-boundary-types -----
|
|
11504
|
+
type TsExplicitModuleBoundaryTypes = []|[{
|
|
11505
|
+
|
|
11506
|
+
allowArgumentsExplicitlyTypedAsAny?: boolean
|
|
11507
|
+
|
|
11508
|
+
allowDirectConstAssertionInArrowFunctions?: boolean
|
|
11509
|
+
|
|
11510
|
+
allowedNames?: string[]
|
|
11511
|
+
|
|
11512
|
+
allowHigherOrderFunctions?: boolean
|
|
11513
|
+
|
|
11514
|
+
allowTypedFunctionExpressions?: boolean
|
|
11862
11515
|
}]
|
|
11516
|
+
// ----- ts/init-declarations -----
|
|
11517
|
+
type TsInitDeclarations = ([]|["always"] | []|["never"]|["never", {
|
|
11518
|
+
ignoreForLoopInit?: boolean
|
|
11519
|
+
}])
|
|
11863
11520
|
// ----- ts/max-params -----
|
|
11864
11521
|
type TsMaxParams = []|[{
|
|
11865
11522
|
maximum?: number
|
|
11866
11523
|
max?: number
|
|
11867
11524
|
countVoidThis?: boolean
|
|
11868
11525
|
}]
|
|
11869
|
-
// ----- ts/member-delimiter-style -----
|
|
11870
|
-
type TsMemberDelimiterStyle = []|[{
|
|
11871
|
-
multiline?: {
|
|
11872
|
-
delimiter?: ("none" | "semi" | "comma")
|
|
11873
|
-
requireLast?: boolean
|
|
11874
|
-
}
|
|
11875
|
-
singleline?: {
|
|
11876
|
-
delimiter?: ("semi" | "comma")
|
|
11877
|
-
requireLast?: boolean
|
|
11878
|
-
}
|
|
11879
|
-
overrides?: {
|
|
11880
|
-
interface?: _TsMemberDelimiterStyle_DelimiterConfig
|
|
11881
|
-
typeLiteral?: _TsMemberDelimiterStyle_DelimiterConfig
|
|
11882
|
-
}
|
|
11883
|
-
multilineDetection?: ("brackets" | "last-member")
|
|
11884
|
-
}]
|
|
11885
|
-
interface _TsMemberDelimiterStyle_DelimiterConfig {
|
|
11886
|
-
multiline?: {
|
|
11887
|
-
delimiter?: ("none" | "semi" | "comma")
|
|
11888
|
-
requireLast?: boolean
|
|
11889
|
-
}
|
|
11890
|
-
singleline?: {
|
|
11891
|
-
delimiter?: ("semi" | "comma")
|
|
11892
|
-
requireLast?: boolean
|
|
11893
|
-
}
|
|
11894
|
-
}
|
|
11895
11526
|
// ----- ts/member-ordering -----
|
|
11896
11527
|
type TsMemberOrdering = []|[{
|
|
11897
11528
|
default?: ("never" | (("readonly-signature" | "signature" | "readonly-field" | "public-readonly-field" | "public-decorated-readonly-field" | "decorated-readonly-field" | "static-readonly-field" | "public-static-readonly-field" | "instance-readonly-field" | "public-instance-readonly-field" | "abstract-readonly-field" | "public-abstract-readonly-field" | "protected-readonly-field" | "protected-decorated-readonly-field" | "protected-static-readonly-field" | "protected-instance-readonly-field" | "protected-abstract-readonly-field" | "private-readonly-field" | "private-decorated-readonly-field" | "private-static-readonly-field" | "private-instance-readonly-field" | "#private-readonly-field" | "#private-static-readonly-field" | "#private-instance-readonly-field" | "field" | "public-field" | "public-decorated-field" | "decorated-field" | "static-field" | "public-static-field" | "instance-field" | "public-instance-field" | "abstract-field" | "public-abstract-field" | "protected-field" | "protected-decorated-field" | "protected-static-field" | "protected-instance-field" | "protected-abstract-field" | "private-field" | "private-decorated-field" | "private-static-field" | "private-instance-field" | "#private-field" | "#private-static-field" | "#private-instance-field" | "method" | "public-method" | "public-decorated-method" | "decorated-method" | "static-method" | "public-static-method" | "instance-method" | "public-instance-method" | "abstract-method" | "public-abstract-method" | "protected-method" | "protected-decorated-method" | "protected-static-method" | "protected-instance-method" | "protected-abstract-method" | "private-method" | "private-decorated-method" | "private-static-method" | "private-instance-method" | "#private-method" | "#private-static-method" | "#private-instance-method" | "call-signature" | "constructor" | "public-constructor" | "protected-constructor" | "private-constructor" | "accessor" | "public-accessor" | "public-decorated-accessor" | "decorated-accessor" | "static-accessor" | "public-static-accessor" | "instance-accessor" | "public-instance-accessor" | "abstract-accessor" | "public-abstract-accessor" | "protected-accessor" | "protected-decorated-accessor" | "protected-static-accessor" | "protected-instance-accessor" | "protected-abstract-accessor" | "private-accessor" | "private-decorated-accessor" | "private-static-accessor" | "private-instance-accessor" | "#private-accessor" | "#private-static-accessor" | "#private-instance-accessor" | "get" | "public-get" | "public-decorated-get" | "decorated-get" | "static-get" | "public-static-get" | "instance-get" | "public-instance-get" | "abstract-get" | "public-abstract-get" | "protected-get" | "protected-decorated-get" | "protected-static-get" | "protected-instance-get" | "protected-abstract-get" | "private-get" | "private-decorated-get" | "private-static-get" | "private-instance-get" | "#private-get" | "#private-static-get" | "#private-instance-get" | "set" | "public-set" | "public-decorated-set" | "decorated-set" | "static-set" | "public-static-set" | "instance-set" | "public-instance-set" | "abstract-set" | "public-abstract-set" | "protected-set" | "protected-decorated-set" | "protected-static-set" | "protected-instance-set" | "protected-abstract-set" | "private-set" | "private-decorated-set" | "private-static-set" | "private-instance-set" | "#private-set" | "#private-static-set" | "#private-instance-set" | "static-initialization" | "static-static-initialization" | "public-static-static-initialization" | "instance-static-initialization" | "public-instance-static-initialization" | "abstract-static-initialization" | "public-abstract-static-initialization" | "protected-static-static-initialization" | "protected-instance-static-initialization" | "protected-abstract-static-initialization" | "private-static-static-initialization" | "private-instance-static-initialization" | "#private-static-static-initialization" | "#private-instance-static-initialization") | ("readonly-signature" | "signature" | "readonly-field" | "public-readonly-field" | "public-decorated-readonly-field" | "decorated-readonly-field" | "static-readonly-field" | "public-static-readonly-field" | "instance-readonly-field" | "public-instance-readonly-field" | "abstract-readonly-field" | "public-abstract-readonly-field" | "protected-readonly-field" | "protected-decorated-readonly-field" | "protected-static-readonly-field" | "protected-instance-readonly-field" | "protected-abstract-readonly-field" | "private-readonly-field" | "private-decorated-readonly-field" | "private-static-readonly-field" | "private-instance-readonly-field" | "#private-readonly-field" | "#private-static-readonly-field" | "#private-instance-readonly-field" | "field" | "public-field" | "public-decorated-field" | "decorated-field" | "static-field" | "public-static-field" | "instance-field" | "public-instance-field" | "abstract-field" | "public-abstract-field" | "protected-field" | "protected-decorated-field" | "protected-static-field" | "protected-instance-field" | "protected-abstract-field" | "private-field" | "private-decorated-field" | "private-static-field" | "private-instance-field" | "#private-field" | "#private-static-field" | "#private-instance-field" | "method" | "public-method" | "public-decorated-method" | "decorated-method" | "static-method" | "public-static-method" | "instance-method" | "public-instance-method" | "abstract-method" | "public-abstract-method" | "protected-method" | "protected-decorated-method" | "protected-static-method" | "protected-instance-method" | "protected-abstract-method" | "private-method" | "private-decorated-method" | "private-static-method" | "private-instance-method" | "#private-method" | "#private-static-method" | "#private-instance-method" | "call-signature" | "constructor" | "public-constructor" | "protected-constructor" | "private-constructor" | "accessor" | "public-accessor" | "public-decorated-accessor" | "decorated-accessor" | "static-accessor" | "public-static-accessor" | "instance-accessor" | "public-instance-accessor" | "abstract-accessor" | "public-abstract-accessor" | "protected-accessor" | "protected-decorated-accessor" | "protected-static-accessor" | "protected-instance-accessor" | "protected-abstract-accessor" | "private-accessor" | "private-decorated-accessor" | "private-static-accessor" | "private-instance-accessor" | "#private-accessor" | "#private-static-accessor" | "#private-instance-accessor" | "get" | "public-get" | "public-decorated-get" | "decorated-get" | "static-get" | "public-static-get" | "instance-get" | "public-instance-get" | "abstract-get" | "public-abstract-get" | "protected-get" | "protected-decorated-get" | "protected-static-get" | "protected-instance-get" | "protected-abstract-get" | "private-get" | "private-decorated-get" | "private-static-get" | "private-instance-get" | "#private-get" | "#private-static-get" | "#private-instance-get" | "set" | "public-set" | "public-decorated-set" | "decorated-set" | "static-set" | "public-static-set" | "instance-set" | "public-instance-set" | "abstract-set" | "public-abstract-set" | "protected-set" | "protected-decorated-set" | "protected-static-set" | "protected-instance-set" | "protected-abstract-set" | "private-set" | "private-decorated-set" | "private-static-set" | "private-instance-set" | "#private-set" | "#private-static-set" | "#private-instance-set" | "static-initialization" | "static-static-initialization" | "public-static-static-initialization" | "instance-static-initialization" | "public-instance-static-initialization" | "abstract-static-initialization" | "public-abstract-static-initialization" | "protected-static-static-initialization" | "protected-instance-static-initialization" | "protected-abstract-static-initialization" | "private-static-static-initialization" | "private-instance-static-initialization" | "#private-static-static-initialization" | "#private-instance-static-initialization")[])[] | {
|
|
@@ -12263,6 +11894,12 @@ type TsNoEmptyFunction = []|[{
|
|
|
12263
11894
|
type TsNoEmptyInterface = []|[{
|
|
12264
11895
|
allowSingleExtends?: boolean
|
|
12265
11896
|
}]
|
|
11897
|
+
// ----- ts/no-empty-object-type -----
|
|
11898
|
+
type TsNoEmptyObjectType = []|[{
|
|
11899
|
+
allowInterfaces?: ("always" | "never" | "with-single-extends")
|
|
11900
|
+
allowObjectTypes?: ("always" | "never")
|
|
11901
|
+
allowWithName?: string
|
|
11902
|
+
}]
|
|
12266
11903
|
// ----- ts/no-explicit-any -----
|
|
12267
11904
|
type TsNoExplicitAny = []|[{
|
|
12268
11905
|
|
|
@@ -12270,19 +11907,6 @@ type TsNoExplicitAny = []|[{
|
|
|
12270
11907
|
|
|
12271
11908
|
ignoreRestArgs?: boolean
|
|
12272
11909
|
}]
|
|
12273
|
-
// ----- ts/no-extra-parens -----
|
|
12274
|
-
type TsNoExtraParens = ([]|["functions"] | []|["all"]|["all", {
|
|
12275
|
-
conditionalAssign?: boolean
|
|
12276
|
-
ternaryOperandBinaryExpressions?: boolean
|
|
12277
|
-
nestedBinaryExpressions?: boolean
|
|
12278
|
-
returnAssign?: boolean
|
|
12279
|
-
ignoreJSX?: ("none" | "all" | "single-line" | "multi-line")
|
|
12280
|
-
enforceForArrowConditionals?: boolean
|
|
12281
|
-
enforceForSequenceExpressions?: boolean
|
|
12282
|
-
enforceForNewInMemberExpressions?: boolean
|
|
12283
|
-
enforceForFunctionPrototypeMethods?: boolean
|
|
12284
|
-
allowParensAfterCommentPattern?: string
|
|
12285
|
-
}])
|
|
12286
11910
|
// ----- ts/no-extraneous-class -----
|
|
12287
11911
|
type TsNoExtraneousClass = []|[{
|
|
12288
11912
|
|
|
@@ -12296,6 +11920,32 @@ type TsNoExtraneousClass = []|[{
|
|
|
12296
11920
|
}]
|
|
12297
11921
|
// ----- ts/no-floating-promises -----
|
|
12298
11922
|
type TsNoFloatingPromises = []|[{
|
|
11923
|
+
allowForKnownSafePromises?: (string | {
|
|
11924
|
+
from: "file"
|
|
11925
|
+
name: (string | [string, ...(string)[]])
|
|
11926
|
+
path?: string
|
|
11927
|
+
} | {
|
|
11928
|
+
from: "lib"
|
|
11929
|
+
name: (string | [string, ...(string)[]])
|
|
11930
|
+
} | {
|
|
11931
|
+
from: "package"
|
|
11932
|
+
name: (string | [string, ...(string)[]])
|
|
11933
|
+
package: string
|
|
11934
|
+
})[]
|
|
11935
|
+
allowForKnownSafeCalls?: (string | {
|
|
11936
|
+
from: "file"
|
|
11937
|
+
name: (string | [string, ...(string)[]])
|
|
11938
|
+
path?: string
|
|
11939
|
+
} | {
|
|
11940
|
+
from: "lib"
|
|
11941
|
+
name: (string | [string, ...(string)[]])
|
|
11942
|
+
} | {
|
|
11943
|
+
from: "package"
|
|
11944
|
+
name: (string | [string, ...(string)[]])
|
|
11945
|
+
package: string
|
|
11946
|
+
})[]
|
|
11947
|
+
|
|
11948
|
+
checkThenables?: boolean
|
|
12299
11949
|
|
|
12300
11950
|
ignoreVoid?: boolean
|
|
12301
11951
|
|
|
@@ -12360,6 +12010,8 @@ type TsNoRedeclare = []|[{
|
|
|
12360
12010
|
type TsNoRequireImports = []|[{
|
|
12361
12011
|
|
|
12362
12012
|
allow?: string[]
|
|
12013
|
+
|
|
12014
|
+
allowAsImport?: boolean
|
|
12363
12015
|
}]
|
|
12364
12016
|
// ----- ts/no-restricted-imports -----
|
|
12365
12017
|
type TsNoRestrictedImports = ((string | {
|
|
@@ -12384,7 +12036,8 @@ type TsNoRestrictedImports = ((string | {
|
|
|
12384
12036
|
|
|
12385
12037
|
allowImportNames?: [string, ...(string)[]]
|
|
12386
12038
|
|
|
12387
|
-
group
|
|
12039
|
+
group?: [string, ...(string)[]]
|
|
12040
|
+
regex?: string
|
|
12388
12041
|
importNamePattern?: string
|
|
12389
12042
|
allowImportNamePattern?: string
|
|
12390
12043
|
message?: string
|
|
@@ -12393,6 +12046,19 @@ type TsNoRestrictedImports = ((string | {
|
|
|
12393
12046
|
allowTypeImports?: boolean
|
|
12394
12047
|
}[])
|
|
12395
12048
|
}])
|
|
12049
|
+
// ----- ts/no-restricted-types -----
|
|
12050
|
+
type TsNoRestrictedTypes = []|[{
|
|
12051
|
+
types?: {
|
|
12052
|
+
[k: string]: (true | string | {
|
|
12053
|
+
|
|
12054
|
+
message?: string
|
|
12055
|
+
|
|
12056
|
+
fixWith?: string
|
|
12057
|
+
|
|
12058
|
+
suggest?: string[]
|
|
12059
|
+
}) | undefined
|
|
12060
|
+
}
|
|
12061
|
+
}]
|
|
12396
12062
|
// ----- ts/no-shadow -----
|
|
12397
12063
|
type TsNoShadow = []|[{
|
|
12398
12064
|
builtinGlobals?: boolean
|
|
@@ -12409,11 +12075,6 @@ type TsNoThisAlias = []|[{
|
|
|
12409
12075
|
|
|
12410
12076
|
allowedNames?: string[]
|
|
12411
12077
|
}]
|
|
12412
|
-
// ----- ts/no-throw-literal -----
|
|
12413
|
-
type TsNoThrowLiteral = []|[{
|
|
12414
|
-
allowThrowingAny?: boolean
|
|
12415
|
-
allowThrowingUnknown?: boolean
|
|
12416
|
-
}]
|
|
12417
12078
|
// ----- ts/no-type-alias -----
|
|
12418
12079
|
type TsNoTypeAlias = []|[{
|
|
12419
12080
|
|
|
@@ -12469,6 +12130,8 @@ type TsNoUnusedVars = []|[(("all" | "local") | {
|
|
|
12469
12130
|
caughtErrors?: ("all" | "none")
|
|
12470
12131
|
caughtErrorsIgnorePattern?: string
|
|
12471
12132
|
destructuredArrayIgnorePattern?: string
|
|
12133
|
+
ignoreClassWithStaticInitBlock?: boolean
|
|
12134
|
+
reportUsedIgnorePattern?: boolean
|
|
12472
12135
|
})]
|
|
12473
12136
|
// ----- ts/no-use-before-define -----
|
|
12474
12137
|
type TsNoUseBeforeDefine = []|[("nofunc" | {
|
|
@@ -12485,24 +12148,11 @@ type TsNoVarRequires = []|[{
|
|
|
12485
12148
|
|
|
12486
12149
|
allow?: string[]
|
|
12487
12150
|
}]
|
|
12488
|
-
// ----- ts/object-curly-spacing -----
|
|
12489
|
-
type TsObjectCurlySpacing = []|[("always" | "never")]|[("always" | "never"), {
|
|
12490
|
-
arraysInObjects?: boolean
|
|
12491
|
-
objectsInObjects?: boolean
|
|
12492
|
-
}]
|
|
12493
12151
|
// ----- ts/only-throw-error -----
|
|
12494
12152
|
type TsOnlyThrowError = []|[{
|
|
12495
12153
|
allowThrowingAny?: boolean
|
|
12496
12154
|
allowThrowingUnknown?: boolean
|
|
12497
12155
|
}]
|
|
12498
|
-
// ----- ts/padding-line-between-statements -----
|
|
12499
|
-
type _TsPaddingLineBetweenStatementsPaddingType = ("any" | "never" | "always")
|
|
12500
|
-
type _TsPaddingLineBetweenStatementsStatementType = (("*" | "block-like" | "exports" | "require" | "directive" | "expression" | "iife" | "multiline-block-like" | "multiline-expression" | "multiline-const" | "multiline-let" | "multiline-var" | "singleline-const" | "singleline-let" | "singleline-var" | "block" | "empty" | "function" | "break" | "case" | "class" | "const" | "continue" | "debugger" | "default" | "do" | "export" | "for" | "if" | "import" | "let" | "return" | "switch" | "throw" | "try" | "var" | "while" | "with" | "interface" | "type") | [("*" | "block-like" | "exports" | "require" | "directive" | "expression" | "iife" | "multiline-block-like" | "multiline-expression" | "multiline-const" | "multiline-let" | "multiline-var" | "singleline-const" | "singleline-let" | "singleline-var" | "block" | "empty" | "function" | "break" | "case" | "class" | "const" | "continue" | "debugger" | "default" | "do" | "export" | "for" | "if" | "import" | "let" | "return" | "switch" | "throw" | "try" | "var" | "while" | "with" | "interface" | "type"), ...(("*" | "block-like" | "exports" | "require" | "directive" | "expression" | "iife" | "multiline-block-like" | "multiline-expression" | "multiline-const" | "multiline-let" | "multiline-var" | "singleline-const" | "singleline-let" | "singleline-var" | "block" | "empty" | "function" | "break" | "case" | "class" | "const" | "continue" | "debugger" | "default" | "do" | "export" | "for" | "if" | "import" | "let" | "return" | "switch" | "throw" | "try" | "var" | "while" | "with" | "interface" | "type"))[]])
|
|
12501
|
-
type TsPaddingLineBetweenStatements = {
|
|
12502
|
-
blankLine: _TsPaddingLineBetweenStatementsPaddingType
|
|
12503
|
-
prev: _TsPaddingLineBetweenStatementsStatementType
|
|
12504
|
-
next: _TsPaddingLineBetweenStatementsStatementType
|
|
12505
|
-
}[]
|
|
12506
12156
|
// ----- ts/parameter-properties -----
|
|
12507
12157
|
type TsParameterProperties = []|[{
|
|
12508
12158
|
allow?: ("readonly" | "private" | "protected" | "public" | "private readonly" | "protected readonly" | "public readonly")[]
|
|
@@ -12617,11 +12267,6 @@ type TsPromiseFunctionAsync = []|[{
|
|
|
12617
12267
|
checkFunctionExpressions?: boolean
|
|
12618
12268
|
checkMethodDeclarations?: boolean
|
|
12619
12269
|
}]
|
|
12620
|
-
// ----- ts/quotes -----
|
|
12621
|
-
type TsQuotes = []|[("single" | "double" | "backtick")]|[("single" | "double" | "backtick"), ("avoid-escape" | {
|
|
12622
|
-
avoidEscape?: boolean
|
|
12623
|
-
allowTemplateLiterals?: boolean
|
|
12624
|
-
})]
|
|
12625
12270
|
// ----- ts/require-array-sort-compare -----
|
|
12626
12271
|
type TsRequireArraySortCompare = []|[{
|
|
12627
12272
|
|
|
@@ -12660,14 +12305,7 @@ type TsRestrictTemplateExpressions = []|[{
|
|
|
12660
12305
|
allowNever?: boolean
|
|
12661
12306
|
}]
|
|
12662
12307
|
// ----- ts/return-await -----
|
|
12663
|
-
type TsReturnAwait = []|[("in-try-catch" | "always" | "never")]
|
|
12664
|
-
// ----- ts/semi -----
|
|
12665
|
-
type TsSemi = ([]|["never"]|["never", {
|
|
12666
|
-
beforeStatementContinuationChars?: ("always" | "any" | "never")
|
|
12667
|
-
}] | []|["always"]|["always", {
|
|
12668
|
-
omitLastInOneLineBlock?: boolean
|
|
12669
|
-
omitLastInOneLineClassBody?: boolean
|
|
12670
|
-
}])
|
|
12308
|
+
type TsReturnAwait = []|[("in-try-catch" | "always" | "never" | "error-handling-correctness-only")]
|
|
12671
12309
|
// ----- ts/sort-type-constituents -----
|
|
12672
12310
|
type TsSortTypeConstituents = []|[{
|
|
12673
12311
|
|
|
@@ -12679,22 +12317,6 @@ type TsSortTypeConstituents = []|[{
|
|
|
12679
12317
|
|
|
12680
12318
|
groupOrder?: ("conditional" | "function" | "import" | "intersection" | "keyword" | "nullish" | "literal" | "named" | "object" | "operator" | "tuple" | "union")[]
|
|
12681
12319
|
}]
|
|
12682
|
-
// ----- ts/space-before-blocks -----
|
|
12683
|
-
type TsSpaceBeforeBlocks = []|[(("always" | "never") | {
|
|
12684
|
-
keywords?: ("always" | "never" | "off")
|
|
12685
|
-
functions?: ("always" | "never" | "off")
|
|
12686
|
-
classes?: ("always" | "never" | "off")
|
|
12687
|
-
})]
|
|
12688
|
-
// ----- ts/space-before-function-paren -----
|
|
12689
|
-
type TsSpaceBeforeFunctionParen = []|[(("always" | "never") | {
|
|
12690
|
-
anonymous?: ("always" | "never" | "ignore")
|
|
12691
|
-
named?: ("always" | "never" | "ignore")
|
|
12692
|
-
asyncArrow?: ("always" | "never" | "ignore")
|
|
12693
|
-
})]
|
|
12694
|
-
// ----- ts/space-infix-ops -----
|
|
12695
|
-
type TsSpaceInfixOps = []|[{
|
|
12696
|
-
int32Hint?: boolean
|
|
12697
|
-
}]
|
|
12698
12320
|
// ----- ts/strict-boolean-expressions -----
|
|
12699
12321
|
type TsStrictBooleanExpressions = []|[{
|
|
12700
12322
|
allowString?: boolean
|
|
@@ -12720,23 +12342,6 @@ type TsTripleSlashReference = []|[{
|
|
|
12720
12342
|
path?: ("always" | "never")
|
|
12721
12343
|
types?: ("always" | "never" | "prefer-import")
|
|
12722
12344
|
}]
|
|
12723
|
-
// ----- ts/type-annotation-spacing -----
|
|
12724
|
-
type TsTypeAnnotationSpacing = []|[{
|
|
12725
|
-
before?: boolean
|
|
12726
|
-
after?: boolean
|
|
12727
|
-
overrides?: {
|
|
12728
|
-
colon?: _TsTypeAnnotationSpacing_SpacingConfig
|
|
12729
|
-
arrow?: _TsTypeAnnotationSpacing_SpacingConfig
|
|
12730
|
-
variable?: _TsTypeAnnotationSpacing_SpacingConfig
|
|
12731
|
-
parameter?: _TsTypeAnnotationSpacing_SpacingConfig
|
|
12732
|
-
property?: _TsTypeAnnotationSpacing_SpacingConfig
|
|
12733
|
-
returnType?: _TsTypeAnnotationSpacing_SpacingConfig
|
|
12734
|
-
}
|
|
12735
|
-
}]
|
|
12736
|
-
interface _TsTypeAnnotationSpacing_SpacingConfig {
|
|
12737
|
-
before?: boolean
|
|
12738
|
-
after?: boolean
|
|
12739
|
-
}
|
|
12740
12345
|
// ----- ts/typedef -----
|
|
12741
12346
|
type TsTypedef = []|[{
|
|
12742
12347
|
arrayDestructuring?: boolean
|
|
@@ -12973,6 +12578,8 @@ type UnusedImportsNoUnusedImports = []|[(("all" | "local") | {
|
|
|
12973
12578
|
caughtErrors?: ("all" | "none")
|
|
12974
12579
|
caughtErrorsIgnorePattern?: string
|
|
12975
12580
|
destructuredArrayIgnorePattern?: string
|
|
12581
|
+
ignoreClassWithStaticInitBlock?: boolean
|
|
12582
|
+
reportUsedIgnorePattern?: boolean
|
|
12976
12583
|
})]
|
|
12977
12584
|
// ----- unused-imports/no-unused-vars -----
|
|
12978
12585
|
type UnusedImportsNoUnusedVars = []|[(("all" | "local") | {
|
|
@@ -12984,6 +12591,8 @@ type UnusedImportsNoUnusedVars = []|[(("all" | "local") | {
|
|
|
12984
12591
|
caughtErrors?: ("all" | "none")
|
|
12985
12592
|
caughtErrorsIgnorePattern?: string
|
|
12986
12593
|
destructuredArrayIgnorePattern?: string
|
|
12594
|
+
ignoreClassWithStaticInitBlock?: boolean
|
|
12595
|
+
reportUsedIgnorePattern?: boolean
|
|
12987
12596
|
})]
|
|
12988
12597
|
// ----- use-isnan -----
|
|
12989
12598
|
type UseIsnan = []|[{
|
|
@@ -13011,6 +12620,7 @@ type VueArrayElementNewline = []|[(_VueArrayElementNewlineBasicConfig | {
|
|
|
13011
12620
|
ArrayPattern?: _VueArrayElementNewlineBasicConfig
|
|
13012
12621
|
})]
|
|
13013
12622
|
type _VueArrayElementNewlineBasicConfig = (("always" | "never" | "consistent") | {
|
|
12623
|
+
consistent?: boolean
|
|
13014
12624
|
multiline?: boolean
|
|
13015
12625
|
minItems?: (number | null)
|
|
13016
12626
|
})
|
|
@@ -13985,6 +13595,16 @@ type VueObjectCurlyNewline = []|[((("always" | "never") | {
|
|
|
13985
13595
|
minProperties?: number
|
|
13986
13596
|
consistent?: boolean
|
|
13987
13597
|
})
|
|
13598
|
+
TSTypeLiteral?: (("always" | "never") | {
|
|
13599
|
+
multiline?: boolean
|
|
13600
|
+
minProperties?: number
|
|
13601
|
+
consistent?: boolean
|
|
13602
|
+
})
|
|
13603
|
+
TSInterfaceBody?: (("always" | "never") | {
|
|
13604
|
+
multiline?: boolean
|
|
13605
|
+
minProperties?: number
|
|
13606
|
+
consistent?: boolean
|
|
13607
|
+
})
|
|
13988
13608
|
})]
|
|
13989
13609
|
// ----- vue/object-curly-spacing -----
|
|
13990
13610
|
type VueObjectCurlySpacing = []|[("always" | "never")]|[("always" | "never"), {
|
|
@@ -14468,7 +14088,7 @@ interface OptionsTypeScriptWithTypes {
|
|
|
14468
14088
|
* 提供此选项后,将启用类型感知规则。
|
|
14469
14089
|
* @see https://typescript-eslint.io/linting/typed-linting/
|
|
14470
14090
|
*/
|
|
14471
|
-
tsconfigPath?: string
|
|
14091
|
+
tsconfigPath?: string;
|
|
14472
14092
|
}
|
|
14473
14093
|
interface OptionsHasTypeScript {
|
|
14474
14094
|
typescript?: boolean;
|
|
@@ -14492,6 +14112,14 @@ interface StylisticConfig extends Pick<StylisticCustomizeOptions, 'indent' | 'qu
|
|
|
14492
14112
|
interface OptionsOverrides {
|
|
14493
14113
|
overrides?: TypedFlatConfigItem['rules'];
|
|
14494
14114
|
}
|
|
14115
|
+
interface OptionsProjectType {
|
|
14116
|
+
/**
|
|
14117
|
+
* Type of the project. `lib` will enable more strict rules for libraries.
|
|
14118
|
+
*
|
|
14119
|
+
* @default 'app'
|
|
14120
|
+
*/
|
|
14121
|
+
type?: 'app' | 'lib';
|
|
14122
|
+
}
|
|
14495
14123
|
interface OptionsRegExp {
|
|
14496
14124
|
/**
|
|
14497
14125
|
* Override rulelevels
|
|
@@ -14522,7 +14150,7 @@ interface OptionsUnoCSS {
|
|
|
14522
14150
|
*/
|
|
14523
14151
|
strict?: boolean;
|
|
14524
14152
|
}
|
|
14525
|
-
interface OptionsConfig extends OptionsComponentExts {
|
|
14153
|
+
interface OptionsConfig extends OptionsComponentExts, OptionsProjectType {
|
|
14526
14154
|
/**
|
|
14527
14155
|
* 启用 gitignore 支持.
|
|
14528
14156
|
*
|
|
@@ -14697,6 +14325,8 @@ declare function jsdoc(options?: OptionsStylistic): Promise<TypedFlatConfigItem[
|
|
|
14697
14325
|
|
|
14698
14326
|
declare function jsonc(options?: OptionsFiles & OptionsStylistic & OptionsOverrides): Promise<TypedFlatConfigItem[]>;
|
|
14699
14327
|
|
|
14328
|
+
declare function jsx(): Promise<TypedFlatConfigItem[]>;
|
|
14329
|
+
|
|
14700
14330
|
declare function markdown(options?: OptionsFiles & OptionsComponentExts & OptionsOverrides): Promise<TypedFlatConfigItem[]>;
|
|
14701
14331
|
|
|
14702
14332
|
/**
|
|
@@ -14732,7 +14362,7 @@ declare function stylistic(options?: OptionsStylistic & OptionsOverrides): Promi
|
|
|
14732
14362
|
|
|
14733
14363
|
declare function test(options?: OptionsFiles & OptionsIsInEditor & OptionsOverrides): Promise<TypedFlatConfigItem[]>;
|
|
14734
14364
|
|
|
14735
|
-
declare function typescript(options?: OptionsFiles & OptionsComponentExts & OptionsOverrides & OptionsTypeScriptWithTypes & OptionsTypeScriptParserOptions): Promise<TypedFlatConfigItem[]>;
|
|
14365
|
+
declare function typescript(options?: OptionsFiles & OptionsComponentExts & OptionsOverrides & OptionsTypeScriptWithTypes & OptionsTypeScriptParserOptions & OptionsProjectType): Promise<TypedFlatConfigItem[]>;
|
|
14736
14366
|
|
|
14737
14367
|
declare function unicorn(): Promise<TypedFlatConfigItem[]>;
|
|
14738
14368
|
|
|
@@ -14757,6 +14387,7 @@ declare function interopDefault<T>(m: Awaitable<T>): Promise<T extends {
|
|
|
14757
14387
|
default: infer U;
|
|
14758
14388
|
} ? U : T>;
|
|
14759
14389
|
declare function ensurePackages(packages: string[]): Promise<void>;
|
|
14390
|
+
declare function isInEditorEnv(): boolean;
|
|
14760
14391
|
|
|
14761
14392
|
declare const GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
|
|
14762
14393
|
declare const GLOB_SRC = "**/*.?([cm])[jt]s?(x)";
|
|
@@ -14785,4 +14416,4 @@ declare const GLOB_TESTS: string[];
|
|
|
14785
14416
|
declare const GLOB_ALL_SRC: string[];
|
|
14786
14417
|
declare const GLOB_EXCLUDE: string[];
|
|
14787
14418
|
|
|
14788
|
-
export { type Awaitable, GLOB_ALL_SRC, GLOB_CSS, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_SVELTE, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_YAML, type OptionsComponentExts, type OptionsConfig, type OptionsFiles, type OptionsFormatters, type OptionsHasTypeScript, type OptionsIgnores, type OptionsIsInEditor, type OptionsOverrides, type OptionsReact, type OptionsRegExp, type OptionsStylistic, type OptionsTypeScriptParserOptions, type OptionsTypeScriptWithTypes, type OptionsUnoCSS, type OptionsVue, type Rules, type StylisticConfig, StylisticConfigDefaults, type TypedFlatConfigItem, combine, comments, lincy as default, defaultPluginRenaming, ensurePackages, formatters, ignores, imports, interopDefault, javascript, jsdoc, jsonc, lincy, markdown, node, perfectionist, react, regexp, renamePluginInConfigs, renameRules, sortPackageJson, sortTsconfig, stylistic, test, toArray, toml, typescript, unicorn, unocss, vue, yaml };
|
|
14419
|
+
export { type Awaitable, GLOB_ALL_SRC, GLOB_CSS, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_SVELTE, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_YAML, type OptionsComponentExts, type OptionsConfig, type OptionsFiles, type OptionsFormatters, type OptionsHasTypeScript, type OptionsIgnores, type OptionsIsInEditor, type OptionsOverrides, type OptionsProjectType, type OptionsReact, type OptionsRegExp, type OptionsStylistic, type OptionsTypeScriptParserOptions, type OptionsTypeScriptWithTypes, type OptionsUnoCSS, type OptionsVue, type Rules, type StylisticConfig, StylisticConfigDefaults, type TypedFlatConfigItem, combine, comments, lincy as default, defaultPluginRenaming, ensurePackages, formatters, ignores, imports, interopDefault, isInEditorEnv, javascript, jsdoc, jsonc, jsx, lincy, markdown, node, perfectionist, react, regexp, renamePluginInConfigs, renameRules, sortPackageJson, sortTsconfig, stylistic, test, toArray, toml, typescript, unicorn, unocss, vue, yaml };
|