@jimmy.codes/eslint-config 5.0.0 → 5.1.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.d.ts +57 -93
- package/dist/index.js +1 -5
- package/package.json +8 -8
package/dist/index.d.ts
CHANGED
|
@@ -3500,233 +3500,233 @@ interface RuleOptions {
|
|
|
3500
3500
|
'implicit-arrow-linebreak'?: Linter.RuleEntry<ImplicitArrowLinebreak>
|
|
3501
3501
|
/**
|
|
3502
3502
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
3503
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
3503
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/consistent-type-specifier-style.md
|
|
3504
3504
|
*/
|
|
3505
3505
|
'import-x/consistent-type-specifier-style'?: Linter.RuleEntry<ImportXConsistentTypeSpecifierStyle>
|
|
3506
3506
|
/**
|
|
3507
3507
|
* Ensure a default export is present, given a default import.
|
|
3508
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
3508
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/default.md
|
|
3509
3509
|
*/
|
|
3510
3510
|
'import-x/default'?: Linter.RuleEntry<[]>
|
|
3511
3511
|
/**
|
|
3512
3512
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
3513
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
3513
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/dynamic-import-chunkname.md
|
|
3514
3514
|
*/
|
|
3515
3515
|
'import-x/dynamic-import-chunkname'?: Linter.RuleEntry<ImportXDynamicImportChunkname>
|
|
3516
3516
|
/**
|
|
3517
3517
|
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
3518
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
3518
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/export.md
|
|
3519
3519
|
*/
|
|
3520
3520
|
'import-x/export'?: Linter.RuleEntry<[]>
|
|
3521
3521
|
/**
|
|
3522
3522
|
* Ensure all exports appear after other statements.
|
|
3523
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
3523
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/exports-last.md
|
|
3524
3524
|
*/
|
|
3525
3525
|
'import-x/exports-last'?: Linter.RuleEntry<[]>
|
|
3526
3526
|
/**
|
|
3527
3527
|
* Ensure consistent use of file extension within the import path.
|
|
3528
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
3528
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/extensions.md
|
|
3529
3529
|
*/
|
|
3530
3530
|
'import-x/extensions'?: Linter.RuleEntry<ImportXExtensions>
|
|
3531
3531
|
/**
|
|
3532
3532
|
* Ensure all imports appear before other statements.
|
|
3533
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
3533
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/first.md
|
|
3534
3534
|
*/
|
|
3535
3535
|
'import-x/first'?: Linter.RuleEntry<ImportXFirst>
|
|
3536
3536
|
/**
|
|
3537
3537
|
* Prefer named exports to be grouped together in a single export declaration.
|
|
3538
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
3538
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/group-exports.md
|
|
3539
3539
|
*/
|
|
3540
3540
|
'import-x/group-exports'?: Linter.RuleEntry<[]>
|
|
3541
3541
|
/**
|
|
3542
3542
|
* Replaced by `import-x/first`.
|
|
3543
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
3543
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/imports-first.md
|
|
3544
3544
|
* @deprecated
|
|
3545
3545
|
*/
|
|
3546
3546
|
'import-x/imports-first'?: Linter.RuleEntry<ImportXImportsFirst>
|
|
3547
3547
|
/**
|
|
3548
3548
|
* Enforce the maximum number of dependencies a module can have.
|
|
3549
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
3549
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/max-dependencies.md
|
|
3550
3550
|
*/
|
|
3551
3551
|
'import-x/max-dependencies'?: Linter.RuleEntry<ImportXMaxDependencies>
|
|
3552
3552
|
/**
|
|
3553
3553
|
* Ensure named imports correspond to a named export in the remote file.
|
|
3554
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
3554
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/named.md
|
|
3555
3555
|
*/
|
|
3556
3556
|
'import-x/named'?: Linter.RuleEntry<ImportXNamed>
|
|
3557
3557
|
/**
|
|
3558
3558
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
3559
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
3559
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/namespace.md
|
|
3560
3560
|
*/
|
|
3561
3561
|
'import-x/namespace'?: Linter.RuleEntry<ImportXNamespace>
|
|
3562
3562
|
/**
|
|
3563
3563
|
* Enforce a newline after import statements.
|
|
3564
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
3564
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/newline-after-import.md
|
|
3565
3565
|
*/
|
|
3566
3566
|
'import-x/newline-after-import'?: Linter.RuleEntry<ImportXNewlineAfterImport>
|
|
3567
3567
|
/**
|
|
3568
3568
|
* Forbid import of modules using absolute paths.
|
|
3569
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
3569
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-absolute-path.md
|
|
3570
3570
|
*/
|
|
3571
3571
|
'import-x/no-absolute-path'?: Linter.RuleEntry<ImportXNoAbsolutePath>
|
|
3572
3572
|
/**
|
|
3573
3573
|
* Forbid AMD `require` and `define` calls.
|
|
3574
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
3574
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-amd.md
|
|
3575
3575
|
*/
|
|
3576
3576
|
'import-x/no-amd'?: Linter.RuleEntry<[]>
|
|
3577
3577
|
/**
|
|
3578
3578
|
* Forbid anonymous values as default exports.
|
|
3579
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
3579
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-anonymous-default-export.md
|
|
3580
3580
|
*/
|
|
3581
3581
|
'import-x/no-anonymous-default-export'?: Linter.RuleEntry<ImportXNoAnonymousDefaultExport>
|
|
3582
3582
|
/**
|
|
3583
3583
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
3584
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
3584
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-commonjs.md
|
|
3585
3585
|
*/
|
|
3586
3586
|
'import-x/no-commonjs'?: Linter.RuleEntry<ImportXNoCommonjs>
|
|
3587
3587
|
/**
|
|
3588
3588
|
* Forbid a module from importing a module with a dependency path back to itself.
|
|
3589
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
3589
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-cycle.md
|
|
3590
3590
|
*/
|
|
3591
3591
|
'import-x/no-cycle'?: Linter.RuleEntry<ImportXNoCycle>
|
|
3592
3592
|
/**
|
|
3593
3593
|
* Forbid default exports.
|
|
3594
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
3594
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-default-export.md
|
|
3595
3595
|
*/
|
|
3596
3596
|
'import-x/no-default-export'?: Linter.RuleEntry<[]>
|
|
3597
3597
|
/**
|
|
3598
3598
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
3599
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
3599
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-deprecated.md
|
|
3600
3600
|
*/
|
|
3601
3601
|
'import-x/no-deprecated'?: Linter.RuleEntry<[]>
|
|
3602
3602
|
/**
|
|
3603
3603
|
* Forbid repeated import of the same module in multiple places.
|
|
3604
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
3604
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-duplicates.md
|
|
3605
3605
|
*/
|
|
3606
3606
|
'import-x/no-duplicates'?: Linter.RuleEntry<ImportXNoDuplicates>
|
|
3607
3607
|
/**
|
|
3608
3608
|
* Forbid `require()` calls with expressions.
|
|
3609
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
3609
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-dynamic-require.md
|
|
3610
3610
|
*/
|
|
3611
3611
|
'import-x/no-dynamic-require'?: Linter.RuleEntry<ImportXNoDynamicRequire>
|
|
3612
3612
|
/**
|
|
3613
3613
|
* Forbid empty named import blocks.
|
|
3614
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
3614
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-empty-named-blocks.md
|
|
3615
3615
|
*/
|
|
3616
3616
|
'import-x/no-empty-named-blocks'?: Linter.RuleEntry<[]>
|
|
3617
3617
|
/**
|
|
3618
3618
|
* Forbid the use of extraneous packages.
|
|
3619
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
3619
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-extraneous-dependencies.md
|
|
3620
3620
|
*/
|
|
3621
3621
|
'import-x/no-extraneous-dependencies'?: Linter.RuleEntry<ImportXNoExtraneousDependencies>
|
|
3622
3622
|
/**
|
|
3623
3623
|
* Forbid import statements with CommonJS module.exports.
|
|
3624
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
3624
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-import-module-exports.md
|
|
3625
3625
|
*/
|
|
3626
3626
|
'import-x/no-import-module-exports'?: Linter.RuleEntry<ImportXNoImportModuleExports>
|
|
3627
3627
|
/**
|
|
3628
3628
|
* Forbid importing the submodules of other modules.
|
|
3629
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
3629
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-internal-modules.md
|
|
3630
3630
|
*/
|
|
3631
3631
|
'import-x/no-internal-modules'?: Linter.RuleEntry<ImportXNoInternalModules>
|
|
3632
3632
|
/**
|
|
3633
3633
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
3634
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
3634
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-mutable-exports.md
|
|
3635
3635
|
*/
|
|
3636
3636
|
'import-x/no-mutable-exports'?: Linter.RuleEntry<[]>
|
|
3637
3637
|
/**
|
|
3638
3638
|
* Forbid use of exported name as identifier of default export.
|
|
3639
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
3639
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-named-as-default.md
|
|
3640
3640
|
*/
|
|
3641
3641
|
'import-x/no-named-as-default'?: Linter.RuleEntry<[]>
|
|
3642
3642
|
/**
|
|
3643
3643
|
* Forbid use of exported name as property of default export.
|
|
3644
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
3644
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-named-as-default-member.md
|
|
3645
3645
|
*/
|
|
3646
3646
|
'import-x/no-named-as-default-member'?: Linter.RuleEntry<[]>
|
|
3647
3647
|
/**
|
|
3648
3648
|
* Forbid named default exports.
|
|
3649
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
3649
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-named-default.md
|
|
3650
3650
|
*/
|
|
3651
3651
|
'import-x/no-named-default'?: Linter.RuleEntry<[]>
|
|
3652
3652
|
/**
|
|
3653
3653
|
* Forbid named exports.
|
|
3654
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
3654
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-named-export.md
|
|
3655
3655
|
*/
|
|
3656
3656
|
'import-x/no-named-export'?: Linter.RuleEntry<[]>
|
|
3657
3657
|
/**
|
|
3658
3658
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
3659
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
3659
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-namespace.md
|
|
3660
3660
|
*/
|
|
3661
3661
|
'import-x/no-namespace'?: Linter.RuleEntry<ImportXNoNamespace>
|
|
3662
3662
|
/**
|
|
3663
3663
|
* Forbid Node.js builtin modules.
|
|
3664
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
3664
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-nodejs-modules.md
|
|
3665
3665
|
*/
|
|
3666
3666
|
'import-x/no-nodejs-modules'?: Linter.RuleEntry<ImportXNoNodejsModules>
|
|
3667
3667
|
/**
|
|
3668
3668
|
* Forbid importing packages through relative paths.
|
|
3669
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
3669
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-relative-packages.md
|
|
3670
3670
|
*/
|
|
3671
3671
|
'import-x/no-relative-packages'?: Linter.RuleEntry<ImportXNoRelativePackages>
|
|
3672
3672
|
/**
|
|
3673
3673
|
* Forbid importing modules from parent directories.
|
|
3674
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
3674
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-relative-parent-imports.md
|
|
3675
3675
|
*/
|
|
3676
3676
|
'import-x/no-relative-parent-imports'?: Linter.RuleEntry<ImportXNoRelativeParentImports>
|
|
3677
3677
|
/**
|
|
3678
3678
|
* Forbid importing a default export by a different name.
|
|
3679
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
3679
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-rename-default.md
|
|
3680
3680
|
*/
|
|
3681
3681
|
'import-x/no-rename-default'?: Linter.RuleEntry<ImportXNoRenameDefault>
|
|
3682
3682
|
/**
|
|
3683
3683
|
* Enforce which files can be imported in a given folder.
|
|
3684
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
3684
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-restricted-paths.md
|
|
3685
3685
|
*/
|
|
3686
3686
|
'import-x/no-restricted-paths'?: Linter.RuleEntry<ImportXNoRestrictedPaths>
|
|
3687
3687
|
/**
|
|
3688
3688
|
* Forbid a module from importing itself.
|
|
3689
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
3689
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-self-import.md
|
|
3690
3690
|
*/
|
|
3691
3691
|
'import-x/no-self-import'?: Linter.RuleEntry<[]>
|
|
3692
3692
|
/**
|
|
3693
3693
|
* Forbid unassigned imports.
|
|
3694
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
3694
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-unassigned-import.md
|
|
3695
3695
|
*/
|
|
3696
3696
|
'import-x/no-unassigned-import'?: Linter.RuleEntry<ImportXNoUnassignedImport>
|
|
3697
3697
|
/**
|
|
3698
3698
|
* Ensure imports point to a file/module that can be resolved.
|
|
3699
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
3699
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-unresolved.md
|
|
3700
3700
|
*/
|
|
3701
3701
|
'import-x/no-unresolved'?: Linter.RuleEntry<ImportXNoUnresolved>
|
|
3702
3702
|
/**
|
|
3703
3703
|
* Forbid modules without exports, or exports without matching import in another module.
|
|
3704
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
3704
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-unused-modules.md
|
|
3705
3705
|
*/
|
|
3706
3706
|
'import-x/no-unused-modules'?: Linter.RuleEntry<ImportXNoUnusedModules>
|
|
3707
3707
|
/**
|
|
3708
3708
|
* Forbid unnecessary path segments in import and require statements.
|
|
3709
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
3709
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-useless-path-segments.md
|
|
3710
3710
|
*/
|
|
3711
3711
|
'import-x/no-useless-path-segments'?: Linter.RuleEntry<ImportXNoUselessPathSegments>
|
|
3712
3712
|
/**
|
|
3713
3713
|
* Forbid webpack loader syntax in imports.
|
|
3714
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
3714
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-webpack-loader-syntax.md
|
|
3715
3715
|
*/
|
|
3716
3716
|
'import-x/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>
|
|
3717
3717
|
/**
|
|
3718
3718
|
* Enforce a convention in module import order.
|
|
3719
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
3719
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/order.md
|
|
3720
3720
|
*/
|
|
3721
3721
|
'import-x/order'?: Linter.RuleEntry<ImportXOrder>
|
|
3722
3722
|
/**
|
|
3723
3723
|
* Prefer a default export if module exports a single name or multiple names.
|
|
3724
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
3724
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/prefer-default-export.md
|
|
3725
3725
|
*/
|
|
3726
3726
|
'import-x/prefer-default-export'?: Linter.RuleEntry<ImportXPreferDefaultExport>
|
|
3727
3727
|
/**
|
|
3728
3728
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
3729
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
3729
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/unambiguous.md
|
|
3730
3730
|
*/
|
|
3731
3731
|
'import-x/unambiguous'?: Linter.RuleEntry<[]>
|
|
3732
3732
|
/**
|
|
@@ -7332,7 +7332,7 @@ interface RuleOptions {
|
|
|
7332
7332
|
*/
|
|
7333
7333
|
'storybook/story-exports'?: Linter.RuleEntry<[]>
|
|
7334
7334
|
/**
|
|
7335
|
-
* Use expect from `@storybook/test` or `@storybook/jest`
|
|
7335
|
+
* Use expect from `@storybook/test`, `storybook/test` or `@storybook/jest`
|
|
7336
7336
|
* @see https://github.com/storybookjs/eslint-plugin-storybook/blob/main/docs/rules/use-storybook-expect.md
|
|
7337
7337
|
*/
|
|
7338
7338
|
'storybook/use-storybook-expect'?: Linter.RuleEntry<[]>
|
|
@@ -8718,6 +8718,8 @@ type TypescriptEslintExplicitModuleBoundaryTypes = []|[{
|
|
|
8718
8718
|
|
|
8719
8719
|
allowHigherOrderFunctions?: boolean
|
|
8720
8720
|
|
|
8721
|
+
allowOverloadFunctions?: boolean
|
|
8722
|
+
|
|
8721
8723
|
allowTypedFunctionExpressions?: boolean
|
|
8722
8724
|
}]
|
|
8723
8725
|
// ----- @typescript-eslint/init-declarations -----
|
|
@@ -9749,6 +9751,8 @@ type TypescriptEslintUnboundMethod = []|[{
|
|
|
9749
9751
|
type TypescriptEslintUnifiedSignatures = []|[{
|
|
9750
9752
|
|
|
9751
9753
|
ignoreDifferentlyNamedParameters?: boolean
|
|
9754
|
+
|
|
9755
|
+
ignoreOverloadsWithDifferentJSDoc?: boolean
|
|
9752
9756
|
}]
|
|
9753
9757
|
// ----- accessor-pairs -----
|
|
9754
9758
|
type AccessorPairs = []|[{
|
|
@@ -10176,7 +10180,7 @@ type IdMatch = []|[string]|[string, {
|
|
|
10176
10180
|
// ----- implicit-arrow-linebreak -----
|
|
10177
10181
|
type ImplicitArrowLinebreak = []|[("beside" | "below")]
|
|
10178
10182
|
// ----- import-x/consistent-type-specifier-style -----
|
|
10179
|
-
type ImportXConsistentTypeSpecifierStyle = []|[("prefer-
|
|
10183
|
+
type ImportXConsistentTypeSpecifierStyle = []|[("prefer-top-level" | "prefer-inline")]
|
|
10180
10184
|
// ----- import-x/dynamic-import-chunkname -----
|
|
10181
10185
|
type ImportXDynamicImportChunkname = []|[{
|
|
10182
10186
|
importFunctions?: string[]
|
|
@@ -15555,10 +15559,7 @@ declare const defineConfig: ({ astro, autoDetect, ignores, jest, nextjs, overrid
|
|
|
15555
15559
|
"import-x/resolver-next": {
|
|
15556
15560
|
interfaceVersion: number;
|
|
15557
15561
|
name: string;
|
|
15558
|
-
resolve(source: string, file: string):
|
|
15559
|
-
found: boolean;
|
|
15560
|
-
path?: string | null | undefined;
|
|
15561
|
-
};
|
|
15562
|
+
resolve(source: string, file: string): eslint_plugin_import_x_types_js.ResolvedResult;
|
|
15562
15563
|
}[];
|
|
15563
15564
|
};
|
|
15564
15565
|
} | {
|
|
@@ -15650,47 +15651,10 @@ declare const defineConfig: ({ astro, autoDetect, ignores, jest, nextjs, overrid
|
|
|
15650
15651
|
errors: eslint_plugin_import_x_types_js.PluginFlatConfig;
|
|
15651
15652
|
warnings: eslint_plugin_import_x_types_js.PluginFlatConfig;
|
|
15652
15653
|
"stage-0": eslint_plugin_import_x_types_js.PluginFlatConfig;
|
|
15653
|
-
react:
|
|
15654
|
-
|
|
15655
|
-
|
|
15656
|
-
|
|
15657
|
-
languageOptions: {
|
|
15658
|
-
parserOptions: {
|
|
15659
|
-
ecmaFeatures: {
|
|
15660
|
-
jsx: true;
|
|
15661
|
-
};
|
|
15662
|
-
};
|
|
15663
|
-
};
|
|
15664
|
-
};
|
|
15665
|
-
"react-native": {
|
|
15666
|
-
settings: {
|
|
15667
|
-
"import-x/resolver": {
|
|
15668
|
-
node: {
|
|
15669
|
-
extensions: string[];
|
|
15670
|
-
};
|
|
15671
|
-
};
|
|
15672
|
-
};
|
|
15673
|
-
};
|
|
15674
|
-
electron: {
|
|
15675
|
-
settings: {
|
|
15676
|
-
"import-x/core-modules": string[];
|
|
15677
|
-
};
|
|
15678
|
-
};
|
|
15679
|
-
typescript: {
|
|
15680
|
-
settings: {
|
|
15681
|
-
"import-x/extensions": readonly [".ts", ".tsx", ".cts", ".mts", ".js", ".jsx", ".cjs", ".mjs"];
|
|
15682
|
-
"import-x/external-module-folders": string[];
|
|
15683
|
-
"import-x/parsers": {
|
|
15684
|
-
"@typescript-eslint/parser": (".ts" | ".tsx" | ".cts" | ".mts")[];
|
|
15685
|
-
};
|
|
15686
|
-
"import-x/resolver": {
|
|
15687
|
-
typescript: true;
|
|
15688
|
-
};
|
|
15689
|
-
};
|
|
15690
|
-
rules: {
|
|
15691
|
-
"import-x/named": "off";
|
|
15692
|
-
};
|
|
15693
|
-
};
|
|
15654
|
+
react: eslint_plugin_import_x_types_js.PluginFlatConfig;
|
|
15655
|
+
"react-native": eslint_plugin_import_x_types_js.PluginFlatConfig;
|
|
15656
|
+
electron: eslint_plugin_import_x_types_js.PluginFlatConfig;
|
|
15657
|
+
typescript: eslint_plugin_import_x_types_js.PluginFlatConfig;
|
|
15694
15658
|
};
|
|
15695
15659
|
rules: {
|
|
15696
15660
|
"no-unresolved": _typescript_eslint_utils_ts_eslint.RuleModule<"unresolved" | "casingMismatch", [((eslint_plugin_import_x_utils_module_visitor_js.ModuleOptions & {
|
package/dist/index.js
CHANGED
|
@@ -102,11 +102,7 @@ var importsTypescriptConfig = () => {
|
|
|
102
102
|
"import-x/extensions": settings["import-x/extensions"],
|
|
103
103
|
"import-x/external-module-folders": settings["import-x/external-module-folders"],
|
|
104
104
|
"import-x/parsers": settings["import-x/parsers"],
|
|
105
|
-
"import-x/resolver-next": [
|
|
106
|
-
createTypeScriptImportResolver({
|
|
107
|
-
alwaysTryTypes: true
|
|
108
|
-
})
|
|
109
|
-
]
|
|
105
|
+
"import-x/resolver-next": [createTypeScriptImportResolver()]
|
|
110
106
|
}
|
|
111
107
|
}
|
|
112
108
|
];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jimmy.codes/eslint-config",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.1.0",
|
|
4
4
|
"description": "A pragmatic and opinionated ESLint config for modern development.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -28,14 +28,14 @@
|
|
|
28
28
|
"@next/eslint-plugin-next": "^15.1.7",
|
|
29
29
|
"@tanstack/eslint-plugin-query": "^5.66.1",
|
|
30
30
|
"@types/eslint": "9.6.1",
|
|
31
|
-
"@typescript-eslint/parser": "^8.
|
|
32
|
-
"@typescript-eslint/utils": "^8.
|
|
31
|
+
"@typescript-eslint/parser": "^8.26.1",
|
|
32
|
+
"@typescript-eslint/utils": "^8.26.1",
|
|
33
33
|
"@vitest/eslint-plugin": "^1.1.31",
|
|
34
34
|
"astro-eslint-parser": "^1.2.1",
|
|
35
35
|
"eslint-config-prettier": "^10.1.1",
|
|
36
|
-
"eslint-import-resolver-typescript": "^
|
|
36
|
+
"eslint-import-resolver-typescript": "^4.2.1",
|
|
37
37
|
"eslint-plugin-astro": "^1.3.1",
|
|
38
|
-
"eslint-plugin-import-x": "^4.
|
|
38
|
+
"eslint-plugin-import-x": "^4.8.0",
|
|
39
39
|
"eslint-plugin-jest": "^28.11.0",
|
|
40
40
|
"eslint-plugin-jest-dom": "^5.5.0",
|
|
41
41
|
"eslint-plugin-jsdoc": "^50.6.6",
|
|
@@ -44,16 +44,16 @@
|
|
|
44
44
|
"eslint-plugin-perfectionist": "^4.9.0",
|
|
45
45
|
"eslint-plugin-playwright": "^2.2.0",
|
|
46
46
|
"eslint-plugin-react": "^7.37.4",
|
|
47
|
-
"eslint-plugin-react-compiler": "19.0.0-beta-
|
|
47
|
+
"eslint-plugin-react-compiler": "19.0.0-beta-3229e95-20250315",
|
|
48
48
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
49
49
|
"eslint-plugin-react-refresh": "0.4.19",
|
|
50
50
|
"eslint-plugin-regexp": "^2.7.0",
|
|
51
|
-
"eslint-plugin-storybook": "0.11.
|
|
51
|
+
"eslint-plugin-storybook": "0.11.6",
|
|
52
52
|
"eslint-plugin-testing-library": "^7.1.1",
|
|
53
53
|
"eslint-plugin-unicorn": "^56.0.1",
|
|
54
54
|
"globals": "^15.14.0",
|
|
55
55
|
"local-pkg": "^1.0.0",
|
|
56
|
-
"typescript-eslint": "^8.
|
|
56
|
+
"typescript-eslint": "^8.26.1"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
59
|
"eslint": "^9.10.0"
|