@vinicunca/eslint-config 2.7.0-beta.1 → 2.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +4 -3
- package/dist/index.d.cts +84 -57
- package/dist/index.d.ts +84 -57
- package/dist/index.js +4 -3
- package/package.json +8 -8
package/dist/index.cjs
CHANGED
|
@@ -96,14 +96,14 @@ __export(src_exports, {
|
|
|
96
96
|
});
|
|
97
97
|
module.exports = __toCommonJS(src_exports);
|
|
98
98
|
|
|
99
|
-
// ../node_modules/.pnpm/@vinicunca+perkakas@1.0.
|
|
99
|
+
// ../node_modules/.pnpm/@vinicunca+perkakas@1.0.3/node_modules/@vinicunca/perkakas/dist/chunk-HLL46USD.js
|
|
100
100
|
function r(e2) {
|
|
101
101
|
if (typeof e2 != "object" || e2 === null) return false;
|
|
102
102
|
let o = Object.getPrototypeOf(e2);
|
|
103
103
|
return o === null || o === Object.prototype;
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
-
// ../node_modules/.pnpm/@vinicunca+perkakas@1.0.
|
|
106
|
+
// ../node_modules/.pnpm/@vinicunca+perkakas@1.0.3/node_modules/@vinicunca/perkakas/dist/chunk-AZUJCNUP.js
|
|
107
107
|
function e(o) {
|
|
108
108
|
return typeof o == "boolean";
|
|
109
109
|
}
|
|
@@ -1624,7 +1624,7 @@ async function typescript(options = {}) {
|
|
|
1624
1624
|
"no-use-before-define": OFF,
|
|
1625
1625
|
"no-useless-constructor": OFF,
|
|
1626
1626
|
"ts/array-type": [ERROR, { default: "generic" }],
|
|
1627
|
-
"ts/ban-ts-comment": [
|
|
1627
|
+
"ts/ban-ts-comment": ["error", { "ts-expect-error": "allow-with-description" }],
|
|
1628
1628
|
"ts/consistent-type-definitions": [ERROR, "interface"],
|
|
1629
1629
|
"ts/consistent-type-imports": [ERROR, { disallowTypeAnnotations: false, prefer: "type-imports" }],
|
|
1630
1630
|
"ts/explicit-function-return-type": OFF,
|
|
@@ -1636,6 +1636,7 @@ async function typescript(options = {}) {
|
|
|
1636
1636
|
"ts/no-dupe-class-members": ERROR,
|
|
1637
1637
|
"ts/no-empty-function": OFF,
|
|
1638
1638
|
"ts/no-empty-interface": OFF,
|
|
1639
|
+
"ts/no-empty-object-type": ["error", { allowInterfaces: "always" }],
|
|
1639
1640
|
"ts/no-explicit-any": OFF,
|
|
1640
1641
|
"ts/no-import-type-side-effects": ERROR,
|
|
1641
1642
|
"ts/no-invalid-this": ERROR,
|
package/dist/index.d.cts
CHANGED
|
@@ -386,42 +386,42 @@ interface RuleOptions {
|
|
|
386
386
|
'implicit-arrow-linebreak'?: Linter.RuleEntry<ImplicitArrowLinebreak>
|
|
387
387
|
/**
|
|
388
388
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
389
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
389
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/consistent-type-specifier-style.md
|
|
390
390
|
*/
|
|
391
391
|
'import/consistent-type-specifier-style'?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>
|
|
392
392
|
/**
|
|
393
393
|
* Ensure a default export is present, given a default import.
|
|
394
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
394
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/default.md
|
|
395
395
|
*/
|
|
396
396
|
'import/default'?: Linter.RuleEntry<[]>
|
|
397
397
|
/**
|
|
398
398
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
399
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
399
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/dynamic-import-chunkname.md
|
|
400
400
|
*/
|
|
401
401
|
'import/dynamic-import-chunkname'?: Linter.RuleEntry<ImportDynamicImportChunkname>
|
|
402
402
|
/**
|
|
403
403
|
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
404
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
404
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/export.md
|
|
405
405
|
*/
|
|
406
406
|
'import/export'?: Linter.RuleEntry<[]>
|
|
407
407
|
/**
|
|
408
408
|
* Ensure all exports appear after other statements.
|
|
409
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
409
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/exports-last.md
|
|
410
410
|
*/
|
|
411
411
|
'import/exports-last'?: Linter.RuleEntry<[]>
|
|
412
412
|
/**
|
|
413
413
|
* Ensure consistent use of file extension within the import path.
|
|
414
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
414
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/extensions.md
|
|
415
415
|
*/
|
|
416
416
|
'import/extensions'?: Linter.RuleEntry<ImportExtensions>
|
|
417
417
|
/**
|
|
418
418
|
* Ensure all imports appear before other statements.
|
|
419
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
419
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/first.md
|
|
420
420
|
*/
|
|
421
421
|
'import/first'?: Linter.RuleEntry<ImportFirst>
|
|
422
422
|
/**
|
|
423
423
|
* Prefer named exports to be grouped together in a single export declaration.
|
|
424
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
424
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/group-exports.md
|
|
425
425
|
*/
|
|
426
426
|
'import/group-exports'?: Linter.RuleEntry<[]>
|
|
427
427
|
/**
|
|
@@ -432,182 +432,182 @@ interface RuleOptions {
|
|
|
432
432
|
'import/imports-first'?: Linter.RuleEntry<ImportImportsFirst>
|
|
433
433
|
/**
|
|
434
434
|
* Enforce the maximum number of dependencies a module can have.
|
|
435
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
435
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/max-dependencies.md
|
|
436
436
|
*/
|
|
437
437
|
'import/max-dependencies'?: Linter.RuleEntry<ImportMaxDependencies>
|
|
438
438
|
/**
|
|
439
439
|
* Ensure named imports correspond to a named export in the remote file.
|
|
440
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
440
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/named.md
|
|
441
441
|
*/
|
|
442
442
|
'import/named'?: Linter.RuleEntry<ImportNamed>
|
|
443
443
|
/**
|
|
444
444
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
445
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
445
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/namespace.md
|
|
446
446
|
*/
|
|
447
447
|
'import/namespace'?: Linter.RuleEntry<ImportNamespace>
|
|
448
448
|
/**
|
|
449
449
|
* Enforce a newline after import statements.
|
|
450
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
450
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/newline-after-import.md
|
|
451
451
|
*/
|
|
452
452
|
'import/newline-after-import'?: Linter.RuleEntry<ImportNewlineAfterImport>
|
|
453
453
|
/**
|
|
454
454
|
* Forbid import of modules using absolute paths.
|
|
455
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
455
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-absolute-path.md
|
|
456
456
|
*/
|
|
457
457
|
'import/no-absolute-path'?: Linter.RuleEntry<ImportNoAbsolutePath>
|
|
458
458
|
/**
|
|
459
459
|
* Forbid AMD `require` and `define` calls.
|
|
460
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
460
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-amd.md
|
|
461
461
|
*/
|
|
462
462
|
'import/no-amd'?: Linter.RuleEntry<[]>
|
|
463
463
|
/**
|
|
464
464
|
* Forbid anonymous values as default exports.
|
|
465
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
465
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-anonymous-default-export.md
|
|
466
466
|
*/
|
|
467
467
|
'import/no-anonymous-default-export'?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>
|
|
468
468
|
/**
|
|
469
469
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
470
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
470
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-commonjs.md
|
|
471
471
|
*/
|
|
472
472
|
'import/no-commonjs'?: Linter.RuleEntry<ImportNoCommonjs>
|
|
473
473
|
/**
|
|
474
474
|
* Forbid a module from importing a module with a dependency path back to itself.
|
|
475
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
475
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-cycle.md
|
|
476
476
|
*/
|
|
477
477
|
'import/no-cycle'?: Linter.RuleEntry<ImportNoCycle>
|
|
478
478
|
/**
|
|
479
479
|
* Forbid default exports.
|
|
480
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
480
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-default-export.md
|
|
481
481
|
*/
|
|
482
482
|
'import/no-default-export'?: Linter.RuleEntry<[]>
|
|
483
483
|
/**
|
|
484
484
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
485
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
485
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-deprecated.md
|
|
486
486
|
*/
|
|
487
487
|
'import/no-deprecated'?: Linter.RuleEntry<[]>
|
|
488
488
|
/**
|
|
489
489
|
* Forbid repeated import of the same module in multiple places.
|
|
490
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
490
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-duplicates.md
|
|
491
491
|
*/
|
|
492
492
|
'import/no-duplicates'?: Linter.RuleEntry<ImportNoDuplicates>
|
|
493
493
|
/**
|
|
494
494
|
* Forbid `require()` calls with expressions.
|
|
495
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
495
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-dynamic-require.md
|
|
496
496
|
*/
|
|
497
497
|
'import/no-dynamic-require'?: Linter.RuleEntry<ImportNoDynamicRequire>
|
|
498
498
|
/**
|
|
499
499
|
* Forbid empty named import blocks.
|
|
500
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
500
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-empty-named-blocks.md
|
|
501
501
|
*/
|
|
502
502
|
'import/no-empty-named-blocks'?: Linter.RuleEntry<[]>
|
|
503
503
|
/**
|
|
504
504
|
* Forbid the use of extraneous packages.
|
|
505
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
505
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-extraneous-dependencies.md
|
|
506
506
|
*/
|
|
507
507
|
'import/no-extraneous-dependencies'?: Linter.RuleEntry<ImportNoExtraneousDependencies>
|
|
508
508
|
/**
|
|
509
509
|
* Forbid import statements with CommonJS module.exports.
|
|
510
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
510
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-import-module-exports.md
|
|
511
511
|
*/
|
|
512
512
|
'import/no-import-module-exports'?: Linter.RuleEntry<ImportNoImportModuleExports>
|
|
513
513
|
/**
|
|
514
514
|
* Forbid importing the submodules of other modules.
|
|
515
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
515
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-internal-modules.md
|
|
516
516
|
*/
|
|
517
517
|
'import/no-internal-modules'?: Linter.RuleEntry<ImportNoInternalModules>
|
|
518
518
|
/**
|
|
519
519
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
520
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
520
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-mutable-exports.md
|
|
521
521
|
*/
|
|
522
522
|
'import/no-mutable-exports'?: Linter.RuleEntry<[]>
|
|
523
523
|
/**
|
|
524
524
|
* Forbid use of exported name as identifier of default export.
|
|
525
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
525
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-named-as-default.md
|
|
526
526
|
*/
|
|
527
527
|
'import/no-named-as-default'?: Linter.RuleEntry<[]>
|
|
528
528
|
/**
|
|
529
529
|
* Forbid use of exported name as property of default export.
|
|
530
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
530
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-named-as-default-member.md
|
|
531
531
|
*/
|
|
532
532
|
'import/no-named-as-default-member'?: Linter.RuleEntry<[]>
|
|
533
533
|
/**
|
|
534
534
|
* Forbid named default exports.
|
|
535
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
535
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-named-default.md
|
|
536
536
|
*/
|
|
537
537
|
'import/no-named-default'?: Linter.RuleEntry<[]>
|
|
538
538
|
/**
|
|
539
539
|
* Forbid named exports.
|
|
540
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
540
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-named-export.md
|
|
541
541
|
*/
|
|
542
542
|
'import/no-named-export'?: Linter.RuleEntry<[]>
|
|
543
543
|
/**
|
|
544
544
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
545
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
545
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-namespace.md
|
|
546
546
|
*/
|
|
547
547
|
'import/no-namespace'?: Linter.RuleEntry<ImportNoNamespace>
|
|
548
548
|
/**
|
|
549
549
|
* Forbid Node.js builtin modules.
|
|
550
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
550
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-nodejs-modules.md
|
|
551
551
|
*/
|
|
552
552
|
'import/no-nodejs-modules'?: Linter.RuleEntry<ImportNoNodejsModules>
|
|
553
553
|
/**
|
|
554
554
|
* Forbid importing packages through relative paths.
|
|
555
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
555
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-relative-packages.md
|
|
556
556
|
*/
|
|
557
557
|
'import/no-relative-packages'?: Linter.RuleEntry<ImportNoRelativePackages>
|
|
558
558
|
/**
|
|
559
559
|
* Forbid importing modules from parent directories.
|
|
560
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
560
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-relative-parent-imports.md
|
|
561
561
|
*/
|
|
562
562
|
'import/no-relative-parent-imports'?: Linter.RuleEntry<ImportNoRelativeParentImports>
|
|
563
563
|
/**
|
|
564
564
|
* Enforce which files can be imported in a given folder.
|
|
565
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
565
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-restricted-paths.md
|
|
566
566
|
*/
|
|
567
567
|
'import/no-restricted-paths'?: Linter.RuleEntry<ImportNoRestrictedPaths>
|
|
568
568
|
/**
|
|
569
569
|
* Forbid a module from importing itself.
|
|
570
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
570
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-self-import.md
|
|
571
571
|
*/
|
|
572
572
|
'import/no-self-import'?: Linter.RuleEntry<[]>
|
|
573
573
|
/**
|
|
574
574
|
* Forbid unassigned imports.
|
|
575
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
575
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-unassigned-import.md
|
|
576
576
|
*/
|
|
577
577
|
'import/no-unassigned-import'?: Linter.RuleEntry<ImportNoUnassignedImport>
|
|
578
578
|
/**
|
|
579
579
|
* Ensure imports point to a file/module that can be resolved.
|
|
580
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
580
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-unresolved.md
|
|
581
581
|
*/
|
|
582
582
|
'import/no-unresolved'?: Linter.RuleEntry<ImportNoUnresolved>
|
|
583
583
|
/**
|
|
584
584
|
* Forbid modules without exports, or exports without matching import in another module.
|
|
585
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
585
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-unused-modules.md
|
|
586
586
|
*/
|
|
587
587
|
'import/no-unused-modules'?: Linter.RuleEntry<ImportNoUnusedModules>
|
|
588
588
|
/**
|
|
589
589
|
* Forbid unnecessary path segments in import and require statements.
|
|
590
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
590
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-useless-path-segments.md
|
|
591
591
|
*/
|
|
592
592
|
'import/no-useless-path-segments'?: Linter.RuleEntry<ImportNoUselessPathSegments>
|
|
593
593
|
/**
|
|
594
594
|
* Forbid webpack loader syntax in imports.
|
|
595
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
595
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-webpack-loader-syntax.md
|
|
596
596
|
*/
|
|
597
597
|
'import/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>
|
|
598
598
|
/**
|
|
599
599
|
* Enforce a convention in module import order.
|
|
600
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
600
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/order.md
|
|
601
601
|
*/
|
|
602
602
|
'import/order'?: Linter.RuleEntry<ImportOrder>
|
|
603
603
|
/**
|
|
604
604
|
* Prefer a default export if module exports a single name or multiple names.
|
|
605
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
605
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/prefer-default-export.md
|
|
606
606
|
*/
|
|
607
607
|
'import/prefer-default-export'?: Linter.RuleEntry<ImportPreferDefaultExport>
|
|
608
608
|
/**
|
|
609
609
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
610
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
610
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/unambiguous.md
|
|
611
611
|
*/
|
|
612
612
|
'import/unambiguous'?: Linter.RuleEntry<[]>
|
|
613
613
|
/**
|
|
@@ -682,6 +682,11 @@ interface RuleOptions {
|
|
|
682
682
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/check-values.md#repos-sticky-header
|
|
683
683
|
*/
|
|
684
684
|
'jsdoc/check-values'?: Linter.RuleEntry<JsdocCheckValues>
|
|
685
|
+
/**
|
|
686
|
+
* Converts non-JSDoc comments preceding or following nodes into JSDoc ones
|
|
687
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/convert-to-jsdoc-comments.md#repos-sticky-header
|
|
688
|
+
*/
|
|
689
|
+
'jsdoc/convert-to-jsdoc-comments'?: Linter.RuleEntry<JsdocConvertToJsdocComments>
|
|
685
690
|
/**
|
|
686
691
|
* Expects specific tags to be empty of any content.
|
|
687
692
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/empty-tags.md#repos-sticky-header
|
|
@@ -856,6 +861,11 @@ interface RuleOptions {
|
|
|
856
861
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-returns-type.md#repos-sticky-header
|
|
857
862
|
*/
|
|
858
863
|
'jsdoc/require-returns-type'?: Linter.RuleEntry<JsdocRequireReturnsType>
|
|
864
|
+
/**
|
|
865
|
+
* Requires template tags for each generic type parameter
|
|
866
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-template.md#repos-sticky-header
|
|
867
|
+
*/
|
|
868
|
+
'jsdoc/require-template'?: Linter.RuleEntry<JsdocRequireTemplate>
|
|
859
869
|
/**
|
|
860
870
|
* Requires that throw statements are documented.
|
|
861
871
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-throws.md#repos-sticky-header
|
|
@@ -7655,6 +7665,25 @@ type JsdocCheckValues = []|[{
|
|
|
7655
7665
|
licensePattern?: string
|
|
7656
7666
|
numericOnlyVariation?: boolean
|
|
7657
7667
|
}]
|
|
7668
|
+
// ----- jsdoc/convert-to-jsdoc-comments -----
|
|
7669
|
+
type JsdocConvertToJsdocComments = []|[{
|
|
7670
|
+
allowedPrefixes?: string[]
|
|
7671
|
+
contexts?: (string | {
|
|
7672
|
+
context?: string
|
|
7673
|
+
inlineCommentBlock?: boolean
|
|
7674
|
+
})[]
|
|
7675
|
+
contextsAfter?: (string | {
|
|
7676
|
+
context?: string
|
|
7677
|
+
inlineCommentBlock?: boolean
|
|
7678
|
+
})[]
|
|
7679
|
+
contextsBeforeAndAfter?: (string | {
|
|
7680
|
+
context?: string
|
|
7681
|
+
inlineCommentBlock?: boolean
|
|
7682
|
+
})[]
|
|
7683
|
+
enableFixer?: boolean
|
|
7684
|
+
enforceJsdocLineStyle?: ("multi" | "single")
|
|
7685
|
+
lineOrBlockStyle?: ("block" | "line" | "both")
|
|
7686
|
+
}]
|
|
7658
7687
|
// ----- jsdoc/empty-tags -----
|
|
7659
7688
|
type JsdocEmptyTags = []|[{
|
|
7660
7689
|
tags?: string[]
|
|
@@ -7942,6 +7971,10 @@ type JsdocRequireReturnsType = []|[{
|
|
|
7942
7971
|
context?: string
|
|
7943
7972
|
})[]
|
|
7944
7973
|
}]
|
|
7974
|
+
// ----- jsdoc/require-template -----
|
|
7975
|
+
type JsdocRequireTemplate = []|[{
|
|
7976
|
+
requireSeparateTemplates?: boolean
|
|
7977
|
+
}]
|
|
7945
7978
|
// ----- jsdoc/require-throws -----
|
|
7946
7979
|
type JsdocRequireThrows = []|[{
|
|
7947
7980
|
contexts?: (string | {
|
|
@@ -9013,18 +9046,11 @@ type NoRestrictedImports = ((string | {
|
|
|
9013
9046
|
importNames?: string[]
|
|
9014
9047
|
allowImportNames?: string[]
|
|
9015
9048
|
})[]
|
|
9016
|
-
patterns?: (string[] | {
|
|
9017
|
-
|
|
9018
|
-
|
|
9019
|
-
|
|
9020
|
-
|
|
9021
|
-
|
|
9022
|
-
group: [string, ...(string)[]]
|
|
9023
|
-
importNamePattern?: string
|
|
9024
|
-
allowImportNamePattern?: string
|
|
9025
|
-
message?: string
|
|
9026
|
-
caseSensitive?: boolean
|
|
9027
|
-
}[])
|
|
9049
|
+
patterns?: (string[] | ({
|
|
9050
|
+
[k: string]: unknown | undefined
|
|
9051
|
+
} | {
|
|
9052
|
+
[k: string]: unknown | undefined
|
|
9053
|
+
})[])
|
|
9028
9054
|
}])
|
|
9029
9055
|
// ----- no-restricted-modules -----
|
|
9030
9056
|
type NoRestrictedModules = ((string | {
|
|
@@ -12116,7 +12142,8 @@ type TsNoRestrictedImports = ((string | {
|
|
|
12116
12142
|
|
|
12117
12143
|
allowImportNames?: [string, ...(string)[]]
|
|
12118
12144
|
|
|
12119
|
-
group
|
|
12145
|
+
group?: [string, ...(string)[]]
|
|
12146
|
+
regex?: string
|
|
12120
12147
|
importNamePattern?: string
|
|
12121
12148
|
allowImportNamePattern?: string
|
|
12122
12149
|
message?: string
|
package/dist/index.d.ts
CHANGED
|
@@ -386,42 +386,42 @@ interface RuleOptions {
|
|
|
386
386
|
'implicit-arrow-linebreak'?: Linter.RuleEntry<ImplicitArrowLinebreak>
|
|
387
387
|
/**
|
|
388
388
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
389
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
389
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/consistent-type-specifier-style.md
|
|
390
390
|
*/
|
|
391
391
|
'import/consistent-type-specifier-style'?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>
|
|
392
392
|
/**
|
|
393
393
|
* Ensure a default export is present, given a default import.
|
|
394
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
394
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/default.md
|
|
395
395
|
*/
|
|
396
396
|
'import/default'?: Linter.RuleEntry<[]>
|
|
397
397
|
/**
|
|
398
398
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
399
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
399
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/dynamic-import-chunkname.md
|
|
400
400
|
*/
|
|
401
401
|
'import/dynamic-import-chunkname'?: Linter.RuleEntry<ImportDynamicImportChunkname>
|
|
402
402
|
/**
|
|
403
403
|
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
404
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
404
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/export.md
|
|
405
405
|
*/
|
|
406
406
|
'import/export'?: Linter.RuleEntry<[]>
|
|
407
407
|
/**
|
|
408
408
|
* Ensure all exports appear after other statements.
|
|
409
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
409
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/exports-last.md
|
|
410
410
|
*/
|
|
411
411
|
'import/exports-last'?: Linter.RuleEntry<[]>
|
|
412
412
|
/**
|
|
413
413
|
* Ensure consistent use of file extension within the import path.
|
|
414
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
414
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/extensions.md
|
|
415
415
|
*/
|
|
416
416
|
'import/extensions'?: Linter.RuleEntry<ImportExtensions>
|
|
417
417
|
/**
|
|
418
418
|
* Ensure all imports appear before other statements.
|
|
419
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
419
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/first.md
|
|
420
420
|
*/
|
|
421
421
|
'import/first'?: Linter.RuleEntry<ImportFirst>
|
|
422
422
|
/**
|
|
423
423
|
* Prefer named exports to be grouped together in a single export declaration.
|
|
424
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
424
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/group-exports.md
|
|
425
425
|
*/
|
|
426
426
|
'import/group-exports'?: Linter.RuleEntry<[]>
|
|
427
427
|
/**
|
|
@@ -432,182 +432,182 @@ interface RuleOptions {
|
|
|
432
432
|
'import/imports-first'?: Linter.RuleEntry<ImportImportsFirst>
|
|
433
433
|
/**
|
|
434
434
|
* Enforce the maximum number of dependencies a module can have.
|
|
435
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
435
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/max-dependencies.md
|
|
436
436
|
*/
|
|
437
437
|
'import/max-dependencies'?: Linter.RuleEntry<ImportMaxDependencies>
|
|
438
438
|
/**
|
|
439
439
|
* Ensure named imports correspond to a named export in the remote file.
|
|
440
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
440
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/named.md
|
|
441
441
|
*/
|
|
442
442
|
'import/named'?: Linter.RuleEntry<ImportNamed>
|
|
443
443
|
/**
|
|
444
444
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
445
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
445
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/namespace.md
|
|
446
446
|
*/
|
|
447
447
|
'import/namespace'?: Linter.RuleEntry<ImportNamespace>
|
|
448
448
|
/**
|
|
449
449
|
* Enforce a newline after import statements.
|
|
450
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
450
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/newline-after-import.md
|
|
451
451
|
*/
|
|
452
452
|
'import/newline-after-import'?: Linter.RuleEntry<ImportNewlineAfterImport>
|
|
453
453
|
/**
|
|
454
454
|
* Forbid import of modules using absolute paths.
|
|
455
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
455
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-absolute-path.md
|
|
456
456
|
*/
|
|
457
457
|
'import/no-absolute-path'?: Linter.RuleEntry<ImportNoAbsolutePath>
|
|
458
458
|
/**
|
|
459
459
|
* Forbid AMD `require` and `define` calls.
|
|
460
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
460
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-amd.md
|
|
461
461
|
*/
|
|
462
462
|
'import/no-amd'?: Linter.RuleEntry<[]>
|
|
463
463
|
/**
|
|
464
464
|
* Forbid anonymous values as default exports.
|
|
465
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
465
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-anonymous-default-export.md
|
|
466
466
|
*/
|
|
467
467
|
'import/no-anonymous-default-export'?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>
|
|
468
468
|
/**
|
|
469
469
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
470
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
470
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-commonjs.md
|
|
471
471
|
*/
|
|
472
472
|
'import/no-commonjs'?: Linter.RuleEntry<ImportNoCommonjs>
|
|
473
473
|
/**
|
|
474
474
|
* Forbid a module from importing a module with a dependency path back to itself.
|
|
475
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
475
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-cycle.md
|
|
476
476
|
*/
|
|
477
477
|
'import/no-cycle'?: Linter.RuleEntry<ImportNoCycle>
|
|
478
478
|
/**
|
|
479
479
|
* Forbid default exports.
|
|
480
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
480
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-default-export.md
|
|
481
481
|
*/
|
|
482
482
|
'import/no-default-export'?: Linter.RuleEntry<[]>
|
|
483
483
|
/**
|
|
484
484
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
485
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
485
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-deprecated.md
|
|
486
486
|
*/
|
|
487
487
|
'import/no-deprecated'?: Linter.RuleEntry<[]>
|
|
488
488
|
/**
|
|
489
489
|
* Forbid repeated import of the same module in multiple places.
|
|
490
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
490
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-duplicates.md
|
|
491
491
|
*/
|
|
492
492
|
'import/no-duplicates'?: Linter.RuleEntry<ImportNoDuplicates>
|
|
493
493
|
/**
|
|
494
494
|
* Forbid `require()` calls with expressions.
|
|
495
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
495
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-dynamic-require.md
|
|
496
496
|
*/
|
|
497
497
|
'import/no-dynamic-require'?: Linter.RuleEntry<ImportNoDynamicRequire>
|
|
498
498
|
/**
|
|
499
499
|
* Forbid empty named import blocks.
|
|
500
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
500
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-empty-named-blocks.md
|
|
501
501
|
*/
|
|
502
502
|
'import/no-empty-named-blocks'?: Linter.RuleEntry<[]>
|
|
503
503
|
/**
|
|
504
504
|
* Forbid the use of extraneous packages.
|
|
505
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
505
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-extraneous-dependencies.md
|
|
506
506
|
*/
|
|
507
507
|
'import/no-extraneous-dependencies'?: Linter.RuleEntry<ImportNoExtraneousDependencies>
|
|
508
508
|
/**
|
|
509
509
|
* Forbid import statements with CommonJS module.exports.
|
|
510
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
510
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-import-module-exports.md
|
|
511
511
|
*/
|
|
512
512
|
'import/no-import-module-exports'?: Linter.RuleEntry<ImportNoImportModuleExports>
|
|
513
513
|
/**
|
|
514
514
|
* Forbid importing the submodules of other modules.
|
|
515
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
515
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-internal-modules.md
|
|
516
516
|
*/
|
|
517
517
|
'import/no-internal-modules'?: Linter.RuleEntry<ImportNoInternalModules>
|
|
518
518
|
/**
|
|
519
519
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
520
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
520
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-mutable-exports.md
|
|
521
521
|
*/
|
|
522
522
|
'import/no-mutable-exports'?: Linter.RuleEntry<[]>
|
|
523
523
|
/**
|
|
524
524
|
* Forbid use of exported name as identifier of default export.
|
|
525
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
525
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-named-as-default.md
|
|
526
526
|
*/
|
|
527
527
|
'import/no-named-as-default'?: Linter.RuleEntry<[]>
|
|
528
528
|
/**
|
|
529
529
|
* Forbid use of exported name as property of default export.
|
|
530
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
530
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-named-as-default-member.md
|
|
531
531
|
*/
|
|
532
532
|
'import/no-named-as-default-member'?: Linter.RuleEntry<[]>
|
|
533
533
|
/**
|
|
534
534
|
* Forbid named default exports.
|
|
535
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
535
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-named-default.md
|
|
536
536
|
*/
|
|
537
537
|
'import/no-named-default'?: Linter.RuleEntry<[]>
|
|
538
538
|
/**
|
|
539
539
|
* Forbid named exports.
|
|
540
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
540
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-named-export.md
|
|
541
541
|
*/
|
|
542
542
|
'import/no-named-export'?: Linter.RuleEntry<[]>
|
|
543
543
|
/**
|
|
544
544
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
545
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
545
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-namespace.md
|
|
546
546
|
*/
|
|
547
547
|
'import/no-namespace'?: Linter.RuleEntry<ImportNoNamespace>
|
|
548
548
|
/**
|
|
549
549
|
* Forbid Node.js builtin modules.
|
|
550
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
550
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-nodejs-modules.md
|
|
551
551
|
*/
|
|
552
552
|
'import/no-nodejs-modules'?: Linter.RuleEntry<ImportNoNodejsModules>
|
|
553
553
|
/**
|
|
554
554
|
* Forbid importing packages through relative paths.
|
|
555
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
555
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-relative-packages.md
|
|
556
556
|
*/
|
|
557
557
|
'import/no-relative-packages'?: Linter.RuleEntry<ImportNoRelativePackages>
|
|
558
558
|
/**
|
|
559
559
|
* Forbid importing modules from parent directories.
|
|
560
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
560
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-relative-parent-imports.md
|
|
561
561
|
*/
|
|
562
562
|
'import/no-relative-parent-imports'?: Linter.RuleEntry<ImportNoRelativeParentImports>
|
|
563
563
|
/**
|
|
564
564
|
* Enforce which files can be imported in a given folder.
|
|
565
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
565
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-restricted-paths.md
|
|
566
566
|
*/
|
|
567
567
|
'import/no-restricted-paths'?: Linter.RuleEntry<ImportNoRestrictedPaths>
|
|
568
568
|
/**
|
|
569
569
|
* Forbid a module from importing itself.
|
|
570
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
570
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-self-import.md
|
|
571
571
|
*/
|
|
572
572
|
'import/no-self-import'?: Linter.RuleEntry<[]>
|
|
573
573
|
/**
|
|
574
574
|
* Forbid unassigned imports.
|
|
575
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
575
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-unassigned-import.md
|
|
576
576
|
*/
|
|
577
577
|
'import/no-unassigned-import'?: Linter.RuleEntry<ImportNoUnassignedImport>
|
|
578
578
|
/**
|
|
579
579
|
* Ensure imports point to a file/module that can be resolved.
|
|
580
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
580
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-unresolved.md
|
|
581
581
|
*/
|
|
582
582
|
'import/no-unresolved'?: Linter.RuleEntry<ImportNoUnresolved>
|
|
583
583
|
/**
|
|
584
584
|
* Forbid modules without exports, or exports without matching import in another module.
|
|
585
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
585
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-unused-modules.md
|
|
586
586
|
*/
|
|
587
587
|
'import/no-unused-modules'?: Linter.RuleEntry<ImportNoUnusedModules>
|
|
588
588
|
/**
|
|
589
589
|
* Forbid unnecessary path segments in import and require statements.
|
|
590
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
590
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-useless-path-segments.md
|
|
591
591
|
*/
|
|
592
592
|
'import/no-useless-path-segments'?: Linter.RuleEntry<ImportNoUselessPathSegments>
|
|
593
593
|
/**
|
|
594
594
|
* Forbid webpack loader syntax in imports.
|
|
595
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
595
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-webpack-loader-syntax.md
|
|
596
596
|
*/
|
|
597
597
|
'import/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>
|
|
598
598
|
/**
|
|
599
599
|
* Enforce a convention in module import order.
|
|
600
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
600
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/order.md
|
|
601
601
|
*/
|
|
602
602
|
'import/order'?: Linter.RuleEntry<ImportOrder>
|
|
603
603
|
/**
|
|
604
604
|
* Prefer a default export if module exports a single name or multiple names.
|
|
605
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
605
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/prefer-default-export.md
|
|
606
606
|
*/
|
|
607
607
|
'import/prefer-default-export'?: Linter.RuleEntry<ImportPreferDefaultExport>
|
|
608
608
|
/**
|
|
609
609
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
610
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
610
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/unambiguous.md
|
|
611
611
|
*/
|
|
612
612
|
'import/unambiguous'?: Linter.RuleEntry<[]>
|
|
613
613
|
/**
|
|
@@ -682,6 +682,11 @@ interface RuleOptions {
|
|
|
682
682
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/check-values.md#repos-sticky-header
|
|
683
683
|
*/
|
|
684
684
|
'jsdoc/check-values'?: Linter.RuleEntry<JsdocCheckValues>
|
|
685
|
+
/**
|
|
686
|
+
* Converts non-JSDoc comments preceding or following nodes into JSDoc ones
|
|
687
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/convert-to-jsdoc-comments.md#repos-sticky-header
|
|
688
|
+
*/
|
|
689
|
+
'jsdoc/convert-to-jsdoc-comments'?: Linter.RuleEntry<JsdocConvertToJsdocComments>
|
|
685
690
|
/**
|
|
686
691
|
* Expects specific tags to be empty of any content.
|
|
687
692
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/empty-tags.md#repos-sticky-header
|
|
@@ -856,6 +861,11 @@ interface RuleOptions {
|
|
|
856
861
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-returns-type.md#repos-sticky-header
|
|
857
862
|
*/
|
|
858
863
|
'jsdoc/require-returns-type'?: Linter.RuleEntry<JsdocRequireReturnsType>
|
|
864
|
+
/**
|
|
865
|
+
* Requires template tags for each generic type parameter
|
|
866
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-template.md#repos-sticky-header
|
|
867
|
+
*/
|
|
868
|
+
'jsdoc/require-template'?: Linter.RuleEntry<JsdocRequireTemplate>
|
|
859
869
|
/**
|
|
860
870
|
* Requires that throw statements are documented.
|
|
861
871
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-throws.md#repos-sticky-header
|
|
@@ -7655,6 +7665,25 @@ type JsdocCheckValues = []|[{
|
|
|
7655
7665
|
licensePattern?: string
|
|
7656
7666
|
numericOnlyVariation?: boolean
|
|
7657
7667
|
}]
|
|
7668
|
+
// ----- jsdoc/convert-to-jsdoc-comments -----
|
|
7669
|
+
type JsdocConvertToJsdocComments = []|[{
|
|
7670
|
+
allowedPrefixes?: string[]
|
|
7671
|
+
contexts?: (string | {
|
|
7672
|
+
context?: string
|
|
7673
|
+
inlineCommentBlock?: boolean
|
|
7674
|
+
})[]
|
|
7675
|
+
contextsAfter?: (string | {
|
|
7676
|
+
context?: string
|
|
7677
|
+
inlineCommentBlock?: boolean
|
|
7678
|
+
})[]
|
|
7679
|
+
contextsBeforeAndAfter?: (string | {
|
|
7680
|
+
context?: string
|
|
7681
|
+
inlineCommentBlock?: boolean
|
|
7682
|
+
})[]
|
|
7683
|
+
enableFixer?: boolean
|
|
7684
|
+
enforceJsdocLineStyle?: ("multi" | "single")
|
|
7685
|
+
lineOrBlockStyle?: ("block" | "line" | "both")
|
|
7686
|
+
}]
|
|
7658
7687
|
// ----- jsdoc/empty-tags -----
|
|
7659
7688
|
type JsdocEmptyTags = []|[{
|
|
7660
7689
|
tags?: string[]
|
|
@@ -7942,6 +7971,10 @@ type JsdocRequireReturnsType = []|[{
|
|
|
7942
7971
|
context?: string
|
|
7943
7972
|
})[]
|
|
7944
7973
|
}]
|
|
7974
|
+
// ----- jsdoc/require-template -----
|
|
7975
|
+
type JsdocRequireTemplate = []|[{
|
|
7976
|
+
requireSeparateTemplates?: boolean
|
|
7977
|
+
}]
|
|
7945
7978
|
// ----- jsdoc/require-throws -----
|
|
7946
7979
|
type JsdocRequireThrows = []|[{
|
|
7947
7980
|
contexts?: (string | {
|
|
@@ -9013,18 +9046,11 @@ type NoRestrictedImports = ((string | {
|
|
|
9013
9046
|
importNames?: string[]
|
|
9014
9047
|
allowImportNames?: string[]
|
|
9015
9048
|
})[]
|
|
9016
|
-
patterns?: (string[] | {
|
|
9017
|
-
|
|
9018
|
-
|
|
9019
|
-
|
|
9020
|
-
|
|
9021
|
-
|
|
9022
|
-
group: [string, ...(string)[]]
|
|
9023
|
-
importNamePattern?: string
|
|
9024
|
-
allowImportNamePattern?: string
|
|
9025
|
-
message?: string
|
|
9026
|
-
caseSensitive?: boolean
|
|
9027
|
-
}[])
|
|
9049
|
+
patterns?: (string[] | ({
|
|
9050
|
+
[k: string]: unknown | undefined
|
|
9051
|
+
} | {
|
|
9052
|
+
[k: string]: unknown | undefined
|
|
9053
|
+
})[])
|
|
9028
9054
|
}])
|
|
9029
9055
|
// ----- no-restricted-modules -----
|
|
9030
9056
|
type NoRestrictedModules = ((string | {
|
|
@@ -12116,7 +12142,8 @@ type TsNoRestrictedImports = ((string | {
|
|
|
12116
12142
|
|
|
12117
12143
|
allowImportNames?: [string, ...(string)[]]
|
|
12118
12144
|
|
|
12119
|
-
group
|
|
12145
|
+
group?: [string, ...(string)[]]
|
|
12146
|
+
regex?: string
|
|
12120
12147
|
importNamePattern?: string
|
|
12121
12148
|
allowImportNamePattern?: string
|
|
12122
12149
|
message?: string
|
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
// ../node_modules/.pnpm/@vinicunca+perkakas@1.0.
|
|
1
|
+
// ../node_modules/.pnpm/@vinicunca+perkakas@1.0.3/node_modules/@vinicunca/perkakas/dist/chunk-HLL46USD.js
|
|
2
2
|
function r(e2) {
|
|
3
3
|
if (typeof e2 != "object" || e2 === null) return false;
|
|
4
4
|
let o = Object.getPrototypeOf(e2);
|
|
5
5
|
return o === null || o === Object.prototype;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
// ../node_modules/.pnpm/@vinicunca+perkakas@1.0.
|
|
8
|
+
// ../node_modules/.pnpm/@vinicunca+perkakas@1.0.3/node_modules/@vinicunca/perkakas/dist/chunk-AZUJCNUP.js
|
|
9
9
|
function e(o) {
|
|
10
10
|
return typeof o == "boolean";
|
|
11
11
|
}
|
|
@@ -1526,7 +1526,7 @@ async function typescript(options = {}) {
|
|
|
1526
1526
|
"no-use-before-define": OFF,
|
|
1527
1527
|
"no-useless-constructor": OFF,
|
|
1528
1528
|
"ts/array-type": [ERROR, { default: "generic" }],
|
|
1529
|
-
"ts/ban-ts-comment": [
|
|
1529
|
+
"ts/ban-ts-comment": ["error", { "ts-expect-error": "allow-with-description" }],
|
|
1530
1530
|
"ts/consistent-type-definitions": [ERROR, "interface"],
|
|
1531
1531
|
"ts/consistent-type-imports": [ERROR, { disallowTypeAnnotations: false, prefer: "type-imports" }],
|
|
1532
1532
|
"ts/explicit-function-return-type": OFF,
|
|
@@ -1538,6 +1538,7 @@ async function typescript(options = {}) {
|
|
|
1538
1538
|
"ts/no-dupe-class-members": ERROR,
|
|
1539
1539
|
"ts/no-empty-function": OFF,
|
|
1540
1540
|
"ts/no-empty-interface": OFF,
|
|
1541
|
+
"ts/no-empty-object-type": ["error", { allowInterfaces: "always" }],
|
|
1541
1542
|
"ts/no-explicit-any": OFF,
|
|
1542
1543
|
"ts/no-import-type-side-effects": ERROR,
|
|
1543
1544
|
"ts/no-invalid-this": ERROR,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vinicunca/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.7.0
|
|
4
|
+
"version": "2.7.0",
|
|
5
5
|
"description": "Vinicunca ESLint config",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "praburangki",
|
|
@@ -59,23 +59,23 @@
|
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
61
|
"@stylistic/eslint-plugin": "^2.6.0-beta.0",
|
|
62
|
-
"@typescript-eslint/eslint-plugin": "8.0.0-alpha.
|
|
63
|
-
"@typescript-eslint/parser": "8.0.0-alpha.
|
|
62
|
+
"@typescript-eslint/eslint-plugin": "8.0.0-alpha.40",
|
|
63
|
+
"@typescript-eslint/parser": "8.0.0-alpha.40",
|
|
64
64
|
"@unocss/eslint-plugin": "^0.61.2",
|
|
65
|
-
"eslint-config-flat-gitignore": "^0.1.
|
|
65
|
+
"eslint-config-flat-gitignore": "^0.1.7",
|
|
66
66
|
"eslint-flat-config-utils": "^0.2.5",
|
|
67
67
|
"eslint-merge-processors": "^0.1.0",
|
|
68
68
|
"eslint-plugin-antfu": "^2.3.4",
|
|
69
69
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
70
70
|
"eslint-plugin-format": "^0.1.2",
|
|
71
|
-
"eslint-plugin-import-x": "^0.
|
|
72
|
-
"eslint-plugin-jsdoc": "^48.
|
|
71
|
+
"eslint-plugin-import-x": "^3.0.1",
|
|
72
|
+
"eslint-plugin-jsdoc": "^48.7.0",
|
|
73
73
|
"eslint-plugin-jsonc": "^2.16.0",
|
|
74
|
-
"eslint-plugin-markdown": "^5.
|
|
74
|
+
"eslint-plugin-markdown": "^5.1.0",
|
|
75
75
|
"eslint-plugin-n": "^17.9.0",
|
|
76
76
|
"eslint-plugin-no-only-tests": "^3.1.0",
|
|
77
77
|
"eslint-plugin-perfectionist": "^2.11.0",
|
|
78
|
-
"eslint-plugin-react": "^7.34.
|
|
78
|
+
"eslint-plugin-react": "^7.34.4",
|
|
79
79
|
"eslint-plugin-react-hooks": "^4.6.2",
|
|
80
80
|
"eslint-plugin-regexp": "^2.6.0",
|
|
81
81
|
"eslint-plugin-sonarjs": "^1.0.3",
|