@isentinel/eslint-config 0.7.0 → 0.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.cjs +46 -45
- package/dist/cli.js +46 -45
- package/dist/index.cjs +57 -99
- package/dist/index.d.cts +334 -136
- package/dist/index.d.ts +334 -136
- package/dist/index.js +56 -98
- package/package.json +46 -45
package/dist/index.d.cts
CHANGED
|
@@ -107,12 +107,12 @@ interface RuleOptions {
|
|
|
107
107
|
'arrow-spacing'?: Linter.RuleEntry<ArrowSpacing>
|
|
108
108
|
/**
|
|
109
109
|
* Enforce arrow function return style
|
|
110
|
-
* @see https://github.com/u3u/eslint-plugin-arrow-return-style/tree/v1.3.
|
|
110
|
+
* @see https://github.com/u3u/eslint-plugin-arrow-return-style/tree/v1.3.1/docs/rules/arrow-return-style.md
|
|
111
111
|
*/
|
|
112
112
|
'arrow-style/arrow-return-style'?: Linter.RuleEntry<ArrowStyleArrowReturnStyle>
|
|
113
113
|
/**
|
|
114
114
|
* Disallow export default anonymous arrow function<br/>_**Automatically fix using the current file name.**_
|
|
115
|
-
* @see https://github.com/u3u/eslint-plugin-arrow-return-style/tree/v1.3.
|
|
115
|
+
* @see https://github.com/u3u/eslint-plugin-arrow-return-style/tree/v1.3.1/docs/rules/no-export-default-arrow.md
|
|
116
116
|
*/
|
|
117
117
|
'arrow-style/no-export-default-arrow'?: Linter.RuleEntry<[]>
|
|
118
118
|
/**
|
|
@@ -411,42 +411,42 @@ interface RuleOptions {
|
|
|
411
411
|
'implicit-arrow-linebreak'?: Linter.RuleEntry<ImplicitArrowLinebreak>
|
|
412
412
|
/**
|
|
413
413
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
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/consistent-type-specifier-style.md
|
|
415
415
|
*/
|
|
416
416
|
'import/consistent-type-specifier-style'?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>
|
|
417
417
|
/**
|
|
418
418
|
* Ensure a default export is present, given a default import.
|
|
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/default.md
|
|
420
420
|
*/
|
|
421
421
|
'import/default'?: Linter.RuleEntry<[]>
|
|
422
422
|
/**
|
|
423
423
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
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/dynamic-import-chunkname.md
|
|
425
425
|
*/
|
|
426
426
|
'import/dynamic-import-chunkname'?: Linter.RuleEntry<ImportDynamicImportChunkname>
|
|
427
427
|
/**
|
|
428
428
|
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
429
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
429
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/export.md
|
|
430
430
|
*/
|
|
431
431
|
'import/export'?: Linter.RuleEntry<[]>
|
|
432
432
|
/**
|
|
433
433
|
* Ensure all exports appear after other statements.
|
|
434
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
434
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/exports-last.md
|
|
435
435
|
*/
|
|
436
436
|
'import/exports-last'?: Linter.RuleEntry<[]>
|
|
437
437
|
/**
|
|
438
438
|
* Ensure consistent use of file extension within the import path.
|
|
439
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
439
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/extensions.md
|
|
440
440
|
*/
|
|
441
441
|
'import/extensions'?: Linter.RuleEntry<ImportExtensions>
|
|
442
442
|
/**
|
|
443
443
|
* Ensure all imports appear before other statements.
|
|
444
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
444
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/first.md
|
|
445
445
|
*/
|
|
446
446
|
'import/first'?: Linter.RuleEntry<ImportFirst>
|
|
447
447
|
/**
|
|
448
448
|
* Prefer named exports to be grouped together in a single export declaration.
|
|
449
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
449
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/group-exports.md
|
|
450
450
|
*/
|
|
451
451
|
'import/group-exports'?: Linter.RuleEntry<[]>
|
|
452
452
|
/**
|
|
@@ -457,182 +457,182 @@ interface RuleOptions {
|
|
|
457
457
|
'import/imports-first'?: Linter.RuleEntry<ImportImportsFirst>
|
|
458
458
|
/**
|
|
459
459
|
* Enforce the maximum number of dependencies a module can have.
|
|
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/max-dependencies.md
|
|
461
461
|
*/
|
|
462
462
|
'import/max-dependencies'?: Linter.RuleEntry<ImportMaxDependencies>
|
|
463
463
|
/**
|
|
464
464
|
* Ensure named imports correspond to a named export in the remote file.
|
|
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/named.md
|
|
466
466
|
*/
|
|
467
467
|
'import/named'?: Linter.RuleEntry<ImportNamed>
|
|
468
468
|
/**
|
|
469
469
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
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/namespace.md
|
|
471
471
|
*/
|
|
472
472
|
'import/namespace'?: Linter.RuleEntry<ImportNamespace>
|
|
473
473
|
/**
|
|
474
474
|
* Enforce a newline after import statements.
|
|
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/newline-after-import.md
|
|
476
476
|
*/
|
|
477
477
|
'import/newline-after-import'?: Linter.RuleEntry<ImportNewlineAfterImport>
|
|
478
478
|
/**
|
|
479
479
|
* Forbid import of modules using absolute paths.
|
|
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-absolute-path.md
|
|
481
481
|
*/
|
|
482
482
|
'import/no-absolute-path'?: Linter.RuleEntry<ImportNoAbsolutePath>
|
|
483
483
|
/**
|
|
484
484
|
* Forbid AMD `require` and `define` calls.
|
|
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-amd.md
|
|
486
486
|
*/
|
|
487
487
|
'import/no-amd'?: Linter.RuleEntry<[]>
|
|
488
488
|
/**
|
|
489
489
|
* Forbid anonymous values as default exports.
|
|
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-anonymous-default-export.md
|
|
491
491
|
*/
|
|
492
492
|
'import/no-anonymous-default-export'?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>
|
|
493
493
|
/**
|
|
494
494
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
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-commonjs.md
|
|
496
496
|
*/
|
|
497
497
|
'import/no-commonjs'?: Linter.RuleEntry<ImportNoCommonjs>
|
|
498
498
|
/**
|
|
499
499
|
* Forbid a module from importing a module with a dependency path back to itself.
|
|
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-cycle.md
|
|
501
501
|
*/
|
|
502
502
|
'import/no-cycle'?: Linter.RuleEntry<ImportNoCycle>
|
|
503
503
|
/**
|
|
504
504
|
* Forbid default exports.
|
|
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-default-export.md
|
|
506
506
|
*/
|
|
507
507
|
'import/no-default-export'?: Linter.RuleEntry<[]>
|
|
508
508
|
/**
|
|
509
509
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
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-deprecated.md
|
|
511
511
|
*/
|
|
512
512
|
'import/no-deprecated'?: Linter.RuleEntry<[]>
|
|
513
513
|
/**
|
|
514
514
|
* Forbid repeated import of the same module in multiple places.
|
|
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-duplicates.md
|
|
516
516
|
*/
|
|
517
517
|
'import/no-duplicates'?: Linter.RuleEntry<ImportNoDuplicates>
|
|
518
518
|
/**
|
|
519
519
|
* Forbid `require()` calls with expressions.
|
|
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-dynamic-require.md
|
|
521
521
|
*/
|
|
522
522
|
'import/no-dynamic-require'?: Linter.RuleEntry<ImportNoDynamicRequire>
|
|
523
523
|
/**
|
|
524
524
|
* Forbid empty named import blocks.
|
|
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-empty-named-blocks.md
|
|
526
526
|
*/
|
|
527
527
|
'import/no-empty-named-blocks'?: Linter.RuleEntry<[]>
|
|
528
528
|
/**
|
|
529
529
|
* Forbid the use of extraneous packages.
|
|
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-extraneous-dependencies.md
|
|
531
531
|
*/
|
|
532
532
|
'import/no-extraneous-dependencies'?: Linter.RuleEntry<ImportNoExtraneousDependencies>
|
|
533
533
|
/**
|
|
534
534
|
* Forbid import statements with CommonJS module.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-import-module-exports.md
|
|
536
536
|
*/
|
|
537
537
|
'import/no-import-module-exports'?: Linter.RuleEntry<ImportNoImportModuleExports>
|
|
538
538
|
/**
|
|
539
539
|
* Forbid importing the submodules of other modules.
|
|
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-internal-modules.md
|
|
541
541
|
*/
|
|
542
542
|
'import/no-internal-modules'?: Linter.RuleEntry<ImportNoInternalModules>
|
|
543
543
|
/**
|
|
544
544
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
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-mutable-exports.md
|
|
546
546
|
*/
|
|
547
547
|
'import/no-mutable-exports'?: Linter.RuleEntry<[]>
|
|
548
548
|
/**
|
|
549
549
|
* Forbid use of exported name as identifier of default export.
|
|
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-named-as-default.md
|
|
551
551
|
*/
|
|
552
552
|
'import/no-named-as-default'?: Linter.RuleEntry<[]>
|
|
553
553
|
/**
|
|
554
554
|
* Forbid use of exported name as property of default export.
|
|
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-named-as-default-member.md
|
|
556
556
|
*/
|
|
557
557
|
'import/no-named-as-default-member'?: Linter.RuleEntry<[]>
|
|
558
558
|
/**
|
|
559
559
|
* Forbid named default exports.
|
|
560
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
560
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-named-default.md
|
|
561
561
|
*/
|
|
562
562
|
'import/no-named-default'?: Linter.RuleEntry<[]>
|
|
563
563
|
/**
|
|
564
564
|
* Forbid named exports.
|
|
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-named-export.md
|
|
566
566
|
*/
|
|
567
567
|
'import/no-named-export'?: Linter.RuleEntry<[]>
|
|
568
568
|
/**
|
|
569
569
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
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-namespace.md
|
|
571
571
|
*/
|
|
572
572
|
'import/no-namespace'?: Linter.RuleEntry<ImportNoNamespace>
|
|
573
573
|
/**
|
|
574
574
|
* Forbid Node.js builtin modules.
|
|
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-nodejs-modules.md
|
|
576
576
|
*/
|
|
577
577
|
'import/no-nodejs-modules'?: Linter.RuleEntry<ImportNoNodejsModules>
|
|
578
578
|
/**
|
|
579
579
|
* Forbid importing packages through relative paths.
|
|
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-relative-packages.md
|
|
581
581
|
*/
|
|
582
582
|
'import/no-relative-packages'?: Linter.RuleEntry<ImportNoRelativePackages>
|
|
583
583
|
/**
|
|
584
584
|
* Forbid importing modules from parent directories.
|
|
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-relative-parent-imports.md
|
|
586
586
|
*/
|
|
587
587
|
'import/no-relative-parent-imports'?: Linter.RuleEntry<ImportNoRelativeParentImports>
|
|
588
588
|
/**
|
|
589
589
|
* Enforce which files can be imported in a given folder.
|
|
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-restricted-paths.md
|
|
591
591
|
*/
|
|
592
592
|
'import/no-restricted-paths'?: Linter.RuleEntry<ImportNoRestrictedPaths>
|
|
593
593
|
/**
|
|
594
594
|
* Forbid a module from importing itself.
|
|
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-self-import.md
|
|
596
596
|
*/
|
|
597
597
|
'import/no-self-import'?: Linter.RuleEntry<[]>
|
|
598
598
|
/**
|
|
599
599
|
* Forbid unassigned imports.
|
|
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/no-unassigned-import.md
|
|
601
601
|
*/
|
|
602
602
|
'import/no-unassigned-import'?: Linter.RuleEntry<ImportNoUnassignedImport>
|
|
603
603
|
/**
|
|
604
604
|
* Ensure imports point to a file/module that can be resolved.
|
|
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/no-unresolved.md
|
|
606
606
|
*/
|
|
607
607
|
'import/no-unresolved'?: Linter.RuleEntry<ImportNoUnresolved>
|
|
608
608
|
/**
|
|
609
609
|
* Forbid modules without exports, or exports without matching import in another 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/no-unused-modules.md
|
|
611
611
|
*/
|
|
612
612
|
'import/no-unused-modules'?: Linter.RuleEntry<ImportNoUnusedModules>
|
|
613
613
|
/**
|
|
614
614
|
* Forbid unnecessary path segments in import and require statements.
|
|
615
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
615
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-useless-path-segments.md
|
|
616
616
|
*/
|
|
617
617
|
'import/no-useless-path-segments'?: Linter.RuleEntry<ImportNoUselessPathSegments>
|
|
618
618
|
/**
|
|
619
619
|
* Forbid webpack loader syntax in imports.
|
|
620
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
620
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-webpack-loader-syntax.md
|
|
621
621
|
*/
|
|
622
622
|
'import/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>
|
|
623
623
|
/**
|
|
624
624
|
* Enforce a convention in module import order.
|
|
625
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
625
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/order.md
|
|
626
626
|
*/
|
|
627
627
|
'import/order'?: Linter.RuleEntry<ImportOrder>
|
|
628
628
|
/**
|
|
629
629
|
* Prefer a default export if module exports a single name or multiple names.
|
|
630
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
630
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/prefer-default-export.md
|
|
631
631
|
*/
|
|
632
632
|
'import/prefer-default-export'?: Linter.RuleEntry<ImportPreferDefaultExport>
|
|
633
633
|
/**
|
|
634
634
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
635
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
635
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/unambiguous.md
|
|
636
636
|
*/
|
|
637
637
|
'import/unambiguous'?: Linter.RuleEntry<[]>
|
|
638
638
|
/**
|
|
@@ -707,6 +707,11 @@ interface RuleOptions {
|
|
|
707
707
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/check-values.md#repos-sticky-header
|
|
708
708
|
*/
|
|
709
709
|
'jsdoc/check-values'?: Linter.RuleEntry<JsdocCheckValues>
|
|
710
|
+
/**
|
|
711
|
+
* Converts non-JSDoc comments preceding or following nodes into JSDoc ones
|
|
712
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/convert-to-jsdoc-comments.md#repos-sticky-header
|
|
713
|
+
*/
|
|
714
|
+
'jsdoc/convert-to-jsdoc-comments'?: Linter.RuleEntry<JsdocConvertToJsdocComments>
|
|
710
715
|
/**
|
|
711
716
|
* Expects specific tags to be empty of any content.
|
|
712
717
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/empty-tags.md#repos-sticky-header
|
|
@@ -881,6 +886,11 @@ interface RuleOptions {
|
|
|
881
886
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-returns-type.md#repos-sticky-header
|
|
882
887
|
*/
|
|
883
888
|
'jsdoc/require-returns-type'?: Linter.RuleEntry<JsdocRequireReturnsType>
|
|
889
|
+
/**
|
|
890
|
+
* Requires template tags for each generic type parameter
|
|
891
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-template.md#repos-sticky-header
|
|
892
|
+
*/
|
|
893
|
+
'jsdoc/require-template'?: Linter.RuleEntry<JsdocRequireTemplate>
|
|
884
894
|
/**
|
|
885
895
|
* Requires that throw statements are documented.
|
|
886
896
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-throws.md#repos-sticky-header
|
|
@@ -1427,6 +1437,16 @@ interface RuleOptions {
|
|
|
1427
1437
|
* @see https://eslint-react.xyz/docs/rules/hooks-extra-ensure-use-memo-has-non-empty-deps
|
|
1428
1438
|
*/
|
|
1429
1439
|
'no-autofix/@eslint-react/hooks-extra/ensure-use-memo-has-non-empty-deps'?: Linter.RuleEntry<[]>
|
|
1440
|
+
/**
|
|
1441
|
+
* disallow direct calls to the 'set' function of 'useState' in 'useEffect'
|
|
1442
|
+
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-direct-set-state-in-use-effect
|
|
1443
|
+
*/
|
|
1444
|
+
'no-autofix/@eslint-react/hooks-extra/no-direct-set-state-in-use-effect'?: Linter.RuleEntry<[]>
|
|
1445
|
+
/**
|
|
1446
|
+
* disallow direct calls to the 'set' function of 'useState' in 'useLayoutEffect'
|
|
1447
|
+
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-direct-set-state-in-use-layout-effect
|
|
1448
|
+
*/
|
|
1449
|
+
'no-autofix/@eslint-react/hooks-extra/no-direct-set-state-in-use-layout-effect'?: Linter.RuleEntry<[]>
|
|
1430
1450
|
/**
|
|
1431
1451
|
* disallow function calls in 'useState' that aren't wrapped in an initializer function
|
|
1432
1452
|
* @see https://eslint-react.xyz/docs/rules/hooks-extra-prefer-use-state-lazy-initialization
|
|
@@ -3308,6 +3328,11 @@ interface RuleOptions {
|
|
|
3308
3328
|
* @see https://typescript-eslint.io/rules/no-unnecessary-condition
|
|
3309
3329
|
*/
|
|
3310
3330
|
'no-autofix/@typescript-eslint/no-unnecessary-condition'?: Linter.RuleEntry<NoAutofixTypescriptEslintNoUnnecessaryCondition>
|
|
3331
|
+
/**
|
|
3332
|
+
* Disallow unnecessary assignment of constructor property parameter
|
|
3333
|
+
* @see https://typescript-eslint.io/rules/no-unnecessary-parameter-property-assignment
|
|
3334
|
+
*/
|
|
3335
|
+
'no-autofix/@typescript-eslint/no-unnecessary-parameter-property-assignment'?: Linter.RuleEntry<[]>
|
|
3311
3336
|
/**
|
|
3312
3337
|
* Disallow unnecessary namespace qualifiers
|
|
3313
3338
|
* @see https://typescript-eslint.io/rules/no-unnecessary-qualifier
|
|
@@ -3333,6 +3358,11 @@ interface RuleOptions {
|
|
|
3333
3358
|
* @see https://typescript-eslint.io/rules/no-unnecessary-type-constraint
|
|
3334
3359
|
*/
|
|
3335
3360
|
'no-autofix/@typescript-eslint/no-unnecessary-type-constraint'?: Linter.RuleEntry<[]>
|
|
3361
|
+
/**
|
|
3362
|
+
* Disallow type parameters that only appear once
|
|
3363
|
+
* @see https://typescript-eslint.io/rules/no-unnecessary-type-parameters
|
|
3364
|
+
*/
|
|
3365
|
+
'no-autofix/@typescript-eslint/no-unnecessary-type-parameters'?: Linter.RuleEntry<[]>
|
|
3336
3366
|
/**
|
|
3337
3367
|
* Disallow calling a function with a value with type `any`
|
|
3338
3368
|
* @see https://typescript-eslint.io/rules/no-unsafe-argument
|
|
@@ -3725,12 +3755,12 @@ interface RuleOptions {
|
|
|
3725
3755
|
'no-autofix/arrow-parens'?: Linter.RuleEntry<NoAutofixArrowParens>
|
|
3726
3756
|
/**
|
|
3727
3757
|
* Enforce arrow function return style
|
|
3728
|
-
* @see https://github.com/u3u/eslint-plugin-arrow-return-style/tree/v1.3.
|
|
3758
|
+
* @see https://github.com/u3u/eslint-plugin-arrow-return-style/tree/v1.3.1/docs/rules/arrow-return-style.md
|
|
3729
3759
|
*/
|
|
3730
3760
|
'no-autofix/arrow-return-style/arrow-return-style'?: Linter.RuleEntry<NoAutofixArrowReturnStyleArrowReturnStyle>
|
|
3731
3761
|
/**
|
|
3732
3762
|
* Disallow export default anonymous arrow function<br/>_**Automatically fix using the current file name.**_
|
|
3733
|
-
* @see https://github.com/u3u/eslint-plugin-arrow-return-style/tree/v1.3.
|
|
3763
|
+
* @see https://github.com/u3u/eslint-plugin-arrow-return-style/tree/v1.3.1/docs/rules/no-export-default-arrow.md
|
|
3734
3764
|
*/
|
|
3735
3765
|
'no-autofix/arrow-return-style/no-export-default-arrow'?: Linter.RuleEntry<[]>
|
|
3736
3766
|
/**
|
|
@@ -4545,42 +4575,42 @@ interface RuleOptions {
|
|
|
4545
4575
|
'no-autofix/implicit-arrow-linebreak'?: Linter.RuleEntry<NoAutofixImplicitArrowLinebreak>
|
|
4546
4576
|
/**
|
|
4547
4577
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
4548
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4578
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/consistent-type-specifier-style.md
|
|
4549
4579
|
*/
|
|
4550
4580
|
'no-autofix/import-x/consistent-type-specifier-style'?: Linter.RuleEntry<NoAutofixImportXConsistentTypeSpecifierStyle>
|
|
4551
4581
|
/**
|
|
4552
4582
|
* Ensure a default export is present, given a default import.
|
|
4553
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4583
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/default.md
|
|
4554
4584
|
*/
|
|
4555
4585
|
'no-autofix/import-x/default'?: Linter.RuleEntry<[]>
|
|
4556
4586
|
/**
|
|
4557
4587
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
4558
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4588
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/dynamic-import-chunkname.md
|
|
4559
4589
|
*/
|
|
4560
4590
|
'no-autofix/import-x/dynamic-import-chunkname'?: Linter.RuleEntry<NoAutofixImportXDynamicImportChunkname>
|
|
4561
4591
|
/**
|
|
4562
4592
|
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
4563
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4593
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/export.md
|
|
4564
4594
|
*/
|
|
4565
4595
|
'no-autofix/import-x/export'?: Linter.RuleEntry<[]>
|
|
4566
4596
|
/**
|
|
4567
4597
|
* Ensure all exports appear after other statements.
|
|
4568
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4598
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/exports-last.md
|
|
4569
4599
|
*/
|
|
4570
4600
|
'no-autofix/import-x/exports-last'?: Linter.RuleEntry<[]>
|
|
4571
4601
|
/**
|
|
4572
4602
|
* Ensure consistent use of file extension within the import path.
|
|
4573
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4603
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/extensions.md
|
|
4574
4604
|
*/
|
|
4575
4605
|
'no-autofix/import-x/extensions'?: Linter.RuleEntry<NoAutofixImportXExtensions>
|
|
4576
4606
|
/**
|
|
4577
4607
|
* Ensure all imports appear before other statements.
|
|
4578
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4608
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/first.md
|
|
4579
4609
|
*/
|
|
4580
4610
|
'no-autofix/import-x/first'?: Linter.RuleEntry<NoAutofixImportXFirst>
|
|
4581
4611
|
/**
|
|
4582
4612
|
* Prefer named exports to be grouped together in a single export declaration.
|
|
4583
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4613
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/group-exports.md
|
|
4584
4614
|
*/
|
|
4585
4615
|
'no-autofix/import-x/group-exports'?: Linter.RuleEntry<[]>
|
|
4586
4616
|
/**
|
|
@@ -4591,182 +4621,182 @@ interface RuleOptions {
|
|
|
4591
4621
|
'no-autofix/import-x/imports-first'?: Linter.RuleEntry<NoAutofixImportXImportsFirst>
|
|
4592
4622
|
/**
|
|
4593
4623
|
* Enforce the maximum number of dependencies a module can have.
|
|
4594
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4624
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/max-dependencies.md
|
|
4595
4625
|
*/
|
|
4596
4626
|
'no-autofix/import-x/max-dependencies'?: Linter.RuleEntry<NoAutofixImportXMaxDependencies>
|
|
4597
4627
|
/**
|
|
4598
4628
|
* Ensure named imports correspond to a named export in the remote file.
|
|
4599
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4629
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/named.md
|
|
4600
4630
|
*/
|
|
4601
4631
|
'no-autofix/import-x/named'?: Linter.RuleEntry<NoAutofixImportXNamed>
|
|
4602
4632
|
/**
|
|
4603
4633
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
4604
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4634
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/namespace.md
|
|
4605
4635
|
*/
|
|
4606
4636
|
'no-autofix/import-x/namespace'?: Linter.RuleEntry<NoAutofixImportXNamespace>
|
|
4607
4637
|
/**
|
|
4608
4638
|
* Enforce a newline after import statements.
|
|
4609
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4639
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/newline-after-import.md
|
|
4610
4640
|
*/
|
|
4611
4641
|
'no-autofix/import-x/newline-after-import'?: Linter.RuleEntry<NoAutofixImportXNewlineAfterImport>
|
|
4612
4642
|
/**
|
|
4613
4643
|
* Forbid import of modules using absolute paths.
|
|
4614
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4644
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-absolute-path.md
|
|
4615
4645
|
*/
|
|
4616
4646
|
'no-autofix/import-x/no-absolute-path'?: Linter.RuleEntry<NoAutofixImportXNoAbsolutePath>
|
|
4617
4647
|
/**
|
|
4618
4648
|
* Forbid AMD `require` and `define` calls.
|
|
4619
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4649
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-amd.md
|
|
4620
4650
|
*/
|
|
4621
4651
|
'no-autofix/import-x/no-amd'?: Linter.RuleEntry<[]>
|
|
4622
4652
|
/**
|
|
4623
4653
|
* Forbid anonymous values as default exports.
|
|
4624
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4654
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-anonymous-default-export.md
|
|
4625
4655
|
*/
|
|
4626
4656
|
'no-autofix/import-x/no-anonymous-default-export'?: Linter.RuleEntry<NoAutofixImportXNoAnonymousDefaultExport>
|
|
4627
4657
|
/**
|
|
4628
4658
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
4629
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4659
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-commonjs.md
|
|
4630
4660
|
*/
|
|
4631
4661
|
'no-autofix/import-x/no-commonjs'?: Linter.RuleEntry<NoAutofixImportXNoCommonjs>
|
|
4632
4662
|
/**
|
|
4633
4663
|
* Forbid a module from importing a module with a dependency path back to itself.
|
|
4634
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4664
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-cycle.md
|
|
4635
4665
|
*/
|
|
4636
4666
|
'no-autofix/import-x/no-cycle'?: Linter.RuleEntry<NoAutofixImportXNoCycle>
|
|
4637
4667
|
/**
|
|
4638
4668
|
* Forbid default exports.
|
|
4639
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4669
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-default-export.md
|
|
4640
4670
|
*/
|
|
4641
4671
|
'no-autofix/import-x/no-default-export'?: Linter.RuleEntry<[]>
|
|
4642
4672
|
/**
|
|
4643
4673
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
4644
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4674
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-deprecated.md
|
|
4645
4675
|
*/
|
|
4646
4676
|
'no-autofix/import-x/no-deprecated'?: Linter.RuleEntry<[]>
|
|
4647
4677
|
/**
|
|
4648
4678
|
* Forbid repeated import of the same module in multiple places.
|
|
4649
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4679
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-duplicates.md
|
|
4650
4680
|
*/
|
|
4651
4681
|
'no-autofix/import-x/no-duplicates'?: Linter.RuleEntry<NoAutofixImportXNoDuplicates>
|
|
4652
4682
|
/**
|
|
4653
4683
|
* Forbid `require()` calls with expressions.
|
|
4654
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4684
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-dynamic-require.md
|
|
4655
4685
|
*/
|
|
4656
4686
|
'no-autofix/import-x/no-dynamic-require'?: Linter.RuleEntry<NoAutofixImportXNoDynamicRequire>
|
|
4657
4687
|
/**
|
|
4658
4688
|
* Forbid empty named import blocks.
|
|
4659
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4689
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-empty-named-blocks.md
|
|
4660
4690
|
*/
|
|
4661
4691
|
'no-autofix/import-x/no-empty-named-blocks'?: Linter.RuleEntry<[]>
|
|
4662
4692
|
/**
|
|
4663
4693
|
* Forbid the use of extraneous packages.
|
|
4664
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4694
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-extraneous-dependencies.md
|
|
4665
4695
|
*/
|
|
4666
4696
|
'no-autofix/import-x/no-extraneous-dependencies'?: Linter.RuleEntry<NoAutofixImportXNoExtraneousDependencies>
|
|
4667
4697
|
/**
|
|
4668
4698
|
* Forbid import statements with CommonJS module.exports.
|
|
4669
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4699
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-import-module-exports.md
|
|
4670
4700
|
*/
|
|
4671
4701
|
'no-autofix/import-x/no-import-module-exports'?: Linter.RuleEntry<NoAutofixImportXNoImportModuleExports>
|
|
4672
4702
|
/**
|
|
4673
4703
|
* Forbid importing the submodules of other modules.
|
|
4674
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4704
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-internal-modules.md
|
|
4675
4705
|
*/
|
|
4676
4706
|
'no-autofix/import-x/no-internal-modules'?: Linter.RuleEntry<NoAutofixImportXNoInternalModules>
|
|
4677
4707
|
/**
|
|
4678
4708
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
4679
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4709
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-mutable-exports.md
|
|
4680
4710
|
*/
|
|
4681
4711
|
'no-autofix/import-x/no-mutable-exports'?: Linter.RuleEntry<[]>
|
|
4682
4712
|
/**
|
|
4683
4713
|
* Forbid use of exported name as identifier of default export.
|
|
4684
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4714
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-named-as-default.md
|
|
4685
4715
|
*/
|
|
4686
4716
|
'no-autofix/import-x/no-named-as-default'?: Linter.RuleEntry<[]>
|
|
4687
4717
|
/**
|
|
4688
4718
|
* Forbid use of exported name as property of default export.
|
|
4689
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4719
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-named-as-default-member.md
|
|
4690
4720
|
*/
|
|
4691
4721
|
'no-autofix/import-x/no-named-as-default-member'?: Linter.RuleEntry<[]>
|
|
4692
4722
|
/**
|
|
4693
4723
|
* Forbid named default exports.
|
|
4694
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4724
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-named-default.md
|
|
4695
4725
|
*/
|
|
4696
4726
|
'no-autofix/import-x/no-named-default'?: Linter.RuleEntry<[]>
|
|
4697
4727
|
/**
|
|
4698
4728
|
* Forbid named exports.
|
|
4699
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4729
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-named-export.md
|
|
4700
4730
|
*/
|
|
4701
4731
|
'no-autofix/import-x/no-named-export'?: Linter.RuleEntry<[]>
|
|
4702
4732
|
/**
|
|
4703
4733
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
4704
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4734
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-namespace.md
|
|
4705
4735
|
*/
|
|
4706
4736
|
'no-autofix/import-x/no-namespace'?: Linter.RuleEntry<NoAutofixImportXNoNamespace>
|
|
4707
4737
|
/**
|
|
4708
4738
|
* Forbid Node.js builtin modules.
|
|
4709
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4739
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-nodejs-modules.md
|
|
4710
4740
|
*/
|
|
4711
4741
|
'no-autofix/import-x/no-nodejs-modules'?: Linter.RuleEntry<NoAutofixImportXNoNodejsModules>
|
|
4712
4742
|
/**
|
|
4713
4743
|
* Forbid importing packages through relative paths.
|
|
4714
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4744
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-relative-packages.md
|
|
4715
4745
|
*/
|
|
4716
4746
|
'no-autofix/import-x/no-relative-packages'?: Linter.RuleEntry<NoAutofixImportXNoRelativePackages>
|
|
4717
4747
|
/**
|
|
4718
4748
|
* Forbid importing modules from parent directories.
|
|
4719
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4749
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-relative-parent-imports.md
|
|
4720
4750
|
*/
|
|
4721
4751
|
'no-autofix/import-x/no-relative-parent-imports'?: Linter.RuleEntry<NoAutofixImportXNoRelativeParentImports>
|
|
4722
4752
|
/**
|
|
4723
4753
|
* Enforce which files can be imported in a given folder.
|
|
4724
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4754
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-restricted-paths.md
|
|
4725
4755
|
*/
|
|
4726
4756
|
'no-autofix/import-x/no-restricted-paths'?: Linter.RuleEntry<NoAutofixImportXNoRestrictedPaths>
|
|
4727
4757
|
/**
|
|
4728
4758
|
* Forbid a module from importing itself.
|
|
4729
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4759
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-self-import.md
|
|
4730
4760
|
*/
|
|
4731
4761
|
'no-autofix/import-x/no-self-import'?: Linter.RuleEntry<[]>
|
|
4732
4762
|
/**
|
|
4733
4763
|
* Forbid unassigned imports.
|
|
4734
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4764
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-unassigned-import.md
|
|
4735
4765
|
*/
|
|
4736
4766
|
'no-autofix/import-x/no-unassigned-import'?: Linter.RuleEntry<NoAutofixImportXNoUnassignedImport>
|
|
4737
4767
|
/**
|
|
4738
4768
|
* Ensure imports point to a file/module that can be resolved.
|
|
4739
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4769
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-unresolved.md
|
|
4740
4770
|
*/
|
|
4741
4771
|
'no-autofix/import-x/no-unresolved'?: Linter.RuleEntry<NoAutofixImportXNoUnresolved>
|
|
4742
4772
|
/**
|
|
4743
4773
|
* Forbid modules without exports, or exports without matching import in another module.
|
|
4744
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4774
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-unused-modules.md
|
|
4745
4775
|
*/
|
|
4746
4776
|
'no-autofix/import-x/no-unused-modules'?: Linter.RuleEntry<NoAutofixImportXNoUnusedModules>
|
|
4747
4777
|
/**
|
|
4748
4778
|
* Forbid unnecessary path segments in import and require statements.
|
|
4749
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4779
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-useless-path-segments.md
|
|
4750
4780
|
*/
|
|
4751
4781
|
'no-autofix/import-x/no-useless-path-segments'?: Linter.RuleEntry<NoAutofixImportXNoUselessPathSegments>
|
|
4752
4782
|
/**
|
|
4753
4783
|
* Forbid webpack loader syntax in imports.
|
|
4754
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4784
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-webpack-loader-syntax.md
|
|
4755
4785
|
*/
|
|
4756
4786
|
'no-autofix/import-x/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>
|
|
4757
4787
|
/**
|
|
4758
4788
|
* Enforce a convention in module import order.
|
|
4759
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4789
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/order.md
|
|
4760
4790
|
*/
|
|
4761
4791
|
'no-autofix/import-x/order'?: Linter.RuleEntry<NoAutofixImportXOrder>
|
|
4762
4792
|
/**
|
|
4763
4793
|
* Prefer a default export if module exports a single name or multiple names.
|
|
4764
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4794
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/prefer-default-export.md
|
|
4765
4795
|
*/
|
|
4766
4796
|
'no-autofix/import-x/prefer-default-export'?: Linter.RuleEntry<NoAutofixImportXPreferDefaultExport>
|
|
4767
4797
|
/**
|
|
4768
4798
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
4769
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4799
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/unambiguous.md
|
|
4770
4800
|
*/
|
|
4771
4801
|
'no-autofix/import-x/unambiguous'?: Linter.RuleEntry<[]>
|
|
4772
4802
|
/**
|
|
@@ -5344,6 +5374,11 @@ interface RuleOptions {
|
|
|
5344
5374
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/check-values.md#repos-sticky-header
|
|
5345
5375
|
*/
|
|
5346
5376
|
'no-autofix/jsdoc/check-values'?: Linter.RuleEntry<NoAutofixJsdocCheckValues>
|
|
5377
|
+
/**
|
|
5378
|
+
* Converts non-JSDoc comments preceding or following nodes into JSDoc ones
|
|
5379
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/convert-to-jsdoc-comments.md#repos-sticky-header
|
|
5380
|
+
*/
|
|
5381
|
+
'no-autofix/jsdoc/convert-to-jsdoc-comments'?: Linter.RuleEntry<NoAutofixJsdocConvertToJsdocComments>
|
|
5347
5382
|
/**
|
|
5348
5383
|
* Expects specific tags to be empty of any content.
|
|
5349
5384
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/empty-tags.md#repos-sticky-header
|
|
@@ -5518,6 +5553,11 @@ interface RuleOptions {
|
|
|
5518
5553
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-returns-type.md#repos-sticky-header
|
|
5519
5554
|
*/
|
|
5520
5555
|
'no-autofix/jsdoc/require-returns-type'?: Linter.RuleEntry<NoAutofixJsdocRequireReturnsType>
|
|
5556
|
+
/**
|
|
5557
|
+
* Requires template tags for each generic type parameter
|
|
5558
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-template.md#repos-sticky-header
|
|
5559
|
+
*/
|
|
5560
|
+
'no-autofix/jsdoc/require-template'?: Linter.RuleEntry<NoAutofixJsdocRequireTemplate>
|
|
5521
5561
|
/**
|
|
5522
5562
|
* Requires that throw statements are documented.
|
|
5523
5563
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-throws.md#repos-sticky-header
|
|
@@ -7160,6 +7200,42 @@ interface RuleOptions {
|
|
|
7160
7200
|
* @deprecated
|
|
7161
7201
|
*/
|
|
7162
7202
|
'no-autofix/operator-linebreak'?: Linter.RuleEntry<NoAutofixOperatorLinebreak>
|
|
7203
|
+
/**
|
|
7204
|
+
* Package properties must be declared in standard order
|
|
7205
|
+
*/
|
|
7206
|
+
'no-autofix/package-json/order-properties'?: Linter.RuleEntry<NoAutofixPackageJsonOrderProperties>
|
|
7207
|
+
/**
|
|
7208
|
+
* Enforce either object or shorthand declaration for repository.
|
|
7209
|
+
*/
|
|
7210
|
+
'no-autofix/package-json/repository-shorthand'?: Linter.RuleEntry<NoAutofixPackageJsonRepositoryShorthand>
|
|
7211
|
+
/**
|
|
7212
|
+
* Dependencies, scripts, and configuration values must be declared in alphabetical order.
|
|
7213
|
+
*/
|
|
7214
|
+
'no-autofix/package-json/sort-collections'?: Linter.RuleEntry<NoAutofixPackageJsonSortCollections>
|
|
7215
|
+
/**
|
|
7216
|
+
* Enforce that if repository directory is specified, it matches the path to the package.json file
|
|
7217
|
+
*/
|
|
7218
|
+
'no-autofix/package-json/unique-dependencies'?: Linter.RuleEntry<[]>
|
|
7219
|
+
/**
|
|
7220
|
+
* Checks existence of local dependencies in the package.json
|
|
7221
|
+
*/
|
|
7222
|
+
'no-autofix/package-json/valid-local-dependency'?: Linter.RuleEntry<[]>
|
|
7223
|
+
/**
|
|
7224
|
+
* Enforce that package names are valid npm package names
|
|
7225
|
+
*/
|
|
7226
|
+
'no-autofix/package-json/valid-name'?: Linter.RuleEntry<[]>
|
|
7227
|
+
/**
|
|
7228
|
+
* Enforce that package.json has all properties required by the npm spec
|
|
7229
|
+
*/
|
|
7230
|
+
'no-autofix/package-json/valid-package-def'?: Linter.RuleEntry<[]>
|
|
7231
|
+
/**
|
|
7232
|
+
* Enforce that if repository directory is specified, it matches the path to the package.json file
|
|
7233
|
+
*/
|
|
7234
|
+
'no-autofix/package-json/valid-repository-directory'?: Linter.RuleEntry<[]>
|
|
7235
|
+
/**
|
|
7236
|
+
* Enforce that package versions are valid semver specifiers
|
|
7237
|
+
*/
|
|
7238
|
+
'no-autofix/package-json/valid-version'?: Linter.RuleEntry<[]>
|
|
7163
7239
|
/**
|
|
7164
7240
|
* Require or disallow padding within blocks
|
|
7165
7241
|
* @see https://eslint.org/docs/latest/rules/padded-blocks
|
|
@@ -7509,6 +7585,16 @@ interface RuleOptions {
|
|
|
7509
7585
|
* @see https://eslint-react.xyz/docs/rules/hooks-extra-ensure-use-memo-has-non-empty-deps
|
|
7510
7586
|
*/
|
|
7511
7587
|
'no-autofix/react-hooks-extra/ensure-use-memo-has-non-empty-deps'?: Linter.RuleEntry<[]>
|
|
7588
|
+
/**
|
|
7589
|
+
* disallow direct calls to the 'set' function of 'useState' in 'useEffect'
|
|
7590
|
+
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-direct-set-state-in-use-effect
|
|
7591
|
+
*/
|
|
7592
|
+
'no-autofix/react-hooks-extra/no-direct-set-state-in-use-effect'?: Linter.RuleEntry<[]>
|
|
7593
|
+
/**
|
|
7594
|
+
* disallow direct calls to the 'set' function of 'useState' in 'useLayoutEffect'
|
|
7595
|
+
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-direct-set-state-in-use-layout-effect
|
|
7596
|
+
*/
|
|
7597
|
+
'no-autofix/react-hooks-extra/no-direct-set-state-in-use-layout-effect'?: Linter.RuleEntry<[]>
|
|
7512
7598
|
/**
|
|
7513
7599
|
* disallow function calls in 'useState' that aren't wrapped in an initializer function
|
|
7514
7600
|
* @see https://eslint-react.xyz/docs/rules/hooks-extra-prefer-use-state-lazy-initialization
|
|
@@ -10377,6 +10463,42 @@ interface RuleOptions {
|
|
|
10377
10463
|
* @deprecated
|
|
10378
10464
|
*/
|
|
10379
10465
|
'operator-linebreak'?: Linter.RuleEntry<OperatorLinebreak>
|
|
10466
|
+
/**
|
|
10467
|
+
* Package properties must be declared in standard order
|
|
10468
|
+
*/
|
|
10469
|
+
'package-json/order-properties'?: Linter.RuleEntry<PackageJsonOrderProperties>
|
|
10470
|
+
/**
|
|
10471
|
+
* Enforce either object or shorthand declaration for repository.
|
|
10472
|
+
*/
|
|
10473
|
+
'package-json/repository-shorthand'?: Linter.RuleEntry<PackageJsonRepositoryShorthand>
|
|
10474
|
+
/**
|
|
10475
|
+
* Dependencies, scripts, and configuration values must be declared in alphabetical order.
|
|
10476
|
+
*/
|
|
10477
|
+
'package-json/sort-collections'?: Linter.RuleEntry<PackageJsonSortCollections>
|
|
10478
|
+
/**
|
|
10479
|
+
* Enforce that if repository directory is specified, it matches the path to the package.json file
|
|
10480
|
+
*/
|
|
10481
|
+
'package-json/unique-dependencies'?: Linter.RuleEntry<[]>
|
|
10482
|
+
/**
|
|
10483
|
+
* Checks existence of local dependencies in the package.json
|
|
10484
|
+
*/
|
|
10485
|
+
'package-json/valid-local-dependency'?: Linter.RuleEntry<[]>
|
|
10486
|
+
/**
|
|
10487
|
+
* Enforce that package names are valid npm package names
|
|
10488
|
+
*/
|
|
10489
|
+
'package-json/valid-name'?: Linter.RuleEntry<[]>
|
|
10490
|
+
/**
|
|
10491
|
+
* Enforce that package.json has all properties required by the npm spec
|
|
10492
|
+
*/
|
|
10493
|
+
'package-json/valid-package-def'?: Linter.RuleEntry<[]>
|
|
10494
|
+
/**
|
|
10495
|
+
* Enforce that if repository directory is specified, it matches the path to the package.json file
|
|
10496
|
+
*/
|
|
10497
|
+
'package-json/valid-repository-directory'?: Linter.RuleEntry<[]>
|
|
10498
|
+
/**
|
|
10499
|
+
* Enforce that package versions are valid semver specifiers
|
|
10500
|
+
*/
|
|
10501
|
+
'package-json/valid-version'?: Linter.RuleEntry<[]>
|
|
10380
10502
|
/**
|
|
10381
10503
|
* Require or disallow padding within blocks
|
|
10382
10504
|
* @see https://eslint.org/docs/latest/rules/padded-blocks
|
|
@@ -10652,6 +10774,16 @@ interface RuleOptions {
|
|
|
10652
10774
|
* @see https://eslint-react.xyz/docs/rules/hooks-extra-ensure-use-memo-has-non-empty-deps
|
|
10653
10775
|
*/
|
|
10654
10776
|
'react-hooks-extra/ensure-use-memo-has-non-empty-deps'?: Linter.RuleEntry<[]>
|
|
10777
|
+
/**
|
|
10778
|
+
* disallow direct calls to the 'set' function of 'useState' in 'useEffect'
|
|
10779
|
+
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-direct-set-state-in-use-effect
|
|
10780
|
+
*/
|
|
10781
|
+
'react-hooks-extra/no-direct-set-state-in-use-effect'?: Linter.RuleEntry<[]>
|
|
10782
|
+
/**
|
|
10783
|
+
* disallow direct calls to the 'set' function of 'useState' in 'useLayoutEffect'
|
|
10784
|
+
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-direct-set-state-in-use-layout-effect
|
|
10785
|
+
*/
|
|
10786
|
+
'react-hooks-extra/no-direct-set-state-in-use-layout-effect'?: Linter.RuleEntry<[]>
|
|
10655
10787
|
/**
|
|
10656
10788
|
* disallow function calls in 'useState' that aren't wrapped in an initializer function
|
|
10657
10789
|
* @see https://eslint-react.xyz/docs/rules/hooks-extra-prefer-use-state-lazy-initialization
|
|
@@ -12325,6 +12457,11 @@ interface RuleOptions {
|
|
|
12325
12457
|
* @see https://typescript-eslint.io/rules/no-unnecessary-condition
|
|
12326
12458
|
*/
|
|
12327
12459
|
'ts/no-unnecessary-condition'?: Linter.RuleEntry<TsNoUnnecessaryCondition>
|
|
12460
|
+
/**
|
|
12461
|
+
* Disallow unnecessary assignment of constructor property parameter
|
|
12462
|
+
* @see https://typescript-eslint.io/rules/no-unnecessary-parameter-property-assignment
|
|
12463
|
+
*/
|
|
12464
|
+
'ts/no-unnecessary-parameter-property-assignment'?: Linter.RuleEntry<[]>
|
|
12328
12465
|
/**
|
|
12329
12466
|
* Disallow unnecessary namespace qualifiers
|
|
12330
12467
|
* @see https://typescript-eslint.io/rules/no-unnecessary-qualifier
|
|
@@ -12350,6 +12487,11 @@ interface RuleOptions {
|
|
|
12350
12487
|
* @see https://typescript-eslint.io/rules/no-unnecessary-type-constraint
|
|
12351
12488
|
*/
|
|
12352
12489
|
'ts/no-unnecessary-type-constraint'?: Linter.RuleEntry<[]>
|
|
12490
|
+
/**
|
|
12491
|
+
* Disallow type parameters that only appear once
|
|
12492
|
+
* @see https://typescript-eslint.io/rules/no-unnecessary-type-parameters
|
|
12493
|
+
*/
|
|
12494
|
+
'ts/no-unnecessary-type-parameters'?: Linter.RuleEntry<[]>
|
|
12353
12495
|
/**
|
|
12354
12496
|
* Disallow calling a function with a value with type `any`
|
|
12355
12497
|
* @see https://typescript-eslint.io/rules/no-unsafe-argument
|
|
@@ -14278,6 +14420,25 @@ type JsdocCheckValues = []|[{
|
|
|
14278
14420
|
licensePattern?: string
|
|
14279
14421
|
numericOnlyVariation?: boolean
|
|
14280
14422
|
}]
|
|
14423
|
+
// ----- jsdoc/convert-to-jsdoc-comments -----
|
|
14424
|
+
type JsdocConvertToJsdocComments = []|[{
|
|
14425
|
+
allowedPrefixes?: string[]
|
|
14426
|
+
contexts?: (string | {
|
|
14427
|
+
context?: string
|
|
14428
|
+
inlineCommentBlock?: boolean
|
|
14429
|
+
})[]
|
|
14430
|
+
contextsAfter?: (string | {
|
|
14431
|
+
context?: string
|
|
14432
|
+
inlineCommentBlock?: boolean
|
|
14433
|
+
})[]
|
|
14434
|
+
contextsBeforeAndAfter?: (string | {
|
|
14435
|
+
context?: string
|
|
14436
|
+
inlineCommentBlock?: boolean
|
|
14437
|
+
})[]
|
|
14438
|
+
enableFixer?: boolean
|
|
14439
|
+
enforceJsdocLineStyle?: ("multi" | "single")
|
|
14440
|
+
lineOrBlockStyle?: ("block" | "line" | "both")
|
|
14441
|
+
}]
|
|
14281
14442
|
// ----- jsdoc/empty-tags -----
|
|
14282
14443
|
type JsdocEmptyTags = []|[{
|
|
14283
14444
|
tags?: string[]
|
|
@@ -14565,6 +14726,10 @@ type JsdocRequireReturnsType = []|[{
|
|
|
14565
14726
|
context?: string
|
|
14566
14727
|
})[]
|
|
14567
14728
|
}]
|
|
14729
|
+
// ----- jsdoc/require-template -----
|
|
14730
|
+
type JsdocRequireTemplate = []|[{
|
|
14731
|
+
requireSeparateTemplates?: boolean
|
|
14732
|
+
}]
|
|
14568
14733
|
// ----- jsdoc/require-throws -----
|
|
14569
14734
|
type JsdocRequireThrows = []|[{
|
|
14570
14735
|
contexts?: (string | {
|
|
@@ -19204,10 +19369,6 @@ type NoAutofixTypescriptEslintNoExtraneousClass = []|[{
|
|
|
19204
19369
|
}]
|
|
19205
19370
|
// ----- no-autofix/@typescript-eslint/no-floating-promises -----
|
|
19206
19371
|
type NoAutofixTypescriptEslintNoFloatingPromises = []|[{
|
|
19207
|
-
|
|
19208
|
-
ignoreVoid?: boolean
|
|
19209
|
-
|
|
19210
|
-
ignoreIIFE?: boolean
|
|
19211
19372
|
allowForKnownSafePromises?: (string | {
|
|
19212
19373
|
from: "file"
|
|
19213
19374
|
name: (string | [string, ...(string)[]])
|
|
@@ -19220,6 +19381,12 @@ type NoAutofixTypescriptEslintNoFloatingPromises = []|[{
|
|
|
19220
19381
|
name: (string | [string, ...(string)[]])
|
|
19221
19382
|
package: string
|
|
19222
19383
|
})[]
|
|
19384
|
+
|
|
19385
|
+
checkThenables?: boolean
|
|
19386
|
+
|
|
19387
|
+
ignoreVoid?: boolean
|
|
19388
|
+
|
|
19389
|
+
ignoreIIFE?: boolean
|
|
19223
19390
|
}]
|
|
19224
19391
|
// ----- no-autofix/@typescript-eslint/no-inferrable-types -----
|
|
19225
19392
|
type NoAutofixTypescriptEslintNoInferrableTypes = []|[{
|
|
@@ -19304,7 +19471,8 @@ type NoAutofixTypescriptEslintNoRestrictedImports = ((string | {
|
|
|
19304
19471
|
|
|
19305
19472
|
allowImportNames?: [string, ...(string)[]]
|
|
19306
19473
|
|
|
19307
|
-
group
|
|
19474
|
+
group?: [string, ...(string)[]]
|
|
19475
|
+
regex?: string
|
|
19308
19476
|
importNamePattern?: string
|
|
19309
19477
|
allowImportNamePattern?: string
|
|
19310
19478
|
message?: string
|
|
@@ -20642,6 +20810,25 @@ type NoAutofixJsdocCheckValues = []|[{
|
|
|
20642
20810
|
licensePattern?: string
|
|
20643
20811
|
numericOnlyVariation?: boolean
|
|
20644
20812
|
}]
|
|
20813
|
+
// ----- no-autofix/jsdoc/convert-to-jsdoc-comments -----
|
|
20814
|
+
type NoAutofixJsdocConvertToJsdocComments = []|[{
|
|
20815
|
+
allowedPrefixes?: string[]
|
|
20816
|
+
contexts?: (string | {
|
|
20817
|
+
context?: string
|
|
20818
|
+
inlineCommentBlock?: boolean
|
|
20819
|
+
})[]
|
|
20820
|
+
contextsAfter?: (string | {
|
|
20821
|
+
context?: string
|
|
20822
|
+
inlineCommentBlock?: boolean
|
|
20823
|
+
})[]
|
|
20824
|
+
contextsBeforeAndAfter?: (string | {
|
|
20825
|
+
context?: string
|
|
20826
|
+
inlineCommentBlock?: boolean
|
|
20827
|
+
})[]
|
|
20828
|
+
enableFixer?: boolean
|
|
20829
|
+
enforceJsdocLineStyle?: ("multi" | "single")
|
|
20830
|
+
lineOrBlockStyle?: ("block" | "line" | "both")
|
|
20831
|
+
}]
|
|
20645
20832
|
// ----- no-autofix/jsdoc/empty-tags -----
|
|
20646
20833
|
type NoAutofixJsdocEmptyTags = []|[{
|
|
20647
20834
|
tags?: string[]
|
|
@@ -20929,6 +21116,10 @@ type NoAutofixJsdocRequireReturnsType = []|[{
|
|
|
20929
21116
|
context?: string
|
|
20930
21117
|
})[]
|
|
20931
21118
|
}]
|
|
21119
|
+
// ----- no-autofix/jsdoc/require-template -----
|
|
21120
|
+
type NoAutofixJsdocRequireTemplate = []|[{
|
|
21121
|
+
requireSeparateTemplates?: boolean
|
|
21122
|
+
}]
|
|
20932
21123
|
// ----- no-autofix/jsdoc/require-throws -----
|
|
20933
21124
|
type NoAutofixJsdocRequireThrows = []|[{
|
|
20934
21125
|
contexts?: (string | {
|
|
@@ -22000,18 +22191,11 @@ type NoAutofixNoRestrictedImports = ((string | {
|
|
|
22000
22191
|
importNames?: string[]
|
|
22001
22192
|
allowImportNames?: string[]
|
|
22002
22193
|
})[]
|
|
22003
|
-
patterns?: (string[] | {
|
|
22004
|
-
|
|
22005
|
-
|
|
22006
|
-
|
|
22007
|
-
|
|
22008
|
-
|
|
22009
|
-
group: [string, ...(string)[]]
|
|
22010
|
-
importNamePattern?: string
|
|
22011
|
-
allowImportNamePattern?: string
|
|
22012
|
-
message?: string
|
|
22013
|
-
caseSensitive?: boolean
|
|
22014
|
-
}[])
|
|
22194
|
+
patterns?: (string[] | ({
|
|
22195
|
+
[k: string]: unknown | undefined
|
|
22196
|
+
} | {
|
|
22197
|
+
[k: string]: unknown | undefined
|
|
22198
|
+
})[])
|
|
22015
22199
|
}])
|
|
22016
22200
|
// ----- no-autofix/no-restricted-modules -----
|
|
22017
22201
|
type NoAutofixNoRestrictedModules = ((string | {
|
|
@@ -22443,6 +22627,18 @@ type NoAutofixOperatorLinebreak = []|[("after" | "before" | "none" | null)]|[("a
|
|
|
22443
22627
|
[k: string]: ("after" | "before" | "none" | "ignore") | undefined
|
|
22444
22628
|
}
|
|
22445
22629
|
}]
|
|
22630
|
+
// ----- no-autofix/package-json/order-properties -----
|
|
22631
|
+
type NoAutofixPackageJsonOrderProperties = []|[{
|
|
22632
|
+
order?: (("legacy" | "sort-package-json") | string[])
|
|
22633
|
+
[k: string]: unknown | undefined
|
|
22634
|
+
}]
|
|
22635
|
+
// ----- no-autofix/package-json/repository-shorthand -----
|
|
22636
|
+
type NoAutofixPackageJsonRepositoryShorthand = []|[{
|
|
22637
|
+
form?: ("object" | "shorthand")
|
|
22638
|
+
[k: string]: unknown | undefined
|
|
22639
|
+
}]
|
|
22640
|
+
// ----- no-autofix/package-json/sort-collections -----
|
|
22641
|
+
type NoAutofixPackageJsonSortCollections = []|[string[]]
|
|
22446
22642
|
// ----- no-autofix/padded-blocks -----
|
|
22447
22643
|
type NoAutofixPaddedBlocks = []|[(("always" | "never") | {
|
|
22448
22644
|
blocks?: ("always" | "never")
|
|
@@ -24103,18 +24299,11 @@ type NoRestrictedImports = ((string | {
|
|
|
24103
24299
|
importNames?: string[]
|
|
24104
24300
|
allowImportNames?: string[]
|
|
24105
24301
|
})[]
|
|
24106
|
-
patterns?: (string[] | {
|
|
24107
|
-
|
|
24108
|
-
|
|
24109
|
-
|
|
24110
|
-
|
|
24111
|
-
|
|
24112
|
-
group: [string, ...(string)[]]
|
|
24113
|
-
importNamePattern?: string
|
|
24114
|
-
allowImportNamePattern?: string
|
|
24115
|
-
message?: string
|
|
24116
|
-
caseSensitive?: boolean
|
|
24117
|
-
}[])
|
|
24302
|
+
patterns?: (string[] | ({
|
|
24303
|
+
[k: string]: unknown | undefined
|
|
24304
|
+
} | {
|
|
24305
|
+
[k: string]: unknown | undefined
|
|
24306
|
+
})[])
|
|
24118
24307
|
}])
|
|
24119
24308
|
// ----- no-restricted-modules -----
|
|
24120
24309
|
type NoRestrictedModules = ((string | {
|
|
@@ -24328,6 +24517,18 @@ type OperatorLinebreak = []|[("after" | "before" | "none" | null)]|[("after" | "
|
|
|
24328
24517
|
[k: string]: ("after" | "before" | "none" | "ignore") | undefined
|
|
24329
24518
|
}
|
|
24330
24519
|
}]
|
|
24520
|
+
// ----- package-json/order-properties -----
|
|
24521
|
+
type PackageJsonOrderProperties = []|[{
|
|
24522
|
+
order?: (("legacy" | "sort-package-json") | string[])
|
|
24523
|
+
[k: string]: unknown | undefined
|
|
24524
|
+
}]
|
|
24525
|
+
// ----- package-json/repository-shorthand -----
|
|
24526
|
+
type PackageJsonRepositoryShorthand = []|[{
|
|
24527
|
+
form?: ("object" | "shorthand")
|
|
24528
|
+
[k: string]: unknown | undefined
|
|
24529
|
+
}]
|
|
24530
|
+
// ----- package-json/sort-collections -----
|
|
24531
|
+
type PackageJsonSortCollections = []|[string[]]
|
|
24331
24532
|
// ----- padded-blocks -----
|
|
24332
24533
|
type PaddedBlocks = []|[(("always" | "never") | {
|
|
24333
24534
|
blocks?: ("always" | "never")
|
|
@@ -26826,10 +27027,6 @@ type TsNoExtraneousClass = []|[{
|
|
|
26826
27027
|
}]
|
|
26827
27028
|
// ----- ts/no-floating-promises -----
|
|
26828
27029
|
type TsNoFloatingPromises = []|[{
|
|
26829
|
-
|
|
26830
|
-
ignoreVoid?: boolean
|
|
26831
|
-
|
|
26832
|
-
ignoreIIFE?: boolean
|
|
26833
27030
|
allowForKnownSafePromises?: (string | {
|
|
26834
27031
|
from: "file"
|
|
26835
27032
|
name: (string | [string, ...(string)[]])
|
|
@@ -26842,6 +27039,12 @@ type TsNoFloatingPromises = []|[{
|
|
|
26842
27039
|
name: (string | [string, ...(string)[]])
|
|
26843
27040
|
package: string
|
|
26844
27041
|
})[]
|
|
27042
|
+
|
|
27043
|
+
checkThenables?: boolean
|
|
27044
|
+
|
|
27045
|
+
ignoreVoid?: boolean
|
|
27046
|
+
|
|
27047
|
+
ignoreIIFE?: boolean
|
|
26845
27048
|
}]
|
|
26846
27049
|
// ----- ts/no-inferrable-types -----
|
|
26847
27050
|
type TsNoInferrableTypes = []|[{
|
|
@@ -26926,7 +27129,8 @@ type TsNoRestrictedImports = ((string | {
|
|
|
26926
27129
|
|
|
26927
27130
|
allowImportNames?: [string, ...(string)[]]
|
|
26928
27131
|
|
|
26929
|
-
group
|
|
27132
|
+
group?: [string, ...(string)[]]
|
|
27133
|
+
regex?: string
|
|
26930
27134
|
importNamePattern?: string
|
|
26931
27135
|
allowImportNamePattern?: string
|
|
26932
27136
|
message?: string
|
|
@@ -27728,7 +27932,7 @@ type Yoda = []|[("always" | "never")]|[("always" | "never"), {
|
|
|
27728
27932
|
onlyEquality?: boolean
|
|
27729
27933
|
}]
|
|
27730
27934
|
// Names of all the configs
|
|
27731
|
-
type ConfigNames = 'style:eslint-comments' | 'style:formatters:setup' | 'style:imports' | 'style:import-sort' | 'style:jsdoc' | 'style:jsonc:setup' | 'style:jsonc:rules' | 'style:markdown:setup' | 'style:markdown:processor' | 'style:markdown:parser' | 'style:markdown:disables' | 'style:perfectionist' | 'style:promise' | 'style:react:setup' | 'style:react:rules' | 'style:roblox' | 'style:shopify' | 'style:sonarjs' | 'style:sort-
|
|
27935
|
+
type ConfigNames = 'style:eslint-comments' | 'style:formatters:setup' | 'style:imports' | 'style:import-sort' | 'antfu/imports/disables/bin' | 'style:jsdoc' | 'style:jsonc:setup' | 'style:jsonc:rules' | 'style:markdown:setup' | 'style:markdown:processor' | 'style:markdown:parser' | 'style:markdown:disables' | 'style:package-json' | 'style:perfectionist' | 'style:promise' | 'style:react:setup' | 'style:react:rules' | 'style:roblox' | 'style:shopify' | 'style:sonarjs' | 'style:sort-tsconfig' | 'style:spelling' | 'style:stylistic' | 'style:typescript:setup' | 'style:typescript:rules' | 'style:typescript:dts-overrides' | 'style:unicorn' | 'style:yaml:setup' | 'style:yaml:rules'
|
|
27732
27936
|
|
|
27733
27937
|
type Awaitable<T> = Promise<T> | T;
|
|
27734
27938
|
type Rules = RuleOptions;
|
|
@@ -27942,6 +28146,8 @@ declare function jsonc(options?: OptionsFiles & OptionsOverrides & OptionsStylis
|
|
|
27942
28146
|
|
|
27943
28147
|
declare function markdown(options?: OptionsComponentExtensions & OptionsFiles & OptionsOverrides): Promise<Array<TypedFlatConfigItem>>;
|
|
27944
28148
|
|
|
28149
|
+
declare function packageJson(): Promise<Array<TypedFlatConfigItem>>;
|
|
28150
|
+
|
|
27945
28151
|
/**
|
|
27946
28152
|
* Perfectionist plugin for props and items sorting.
|
|
27947
28153
|
*
|
|
@@ -27964,14 +28170,6 @@ declare function shopify(): Promise<Array<TypedFlatConfigItem>>;
|
|
|
27964
28170
|
|
|
27965
28171
|
declare function sonarjs(): Promise<Array<TypedFlatConfigItem>>;
|
|
27966
28172
|
|
|
27967
|
-
/**
|
|
27968
|
-
* Sort package.json.
|
|
27969
|
-
*
|
|
27970
|
-
* Requires `jsonc` config.
|
|
27971
|
-
*
|
|
27972
|
-
* @returns An array of flat configuration items.
|
|
27973
|
-
*/
|
|
27974
|
-
declare function sortPackageJson(): Promise<Array<TypedFlatConfigItem>>;
|
|
27975
28173
|
/**
|
|
27976
28174
|
* Sort tsconfig.json.
|
|
27977
28175
|
*
|
|
@@ -28122,4 +28320,4 @@ type ResolvedOptions<T> = T extends boolean ? never : NonNullable<T>;
|
|
|
28122
28320
|
declare function resolveSubOptions<K extends keyof OptionsConfig>(options: OptionsConfig, key: K): ResolvedOptions<OptionsConfig[K]>;
|
|
28123
28321
|
declare function getOverrides<K extends keyof OptionsConfig>(options: OptionsConfig, key: K): any;
|
|
28124
28322
|
|
|
28125
|
-
export { type Awaitable, type ConfigNames, GLOB_ALL_SRC, GLOB_CSS, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_LUA, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_YAML, type OptionsComponentExtensions, type OptionsConfig, type OptionsFiles, type OptionsFormatters, type OptionsHasTypeScript, type OptionsOverrides, type OptionsStylistic, type OptionsTypeScriptParserOptions, type OptionsTypeScriptWithTypes, type OptionsTypescript, type ReactConfig, type ResolvedOptions, type Rules, type SpellCheckConfig, type StylisticConfig, StylisticConfigDefaults, type TypedFlatConfigItem, combine, comments, style as default, defaultPluginRenaming, ensurePackages, formatters, getOverrides, ignores, imports, interopDefault, jsdoc, jsonc, markdown, parserPlain, perfectionist, prettier, promise, react, renamePluginInConfigs, renameRules, resolveSubOptions, roblox, shopify, sonarjs,
|
|
28323
|
+
export { type Awaitable, type ConfigNames, GLOB_ALL_SRC, GLOB_CSS, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_LUA, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_YAML, type OptionsComponentExtensions, type OptionsConfig, type OptionsFiles, type OptionsFormatters, type OptionsHasTypeScript, type OptionsOverrides, type OptionsStylistic, type OptionsTypeScriptParserOptions, type OptionsTypeScriptWithTypes, type OptionsTypescript, type ReactConfig, type ResolvedOptions, type Rules, type SpellCheckConfig, type StylisticConfig, StylisticConfigDefaults, type TypedFlatConfigItem, combine, comments, style as default, defaultPluginRenaming, ensurePackages, formatters, getOverrides, ignores, imports, interopDefault, jsdoc, jsonc, markdown, packageJson, parserPlain, perfectionist, prettier, promise, react, renamePluginInConfigs, renameRules, resolveSubOptions, roblox, shopify, sonarjs, sortTsconfig, spelling, style, stylistic, toArray, toml, typescript, unicorn, yaml };
|