@lincy/eslint-config 4.7.0 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/dist/index.cjs +167 -107
- package/dist/index.d.cts +192 -89
- package/dist/index.d.ts +192 -89
- package/dist/index.js +159 -107
- package/package.json +45 -33
package/dist/index.d.cts
CHANGED
|
@@ -325,47 +325,47 @@ interface RuleOptions {
|
|
|
325
325
|
'eqeqeq'?: Linter.RuleEntry<Eqeqeq>
|
|
326
326
|
/**
|
|
327
327
|
* require a `eslint-enable` comment for every `eslint-disable` comment
|
|
328
|
-
* @see https://
|
|
328
|
+
* @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/disable-enable-pair.html
|
|
329
329
|
*/
|
|
330
330
|
'eslint-comments/disable-enable-pair'?: Linter.RuleEntry<EslintCommentsDisableEnablePair>
|
|
331
331
|
/**
|
|
332
332
|
* disallow a `eslint-enable` comment for multiple `eslint-disable` comments
|
|
333
|
-
* @see https://
|
|
333
|
+
* @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/no-aggregating-enable.html
|
|
334
334
|
*/
|
|
335
335
|
'eslint-comments/no-aggregating-enable'?: Linter.RuleEntry<[]>
|
|
336
336
|
/**
|
|
337
337
|
* disallow duplicate `eslint-disable` comments
|
|
338
|
-
* @see https://
|
|
338
|
+
* @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/no-duplicate-disable.html
|
|
339
339
|
*/
|
|
340
340
|
'eslint-comments/no-duplicate-disable'?: Linter.RuleEntry<[]>
|
|
341
341
|
/**
|
|
342
342
|
* disallow `eslint-disable` comments about specific rules
|
|
343
|
-
* @see https://
|
|
343
|
+
* @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/no-restricted-disable.html
|
|
344
344
|
*/
|
|
345
345
|
'eslint-comments/no-restricted-disable'?: Linter.RuleEntry<EslintCommentsNoRestrictedDisable>
|
|
346
346
|
/**
|
|
347
347
|
* disallow `eslint-disable` comments without rule names
|
|
348
|
-
* @see https://
|
|
348
|
+
* @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/no-unlimited-disable.html
|
|
349
349
|
*/
|
|
350
350
|
'eslint-comments/no-unlimited-disable'?: Linter.RuleEntry<[]>
|
|
351
351
|
/**
|
|
352
352
|
* disallow unused `eslint-disable` comments
|
|
353
|
-
* @see https://
|
|
353
|
+
* @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/no-unused-disable.html
|
|
354
354
|
*/
|
|
355
355
|
'eslint-comments/no-unused-disable'?: Linter.RuleEntry<[]>
|
|
356
356
|
/**
|
|
357
357
|
* disallow unused `eslint-enable` comments
|
|
358
|
-
* @see https://
|
|
358
|
+
* @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/no-unused-enable.html
|
|
359
359
|
*/
|
|
360
360
|
'eslint-comments/no-unused-enable'?: Linter.RuleEntry<[]>
|
|
361
361
|
/**
|
|
362
362
|
* disallow ESLint directive-comments
|
|
363
|
-
* @see https://
|
|
363
|
+
* @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/no-use.html
|
|
364
364
|
*/
|
|
365
365
|
'eslint-comments/no-use'?: Linter.RuleEntry<EslintCommentsNoUse>
|
|
366
366
|
/**
|
|
367
367
|
* require include descriptions in ESLint directive-comments
|
|
368
|
-
* @see https://
|
|
368
|
+
* @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/require-description.html
|
|
369
369
|
*/
|
|
370
370
|
'eslint-comments/require-description'?: Linter.RuleEntry<EslintCommentsRequireDescription>
|
|
371
371
|
/**
|
|
@@ -476,228 +476,233 @@ 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/v4.1.1/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/v4.1.1/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/v4.1.1/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/v4.1.1/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/v4.1.1/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/v4.1.1/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/v4.1.1/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/v4.1.1/docs/rules/group-exports.md
|
|
515
515
|
*/
|
|
516
516
|
'import/group-exports'?: Linter.RuleEntry<[]>
|
|
517
517
|
/**
|
|
518
518
|
* Replaced by `import-x/first`.
|
|
519
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
519
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/imports-first.md
|
|
520
520
|
* @deprecated
|
|
521
521
|
*/
|
|
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/v4.1.1/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/v4.1.1/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/v4.1.1/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/v4.1.1/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/v4.1.1/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/v4.1.1/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/v4.1.1/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/v4.1.1/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/v4.1.1/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/v4.1.1/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/v4.1.1/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/v4.1.1/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/v4.1.1/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/v4.1.1/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/v4.1.1/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/v4.1.1/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/v4.1.1/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/v4.1.1/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/v4.1.1/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/v4.1.1/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/v4.1.1/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/v4.1.1/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/v4.1.1/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/v4.1.1/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/v4.1.1/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/v4.1.1/docs/rules/no-relative-parent-imports.md
|
|
651
651
|
*/
|
|
652
652
|
'import/no-relative-parent-imports'?: Linter.RuleEntry<ImportNoRelativeParentImports>
|
|
653
|
+
/**
|
|
654
|
+
* Forbid importing a default export by a different name.
|
|
655
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-rename-default.md
|
|
656
|
+
*/
|
|
657
|
+
'import/no-rename-default'?: Linter.RuleEntry<ImportNoRenameDefault>
|
|
653
658
|
/**
|
|
654
659
|
* Enforce which files can be imported in a given folder.
|
|
655
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
660
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-restricted-paths.md
|
|
656
661
|
*/
|
|
657
662
|
'import/no-restricted-paths'?: Linter.RuleEntry<ImportNoRestrictedPaths>
|
|
658
663
|
/**
|
|
659
664
|
* Forbid a module from importing itself.
|
|
660
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
665
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-self-import.md
|
|
661
666
|
*/
|
|
662
667
|
'import/no-self-import'?: Linter.RuleEntry<[]>
|
|
663
668
|
/**
|
|
664
669
|
* Forbid unassigned imports.
|
|
665
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
670
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-unassigned-import.md
|
|
666
671
|
*/
|
|
667
672
|
'import/no-unassigned-import'?: Linter.RuleEntry<ImportNoUnassignedImport>
|
|
668
673
|
/**
|
|
669
674
|
* Ensure imports point to a file/module that can be resolved.
|
|
670
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
675
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-unresolved.md
|
|
671
676
|
*/
|
|
672
677
|
'import/no-unresolved'?: Linter.RuleEntry<ImportNoUnresolved>
|
|
673
678
|
/**
|
|
674
679
|
* Forbid modules without exports, or exports without matching import in another module.
|
|
675
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
680
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-unused-modules.md
|
|
676
681
|
*/
|
|
677
682
|
'import/no-unused-modules'?: Linter.RuleEntry<ImportNoUnusedModules>
|
|
678
683
|
/**
|
|
679
684
|
* Forbid unnecessary path segments in import and require statements.
|
|
680
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
685
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-useless-path-segments.md
|
|
681
686
|
*/
|
|
682
687
|
'import/no-useless-path-segments'?: Linter.RuleEntry<ImportNoUselessPathSegments>
|
|
683
688
|
/**
|
|
684
689
|
* Forbid webpack loader syntax in imports.
|
|
685
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
690
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-webpack-loader-syntax.md
|
|
686
691
|
*/
|
|
687
692
|
'import/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>
|
|
688
693
|
/**
|
|
689
694
|
* Enforce a convention in module import order.
|
|
690
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
695
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/order.md
|
|
691
696
|
*/
|
|
692
697
|
'import/order'?: Linter.RuleEntry<ImportOrder>
|
|
693
698
|
/**
|
|
694
699
|
* 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/
|
|
700
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/prefer-default-export.md
|
|
696
701
|
*/
|
|
697
702
|
'import/prefer-default-export'?: Linter.RuleEntry<ImportPreferDefaultExport>
|
|
698
703
|
/**
|
|
699
704
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
700
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
705
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/unambiguous.md
|
|
701
706
|
*/
|
|
702
707
|
'import/unambiguous'?: Linter.RuleEntry<[]>
|
|
703
708
|
/**
|
|
@@ -764,7 +769,7 @@ interface RuleOptions {
|
|
|
764
769
|
'jsdoc/check-tag-names'?: Linter.RuleEntry<JsdocCheckTagNames>
|
|
765
770
|
/**
|
|
766
771
|
* 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/
|
|
772
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/check-template-names.md#repos-sticky-header
|
|
768
773
|
*/
|
|
769
774
|
'jsdoc/check-template-names'?: Linter.RuleEntry<[]>
|
|
770
775
|
/**
|
|
@@ -802,6 +807,11 @@ interface RuleOptions {
|
|
|
802
807
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/informative-docs.md#repos-sticky-header
|
|
803
808
|
*/
|
|
804
809
|
'jsdoc/informative-docs'?: Linter.RuleEntry<JsdocInformativeDocs>
|
|
810
|
+
/**
|
|
811
|
+
* Enforces minimum number of newlines before JSDoc comment blocks
|
|
812
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/lines-before-block.md#repos-sticky-header
|
|
813
|
+
*/
|
|
814
|
+
'jsdoc/lines-before-block'?: Linter.RuleEntry<JsdocLinesBeforeBlock>
|
|
805
815
|
/**
|
|
806
816
|
* Enforces a regular expression pattern on descriptions.
|
|
807
817
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/match-description.md#repos-sticky-header
|
|
@@ -2722,12 +2732,12 @@ interface RuleOptions {
|
|
|
2722
2732
|
'react-naming-convention/use-state'?: Linter.RuleEntry<[]>
|
|
2723
2733
|
'react-refresh/only-export-components'?: Linter.RuleEntry<ReactRefreshOnlyExportComponents>
|
|
2724
2734
|
/**
|
|
2725
|
-
*
|
|
2735
|
+
* disallow using shorthand boolean attributes
|
|
2726
2736
|
* @see https://eslint-react.xyz/docs/rules/avoid-shorthand-boolean
|
|
2727
2737
|
*/
|
|
2728
2738
|
'react/avoid-shorthand-boolean'?: Linter.RuleEntry<[]>
|
|
2729
2739
|
/**
|
|
2730
|
-
*
|
|
2740
|
+
* disallow using shorthand fragment syntax
|
|
2731
2741
|
* @see https://eslint-react.xyz/docs/rules/avoid-shorthand-fragment
|
|
2732
2742
|
*/
|
|
2733
2743
|
'react/avoid-shorthand-fragment'?: Linter.RuleEntry<[]>
|
|
@@ -2794,13 +2804,11 @@ interface RuleOptions {
|
|
|
2794
2804
|
/**
|
|
2795
2805
|
* disallow complex conditional rendering
|
|
2796
2806
|
* @see https://eslint-react.xyz/docs/rules/no-complex-conditional-rendering
|
|
2797
|
-
* @deprecated
|
|
2798
2807
|
*/
|
|
2799
2808
|
'react/no-complex-conditional-rendering'?: Linter.RuleEntry<[]>
|
|
2800
2809
|
/**
|
|
2801
2810
|
* disallow complex conditional rendering
|
|
2802
2811
|
* @see https://eslint-react.xyz/docs/rules/no-complex-conditional-rendering
|
|
2803
|
-
* @deprecated
|
|
2804
2812
|
*/
|
|
2805
2813
|
'react/no-complicated-conditional-rendering'?: Linter.RuleEntry<[]>
|
|
2806
2814
|
/**
|
|
@@ -2834,7 +2842,7 @@ interface RuleOptions {
|
|
|
2834
2842
|
*/
|
|
2835
2843
|
'react/no-direct-mutation-state'?: Linter.RuleEntry<[]>
|
|
2836
2844
|
/**
|
|
2837
|
-
* disallow duplicate keys
|
|
2845
|
+
* disallow duplicate keys when rendering list
|
|
2838
2846
|
* @see https://eslint-react.xyz/docs/rules/no-duplicate-key
|
|
2839
2847
|
*/
|
|
2840
2848
|
'react/no-duplicate-key'?: Linter.RuleEntry<[]>
|
|
@@ -2854,7 +2862,7 @@ interface RuleOptions {
|
|
|
2854
2862
|
*/
|
|
2855
2863
|
'react/no-missing-component-display-name'?: Linter.RuleEntry<[]>
|
|
2856
2864
|
/**
|
|
2857
|
-
* require 'key'
|
|
2865
|
+
* require 'key' when rendering list
|
|
2858
2866
|
* @see https://eslint-react.xyz/docs/rules/no-missing-key
|
|
2859
2867
|
*/
|
|
2860
2868
|
'react/no-missing-key'?: Linter.RuleEntry<[]>
|
|
@@ -4093,6 +4101,46 @@ interface RuleOptions {
|
|
|
4093
4101
|
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-test-return-statement.md
|
|
4094
4102
|
*/
|
|
4095
4103
|
'test/no-test-return-statement'?: Linter.RuleEntry<[]>
|
|
4104
|
+
/**
|
|
4105
|
+
* Enforce padding around `afterAll` blocks
|
|
4106
|
+
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/padding-around-after-all-blocks.md
|
|
4107
|
+
*/
|
|
4108
|
+
'test/padding-around-after-all-blocks'?: Linter.RuleEntry<[]>
|
|
4109
|
+
/**
|
|
4110
|
+
* Enforce padding around `afterEach` blocks
|
|
4111
|
+
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/padding-around-after-each-blocks.md
|
|
4112
|
+
*/
|
|
4113
|
+
'test/padding-around-after-each-blocks'?: Linter.RuleEntry<[]>
|
|
4114
|
+
/**
|
|
4115
|
+
* Enforce padding around vitest functions
|
|
4116
|
+
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/padding-around-all.md
|
|
4117
|
+
*/
|
|
4118
|
+
'test/padding-around-all'?: Linter.RuleEntry<[]>
|
|
4119
|
+
/**
|
|
4120
|
+
* Enforce padding around `beforeAll` blocks
|
|
4121
|
+
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/padding-around-before-all-blocks.md
|
|
4122
|
+
*/
|
|
4123
|
+
'test/padding-around-before-all-blocks'?: Linter.RuleEntry<[]>
|
|
4124
|
+
/**
|
|
4125
|
+
* Enforce padding around `beforeEach` blocks
|
|
4126
|
+
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/padding-around-before-each-blocks.md
|
|
4127
|
+
*/
|
|
4128
|
+
'test/padding-around-before-each-blocks'?: Linter.RuleEntry<[]>
|
|
4129
|
+
/**
|
|
4130
|
+
* Enforce padding around `describe` blocks
|
|
4131
|
+
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/padding-around-describe-blocks.md
|
|
4132
|
+
*/
|
|
4133
|
+
'test/padding-around-describe-blocks'?: Linter.RuleEntry<[]>
|
|
4134
|
+
/**
|
|
4135
|
+
* Enforce padding around `expect` groups
|
|
4136
|
+
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/padding-around-expect-groups.md
|
|
4137
|
+
*/
|
|
4138
|
+
'test/padding-around-expect-groups'?: Linter.RuleEntry<[]>
|
|
4139
|
+
/**
|
|
4140
|
+
* Enforce padding around afterAll blocks
|
|
4141
|
+
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/padding-around-test-blocks.md
|
|
4142
|
+
*/
|
|
4143
|
+
'test/padding-around-test-blocks'?: Linter.RuleEntry<[]>
|
|
4096
4144
|
/**
|
|
4097
4145
|
* enforce using `toBeCalledWith()` or `toHaveBeenCalledWith()`
|
|
4098
4146
|
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-called-with.md
|
|
@@ -4484,6 +4532,11 @@ interface RuleOptions {
|
|
|
4484
4532
|
* @see https://typescript-eslint.io/rules/no-confusing-void-expression
|
|
4485
4533
|
*/
|
|
4486
4534
|
'ts/no-confusing-void-expression'?: Linter.RuleEntry<TsNoConfusingVoidExpression>
|
|
4535
|
+
/**
|
|
4536
|
+
* Disallow using code marked as `@deprecated`
|
|
4537
|
+
* @see https://typescript-eslint.io/rules/no-deprecated
|
|
4538
|
+
*/
|
|
4539
|
+
'ts/no-deprecated'?: Linter.RuleEntry<[]>
|
|
4487
4540
|
/**
|
|
4488
4541
|
* Disallow duplicate class members
|
|
4489
4542
|
* @see https://typescript-eslint.io/rules/no-dupe-class-members
|
|
@@ -4708,7 +4761,7 @@ interface RuleOptions {
|
|
|
4708
4761
|
*/
|
|
4709
4762
|
'ts/no-unnecessary-type-constraint'?: Linter.RuleEntry<[]>
|
|
4710
4763
|
/**
|
|
4711
|
-
* Disallow type parameters that
|
|
4764
|
+
* Disallow type parameters that aren't used multiple times
|
|
4712
4765
|
* @see https://typescript-eslint.io/rules/no-unnecessary-type-parameters
|
|
4713
4766
|
*/
|
|
4714
4767
|
'ts/no-unnecessary-type-parameters'?: Linter.RuleEntry<[]>
|
|
@@ -4764,7 +4817,7 @@ interface RuleOptions {
|
|
|
4764
4817
|
'ts/no-unused-expressions'?: Linter.RuleEntry<TsNoUnusedExpressions>
|
|
4765
4818
|
/**
|
|
4766
4819
|
* Disallow unused variables
|
|
4767
|
-
* @see https://
|
|
4820
|
+
* @see https://typescript-eslint.io/rules/no-unused-vars
|
|
4768
4821
|
*/
|
|
4769
4822
|
'ts/no-unused-vars'?: Linter.RuleEntry<TsNoUnusedVars>
|
|
4770
4823
|
/**
|
|
@@ -4971,7 +5024,7 @@ interface RuleOptions {
|
|
|
4971
5024
|
*/
|
|
4972
5025
|
'ts/unified-signatures'?: Linter.RuleEntry<TsUnifiedSignatures>
|
|
4973
5026
|
/**
|
|
4974
|
-
* Enforce typing arguments in
|
|
5027
|
+
* Enforce typing arguments in Promise rejection callbacks as `unknown`
|
|
4975
5028
|
* @see https://typescript-eslint.io/rules/use-unknown-in-catch-callback-variable
|
|
4976
5029
|
*/
|
|
4977
5030
|
'ts/use-unknown-in-catch-callback-variable'?: Linter.RuleEntry<[]>
|
|
@@ -5692,7 +5745,7 @@ interface RuleOptions {
|
|
|
5692
5745
|
'unused-imports/no-unused-imports'?: Linter.RuleEntry<UnusedImportsNoUnusedImports>
|
|
5693
5746
|
/**
|
|
5694
5747
|
* Disallow unused variables
|
|
5695
|
-
* @see https://github.com/sweepline/eslint-plugin-unused-imports/blob/master/docs/rules/no-unused-
|
|
5748
|
+
* @see https://github.com/sweepline/eslint-plugin-unused-imports/blob/master/docs/rules/no-unused-vars.md
|
|
5696
5749
|
*/
|
|
5697
5750
|
'unused-imports/no-unused-vars'?: Linter.RuleEntry<UnusedImportsNoUnusedVars>
|
|
5698
5751
|
/**
|
|
@@ -5922,7 +5975,7 @@ interface RuleOptions {
|
|
|
5922
5975
|
*/
|
|
5923
5976
|
'vue/jsx-uses-vars'?: Linter.RuleEntry<[]>
|
|
5924
5977
|
/**
|
|
5925
|
-
* Enforce consistent spacing between
|
|
5978
|
+
* Enforce consistent spacing between property names and type annotations in types and interfaces in `<template>`
|
|
5926
5979
|
* @see https://eslint.vuejs.org/rules/key-spacing.html
|
|
5927
5980
|
*/
|
|
5928
5981
|
'vue/key-spacing'?: Linter.RuleEntry<VueKeySpacing>
|
|
@@ -6595,7 +6648,7 @@ interface RuleOptions {
|
|
|
6595
6648
|
*/
|
|
6596
6649
|
'vue/prop-name-casing'?: Linter.RuleEntry<VuePropNameCasing>
|
|
6597
6650
|
/**
|
|
6598
|
-
* Require quotes around object literal property names in `<template>`
|
|
6651
|
+
* Require quotes around object literal, type literal, interfaces and enums property names in `<template>`
|
|
6599
6652
|
* @see https://eslint.vuejs.org/rules/quote-props.html
|
|
6600
6653
|
*/
|
|
6601
6654
|
'vue/quote-props'?: Linter.RuleEntry<VueQuoteProps>
|
|
@@ -7096,24 +7149,25 @@ type AccessorPairs = []|[{
|
|
|
7096
7149
|
// ----- antfu/consistent-list-newline -----
|
|
7097
7150
|
type AntfuConsistentListNewline = []|[{
|
|
7098
7151
|
ArrayExpression?: boolean
|
|
7152
|
+
ArrayPattern?: boolean
|
|
7099
7153
|
ArrowFunctionExpression?: boolean
|
|
7100
7154
|
CallExpression?: boolean
|
|
7101
7155
|
ExportNamedDeclaration?: boolean
|
|
7102
7156
|
FunctionDeclaration?: boolean
|
|
7103
7157
|
FunctionExpression?: boolean
|
|
7104
7158
|
ImportDeclaration?: boolean
|
|
7159
|
+
JSONArrayExpression?: boolean
|
|
7160
|
+
JSONObjectExpression?: boolean
|
|
7161
|
+
JSXOpeningElement?: boolean
|
|
7105
7162
|
NewExpression?: boolean
|
|
7106
7163
|
ObjectExpression?: boolean
|
|
7164
|
+
ObjectPattern?: boolean
|
|
7165
|
+
TSFunctionType?: boolean
|
|
7107
7166
|
TSInterfaceDeclaration?: boolean
|
|
7108
7167
|
TSTupleType?: boolean
|
|
7109
7168
|
TSTypeLiteral?: boolean
|
|
7110
7169
|
TSTypeParameterDeclaration?: boolean
|
|
7111
7170
|
TSTypeParameterInstantiation?: boolean
|
|
7112
|
-
ObjectPattern?: boolean
|
|
7113
|
-
ArrayPattern?: boolean
|
|
7114
|
-
JSXOpeningElement?: boolean
|
|
7115
|
-
JSONArrayExpression?: boolean
|
|
7116
|
-
JSONObjectExpression?: boolean
|
|
7117
7171
|
}]
|
|
7118
7172
|
// ----- antfu/indent-unindent -----
|
|
7119
7173
|
type AntfuIndentUnindent = []|[{
|
|
@@ -7507,6 +7561,11 @@ type ImportNoRelativeParentImports = []|[{
|
|
|
7507
7561
|
|
|
7508
7562
|
ignore?: [string, ...(string)[]]
|
|
7509
7563
|
}]
|
|
7564
|
+
// ----- import/no-rename-default -----
|
|
7565
|
+
type ImportNoRenameDefault = []|[{
|
|
7566
|
+
commonjs?: boolean
|
|
7567
|
+
preventRenamingBindings?: boolean
|
|
7568
|
+
}]
|
|
7510
7569
|
// ----- import/no-restricted-paths -----
|
|
7511
7570
|
type ImportNoRestrictedPaths = []|[{
|
|
7512
7571
|
|
|
@@ -7760,6 +7819,12 @@ type JsdocInformativeDocs = []|[{
|
|
|
7760
7819
|
excludedTags?: string[]
|
|
7761
7820
|
uselessWords?: string[]
|
|
7762
7821
|
}]
|
|
7822
|
+
// ----- jsdoc/lines-before-block -----
|
|
7823
|
+
type JsdocLinesBeforeBlock = []|[{
|
|
7824
|
+
excludedTags?: string[]
|
|
7825
|
+
ignoreSameLine?: boolean
|
|
7826
|
+
lines?: number
|
|
7827
|
+
}]
|
|
7763
7828
|
// ----- jsdoc/match-description -----
|
|
7764
7829
|
type JsdocMatchDescription = []|[{
|
|
7765
7830
|
contexts?: (string | {
|
|
@@ -9644,6 +9709,10 @@ type PerfectionistSortEnums = []|[{
|
|
|
9644
9709
|
|
|
9645
9710
|
ignoreCase?: boolean
|
|
9646
9711
|
|
|
9712
|
+
sortByValue?: boolean
|
|
9713
|
+
|
|
9714
|
+
forceNumericSort?: boolean
|
|
9715
|
+
|
|
9647
9716
|
partitionByComment?: (string[] | boolean | string)
|
|
9648
9717
|
}]
|
|
9649
9718
|
// ----- perfectionist/sort-exports -----
|
|
@@ -9807,9 +9876,9 @@ type PerfectionistSortObjects = []|[{
|
|
|
9807
9876
|
|
|
9808
9877
|
styledComponents?: boolean
|
|
9809
9878
|
|
|
9810
|
-
|
|
9879
|
+
destructureOnly?: boolean
|
|
9811
9880
|
|
|
9812
|
-
|
|
9881
|
+
ignorePattern?: string[]
|
|
9813
9882
|
|
|
9814
9883
|
groups?: (string | string[])[]
|
|
9815
9884
|
|
|
@@ -9946,6 +10015,9 @@ type ReactHooksExhaustiveDeps = []|[{
|
|
|
9946
10015
|
}]
|
|
9947
10016
|
// ----- react-naming-convention/component-name -----
|
|
9948
10017
|
type ReactNamingConventionComponentName = []|[(("PascalCase" | "CONSTANT_CASE") | {
|
|
10018
|
+
allowAllCaps?: boolean
|
|
10019
|
+
allowLeadingUnderscore?: boolean
|
|
10020
|
+
allowNamespace?: boolean
|
|
9949
10021
|
excepts?: string[]
|
|
9950
10022
|
rule?: ("PascalCase" | "CONSTANT_CASE")
|
|
9951
10023
|
})]
|
|
@@ -11058,7 +11130,7 @@ type StylePaddedBlocks = []|[(("always" | "never") | {
|
|
|
11058
11130
|
}]
|
|
11059
11131
|
// ----- style/padding-line-between-statements -----
|
|
11060
11132
|
type _StylePaddingLineBetweenStatementsPaddingType = ("any" | "never" | "always")
|
|
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"))[]])
|
|
11133
|
+
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" | "ts-method" | "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" | "ts-method" | "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" | "ts-method" | "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"))[]])
|
|
11062
11134
|
type StylePaddingLineBetweenStatements = {
|
|
11063
11135
|
blankLine: _StylePaddingLineBetweenStatementsPaddingType
|
|
11064
11136
|
prev: _StylePaddingLineBetweenStatementsStatementType
|
|
@@ -11154,6 +11226,7 @@ type StyleTypeAnnotationSpacing = []|[{
|
|
|
11154
11226
|
parameter?: _StyleTypeAnnotationSpacing_SpacingConfig
|
|
11155
11227
|
property?: _StyleTypeAnnotationSpacing_SpacingConfig
|
|
11156
11228
|
returnType?: _StyleTypeAnnotationSpacing_SpacingConfig
|
|
11229
|
+
operator?: _StyleTypeAnnotationSpacing_SpacingConfig
|
|
11157
11230
|
}
|
|
11158
11231
|
}]
|
|
11159
11232
|
interface _StyleTypeAnnotationSpacing_SpacingConfig {
|
|
@@ -11221,6 +11294,7 @@ type TestNoLargeSnapshots = []|[{
|
|
|
11221
11294
|
type TestNoOnlyTests = []|[{
|
|
11222
11295
|
block?: string[]
|
|
11223
11296
|
focus?: string[]
|
|
11297
|
+
functions?: string[]
|
|
11224
11298
|
fix?: boolean
|
|
11225
11299
|
}]
|
|
11226
11300
|
// ----- test/no-restricted-matchers -----
|
|
@@ -11233,7 +11307,8 @@ type TestNoRestrictedViMethods = []|[{
|
|
|
11233
11307
|
}]
|
|
11234
11308
|
// ----- test/no-standalone-expect -----
|
|
11235
11309
|
type TestNoStandaloneExpect = []|[{
|
|
11236
|
-
|
|
11310
|
+
additionaltestblockfunctions?: string[]
|
|
11311
|
+
[k: string]: unknown | undefined
|
|
11237
11312
|
}]
|
|
11238
11313
|
// ----- test/prefer-expect-assertions -----
|
|
11239
11314
|
type TestPreferExpectAssertions = []|[{
|
|
@@ -11988,6 +12063,7 @@ type TsNoMisusedPromises = []|[{
|
|
|
11988
12063
|
checksVoidReturn?: (boolean | {
|
|
11989
12064
|
arguments?: boolean
|
|
11990
12065
|
attributes?: boolean
|
|
12066
|
+
inheritedMethods?: boolean
|
|
11991
12067
|
properties?: boolean
|
|
11992
12068
|
returns?: boolean
|
|
11993
12069
|
variables?: boolean
|
|
@@ -13994,21 +14070,13 @@ type Yoda = []|[("always" | "never")]|[("always" | "never"), {
|
|
|
13994
14070
|
|
|
13995
14071
|
type Awaitable<T> = T | Promise<T>;
|
|
13996
14072
|
type Rules = RuleOptions;
|
|
13997
|
-
type TypedFlatConfigItem = Omit<Linter.
|
|
13998
|
-
/**
|
|
13999
|
-
* 每个配置项的自定义名称
|
|
14000
|
-
*/
|
|
14001
|
-
name?: string;
|
|
14073
|
+
type TypedFlatConfigItem = Omit<Linter.Config<Linter.RulesRecord & Rules>, 'plugins'> & {
|
|
14002
14074
|
/**
|
|
14003
14075
|
* An object containing a name-value mapping of plugin names to plugin objects. When `files` is specified, these plugins are only available to the matching files.
|
|
14004
14076
|
*
|
|
14005
14077
|
* @see [Using plugins in your configuration](https://eslint.org/docs/latest/user-guide/configuring/configuration-files-new#using-plugins-in-your-configuration)
|
|
14006
14078
|
*/
|
|
14007
14079
|
plugins?: Record<string, any>;
|
|
14008
|
-
/**
|
|
14009
|
-
* An object containing a name-value mapping of rules to use.
|
|
14010
|
-
*/
|
|
14011
|
-
rules?: Linter.RulesRecord & Rules;
|
|
14012
14080
|
};
|
|
14013
14081
|
interface OptionsFiles {
|
|
14014
14082
|
/**
|
|
@@ -14038,6 +14106,18 @@ interface OptionsFormatters {
|
|
|
14038
14106
|
* 目前仅支持Prettier.
|
|
14039
14107
|
*/
|
|
14040
14108
|
html?: 'prettier' | boolean;
|
|
14109
|
+
/**
|
|
14110
|
+
* 启用 XML 格式支持
|
|
14111
|
+
*
|
|
14112
|
+
* 目前仅支持 Prettier
|
|
14113
|
+
*/
|
|
14114
|
+
xml?: 'prettier' | boolean;
|
|
14115
|
+
/**
|
|
14116
|
+
* 启用 SVG 格式支持.
|
|
14117
|
+
*
|
|
14118
|
+
* 目前仅支持 Prettier
|
|
14119
|
+
*/
|
|
14120
|
+
svg?: 'prettier' | boolean;
|
|
14041
14121
|
/**
|
|
14042
14122
|
* 启用对 Markdown 的格式化支持.
|
|
14043
14123
|
*
|
|
@@ -14072,6 +14152,14 @@ interface OptionsComponentExts {
|
|
|
14072
14152
|
*/
|
|
14073
14153
|
componentExts?: string[];
|
|
14074
14154
|
}
|
|
14155
|
+
interface OptionsUnicorn {
|
|
14156
|
+
/**
|
|
14157
|
+
* 是否包括“eslint-plugin-unicorn”推荐的所有规则.
|
|
14158
|
+
*
|
|
14159
|
+
* @default false
|
|
14160
|
+
*/
|
|
14161
|
+
allRecommended?: boolean;
|
|
14162
|
+
}
|
|
14075
14163
|
interface OptionsTypeScriptParserOptions {
|
|
14076
14164
|
/**
|
|
14077
14165
|
* TypeScript 的附加解析器选项。
|
|
@@ -14082,6 +14170,11 @@ interface OptionsTypeScriptParserOptions {
|
|
|
14082
14170
|
* @default ['**\/*.{ts,tsx}']
|
|
14083
14171
|
*/
|
|
14084
14172
|
filesTypeAware?: string[];
|
|
14173
|
+
/**
|
|
14174
|
+
* Glob patterns for files that should not be type aware.
|
|
14175
|
+
* @default ['**\/*.md\/**']
|
|
14176
|
+
*/
|
|
14177
|
+
ignoresTypeAware?: string[];
|
|
14085
14178
|
}
|
|
14086
14179
|
interface OptionsTypeScriptWithTypes {
|
|
14087
14180
|
/**
|
|
@@ -14176,6 +14269,12 @@ interface OptionsConfig extends OptionsComponentExts, OptionsProjectType {
|
|
|
14176
14269
|
* @default true
|
|
14177
14270
|
*/
|
|
14178
14271
|
jsx?: boolean;
|
|
14272
|
+
/**
|
|
14273
|
+
* eslint-plugin-unicorn 的选项.
|
|
14274
|
+
*
|
|
14275
|
+
* @default true
|
|
14276
|
+
*/
|
|
14277
|
+
unicorn?: boolean | OptionsUnicorn;
|
|
14179
14278
|
/**
|
|
14180
14279
|
* 启用 test 支持.
|
|
14181
14280
|
*
|
|
@@ -14311,7 +14410,7 @@ declare const defaultPluginRenaming: {
|
|
|
14311
14410
|
/**
|
|
14312
14411
|
* 构造一个ESLint扁平化配置项数组。
|
|
14313
14412
|
*/
|
|
14314
|
-
declare function lincy(options?: OptionsConfig & TypedFlatConfigItem, ...userConfigs: Awaitable<TypedFlatConfigItem | TypedFlatConfigItem[]>[]): FlatConfigComposer<TypedFlatConfigItem>;
|
|
14413
|
+
declare function lincy(options?: OptionsConfig & Omit<TypedFlatConfigItem, 'files'>, ...userConfigs: Awaitable<TypedFlatConfigItem | TypedFlatConfigItem[]>[]): FlatConfigComposer<TypedFlatConfigItem>;
|
|
14315
14414
|
|
|
14316
14415
|
declare function comments(): Promise<TypedFlatConfigItem[]>;
|
|
14317
14416
|
|
|
@@ -14364,7 +14463,7 @@ declare function test(options?: OptionsFiles & OptionsIsInEditor & OptionsOverri
|
|
|
14364
14463
|
|
|
14365
14464
|
declare function typescript(options?: OptionsFiles & OptionsComponentExts & OptionsOverrides & OptionsTypeScriptWithTypes & OptionsTypeScriptParserOptions & OptionsProjectType): Promise<TypedFlatConfigItem[]>;
|
|
14366
14465
|
|
|
14367
|
-
declare function unicorn(): Promise<TypedFlatConfigItem[]>;
|
|
14466
|
+
declare function unicorn(options?: OptionsUnicorn): Promise<TypedFlatConfigItem[]>;
|
|
14368
14467
|
|
|
14369
14468
|
declare function unocss(options?: OptionsUnoCSS & OptionsOverrides): Promise<TypedFlatConfigItem[]>;
|
|
14370
14469
|
|
|
@@ -14386,8 +14485,10 @@ declare function toArray<T>(value: T | T[]): T[];
|
|
|
14386
14485
|
declare function interopDefault<T>(m: Awaitable<T>): Promise<T extends {
|
|
14387
14486
|
default: infer U;
|
|
14388
14487
|
} ? U : T>;
|
|
14389
|
-
declare function
|
|
14488
|
+
declare function isPackageInScope(name: string): boolean;
|
|
14489
|
+
declare function ensurePackages(packages: (string | undefined)[]): Promise<void>;
|
|
14390
14490
|
declare function isInEditorEnv(): boolean;
|
|
14491
|
+
declare function isInGitHooksOrLintStaged(): boolean;
|
|
14391
14492
|
|
|
14392
14493
|
declare const GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
|
|
14393
14494
|
declare const GLOB_SRC = "**/*.?([cm])[jt]s?(x)";
|
|
@@ -14409,6 +14510,8 @@ declare const GLOB_SVELTE = "**/*.svelte";
|
|
|
14409
14510
|
declare const GLOB_VUE = "**/*.vue";
|
|
14410
14511
|
declare const GLOB_YAML = "**/*.y?(a)ml";
|
|
14411
14512
|
declare const GLOB_TOML = "**/*.toml";
|
|
14513
|
+
declare const GLOB_XML = "**/*.xml";
|
|
14514
|
+
declare const GLOB_SVG = "**/*.svg";
|
|
14412
14515
|
declare const GLOB_HTML = "**/*.htm?(l)";
|
|
14413
14516
|
declare const GLOB_GRAPHQL = "**/*.{g,graph}ql";
|
|
14414
14517
|
declare const GLOB_MARKDOWN_CODE = "**/*.md/**/*.?([cm])[jt]s?(x)";
|
|
@@ -14416,4 +14519,4 @@ declare const GLOB_TESTS: string[];
|
|
|
14416
14519
|
declare const GLOB_ALL_SRC: string[];
|
|
14417
14520
|
declare const GLOB_EXCLUDE: string[];
|
|
14418
14521
|
|
|
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 };
|
|
14522
|
+
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_SVG, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_XML, 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 OptionsUnicorn, type OptionsUnoCSS, type OptionsVue, type Rules, type StylisticConfig, StylisticConfigDefaults, type TypedFlatConfigItem, combine, comments, lincy as default, defaultPluginRenaming, ensurePackages, formatters, ignores, imports, interopDefault, isInEditorEnv, isInGitHooksOrLintStaged, isPackageInScope, javascript, jsdoc, jsonc, jsx, lincy, markdown, node, perfectionist, react, regexp, renamePluginInConfigs, renameRules, sortPackageJson, sortTsconfig, stylistic, test, toArray, toml, typescript, unicorn, unocss, vue, yaml };
|