@dhzh/eslint-config 2.2.1 → 2.2.3
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/cli/index.mjs +2 -2
- package/dist/index.d.mts +52 -52
- package/package.json +5 -5
package/dist/cli/index.mjs
CHANGED
|
@@ -6,11 +6,11 @@ import fsp from "node:fs/promises";
|
|
|
6
6
|
import path from "node:path";
|
|
7
7
|
import fs from "node:fs";
|
|
8
8
|
//#region package.json
|
|
9
|
-
var version = "2.2.
|
|
9
|
+
var version = "2.2.3";
|
|
10
10
|
var devDependencies = {
|
|
11
11
|
"@eslint/config-inspector": "^3.0.4",
|
|
12
12
|
"@prettier/plugin-xml": "^3.4.2",
|
|
13
|
-
"@types/node": "^
|
|
13
|
+
"@types/node": "^26.0.0",
|
|
14
14
|
"@typescript-eslint/types": "^8.61.1",
|
|
15
15
|
"bumpp": "^11.1.0",
|
|
16
16
|
"bundle-require": "^5.1.0",
|
package/dist/index.d.mts
CHANGED
|
@@ -2436,238 +2436,238 @@ interface RuleOptions {
|
|
|
2436
2436
|
'implicit-arrow-linebreak'?: Linter.RuleEntry<ImplicitArrowLinebreak>;
|
|
2437
2437
|
/**
|
|
2438
2438
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
2439
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2439
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.17.0/docs/rules/consistent-type-specifier-style.md
|
|
2440
2440
|
*/
|
|
2441
2441
|
'import-x/consistent-type-specifier-style'?: Linter.RuleEntry<ImportXConsistentTypeSpecifierStyle>;
|
|
2442
2442
|
/**
|
|
2443
2443
|
* Ensure a default export is present, given a default import.
|
|
2444
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2444
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.17.0/docs/rules/default.md
|
|
2445
2445
|
*/
|
|
2446
2446
|
'import-x/default'?: Linter.RuleEntry<[]>;
|
|
2447
2447
|
/**
|
|
2448
2448
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
2449
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2449
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.17.0/docs/rules/dynamic-import-chunkname.md
|
|
2450
2450
|
*/
|
|
2451
2451
|
'import-x/dynamic-import-chunkname'?: Linter.RuleEntry<ImportXDynamicImportChunkname>;
|
|
2452
2452
|
/**
|
|
2453
2453
|
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
2454
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2454
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.17.0/docs/rules/export.md
|
|
2455
2455
|
*/
|
|
2456
2456
|
'import-x/export'?: Linter.RuleEntry<[]>;
|
|
2457
2457
|
/**
|
|
2458
2458
|
* Ensure all exports appear after other statements.
|
|
2459
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2459
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.17.0/docs/rules/exports-last.md
|
|
2460
2460
|
*/
|
|
2461
2461
|
'import-x/exports-last'?: Linter.RuleEntry<[]>;
|
|
2462
2462
|
/**
|
|
2463
2463
|
* Ensure consistent use of file extension within the import path.
|
|
2464
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2464
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.17.0/docs/rules/extensions.md
|
|
2465
2465
|
*/
|
|
2466
2466
|
'import-x/extensions'?: Linter.RuleEntry<ImportXExtensions>;
|
|
2467
2467
|
/**
|
|
2468
2468
|
* Ensure all imports appear before other statements.
|
|
2469
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2469
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.17.0/docs/rules/first.md
|
|
2470
2470
|
*/
|
|
2471
2471
|
'import-x/first'?: Linter.RuleEntry<ImportXFirst>;
|
|
2472
2472
|
/**
|
|
2473
2473
|
* Prefer named exports to be grouped together in a single export declaration.
|
|
2474
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2474
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.17.0/docs/rules/group-exports.md
|
|
2475
2475
|
*/
|
|
2476
2476
|
'import-x/group-exports'?: Linter.RuleEntry<[]>;
|
|
2477
2477
|
/**
|
|
2478
2478
|
* Replaced by `import-x/first`.
|
|
2479
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2479
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.17.0/docs/rules/imports-first.md
|
|
2480
2480
|
* @deprecated
|
|
2481
2481
|
*/
|
|
2482
2482
|
'import-x/imports-first'?: Linter.RuleEntry<ImportXImportsFirst>;
|
|
2483
2483
|
/**
|
|
2484
2484
|
* Enforce the maximum number of dependencies a module can have.
|
|
2485
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2485
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.17.0/docs/rules/max-dependencies.md
|
|
2486
2486
|
*/
|
|
2487
2487
|
'import-x/max-dependencies'?: Linter.RuleEntry<ImportXMaxDependencies>;
|
|
2488
2488
|
/**
|
|
2489
2489
|
* Ensure named imports correspond to a named export in the remote file.
|
|
2490
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2490
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.17.0/docs/rules/named.md
|
|
2491
2491
|
*/
|
|
2492
2492
|
'import-x/named'?: Linter.RuleEntry<ImportXNamed>;
|
|
2493
2493
|
/**
|
|
2494
2494
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
2495
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2495
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.17.0/docs/rules/namespace.md
|
|
2496
2496
|
*/
|
|
2497
2497
|
'import-x/namespace'?: Linter.RuleEntry<ImportXNamespace>;
|
|
2498
2498
|
/**
|
|
2499
2499
|
* Enforce a newline after import statements.
|
|
2500
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2500
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.17.0/docs/rules/newline-after-import.md
|
|
2501
2501
|
*/
|
|
2502
2502
|
'import-x/newline-after-import'?: Linter.RuleEntry<ImportXNewlineAfterImport>;
|
|
2503
2503
|
/**
|
|
2504
2504
|
* Forbid import of modules using absolute paths.
|
|
2505
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2505
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.17.0/docs/rules/no-absolute-path.md
|
|
2506
2506
|
*/
|
|
2507
2507
|
'import-x/no-absolute-path'?: Linter.RuleEntry<ImportXNoAbsolutePath>;
|
|
2508
2508
|
/**
|
|
2509
2509
|
* Forbid AMD `require` and `define` calls.
|
|
2510
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2510
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.17.0/docs/rules/no-amd.md
|
|
2511
2511
|
*/
|
|
2512
2512
|
'import-x/no-amd'?: Linter.RuleEntry<[]>;
|
|
2513
2513
|
/**
|
|
2514
2514
|
* Forbid anonymous values as default exports.
|
|
2515
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2515
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.17.0/docs/rules/no-anonymous-default-export.md
|
|
2516
2516
|
*/
|
|
2517
2517
|
'import-x/no-anonymous-default-export'?: Linter.RuleEntry<ImportXNoAnonymousDefaultExport>;
|
|
2518
2518
|
/**
|
|
2519
2519
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
2520
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2520
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.17.0/docs/rules/no-commonjs.md
|
|
2521
2521
|
*/
|
|
2522
2522
|
'import-x/no-commonjs'?: Linter.RuleEntry<ImportXNoCommonjs>;
|
|
2523
2523
|
/**
|
|
2524
2524
|
* Forbid a module from importing a module with a dependency path back to itself.
|
|
2525
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2525
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.17.0/docs/rules/no-cycle.md
|
|
2526
2526
|
*/
|
|
2527
2527
|
'import-x/no-cycle'?: Linter.RuleEntry<ImportXNoCycle>;
|
|
2528
2528
|
/**
|
|
2529
2529
|
* Forbid default exports.
|
|
2530
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2530
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.17.0/docs/rules/no-default-export.md
|
|
2531
2531
|
*/
|
|
2532
2532
|
'import-x/no-default-export'?: Linter.RuleEntry<[]>;
|
|
2533
2533
|
/**
|
|
2534
2534
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
2535
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2535
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.17.0/docs/rules/no-deprecated.md
|
|
2536
2536
|
*/
|
|
2537
2537
|
'import-x/no-deprecated'?: Linter.RuleEntry<[]>;
|
|
2538
2538
|
/**
|
|
2539
2539
|
* Forbid repeated import of the same module in multiple places.
|
|
2540
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2540
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.17.0/docs/rules/no-duplicates.md
|
|
2541
2541
|
*/
|
|
2542
2542
|
'import-x/no-duplicates'?: Linter.RuleEntry<ImportXNoDuplicates>;
|
|
2543
2543
|
/**
|
|
2544
2544
|
* Forbid `require()` calls with expressions.
|
|
2545
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2545
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.17.0/docs/rules/no-dynamic-require.md
|
|
2546
2546
|
*/
|
|
2547
2547
|
'import-x/no-dynamic-require'?: Linter.RuleEntry<ImportXNoDynamicRequire>;
|
|
2548
2548
|
/**
|
|
2549
2549
|
* Forbid empty named import blocks.
|
|
2550
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2550
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.17.0/docs/rules/no-empty-named-blocks.md
|
|
2551
2551
|
*/
|
|
2552
2552
|
'import-x/no-empty-named-blocks'?: Linter.RuleEntry<[]>;
|
|
2553
2553
|
/**
|
|
2554
2554
|
* Forbid the use of extraneous packages.
|
|
2555
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2555
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.17.0/docs/rules/no-extraneous-dependencies.md
|
|
2556
2556
|
*/
|
|
2557
2557
|
'import-x/no-extraneous-dependencies'?: Linter.RuleEntry<ImportXNoExtraneousDependencies>;
|
|
2558
2558
|
/**
|
|
2559
2559
|
* Forbid import statements with CommonJS module.exports.
|
|
2560
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2560
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.17.0/docs/rules/no-import-module-exports.md
|
|
2561
2561
|
*/
|
|
2562
2562
|
'import-x/no-import-module-exports'?: Linter.RuleEntry<ImportXNoImportModuleExports>;
|
|
2563
2563
|
/**
|
|
2564
2564
|
* Forbid importing the submodules of other modules.
|
|
2565
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2565
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.17.0/docs/rules/no-internal-modules.md
|
|
2566
2566
|
*/
|
|
2567
2567
|
'import-x/no-internal-modules'?: Linter.RuleEntry<ImportXNoInternalModules>;
|
|
2568
2568
|
/**
|
|
2569
2569
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
2570
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2570
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.17.0/docs/rules/no-mutable-exports.md
|
|
2571
2571
|
*/
|
|
2572
2572
|
'import-x/no-mutable-exports'?: Linter.RuleEntry<[]>;
|
|
2573
2573
|
/**
|
|
2574
2574
|
* Forbid use of exported name as identifier of default export.
|
|
2575
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2575
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.17.0/docs/rules/no-named-as-default.md
|
|
2576
2576
|
*/
|
|
2577
2577
|
'import-x/no-named-as-default'?: Linter.RuleEntry<[]>;
|
|
2578
2578
|
/**
|
|
2579
2579
|
* Forbid use of exported name as property of default export.
|
|
2580
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2580
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.17.0/docs/rules/no-named-as-default-member.md
|
|
2581
2581
|
*/
|
|
2582
2582
|
'import-x/no-named-as-default-member'?: Linter.RuleEntry<[]>;
|
|
2583
2583
|
/**
|
|
2584
2584
|
* Forbid named default exports.
|
|
2585
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2585
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.17.0/docs/rules/no-named-default.md
|
|
2586
2586
|
*/
|
|
2587
2587
|
'import-x/no-named-default'?: Linter.RuleEntry<[]>;
|
|
2588
2588
|
/**
|
|
2589
2589
|
* Forbid named exports.
|
|
2590
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2590
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.17.0/docs/rules/no-named-export.md
|
|
2591
2591
|
*/
|
|
2592
2592
|
'import-x/no-named-export'?: Linter.RuleEntry<[]>;
|
|
2593
2593
|
/**
|
|
2594
2594
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
2595
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2595
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.17.0/docs/rules/no-namespace.md
|
|
2596
2596
|
*/
|
|
2597
2597
|
'import-x/no-namespace'?: Linter.RuleEntry<ImportXNoNamespace>;
|
|
2598
2598
|
/**
|
|
2599
2599
|
* Forbid Node.js builtin modules.
|
|
2600
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2600
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.17.0/docs/rules/no-nodejs-modules.md
|
|
2601
2601
|
*/
|
|
2602
2602
|
'import-x/no-nodejs-modules'?: Linter.RuleEntry<ImportXNoNodejsModules>;
|
|
2603
2603
|
/**
|
|
2604
2604
|
* Forbid importing packages through relative paths.
|
|
2605
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2605
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.17.0/docs/rules/no-relative-packages.md
|
|
2606
2606
|
*/
|
|
2607
2607
|
'import-x/no-relative-packages'?: Linter.RuleEntry<ImportXNoRelativePackages>;
|
|
2608
2608
|
/**
|
|
2609
2609
|
* Forbid importing modules from parent directories.
|
|
2610
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2610
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.17.0/docs/rules/no-relative-parent-imports.md
|
|
2611
2611
|
*/
|
|
2612
2612
|
'import-x/no-relative-parent-imports'?: Linter.RuleEntry<ImportXNoRelativeParentImports>;
|
|
2613
2613
|
/**
|
|
2614
2614
|
* Forbid importing a default export by a different name.
|
|
2615
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2615
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.17.0/docs/rules/no-rename-default.md
|
|
2616
2616
|
*/
|
|
2617
2617
|
'import-x/no-rename-default'?: Linter.RuleEntry<ImportXNoRenameDefault>;
|
|
2618
2618
|
/**
|
|
2619
2619
|
* Enforce which files can be imported in a given folder.
|
|
2620
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2620
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.17.0/docs/rules/no-restricted-paths.md
|
|
2621
2621
|
*/
|
|
2622
2622
|
'import-x/no-restricted-paths'?: Linter.RuleEntry<ImportXNoRestrictedPaths>;
|
|
2623
2623
|
/**
|
|
2624
2624
|
* Forbid a module from importing itself.
|
|
2625
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2625
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.17.0/docs/rules/no-self-import.md
|
|
2626
2626
|
*/
|
|
2627
2627
|
'import-x/no-self-import'?: Linter.RuleEntry<[]>;
|
|
2628
2628
|
/**
|
|
2629
2629
|
* Forbid unassigned imports.
|
|
2630
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2630
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.17.0/docs/rules/no-unassigned-import.md
|
|
2631
2631
|
*/
|
|
2632
2632
|
'import-x/no-unassigned-import'?: Linter.RuleEntry<ImportXNoUnassignedImport>;
|
|
2633
2633
|
/**
|
|
2634
2634
|
* Ensure imports point to a file/module that can be resolved.
|
|
2635
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2635
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.17.0/docs/rules/no-unresolved.md
|
|
2636
2636
|
*/
|
|
2637
2637
|
'import-x/no-unresolved'?: Linter.RuleEntry<ImportXNoUnresolved>;
|
|
2638
2638
|
/**
|
|
2639
2639
|
* Forbid modules without exports, or exports without matching import in another module.
|
|
2640
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2640
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.17.0/docs/rules/no-unused-modules.md
|
|
2641
2641
|
*/
|
|
2642
2642
|
'import-x/no-unused-modules'?: Linter.RuleEntry<ImportXNoUnusedModules>;
|
|
2643
2643
|
/**
|
|
2644
2644
|
* Forbid unnecessary path segments in import and require statements.
|
|
2645
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2645
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.17.0/docs/rules/no-useless-path-segments.md
|
|
2646
2646
|
*/
|
|
2647
2647
|
'import-x/no-useless-path-segments'?: Linter.RuleEntry<ImportXNoUselessPathSegments>;
|
|
2648
2648
|
/**
|
|
2649
2649
|
* Forbid webpack loader syntax in imports.
|
|
2650
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2650
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.17.0/docs/rules/no-webpack-loader-syntax.md
|
|
2651
2651
|
*/
|
|
2652
2652
|
'import-x/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>;
|
|
2653
2653
|
/**
|
|
2654
2654
|
* Enforce a convention in module import order.
|
|
2655
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2655
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.17.0/docs/rules/order.md
|
|
2656
2656
|
*/
|
|
2657
2657
|
'import-x/order'?: Linter.RuleEntry<ImportXOrder>;
|
|
2658
2658
|
/**
|
|
2659
2659
|
* Prefer a default export if module exports a single name or multiple names.
|
|
2660
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2660
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.17.0/docs/rules/prefer-default-export.md
|
|
2661
2661
|
*/
|
|
2662
2662
|
'import-x/prefer-default-export'?: Linter.RuleEntry<ImportXPreferDefaultExport>;
|
|
2663
2663
|
/**
|
|
2664
2664
|
* Enforce using namespace imports for specific modules, like `react`/`react-dom`, etc.
|
|
2665
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2665
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.17.0/docs/rules/prefer-namespace-import.md
|
|
2666
2666
|
*/
|
|
2667
2667
|
'import-x/prefer-namespace-import'?: Linter.RuleEntry<ImportXPreferNamespaceImport>;
|
|
2668
2668
|
/**
|
|
2669
2669
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
2670
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2670
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.17.0/docs/rules/unambiguous.md
|
|
2671
2671
|
*/
|
|
2672
2672
|
'import-x/unambiguous'?: Linter.RuleEntry<[]>;
|
|
2673
2673
|
/**
|
|
@@ -14182,7 +14182,7 @@ type ImportXNoAbsolutePath = [] | [{
|
|
|
14182
14182
|
commonjs?: boolean;
|
|
14183
14183
|
amd?: boolean;
|
|
14184
14184
|
esmodule?: boolean;
|
|
14185
|
-
ignore?: [
|
|
14185
|
+
ignore?: [unknown, ...(unknown)[]];
|
|
14186
14186
|
}]; // ----- import-x/no-anonymous-default-export -----
|
|
14187
14187
|
type ImportXNoAnonymousDefaultExport = [] | [{
|
|
14188
14188
|
allowArray?: boolean;
|
|
@@ -14203,7 +14203,7 @@ type ImportXNoCycle = [] | [{
|
|
|
14203
14203
|
commonjs?: boolean;
|
|
14204
14204
|
amd?: boolean;
|
|
14205
14205
|
esmodule?: boolean;
|
|
14206
|
-
ignore?: [
|
|
14206
|
+
ignore?: [unknown, ...(unknown)[]];
|
|
14207
14207
|
maxDepth?: (number | "∞");
|
|
14208
14208
|
ignoreExternal?: boolean;
|
|
14209
14209
|
allowUnsafeDynamicCyclicDependency?: boolean;
|
|
@@ -14244,13 +14244,13 @@ type ImportXNoRelativePackages = [] | [{
|
|
|
14244
14244
|
commonjs?: boolean;
|
|
14245
14245
|
amd?: boolean;
|
|
14246
14246
|
esmodule?: boolean;
|
|
14247
|
-
ignore?: [
|
|
14247
|
+
ignore?: [unknown, ...(unknown)[]];
|
|
14248
14248
|
}]; // ----- import-x/no-relative-parent-imports -----
|
|
14249
14249
|
type ImportXNoRelativeParentImports = [] | [{
|
|
14250
14250
|
commonjs?: boolean;
|
|
14251
14251
|
amd?: boolean;
|
|
14252
14252
|
esmodule?: boolean;
|
|
14253
|
-
ignore?: [
|
|
14253
|
+
ignore?: [unknown, ...(unknown)[]];
|
|
14254
14254
|
}]; // ----- import-x/no-rename-default -----
|
|
14255
14255
|
type ImportXNoRenameDefault = [] | [{
|
|
14256
14256
|
commonjs?: boolean;
|
|
@@ -14280,7 +14280,7 @@ type ImportXNoUnresolved = [] | [{
|
|
|
14280
14280
|
commonjs?: boolean;
|
|
14281
14281
|
amd?: boolean;
|
|
14282
14282
|
esmodule?: boolean;
|
|
14283
|
-
ignore?: [
|
|
14283
|
+
ignore?: [unknown, ...(unknown)[]];
|
|
14284
14284
|
caseSensitive?: boolean;
|
|
14285
14285
|
caseSensitiveStrict?: boolean;
|
|
14286
14286
|
}]; // ----- import-x/no-unused-modules -----
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dhzh/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.2.
|
|
4
|
+
"version": "2.2.3",
|
|
5
5
|
"description": "tinywaves's ESLint config",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Lyle Zheng",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"dependencies": {
|
|
62
62
|
"@clack/prompts": "^1.6.0",
|
|
63
63
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.7.2",
|
|
64
|
-
"@eslint-react/eslint-plugin": "^5.9.
|
|
64
|
+
"@eslint-react/eslint-plugin": "^5.9.2",
|
|
65
65
|
"@eslint/js": "^10.0.1",
|
|
66
66
|
"@manypkg/get-packages": "^3.1.0",
|
|
67
67
|
"@stylistic/eslint-plugin": "^5.10.0",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"eslint-plugin-antfu": "^3.2.3",
|
|
73
73
|
"eslint-plugin-better-tailwindcss": "^4.6.0",
|
|
74
74
|
"eslint-plugin-format": "^2.0.1",
|
|
75
|
-
"eslint-plugin-import-x": "^4.
|
|
75
|
+
"eslint-plugin-import-x": "^4.17.0",
|
|
76
76
|
"eslint-plugin-jsonc": "^3.2.0",
|
|
77
77
|
"eslint-plugin-n": "^18.1.0",
|
|
78
78
|
"eslint-plugin-package-json": "^1.5.0",
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"eslint-plugin-vue": "^10.9.2",
|
|
89
89
|
"eslint-plugin-yml": "^3.4.0",
|
|
90
90
|
"eslint-processor-vue-blocks": "^2.0.0",
|
|
91
|
-
"globals": "^17.
|
|
91
|
+
"globals": "^17.7.0",
|
|
92
92
|
"local-pkg": "^1.2.1",
|
|
93
93
|
"toml-eslint-parser": "^1.0.3",
|
|
94
94
|
"typescript-eslint": "^8.61.1",
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
"devDependencies": {
|
|
98
98
|
"@eslint/config-inspector": "^3.0.4",
|
|
99
99
|
"@prettier/plugin-xml": "^3.4.2",
|
|
100
|
-
"@types/node": "^
|
|
100
|
+
"@types/node": "^26.0.0",
|
|
101
101
|
"@typescript-eslint/types": "^8.61.1",
|
|
102
102
|
"bumpp": "^11.1.0",
|
|
103
103
|
"bundle-require": "^5.1.0",
|