@lincy/eslint-config 5.4.2 → 5.5.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/README.md +4 -2
- package/dist/index.cjs +128 -25
- package/dist/index.d.cts +1398 -440
- package/dist/index.d.ts +1398 -440
- package/dist/index.js +126 -24
- package/package.json +65 -83
package/dist/index.d.ts
CHANGED
|
@@ -387,233 +387,233 @@ interface RuleOptions {
|
|
|
387
387
|
'implicit-arrow-linebreak'?: Linter.RuleEntry<ImplicitArrowLinebreak>
|
|
388
388
|
/**
|
|
389
389
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
390
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
390
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/consistent-type-specifier-style.md
|
|
391
391
|
*/
|
|
392
392
|
'import/consistent-type-specifier-style'?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>
|
|
393
393
|
/**
|
|
394
394
|
* Ensure a default export is present, given a default import.
|
|
395
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
395
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/default.md
|
|
396
396
|
*/
|
|
397
397
|
'import/default'?: Linter.RuleEntry<[]>
|
|
398
398
|
/**
|
|
399
399
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
400
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
400
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/dynamic-import-chunkname.md
|
|
401
401
|
*/
|
|
402
402
|
'import/dynamic-import-chunkname'?: Linter.RuleEntry<ImportDynamicImportChunkname>
|
|
403
403
|
/**
|
|
404
404
|
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
405
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
405
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/export.md
|
|
406
406
|
*/
|
|
407
407
|
'import/export'?: Linter.RuleEntry<[]>
|
|
408
408
|
/**
|
|
409
409
|
* Ensure all exports appear after other statements.
|
|
410
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
410
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/exports-last.md
|
|
411
411
|
*/
|
|
412
412
|
'import/exports-last'?: Linter.RuleEntry<[]>
|
|
413
413
|
/**
|
|
414
414
|
* Ensure consistent use of file extension within the import path.
|
|
415
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
415
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/extensions.md
|
|
416
416
|
*/
|
|
417
417
|
'import/extensions'?: Linter.RuleEntry<ImportExtensions>
|
|
418
418
|
/**
|
|
419
419
|
* Ensure all imports appear before other statements.
|
|
420
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
420
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/first.md
|
|
421
421
|
*/
|
|
422
422
|
'import/first'?: Linter.RuleEntry<ImportFirst>
|
|
423
423
|
/**
|
|
424
424
|
* Prefer named exports to be grouped together in a single export declaration.
|
|
425
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
425
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/group-exports.md
|
|
426
426
|
*/
|
|
427
427
|
'import/group-exports'?: Linter.RuleEntry<[]>
|
|
428
428
|
/**
|
|
429
429
|
* Replaced by `import-x/first`.
|
|
430
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
430
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/imports-first.md
|
|
431
431
|
* @deprecated
|
|
432
432
|
*/
|
|
433
433
|
'import/imports-first'?: Linter.RuleEntry<ImportImportsFirst>
|
|
434
434
|
/**
|
|
435
435
|
* Enforce the maximum number of dependencies a module can have.
|
|
436
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
436
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/max-dependencies.md
|
|
437
437
|
*/
|
|
438
438
|
'import/max-dependencies'?: Linter.RuleEntry<ImportMaxDependencies>
|
|
439
439
|
/**
|
|
440
440
|
* Ensure named imports correspond to a named export in the remote file.
|
|
441
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
441
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/named.md
|
|
442
442
|
*/
|
|
443
443
|
'import/named'?: Linter.RuleEntry<ImportNamed>
|
|
444
444
|
/**
|
|
445
445
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
446
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
446
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/namespace.md
|
|
447
447
|
*/
|
|
448
448
|
'import/namespace'?: Linter.RuleEntry<ImportNamespace>
|
|
449
449
|
/**
|
|
450
450
|
* Enforce a newline after import statements.
|
|
451
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
451
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/newline-after-import.md
|
|
452
452
|
*/
|
|
453
453
|
'import/newline-after-import'?: Linter.RuleEntry<ImportNewlineAfterImport>
|
|
454
454
|
/**
|
|
455
455
|
* Forbid import of modules using absolute paths.
|
|
456
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
456
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-absolute-path.md
|
|
457
457
|
*/
|
|
458
458
|
'import/no-absolute-path'?: Linter.RuleEntry<ImportNoAbsolutePath>
|
|
459
459
|
/**
|
|
460
460
|
* Forbid AMD `require` and `define` calls.
|
|
461
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
461
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-amd.md
|
|
462
462
|
*/
|
|
463
463
|
'import/no-amd'?: Linter.RuleEntry<[]>
|
|
464
464
|
/**
|
|
465
465
|
* Forbid anonymous values as default exports.
|
|
466
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
466
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-anonymous-default-export.md
|
|
467
467
|
*/
|
|
468
468
|
'import/no-anonymous-default-export'?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>
|
|
469
469
|
/**
|
|
470
470
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
471
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
471
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-commonjs.md
|
|
472
472
|
*/
|
|
473
473
|
'import/no-commonjs'?: Linter.RuleEntry<ImportNoCommonjs>
|
|
474
474
|
/**
|
|
475
475
|
* Forbid a module from importing a module with a dependency path back to itself.
|
|
476
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
476
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-cycle.md
|
|
477
477
|
*/
|
|
478
478
|
'import/no-cycle'?: Linter.RuleEntry<ImportNoCycle>
|
|
479
479
|
/**
|
|
480
480
|
* Forbid default exports.
|
|
481
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
481
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-default-export.md
|
|
482
482
|
*/
|
|
483
483
|
'import/no-default-export'?: Linter.RuleEntry<[]>
|
|
484
484
|
/**
|
|
485
485
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
486
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
486
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-deprecated.md
|
|
487
487
|
*/
|
|
488
488
|
'import/no-deprecated'?: Linter.RuleEntry<[]>
|
|
489
489
|
/**
|
|
490
490
|
* Forbid repeated import of the same module in multiple places.
|
|
491
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
491
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-duplicates.md
|
|
492
492
|
*/
|
|
493
493
|
'import/no-duplicates'?: Linter.RuleEntry<ImportNoDuplicates>
|
|
494
494
|
/**
|
|
495
495
|
* Forbid `require()` calls with expressions.
|
|
496
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
496
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-dynamic-require.md
|
|
497
497
|
*/
|
|
498
498
|
'import/no-dynamic-require'?: Linter.RuleEntry<ImportNoDynamicRequire>
|
|
499
499
|
/**
|
|
500
500
|
* Forbid empty named import blocks.
|
|
501
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
501
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-empty-named-blocks.md
|
|
502
502
|
*/
|
|
503
503
|
'import/no-empty-named-blocks'?: Linter.RuleEntry<[]>
|
|
504
504
|
/**
|
|
505
505
|
* Forbid the use of extraneous packages.
|
|
506
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
506
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-extraneous-dependencies.md
|
|
507
507
|
*/
|
|
508
508
|
'import/no-extraneous-dependencies'?: Linter.RuleEntry<ImportNoExtraneousDependencies>
|
|
509
509
|
/**
|
|
510
510
|
* Forbid import statements with CommonJS module.exports.
|
|
511
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
511
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-import-module-exports.md
|
|
512
512
|
*/
|
|
513
513
|
'import/no-import-module-exports'?: Linter.RuleEntry<ImportNoImportModuleExports>
|
|
514
514
|
/**
|
|
515
515
|
* Forbid importing the submodules of other modules.
|
|
516
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
516
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-internal-modules.md
|
|
517
517
|
*/
|
|
518
518
|
'import/no-internal-modules'?: Linter.RuleEntry<ImportNoInternalModules>
|
|
519
519
|
/**
|
|
520
520
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
521
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
521
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-mutable-exports.md
|
|
522
522
|
*/
|
|
523
523
|
'import/no-mutable-exports'?: Linter.RuleEntry<[]>
|
|
524
524
|
/**
|
|
525
525
|
* Forbid use of exported name as identifier of default export.
|
|
526
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
526
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-named-as-default.md
|
|
527
527
|
*/
|
|
528
528
|
'import/no-named-as-default'?: Linter.RuleEntry<[]>
|
|
529
529
|
/**
|
|
530
530
|
* Forbid use of exported name as property of default export.
|
|
531
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
531
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-named-as-default-member.md
|
|
532
532
|
*/
|
|
533
533
|
'import/no-named-as-default-member'?: Linter.RuleEntry<[]>
|
|
534
534
|
/**
|
|
535
535
|
* Forbid named default exports.
|
|
536
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
536
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-named-default.md
|
|
537
537
|
*/
|
|
538
538
|
'import/no-named-default'?: Linter.RuleEntry<[]>
|
|
539
539
|
/**
|
|
540
540
|
* Forbid named exports.
|
|
541
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
541
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-named-export.md
|
|
542
542
|
*/
|
|
543
543
|
'import/no-named-export'?: Linter.RuleEntry<[]>
|
|
544
544
|
/**
|
|
545
545
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
546
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
546
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-namespace.md
|
|
547
547
|
*/
|
|
548
548
|
'import/no-namespace'?: Linter.RuleEntry<ImportNoNamespace>
|
|
549
549
|
/**
|
|
550
550
|
* Forbid Node.js builtin modules.
|
|
551
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
551
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-nodejs-modules.md
|
|
552
552
|
*/
|
|
553
553
|
'import/no-nodejs-modules'?: Linter.RuleEntry<ImportNoNodejsModules>
|
|
554
554
|
/**
|
|
555
555
|
* Forbid importing packages through relative paths.
|
|
556
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
556
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-relative-packages.md
|
|
557
557
|
*/
|
|
558
558
|
'import/no-relative-packages'?: Linter.RuleEntry<ImportNoRelativePackages>
|
|
559
559
|
/**
|
|
560
560
|
* Forbid importing modules from parent directories.
|
|
561
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
561
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-relative-parent-imports.md
|
|
562
562
|
*/
|
|
563
563
|
'import/no-relative-parent-imports'?: Linter.RuleEntry<ImportNoRelativeParentImports>
|
|
564
564
|
/**
|
|
565
565
|
* Forbid importing a default export by a different name.
|
|
566
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
566
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-rename-default.md
|
|
567
567
|
*/
|
|
568
568
|
'import/no-rename-default'?: Linter.RuleEntry<ImportNoRenameDefault>
|
|
569
569
|
/**
|
|
570
570
|
* Enforce which files can be imported in a given folder.
|
|
571
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
571
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-restricted-paths.md
|
|
572
572
|
*/
|
|
573
573
|
'import/no-restricted-paths'?: Linter.RuleEntry<ImportNoRestrictedPaths>
|
|
574
574
|
/**
|
|
575
575
|
* Forbid a module from importing itself.
|
|
576
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
576
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-self-import.md
|
|
577
577
|
*/
|
|
578
578
|
'import/no-self-import'?: Linter.RuleEntry<[]>
|
|
579
579
|
/**
|
|
580
580
|
* Forbid unassigned imports.
|
|
581
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
581
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-unassigned-import.md
|
|
582
582
|
*/
|
|
583
583
|
'import/no-unassigned-import'?: Linter.RuleEntry<ImportNoUnassignedImport>
|
|
584
584
|
/**
|
|
585
585
|
* Ensure imports point to a file/module that can be resolved.
|
|
586
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
586
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-unresolved.md
|
|
587
587
|
*/
|
|
588
588
|
'import/no-unresolved'?: Linter.RuleEntry<ImportNoUnresolved>
|
|
589
589
|
/**
|
|
590
590
|
* Forbid modules without exports, or exports without matching import in another module.
|
|
591
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
591
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-unused-modules.md
|
|
592
592
|
*/
|
|
593
593
|
'import/no-unused-modules'?: Linter.RuleEntry<ImportNoUnusedModules>
|
|
594
594
|
/**
|
|
595
595
|
* Forbid unnecessary path segments in import and require statements.
|
|
596
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
596
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-useless-path-segments.md
|
|
597
597
|
*/
|
|
598
598
|
'import/no-useless-path-segments'?: Linter.RuleEntry<ImportNoUselessPathSegments>
|
|
599
599
|
/**
|
|
600
600
|
* Forbid webpack loader syntax in imports.
|
|
601
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
601
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-webpack-loader-syntax.md
|
|
602
602
|
*/
|
|
603
603
|
'import/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>
|
|
604
604
|
/**
|
|
605
605
|
* Enforce a convention in module import order.
|
|
606
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
606
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/order.md
|
|
607
607
|
*/
|
|
608
608
|
'import/order'?: Linter.RuleEntry<ImportOrder>
|
|
609
609
|
/**
|
|
610
610
|
* Prefer a default export if module exports a single name or multiple names.
|
|
611
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
611
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/prefer-default-export.md
|
|
612
612
|
*/
|
|
613
613
|
'import/prefer-default-export'?: Linter.RuleEntry<ImportPreferDefaultExport>
|
|
614
614
|
/**
|
|
615
615
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
616
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
616
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/unambiguous.md
|
|
617
617
|
*/
|
|
618
618
|
'import/unambiguous'?: Linter.RuleEntry<[]>
|
|
619
619
|
/**
|
|
@@ -2562,117 +2562,142 @@ interface RuleOptions {
|
|
|
2562
2562
|
*/
|
|
2563
2563
|
'radix'?: Linter.RuleEntry<Radix>
|
|
2564
2564
|
/**
|
|
2565
|
-
*
|
|
2565
|
+
* Disallow `children` in void DOM elements.
|
|
2566
2566
|
* @see https://eslint-react.xyz/docs/rules/dom-no-void-elements-with-children
|
|
2567
2567
|
*/
|
|
2568
2568
|
'react-dom/no-children-in-void-dom-elements'?: Linter.RuleEntry<[]>
|
|
2569
2569
|
/**
|
|
2570
|
-
*
|
|
2570
|
+
* Disallow `dangerouslySetInnerHTML`.
|
|
2571
2571
|
* @see https://eslint-react.xyz/docs/rules/dom-no-dangerously-set-innerhtml
|
|
2572
2572
|
*/
|
|
2573
2573
|
'react-dom/no-dangerously-set-innerhtml'?: Linter.RuleEntry<[]>
|
|
2574
2574
|
/**
|
|
2575
|
-
*
|
|
2575
|
+
* Disallow `dangerouslySetInnerHTML` and `children` at the same time.
|
|
2576
2576
|
* @see https://eslint-react.xyz/docs/rules/dom-no-dangerously-set-innerhtml-with-children
|
|
2577
2577
|
*/
|
|
2578
2578
|
'react-dom/no-dangerously-set-innerhtml-with-children'?: Linter.RuleEntry<[]>
|
|
2579
2579
|
/**
|
|
2580
|
-
*
|
|
2580
|
+
* Disallow `findDOMNode`.
|
|
2581
2581
|
* @see https://eslint-react.xyz/docs/rules/dom-no-find-dom-node
|
|
2582
2582
|
*/
|
|
2583
2583
|
'react-dom/no-find-dom-node'?: Linter.RuleEntry<[]>
|
|
2584
2584
|
/**
|
|
2585
|
-
*
|
|
2585
|
+
* Disallow `flushSync`.
|
|
2586
|
+
* @see https://eslint-react.xyz/docs/rules/dom-no-flush-sync
|
|
2587
|
+
*/
|
|
2588
|
+
'react-dom/no-flush-sync'?: Linter.RuleEntry<[]>
|
|
2589
|
+
/**
|
|
2590
|
+
* Replaces usages of `ReactDom.hydrate()` with `hydrateRoot()`.
|
|
2591
|
+
* @see https://eslint-react.xyz/docs/rules/dom-no-hydrate
|
|
2592
|
+
*/
|
|
2593
|
+
'react-dom/no-hydrate'?: Linter.RuleEntry<[]>
|
|
2594
|
+
/**
|
|
2595
|
+
* Enforces explicit `type` attribute for `button` elements.
|
|
2586
2596
|
* @see https://eslint-react.xyz/docs/rules/dom-no-missing-button-type
|
|
2587
2597
|
*/
|
|
2588
2598
|
'react-dom/no-missing-button-type'?: Linter.RuleEntry<[]>
|
|
2589
2599
|
/**
|
|
2590
|
-
*
|
|
2600
|
+
* Enforces explicit `sandbox` attribute for `iframe` elements.
|
|
2591
2601
|
* @see https://eslint-react.xyz/docs/rules/dom-no-missing-iframe-sandbox
|
|
2592
2602
|
*/
|
|
2593
2603
|
'react-dom/no-missing-iframe-sandbox'?: Linter.RuleEntry<[]>
|
|
2594
2604
|
/**
|
|
2595
|
-
*
|
|
2605
|
+
* Enforces the absence of a `namespace` in React elements.
|
|
2596
2606
|
* @see https://eslint-react.xyz/docs/rules/dom-no-namespace
|
|
2597
2607
|
*/
|
|
2598
2608
|
'react-dom/no-namespace'?: Linter.RuleEntry<[]>
|
|
2599
2609
|
/**
|
|
2600
|
-
*
|
|
2610
|
+
* Replaces usages of `ReactDom.render()` with `createRoot(node).render()`.
|
|
2611
|
+
* @see https://eslint-react.xyz/docs/rules/dom-no-render
|
|
2612
|
+
*/
|
|
2613
|
+
'react-dom/no-render'?: Linter.RuleEntry<[]>
|
|
2614
|
+
/**
|
|
2615
|
+
* Disallow the return value of `ReactDOM.render`.
|
|
2601
2616
|
* @see https://eslint-react.xyz/docs/rules/dom-no-render-return-value
|
|
2602
2617
|
*/
|
|
2603
2618
|
'react-dom/no-render-return-value'?: Linter.RuleEntry<[]>
|
|
2604
2619
|
/**
|
|
2605
|
-
*
|
|
2620
|
+
* Disallow `javascript:` URLs as attribute values.
|
|
2606
2621
|
* @see https://eslint-react.xyz/docs/rules/dom-no-script-url
|
|
2607
2622
|
*/
|
|
2608
2623
|
'react-dom/no-script-url'?: Linter.RuleEntry<[]>
|
|
2609
2624
|
/**
|
|
2610
|
-
*
|
|
2625
|
+
* Disallow unknown `DOM` property.
|
|
2611
2626
|
* @see https://eslint-react.xyz/docs/rules/dom-no-unknown-property
|
|
2612
2627
|
*/
|
|
2613
2628
|
'react-dom/no-unknown-property'?: Linter.RuleEntry<ReactDomNoUnknownProperty>
|
|
2614
2629
|
/**
|
|
2615
|
-
*
|
|
2630
|
+
* Enforces `sandbox` attribute for `iframe` elements is not set to unsafe combinations.
|
|
2616
2631
|
* @see https://eslint-react.xyz/docs/rules/dom-no-unsafe-iframe-sandbox
|
|
2617
2632
|
*/
|
|
2618
2633
|
'react-dom/no-unsafe-iframe-sandbox'?: Linter.RuleEntry<[]>
|
|
2619
2634
|
/**
|
|
2620
|
-
*
|
|
2635
|
+
* Disallow `target="_blank"` without `rel="noreferrer noopener"`.
|
|
2621
2636
|
* @see https://eslint-react.xyz/docs/rules/dom-no-unsafe-target-blank
|
|
2622
2637
|
*/
|
|
2623
2638
|
'react-dom/no-unsafe-target-blank'?: Linter.RuleEntry<[]>
|
|
2624
2639
|
/**
|
|
2625
|
-
*
|
|
2640
|
+
* Replaces usages of `useFormState` with `useActionState`.
|
|
2641
|
+
* @see https://eslint-react.xyz/docs/rules/dom-no-use-form-state
|
|
2642
|
+
*/
|
|
2643
|
+
'react-dom/no-use-form-state'?: Linter.RuleEntry<[]>
|
|
2644
|
+
/**
|
|
2645
|
+
* Disallow `children` in void DOM elements.
|
|
2626
2646
|
* @see https://eslint-react.xyz/docs/rules/dom-no-void-elements-with-children
|
|
2627
2647
|
*/
|
|
2628
2648
|
'react-dom/no-void-elements-with-children'?: Linter.RuleEntry<[]>
|
|
2629
2649
|
/**
|
|
2630
|
-
*
|
|
2631
|
-
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-
|
|
2650
|
+
* Enforces that a function with the `use` prefix should use at least one Hook inside of it.
|
|
2651
|
+
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-unnecessary-use-prefix
|
|
2632
2652
|
*/
|
|
2633
2653
|
'react-hooks-extra/ensure-custom-hooks-using-other-hooks'?: Linter.RuleEntry<[]>
|
|
2634
2654
|
/**
|
|
2635
|
-
*
|
|
2655
|
+
* Disallow unnecessary usage of `useCallback`.
|
|
2636
2656
|
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-unnecessary-use-callback
|
|
2637
2657
|
*/
|
|
2638
2658
|
'react-hooks-extra/ensure-use-callback-has-non-empty-deps'?: Linter.RuleEntry<[]>
|
|
2639
2659
|
/**
|
|
2640
|
-
*
|
|
2660
|
+
* Disallow unnecessary usage of `useMemo`.
|
|
2641
2661
|
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-unnecessary-use-memo
|
|
2642
2662
|
*/
|
|
2643
2663
|
'react-hooks-extra/ensure-use-memo-has-non-empty-deps'?: Linter.RuleEntry<[]>
|
|
2644
2664
|
/**
|
|
2645
|
-
*
|
|
2665
|
+
* Disallow direct calls to the `set` function of `useState` in `useEffect`.
|
|
2646
2666
|
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-direct-set-state-in-use-effect
|
|
2647
2667
|
*/
|
|
2648
2668
|
'react-hooks-extra/no-direct-set-state-in-use-effect'?: Linter.RuleEntry<[]>
|
|
2649
2669
|
/**
|
|
2650
|
-
*
|
|
2670
|
+
* Disallow direct calls to the `set` function of `useState` in `useLayoutEffect`.
|
|
2651
2671
|
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-direct-set-state-in-use-layout-effect
|
|
2652
2672
|
*/
|
|
2653
2673
|
'react-hooks-extra/no-direct-set-state-in-use-layout-effect'?: Linter.RuleEntry<[]>
|
|
2654
2674
|
/**
|
|
2655
|
-
*
|
|
2656
|
-
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-
|
|
2675
|
+
* Enforces that a function with the `use` prefix should use at least one Hook inside of it.
|
|
2676
|
+
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-unnecessary-use-prefix
|
|
2657
2677
|
*/
|
|
2658
2678
|
'react-hooks-extra/no-redundant-custom-hook'?: Linter.RuleEntry<[]>
|
|
2659
2679
|
/**
|
|
2660
|
-
*
|
|
2680
|
+
* Disallow unnecessary usage of `useCallback`.
|
|
2661
2681
|
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-unnecessary-use-callback
|
|
2662
2682
|
*/
|
|
2663
2683
|
'react-hooks-extra/no-unnecessary-use-callback'?: Linter.RuleEntry<[]>
|
|
2664
2684
|
/**
|
|
2665
|
-
*
|
|
2685
|
+
* Disallow unnecessary usage of `useMemo`.
|
|
2666
2686
|
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-unnecessary-use-memo
|
|
2667
2687
|
*/
|
|
2668
2688
|
'react-hooks-extra/no-unnecessary-use-memo'?: Linter.RuleEntry<[]>
|
|
2669
2689
|
/**
|
|
2670
|
-
*
|
|
2671
|
-
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-
|
|
2690
|
+
* Enforces that a function with the `use` prefix should use at least one Hook inside of it.
|
|
2691
|
+
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-unnecessary-use-prefix
|
|
2692
|
+
*/
|
|
2693
|
+
'react-hooks-extra/no-unnecessary-use-prefix'?: Linter.RuleEntry<[]>
|
|
2694
|
+
/**
|
|
2695
|
+
* Enforces that a function with the `use` prefix should use at least one Hook inside of it.
|
|
2696
|
+
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-unnecessary-use-prefix
|
|
2672
2697
|
*/
|
|
2673
2698
|
'react-hooks-extra/no-useless-custom-hooks'?: Linter.RuleEntry<[]>
|
|
2674
2699
|
/**
|
|
2675
|
-
*
|
|
2700
|
+
* Enforces function calls made inside `useState` to be wrapped in an `initializer function`.
|
|
2676
2701
|
* @see https://eslint-react.xyz/docs/rules/hooks-extra-prefer-use-state-lazy-initialization
|
|
2677
2702
|
*/
|
|
2678
2703
|
'react-hooks-extra/prefer-use-state-lazy-initialization'?: Linter.RuleEntry<[]>
|
|
@@ -2687,313 +2712,333 @@ interface RuleOptions {
|
|
|
2687
2712
|
*/
|
|
2688
2713
|
'react-hooks/rules-of-hooks'?: Linter.RuleEntry<[]>
|
|
2689
2714
|
/**
|
|
2690
|
-
*
|
|
2715
|
+
* Enforces naming conventions for components.
|
|
2691
2716
|
* @see https://eslint-react.xyz/docs/rules/naming-convention-component-name
|
|
2692
2717
|
*/
|
|
2693
2718
|
'react-naming-convention/component-name'?: Linter.RuleEntry<ReactNamingConventionComponentName>
|
|
2694
2719
|
/**
|
|
2695
|
-
*
|
|
2720
|
+
* Enforces context name to be a valid component name with the suffix `Context`.
|
|
2721
|
+
* @see https://eslint-react.xyz/docs/rules/naming-convention-context-name
|
|
2722
|
+
*/
|
|
2723
|
+
'react-naming-convention/context-name'?: Linter.RuleEntry<[]>
|
|
2724
|
+
/**
|
|
2725
|
+
* Enforces consistent file naming conventions.
|
|
2696
2726
|
* @see https://eslint-react.xyz/docs/rules/naming-convention-filename
|
|
2697
2727
|
*/
|
|
2698
2728
|
'react-naming-convention/filename'?: Linter.RuleEntry<ReactNamingConventionFilename>
|
|
2699
2729
|
/**
|
|
2700
|
-
*
|
|
2730
|
+
* Enforces consistent file naming conventions.
|
|
2701
2731
|
* @see https://eslint-react.xyz/docs/rules/naming-convention-filename-extension
|
|
2702
2732
|
*/
|
|
2703
2733
|
'react-naming-convention/filename-extension'?: Linter.RuleEntry<ReactNamingConventionFilenameExtension>
|
|
2704
2734
|
/**
|
|
2705
|
-
*
|
|
2735
|
+
* Enforces destructuring and symmetric naming of `useState` hook value and setter.
|
|
2706
2736
|
* @see https://eslint-react.xyz/docs/rules/naming-convention-use-state
|
|
2707
2737
|
*/
|
|
2708
2738
|
'react-naming-convention/use-state'?: Linter.RuleEntry<[]>
|
|
2709
2739
|
'react-refresh/only-export-components'?: Linter.RuleEntry<ReactRefreshOnlyExportComponents>
|
|
2710
2740
|
/**
|
|
2711
|
-
*
|
|
2741
|
+
* Prevents leaked `addEventListener` in a component or custom Hook.
|
|
2712
2742
|
* @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-event-listener
|
|
2713
2743
|
*/
|
|
2714
2744
|
'react-web-api/no-leaked-event-listener'?: Linter.RuleEntry<[]>
|
|
2715
2745
|
/**
|
|
2716
|
-
*
|
|
2746
|
+
* Prevents leaked `setInterval` in a component or custom Hook.
|
|
2717
2747
|
* @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-interval
|
|
2718
2748
|
*/
|
|
2719
2749
|
'react-web-api/no-leaked-interval'?: Linter.RuleEntry<[]>
|
|
2720
2750
|
/**
|
|
2721
|
-
*
|
|
2751
|
+
* Prevents leaked `ResizeObserver` in a component or custom Hook.
|
|
2722
2752
|
* @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-resize-observer
|
|
2723
2753
|
*/
|
|
2724
2754
|
'react-web-api/no-leaked-resize-observer'?: Linter.RuleEntry<[]>
|
|
2725
2755
|
/**
|
|
2726
|
-
*
|
|
2756
|
+
* Prevents leaked `setTimeout` in a component or custom Hook.
|
|
2727
2757
|
* @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-timeout
|
|
2728
2758
|
*/
|
|
2729
2759
|
'react-web-api/no-leaked-timeout'?: Linter.RuleEntry<[]>
|
|
2730
2760
|
/**
|
|
2731
|
-
*
|
|
2761
|
+
* Enforces explicit boolean values for boolean attributes.
|
|
2732
2762
|
* @see https://eslint-react.xyz/docs/rules/avoid-shorthand-boolean
|
|
2733
2763
|
*/
|
|
2734
2764
|
'react/avoid-shorthand-boolean'?: Linter.RuleEntry<[]>
|
|
2735
2765
|
/**
|
|
2736
|
-
*
|
|
2766
|
+
* Enforces explicit `<Fragment>` components instead of the shorthand `<>` or `</>` syntax.
|
|
2737
2767
|
* @see https://eslint-react.xyz/docs/rules/avoid-shorthand-fragment
|
|
2738
2768
|
*/
|
|
2739
2769
|
'react/avoid-shorthand-fragment'?: Linter.RuleEntry<[]>
|
|
2740
2770
|
/**
|
|
2741
|
-
*
|
|
2742
|
-
* @see https://eslint-react.xyz/docs/rules/
|
|
2771
|
+
* Disallow useless `forwardRef` calls on components that don't use `ref`s.
|
|
2772
|
+
* @see https://eslint-react.xyz/docs/rules/no-useless-forward-ref
|
|
2743
2773
|
*/
|
|
2744
2774
|
'react/ensure-forward-ref-using-ref'?: Linter.RuleEntry<[]>
|
|
2745
2775
|
/**
|
|
2746
|
-
*
|
|
2776
|
+
* Disallow duplicate props in JSX elements.
|
|
2747
2777
|
* @see https://eslint-react.xyz/docs/rules/no-duplicate-jsx-props
|
|
2748
2778
|
*/
|
|
2749
2779
|
'react/jsx-no-duplicate-props'?: Linter.RuleEntry<[]>
|
|
2750
2780
|
/**
|
|
2751
|
-
*
|
|
2781
|
+
* Marks variables used in JSX as used.
|
|
2752
2782
|
* @see https://eslint-react.xyz/docs/rules/use-jsx-vars
|
|
2753
2783
|
*/
|
|
2754
2784
|
'react/jsx-uses-vars'?: Linter.RuleEntry<[]>
|
|
2755
2785
|
/**
|
|
2756
|
-
*
|
|
2786
|
+
* Disallow accessing `this.state` inside `setState` calls.
|
|
2757
2787
|
* @see https://eslint-react.xyz/docs/rules/no-access-state-in-setstate
|
|
2758
2788
|
*/
|
|
2759
2789
|
'react/no-access-state-in-setstate'?: Linter.RuleEntry<[]>
|
|
2760
2790
|
/**
|
|
2761
|
-
*
|
|
2791
|
+
* Disallow an item's index in the array as its key.
|
|
2762
2792
|
* @see https://eslint-react.xyz/docs/rules/no-array-index-key
|
|
2763
2793
|
*/
|
|
2764
2794
|
'react/no-array-index-key'?: Linter.RuleEntry<[]>
|
|
2765
2795
|
/**
|
|
2766
|
-
*
|
|
2796
|
+
* Disallow `Children.count`.
|
|
2767
2797
|
* @see https://eslint-react.xyz/docs/rules/no-children-count
|
|
2768
2798
|
*/
|
|
2769
2799
|
'react/no-children-count'?: Linter.RuleEntry<[]>
|
|
2770
2800
|
/**
|
|
2771
|
-
*
|
|
2801
|
+
* Disallow 'Children.forEach'.
|
|
2772
2802
|
* @see https://eslint-react.xyz/docs/rules/no-children-for-each
|
|
2773
2803
|
*/
|
|
2774
2804
|
'react/no-children-for-each'?: Linter.RuleEntry<[]>
|
|
2775
2805
|
/**
|
|
2776
|
-
*
|
|
2806
|
+
* Disallow `Children.map`.
|
|
2777
2807
|
* @see https://eslint-react.xyz/docs/rules/no-children-map
|
|
2778
2808
|
*/
|
|
2779
2809
|
'react/no-children-map'?: Linter.RuleEntry<[]>
|
|
2780
2810
|
/**
|
|
2781
|
-
*
|
|
2811
|
+
* Disallow `Children.only`.
|
|
2782
2812
|
* @see https://eslint-react.xyz/docs/rules/no-children-only
|
|
2783
2813
|
*/
|
|
2784
2814
|
'react/no-children-only'?: Linter.RuleEntry<[]>
|
|
2785
2815
|
/**
|
|
2786
|
-
*
|
|
2816
|
+
* Disallow passing `children` as a prop.
|
|
2787
2817
|
* @see https://eslint-react.xyz/docs/rules/no-children-prop
|
|
2788
2818
|
*/
|
|
2789
2819
|
'react/no-children-prop'?: Linter.RuleEntry<[]>
|
|
2790
2820
|
/**
|
|
2791
|
-
*
|
|
2821
|
+
* Disallow `Children.toArray`.
|
|
2792
2822
|
* @see https://eslint-react.xyz/docs/rules/no-children-to-array
|
|
2793
2823
|
*/
|
|
2794
2824
|
'react/no-children-to-array'?: Linter.RuleEntry<[]>
|
|
2795
2825
|
/**
|
|
2796
|
-
*
|
|
2826
|
+
* Disallow class components.
|
|
2797
2827
|
* @see https://eslint-react.xyz/docs/rules/no-class-component
|
|
2798
2828
|
*/
|
|
2799
2829
|
'react/no-class-component'?: Linter.RuleEntry<[]>
|
|
2800
2830
|
/**
|
|
2801
|
-
*
|
|
2831
|
+
* Disallow `cloneElement`.
|
|
2802
2832
|
* @see https://eslint-react.xyz/docs/rules/no-clone-element
|
|
2803
2833
|
*/
|
|
2804
2834
|
'react/no-clone-element'?: Linter.RuleEntry<[]>
|
|
2805
2835
|
/**
|
|
2806
|
-
*
|
|
2836
|
+
* Prevents comments from being inserted as text nodes.
|
|
2807
2837
|
* @see https://eslint-react.xyz/docs/rules/no-comment-textnodes
|
|
2808
2838
|
*/
|
|
2809
2839
|
'react/no-comment-textnodes'?: Linter.RuleEntry<[]>
|
|
2810
2840
|
/**
|
|
2811
|
-
*
|
|
2841
|
+
* Disallow complex conditional rendering in JSX expressions.
|
|
2812
2842
|
* @see https://eslint-react.xyz/docs/rules/no-complex-conditional-rendering
|
|
2813
2843
|
*/
|
|
2814
2844
|
'react/no-complex-conditional-rendering'?: Linter.RuleEntry<[]>
|
|
2815
2845
|
/**
|
|
2816
|
-
*
|
|
2846
|
+
* Disallow complex conditional rendering in JSX expressions.
|
|
2817
2847
|
* @see https://eslint-react.xyz/docs/rules/no-complex-conditional-rendering
|
|
2818
2848
|
*/
|
|
2819
2849
|
'react/no-complicated-conditional-rendering'?: Linter.RuleEntry<[]>
|
|
2820
2850
|
/**
|
|
2821
|
-
*
|
|
2851
|
+
* Replace usages of `componentWillMount` with `UNSAFE_componentWillMount`.
|
|
2822
2852
|
* @see https://eslint-react.xyz/docs/rules/no-component-will-mount
|
|
2823
2853
|
*/
|
|
2824
2854
|
'react/no-component-will-mount'?: Linter.RuleEntry<[]>
|
|
2825
2855
|
/**
|
|
2826
|
-
*
|
|
2856
|
+
* Replace usages of `componentWillReceiveProps` with `UNSAFE_componentWillReceiveProps`.
|
|
2827
2857
|
* @see https://eslint-react.xyz/docs/rules/no-component-will-receive-props
|
|
2828
2858
|
*/
|
|
2829
2859
|
'react/no-component-will-receive-props'?: Linter.RuleEntry<[]>
|
|
2830
2860
|
/**
|
|
2831
|
-
*
|
|
2861
|
+
* Replace usages of `componentWillUpdate` with `UNSAFE_componentWillUpdate`.
|
|
2832
2862
|
* @see https://eslint-react.xyz/docs/rules/no-component-will-update
|
|
2833
2863
|
*/
|
|
2834
2864
|
'react/no-component-will-update'?: Linter.RuleEntry<[]>
|
|
2835
2865
|
/**
|
|
2836
|
-
*
|
|
2866
|
+
* Replace usages of `<Context.Provider>` with `<Context>`.
|
|
2837
2867
|
* @see https://eslint-react.xyz/docs/rules/no-context-provider
|
|
2838
2868
|
*/
|
|
2839
2869
|
'react/no-context-provider'?: Linter.RuleEntry<[]>
|
|
2840
2870
|
/**
|
|
2841
|
-
*
|
|
2871
|
+
* Disallow `createRef` in function components.
|
|
2842
2872
|
* @see https://eslint-react.xyz/docs/rules/no-create-ref
|
|
2843
2873
|
*/
|
|
2844
2874
|
'react/no-create-ref'?: Linter.RuleEntry<[]>
|
|
2845
2875
|
/**
|
|
2846
|
-
*
|
|
2876
|
+
* Disallow `defaultProps` property in favor of ES6 default parameters.
|
|
2847
2877
|
* @see https://eslint-react.xyz/docs/rules/no-default-props
|
|
2848
2878
|
*/
|
|
2849
2879
|
'react/no-default-props'?: Linter.RuleEntry<[]>
|
|
2850
2880
|
/**
|
|
2851
|
-
*
|
|
2881
|
+
* Disallow direct mutation of `this.state`.
|
|
2852
2882
|
* @see https://eslint-react.xyz/docs/rules/no-direct-mutation-state
|
|
2853
2883
|
*/
|
|
2854
2884
|
'react/no-direct-mutation-state'?: Linter.RuleEntry<[]>
|
|
2855
2885
|
/**
|
|
2856
|
-
*
|
|
2886
|
+
* Disallow duplicate props in JSX elements.
|
|
2857
2887
|
* @see https://eslint-react.xyz/docs/rules/no-duplicate-jsx-props
|
|
2858
2888
|
*/
|
|
2859
2889
|
'react/no-duplicate-jsx-props'?: Linter.RuleEntry<[]>
|
|
2860
2890
|
/**
|
|
2861
|
-
*
|
|
2891
|
+
* Disallow duplicate `key` on elements in the same array or a list of `children`.
|
|
2862
2892
|
* @see https://eslint-react.xyz/docs/rules/no-duplicate-key
|
|
2863
2893
|
*/
|
|
2864
2894
|
'react/no-duplicate-key'?: Linter.RuleEntry<[]>
|
|
2865
2895
|
/**
|
|
2866
|
-
*
|
|
2896
|
+
* Replaces usages of `forwardRef` with passing `ref` as a prop.
|
|
2867
2897
|
* @see https://eslint-react.xyz/docs/rules/no-forward-ref
|
|
2868
2898
|
*/
|
|
2869
2899
|
'react/no-forward-ref'?: Linter.RuleEntry<[]>
|
|
2870
2900
|
/**
|
|
2871
|
-
*
|
|
2901
|
+
* Prevents `key` from not being explicitly specified (e.g. spreading `key` from objects).
|
|
2872
2902
|
* @see https://eslint-react.xyz/docs/rules/no-implicit-key
|
|
2873
2903
|
*/
|
|
2874
2904
|
'react/no-implicit-key'?: Linter.RuleEntry<[]>
|
|
2875
2905
|
/**
|
|
2876
|
-
*
|
|
2906
|
+
* Prevents problematic leaked values from being rendered.
|
|
2877
2907
|
* @see https://eslint-react.xyz/docs/rules/no-leaked-conditional-rendering
|
|
2878
2908
|
*/
|
|
2879
2909
|
'react/no-leaked-conditional-rendering'?: Linter.RuleEntry<[]>
|
|
2880
2910
|
/**
|
|
2881
|
-
*
|
|
2911
|
+
* Enforces that all components have a `displayName` which can be used in devtools.
|
|
2882
2912
|
* @see https://eslint-react.xyz/docs/rules/no-missing-component-display-name
|
|
2883
2913
|
*/
|
|
2884
2914
|
'react/no-missing-component-display-name'?: Linter.RuleEntry<[]>
|
|
2885
2915
|
/**
|
|
2886
|
-
*
|
|
2916
|
+
* Enforces that all contexts have a `displayName` which can be used in devtools.
|
|
2917
|
+
* @see https://eslint-react.xyz/docs/rules/no-missing-context-display-name
|
|
2918
|
+
*/
|
|
2919
|
+
'react/no-missing-context-display-name'?: Linter.RuleEntry<[]>
|
|
2920
|
+
/**
|
|
2921
|
+
* Disallow missing `key` on items in list rendering.
|
|
2887
2922
|
* @see https://eslint-react.xyz/docs/rules/no-missing-key
|
|
2888
2923
|
*/
|
|
2889
2924
|
'react/no-missing-key'?: Linter.RuleEntry<[]>
|
|
2890
2925
|
/**
|
|
2891
|
-
*
|
|
2892
|
-
* @see https://eslint-react.xyz/docs/rules/no-nested-
|
|
2926
|
+
* Disallow nesting component definitions inside other components.
|
|
2927
|
+
* @see https://eslint-react.xyz/docs/rules/no-nested-component-definitions
|
|
2928
|
+
*/
|
|
2929
|
+
'react/no-nested-component-definitions'?: Linter.RuleEntry<[]>
|
|
2930
|
+
/**
|
|
2931
|
+
* Disallow nesting component definitions inside other components.
|
|
2932
|
+
* @see https://eslint-react.xyz/docs/rules/no-nested-component-definitions
|
|
2893
2933
|
*/
|
|
2894
2934
|
'react/no-nested-components'?: Linter.RuleEntry<[]>
|
|
2895
2935
|
/**
|
|
2896
|
-
*
|
|
2936
|
+
* Disallow `propTypes` in favor of TypeScript or another type-checking solution.
|
|
2897
2937
|
* @see https://eslint-react.xyz/docs/rules/no-prop-types
|
|
2898
2938
|
*/
|
|
2899
2939
|
'react/no-prop-types'?: Linter.RuleEntry<[]>
|
|
2900
2940
|
/**
|
|
2901
|
-
*
|
|
2941
|
+
* Disallow `shouldComponentUpdate` when extending `React.PureComponent`.
|
|
2902
2942
|
* @see https://eslint-react.xyz/docs/rules/no-redundant-should-component-update
|
|
2903
2943
|
*/
|
|
2904
2944
|
'react/no-redundant-should-component-update'?: Linter.RuleEntry<[]>
|
|
2905
2945
|
/**
|
|
2906
|
-
*
|
|
2946
|
+
* Disallow calling `this.setState` in `componentDidMount` outside of functions, such as callbacks.
|
|
2907
2947
|
* @see https://eslint-react.xyz/docs/rules/no-set-state-in-component-did-mount
|
|
2908
2948
|
*/
|
|
2909
2949
|
'react/no-set-state-in-component-did-mount'?: Linter.RuleEntry<[]>
|
|
2910
2950
|
/**
|
|
2911
|
-
*
|
|
2951
|
+
* Disallows calling `this.setState` in `componentDidUpdate` outside of functions, such as callbacks.
|
|
2912
2952
|
* @see https://eslint-react.xyz/docs/rules/no-set-state-in-component-did-update
|
|
2913
2953
|
*/
|
|
2914
2954
|
'react/no-set-state-in-component-did-update'?: Linter.RuleEntry<[]>
|
|
2915
2955
|
/**
|
|
2916
|
-
*
|
|
2956
|
+
* Disallows calling `this.setState` in `componentWillUpdate` outside of functions, such as callbacks.
|
|
2917
2957
|
* @see https://eslint-react.xyz/docs/rules/no-set-state-in-component-will-update
|
|
2918
2958
|
*/
|
|
2919
2959
|
'react/no-set-state-in-component-will-update'?: Linter.RuleEntry<[]>
|
|
2920
2960
|
/**
|
|
2921
|
-
*
|
|
2961
|
+
* Disallow deprecated string `refs`.
|
|
2922
2962
|
* @see https://eslint-react.xyz/docs/rules/no-string-refs
|
|
2923
2963
|
*/
|
|
2924
2964
|
'react/no-string-refs'?: Linter.RuleEntry<[]>
|
|
2925
2965
|
/**
|
|
2926
|
-
*
|
|
2966
|
+
* Warns the usage of `UNSAFE_componentWillMount` in class components.
|
|
2927
2967
|
* @see https://eslint-react.xyz/docs/rules/no-unsafe-component-will-mount
|
|
2928
2968
|
*/
|
|
2929
2969
|
'react/no-unsafe-component-will-mount'?: Linter.RuleEntry<[]>
|
|
2930
2970
|
/**
|
|
2931
|
-
*
|
|
2971
|
+
* Warns the usage of `UNSAFE_componentWillReceiveProps` in class components.
|
|
2932
2972
|
* @see https://eslint-react.xyz/docs/rules/no-unsafe-component-will-receive-props
|
|
2933
2973
|
*/
|
|
2934
2974
|
'react/no-unsafe-component-will-receive-props'?: Linter.RuleEntry<[]>
|
|
2935
2975
|
/**
|
|
2936
|
-
*
|
|
2976
|
+
* Warns the usage of `UNSAFE_componentWillUpdate` in class components.
|
|
2937
2977
|
* @see https://eslint-react.xyz/docs/rules/no-unsafe-component-will-update
|
|
2938
2978
|
*/
|
|
2939
2979
|
'react/no-unsafe-component-will-update'?: Linter.RuleEntry<[]>
|
|
2940
2980
|
/**
|
|
2941
|
-
*
|
|
2981
|
+
* Prevents non-stable values (i.e. object literals) from being used as a value for `Context.Provider`.
|
|
2942
2982
|
* @see https://eslint-react.xyz/docs/rules/no-unstable-context-value
|
|
2943
2983
|
*/
|
|
2944
2984
|
'react/no-unstable-context-value'?: Linter.RuleEntry<[]>
|
|
2945
2985
|
/**
|
|
2946
|
-
*
|
|
2986
|
+
* Prevents using referential-type values as default props in object destructuring.
|
|
2947
2987
|
* @see https://eslint-react.xyz/docs/rules/no-unstable-default-props
|
|
2948
2988
|
*/
|
|
2949
2989
|
'react/no-unstable-default-props'?: Linter.RuleEntry<[]>
|
|
2950
2990
|
/**
|
|
2951
|
-
*
|
|
2991
|
+
* Warns unused class component methods and properties.
|
|
2952
2992
|
* @see https://eslint-react.xyz/docs/rules/no-unused-class-component-members
|
|
2953
2993
|
*/
|
|
2954
2994
|
'react/no-unused-class-component-members'?: Linter.RuleEntry<[]>
|
|
2955
2995
|
/**
|
|
2956
|
-
*
|
|
2996
|
+
* Warns unused class component state.
|
|
2957
2997
|
* @see https://eslint-react.xyz/docs/rules/no-unused-state
|
|
2958
2998
|
*/
|
|
2959
2999
|
'react/no-unused-state'?: Linter.RuleEntry<[]>
|
|
2960
3000
|
/**
|
|
2961
|
-
*
|
|
3001
|
+
* Replaces usages of `useContext` with `use`.
|
|
2962
3002
|
* @see https://eslint-react.xyz/docs/rules/no-use-context
|
|
2963
3003
|
*/
|
|
2964
3004
|
'react/no-use-context'?: Linter.RuleEntry<[]>
|
|
2965
3005
|
/**
|
|
2966
|
-
*
|
|
3006
|
+
* Disallow useless `forwardRef` calls on components that don't use `ref`s.
|
|
3007
|
+
* @see https://eslint-react.xyz/docs/rules/no-useless-forward-ref
|
|
3008
|
+
*/
|
|
3009
|
+
'react/no-useless-forward-ref'?: Linter.RuleEntry<[]>
|
|
3010
|
+
/**
|
|
3011
|
+
* Disallow useless fragment elements.
|
|
2967
3012
|
* @see https://eslint-react.xyz/docs/rules/no-useless-fragment
|
|
2968
3013
|
*/
|
|
2969
3014
|
'react/no-useless-fragment'?: Linter.RuleEntry<ReactNoUselessFragment>
|
|
2970
3015
|
/**
|
|
2971
|
-
*
|
|
3016
|
+
* Enforces destructuring assignment for component props and context.
|
|
2972
3017
|
* @see https://eslint-react.xyz/docs/rules/prefer-destructuring-assignment
|
|
2973
3018
|
*/
|
|
2974
3019
|
'react/prefer-destructuring-assignment'?: Linter.RuleEntry<[]>
|
|
2975
3020
|
/**
|
|
2976
|
-
*
|
|
3021
|
+
* Enforces React is imported via a namespace import.
|
|
2977
3022
|
* @see https://eslint-react.xyz/docs/rules/prefer-react-namespace-import
|
|
2978
3023
|
*/
|
|
2979
3024
|
'react/prefer-react-namespace-import'?: Linter.RuleEntry<[]>
|
|
2980
3025
|
/**
|
|
2981
|
-
*
|
|
3026
|
+
* Enforces read-only props in components.
|
|
2982
3027
|
* @see https://eslint-react.xyz/docs/rules/prefer-read-only-props
|
|
2983
3028
|
*/
|
|
2984
3029
|
'react/prefer-read-only-props'?: Linter.RuleEntry<[]>
|
|
2985
3030
|
/**
|
|
2986
|
-
*
|
|
3031
|
+
* Enforces shorthand syntax for boolean attributes.
|
|
2987
3032
|
* @see https://eslint-react.xyz/docs/rules/prefer-shorthand-boolean
|
|
2988
3033
|
*/
|
|
2989
3034
|
'react/prefer-shorthand-boolean'?: Linter.RuleEntry<[]>
|
|
2990
3035
|
/**
|
|
2991
|
-
*
|
|
3036
|
+
* Enforces shorthand syntax for fragments.
|
|
2992
3037
|
* @see https://eslint-react.xyz/docs/rules/prefer-shorthand-fragment
|
|
2993
3038
|
*/
|
|
2994
3039
|
'react/prefer-shorthand-fragment'?: Linter.RuleEntry<[]>
|
|
2995
3040
|
/**
|
|
2996
|
-
*
|
|
3041
|
+
* Marks variables used in JSX as used.
|
|
2997
3042
|
* @see https://eslint-react.xyz/docs/rules/use-jsx-vars
|
|
2998
3043
|
*/
|
|
2999
3044
|
'react/use-jsx-vars'?: Linter.RuleEntry<[]>
|
|
@@ -4660,7 +4705,7 @@ interface RuleOptions {
|
|
|
4660
4705
|
*/
|
|
4661
4706
|
'ts/no-for-in-array'?: Linter.RuleEntry<[]>
|
|
4662
4707
|
/**
|
|
4663
|
-
* Disallow the use of `eval()`-like
|
|
4708
|
+
* Disallow the use of `eval()`-like functions
|
|
4664
4709
|
* @see https://typescript-eslint.io/rules/no-implied-eval
|
|
4665
4710
|
*/
|
|
4666
4711
|
'ts/no-implied-eval'?: Linter.RuleEntry<[]>
|
|
@@ -5954,12 +5999,6 @@ interface RuleOptions {
|
|
|
5954
5999
|
* @see https://eslint.vuejs.org/rules/component-options-name-casing.html
|
|
5955
6000
|
*/
|
|
5956
6001
|
'vue/component-options-name-casing'?: Linter.RuleEntry<VueComponentOptionsNameCasing>
|
|
5957
|
-
/**
|
|
5958
|
-
* enforce order of component top-level elements
|
|
5959
|
-
* @see https://eslint.vuejs.org/rules/component-tags-order.html
|
|
5960
|
-
* @deprecated
|
|
5961
|
-
*/
|
|
5962
|
-
'vue/component-tags-order'?: Linter.RuleEntry<VueComponentTagsOrder>
|
|
5963
6002
|
/**
|
|
5964
6003
|
* enforce specific casing for custom event name
|
|
5965
6004
|
* @see https://eslint.vuejs.org/rules/custom-event-name-casing.html
|
|
@@ -6026,7 +6065,7 @@ interface RuleOptions {
|
|
|
6026
6065
|
*/
|
|
6027
6066
|
'vue/html-closing-bracket-spacing'?: Linter.RuleEntry<VueHtmlClosingBracketSpacing>
|
|
6028
6067
|
/**
|
|
6029
|
-
* enforce unified line
|
|
6068
|
+
* enforce unified line break in HTML comments
|
|
6030
6069
|
* @see https://eslint.vuejs.org/rules/html-comment-content-newline.html
|
|
6031
6070
|
*/
|
|
6032
6071
|
'vue/html-comment-content-newline'?: Linter.RuleEntry<VueHtmlCommentContentNewline>
|
|
@@ -6336,11 +6375,15 @@ interface RuleOptions {
|
|
|
6336
6375
|
*/
|
|
6337
6376
|
'vue/no-extra-parens'?: Linter.RuleEntry<VueNoExtraParens>
|
|
6338
6377
|
/**
|
|
6339
|
-
*
|
|
6340
|
-
* @see https://eslint.vuejs.org/rules/no-
|
|
6341
|
-
* @deprecated
|
|
6378
|
+
* Disallow shorthand type conversions in `<template>`
|
|
6379
|
+
* @see https://eslint.vuejs.org/rules/no-implicit-coercion.html
|
|
6342
6380
|
*/
|
|
6343
|
-
'vue/no-
|
|
6381
|
+
'vue/no-implicit-coercion'?: Linter.RuleEntry<VueNoImplicitCoercion>
|
|
6382
|
+
/**
|
|
6383
|
+
* disallow importing Vue compiler macros
|
|
6384
|
+
* @see https://eslint.vuejs.org/rules/no-import-compiler-macros.html
|
|
6385
|
+
*/
|
|
6386
|
+
'vue/no-import-compiler-macros'?: Linter.RuleEntry<[]>
|
|
6344
6387
|
/**
|
|
6345
6388
|
* disallow irregular whitespace in `.vue` files
|
|
6346
6389
|
* @see https://eslint.vuejs.org/rules/no-irregular-whitespace.html
|
|
@@ -6367,12 +6410,12 @@ interface RuleOptions {
|
|
|
6367
6410
|
*/
|
|
6368
6411
|
'vue/no-multi-spaces'?: Linter.RuleEntry<VueNoMultiSpaces>
|
|
6369
6412
|
/**
|
|
6370
|
-
* disallow
|
|
6413
|
+
* disallow passing multiple objects in an array to class
|
|
6371
6414
|
* @see https://eslint.vuejs.org/rules/no-multiple-objects-in-class.html
|
|
6372
6415
|
*/
|
|
6373
6416
|
'vue/no-multiple-objects-in-class'?: Linter.RuleEntry<[]>
|
|
6374
6417
|
/**
|
|
6375
|
-
* disallow
|
|
6418
|
+
* disallow passing multiple arguments to scoped slots
|
|
6376
6419
|
* @see https://eslint.vuejs.org/rules/no-multiple-slot-args.html
|
|
6377
6420
|
*/
|
|
6378
6421
|
'vue/no-multiple-slot-args'?: Linter.RuleEntry<[]>
|
|
@@ -6401,12 +6444,6 @@ interface RuleOptions {
|
|
|
6401
6444
|
* @see https://eslint.vuejs.org/rules/no-ref-as-operand.html
|
|
6402
6445
|
*/
|
|
6403
6446
|
'vue/no-ref-as-operand'?: Linter.RuleEntry<[]>
|
|
6404
|
-
/**
|
|
6405
|
-
* disallow usages of ref objects that can lead to loss of reactivity
|
|
6406
|
-
* @see https://eslint.vuejs.org/rules/no-ref-object-destructure.html
|
|
6407
|
-
* @deprecated
|
|
6408
|
-
*/
|
|
6409
|
-
'vue/no-ref-object-destructure'?: Linter.RuleEntry<[]>
|
|
6410
6447
|
/**
|
|
6411
6448
|
* disallow usages of ref objects that can lead to loss of reactivity
|
|
6412
6449
|
* @see https://eslint.vuejs.org/rules/no-ref-object-reactivity-loss.html
|
|
@@ -6497,12 +6534,6 @@ interface RuleOptions {
|
|
|
6497
6534
|
* @see https://eslint.vuejs.org/rules/no-root-v-if.html
|
|
6498
6535
|
*/
|
|
6499
6536
|
'vue/no-root-v-if'?: Linter.RuleEntry<[]>
|
|
6500
|
-
/**
|
|
6501
|
-
* disallow usages that lose the reactivity of `props` passed to `setup`
|
|
6502
|
-
* @see https://eslint.vuejs.org/rules/no-setup-props-destructure.html
|
|
6503
|
-
* @deprecated
|
|
6504
|
-
*/
|
|
6505
|
-
'vue/no-setup-props-destructure'?: Linter.RuleEntry<[]>
|
|
6506
6537
|
/**
|
|
6507
6538
|
* disallow usages that lose the reactivity of `props` passed to `setup`
|
|
6508
6539
|
* @see https://eslint.vuejs.org/rules/no-setup-props-reactivity-loss.html
|
|
@@ -6636,6 +6667,7 @@ interface RuleOptions {
|
|
|
6636
6667
|
/**
|
|
6637
6668
|
* disallow `key` attribute on `<template v-for>`
|
|
6638
6669
|
* @see https://eslint.vuejs.org/rules/no-v-for-template-key.html
|
|
6670
|
+
* @deprecated
|
|
6639
6671
|
*/
|
|
6640
6672
|
'vue/no-v-for-template-key'?: Linter.RuleEntry<[]>
|
|
6641
6673
|
/**
|
|
@@ -6651,6 +6683,7 @@ interface RuleOptions {
|
|
|
6651
6683
|
/**
|
|
6652
6684
|
* disallow adding an argument to `v-model` used in custom component
|
|
6653
6685
|
* @see https://eslint.vuejs.org/rules/no-v-model-argument.html
|
|
6686
|
+
* @deprecated
|
|
6654
6687
|
*/
|
|
6655
6688
|
'vue/no-v-model-argument'?: Linter.RuleEntry<[]>
|
|
6656
6689
|
/**
|
|
@@ -6883,12 +6916,6 @@ interface RuleOptions {
|
|
|
6883
6916
|
* @see https://eslint.vuejs.org/rules/script-indent.html
|
|
6884
6917
|
*/
|
|
6885
6918
|
'vue/script-indent'?: Linter.RuleEntry<VueScriptIndent>
|
|
6886
|
-
/**
|
|
6887
|
-
* prevent `<script setup>` variables used in `<template>` to be marked as unused
|
|
6888
|
-
* @see https://eslint.vuejs.org/rules/script-setup-uses-vars.html
|
|
6889
|
-
* @deprecated
|
|
6890
|
-
*/
|
|
6891
|
-
'vue/script-setup-uses-vars'?: Linter.RuleEntry<[]>
|
|
6892
6919
|
/**
|
|
6893
6920
|
* require a line break before and after the contents of a singleline element
|
|
6894
6921
|
* @see https://eslint.vuejs.org/rules/singleline-html-element-content-newline.html
|
|
@@ -6959,12 +6986,6 @@ interface RuleOptions {
|
|
|
6959
6986
|
* @see https://eslint.vuejs.org/rules/v-on-event-hyphenation.html
|
|
6960
6987
|
*/
|
|
6961
6988
|
'vue/v-on-event-hyphenation'?: Linter.RuleEntry<VueVOnEventHyphenation>
|
|
6962
|
-
/**
|
|
6963
|
-
* enforce or forbid parentheses after method calls without arguments in `v-on` directives
|
|
6964
|
-
* @see https://eslint.vuejs.org/rules/v-on-function-call.html
|
|
6965
|
-
* @deprecated
|
|
6966
|
-
*/
|
|
6967
|
-
'vue/v-on-function-call'?: Linter.RuleEntry<VueVOnFunctionCall>
|
|
6968
6989
|
/**
|
|
6969
6990
|
* enforce writing style for handlers in `v-on` directives
|
|
6970
6991
|
* @see https://eslint.vuejs.org/rules/v-on-handler-style.html
|
|
@@ -7003,6 +7024,7 @@ interface RuleOptions {
|
|
|
7003
7024
|
/**
|
|
7004
7025
|
* require valid keys in model option
|
|
7005
7026
|
* @see https://eslint.vuejs.org/rules/valid-model-definition.html
|
|
7027
|
+
* @deprecated
|
|
7006
7028
|
*/
|
|
7007
7029
|
'vue/valid-model-definition'?: Linter.RuleEntry<[]>
|
|
7008
7030
|
/**
|
|
@@ -7023,6 +7045,7 @@ interface RuleOptions {
|
|
|
7023
7045
|
/**
|
|
7024
7046
|
* enforce valid `.sync` modifier on `v-bind` directives
|
|
7025
7047
|
* @see https://eslint.vuejs.org/rules/valid-v-bind-sync.html
|
|
7048
|
+
* @deprecated
|
|
7026
7049
|
*/
|
|
7027
7050
|
'vue/valid-v-bind-sync'?: Linter.RuleEntry<[]>
|
|
7028
7051
|
/**
|
|
@@ -7543,7 +7566,7 @@ type IdMatch = []|[string]|[string, {
|
|
|
7543
7566
|
// ----- implicit-arrow-linebreak -----
|
|
7544
7567
|
type ImplicitArrowLinebreak = []|[("beside" | "below")]
|
|
7545
7568
|
// ----- import/consistent-type-specifier-style -----
|
|
7546
|
-
type ImportConsistentTypeSpecifierStyle = []|[("prefer-
|
|
7569
|
+
type ImportConsistentTypeSpecifierStyle = []|[("prefer-top-level" | "prefer-inline")]
|
|
7547
7570
|
// ----- import/dynamic-import-chunkname -----
|
|
7548
7571
|
type ImportDynamicImportChunkname = []|[{
|
|
7549
7572
|
importFunctions?: string[]
|
|
@@ -7763,6 +7786,17 @@ type ImportOrder = []|[{
|
|
|
7763
7786
|
position?: ("after" | "before")
|
|
7764
7787
|
}[]
|
|
7765
7788
|
"newlines-between"?: ("ignore" | "always" | "always-and-inside-groups" | "never")
|
|
7789
|
+
"newlines-between-types"?: ("ignore" | "always" | "always-and-inside-groups" | "never")
|
|
7790
|
+
consolidateIslands?: ("inside-groups" | "never")
|
|
7791
|
+
sortTypesGroup?: boolean
|
|
7792
|
+
named?: (boolean | {
|
|
7793
|
+
enabled?: boolean
|
|
7794
|
+
import?: boolean
|
|
7795
|
+
export?: boolean
|
|
7796
|
+
require?: boolean
|
|
7797
|
+
cjsExports?: boolean
|
|
7798
|
+
types?: ("mixed" | "types-first" | "types-last")
|
|
7799
|
+
})
|
|
7766
7800
|
alphabetize?: {
|
|
7767
7801
|
caseInsensitive?: boolean
|
|
7768
7802
|
order?: ("ignore" | "asc" | "desc")
|
|
@@ -9829,6 +9863,14 @@ type PaddingLineBetweenStatements = {
|
|
|
9829
9863
|
// ----- perfectionist/sort-array-includes -----
|
|
9830
9864
|
type PerfectionistSortArrayIncludes = {
|
|
9831
9865
|
|
|
9866
|
+
fallbackSort?: {
|
|
9867
|
+
|
|
9868
|
+
order?: ("asc" | "desc")
|
|
9869
|
+
|
|
9870
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
9871
|
+
[k: string]: unknown | undefined
|
|
9872
|
+
}
|
|
9873
|
+
|
|
9832
9874
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
9833
9875
|
|
|
9834
9876
|
ignoreCase?: boolean
|
|
@@ -9839,47 +9881,99 @@ type PerfectionistSortArrayIncludes = {
|
|
|
9839
9881
|
|
|
9840
9882
|
order?: ("asc" | "desc")
|
|
9841
9883
|
|
|
9884
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
9885
|
+
|
|
9842
9886
|
groupKind?: ("mixed" | "literals-first" | "spreads-first")
|
|
9843
9887
|
|
|
9844
9888
|
customGroups?: ({
|
|
9845
9889
|
|
|
9846
|
-
|
|
9890
|
+
newlinesInside?: ("always" | "never")
|
|
9891
|
+
|
|
9892
|
+
fallbackSort?: {
|
|
9893
|
+
|
|
9894
|
+
order?: ("asc" | "desc")
|
|
9895
|
+
|
|
9896
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
9897
|
+
[k: string]: unknown | undefined
|
|
9898
|
+
}
|
|
9847
9899
|
|
|
9848
|
-
|
|
9900
|
+
groupName?: string
|
|
9849
9901
|
|
|
9850
|
-
order?: ("
|
|
9902
|
+
order?: ("asc" | "desc")
|
|
9851
9903
|
|
|
9852
|
-
|
|
9904
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
9853
9905
|
anyOf?: {
|
|
9854
9906
|
|
|
9855
9907
|
selector?: ("literal" | "spread")
|
|
9856
9908
|
|
|
9857
|
-
elementNamePattern?:
|
|
9909
|
+
elementNamePattern?: (({
|
|
9910
|
+
pattern?: string
|
|
9911
|
+
flags?: string
|
|
9912
|
+
} | string)[] | ({
|
|
9913
|
+
pattern?: string
|
|
9914
|
+
flags?: string
|
|
9915
|
+
} | string))
|
|
9858
9916
|
}[]
|
|
9859
9917
|
} | {
|
|
9860
9918
|
|
|
9861
|
-
|
|
9919
|
+
newlinesInside?: ("always" | "never")
|
|
9862
9920
|
|
|
9863
|
-
|
|
9921
|
+
fallbackSort?: {
|
|
9922
|
+
|
|
9923
|
+
order?: ("asc" | "desc")
|
|
9924
|
+
|
|
9925
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
9926
|
+
[k: string]: unknown | undefined
|
|
9927
|
+
}
|
|
9864
9928
|
|
|
9865
|
-
|
|
9929
|
+
groupName?: string
|
|
9866
9930
|
|
|
9867
|
-
|
|
9931
|
+
order?: ("asc" | "desc")
|
|
9932
|
+
|
|
9933
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
9868
9934
|
|
|
9869
9935
|
selector?: ("literal" | "spread")
|
|
9870
9936
|
|
|
9871
|
-
elementNamePattern?:
|
|
9937
|
+
elementNamePattern?: (({
|
|
9938
|
+
pattern?: string
|
|
9939
|
+
flags?: string
|
|
9940
|
+
} | string)[] | ({
|
|
9941
|
+
pattern?: string
|
|
9942
|
+
flags?: string
|
|
9943
|
+
} | string))
|
|
9872
9944
|
})[]
|
|
9873
9945
|
useConfigurationIf?: {
|
|
9874
|
-
|
|
9946
|
+
|
|
9947
|
+
allNamesMatchPattern?: (({
|
|
9948
|
+
pattern?: string
|
|
9949
|
+
flags?: string
|
|
9950
|
+
} | string)[] | ({
|
|
9951
|
+
pattern?: string
|
|
9952
|
+
flags?: string
|
|
9953
|
+
} | string))
|
|
9875
9954
|
}
|
|
9876
9955
|
|
|
9877
|
-
|
|
9878
|
-
|
|
9879
|
-
|
|
9880
|
-
|
|
9881
|
-
|
|
9882
|
-
|
|
9956
|
+
partitionByComment?: (boolean | (({
|
|
9957
|
+
pattern?: string
|
|
9958
|
+
flags?: string
|
|
9959
|
+
} | string)[] | ({
|
|
9960
|
+
pattern?: string
|
|
9961
|
+
flags?: string
|
|
9962
|
+
} | string)) | {
|
|
9963
|
+
block?: (boolean | (({
|
|
9964
|
+
pattern?: string
|
|
9965
|
+
flags?: string
|
|
9966
|
+
} | string)[] | ({
|
|
9967
|
+
pattern?: string
|
|
9968
|
+
flags?: string
|
|
9969
|
+
} | string)))
|
|
9970
|
+
line?: (boolean | (({
|
|
9971
|
+
pattern?: string
|
|
9972
|
+
flags?: string
|
|
9973
|
+
} | string)[] | ({
|
|
9974
|
+
pattern?: string
|
|
9975
|
+
flags?: string
|
|
9976
|
+
} | string)))
|
|
9883
9977
|
})
|
|
9884
9978
|
|
|
9885
9979
|
partitionByNewLine?: boolean
|
|
@@ -9889,12 +9983,19 @@ type PerfectionistSortArrayIncludes = {
|
|
|
9889
9983
|
groups?: (string | string[] | {
|
|
9890
9984
|
|
|
9891
9985
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
9892
|
-
[k: string]: unknown | undefined
|
|
9893
9986
|
})[]
|
|
9894
9987
|
}[]
|
|
9895
9988
|
// ----- perfectionist/sort-classes -----
|
|
9896
9989
|
type PerfectionistSortClasses = []|[{
|
|
9897
9990
|
|
|
9991
|
+
fallbackSort?: {
|
|
9992
|
+
|
|
9993
|
+
order?: ("asc" | "desc")
|
|
9994
|
+
|
|
9995
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
9996
|
+
[k: string]: unknown | undefined
|
|
9997
|
+
}
|
|
9998
|
+
|
|
9898
9999
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
9899
10000
|
|
|
9900
10001
|
ignoreCase?: boolean
|
|
@@ -9905,71 +10006,153 @@ type PerfectionistSortClasses = []|[{
|
|
|
9905
10006
|
|
|
9906
10007
|
order?: ("asc" | "desc")
|
|
9907
10008
|
|
|
9908
|
-
|
|
10009
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
9909
10010
|
|
|
9910
10011
|
customGroups?: ({
|
|
9911
10012
|
|
|
9912
|
-
|
|
10013
|
+
newlinesInside?: ("always" | "never")
|
|
10014
|
+
|
|
10015
|
+
fallbackSort?: {
|
|
10016
|
+
|
|
10017
|
+
order?: ("asc" | "desc")
|
|
10018
|
+
|
|
10019
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10020
|
+
[k: string]: unknown | undefined
|
|
10021
|
+
}
|
|
9913
10022
|
|
|
9914
|
-
|
|
10023
|
+
groupName?: string
|
|
9915
10024
|
|
|
9916
|
-
order?: ("
|
|
10025
|
+
order?: ("asc" | "desc")
|
|
9917
10026
|
|
|
9918
|
-
|
|
10027
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
9919
10028
|
anyOf?: {
|
|
9920
10029
|
|
|
9921
|
-
decoratorNamePattern?: string
|
|
9922
|
-
|
|
9923
10030
|
modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[]
|
|
9924
10031
|
|
|
9925
10032
|
selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method")
|
|
9926
10033
|
|
|
9927
|
-
|
|
10034
|
+
decoratorNamePattern?: (({
|
|
10035
|
+
pattern?: string
|
|
10036
|
+
flags?: string
|
|
10037
|
+
} | string)[] | ({
|
|
10038
|
+
pattern?: string
|
|
10039
|
+
flags?: string
|
|
10040
|
+
} | string))
|
|
10041
|
+
|
|
10042
|
+
elementValuePattern?: (({
|
|
10043
|
+
pattern?: string
|
|
10044
|
+
flags?: string
|
|
10045
|
+
} | string)[] | ({
|
|
10046
|
+
pattern?: string
|
|
10047
|
+
flags?: string
|
|
10048
|
+
} | string))
|
|
9928
10049
|
|
|
9929
|
-
elementNamePattern?:
|
|
10050
|
+
elementNamePattern?: (({
|
|
10051
|
+
pattern?: string
|
|
10052
|
+
flags?: string
|
|
10053
|
+
} | string)[] | ({
|
|
10054
|
+
pattern?: string
|
|
10055
|
+
flags?: string
|
|
10056
|
+
} | string))
|
|
9930
10057
|
}[]
|
|
9931
10058
|
} | {
|
|
9932
10059
|
|
|
9933
|
-
|
|
10060
|
+
newlinesInside?: ("always" | "never")
|
|
9934
10061
|
|
|
9935
|
-
|
|
10062
|
+
fallbackSort?: {
|
|
10063
|
+
|
|
10064
|
+
order?: ("asc" | "desc")
|
|
10065
|
+
|
|
10066
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10067
|
+
[k: string]: unknown | undefined
|
|
10068
|
+
}
|
|
9936
10069
|
|
|
9937
|
-
|
|
10070
|
+
groupName?: string
|
|
9938
10071
|
|
|
9939
|
-
|
|
10072
|
+
order?: ("asc" | "desc")
|
|
9940
10073
|
|
|
9941
|
-
|
|
10074
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
9942
10075
|
|
|
9943
10076
|
modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[]
|
|
9944
10077
|
|
|
9945
10078
|
selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method")
|
|
9946
10079
|
|
|
9947
|
-
|
|
10080
|
+
decoratorNamePattern?: (({
|
|
10081
|
+
pattern?: string
|
|
10082
|
+
flags?: string
|
|
10083
|
+
} | string)[] | ({
|
|
10084
|
+
pattern?: string
|
|
10085
|
+
flags?: string
|
|
10086
|
+
} | string))
|
|
10087
|
+
|
|
10088
|
+
elementValuePattern?: (({
|
|
10089
|
+
pattern?: string
|
|
10090
|
+
flags?: string
|
|
10091
|
+
} | string)[] | ({
|
|
10092
|
+
pattern?: string
|
|
10093
|
+
flags?: string
|
|
10094
|
+
} | string))
|
|
9948
10095
|
|
|
9949
|
-
elementNamePattern?:
|
|
10096
|
+
elementNamePattern?: (({
|
|
10097
|
+
pattern?: string
|
|
10098
|
+
flags?: string
|
|
10099
|
+
} | string)[] | ({
|
|
10100
|
+
pattern?: string
|
|
10101
|
+
flags?: string
|
|
10102
|
+
} | string))
|
|
9950
10103
|
})[]
|
|
9951
10104
|
|
|
9952
|
-
|
|
9953
|
-
|
|
9954
|
-
|
|
9955
|
-
|
|
10105
|
+
ignoreCallbackDependenciesPatterns?: (({
|
|
10106
|
+
pattern?: string
|
|
10107
|
+
flags?: string
|
|
10108
|
+
} | string)[] | ({
|
|
10109
|
+
pattern?: string
|
|
10110
|
+
flags?: string
|
|
10111
|
+
} | string))
|
|
10112
|
+
|
|
10113
|
+
partitionByComment?: (boolean | (({
|
|
10114
|
+
pattern?: string
|
|
10115
|
+
flags?: string
|
|
10116
|
+
} | string)[] | ({
|
|
10117
|
+
pattern?: string
|
|
10118
|
+
flags?: string
|
|
10119
|
+
} | string)) | {
|
|
10120
|
+
block?: (boolean | (({
|
|
10121
|
+
pattern?: string
|
|
10122
|
+
flags?: string
|
|
10123
|
+
} | string)[] | ({
|
|
10124
|
+
pattern?: string
|
|
10125
|
+
flags?: string
|
|
10126
|
+
} | string)))
|
|
10127
|
+
line?: (boolean | (({
|
|
10128
|
+
pattern?: string
|
|
10129
|
+
flags?: string
|
|
10130
|
+
} | string)[] | ({
|
|
10131
|
+
pattern?: string
|
|
10132
|
+
flags?: string
|
|
10133
|
+
} | string)))
|
|
9956
10134
|
})
|
|
9957
10135
|
|
|
9958
10136
|
partitionByNewLine?: boolean
|
|
9959
10137
|
|
|
9960
10138
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
9961
10139
|
|
|
9962
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom")
|
|
9963
|
-
|
|
9964
10140
|
groups?: (string | string[] | {
|
|
9965
10141
|
|
|
9966
10142
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
9967
|
-
[k: string]: unknown | undefined
|
|
9968
10143
|
})[]
|
|
9969
10144
|
}]
|
|
9970
10145
|
// ----- perfectionist/sort-decorators -----
|
|
9971
10146
|
type PerfectionistSortDecorators = []|[{
|
|
9972
10147
|
|
|
10148
|
+
fallbackSort?: {
|
|
10149
|
+
|
|
10150
|
+
order?: ("asc" | "desc")
|
|
10151
|
+
|
|
10152
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10153
|
+
[k: string]: unknown | undefined
|
|
10154
|
+
}
|
|
10155
|
+
|
|
9973
10156
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
9974
10157
|
|
|
9975
10158
|
ignoreCase?: boolean
|
|
@@ -9980,6 +10163,8 @@ type PerfectionistSortDecorators = []|[{
|
|
|
9980
10163
|
|
|
9981
10164
|
order?: ("asc" | "desc")
|
|
9982
10165
|
|
|
10166
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10167
|
+
|
|
9983
10168
|
sortOnParameters?: boolean
|
|
9984
10169
|
|
|
9985
10170
|
sortOnProperties?: boolean
|
|
@@ -9990,27 +10175,49 @@ type PerfectionistSortDecorators = []|[{
|
|
|
9990
10175
|
|
|
9991
10176
|
sortOnClasses?: boolean
|
|
9992
10177
|
|
|
9993
|
-
partitionByComment?: (
|
|
9994
|
-
|
|
9995
|
-
|
|
9996
|
-
|
|
10178
|
+
partitionByComment?: (boolean | (({
|
|
10179
|
+
pattern?: string
|
|
10180
|
+
flags?: string
|
|
10181
|
+
} | string)[] | ({
|
|
10182
|
+
pattern?: string
|
|
10183
|
+
flags?: string
|
|
10184
|
+
} | string)) | {
|
|
10185
|
+
block?: (boolean | (({
|
|
10186
|
+
pattern?: string
|
|
10187
|
+
flags?: string
|
|
10188
|
+
} | string)[] | ({
|
|
10189
|
+
pattern?: string
|
|
10190
|
+
flags?: string
|
|
10191
|
+
} | string)))
|
|
10192
|
+
line?: (boolean | (({
|
|
10193
|
+
pattern?: string
|
|
10194
|
+
flags?: string
|
|
10195
|
+
} | string)[] | ({
|
|
10196
|
+
pattern?: string
|
|
10197
|
+
flags?: string
|
|
10198
|
+
} | string)))
|
|
9997
10199
|
})
|
|
9998
10200
|
|
|
9999
10201
|
customGroups?: {
|
|
10000
10202
|
[k: string]: (string | string[]) | undefined
|
|
10001
10203
|
}
|
|
10002
10204
|
|
|
10003
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom")
|
|
10004
|
-
|
|
10005
10205
|
groups?: (string | string[] | {
|
|
10006
10206
|
|
|
10007
10207
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10008
|
-
[k: string]: unknown | undefined
|
|
10009
10208
|
})[]
|
|
10010
10209
|
}]
|
|
10011
10210
|
// ----- perfectionist/sort-enums -----
|
|
10012
10211
|
type PerfectionistSortEnums = []|[{
|
|
10013
10212
|
|
|
10213
|
+
fallbackSort?: {
|
|
10214
|
+
|
|
10215
|
+
order?: ("asc" | "desc")
|
|
10216
|
+
|
|
10217
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10218
|
+
[k: string]: unknown | undefined
|
|
10219
|
+
}
|
|
10220
|
+
|
|
10014
10221
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
10015
10222
|
|
|
10016
10223
|
ignoreCase?: boolean
|
|
@@ -10021,62 +10228,126 @@ type PerfectionistSortEnums = []|[{
|
|
|
10021
10228
|
|
|
10022
10229
|
order?: ("asc" | "desc")
|
|
10023
10230
|
|
|
10231
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10232
|
+
|
|
10024
10233
|
forceNumericSort?: boolean
|
|
10025
10234
|
customGroups?: ({
|
|
10026
10235
|
[k: string]: (string | string[]) | undefined
|
|
10027
10236
|
} | ({
|
|
10028
10237
|
|
|
10029
|
-
|
|
10238
|
+
newlinesInside?: ("always" | "never")
|
|
10030
10239
|
|
|
10031
|
-
|
|
10240
|
+
fallbackSort?: {
|
|
10241
|
+
|
|
10242
|
+
order?: ("asc" | "desc")
|
|
10243
|
+
|
|
10244
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10245
|
+
[k: string]: unknown | undefined
|
|
10246
|
+
}
|
|
10032
10247
|
|
|
10033
|
-
|
|
10248
|
+
groupName?: string
|
|
10034
10249
|
|
|
10035
|
-
|
|
10250
|
+
order?: ("asc" | "desc")
|
|
10251
|
+
|
|
10252
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10036
10253
|
anyOf?: {
|
|
10037
10254
|
|
|
10038
|
-
elementValuePattern?:
|
|
10255
|
+
elementValuePattern?: (({
|
|
10256
|
+
pattern?: string
|
|
10257
|
+
flags?: string
|
|
10258
|
+
} | string)[] | ({
|
|
10259
|
+
pattern?: string
|
|
10260
|
+
flags?: string
|
|
10261
|
+
} | string))
|
|
10039
10262
|
|
|
10040
|
-
elementNamePattern?:
|
|
10263
|
+
elementNamePattern?: (({
|
|
10264
|
+
pattern?: string
|
|
10265
|
+
flags?: string
|
|
10266
|
+
} | string)[] | ({
|
|
10267
|
+
pattern?: string
|
|
10268
|
+
flags?: string
|
|
10269
|
+
} | string))
|
|
10041
10270
|
}[]
|
|
10042
10271
|
} | {
|
|
10043
10272
|
|
|
10044
|
-
|
|
10273
|
+
newlinesInside?: ("always" | "never")
|
|
10274
|
+
|
|
10275
|
+
fallbackSort?: {
|
|
10276
|
+
|
|
10277
|
+
order?: ("asc" | "desc")
|
|
10278
|
+
|
|
10279
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10280
|
+
[k: string]: unknown | undefined
|
|
10281
|
+
}
|
|
10045
10282
|
|
|
10046
|
-
|
|
10283
|
+
groupName?: string
|
|
10047
10284
|
|
|
10048
|
-
order?: ("
|
|
10285
|
+
order?: ("asc" | "desc")
|
|
10049
10286
|
|
|
10050
|
-
|
|
10287
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10051
10288
|
|
|
10052
|
-
elementValuePattern?:
|
|
10289
|
+
elementValuePattern?: (({
|
|
10290
|
+
pattern?: string
|
|
10291
|
+
flags?: string
|
|
10292
|
+
} | string)[] | ({
|
|
10293
|
+
pattern?: string
|
|
10294
|
+
flags?: string
|
|
10295
|
+
} | string))
|
|
10053
10296
|
|
|
10054
|
-
elementNamePattern?:
|
|
10297
|
+
elementNamePattern?: (({
|
|
10298
|
+
pattern?: string
|
|
10299
|
+
flags?: string
|
|
10300
|
+
} | string)[] | ({
|
|
10301
|
+
pattern?: string
|
|
10302
|
+
flags?: string
|
|
10303
|
+
} | string))
|
|
10055
10304
|
})[])
|
|
10056
10305
|
|
|
10057
10306
|
sortByValue?: boolean
|
|
10058
10307
|
|
|
10059
|
-
partitionByComment?: (
|
|
10060
|
-
|
|
10061
|
-
|
|
10062
|
-
|
|
10308
|
+
partitionByComment?: (boolean | (({
|
|
10309
|
+
pattern?: string
|
|
10310
|
+
flags?: string
|
|
10311
|
+
} | string)[] | ({
|
|
10312
|
+
pattern?: string
|
|
10313
|
+
flags?: string
|
|
10314
|
+
} | string)) | {
|
|
10315
|
+
block?: (boolean | (({
|
|
10316
|
+
pattern?: string
|
|
10317
|
+
flags?: string
|
|
10318
|
+
} | string)[] | ({
|
|
10319
|
+
pattern?: string
|
|
10320
|
+
flags?: string
|
|
10321
|
+
} | string)))
|
|
10322
|
+
line?: (boolean | (({
|
|
10323
|
+
pattern?: string
|
|
10324
|
+
flags?: string
|
|
10325
|
+
} | string)[] | ({
|
|
10326
|
+
pattern?: string
|
|
10327
|
+
flags?: string
|
|
10328
|
+
} | string)))
|
|
10063
10329
|
})
|
|
10064
10330
|
|
|
10065
10331
|
partitionByNewLine?: boolean
|
|
10066
10332
|
|
|
10067
10333
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10068
10334
|
|
|
10069
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom")
|
|
10070
|
-
|
|
10071
10335
|
groups?: (string | string[] | {
|
|
10072
10336
|
|
|
10073
10337
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10074
|
-
[k: string]: unknown | undefined
|
|
10075
10338
|
})[]
|
|
10076
10339
|
}]
|
|
10077
10340
|
// ----- perfectionist/sort-exports -----
|
|
10078
10341
|
type PerfectionistSortExports = []|[{
|
|
10079
10342
|
|
|
10343
|
+
fallbackSort?: {
|
|
10344
|
+
|
|
10345
|
+
order?: ("asc" | "desc")
|
|
10346
|
+
|
|
10347
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10348
|
+
[k: string]: unknown | undefined
|
|
10349
|
+
}
|
|
10350
|
+
|
|
10080
10351
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
10081
10352
|
|
|
10082
10353
|
ignoreCase?: boolean
|
|
@@ -10087,21 +10358,46 @@ type PerfectionistSortExports = []|[{
|
|
|
10087
10358
|
|
|
10088
10359
|
order?: ("asc" | "desc")
|
|
10089
10360
|
|
|
10361
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10362
|
+
|
|
10090
10363
|
groupKind?: ("mixed" | "values-first" | "types-first")
|
|
10091
10364
|
|
|
10092
|
-
partitionByComment?: (
|
|
10093
|
-
|
|
10094
|
-
|
|
10095
|
-
|
|
10365
|
+
partitionByComment?: (boolean | (({
|
|
10366
|
+
pattern?: string
|
|
10367
|
+
flags?: string
|
|
10368
|
+
} | string)[] | ({
|
|
10369
|
+
pattern?: string
|
|
10370
|
+
flags?: string
|
|
10371
|
+
} | string)) | {
|
|
10372
|
+
block?: (boolean | (({
|
|
10373
|
+
pattern?: string
|
|
10374
|
+
flags?: string
|
|
10375
|
+
} | string)[] | ({
|
|
10376
|
+
pattern?: string
|
|
10377
|
+
flags?: string
|
|
10378
|
+
} | string)))
|
|
10379
|
+
line?: (boolean | (({
|
|
10380
|
+
pattern?: string
|
|
10381
|
+
flags?: string
|
|
10382
|
+
} | string)[] | ({
|
|
10383
|
+
pattern?: string
|
|
10384
|
+
flags?: string
|
|
10385
|
+
} | string)))
|
|
10096
10386
|
})
|
|
10097
10387
|
|
|
10098
10388
|
partitionByNewLine?: boolean
|
|
10099
|
-
|
|
10100
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom")
|
|
10101
10389
|
}]
|
|
10102
10390
|
// ----- perfectionist/sort-heritage-clauses -----
|
|
10103
10391
|
type PerfectionistSortHeritageClauses = []|[{
|
|
10104
10392
|
|
|
10393
|
+
fallbackSort?: {
|
|
10394
|
+
|
|
10395
|
+
order?: ("asc" | "desc")
|
|
10396
|
+
|
|
10397
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10398
|
+
[k: string]: unknown | undefined
|
|
10399
|
+
}
|
|
10400
|
+
|
|
10105
10401
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
10106
10402
|
|
|
10107
10403
|
ignoreCase?: boolean
|
|
@@ -10112,22 +10408,29 @@ type PerfectionistSortHeritageClauses = []|[{
|
|
|
10112
10408
|
|
|
10113
10409
|
order?: ("asc" | "desc")
|
|
10114
10410
|
|
|
10411
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10412
|
+
|
|
10115
10413
|
customGroups?: {
|
|
10116
10414
|
[k: string]: (string | string[]) | undefined
|
|
10117
10415
|
}
|
|
10118
10416
|
|
|
10119
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom")
|
|
10120
|
-
|
|
10121
10417
|
groups?: (string | string[] | {
|
|
10122
10418
|
|
|
10123
10419
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10124
|
-
[k: string]: unknown | undefined
|
|
10125
10420
|
})[]
|
|
10126
10421
|
}]
|
|
10127
10422
|
// ----- perfectionist/sort-imports -----
|
|
10128
10423
|
type PerfectionistSortImports = []|[_PerfectionistSortImportsSortImports]
|
|
10129
10424
|
type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLengthRequiresLineLengthType & {
|
|
10130
10425
|
|
|
10426
|
+
fallbackSort?: {
|
|
10427
|
+
|
|
10428
|
+
order?: ("asc" | "desc")
|
|
10429
|
+
|
|
10430
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10431
|
+
[k: string]: unknown | undefined
|
|
10432
|
+
}
|
|
10433
|
+
|
|
10131
10434
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
10132
10435
|
|
|
10133
10436
|
ignoreCase?: boolean
|
|
@@ -10138,6 +10441,8 @@ type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLen
|
|
|
10138
10441
|
|
|
10139
10442
|
order?: ("asc" | "desc")
|
|
10140
10443
|
|
|
10444
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10445
|
+
|
|
10141
10446
|
customGroups?: {
|
|
10142
10447
|
|
|
10143
10448
|
value?: {
|
|
@@ -10149,8 +10454,6 @@ type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLen
|
|
|
10149
10454
|
}
|
|
10150
10455
|
}
|
|
10151
10456
|
|
|
10152
|
-
internalPattern?: string[]
|
|
10153
|
-
|
|
10154
10457
|
maxLineLength?: number
|
|
10155
10458
|
|
|
10156
10459
|
sortSideEffects?: boolean
|
|
@@ -10159,22 +10462,44 @@ type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLen
|
|
|
10159
10462
|
|
|
10160
10463
|
tsconfigRootDir?: string
|
|
10161
10464
|
|
|
10162
|
-
partitionByComment?: (
|
|
10163
|
-
|
|
10164
|
-
|
|
10165
|
-
|
|
10465
|
+
partitionByComment?: (boolean | (({
|
|
10466
|
+
pattern?: string
|
|
10467
|
+
flags?: string
|
|
10468
|
+
} | string)[] | ({
|
|
10469
|
+
pattern?: string
|
|
10470
|
+
flags?: string
|
|
10471
|
+
} | string)) | {
|
|
10472
|
+
block?: (boolean | (({
|
|
10473
|
+
pattern?: string
|
|
10474
|
+
flags?: string
|
|
10475
|
+
} | string)[] | ({
|
|
10476
|
+
pattern?: string
|
|
10477
|
+
flags?: string
|
|
10478
|
+
} | string)))
|
|
10479
|
+
line?: (boolean | (({
|
|
10480
|
+
pattern?: string
|
|
10481
|
+
flags?: string
|
|
10482
|
+
} | string)[] | ({
|
|
10483
|
+
pattern?: string
|
|
10484
|
+
flags?: string
|
|
10485
|
+
} | string)))
|
|
10166
10486
|
})
|
|
10167
10487
|
|
|
10168
10488
|
partitionByNewLine?: boolean
|
|
10169
10489
|
|
|
10170
10490
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10171
10491
|
|
|
10172
|
-
|
|
10492
|
+
internalPattern?: (({
|
|
10493
|
+
pattern?: string
|
|
10494
|
+
flags?: string
|
|
10495
|
+
} | string)[] | ({
|
|
10496
|
+
pattern?: string
|
|
10497
|
+
flags?: string
|
|
10498
|
+
} | string))
|
|
10173
10499
|
|
|
10174
10500
|
groups?: (string | string[] | {
|
|
10175
10501
|
|
|
10176
10502
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10177
|
-
[k: string]: unknown | undefined
|
|
10178
10503
|
})[]
|
|
10179
10504
|
})
|
|
10180
10505
|
type _PerfectionistSortImportsMaxLineLengthRequiresLineLengthType = ({
|
|
@@ -10187,6 +10512,14 @@ interface _PerfectionistSortImports_IsLineLength {
|
|
|
10187
10512
|
// ----- perfectionist/sort-interfaces -----
|
|
10188
10513
|
type PerfectionistSortInterfaces = {
|
|
10189
10514
|
|
|
10515
|
+
fallbackSort?: {
|
|
10516
|
+
|
|
10517
|
+
order?: ("asc" | "desc")
|
|
10518
|
+
|
|
10519
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10520
|
+
[k: string]: unknown | undefined
|
|
10521
|
+
}
|
|
10522
|
+
|
|
10190
10523
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
10191
10524
|
|
|
10192
10525
|
ignoreCase?: boolean
|
|
@@ -10197,70 +10530,163 @@ type PerfectionistSortInterfaces = {
|
|
|
10197
10530
|
|
|
10198
10531
|
order?: ("asc" | "desc")
|
|
10199
10532
|
|
|
10200
|
-
|
|
10201
|
-
useConfigurationIf?: {
|
|
10202
|
-
allNamesMatchPattern?: string
|
|
10203
|
-
declarationMatchesPattern?: string
|
|
10204
|
-
}
|
|
10533
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10205
10534
|
customGroups?: ({
|
|
10206
10535
|
[k: string]: (string | string[]) | undefined
|
|
10207
10536
|
} | ({
|
|
10208
10537
|
|
|
10209
|
-
|
|
10538
|
+
newlinesInside?: ("always" | "never")
|
|
10210
10539
|
|
|
10211
|
-
|
|
10540
|
+
fallbackSort?: {
|
|
10541
|
+
|
|
10542
|
+
order?: ("asc" | "desc")
|
|
10543
|
+
|
|
10544
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10545
|
+
sortBy?: ("name" | "value")
|
|
10546
|
+
[k: string]: unknown | undefined
|
|
10547
|
+
}
|
|
10212
10548
|
|
|
10213
|
-
|
|
10549
|
+
groupName?: string
|
|
10214
10550
|
|
|
10215
|
-
|
|
10551
|
+
order?: ("asc" | "desc")
|
|
10552
|
+
|
|
10553
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10216
10554
|
anyOf?: {
|
|
10217
10555
|
|
|
10218
10556
|
modifiers?: ("optional" | "required" | "multiline")[]
|
|
10219
10557
|
|
|
10220
10558
|
selector?: ("index-signature" | "member" | "method" | "multiline" | "property")
|
|
10221
10559
|
|
|
10222
|
-
|
|
10560
|
+
elementValuePattern?: (({
|
|
10561
|
+
pattern?: string
|
|
10562
|
+
flags?: string
|
|
10563
|
+
} | string)[] | ({
|
|
10564
|
+
pattern?: string
|
|
10565
|
+
flags?: string
|
|
10566
|
+
} | string))
|
|
10567
|
+
|
|
10568
|
+
elementNamePattern?: (({
|
|
10569
|
+
pattern?: string
|
|
10570
|
+
flags?: string
|
|
10571
|
+
} | string)[] | ({
|
|
10572
|
+
pattern?: string
|
|
10573
|
+
flags?: string
|
|
10574
|
+
} | string))
|
|
10575
|
+
sortBy?: ("name" | "value")
|
|
10223
10576
|
}[]
|
|
10224
10577
|
} | {
|
|
10225
10578
|
|
|
10226
|
-
|
|
10579
|
+
newlinesInside?: ("always" | "never")
|
|
10580
|
+
|
|
10581
|
+
fallbackSort?: {
|
|
10582
|
+
|
|
10583
|
+
order?: ("asc" | "desc")
|
|
10584
|
+
|
|
10585
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10586
|
+
sortBy?: ("name" | "value")
|
|
10587
|
+
[k: string]: unknown | undefined
|
|
10588
|
+
}
|
|
10227
10589
|
|
|
10228
|
-
|
|
10590
|
+
groupName?: string
|
|
10229
10591
|
|
|
10230
|
-
order?: ("
|
|
10592
|
+
order?: ("asc" | "desc")
|
|
10231
10593
|
|
|
10232
|
-
|
|
10594
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10233
10595
|
|
|
10234
10596
|
modifiers?: ("optional" | "required" | "multiline")[]
|
|
10235
10597
|
|
|
10236
10598
|
selector?: ("index-signature" | "member" | "method" | "multiline" | "property")
|
|
10237
10599
|
|
|
10238
|
-
|
|
10600
|
+
elementValuePattern?: (({
|
|
10601
|
+
pattern?: string
|
|
10602
|
+
flags?: string
|
|
10603
|
+
} | string)[] | ({
|
|
10604
|
+
pattern?: string
|
|
10605
|
+
flags?: string
|
|
10606
|
+
} | string))
|
|
10607
|
+
|
|
10608
|
+
elementNamePattern?: (({
|
|
10609
|
+
pattern?: string
|
|
10610
|
+
flags?: string
|
|
10611
|
+
} | string)[] | ({
|
|
10612
|
+
pattern?: string
|
|
10613
|
+
flags?: string
|
|
10614
|
+
} | string))
|
|
10615
|
+
sortBy?: ("name" | "value")
|
|
10239
10616
|
})[])
|
|
10617
|
+
useConfigurationIf?: {
|
|
10618
|
+
|
|
10619
|
+
allNamesMatchPattern?: (({
|
|
10620
|
+
pattern?: string
|
|
10621
|
+
flags?: string
|
|
10622
|
+
} | string)[] | ({
|
|
10623
|
+
pattern?: string
|
|
10624
|
+
flags?: string
|
|
10625
|
+
} | string))
|
|
10626
|
+
|
|
10627
|
+
declarationMatchesPattern?: (({
|
|
10628
|
+
pattern?: string
|
|
10629
|
+
flags?: string
|
|
10630
|
+
} | string)[] | ({
|
|
10631
|
+
pattern?: string
|
|
10632
|
+
flags?: string
|
|
10633
|
+
} | string))
|
|
10634
|
+
}
|
|
10240
10635
|
|
|
10241
10636
|
groupKind?: ("mixed" | "required-first" | "optional-first")
|
|
10242
10637
|
|
|
10243
|
-
|
|
10244
|
-
|
|
10245
|
-
|
|
10246
|
-
|
|
10247
|
-
|
|
10248
|
-
|
|
10638
|
+
partitionByComment?: (boolean | (({
|
|
10639
|
+
pattern?: string
|
|
10640
|
+
flags?: string
|
|
10641
|
+
} | string)[] | ({
|
|
10642
|
+
pattern?: string
|
|
10643
|
+
flags?: string
|
|
10644
|
+
} | string)) | {
|
|
10645
|
+
block?: (boolean | (({
|
|
10646
|
+
pattern?: string
|
|
10647
|
+
flags?: string
|
|
10648
|
+
} | string)[] | ({
|
|
10649
|
+
pattern?: string
|
|
10650
|
+
flags?: string
|
|
10651
|
+
} | string)))
|
|
10652
|
+
line?: (boolean | (({
|
|
10653
|
+
pattern?: string
|
|
10654
|
+
flags?: string
|
|
10655
|
+
} | string)[] | ({
|
|
10656
|
+
pattern?: string
|
|
10657
|
+
flags?: string
|
|
10658
|
+
} | string)))
|
|
10249
10659
|
})
|
|
10250
10660
|
|
|
10251
10661
|
partitionByNewLine?: boolean
|
|
10252
10662
|
|
|
10253
10663
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10254
10664
|
|
|
10665
|
+
ignorePattern?: (({
|
|
10666
|
+
pattern?: string
|
|
10667
|
+
flags?: string
|
|
10668
|
+
} | string)[] | ({
|
|
10669
|
+
pattern?: string
|
|
10670
|
+
flags?: string
|
|
10671
|
+
} | string))
|
|
10672
|
+
sortBy?: ("name" | "value")
|
|
10673
|
+
|
|
10255
10674
|
groups?: (string | string[] | {
|
|
10256
10675
|
|
|
10257
10676
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10258
|
-
[k: string]: unknown | undefined
|
|
10259
10677
|
})[]
|
|
10260
10678
|
}[]
|
|
10261
10679
|
// ----- perfectionist/sort-intersection-types -----
|
|
10262
10680
|
type PerfectionistSortIntersectionTypes = []|[{
|
|
10263
10681
|
|
|
10682
|
+
fallbackSort?: {
|
|
10683
|
+
|
|
10684
|
+
order?: ("asc" | "desc")
|
|
10685
|
+
|
|
10686
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10687
|
+
[k: string]: unknown | undefined
|
|
10688
|
+
}
|
|
10689
|
+
|
|
10264
10690
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
10265
10691
|
|
|
10266
10692
|
ignoreCase?: boolean
|
|
@@ -10271,26 +10697,50 @@ type PerfectionistSortIntersectionTypes = []|[{
|
|
|
10271
10697
|
|
|
10272
10698
|
order?: ("asc" | "desc")
|
|
10273
10699
|
|
|
10274
|
-
|
|
10275
|
-
|
|
10276
|
-
|
|
10277
|
-
|
|
10700
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10701
|
+
|
|
10702
|
+
partitionByComment?: (boolean | (({
|
|
10703
|
+
pattern?: string
|
|
10704
|
+
flags?: string
|
|
10705
|
+
} | string)[] | ({
|
|
10706
|
+
pattern?: string
|
|
10707
|
+
flags?: string
|
|
10708
|
+
} | string)) | {
|
|
10709
|
+
block?: (boolean | (({
|
|
10710
|
+
pattern?: string
|
|
10711
|
+
flags?: string
|
|
10712
|
+
} | string)[] | ({
|
|
10713
|
+
pattern?: string
|
|
10714
|
+
flags?: string
|
|
10715
|
+
} | string)))
|
|
10716
|
+
line?: (boolean | (({
|
|
10717
|
+
pattern?: string
|
|
10718
|
+
flags?: string
|
|
10719
|
+
} | string)[] | ({
|
|
10720
|
+
pattern?: string
|
|
10721
|
+
flags?: string
|
|
10722
|
+
} | string)))
|
|
10278
10723
|
})
|
|
10279
10724
|
|
|
10280
10725
|
partitionByNewLine?: boolean
|
|
10281
10726
|
|
|
10282
10727
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10283
10728
|
|
|
10284
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom")
|
|
10285
|
-
|
|
10286
10729
|
groups?: (string | string[] | {
|
|
10287
10730
|
|
|
10288
10731
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10289
|
-
[k: string]: unknown | undefined
|
|
10290
10732
|
})[]
|
|
10291
10733
|
}]
|
|
10292
10734
|
// ----- perfectionist/sort-jsx-props -----
|
|
10293
|
-
type PerfectionistSortJsxProps =
|
|
10735
|
+
type PerfectionistSortJsxProps = {
|
|
10736
|
+
|
|
10737
|
+
fallbackSort?: {
|
|
10738
|
+
|
|
10739
|
+
order?: ("asc" | "desc")
|
|
10740
|
+
|
|
10741
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10742
|
+
[k: string]: unknown | undefined
|
|
10743
|
+
}
|
|
10294
10744
|
|
|
10295
10745
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
10296
10746
|
|
|
@@ -10302,7 +10752,25 @@ type PerfectionistSortJsxProps = []|[{
|
|
|
10302
10752
|
|
|
10303
10753
|
order?: ("asc" | "desc")
|
|
10304
10754
|
|
|
10305
|
-
|
|
10755
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10756
|
+
useConfigurationIf?: {
|
|
10757
|
+
|
|
10758
|
+
allNamesMatchPattern?: (({
|
|
10759
|
+
pattern?: string
|
|
10760
|
+
flags?: string
|
|
10761
|
+
} | string)[] | ({
|
|
10762
|
+
pattern?: string
|
|
10763
|
+
flags?: string
|
|
10764
|
+
} | string))
|
|
10765
|
+
|
|
10766
|
+
tagMatchesPattern?: (({
|
|
10767
|
+
pattern?: string
|
|
10768
|
+
flags?: string
|
|
10769
|
+
} | string)[] | ({
|
|
10770
|
+
pattern?: string
|
|
10771
|
+
flags?: string
|
|
10772
|
+
} | string))
|
|
10773
|
+
}
|
|
10306
10774
|
|
|
10307
10775
|
partitionByNewLine?: boolean
|
|
10308
10776
|
|
|
@@ -10312,17 +10780,30 @@ type PerfectionistSortJsxProps = []|[{
|
|
|
10312
10780
|
[k: string]: (string | string[]) | undefined
|
|
10313
10781
|
}
|
|
10314
10782
|
|
|
10315
|
-
|
|
10783
|
+
ignorePattern?: (({
|
|
10784
|
+
pattern?: string
|
|
10785
|
+
flags?: string
|
|
10786
|
+
} | string)[] | ({
|
|
10787
|
+
pattern?: string
|
|
10788
|
+
flags?: string
|
|
10789
|
+
} | string))
|
|
10316
10790
|
|
|
10317
10791
|
groups?: (string | string[] | {
|
|
10318
10792
|
|
|
10319
10793
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10320
|
-
[k: string]: unknown | undefined
|
|
10321
10794
|
})[]
|
|
10322
|
-
}]
|
|
10795
|
+
}[]
|
|
10323
10796
|
// ----- perfectionist/sort-maps -----
|
|
10324
10797
|
type PerfectionistSortMaps = {
|
|
10325
10798
|
|
|
10799
|
+
fallbackSort?: {
|
|
10800
|
+
|
|
10801
|
+
order?: ("asc" | "desc")
|
|
10802
|
+
|
|
10803
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10804
|
+
[k: string]: unknown | undefined
|
|
10805
|
+
}
|
|
10806
|
+
|
|
10326
10807
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
10327
10808
|
|
|
10328
10809
|
ignoreCase?: boolean
|
|
@@ -10333,56 +10814,115 @@ type PerfectionistSortMaps = {
|
|
|
10333
10814
|
|
|
10334
10815
|
order?: ("asc" | "desc")
|
|
10335
10816
|
|
|
10817
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10818
|
+
|
|
10336
10819
|
customGroups?: ({
|
|
10337
10820
|
|
|
10338
|
-
|
|
10821
|
+
newlinesInside?: ("always" | "never")
|
|
10339
10822
|
|
|
10340
|
-
|
|
10823
|
+
fallbackSort?: {
|
|
10824
|
+
|
|
10825
|
+
order?: ("asc" | "desc")
|
|
10826
|
+
|
|
10827
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10828
|
+
[k: string]: unknown | undefined
|
|
10829
|
+
}
|
|
10341
10830
|
|
|
10342
|
-
|
|
10831
|
+
groupName?: string
|
|
10343
10832
|
|
|
10344
|
-
|
|
10833
|
+
order?: ("asc" | "desc")
|
|
10834
|
+
|
|
10835
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10345
10836
|
anyOf?: {
|
|
10346
10837
|
|
|
10347
|
-
elementNamePattern?:
|
|
10838
|
+
elementNamePattern?: (({
|
|
10839
|
+
pattern?: string
|
|
10840
|
+
flags?: string
|
|
10841
|
+
} | string)[] | ({
|
|
10842
|
+
pattern?: string
|
|
10843
|
+
flags?: string
|
|
10844
|
+
} | string))
|
|
10348
10845
|
}[]
|
|
10349
10846
|
} | {
|
|
10350
10847
|
|
|
10351
|
-
|
|
10848
|
+
newlinesInside?: ("always" | "never")
|
|
10849
|
+
|
|
10850
|
+
fallbackSort?: {
|
|
10851
|
+
|
|
10852
|
+
order?: ("asc" | "desc")
|
|
10853
|
+
|
|
10854
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10855
|
+
[k: string]: unknown | undefined
|
|
10856
|
+
}
|
|
10352
10857
|
|
|
10353
|
-
|
|
10858
|
+
groupName?: string
|
|
10354
10859
|
|
|
10355
|
-
order?: ("
|
|
10860
|
+
order?: ("asc" | "desc")
|
|
10356
10861
|
|
|
10357
|
-
|
|
10862
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10358
10863
|
|
|
10359
|
-
elementNamePattern?:
|
|
10864
|
+
elementNamePattern?: (({
|
|
10865
|
+
pattern?: string
|
|
10866
|
+
flags?: string
|
|
10867
|
+
} | string)[] | ({
|
|
10868
|
+
pattern?: string
|
|
10869
|
+
flags?: string
|
|
10870
|
+
} | string))
|
|
10360
10871
|
})[]
|
|
10361
10872
|
useConfigurationIf?: {
|
|
10362
|
-
|
|
10873
|
+
|
|
10874
|
+
allNamesMatchPattern?: (({
|
|
10875
|
+
pattern?: string
|
|
10876
|
+
flags?: string
|
|
10877
|
+
} | string)[] | ({
|
|
10878
|
+
pattern?: string
|
|
10879
|
+
flags?: string
|
|
10880
|
+
} | string))
|
|
10363
10881
|
}
|
|
10364
10882
|
|
|
10365
|
-
partitionByComment?: (
|
|
10366
|
-
|
|
10367
|
-
|
|
10368
|
-
|
|
10883
|
+
partitionByComment?: (boolean | (({
|
|
10884
|
+
pattern?: string
|
|
10885
|
+
flags?: string
|
|
10886
|
+
} | string)[] | ({
|
|
10887
|
+
pattern?: string
|
|
10888
|
+
flags?: string
|
|
10889
|
+
} | string)) | {
|
|
10890
|
+
block?: (boolean | (({
|
|
10891
|
+
pattern?: string
|
|
10892
|
+
flags?: string
|
|
10893
|
+
} | string)[] | ({
|
|
10894
|
+
pattern?: string
|
|
10895
|
+
flags?: string
|
|
10896
|
+
} | string)))
|
|
10897
|
+
line?: (boolean | (({
|
|
10898
|
+
pattern?: string
|
|
10899
|
+
flags?: string
|
|
10900
|
+
} | string)[] | ({
|
|
10901
|
+
pattern?: string
|
|
10902
|
+
flags?: string
|
|
10903
|
+
} | string)))
|
|
10369
10904
|
})
|
|
10370
10905
|
|
|
10371
10906
|
partitionByNewLine?: boolean
|
|
10372
10907
|
|
|
10373
10908
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10374
10909
|
|
|
10375
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom")
|
|
10376
|
-
|
|
10377
10910
|
groups?: (string | string[] | {
|
|
10378
10911
|
|
|
10379
10912
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10380
|
-
[k: string]: unknown | undefined
|
|
10381
10913
|
})[]
|
|
10382
10914
|
}[]
|
|
10383
10915
|
// ----- perfectionist/sort-modules -----
|
|
10384
10916
|
type PerfectionistSortModules = []|[{
|
|
10385
10917
|
|
|
10918
|
+
fallbackSort?: {
|
|
10919
|
+
|
|
10920
|
+
order?: ("asc" | "desc")
|
|
10921
|
+
|
|
10922
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10923
|
+
[k: string]: unknown | undefined
|
|
10924
|
+
}
|
|
10925
|
+
|
|
10386
10926
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
10387
10927
|
|
|
10388
10928
|
ignoreCase?: boolean
|
|
@@ -10393,65 +10933,129 @@ type PerfectionistSortModules = []|[{
|
|
|
10393
10933
|
|
|
10394
10934
|
order?: ("asc" | "desc")
|
|
10395
10935
|
|
|
10936
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10937
|
+
|
|
10396
10938
|
customGroups?: ({
|
|
10397
10939
|
|
|
10398
|
-
|
|
10940
|
+
newlinesInside?: ("always" | "never")
|
|
10399
10941
|
|
|
10400
|
-
|
|
10942
|
+
fallbackSort?: {
|
|
10943
|
+
|
|
10944
|
+
order?: ("asc" | "desc")
|
|
10945
|
+
|
|
10946
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10947
|
+
[k: string]: unknown | undefined
|
|
10948
|
+
}
|
|
10401
10949
|
|
|
10402
|
-
|
|
10950
|
+
groupName?: string
|
|
10403
10951
|
|
|
10404
|
-
|
|
10952
|
+
order?: ("asc" | "desc")
|
|
10953
|
+
|
|
10954
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10405
10955
|
anyOf?: {
|
|
10406
10956
|
|
|
10407
|
-
decoratorNamePattern?: string
|
|
10408
|
-
|
|
10409
10957
|
modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[]
|
|
10410
10958
|
|
|
10411
10959
|
selector?: ("enum" | "function" | "interface" | "type" | "class")
|
|
10412
10960
|
|
|
10413
|
-
|
|
10961
|
+
decoratorNamePattern?: (({
|
|
10962
|
+
pattern?: string
|
|
10963
|
+
flags?: string
|
|
10964
|
+
} | string)[] | ({
|
|
10965
|
+
pattern?: string
|
|
10966
|
+
flags?: string
|
|
10967
|
+
} | string))
|
|
10968
|
+
|
|
10969
|
+
elementNamePattern?: (({
|
|
10970
|
+
pattern?: string
|
|
10971
|
+
flags?: string
|
|
10972
|
+
} | string)[] | ({
|
|
10973
|
+
pattern?: string
|
|
10974
|
+
flags?: string
|
|
10975
|
+
} | string))
|
|
10414
10976
|
}[]
|
|
10415
10977
|
} | {
|
|
10416
10978
|
|
|
10417
|
-
|
|
10979
|
+
newlinesInside?: ("always" | "never")
|
|
10418
10980
|
|
|
10419
|
-
|
|
10981
|
+
fallbackSort?: {
|
|
10982
|
+
|
|
10983
|
+
order?: ("asc" | "desc")
|
|
10984
|
+
|
|
10985
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10986
|
+
[k: string]: unknown | undefined
|
|
10987
|
+
}
|
|
10420
10988
|
|
|
10421
|
-
|
|
10989
|
+
groupName?: string
|
|
10422
10990
|
|
|
10423
|
-
|
|
10991
|
+
order?: ("asc" | "desc")
|
|
10424
10992
|
|
|
10425
|
-
|
|
10993
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10426
10994
|
|
|
10427
10995
|
modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[]
|
|
10428
10996
|
|
|
10429
10997
|
selector?: ("enum" | "function" | "interface" | "type" | "class")
|
|
10430
10998
|
|
|
10431
|
-
|
|
10999
|
+
decoratorNamePattern?: (({
|
|
11000
|
+
pattern?: string
|
|
11001
|
+
flags?: string
|
|
11002
|
+
} | string)[] | ({
|
|
11003
|
+
pattern?: string
|
|
11004
|
+
flags?: string
|
|
11005
|
+
} | string))
|
|
11006
|
+
|
|
11007
|
+
elementNamePattern?: (({
|
|
11008
|
+
pattern?: string
|
|
11009
|
+
flags?: string
|
|
11010
|
+
} | string)[] | ({
|
|
11011
|
+
pattern?: string
|
|
11012
|
+
flags?: string
|
|
11013
|
+
} | string))
|
|
10432
11014
|
})[]
|
|
10433
11015
|
|
|
10434
|
-
partitionByComment?: (
|
|
10435
|
-
|
|
10436
|
-
|
|
10437
|
-
|
|
11016
|
+
partitionByComment?: (boolean | (({
|
|
11017
|
+
pattern?: string
|
|
11018
|
+
flags?: string
|
|
11019
|
+
} | string)[] | ({
|
|
11020
|
+
pattern?: string
|
|
11021
|
+
flags?: string
|
|
11022
|
+
} | string)) | {
|
|
11023
|
+
block?: (boolean | (({
|
|
11024
|
+
pattern?: string
|
|
11025
|
+
flags?: string
|
|
11026
|
+
} | string)[] | ({
|
|
11027
|
+
pattern?: string
|
|
11028
|
+
flags?: string
|
|
11029
|
+
} | string)))
|
|
11030
|
+
line?: (boolean | (({
|
|
11031
|
+
pattern?: string
|
|
11032
|
+
flags?: string
|
|
11033
|
+
} | string)[] | ({
|
|
11034
|
+
pattern?: string
|
|
11035
|
+
flags?: string
|
|
11036
|
+
} | string)))
|
|
10438
11037
|
})
|
|
10439
11038
|
|
|
10440
11039
|
partitionByNewLine?: boolean
|
|
10441
11040
|
|
|
10442
11041
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10443
11042
|
|
|
10444
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom")
|
|
10445
|
-
|
|
10446
11043
|
groups?: (string | string[] | {
|
|
10447
11044
|
|
|
10448
11045
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10449
|
-
[k: string]: unknown | undefined
|
|
10450
11046
|
})[]
|
|
10451
11047
|
}]
|
|
10452
11048
|
// ----- perfectionist/sort-named-exports -----
|
|
10453
11049
|
type PerfectionistSortNamedExports = []|[{
|
|
10454
11050
|
|
|
11051
|
+
fallbackSort?: {
|
|
11052
|
+
|
|
11053
|
+
order?: ("asc" | "desc")
|
|
11054
|
+
|
|
11055
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
11056
|
+
[k: string]: unknown | undefined
|
|
11057
|
+
}
|
|
11058
|
+
|
|
10455
11059
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
10456
11060
|
|
|
10457
11061
|
ignoreCase?: boolean
|
|
@@ -10462,23 +11066,48 @@ type PerfectionistSortNamedExports = []|[{
|
|
|
10462
11066
|
|
|
10463
11067
|
order?: ("asc" | "desc")
|
|
10464
11068
|
|
|
11069
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
11070
|
+
|
|
10465
11071
|
groupKind?: ("mixed" | "values-first" | "types-first")
|
|
10466
11072
|
|
|
10467
11073
|
ignoreAlias?: boolean
|
|
10468
11074
|
|
|
10469
|
-
partitionByComment?: (
|
|
10470
|
-
|
|
10471
|
-
|
|
10472
|
-
|
|
11075
|
+
partitionByComment?: (boolean | (({
|
|
11076
|
+
pattern?: string
|
|
11077
|
+
flags?: string
|
|
11078
|
+
} | string)[] | ({
|
|
11079
|
+
pattern?: string
|
|
11080
|
+
flags?: string
|
|
11081
|
+
} | string)) | {
|
|
11082
|
+
block?: (boolean | (({
|
|
11083
|
+
pattern?: string
|
|
11084
|
+
flags?: string
|
|
11085
|
+
} | string)[] | ({
|
|
11086
|
+
pattern?: string
|
|
11087
|
+
flags?: string
|
|
11088
|
+
} | string)))
|
|
11089
|
+
line?: (boolean | (({
|
|
11090
|
+
pattern?: string
|
|
11091
|
+
flags?: string
|
|
11092
|
+
} | string)[] | ({
|
|
11093
|
+
pattern?: string
|
|
11094
|
+
flags?: string
|
|
11095
|
+
} | string)))
|
|
10473
11096
|
})
|
|
10474
11097
|
|
|
10475
11098
|
partitionByNewLine?: boolean
|
|
10476
|
-
|
|
10477
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom")
|
|
10478
11099
|
}]
|
|
10479
11100
|
// ----- perfectionist/sort-named-imports -----
|
|
10480
11101
|
type PerfectionistSortNamedImports = []|[{
|
|
10481
11102
|
|
|
11103
|
+
fallbackSort?: {
|
|
11104
|
+
|
|
11105
|
+
order?: ("asc" | "desc")
|
|
11106
|
+
|
|
11107
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
11108
|
+
[k: string]: unknown | undefined
|
|
11109
|
+
}
|
|
11110
|
+
|
|
10482
11111
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
10483
11112
|
|
|
10484
11113
|
ignoreCase?: boolean
|
|
@@ -10489,23 +11118,48 @@ type PerfectionistSortNamedImports = []|[{
|
|
|
10489
11118
|
|
|
10490
11119
|
order?: ("asc" | "desc")
|
|
10491
11120
|
|
|
11121
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
11122
|
+
|
|
10492
11123
|
groupKind?: ("mixed" | "values-first" | "types-first")
|
|
10493
11124
|
|
|
10494
11125
|
ignoreAlias?: boolean
|
|
10495
11126
|
|
|
10496
|
-
partitionByComment?: (
|
|
10497
|
-
|
|
10498
|
-
|
|
10499
|
-
|
|
11127
|
+
partitionByComment?: (boolean | (({
|
|
11128
|
+
pattern?: string
|
|
11129
|
+
flags?: string
|
|
11130
|
+
} | string)[] | ({
|
|
11131
|
+
pattern?: string
|
|
11132
|
+
flags?: string
|
|
11133
|
+
} | string)) | {
|
|
11134
|
+
block?: (boolean | (({
|
|
11135
|
+
pattern?: string
|
|
11136
|
+
flags?: string
|
|
11137
|
+
} | string)[] | ({
|
|
11138
|
+
pattern?: string
|
|
11139
|
+
flags?: string
|
|
11140
|
+
} | string)))
|
|
11141
|
+
line?: (boolean | (({
|
|
11142
|
+
pattern?: string
|
|
11143
|
+
flags?: string
|
|
11144
|
+
} | string)[] | ({
|
|
11145
|
+
pattern?: string
|
|
11146
|
+
flags?: string
|
|
11147
|
+
} | string)))
|
|
10500
11148
|
})
|
|
10501
11149
|
|
|
10502
11150
|
partitionByNewLine?: boolean
|
|
10503
|
-
|
|
10504
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom")
|
|
10505
11151
|
}]
|
|
10506
11152
|
// ----- perfectionist/sort-object-types -----
|
|
10507
11153
|
type PerfectionistSortObjectTypes = {
|
|
10508
11154
|
|
|
11155
|
+
fallbackSort?: {
|
|
11156
|
+
|
|
11157
|
+
order?: ("asc" | "desc")
|
|
11158
|
+
|
|
11159
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
11160
|
+
[k: string]: unknown | undefined
|
|
11161
|
+
}
|
|
11162
|
+
|
|
10509
11163
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
10510
11164
|
|
|
10511
11165
|
ignoreCase?: boolean
|
|
@@ -10516,70 +11170,163 @@ type PerfectionistSortObjectTypes = {
|
|
|
10516
11170
|
|
|
10517
11171
|
order?: ("asc" | "desc")
|
|
10518
11172
|
|
|
10519
|
-
|
|
10520
|
-
useConfigurationIf?: {
|
|
10521
|
-
allNamesMatchPattern?: string
|
|
10522
|
-
declarationMatchesPattern?: string
|
|
10523
|
-
}
|
|
11173
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10524
11174
|
customGroups?: ({
|
|
10525
11175
|
[k: string]: (string | string[]) | undefined
|
|
10526
11176
|
} | ({
|
|
10527
11177
|
|
|
10528
|
-
|
|
11178
|
+
newlinesInside?: ("always" | "never")
|
|
10529
11179
|
|
|
10530
|
-
|
|
11180
|
+
fallbackSort?: {
|
|
11181
|
+
|
|
11182
|
+
order?: ("asc" | "desc")
|
|
11183
|
+
|
|
11184
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
11185
|
+
sortBy?: ("name" | "value")
|
|
11186
|
+
[k: string]: unknown | undefined
|
|
11187
|
+
}
|
|
10531
11188
|
|
|
10532
|
-
|
|
11189
|
+
groupName?: string
|
|
10533
11190
|
|
|
10534
|
-
|
|
11191
|
+
order?: ("asc" | "desc")
|
|
11192
|
+
|
|
11193
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10535
11194
|
anyOf?: {
|
|
10536
11195
|
|
|
10537
11196
|
modifiers?: ("optional" | "required" | "multiline")[]
|
|
10538
11197
|
|
|
10539
11198
|
selector?: ("index-signature" | "member" | "method" | "multiline" | "property")
|
|
10540
11199
|
|
|
10541
|
-
|
|
11200
|
+
elementValuePattern?: (({
|
|
11201
|
+
pattern?: string
|
|
11202
|
+
flags?: string
|
|
11203
|
+
} | string)[] | ({
|
|
11204
|
+
pattern?: string
|
|
11205
|
+
flags?: string
|
|
11206
|
+
} | string))
|
|
11207
|
+
|
|
11208
|
+
elementNamePattern?: (({
|
|
11209
|
+
pattern?: string
|
|
11210
|
+
flags?: string
|
|
11211
|
+
} | string)[] | ({
|
|
11212
|
+
pattern?: string
|
|
11213
|
+
flags?: string
|
|
11214
|
+
} | string))
|
|
11215
|
+
sortBy?: ("name" | "value")
|
|
10542
11216
|
}[]
|
|
10543
11217
|
} | {
|
|
10544
11218
|
|
|
10545
|
-
|
|
11219
|
+
newlinesInside?: ("always" | "never")
|
|
10546
11220
|
|
|
10547
|
-
|
|
11221
|
+
fallbackSort?: {
|
|
11222
|
+
|
|
11223
|
+
order?: ("asc" | "desc")
|
|
11224
|
+
|
|
11225
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
11226
|
+
sortBy?: ("name" | "value")
|
|
11227
|
+
[k: string]: unknown | undefined
|
|
11228
|
+
}
|
|
10548
11229
|
|
|
10549
|
-
|
|
11230
|
+
groupName?: string
|
|
10550
11231
|
|
|
10551
|
-
|
|
11232
|
+
order?: ("asc" | "desc")
|
|
11233
|
+
|
|
11234
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10552
11235
|
|
|
10553
11236
|
modifiers?: ("optional" | "required" | "multiline")[]
|
|
10554
11237
|
|
|
10555
11238
|
selector?: ("index-signature" | "member" | "method" | "multiline" | "property")
|
|
10556
11239
|
|
|
10557
|
-
|
|
11240
|
+
elementValuePattern?: (({
|
|
11241
|
+
pattern?: string
|
|
11242
|
+
flags?: string
|
|
11243
|
+
} | string)[] | ({
|
|
11244
|
+
pattern?: string
|
|
11245
|
+
flags?: string
|
|
11246
|
+
} | string))
|
|
11247
|
+
|
|
11248
|
+
elementNamePattern?: (({
|
|
11249
|
+
pattern?: string
|
|
11250
|
+
flags?: string
|
|
11251
|
+
} | string)[] | ({
|
|
11252
|
+
pattern?: string
|
|
11253
|
+
flags?: string
|
|
11254
|
+
} | string))
|
|
11255
|
+
sortBy?: ("name" | "value")
|
|
10558
11256
|
})[])
|
|
11257
|
+
useConfigurationIf?: {
|
|
11258
|
+
|
|
11259
|
+
allNamesMatchPattern?: (({
|
|
11260
|
+
pattern?: string
|
|
11261
|
+
flags?: string
|
|
11262
|
+
} | string)[] | ({
|
|
11263
|
+
pattern?: string
|
|
11264
|
+
flags?: string
|
|
11265
|
+
} | string))
|
|
11266
|
+
|
|
11267
|
+
declarationMatchesPattern?: (({
|
|
11268
|
+
pattern?: string
|
|
11269
|
+
flags?: string
|
|
11270
|
+
} | string)[] | ({
|
|
11271
|
+
pattern?: string
|
|
11272
|
+
flags?: string
|
|
11273
|
+
} | string))
|
|
11274
|
+
}
|
|
10559
11275
|
|
|
10560
11276
|
groupKind?: ("mixed" | "required-first" | "optional-first")
|
|
10561
11277
|
|
|
10562
|
-
|
|
10563
|
-
|
|
10564
|
-
|
|
10565
|
-
|
|
10566
|
-
|
|
10567
|
-
|
|
11278
|
+
partitionByComment?: (boolean | (({
|
|
11279
|
+
pattern?: string
|
|
11280
|
+
flags?: string
|
|
11281
|
+
} | string)[] | ({
|
|
11282
|
+
pattern?: string
|
|
11283
|
+
flags?: string
|
|
11284
|
+
} | string)) | {
|
|
11285
|
+
block?: (boolean | (({
|
|
11286
|
+
pattern?: string
|
|
11287
|
+
flags?: string
|
|
11288
|
+
} | string)[] | ({
|
|
11289
|
+
pattern?: string
|
|
11290
|
+
flags?: string
|
|
11291
|
+
} | string)))
|
|
11292
|
+
line?: (boolean | (({
|
|
11293
|
+
pattern?: string
|
|
11294
|
+
flags?: string
|
|
11295
|
+
} | string)[] | ({
|
|
11296
|
+
pattern?: string
|
|
11297
|
+
flags?: string
|
|
11298
|
+
} | string)))
|
|
10568
11299
|
})
|
|
10569
11300
|
|
|
10570
11301
|
partitionByNewLine?: boolean
|
|
10571
11302
|
|
|
10572
11303
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10573
11304
|
|
|
11305
|
+
ignorePattern?: (({
|
|
11306
|
+
pattern?: string
|
|
11307
|
+
flags?: string
|
|
11308
|
+
} | string)[] | ({
|
|
11309
|
+
pattern?: string
|
|
11310
|
+
flags?: string
|
|
11311
|
+
} | string))
|
|
11312
|
+
sortBy?: ("name" | "value")
|
|
11313
|
+
|
|
10574
11314
|
groups?: (string | string[] | {
|
|
10575
11315
|
|
|
10576
11316
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10577
|
-
[k: string]: unknown | undefined
|
|
10578
11317
|
})[]
|
|
10579
11318
|
}[]
|
|
10580
11319
|
// ----- perfectionist/sort-objects -----
|
|
10581
11320
|
type PerfectionistSortObjects = {
|
|
10582
11321
|
|
|
11322
|
+
fallbackSort?: {
|
|
11323
|
+
|
|
11324
|
+
order?: ("asc" | "desc")
|
|
11325
|
+
|
|
11326
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
11327
|
+
[k: string]: unknown | undefined
|
|
11328
|
+
}
|
|
11329
|
+
|
|
10583
11330
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
10584
11331
|
|
|
10585
11332
|
ignoreCase?: boolean
|
|
@@ -10590,55 +11337,109 @@ type PerfectionistSortObjects = {
|
|
|
10590
11337
|
|
|
10591
11338
|
order?: ("asc" | "desc")
|
|
10592
11339
|
|
|
11340
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
11341
|
+
|
|
10593
11342
|
destructuredObjects?: (boolean | {
|
|
10594
11343
|
|
|
10595
11344
|
groups?: boolean
|
|
10596
11345
|
})
|
|
10597
|
-
|
|
10598
|
-
ignorePattern?: string[]
|
|
10599
|
-
useConfigurationIf?: {
|
|
10600
|
-
allNamesMatchPattern?: string
|
|
10601
|
-
callingFunctionNamePattern?: string
|
|
10602
|
-
}
|
|
10603
11346
|
customGroups?: ({
|
|
10604
11347
|
[k: string]: (string | string[]) | undefined
|
|
10605
11348
|
} | ({
|
|
10606
11349
|
|
|
10607
|
-
|
|
11350
|
+
newlinesInside?: ("always" | "never")
|
|
10608
11351
|
|
|
10609
|
-
|
|
11352
|
+
fallbackSort?: {
|
|
11353
|
+
|
|
11354
|
+
order?: ("asc" | "desc")
|
|
11355
|
+
|
|
11356
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
11357
|
+
[k: string]: unknown | undefined
|
|
11358
|
+
}
|
|
10610
11359
|
|
|
10611
|
-
|
|
11360
|
+
groupName?: string
|
|
10612
11361
|
|
|
10613
|
-
|
|
11362
|
+
order?: ("asc" | "desc")
|
|
11363
|
+
|
|
11364
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10614
11365
|
anyOf?: {
|
|
10615
11366
|
|
|
10616
11367
|
modifiers?: ("optional" | "required" | "multiline")[]
|
|
10617
11368
|
|
|
10618
11369
|
selector?: ("member" | "method" | "multiline" | "property")
|
|
10619
11370
|
|
|
10620
|
-
elementValuePattern?:
|
|
11371
|
+
elementValuePattern?: (({
|
|
11372
|
+
pattern?: string
|
|
11373
|
+
flags?: string
|
|
11374
|
+
} | string)[] | ({
|
|
11375
|
+
pattern?: string
|
|
11376
|
+
flags?: string
|
|
11377
|
+
} | string))
|
|
10621
11378
|
|
|
10622
|
-
elementNamePattern?:
|
|
11379
|
+
elementNamePattern?: (({
|
|
11380
|
+
pattern?: string
|
|
11381
|
+
flags?: string
|
|
11382
|
+
} | string)[] | ({
|
|
11383
|
+
pattern?: string
|
|
11384
|
+
flags?: string
|
|
11385
|
+
} | string))
|
|
10623
11386
|
}[]
|
|
10624
11387
|
} | {
|
|
10625
11388
|
|
|
10626
|
-
|
|
11389
|
+
newlinesInside?: ("always" | "never")
|
|
11390
|
+
|
|
11391
|
+
fallbackSort?: {
|
|
11392
|
+
|
|
11393
|
+
order?: ("asc" | "desc")
|
|
11394
|
+
|
|
11395
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
11396
|
+
[k: string]: unknown | undefined
|
|
11397
|
+
}
|
|
10627
11398
|
|
|
10628
|
-
|
|
11399
|
+
groupName?: string
|
|
10629
11400
|
|
|
10630
|
-
order?: ("
|
|
11401
|
+
order?: ("asc" | "desc")
|
|
10631
11402
|
|
|
10632
|
-
|
|
11403
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10633
11404
|
|
|
10634
11405
|
modifiers?: ("optional" | "required" | "multiline")[]
|
|
10635
11406
|
|
|
10636
11407
|
selector?: ("member" | "method" | "multiline" | "property")
|
|
10637
11408
|
|
|
10638
|
-
elementValuePattern?:
|
|
11409
|
+
elementValuePattern?: (({
|
|
11410
|
+
pattern?: string
|
|
11411
|
+
flags?: string
|
|
11412
|
+
} | string)[] | ({
|
|
11413
|
+
pattern?: string
|
|
11414
|
+
flags?: string
|
|
11415
|
+
} | string))
|
|
10639
11416
|
|
|
10640
|
-
elementNamePattern?:
|
|
11417
|
+
elementNamePattern?: (({
|
|
11418
|
+
pattern?: string
|
|
11419
|
+
flags?: string
|
|
11420
|
+
} | string)[] | ({
|
|
11421
|
+
pattern?: string
|
|
11422
|
+
flags?: string
|
|
11423
|
+
} | string))
|
|
10641
11424
|
})[])
|
|
11425
|
+
useConfigurationIf?: {
|
|
11426
|
+
|
|
11427
|
+
allNamesMatchPattern?: (({
|
|
11428
|
+
pattern?: string
|
|
11429
|
+
flags?: string
|
|
11430
|
+
} | string)[] | ({
|
|
11431
|
+
pattern?: string
|
|
11432
|
+
flags?: string
|
|
11433
|
+
} | string))
|
|
11434
|
+
|
|
11435
|
+
callingFunctionNamePattern?: (({
|
|
11436
|
+
pattern?: string
|
|
11437
|
+
flags?: string
|
|
11438
|
+
} | string)[] | ({
|
|
11439
|
+
pattern?: string
|
|
11440
|
+
flags?: string
|
|
11441
|
+
} | string))
|
|
11442
|
+
}
|
|
10642
11443
|
|
|
10643
11444
|
destructureOnly?: boolean
|
|
10644
11445
|
|
|
@@ -10646,27 +11447,57 @@ type PerfectionistSortObjects = {
|
|
|
10646
11447
|
|
|
10647
11448
|
styledComponents?: boolean
|
|
10648
11449
|
|
|
10649
|
-
|
|
10650
|
-
|
|
10651
|
-
|
|
10652
|
-
|
|
10653
|
-
|
|
10654
|
-
|
|
11450
|
+
partitionByComment?: (boolean | (({
|
|
11451
|
+
pattern?: string
|
|
11452
|
+
flags?: string
|
|
11453
|
+
} | string)[] | ({
|
|
11454
|
+
pattern?: string
|
|
11455
|
+
flags?: string
|
|
11456
|
+
} | string)) | {
|
|
11457
|
+
block?: (boolean | (({
|
|
11458
|
+
pattern?: string
|
|
11459
|
+
flags?: string
|
|
11460
|
+
} | string)[] | ({
|
|
11461
|
+
pattern?: string
|
|
11462
|
+
flags?: string
|
|
11463
|
+
} | string)))
|
|
11464
|
+
line?: (boolean | (({
|
|
11465
|
+
pattern?: string
|
|
11466
|
+
flags?: string
|
|
11467
|
+
} | string)[] | ({
|
|
11468
|
+
pattern?: string
|
|
11469
|
+
flags?: string
|
|
11470
|
+
} | string)))
|
|
10655
11471
|
})
|
|
10656
11472
|
|
|
10657
11473
|
partitionByNewLine?: boolean
|
|
10658
11474
|
|
|
10659
11475
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10660
11476
|
|
|
11477
|
+
ignorePattern?: (({
|
|
11478
|
+
pattern?: string
|
|
11479
|
+
flags?: string
|
|
11480
|
+
} | string)[] | ({
|
|
11481
|
+
pattern?: string
|
|
11482
|
+
flags?: string
|
|
11483
|
+
} | string))
|
|
11484
|
+
|
|
10661
11485
|
groups?: (string | string[] | {
|
|
10662
11486
|
|
|
10663
11487
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10664
|
-
[k: string]: unknown | undefined
|
|
10665
11488
|
})[]
|
|
10666
11489
|
}[]
|
|
10667
11490
|
// ----- perfectionist/sort-sets -----
|
|
10668
11491
|
type PerfectionistSortSets = {
|
|
10669
11492
|
|
|
11493
|
+
fallbackSort?: {
|
|
11494
|
+
|
|
11495
|
+
order?: ("asc" | "desc")
|
|
11496
|
+
|
|
11497
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
11498
|
+
[k: string]: unknown | undefined
|
|
11499
|
+
}
|
|
11500
|
+
|
|
10670
11501
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
10671
11502
|
|
|
10672
11503
|
ignoreCase?: boolean
|
|
@@ -10677,47 +11508,99 @@ type PerfectionistSortSets = {
|
|
|
10677
11508
|
|
|
10678
11509
|
order?: ("asc" | "desc")
|
|
10679
11510
|
|
|
11511
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
11512
|
+
|
|
10680
11513
|
groupKind?: ("mixed" | "literals-first" | "spreads-first")
|
|
10681
11514
|
|
|
10682
11515
|
customGroups?: ({
|
|
10683
11516
|
|
|
10684
|
-
|
|
11517
|
+
newlinesInside?: ("always" | "never")
|
|
10685
11518
|
|
|
10686
|
-
|
|
11519
|
+
fallbackSort?: {
|
|
11520
|
+
|
|
11521
|
+
order?: ("asc" | "desc")
|
|
11522
|
+
|
|
11523
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
11524
|
+
[k: string]: unknown | undefined
|
|
11525
|
+
}
|
|
10687
11526
|
|
|
10688
|
-
|
|
11527
|
+
groupName?: string
|
|
10689
11528
|
|
|
10690
|
-
|
|
11529
|
+
order?: ("asc" | "desc")
|
|
11530
|
+
|
|
11531
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10691
11532
|
anyOf?: {
|
|
10692
11533
|
|
|
10693
11534
|
selector?: ("literal" | "spread")
|
|
10694
11535
|
|
|
10695
|
-
elementNamePattern?:
|
|
11536
|
+
elementNamePattern?: (({
|
|
11537
|
+
pattern?: string
|
|
11538
|
+
flags?: string
|
|
11539
|
+
} | string)[] | ({
|
|
11540
|
+
pattern?: string
|
|
11541
|
+
flags?: string
|
|
11542
|
+
} | string))
|
|
10696
11543
|
}[]
|
|
10697
11544
|
} | {
|
|
10698
11545
|
|
|
10699
|
-
|
|
11546
|
+
newlinesInside?: ("always" | "never")
|
|
10700
11547
|
|
|
10701
|
-
|
|
11548
|
+
fallbackSort?: {
|
|
11549
|
+
|
|
11550
|
+
order?: ("asc" | "desc")
|
|
11551
|
+
|
|
11552
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
11553
|
+
[k: string]: unknown | undefined
|
|
11554
|
+
}
|
|
10702
11555
|
|
|
10703
|
-
|
|
11556
|
+
groupName?: string
|
|
10704
11557
|
|
|
10705
|
-
|
|
11558
|
+
order?: ("asc" | "desc")
|
|
11559
|
+
|
|
11560
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10706
11561
|
|
|
10707
11562
|
selector?: ("literal" | "spread")
|
|
10708
11563
|
|
|
10709
|
-
elementNamePattern?:
|
|
11564
|
+
elementNamePattern?: (({
|
|
11565
|
+
pattern?: string
|
|
11566
|
+
flags?: string
|
|
11567
|
+
} | string)[] | ({
|
|
11568
|
+
pattern?: string
|
|
11569
|
+
flags?: string
|
|
11570
|
+
} | string))
|
|
10710
11571
|
})[]
|
|
10711
11572
|
useConfigurationIf?: {
|
|
10712
|
-
|
|
11573
|
+
|
|
11574
|
+
allNamesMatchPattern?: (({
|
|
11575
|
+
pattern?: string
|
|
11576
|
+
flags?: string
|
|
11577
|
+
} | string)[] | ({
|
|
11578
|
+
pattern?: string
|
|
11579
|
+
flags?: string
|
|
11580
|
+
} | string))
|
|
10713
11581
|
}
|
|
10714
11582
|
|
|
10715
|
-
|
|
10716
|
-
|
|
10717
|
-
|
|
10718
|
-
|
|
10719
|
-
|
|
10720
|
-
|
|
11583
|
+
partitionByComment?: (boolean | (({
|
|
11584
|
+
pattern?: string
|
|
11585
|
+
flags?: string
|
|
11586
|
+
} | string)[] | ({
|
|
11587
|
+
pattern?: string
|
|
11588
|
+
flags?: string
|
|
11589
|
+
} | string)) | {
|
|
11590
|
+
block?: (boolean | (({
|
|
11591
|
+
pattern?: string
|
|
11592
|
+
flags?: string
|
|
11593
|
+
} | string)[] | ({
|
|
11594
|
+
pattern?: string
|
|
11595
|
+
flags?: string
|
|
11596
|
+
} | string)))
|
|
11597
|
+
line?: (boolean | (({
|
|
11598
|
+
pattern?: string
|
|
11599
|
+
flags?: string
|
|
11600
|
+
} | string)[] | ({
|
|
11601
|
+
pattern?: string
|
|
11602
|
+
flags?: string
|
|
11603
|
+
} | string)))
|
|
10721
11604
|
})
|
|
10722
11605
|
|
|
10723
11606
|
partitionByNewLine?: boolean
|
|
@@ -10727,12 +11610,19 @@ type PerfectionistSortSets = {
|
|
|
10727
11610
|
groups?: (string | string[] | {
|
|
10728
11611
|
|
|
10729
11612
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10730
|
-
[k: string]: unknown | undefined
|
|
10731
11613
|
})[]
|
|
10732
11614
|
}[]
|
|
10733
11615
|
// ----- perfectionist/sort-switch-case -----
|
|
10734
11616
|
type PerfectionistSortSwitchCase = []|[{
|
|
10735
11617
|
|
|
11618
|
+
fallbackSort?: {
|
|
11619
|
+
|
|
11620
|
+
order?: ("asc" | "desc")
|
|
11621
|
+
|
|
11622
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
11623
|
+
[k: string]: unknown | undefined
|
|
11624
|
+
}
|
|
11625
|
+
|
|
10736
11626
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
10737
11627
|
|
|
10738
11628
|
ignoreCase?: boolean
|
|
@@ -10743,11 +11633,19 @@ type PerfectionistSortSwitchCase = []|[{
|
|
|
10743
11633
|
|
|
10744
11634
|
order?: ("asc" | "desc")
|
|
10745
11635
|
|
|
10746
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom")
|
|
11636
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10747
11637
|
}]
|
|
10748
11638
|
// ----- perfectionist/sort-union-types -----
|
|
10749
11639
|
type PerfectionistSortUnionTypes = []|[{
|
|
10750
11640
|
|
|
11641
|
+
fallbackSort?: {
|
|
11642
|
+
|
|
11643
|
+
order?: ("asc" | "desc")
|
|
11644
|
+
|
|
11645
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
11646
|
+
[k: string]: unknown | undefined
|
|
11647
|
+
}
|
|
11648
|
+
|
|
10751
11649
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
10752
11650
|
|
|
10753
11651
|
ignoreCase?: boolean
|
|
@@ -10758,27 +11656,51 @@ type PerfectionistSortUnionTypes = []|[{
|
|
|
10758
11656
|
|
|
10759
11657
|
order?: ("asc" | "desc")
|
|
10760
11658
|
|
|
10761
|
-
|
|
10762
|
-
|
|
10763
|
-
|
|
10764
|
-
|
|
11659
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
11660
|
+
|
|
11661
|
+
partitionByComment?: (boolean | (({
|
|
11662
|
+
pattern?: string
|
|
11663
|
+
flags?: string
|
|
11664
|
+
} | string)[] | ({
|
|
11665
|
+
pattern?: string
|
|
11666
|
+
flags?: string
|
|
11667
|
+
} | string)) | {
|
|
11668
|
+
block?: (boolean | (({
|
|
11669
|
+
pattern?: string
|
|
11670
|
+
flags?: string
|
|
11671
|
+
} | string)[] | ({
|
|
11672
|
+
pattern?: string
|
|
11673
|
+
flags?: string
|
|
11674
|
+
} | string)))
|
|
11675
|
+
line?: (boolean | (({
|
|
11676
|
+
pattern?: string
|
|
11677
|
+
flags?: string
|
|
11678
|
+
} | string)[] | ({
|
|
11679
|
+
pattern?: string
|
|
11680
|
+
flags?: string
|
|
11681
|
+
} | string)))
|
|
10765
11682
|
})
|
|
10766
11683
|
|
|
10767
11684
|
partitionByNewLine?: boolean
|
|
10768
11685
|
|
|
10769
11686
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10770
11687
|
|
|
10771
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom")
|
|
10772
|
-
|
|
10773
11688
|
groups?: (string | string[] | {
|
|
10774
11689
|
|
|
10775
11690
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10776
|
-
[k: string]: unknown | undefined
|
|
10777
11691
|
})[]
|
|
10778
11692
|
}]
|
|
10779
11693
|
// ----- perfectionist/sort-variable-declarations -----
|
|
10780
11694
|
type PerfectionistSortVariableDeclarations = []|[{
|
|
10781
11695
|
|
|
11696
|
+
fallbackSort?: {
|
|
11697
|
+
|
|
11698
|
+
order?: ("asc" | "desc")
|
|
11699
|
+
|
|
11700
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
11701
|
+
[k: string]: unknown | undefined
|
|
11702
|
+
}
|
|
11703
|
+
|
|
10782
11704
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
10783
11705
|
|
|
10784
11706
|
ignoreCase?: boolean
|
|
@@ -10789,15 +11711,32 @@ type PerfectionistSortVariableDeclarations = []|[{
|
|
|
10789
11711
|
|
|
10790
11712
|
order?: ("asc" | "desc")
|
|
10791
11713
|
|
|
10792
|
-
|
|
10793
|
-
|
|
10794
|
-
|
|
10795
|
-
|
|
11714
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
11715
|
+
|
|
11716
|
+
partitionByComment?: (boolean | (({
|
|
11717
|
+
pattern?: string
|
|
11718
|
+
flags?: string
|
|
11719
|
+
} | string)[] | ({
|
|
11720
|
+
pattern?: string
|
|
11721
|
+
flags?: string
|
|
11722
|
+
} | string)) | {
|
|
11723
|
+
block?: (boolean | (({
|
|
11724
|
+
pattern?: string
|
|
11725
|
+
flags?: string
|
|
11726
|
+
} | string)[] | ({
|
|
11727
|
+
pattern?: string
|
|
11728
|
+
flags?: string
|
|
11729
|
+
} | string)))
|
|
11730
|
+
line?: (boolean | (({
|
|
11731
|
+
pattern?: string
|
|
11732
|
+
flags?: string
|
|
11733
|
+
} | string)[] | ({
|
|
11734
|
+
pattern?: string
|
|
11735
|
+
flags?: string
|
|
11736
|
+
} | string)))
|
|
10796
11737
|
})
|
|
10797
11738
|
|
|
10798
11739
|
partitionByNewLine?: boolean
|
|
10799
|
-
|
|
10800
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom")
|
|
10801
11740
|
}]
|
|
10802
11741
|
// ----- prefer-arrow-callback -----
|
|
10803
11742
|
type PreferArrowCallback = []|[{
|
|
@@ -12619,6 +13558,8 @@ type TsExplicitModuleBoundaryTypes = []|[{
|
|
|
12619
13558
|
|
|
12620
13559
|
allowHigherOrderFunctions?: boolean
|
|
12621
13560
|
|
|
13561
|
+
allowOverloadFunctions?: boolean
|
|
13562
|
+
|
|
12622
13563
|
allowTypedFunctionExpressions?: boolean
|
|
12623
13564
|
}]
|
|
12624
13565
|
// ----- ts/init-declarations -----
|
|
@@ -13650,6 +14591,8 @@ type TsUnboundMethod = []|[{
|
|
|
13650
14591
|
type TsUnifiedSignatures = []|[{
|
|
13651
14592
|
|
|
13652
14593
|
ignoreDifferentlyNamedParameters?: boolean
|
|
14594
|
+
|
|
14595
|
+
ignoreOverloadsWithDifferentJSDoc?: boolean
|
|
13653
14596
|
}]
|
|
13654
14597
|
// ----- unicode-bom -----
|
|
13655
14598
|
type UnicodeBom = []|[("always" | "never")]
|
|
@@ -14026,16 +14969,10 @@ type VueComponentNameInTemplateCasing = []|[("PascalCase" | "kebab-case")]|[("Pa
|
|
|
14026
14969
|
}]
|
|
14027
14970
|
// ----- vue/component-options-name-casing -----
|
|
14028
14971
|
type VueComponentOptionsNameCasing = []|[("camelCase" | "kebab-case" | "PascalCase")]
|
|
14029
|
-
// ----- vue/component-tags-order -----
|
|
14030
|
-
type VueComponentTagsOrder = []|[{
|
|
14031
|
-
order?: (string | string[])[]
|
|
14032
|
-
}]
|
|
14033
14972
|
// ----- vue/custom-event-name-casing -----
|
|
14034
|
-
type VueCustomEventNameCasing =
|
|
14973
|
+
type VueCustomEventNameCasing = []|[("kebab-case" | "camelCase")]|[("kebab-case" | "camelCase"), {
|
|
14035
14974
|
ignores?: string[]
|
|
14036
|
-
}]
|
|
14037
|
-
ignores?: string[]
|
|
14038
|
-
}])
|
|
14975
|
+
}]
|
|
14039
14976
|
// ----- vue/define-emits-declaration -----
|
|
14040
14977
|
type VueDefineEmitsDeclaration = []|[("type-based" | "type-literal" | "runtime")]
|
|
14041
14978
|
// ----- vue/define-macros-order -----
|
|
@@ -14666,6 +15603,14 @@ type VueNoExtraParens = ([]|["functions"] | []|["all"]|["all", {
|
|
|
14666
15603
|
enforceForFunctionPrototypeMethods?: boolean
|
|
14667
15604
|
allowParensAfterCommentPattern?: string
|
|
14668
15605
|
}])
|
|
15606
|
+
// ----- vue/no-implicit-coercion -----
|
|
15607
|
+
type VueNoImplicitCoercion = []|[{
|
|
15608
|
+
boolean?: boolean
|
|
15609
|
+
number?: boolean
|
|
15610
|
+
string?: boolean
|
|
15611
|
+
disallowTemplateShorthand?: boolean
|
|
15612
|
+
allow?: ("~" | "!!" | "+" | "- -" | "-" | "*")[]
|
|
15613
|
+
}]
|
|
14669
15614
|
// ----- vue/no-irregular-whitespace -----
|
|
14670
15615
|
type VueNoIrregularWhitespace = []|[{
|
|
14671
15616
|
skipComments?: boolean
|
|
@@ -14957,9 +15902,13 @@ type VuePaddingLinesInComponentDefinition = []|[(("always" | "never") | {
|
|
|
14957
15902
|
groupSingleLineProperties?: boolean
|
|
14958
15903
|
})]
|
|
14959
15904
|
// ----- vue/prefer-true-attribute-shorthand -----
|
|
14960
|
-
type VuePreferTrueAttributeShorthand = []|[("always" | "never")]
|
|
15905
|
+
type VuePreferTrueAttributeShorthand = []|[("always" | "never")]|[("always" | "never"), {
|
|
15906
|
+
except?: string[]
|
|
15907
|
+
}]
|
|
14961
15908
|
// ----- vue/prop-name-casing -----
|
|
14962
|
-
type VuePropNameCasing = []|[("camelCase" | "snake_case")]
|
|
15909
|
+
type VuePropNameCasing = []|[("camelCase" | "snake_case")]|[("camelCase" | "snake_case"), {
|
|
15910
|
+
ignoreProps?: string[]
|
|
15911
|
+
}]
|
|
14963
15912
|
// ----- vue/quote-props -----
|
|
14964
15913
|
type VueQuoteProps = ([]|[("always" | "as-needed" | "consistent" | "consistent-as-needed")] | []|[("always" | "as-needed" | "consistent" | "consistent-as-needed")]|[("always" | "as-needed" | "consistent" | "consistent-as-needed"), {
|
|
14965
15914
|
keywords?: boolean
|
|
@@ -15024,7 +15973,6 @@ type VueSortKeys = []|[("asc" | "desc")]|[("asc" | "desc"), {
|
|
|
15024
15973
|
ignoreGrandchildrenOf?: unknown[]
|
|
15025
15974
|
minKeys?: number
|
|
15026
15975
|
natural?: boolean
|
|
15027
|
-
runOutsideVue?: boolean
|
|
15028
15976
|
}]
|
|
15029
15977
|
// ----- vue/space-in-parens -----
|
|
15030
15978
|
type VueSpaceInParens = []|[("always" | "never")]|[("always" | "never"), {
|
|
@@ -15062,10 +16010,6 @@ type VueVOnEventHyphenation = []|[("always" | "never")]|[("always" | "never"), {
|
|
|
15062
16010
|
})[]
|
|
15063
16011
|
ignoreTags?: string[]
|
|
15064
16012
|
}]
|
|
15065
|
-
// ----- vue/v-on-function-call -----
|
|
15066
|
-
type VueVOnFunctionCall = []|[("always" | "never")]|[("always" | "never"), {
|
|
15067
|
-
ignoreIncludesComment?: boolean
|
|
15068
|
-
}]
|
|
15069
16013
|
// ----- vue/v-on-handler-style -----
|
|
15070
16014
|
type VueVOnHandlerStyle = []|[(("inline" | "inline-function") | ["method", ("inline" | "inline-function")])]|[(("inline" | "inline-function") | ["method", ("inline" | "inline-function")]), {
|
|
15071
16015
|
ignoreIncludesComment?: boolean
|
|
@@ -15308,7 +16252,7 @@ type Yoda = []|[("always" | "never")]|[("always" | "never"), {
|
|
|
15308
16252
|
onlyEquality?: boolean
|
|
15309
16253
|
}]
|
|
15310
16254
|
// Names of all the configs
|
|
15311
|
-
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'
|
|
16255
|
+
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'
|
|
15312
16256
|
|
|
15313
16257
|
/**
|
|
15314
16258
|
* 来自 Prettier 的供应商类型,因此不依赖依赖项
|
|
@@ -15430,7 +16374,8 @@ interface VendoredPrettierOptionsRequired {
|
|
|
15430
16374
|
}
|
|
15431
16375
|
|
|
15432
16376
|
type Awaitable<T> = T | Promise<T>;
|
|
15433
|
-
|
|
16377
|
+
interface Rules extends RuleOptions {
|
|
16378
|
+
}
|
|
15434
16379
|
|
|
15435
16380
|
type TypedFlatConfigItem = Omit<Linter.Config<Linter.RulesRecord & Rules>, 'plugins'> & {
|
|
15436
16381
|
/**
|
|
@@ -15715,6 +16660,17 @@ interface OptionsConfig extends OptionsComponentExts, OptionsProjectType {
|
|
|
15715
16660
|
* @default false
|
|
15716
16661
|
*/
|
|
15717
16662
|
unocss?: boolean | OptionsUnoCSS;
|
|
16663
|
+
/**
|
|
16664
|
+
* 启用 pnpm(工作区/目录)支持.
|
|
16665
|
+
*
|
|
16666
|
+
* 目前它默认是禁用的,因为它仍处于实验阶段
|
|
16667
|
+
* 将来会根据项目使用情况智能启用
|
|
16668
|
+
*
|
|
16669
|
+
* @see https://github.com/antfu/pnpm-workspace-utils
|
|
16670
|
+
* @experimental
|
|
16671
|
+
* @default false
|
|
16672
|
+
*/
|
|
16673
|
+
pnpm?: boolean;
|
|
15718
16674
|
/**
|
|
15719
16675
|
* 使用外部格式化程序格式化文件.
|
|
15720
16676
|
*
|
|
@@ -15826,6 +16782,8 @@ declare function node(options?: OptionsOverrides): Promise<TypedFlatConfigItem[]
|
|
|
15826
16782
|
*/
|
|
15827
16783
|
declare function perfectionist(options?: OptionsOverrides): Promise<TypedFlatConfigItem[]>;
|
|
15828
16784
|
|
|
16785
|
+
declare function pnpm(): Promise<TypedFlatConfigItem[]>;
|
|
16786
|
+
|
|
15829
16787
|
declare function react(options?: OptionsTypeScriptParserOptions & OptionsTypeScriptWithTypes & OptionsOverrides & OptionsFiles): Promise<TypedFlatConfigItem[]>;
|
|
15830
16788
|
|
|
15831
16789
|
declare function regexp(options?: OptionsRegExp & OptionsOverrides): Promise<TypedFlatConfigItem[]>;
|
|
@@ -15931,4 +16889,4 @@ declare function ensurePackages(packages: (string | undefined)[]): Promise<void>
|
|
|
15931
16889
|
declare function isInEditorEnv(): boolean;
|
|
15932
16890
|
declare function isInGitHooksOrLintStaged(): boolean;
|
|
15933
16891
|
|
|
15934
|
-
export { type Awaitable, type 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, type OptionsComponentExts, type OptionsConfig, type OptionsFiles, type OptionsFormatters, type OptionsHasTypeScript, type OptionsIgnores, type OptionsIsInEditor, type OptionsOverrides, type OptionsProjectType, type OptionsRegExp, type OptionsStylistic, type OptionsTypeScriptParserOptions, type OptionsTypeScriptWithTypes, type OptionsTypescript, type OptionsUnicorn, type OptionsUnoCSS, type OptionsVue, type ResolvedOptions, type Rules, type StylisticConfig, StylisticConfigDefaults, type 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, react, regexp, renamePluginInConfigs, renameRules, resolveSubOptions, sortPackageJson, sortTsconfig, stylistic, test, toArray, toml, typescript, unicorn, unocss, vue, yaml };
|
|
16892
|
+
export { type Awaitable, type 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, type OptionsComponentExts, type OptionsConfig, type OptionsFiles, type OptionsFormatters, type OptionsHasTypeScript, type OptionsIgnores, type OptionsIsInEditor, type OptionsOverrides, type OptionsProjectType, type OptionsRegExp, type OptionsStylistic, type OptionsTypeScriptParserOptions, type OptionsTypeScriptWithTypes, type OptionsTypescript, type OptionsUnicorn, type OptionsUnoCSS, type OptionsVue, type ResolvedOptions, type Rules, type StylisticConfig, StylisticConfigDefaults, type 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 };
|