@lincy/eslint-config 5.6.0 → 5.6.1
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 +2 -2
- package/dist/index.d.cts +227 -136
- package/dist/index.d.ts +227 -136
- package/dist/index.js +2 -2
- package/package.json +29 -29
package/dist/index.d.cts
CHANGED
|
@@ -384,233 +384,233 @@ interface RuleOptions {
|
|
|
384
384
|
'implicit-arrow-linebreak'?: Linter.RuleEntry<ImplicitArrowLinebreak>;
|
|
385
385
|
/**
|
|
386
386
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
387
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
387
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/consistent-type-specifier-style.md
|
|
388
388
|
*/
|
|
389
389
|
'import/consistent-type-specifier-style'?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>;
|
|
390
390
|
/**
|
|
391
391
|
* Ensure a default export is present, given a default import.
|
|
392
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
392
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/default.md
|
|
393
393
|
*/
|
|
394
394
|
'import/default'?: Linter.RuleEntry<[]>;
|
|
395
395
|
/**
|
|
396
396
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
397
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
397
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/dynamic-import-chunkname.md
|
|
398
398
|
*/
|
|
399
399
|
'import/dynamic-import-chunkname'?: Linter.RuleEntry<ImportDynamicImportChunkname>;
|
|
400
400
|
/**
|
|
401
401
|
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
402
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
402
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/export.md
|
|
403
403
|
*/
|
|
404
404
|
'import/export'?: Linter.RuleEntry<[]>;
|
|
405
405
|
/**
|
|
406
406
|
* Ensure all exports appear after other statements.
|
|
407
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
407
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/exports-last.md
|
|
408
408
|
*/
|
|
409
409
|
'import/exports-last'?: Linter.RuleEntry<[]>;
|
|
410
410
|
/**
|
|
411
411
|
* Ensure consistent use of file extension within the import path.
|
|
412
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
412
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/extensions.md
|
|
413
413
|
*/
|
|
414
414
|
'import/extensions'?: Linter.RuleEntry<ImportExtensions>;
|
|
415
415
|
/**
|
|
416
416
|
* Ensure all imports appear before other statements.
|
|
417
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
417
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/first.md
|
|
418
418
|
*/
|
|
419
419
|
'import/first'?: Linter.RuleEntry<ImportFirst>;
|
|
420
420
|
/**
|
|
421
421
|
* Prefer named exports to be grouped together in a single export declaration.
|
|
422
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
422
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/group-exports.md
|
|
423
423
|
*/
|
|
424
424
|
'import/group-exports'?: Linter.RuleEntry<[]>;
|
|
425
425
|
/**
|
|
426
426
|
* Replaced by `import-x/first`.
|
|
427
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
427
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/imports-first.md
|
|
428
428
|
* @deprecated
|
|
429
429
|
*/
|
|
430
430
|
'import/imports-first'?: Linter.RuleEntry<ImportImportsFirst>;
|
|
431
431
|
/**
|
|
432
432
|
* Enforce the maximum number of dependencies a module can have.
|
|
433
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
433
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/max-dependencies.md
|
|
434
434
|
*/
|
|
435
435
|
'import/max-dependencies'?: Linter.RuleEntry<ImportMaxDependencies>;
|
|
436
436
|
/**
|
|
437
437
|
* Ensure named imports correspond to a named export in the remote file.
|
|
438
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
438
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/named.md
|
|
439
439
|
*/
|
|
440
440
|
'import/named'?: Linter.RuleEntry<ImportNamed>;
|
|
441
441
|
/**
|
|
442
442
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
443
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
443
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/namespace.md
|
|
444
444
|
*/
|
|
445
445
|
'import/namespace'?: Linter.RuleEntry<ImportNamespace>;
|
|
446
446
|
/**
|
|
447
447
|
* Enforce a newline after import statements.
|
|
448
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
448
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/newline-after-import.md
|
|
449
449
|
*/
|
|
450
450
|
'import/newline-after-import'?: Linter.RuleEntry<ImportNewlineAfterImport>;
|
|
451
451
|
/**
|
|
452
452
|
* Forbid import of modules using absolute paths.
|
|
453
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
453
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/no-absolute-path.md
|
|
454
454
|
*/
|
|
455
455
|
'import/no-absolute-path'?: Linter.RuleEntry<ImportNoAbsolutePath>;
|
|
456
456
|
/**
|
|
457
457
|
* Forbid AMD `require` and `define` calls.
|
|
458
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
458
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/no-amd.md
|
|
459
459
|
*/
|
|
460
460
|
'import/no-amd'?: Linter.RuleEntry<[]>;
|
|
461
461
|
/**
|
|
462
462
|
* Forbid anonymous values as default exports.
|
|
463
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
463
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/no-anonymous-default-export.md
|
|
464
464
|
*/
|
|
465
465
|
'import/no-anonymous-default-export'?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>;
|
|
466
466
|
/**
|
|
467
467
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
468
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
468
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/no-commonjs.md
|
|
469
469
|
*/
|
|
470
470
|
'import/no-commonjs'?: Linter.RuleEntry<ImportNoCommonjs>;
|
|
471
471
|
/**
|
|
472
472
|
* Forbid a module from importing a module with a dependency path back to itself.
|
|
473
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
473
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/no-cycle.md
|
|
474
474
|
*/
|
|
475
475
|
'import/no-cycle'?: Linter.RuleEntry<ImportNoCycle>;
|
|
476
476
|
/**
|
|
477
477
|
* Forbid default exports.
|
|
478
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
478
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/no-default-export.md
|
|
479
479
|
*/
|
|
480
480
|
'import/no-default-export'?: Linter.RuleEntry<[]>;
|
|
481
481
|
/**
|
|
482
482
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
483
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
483
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/no-deprecated.md
|
|
484
484
|
*/
|
|
485
485
|
'import/no-deprecated'?: Linter.RuleEntry<[]>;
|
|
486
486
|
/**
|
|
487
487
|
* Forbid repeated import of the same module in multiple places.
|
|
488
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
488
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/no-duplicates.md
|
|
489
489
|
*/
|
|
490
490
|
'import/no-duplicates'?: Linter.RuleEntry<ImportNoDuplicates>;
|
|
491
491
|
/**
|
|
492
492
|
* Forbid `require()` calls with expressions.
|
|
493
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
493
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/no-dynamic-require.md
|
|
494
494
|
*/
|
|
495
495
|
'import/no-dynamic-require'?: Linter.RuleEntry<ImportNoDynamicRequire>;
|
|
496
496
|
/**
|
|
497
497
|
* Forbid empty named import blocks.
|
|
498
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
498
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/no-empty-named-blocks.md
|
|
499
499
|
*/
|
|
500
500
|
'import/no-empty-named-blocks'?: Linter.RuleEntry<[]>;
|
|
501
501
|
/**
|
|
502
502
|
* Forbid the use of extraneous packages.
|
|
503
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
503
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/no-extraneous-dependencies.md
|
|
504
504
|
*/
|
|
505
505
|
'import/no-extraneous-dependencies'?: Linter.RuleEntry<ImportNoExtraneousDependencies>;
|
|
506
506
|
/**
|
|
507
507
|
* Forbid import statements with CommonJS module.exports.
|
|
508
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
508
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/no-import-module-exports.md
|
|
509
509
|
*/
|
|
510
510
|
'import/no-import-module-exports'?: Linter.RuleEntry<ImportNoImportModuleExports>;
|
|
511
511
|
/**
|
|
512
512
|
* Forbid importing the submodules of other modules.
|
|
513
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
513
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/no-internal-modules.md
|
|
514
514
|
*/
|
|
515
515
|
'import/no-internal-modules'?: Linter.RuleEntry<ImportNoInternalModules>;
|
|
516
516
|
/**
|
|
517
517
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
518
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
518
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/no-mutable-exports.md
|
|
519
519
|
*/
|
|
520
520
|
'import/no-mutable-exports'?: Linter.RuleEntry<[]>;
|
|
521
521
|
/**
|
|
522
522
|
* Forbid use of exported name as identifier of default export.
|
|
523
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
523
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/no-named-as-default.md
|
|
524
524
|
*/
|
|
525
525
|
'import/no-named-as-default'?: Linter.RuleEntry<[]>;
|
|
526
526
|
/**
|
|
527
527
|
* Forbid use of exported name as property of default export.
|
|
528
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
528
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/no-named-as-default-member.md
|
|
529
529
|
*/
|
|
530
530
|
'import/no-named-as-default-member'?: Linter.RuleEntry<[]>;
|
|
531
531
|
/**
|
|
532
532
|
* Forbid named default exports.
|
|
533
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
533
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/no-named-default.md
|
|
534
534
|
*/
|
|
535
535
|
'import/no-named-default'?: Linter.RuleEntry<[]>;
|
|
536
536
|
/**
|
|
537
537
|
* Forbid named exports.
|
|
538
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
538
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/no-named-export.md
|
|
539
539
|
*/
|
|
540
540
|
'import/no-named-export'?: Linter.RuleEntry<[]>;
|
|
541
541
|
/**
|
|
542
542
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
543
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
543
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/no-namespace.md
|
|
544
544
|
*/
|
|
545
545
|
'import/no-namespace'?: Linter.RuleEntry<ImportNoNamespace>;
|
|
546
546
|
/**
|
|
547
547
|
* Forbid Node.js builtin modules.
|
|
548
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
548
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/no-nodejs-modules.md
|
|
549
549
|
*/
|
|
550
550
|
'import/no-nodejs-modules'?: Linter.RuleEntry<ImportNoNodejsModules>;
|
|
551
551
|
/**
|
|
552
552
|
* Forbid importing packages through relative paths.
|
|
553
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
553
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/no-relative-packages.md
|
|
554
554
|
*/
|
|
555
555
|
'import/no-relative-packages'?: Linter.RuleEntry<ImportNoRelativePackages>;
|
|
556
556
|
/**
|
|
557
557
|
* Forbid importing modules from parent directories.
|
|
558
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
558
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/no-relative-parent-imports.md
|
|
559
559
|
*/
|
|
560
560
|
'import/no-relative-parent-imports'?: Linter.RuleEntry<ImportNoRelativeParentImports>;
|
|
561
561
|
/**
|
|
562
562
|
* Forbid importing a default export by a different name.
|
|
563
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
563
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/no-rename-default.md
|
|
564
564
|
*/
|
|
565
565
|
'import/no-rename-default'?: Linter.RuleEntry<ImportNoRenameDefault>;
|
|
566
566
|
/**
|
|
567
567
|
* Enforce which files can be imported in a given folder.
|
|
568
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
568
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/no-restricted-paths.md
|
|
569
569
|
*/
|
|
570
570
|
'import/no-restricted-paths'?: Linter.RuleEntry<ImportNoRestrictedPaths>;
|
|
571
571
|
/**
|
|
572
572
|
* Forbid a module from importing itself.
|
|
573
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
573
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/no-self-import.md
|
|
574
574
|
*/
|
|
575
575
|
'import/no-self-import'?: Linter.RuleEntry<[]>;
|
|
576
576
|
/**
|
|
577
577
|
* Forbid unassigned imports.
|
|
578
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
578
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/no-unassigned-import.md
|
|
579
579
|
*/
|
|
580
580
|
'import/no-unassigned-import'?: Linter.RuleEntry<ImportNoUnassignedImport>;
|
|
581
581
|
/**
|
|
582
582
|
* Ensure imports point to a file/module that can be resolved.
|
|
583
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
583
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/no-unresolved.md
|
|
584
584
|
*/
|
|
585
585
|
'import/no-unresolved'?: Linter.RuleEntry<ImportNoUnresolved>;
|
|
586
586
|
/**
|
|
587
587
|
* Forbid modules without exports, or exports without matching import in another module.
|
|
588
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
588
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/no-unused-modules.md
|
|
589
589
|
*/
|
|
590
590
|
'import/no-unused-modules'?: Linter.RuleEntry<ImportNoUnusedModules>;
|
|
591
591
|
/**
|
|
592
592
|
* Forbid unnecessary path segments in import and require statements.
|
|
593
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
593
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/no-useless-path-segments.md
|
|
594
594
|
*/
|
|
595
595
|
'import/no-useless-path-segments'?: Linter.RuleEntry<ImportNoUselessPathSegments>;
|
|
596
596
|
/**
|
|
597
597
|
* Forbid webpack loader syntax in imports.
|
|
598
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
598
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/no-webpack-loader-syntax.md
|
|
599
599
|
*/
|
|
600
600
|
'import/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>;
|
|
601
601
|
/**
|
|
602
602
|
* Enforce a convention in module import order.
|
|
603
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
603
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/order.md
|
|
604
604
|
*/
|
|
605
605
|
'import/order'?: Linter.RuleEntry<ImportOrder>;
|
|
606
606
|
/**
|
|
607
607
|
* Prefer a default export if module exports a single name or multiple names.
|
|
608
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
608
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/prefer-default-export.md
|
|
609
609
|
*/
|
|
610
610
|
'import/prefer-default-export'?: Linter.RuleEntry<ImportPreferDefaultExport>;
|
|
611
611
|
/**
|
|
612
612
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
613
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
613
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/unambiguous.md
|
|
614
614
|
*/
|
|
615
615
|
'import/unambiguous'?: Linter.RuleEntry<[]>;
|
|
616
616
|
/**
|
|
@@ -1198,11 +1198,26 @@ interface RuleOptions {
|
|
|
1198
1198
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/heading-increment.md
|
|
1199
1199
|
*/
|
|
1200
1200
|
'markdown/heading-increment'?: Linter.RuleEntry<[]>;
|
|
1201
|
+
/**
|
|
1202
|
+
* Disallow duplicate definitions
|
|
1203
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-duplicate-definitions.md
|
|
1204
|
+
*/
|
|
1205
|
+
'markdown/no-duplicate-definitions'?: Linter.RuleEntry<MarkdownNoDuplicateDefinitions>;
|
|
1201
1206
|
/**
|
|
1202
1207
|
* Disallow duplicate headings in the same document
|
|
1203
1208
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-duplicate-headings.md
|
|
1204
1209
|
*/
|
|
1205
1210
|
'markdown/no-duplicate-headings'?: Linter.RuleEntry<[]>;
|
|
1211
|
+
/**
|
|
1212
|
+
* Disallow empty definitions
|
|
1213
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-empty-definitions.md
|
|
1214
|
+
*/
|
|
1215
|
+
'markdown/no-empty-definitions'?: Linter.RuleEntry<[]>;
|
|
1216
|
+
/**
|
|
1217
|
+
* Disallow empty images
|
|
1218
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-empty-images.md
|
|
1219
|
+
*/
|
|
1220
|
+
'markdown/no-empty-images'?: Linter.RuleEntry<[]>;
|
|
1206
1221
|
/**
|
|
1207
1222
|
* Disallow empty links
|
|
1208
1223
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-empty-links.md
|
|
@@ -1218,11 +1233,31 @@ interface RuleOptions {
|
|
|
1218
1233
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-invalid-label-refs.md
|
|
1219
1234
|
*/
|
|
1220
1235
|
'markdown/no-invalid-label-refs'?: Linter.RuleEntry<[]>;
|
|
1236
|
+
/**
|
|
1237
|
+
* Disallow headings without a space after the hash characters
|
|
1238
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-missing-atx-heading-space.md
|
|
1239
|
+
*/
|
|
1240
|
+
'markdown/no-missing-atx-heading-space'?: Linter.RuleEntry<[]>;
|
|
1221
1241
|
/**
|
|
1222
1242
|
* Disallow missing label references
|
|
1223
1243
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-missing-label-refs.md
|
|
1224
1244
|
*/
|
|
1225
1245
|
'markdown/no-missing-label-refs'?: Linter.RuleEntry<[]>;
|
|
1246
|
+
/**
|
|
1247
|
+
* Disallow multiple H1 headings in the same document
|
|
1248
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-multiple-h1.md
|
|
1249
|
+
*/
|
|
1250
|
+
'markdown/no-multiple-h1'?: Linter.RuleEntry<MarkdownNoMultipleH1>;
|
|
1251
|
+
/**
|
|
1252
|
+
* Require alternative text for images
|
|
1253
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/require-alt-text.md
|
|
1254
|
+
*/
|
|
1255
|
+
'markdown/require-alt-text'?: Linter.RuleEntry<[]>;
|
|
1256
|
+
/**
|
|
1257
|
+
* Disallow data rows in a GitHub Flavored Markdown table from having more cells than the header row
|
|
1258
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/table-column-count.md
|
|
1259
|
+
*/
|
|
1260
|
+
'markdown/table-column-count'?: Linter.RuleEntry<[]>;
|
|
1226
1261
|
/**
|
|
1227
1262
|
* Enforce a maximum number of classes per file
|
|
1228
1263
|
* @see https://eslint.org/docs/latest/rules/max-classes-per-file
|
|
@@ -2228,6 +2263,11 @@ interface RuleOptions {
|
|
|
2228
2263
|
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-sync.md
|
|
2229
2264
|
*/
|
|
2230
2265
|
'node/no-sync'?: Linter.RuleEntry<NodeNoSync>;
|
|
2266
|
+
/**
|
|
2267
|
+
* disallow top-level `await` in published modules
|
|
2268
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-top-level-await.md
|
|
2269
|
+
*/
|
|
2270
|
+
'node/no-top-level-await'?: Linter.RuleEntry<NodeNoTopLevelAwait>;
|
|
2231
2271
|
/**
|
|
2232
2272
|
* disallow `bin` files that npm ignores
|
|
2233
2273
|
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-unpublished-bin.md
|
|
@@ -2791,6 +2831,11 @@ interface RuleOptions {
|
|
|
2791
2831
|
* @see https://eslint-react.xyz/docs/rules/jsx-no-duplicate-props
|
|
2792
2832
|
*/
|
|
2793
2833
|
'react/jsx-no-duplicate-props'?: Linter.RuleEntry<[]>;
|
|
2834
|
+
/**
|
|
2835
|
+
* Disallows 'IIFE' in JSX elements.
|
|
2836
|
+
* @see https://eslint-react.xyz/docs/rules/jsx-no-iife
|
|
2837
|
+
*/
|
|
2838
|
+
'react/jsx-no-iife'?: Linter.RuleEntry<[]>;
|
|
2794
2839
|
/**
|
|
2795
2840
|
* Disallow undefined variables in JSX.
|
|
2796
2841
|
* @see https://eslint-react.xyz/docs/rules/jsx-no-undef
|
|
@@ -3390,7 +3435,7 @@ interface RuleOptions {
|
|
|
3390
3435
|
* enforce using quantifier
|
|
3391
3436
|
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-quantifier.html
|
|
3392
3437
|
*/
|
|
3393
|
-
'regexp/prefer-quantifier'?: Linter.RuleEntry<
|
|
3438
|
+
'regexp/prefer-quantifier'?: Linter.RuleEntry<RegexpPreferQuantifier>;
|
|
3394
3439
|
/**
|
|
3395
3440
|
* enforce using `?` quantifier
|
|
3396
3441
|
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-question-quantifier.html
|
|
@@ -5176,6 +5221,7 @@ interface RuleOptions {
|
|
|
5176
5221
|
/**
|
|
5177
5222
|
* Require type annotations in certain places
|
|
5178
5223
|
* @see https://typescript-eslint.io/rules/typedef
|
|
5224
|
+
* @deprecated
|
|
5179
5225
|
*/
|
|
5180
5226
|
'ts/typedef'?: Linter.RuleEntry<TsTypedef>;
|
|
5181
5227
|
/**
|
|
@@ -7526,6 +7572,7 @@ type _FuncNamesValue = ("always" | "as-needed" | "never");
|
|
|
7526
7572
|
// ----- func-style -----
|
|
7527
7573
|
type FuncStyle = [] | [("declaration" | "expression")] | [("declaration" | "expression"), {
|
|
7528
7574
|
allowArrowFunctions?: boolean;
|
|
7575
|
+
allowTypeAnnotation?: boolean;
|
|
7529
7576
|
overrides?: {
|
|
7530
7577
|
namedExports?: ("declaration" | "expression" | "ignore");
|
|
7531
7578
|
};
|
|
@@ -7922,10 +7969,10 @@ type JsdocCheckLineAlignment = [] | [("always" | "never" | "any")] | [("always"
|
|
|
7922
7969
|
postTag?: number;
|
|
7923
7970
|
postType?: number;
|
|
7924
7971
|
};
|
|
7972
|
+
disableWrapIndent?: boolean;
|
|
7925
7973
|
preserveMainDescriptionPostDelimiter?: boolean;
|
|
7926
7974
|
tags?: string[];
|
|
7927
7975
|
wrapIndent?: string;
|
|
7928
|
-
disableWrapIndent?: boolean;
|
|
7929
7976
|
}];
|
|
7930
7977
|
// ----- jsdoc/check-param-names -----
|
|
7931
7978
|
type JsdocCheckParamNames = [] | [{
|
|
@@ -9003,10 +9050,19 @@ type LogicalAssignmentOperators = (([] | ["always"] | ["always", {
|
|
|
9003
9050
|
type MarkdownFencedCodeLanguage = [] | [{
|
|
9004
9051
|
required?: string[];
|
|
9005
9052
|
}];
|
|
9053
|
+
// ----- markdown/no-duplicate-definitions -----
|
|
9054
|
+
type MarkdownNoDuplicateDefinitions = [] | [{
|
|
9055
|
+
allowDefinitions?: string[];
|
|
9056
|
+
allowFootnoteDefinitions?: string[];
|
|
9057
|
+
}];
|
|
9006
9058
|
// ----- markdown/no-html -----
|
|
9007
9059
|
type MarkdownNoHtml = [] | [{
|
|
9008
9060
|
allowed?: string[];
|
|
9009
9061
|
}];
|
|
9062
|
+
// ----- markdown/no-multiple-h1 -----
|
|
9063
|
+
type MarkdownNoMultipleH1 = [] | [{
|
|
9064
|
+
frontmatterTitle?: string;
|
|
9065
|
+
}];
|
|
9010
9066
|
// ----- max-classes-per-file -----
|
|
9011
9067
|
type MaxClassesPerFile = [] | [(number | {
|
|
9012
9068
|
ignoreExpressions?: boolean;
|
|
@@ -9273,6 +9329,10 @@ type NoMagicNumbers = [] | [{
|
|
|
9273
9329
|
ignoreArrayIndexes?: boolean;
|
|
9274
9330
|
ignoreDefaultValues?: boolean;
|
|
9275
9331
|
ignoreClassFieldInitialValues?: boolean;
|
|
9332
|
+
ignoreEnums?: boolean;
|
|
9333
|
+
ignoreNumericLiteralTypes?: boolean;
|
|
9334
|
+
ignoreReadonlyClassProperties?: boolean;
|
|
9335
|
+
ignoreTypeIndexes?: boolean;
|
|
9276
9336
|
}];
|
|
9277
9337
|
// ----- no-misleading-character-class -----
|
|
9278
9338
|
type NoMisleadingCharacterClass = [] | [{
|
|
@@ -9405,9 +9465,11 @@ type NoSequences = [] | [{
|
|
|
9405
9465
|
// ----- no-shadow -----
|
|
9406
9466
|
type NoShadow = [] | [{
|
|
9407
9467
|
builtinGlobals?: boolean;
|
|
9408
|
-
hoist?: ("all" | "functions" | "never");
|
|
9468
|
+
hoist?: ("all" | "functions" | "never" | "types" | "functions-and-types");
|
|
9409
9469
|
allow?: string[];
|
|
9410
9470
|
ignoreOnInitialization?: boolean;
|
|
9471
|
+
ignoreTypeValueShadow?: boolean;
|
|
9472
|
+
ignoreFunctionTypeParameterNameValueShadow?: boolean;
|
|
9411
9473
|
}];
|
|
9412
9474
|
// ----- no-shadow-restricted-names -----
|
|
9413
9475
|
type NoShadowRestrictedNames = [] | [{
|
|
@@ -9485,6 +9547,9 @@ type NoUseBeforeDefine = [] | [("nofunc" | {
|
|
|
9485
9547
|
classes?: boolean;
|
|
9486
9548
|
variables?: boolean;
|
|
9487
9549
|
allowNamedExports?: boolean;
|
|
9550
|
+
enums?: boolean;
|
|
9551
|
+
typedefs?: boolean;
|
|
9552
|
+
ignoreTypeReferences?: boolean;
|
|
9488
9553
|
})];
|
|
9489
9554
|
// ----- no-useless-computed-key -----
|
|
9490
9555
|
type NoUselessComputedKey = [] | [{
|
|
@@ -9638,7 +9703,33 @@ type NodeNoRestrictedRequire = [] | [(string | {
|
|
|
9638
9703
|
// ----- node/no-sync -----
|
|
9639
9704
|
type NodeNoSync = [] | [{
|
|
9640
9705
|
allowAtRootLevel?: boolean;
|
|
9641
|
-
ignores?: string
|
|
9706
|
+
ignores?: (string | {
|
|
9707
|
+
from?: "file";
|
|
9708
|
+
path?: string;
|
|
9709
|
+
name?: string[];
|
|
9710
|
+
} | {
|
|
9711
|
+
from?: "lib";
|
|
9712
|
+
name?: string[];
|
|
9713
|
+
} | {
|
|
9714
|
+
from?: "package";
|
|
9715
|
+
package?: string;
|
|
9716
|
+
name?: string[];
|
|
9717
|
+
})[];
|
|
9718
|
+
}];
|
|
9719
|
+
// ----- node/no-top-level-await -----
|
|
9720
|
+
type NodeNoTopLevelAwait = [] | [{
|
|
9721
|
+
ignoreBin?: boolean;
|
|
9722
|
+
convertPath?: ({
|
|
9723
|
+
[k: string]: [string, string];
|
|
9724
|
+
} | [{
|
|
9725
|
+
include: [string, ...(string)[]];
|
|
9726
|
+
exclude?: string[];
|
|
9727
|
+
replace: [string, string];
|
|
9728
|
+
}, ...({
|
|
9729
|
+
include: [string, ...(string)[]];
|
|
9730
|
+
exclude?: string[];
|
|
9731
|
+
replace: [string, string];
|
|
9732
|
+
})[]]);
|
|
9642
9733
|
}];
|
|
9643
9734
|
// ----- node/no-unpublished-bin -----
|
|
9644
9735
|
type NodeNoUnpublishedBin = [] | [{
|
|
@@ -9931,7 +10022,8 @@ type PerfectionistSortArrayIncludes = {
|
|
|
9931
10022
|
partitionByNewLine?: boolean;
|
|
9932
10023
|
newlinesBetween?: ("ignore" | "always" | "never");
|
|
9933
10024
|
groups?: (string | string[] | {
|
|
9934
|
-
newlinesBetween
|
|
10025
|
+
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10026
|
+
commentAbove?: string;
|
|
9935
10027
|
})[];
|
|
9936
10028
|
}[];
|
|
9937
10029
|
// ----- perfectionist/sort-classes -----
|
|
@@ -10045,7 +10137,8 @@ type PerfectionistSortClasses = [] | [{
|
|
|
10045
10137
|
partitionByNewLine?: boolean;
|
|
10046
10138
|
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10047
10139
|
groups?: (string | string[] | {
|
|
10048
|
-
newlinesBetween
|
|
10140
|
+
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10141
|
+
commentAbove?: string;
|
|
10049
10142
|
})[];
|
|
10050
10143
|
}];
|
|
10051
10144
|
// ----- perfectionist/sort-decorators -----
|
|
@@ -10091,7 +10184,8 @@ type PerfectionistSortDecorators = [] | [{
|
|
|
10091
10184
|
[k: string]: (string | string[]) | undefined;
|
|
10092
10185
|
};
|
|
10093
10186
|
groups?: (string | string[] | {
|
|
10094
|
-
newlinesBetween
|
|
10187
|
+
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10188
|
+
commentAbove?: string;
|
|
10095
10189
|
})[];
|
|
10096
10190
|
}];
|
|
10097
10191
|
// ----- perfectionist/sort-enums -----
|
|
@@ -10184,7 +10278,8 @@ type PerfectionistSortEnums = [] | [{
|
|
|
10184
10278
|
partitionByNewLine?: boolean;
|
|
10185
10279
|
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10186
10280
|
groups?: (string | string[] | {
|
|
10187
|
-
newlinesBetween
|
|
10281
|
+
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10282
|
+
commentAbove?: string;
|
|
10188
10283
|
})[];
|
|
10189
10284
|
}];
|
|
10190
10285
|
// ----- perfectionist/sort-exports -----
|
|
@@ -10264,7 +10359,8 @@ type PerfectionistSortExports = {
|
|
|
10264
10359
|
partitionByNewLine?: boolean;
|
|
10265
10360
|
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10266
10361
|
groups?: (string | string[] | {
|
|
10267
|
-
newlinesBetween
|
|
10362
|
+
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10363
|
+
commentAbove?: string;
|
|
10268
10364
|
})[];
|
|
10269
10365
|
}[];
|
|
10270
10366
|
// ----- perfectionist/sort-heritage-clauses -----
|
|
@@ -10283,7 +10379,8 @@ type PerfectionistSortHeritageClauses = [] | [{
|
|
|
10283
10379
|
[k: string]: (string | string[]) | undefined;
|
|
10284
10380
|
};
|
|
10285
10381
|
groups?: (string | string[] | {
|
|
10286
|
-
newlinesBetween
|
|
10382
|
+
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10383
|
+
commentAbove?: string;
|
|
10287
10384
|
})[];
|
|
10288
10385
|
}];
|
|
10289
10386
|
// ----- perfectionist/sort-imports -----
|
|
@@ -10358,6 +10455,10 @@ type PerfectionistSortImports = {
|
|
|
10358
10455
|
flags?: string;
|
|
10359
10456
|
} | string));
|
|
10360
10457
|
})[]);
|
|
10458
|
+
tsconfig?: {
|
|
10459
|
+
rootDir: string;
|
|
10460
|
+
filename?: string;
|
|
10461
|
+
};
|
|
10361
10462
|
maxLineLength?: number;
|
|
10362
10463
|
sortSideEffects?: boolean;
|
|
10363
10464
|
environment?: ("node" | "bun");
|
|
@@ -10394,7 +10495,8 @@ type PerfectionistSortImports = {
|
|
|
10394
10495
|
flags?: string;
|
|
10395
10496
|
} | string));
|
|
10396
10497
|
groups?: (string | string[] | {
|
|
10397
|
-
newlinesBetween
|
|
10498
|
+
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10499
|
+
commentAbove?: string;
|
|
10398
10500
|
})[];
|
|
10399
10501
|
}[];
|
|
10400
10502
|
// ----- perfectionist/sort-interfaces -----
|
|
@@ -10519,7 +10621,8 @@ type PerfectionistSortInterfaces = {
|
|
|
10519
10621
|
} | string));
|
|
10520
10622
|
sortBy?: ("name" | "value");
|
|
10521
10623
|
groups?: (string | string[] | {
|
|
10522
|
-
newlinesBetween
|
|
10624
|
+
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10625
|
+
commentAbove?: string;
|
|
10523
10626
|
})[];
|
|
10524
10627
|
}[];
|
|
10525
10628
|
// ----- perfectionist/sort-intersection-types -----
|
|
@@ -10596,7 +10699,8 @@ type PerfectionistSortIntersectionTypes = {
|
|
|
10596
10699
|
partitionByNewLine?: boolean;
|
|
10597
10700
|
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10598
10701
|
groups?: (string | string[] | {
|
|
10599
|
-
newlinesBetween
|
|
10702
|
+
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10703
|
+
commentAbove?: string;
|
|
10600
10704
|
})[];
|
|
10601
10705
|
}[];
|
|
10602
10706
|
// ----- perfectionist/sort-jsx-props -----
|
|
@@ -10692,7 +10796,8 @@ type PerfectionistSortJsxProps = {
|
|
|
10692
10796
|
flags?: string;
|
|
10693
10797
|
} | string));
|
|
10694
10798
|
groups?: (string | string[] | {
|
|
10695
|
-
newlinesBetween
|
|
10799
|
+
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10800
|
+
commentAbove?: string;
|
|
10696
10801
|
})[];
|
|
10697
10802
|
}[];
|
|
10698
10803
|
// ----- perfectionist/sort-maps -----
|
|
@@ -10776,7 +10881,8 @@ type PerfectionistSortMaps = {
|
|
|
10776
10881
|
partitionByNewLine?: boolean;
|
|
10777
10882
|
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10778
10883
|
groups?: (string | string[] | {
|
|
10779
|
-
newlinesBetween
|
|
10884
|
+
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10885
|
+
commentAbove?: string;
|
|
10780
10886
|
})[];
|
|
10781
10887
|
}[];
|
|
10782
10888
|
// ----- perfectionist/sort-modules -----
|
|
@@ -10869,7 +10975,8 @@ type PerfectionistSortModules = [] | [{
|
|
|
10869
10975
|
partitionByNewLine?: boolean;
|
|
10870
10976
|
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10871
10977
|
groups?: (string | string[] | {
|
|
10872
|
-
newlinesBetween
|
|
10978
|
+
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10979
|
+
commentAbove?: string;
|
|
10873
10980
|
})[];
|
|
10874
10981
|
}];
|
|
10875
10982
|
// ----- perfectionist/sort-named-exports -----
|
|
@@ -10950,7 +11057,8 @@ type PerfectionistSortNamedExports = {
|
|
|
10950
11057
|
partitionByNewLine?: boolean;
|
|
10951
11058
|
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10952
11059
|
groups?: (string | string[] | {
|
|
10953
|
-
newlinesBetween
|
|
11060
|
+
newlinesBetween?: ("ignore" | "always" | "never");
|
|
11061
|
+
commentAbove?: string;
|
|
10954
11062
|
})[];
|
|
10955
11063
|
}[];
|
|
10956
11064
|
// ----- perfectionist/sort-named-imports -----
|
|
@@ -11031,7 +11139,8 @@ type PerfectionistSortNamedImports = {
|
|
|
11031
11139
|
partitionByNewLine?: boolean;
|
|
11032
11140
|
newlinesBetween?: ("ignore" | "always" | "never");
|
|
11033
11141
|
groups?: (string | string[] | {
|
|
11034
|
-
newlinesBetween
|
|
11142
|
+
newlinesBetween?: ("ignore" | "always" | "never");
|
|
11143
|
+
commentAbove?: string;
|
|
11035
11144
|
})[];
|
|
11036
11145
|
}[];
|
|
11037
11146
|
// ----- perfectionist/sort-object-types -----
|
|
@@ -11156,7 +11265,8 @@ type PerfectionistSortObjectTypes = {
|
|
|
11156
11265
|
} | string));
|
|
11157
11266
|
sortBy?: ("name" | "value");
|
|
11158
11267
|
groups?: (string | string[] | {
|
|
11159
|
-
newlinesBetween
|
|
11268
|
+
newlinesBetween?: ("ignore" | "always" | "never");
|
|
11269
|
+
commentAbove?: string;
|
|
11160
11270
|
})[];
|
|
11161
11271
|
}[];
|
|
11162
11272
|
// ----- perfectionist/sort-objects -----
|
|
@@ -11280,7 +11390,8 @@ type PerfectionistSortObjects = {
|
|
|
11280
11390
|
flags?: string;
|
|
11281
11391
|
} | string));
|
|
11282
11392
|
groups?: (string | string[] | {
|
|
11283
|
-
newlinesBetween
|
|
11393
|
+
newlinesBetween?: ("ignore" | "always" | "never");
|
|
11394
|
+
commentAbove?: string;
|
|
11284
11395
|
})[];
|
|
11285
11396
|
}[];
|
|
11286
11397
|
// ----- perfectionist/sort-sets -----
|
|
@@ -11367,7 +11478,8 @@ type PerfectionistSortSets = {
|
|
|
11367
11478
|
partitionByNewLine?: boolean;
|
|
11368
11479
|
newlinesBetween?: ("ignore" | "always" | "never");
|
|
11369
11480
|
groups?: (string | string[] | {
|
|
11370
|
-
newlinesBetween
|
|
11481
|
+
newlinesBetween?: ("ignore" | "always" | "never");
|
|
11482
|
+
commentAbove?: string;
|
|
11371
11483
|
})[];
|
|
11372
11484
|
}[];
|
|
11373
11485
|
// ----- perfectionist/sort-switch-case -----
|
|
@@ -11457,7 +11569,8 @@ type PerfectionistSortUnionTypes = {
|
|
|
11457
11569
|
partitionByNewLine?: boolean;
|
|
11458
11570
|
newlinesBetween?: ("ignore" | "always" | "never");
|
|
11459
11571
|
groups?: (string | string[] | {
|
|
11460
|
-
newlinesBetween
|
|
11572
|
+
newlinesBetween?: ("ignore" | "always" | "never");
|
|
11573
|
+
commentAbove?: string;
|
|
11461
11574
|
})[];
|
|
11462
11575
|
}[];
|
|
11463
11576
|
// ----- perfectionist/sort-variable-declarations -----
|
|
@@ -11534,7 +11647,8 @@ type PerfectionistSortVariableDeclarations = [] | [{
|
|
|
11534
11647
|
partitionByNewLine?: boolean;
|
|
11535
11648
|
newlinesBetween?: ("ignore" | "always" | "never");
|
|
11536
11649
|
groups?: (string | string[] | {
|
|
11537
|
-
newlinesBetween
|
|
11650
|
+
newlinesBetween?: ("ignore" | "always" | "never");
|
|
11651
|
+
commentAbove?: string;
|
|
11538
11652
|
})[];
|
|
11539
11653
|
}];
|
|
11540
11654
|
// ----- prefer-arrow-callback -----
|
|
@@ -11734,6 +11848,10 @@ type RegexpPreferLookaround = [] | [{
|
|
|
11734
11848
|
type RegexpPreferNamedReplacement = [] | [{
|
|
11735
11849
|
strictTypes?: boolean;
|
|
11736
11850
|
}];
|
|
11851
|
+
// ----- regexp/prefer-quantifier -----
|
|
11852
|
+
type RegexpPreferQuantifier = [] | [{
|
|
11853
|
+
allows?: string[];
|
|
11854
|
+
}];
|
|
11737
11855
|
// ----- regexp/prefer-range -----
|
|
11738
11856
|
type RegexpPreferRange = [] | [{
|
|
11739
11857
|
target?: (("all" | "alphanumeric") | [("all" | "alphanumeric")] | [("alphanumeric" | string), ...(("alphanumeric" | string))[]]);
|
|
@@ -12220,6 +12338,7 @@ type StyleJsxSortProps = [] | [{
|
|
|
12220
12338
|
ignoreCase?: boolean;
|
|
12221
12339
|
noSortAlphabetically?: boolean;
|
|
12222
12340
|
reservedFirst?: (unknown[] | boolean);
|
|
12341
|
+
reservedLast?: unknown[];
|
|
12223
12342
|
locale?: string;
|
|
12224
12343
|
}];
|
|
12225
12344
|
// ----- style/jsx-tag-spacing -----
|
|
@@ -12296,18 +12415,6 @@ type StyleKeywordSpacing = [] | [{
|
|
|
12296
12415
|
before?: boolean;
|
|
12297
12416
|
after?: boolean;
|
|
12298
12417
|
};
|
|
12299
|
-
as?: {
|
|
12300
|
-
before?: boolean;
|
|
12301
|
-
after?: boolean;
|
|
12302
|
-
};
|
|
12303
|
-
async?: {
|
|
12304
|
-
before?: boolean;
|
|
12305
|
-
after?: boolean;
|
|
12306
|
-
};
|
|
12307
|
-
await?: {
|
|
12308
|
-
before?: boolean;
|
|
12309
|
-
after?: boolean;
|
|
12310
|
-
};
|
|
12311
12418
|
boolean?: {
|
|
12312
12419
|
before?: boolean;
|
|
12313
12420
|
after?: boolean;
|
|
@@ -12400,18 +12507,10 @@ type StyleKeywordSpacing = [] | [{
|
|
|
12400
12507
|
before?: boolean;
|
|
12401
12508
|
after?: boolean;
|
|
12402
12509
|
};
|
|
12403
|
-
from?: {
|
|
12404
|
-
before?: boolean;
|
|
12405
|
-
after?: boolean;
|
|
12406
|
-
};
|
|
12407
12510
|
function?: {
|
|
12408
12511
|
before?: boolean;
|
|
12409
12512
|
after?: boolean;
|
|
12410
12513
|
};
|
|
12411
|
-
get?: {
|
|
12412
|
-
before?: boolean;
|
|
12413
|
-
after?: boolean;
|
|
12414
|
-
};
|
|
12415
12514
|
goto?: {
|
|
12416
12515
|
before?: boolean;
|
|
12417
12516
|
after?: boolean;
|
|
@@ -12444,10 +12543,6 @@ type StyleKeywordSpacing = [] | [{
|
|
|
12444
12543
|
before?: boolean;
|
|
12445
12544
|
after?: boolean;
|
|
12446
12545
|
};
|
|
12447
|
-
let?: {
|
|
12448
|
-
before?: boolean;
|
|
12449
|
-
after?: boolean;
|
|
12450
|
-
};
|
|
12451
12546
|
long?: {
|
|
12452
12547
|
before?: boolean;
|
|
12453
12548
|
after?: boolean;
|
|
@@ -12464,10 +12559,6 @@ type StyleKeywordSpacing = [] | [{
|
|
|
12464
12559
|
before?: boolean;
|
|
12465
12560
|
after?: boolean;
|
|
12466
12561
|
};
|
|
12467
|
-
of?: {
|
|
12468
|
-
before?: boolean;
|
|
12469
|
-
after?: boolean;
|
|
12470
|
-
};
|
|
12471
12562
|
package?: {
|
|
12472
12563
|
before?: boolean;
|
|
12473
12564
|
after?: boolean;
|
|
@@ -12488,14 +12579,6 @@ type StyleKeywordSpacing = [] | [{
|
|
|
12488
12579
|
before?: boolean;
|
|
12489
12580
|
after?: boolean;
|
|
12490
12581
|
};
|
|
12491
|
-
satisfies?: {
|
|
12492
|
-
before?: boolean;
|
|
12493
|
-
after?: boolean;
|
|
12494
|
-
};
|
|
12495
|
-
set?: {
|
|
12496
|
-
before?: boolean;
|
|
12497
|
-
after?: boolean;
|
|
12498
|
-
};
|
|
12499
12582
|
short?: {
|
|
12500
12583
|
before?: boolean;
|
|
12501
12584
|
after?: boolean;
|
|
@@ -12564,6 +12647,42 @@ type StyleKeywordSpacing = [] | [{
|
|
|
12564
12647
|
before?: boolean;
|
|
12565
12648
|
after?: boolean;
|
|
12566
12649
|
};
|
|
12650
|
+
as?: {
|
|
12651
|
+
before?: boolean;
|
|
12652
|
+
after?: boolean;
|
|
12653
|
+
};
|
|
12654
|
+
async?: {
|
|
12655
|
+
before?: boolean;
|
|
12656
|
+
after?: boolean;
|
|
12657
|
+
};
|
|
12658
|
+
await?: {
|
|
12659
|
+
before?: boolean;
|
|
12660
|
+
after?: boolean;
|
|
12661
|
+
};
|
|
12662
|
+
from?: {
|
|
12663
|
+
before?: boolean;
|
|
12664
|
+
after?: boolean;
|
|
12665
|
+
};
|
|
12666
|
+
get?: {
|
|
12667
|
+
before?: boolean;
|
|
12668
|
+
after?: boolean;
|
|
12669
|
+
};
|
|
12670
|
+
let?: {
|
|
12671
|
+
before?: boolean;
|
|
12672
|
+
after?: boolean;
|
|
12673
|
+
};
|
|
12674
|
+
of?: {
|
|
12675
|
+
before?: boolean;
|
|
12676
|
+
after?: boolean;
|
|
12677
|
+
};
|
|
12678
|
+
satisfies?: {
|
|
12679
|
+
before?: boolean;
|
|
12680
|
+
after?: boolean;
|
|
12681
|
+
};
|
|
12682
|
+
set?: {
|
|
12683
|
+
before?: boolean;
|
|
12684
|
+
after?: boolean;
|
|
12685
|
+
};
|
|
12567
12686
|
yield?: {
|
|
12568
12687
|
before?: boolean;
|
|
12569
12688
|
after?: boolean;
|
|
@@ -15296,7 +15415,7 @@ type VueNoRestrictedCustomEvent = (string | {
|
|
|
15296
15415
|
})[];
|
|
15297
15416
|
// ----- vue/no-restricted-html-elements -----
|
|
15298
15417
|
type VueNoRestrictedHtmlElements = (string | {
|
|
15299
|
-
element: string;
|
|
15418
|
+
element: (string | string[]);
|
|
15300
15419
|
message?: string;
|
|
15301
15420
|
})[];
|
|
15302
15421
|
// ----- vue/no-restricted-props -----
|
|
@@ -15818,7 +15937,8 @@ type Yoda = [] | [("always" | "never")] | [("always" | "never"), {
|
|
|
15818
15937
|
onlyEquality?: boolean;
|
|
15819
15938
|
}];
|
|
15820
15939
|
// Names of all the configs
|
|
15821
|
-
type ConfigNames = 'eslint/comments/rules' | 'eslint/formatter/setup' | 'eslint/formatter/html' | 'eslint/formatter/xml' | 'eslint/formatter/svg' | 'eslint/formatter/markdown' | 'eslint/formatter/graphql' | 'eslint/imports/rules' | 'eslint/javascript/setup' | 'eslint/javascript/rules' | 'eslint/jsdoc/rules' | 'eslint/jsonc/setup' | 'eslint/jsonc/rules' | 'eslint/markdown/setup' | 'eslint/markdown/processor' | 'eslint/markdown/parser' | 'eslint/markdown/disables' | 'eslint/node/rules' | 'eslint/perfectionist/setup' | 'eslint/react/setup' | 'eslint/react/rules' | 'eslint/regexp/rules' | 'eslint/sort/package-json' | 'eslint/stylistic/rules' | 'eslint/test/setup' | 'eslint/test/rules' | 'eslint/toml/setup' | 'eslint/toml/rules' | 'eslint/typescript/setup' | 'eslint/typescript/parser' | 'eslint/typescript/rules' | 'eslint/unicorn/rules' | 'eslint/unocss/rules' | 'eslint/vue/setup' | 'eslint/vue/rules' | 'eslint/yaml/setup' | 'eslint/yaml/rules' | 'eslint/yaml/pnpm-workspace';
|
|
15940
|
+
type ConfigNames = 'eslint/comments/rules' | 'eslint/formatter/setup' | 'eslint/formatter/html' | 'eslint/formatter/xml' | 'eslint/formatter/svg' | 'eslint/formatter/markdown' | 'eslint/formatter/graphql' | 'eslint/imports/rules' | 'eslint/javascript/setup' | 'eslint/javascript/rules' | 'eslint/jsdoc/rules' | 'eslint/jsonc/setup' | 'eslint/jsonc/rules' | 'eslint/markdown/setup' | 'eslint/markdown/processor' | 'eslint/markdown/parser' | 'eslint/markdown/disables' | 'eslint/node/rules' | 'eslint/perfectionist/setup' | 'eslint/react/setup' | 'eslint/react/rules' | 'eslint/regexp/rules' | 'eslint/sort/package-json' | 'eslint/stylistic/rules' | 'eslint/test/setup' | 'eslint/test/rules' | 'eslint/toml/setup' | 'eslint/toml/rules' | 'eslint/typescript/setup' | 'eslint/typescript/parser' | 'eslint/typescript/rules' | 'eslint/unicorn/rules' | 'eslint/unocss/rules' | 'eslint/vue/setup' | 'eslint/vue/rules' | 'eslint/yaml/setup' | 'eslint/yaml/rules' | 'eslint/yaml/pnpm-workspace';
|
|
15941
|
+
//#endregion
|
|
15822
15942
|
//#region src/prettier.types.d.ts
|
|
15823
15943
|
/**
|
|
15824
15944
|
* 来自 Prettier 的供应商类型,因此不依赖依赖项
|
|
@@ -15938,7 +16058,6 @@ interface VendoredPrettierOptionsRequired {
|
|
|
15938
16058
|
*/
|
|
15939
16059
|
xmlWhitespaceSensitivity: 'ignore' | 'strict' | 'preserve';
|
|
15940
16060
|
}
|
|
15941
|
-
|
|
15942
16061
|
//#endregion
|
|
15943
16062
|
//#region src/types.d.ts
|
|
15944
16063
|
type Awaitable<T> = T | Promise<T>;
|
|
@@ -16291,7 +16410,6 @@ interface OptionsConfig extends OptionsComponentExts, OptionsProjectType {
|
|
|
16291
16410
|
ignores?: string[];
|
|
16292
16411
|
};
|
|
16293
16412
|
}
|
|
16294
|
-
|
|
16295
16413
|
//#endregion
|
|
16296
16414
|
//#region src/factory.d.ts
|
|
16297
16415
|
declare const defaultPluginRenaming: {
|
|
@@ -16320,51 +16438,39 @@ declare function lincy(options?: OptionsConfig & Omit<TypedFlatConfigItem, 'file
|
|
|
16320
16438
|
type ResolvedOptions<T> = T extends boolean ? never : NonNullable<T>;
|
|
16321
16439
|
declare function resolveSubOptions<K extends keyof OptionsConfig>(options: OptionsConfig, key: K): ResolvedOptions<OptionsConfig[K]>;
|
|
16322
16440
|
declare function getOverrides<K extends keyof OptionsConfig>(options: OptionsConfig, key: K): Partial<Linter.RulesRecord & RuleOptions>;
|
|
16323
|
-
|
|
16324
16441
|
//#endregion
|
|
16325
16442
|
//#region src/configs/comments.d.ts
|
|
16326
16443
|
declare function comments(options?: OptionsOverrides): Promise<TypedFlatConfigItem[]>;
|
|
16327
|
-
|
|
16328
16444
|
//#endregion
|
|
16329
16445
|
//#region src/configs/disables.d.ts
|
|
16330
16446
|
declare function disables(): Promise<TypedFlatConfigItem[]>;
|
|
16331
|
-
|
|
16332
16447
|
//#endregion
|
|
16333
16448
|
//#region src/configs/formatters.d.ts
|
|
16334
16449
|
declare function formatters(options?: OptionsFormatters | true, stylistic?: StylisticConfig): Promise<TypedFlatConfigItem[]>;
|
|
16335
|
-
|
|
16336
16450
|
//#endregion
|
|
16337
16451
|
//#region src/configs/ignores.d.ts
|
|
16338
16452
|
declare function ignores(options?: OptionsIgnores): Promise<TypedFlatConfigItem[]>;
|
|
16339
|
-
|
|
16340
16453
|
//#endregion
|
|
16341
16454
|
//#region src/configs/imports.d.ts
|
|
16342
16455
|
declare function imports(options?: OptionsStylistic & OptionsOverrides): Promise<TypedFlatConfigItem[]>;
|
|
16343
|
-
|
|
16344
16456
|
//#endregion
|
|
16345
16457
|
//#region src/configs/javascript.d.ts
|
|
16346
16458
|
declare function javascript(options?: OptionsIsInEditor & OptionsOverrides): Promise<TypedFlatConfigItem[]>;
|
|
16347
|
-
|
|
16348
16459
|
//#endregion
|
|
16349
16460
|
//#region src/configs/jsdoc.d.ts
|
|
16350
16461
|
declare function jsdoc(options?: OptionsStylistic & OptionsOverrides): Promise<TypedFlatConfigItem[]>;
|
|
16351
|
-
|
|
16352
16462
|
//#endregion
|
|
16353
16463
|
//#region src/configs/jsonc.d.ts
|
|
16354
16464
|
declare function jsonc(options?: OptionsFiles & OptionsStylistic & OptionsOverrides): Promise<TypedFlatConfigItem[]>;
|
|
16355
|
-
|
|
16356
16465
|
//#endregion
|
|
16357
16466
|
//#region src/configs/jsx.d.ts
|
|
16358
16467
|
declare function jsx(): Promise<TypedFlatConfigItem[]>;
|
|
16359
|
-
|
|
16360
16468
|
//#endregion
|
|
16361
16469
|
//#region src/configs/markdown.d.ts
|
|
16362
16470
|
declare function markdown(options?: OptionsFiles & OptionsComponentExts & OptionsOverrides): Promise<TypedFlatConfigItem[]>;
|
|
16363
|
-
|
|
16364
16471
|
//#endregion
|
|
16365
16472
|
//#region src/configs/node.d.ts
|
|
16366
16473
|
declare function node(options?: OptionsOverrides): Promise<TypedFlatConfigItem[]>;
|
|
16367
|
-
|
|
16368
16474
|
//#endregion
|
|
16369
16475
|
//#region src/configs/perfectionist.d.ts
|
|
16370
16476
|
/**
|
|
@@ -16373,19 +16479,15 @@ declare function node(options?: OptionsOverrides): Promise<TypedFlatConfigItem[]
|
|
|
16373
16479
|
* @see https://github.com/azat-io/eslint-plugin-perfectionist
|
|
16374
16480
|
*/
|
|
16375
16481
|
declare function perfectionist(options?: OptionsOverrides): Promise<TypedFlatConfigItem[]>;
|
|
16376
|
-
|
|
16377
16482
|
//#endregion
|
|
16378
16483
|
//#region src/configs/pnpm.d.ts
|
|
16379
16484
|
declare function pnpm(): Promise<TypedFlatConfigItem[]>;
|
|
16380
|
-
|
|
16381
16485
|
//#endregion
|
|
16382
16486
|
//#region src/configs/react.d.ts
|
|
16383
16487
|
declare function react(options?: OptionsTypeScriptParserOptions & OptionsTypeScriptWithTypes & OptionsOverrides & OptionsFiles): Promise<TypedFlatConfigItem[]>;
|
|
16384
|
-
|
|
16385
16488
|
//#endregion
|
|
16386
16489
|
//#region src/configs/regexp.d.ts
|
|
16387
16490
|
declare function regexp(options?: OptionsRegExp & OptionsOverrides): Promise<TypedFlatConfigItem[]>;
|
|
16388
|
-
|
|
16389
16491
|
//#endregion
|
|
16390
16492
|
//#region src/configs/sort.d.ts
|
|
16391
16493
|
/**
|
|
@@ -16400,40 +16502,31 @@ declare function sortPackageJson(): Promise<TypedFlatConfigItem[]>;
|
|
|
16400
16502
|
* Requires `jsonc` config
|
|
16401
16503
|
*/
|
|
16402
16504
|
declare function sortTsconfig(): TypedFlatConfigItem[];
|
|
16403
|
-
|
|
16404
16505
|
//#endregion
|
|
16405
16506
|
//#region src/configs/stylistic.d.ts
|
|
16406
16507
|
declare const StylisticConfigDefaults: StylisticConfig;
|
|
16407
16508
|
declare function stylistic(options?: OptionsStylistic & OptionsOverrides): Promise<TypedFlatConfigItem[]>;
|
|
16408
|
-
|
|
16409
16509
|
//#endregion
|
|
16410
16510
|
//#region src/configs/test.d.ts
|
|
16411
16511
|
declare function test(options?: OptionsFiles & OptionsIsInEditor & OptionsOverrides): Promise<TypedFlatConfigItem[]>;
|
|
16412
|
-
|
|
16413
16512
|
//#endregion
|
|
16414
16513
|
//#region src/configs/toml.d.ts
|
|
16415
16514
|
declare function toml(options?: OptionsOverrides & OptionsStylistic & OptionsFiles): Promise<TypedFlatConfigItem[]>;
|
|
16416
|
-
|
|
16417
16515
|
//#endregion
|
|
16418
16516
|
//#region src/configs/typescript.d.ts
|
|
16419
16517
|
declare function typescript(options?: OptionsFiles & OptionsComponentExts & OptionsOverrides & OptionsTypeScriptWithTypes & OptionsTypeScriptParserOptions & OptionsProjectType): Promise<TypedFlatConfigItem[]>;
|
|
16420
|
-
|
|
16421
16518
|
//#endregion
|
|
16422
16519
|
//#region src/configs/unicorn.d.ts
|
|
16423
16520
|
declare function unicorn(options?: OptionsUnicorn & OptionsOverrides): Promise<TypedFlatConfigItem[]>;
|
|
16424
|
-
|
|
16425
16521
|
//#endregion
|
|
16426
16522
|
//#region src/configs/unocss.d.ts
|
|
16427
16523
|
declare function unocss(options?: OptionsUnoCSS & OptionsOverrides): Promise<TypedFlatConfigItem[]>;
|
|
16428
|
-
|
|
16429
16524
|
//#endregion
|
|
16430
16525
|
//#region src/configs/vue.d.ts
|
|
16431
16526
|
declare function vue(options?: OptionsHasTypeScript & OptionsOverrides & OptionsStylistic & OptionsFiles & OptionsVue): Promise<TypedFlatConfigItem[]>;
|
|
16432
|
-
|
|
16433
16527
|
//#endregion
|
|
16434
16528
|
//#region src/configs/yaml.d.ts
|
|
16435
16529
|
declare function yaml(options?: OptionsOverrides & OptionsStylistic & OptionsFiles): Promise<TypedFlatConfigItem[]>;
|
|
16436
|
-
|
|
16437
16530
|
//#endregion
|
|
16438
16531
|
//#region src/globs.d.ts
|
|
16439
16532
|
declare const GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
|
|
@@ -16464,7 +16557,6 @@ declare const GLOB_MARKDOWN_CODE = "**/*.md/**/*.?([cm])[jt]s?(x)";
|
|
|
16464
16557
|
declare const GLOB_TESTS: string[];
|
|
16465
16558
|
declare const GLOB_ALL_SRC: string[];
|
|
16466
16559
|
declare const GLOB_EXCLUDE: string[];
|
|
16467
|
-
|
|
16468
16560
|
//#endregion
|
|
16469
16561
|
//#region src/utils.d.ts
|
|
16470
16562
|
declare const parserPlain: {
|
|
@@ -16508,6 +16600,5 @@ declare function isPackageInScope(name: string): boolean;
|
|
|
16508
16600
|
declare function ensurePackages(packages: (string | undefined)[]): Promise<void>;
|
|
16509
16601
|
declare function isInEditorEnv(): boolean;
|
|
16510
16602
|
declare function isInGitHooksOrLintStaged(): boolean;
|
|
16511
|
-
|
|
16512
16603
|
//#endregion
|
|
16513
16604
|
export { Awaitable, ConfigNames, GLOB_ALL_SRC, GLOB_CSS, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_SVELTE, GLOB_SVG, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_XML, GLOB_YAML, OptionsComponentExts, OptionsConfig, OptionsFiles, OptionsFormatters, OptionsHasTypeScript, OptionsIgnores, OptionsIsInEditor, OptionsOverrides, OptionsProjectType, OptionsRegExp, OptionsStylistic, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, OptionsTypescript, OptionsUnicorn, OptionsUnoCSS, OptionsVue, ResolvedOptions, Rules, StylisticConfig, StylisticConfigDefaults, TypedFlatConfigItem, combine, comments, lincy as default, defaultPluginRenaming, disables, ensurePackages, formatters, getOverrides, ignores, imports, interopDefault, isInEditorEnv, isInGitHooksOrLintStaged, isPackageInScope, javascript, jsdoc, jsonc, jsx, lincy, markdown, node, parserPlain, perfectionist, pnpm, react, regexp, renamePluginInConfigs, renameRules, resolveSubOptions, sortPackageJson, sortTsconfig, stylistic, test, toArray, toml, typescript, unicorn, unocss, vue, yaml };
|