@lincy/eslint-config 5.6.0 → 5.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/index.cjs +16 -13
- package/dist/index.d.cts +406 -696
- package/dist/index.d.ts +406 -696
- package/dist/index.js +16 -13
- package/package.json +30 -30
package/dist/index.d.ts
CHANGED
|
@@ -384,235 +384,39 @@ interface RuleOptions {
|
|
|
384
384
|
'implicit-arrow-linebreak'?: Linter.RuleEntry<ImplicitArrowLinebreak>;
|
|
385
385
|
/**
|
|
386
386
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
387
|
-
* @see https://github.com/
|
|
387
|
+
* @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/consistent-type-specifier-style/README.md
|
|
388
388
|
*/
|
|
389
389
|
'import/consistent-type-specifier-style'?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>;
|
|
390
|
-
/**
|
|
391
|
-
* Ensure a default export is present, given a default import.
|
|
392
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.12.2/docs/rules/default.md
|
|
393
|
-
*/
|
|
394
|
-
'import/default'?: Linter.RuleEntry<[]>;
|
|
395
|
-
/**
|
|
396
|
-
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
397
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.12.2/docs/rules/dynamic-import-chunkname.md
|
|
398
|
-
*/
|
|
399
|
-
'import/dynamic-import-chunkname'?: Linter.RuleEntry<ImportDynamicImportChunkname>;
|
|
400
|
-
/**
|
|
401
|
-
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
402
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.12.2/docs/rules/export.md
|
|
403
|
-
*/
|
|
404
|
-
'import/export'?: Linter.RuleEntry<[]>;
|
|
405
|
-
/**
|
|
406
|
-
* Ensure all exports appear after other statements.
|
|
407
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.12.2/docs/rules/exports-last.md
|
|
408
|
-
*/
|
|
409
|
-
'import/exports-last'?: Linter.RuleEntry<[]>;
|
|
410
|
-
/**
|
|
411
|
-
* Ensure consistent use of file extension within the import path.
|
|
412
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.12.2/docs/rules/extensions.md
|
|
413
|
-
*/
|
|
414
|
-
'import/extensions'?: Linter.RuleEntry<ImportExtensions>;
|
|
415
390
|
/**
|
|
416
391
|
* Ensure all imports appear before other statements.
|
|
417
|
-
* @see https://github.com/
|
|
392
|
+
* @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/first/README.md
|
|
418
393
|
*/
|
|
419
394
|
'import/first'?: Linter.RuleEntry<ImportFirst>;
|
|
420
|
-
/**
|
|
421
|
-
* Prefer named exports to be grouped together in a single export declaration.
|
|
422
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.12.2/docs/rules/group-exports.md
|
|
423
|
-
*/
|
|
424
|
-
'import/group-exports'?: Linter.RuleEntry<[]>;
|
|
425
|
-
/**
|
|
426
|
-
* Replaced by `import-x/first`.
|
|
427
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.12.2/docs/rules/imports-first.md
|
|
428
|
-
* @deprecated
|
|
429
|
-
*/
|
|
430
|
-
'import/imports-first'?: Linter.RuleEntry<ImportImportsFirst>;
|
|
431
|
-
/**
|
|
432
|
-
* Enforce the maximum number of dependencies a module can have.
|
|
433
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.12.2/docs/rules/max-dependencies.md
|
|
434
|
-
*/
|
|
435
|
-
'import/max-dependencies'?: Linter.RuleEntry<ImportMaxDependencies>;
|
|
436
|
-
/**
|
|
437
|
-
* Ensure named imports correspond to a named export in the remote file.
|
|
438
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.12.2/docs/rules/named.md
|
|
439
|
-
*/
|
|
440
|
-
'import/named'?: Linter.RuleEntry<ImportNamed>;
|
|
441
|
-
/**
|
|
442
|
-
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
443
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.12.2/docs/rules/namespace.md
|
|
444
|
-
*/
|
|
445
|
-
'import/namespace'?: Linter.RuleEntry<ImportNamespace>;
|
|
446
395
|
/**
|
|
447
396
|
* Enforce a newline after import statements.
|
|
448
|
-
* @see https://github.com/
|
|
397
|
+
* @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/newline-after-import/README.md
|
|
449
398
|
*/
|
|
450
399
|
'import/newline-after-import'?: Linter.RuleEntry<ImportNewlineAfterImport>;
|
|
451
|
-
/**
|
|
452
|
-
* Forbid import of modules using absolute paths.
|
|
453
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.12.2/docs/rules/no-absolute-path.md
|
|
454
|
-
*/
|
|
455
|
-
'import/no-absolute-path'?: Linter.RuleEntry<ImportNoAbsolutePath>;
|
|
456
|
-
/**
|
|
457
|
-
* Forbid AMD `require` and `define` calls.
|
|
458
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.12.2/docs/rules/no-amd.md
|
|
459
|
-
*/
|
|
460
|
-
'import/no-amd'?: Linter.RuleEntry<[]>;
|
|
461
|
-
/**
|
|
462
|
-
* Forbid anonymous values as default exports.
|
|
463
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.12.2/docs/rules/no-anonymous-default-export.md
|
|
464
|
-
*/
|
|
465
|
-
'import/no-anonymous-default-export'?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>;
|
|
466
|
-
/**
|
|
467
|
-
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
468
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.12.2/docs/rules/no-commonjs.md
|
|
469
|
-
*/
|
|
470
|
-
'import/no-commonjs'?: Linter.RuleEntry<ImportNoCommonjs>;
|
|
471
|
-
/**
|
|
472
|
-
* Forbid a module from importing a module with a dependency path back to itself.
|
|
473
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.12.2/docs/rules/no-cycle.md
|
|
474
|
-
*/
|
|
475
|
-
'import/no-cycle'?: Linter.RuleEntry<ImportNoCycle>;
|
|
476
400
|
/**
|
|
477
401
|
* Forbid default exports.
|
|
478
|
-
* @see https://github.com/
|
|
402
|
+
* @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/no-default-export/README.md
|
|
479
403
|
*/
|
|
480
404
|
'import/no-default-export'?: Linter.RuleEntry<[]>;
|
|
481
|
-
/**
|
|
482
|
-
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
483
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.12.2/docs/rules/no-deprecated.md
|
|
484
|
-
*/
|
|
485
|
-
'import/no-deprecated'?: Linter.RuleEntry<[]>;
|
|
486
405
|
/**
|
|
487
406
|
* Forbid repeated import of the same module in multiple places.
|
|
488
|
-
* @see https://github.com/
|
|
407
|
+
* @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/no-duplicates/README.md
|
|
489
408
|
*/
|
|
490
409
|
'import/no-duplicates'?: Linter.RuleEntry<ImportNoDuplicates>;
|
|
491
|
-
/**
|
|
492
|
-
* Forbid `require()` calls with expressions.
|
|
493
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.12.2/docs/rules/no-dynamic-require.md
|
|
494
|
-
*/
|
|
495
|
-
'import/no-dynamic-require'?: Linter.RuleEntry<ImportNoDynamicRequire>;
|
|
496
|
-
/**
|
|
497
|
-
* Forbid empty named import blocks.
|
|
498
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.12.2/docs/rules/no-empty-named-blocks.md
|
|
499
|
-
*/
|
|
500
|
-
'import/no-empty-named-blocks'?: Linter.RuleEntry<[]>;
|
|
501
|
-
/**
|
|
502
|
-
* Forbid the use of extraneous packages.
|
|
503
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.12.2/docs/rules/no-extraneous-dependencies.md
|
|
504
|
-
*/
|
|
505
|
-
'import/no-extraneous-dependencies'?: Linter.RuleEntry<ImportNoExtraneousDependencies>;
|
|
506
|
-
/**
|
|
507
|
-
* Forbid import statements with CommonJS module.exports.
|
|
508
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.12.2/docs/rules/no-import-module-exports.md
|
|
509
|
-
*/
|
|
510
|
-
'import/no-import-module-exports'?: Linter.RuleEntry<ImportNoImportModuleExports>;
|
|
511
|
-
/**
|
|
512
|
-
* Forbid importing the submodules of other modules.
|
|
513
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.12.2/docs/rules/no-internal-modules.md
|
|
514
|
-
*/
|
|
515
|
-
'import/no-internal-modules'?: Linter.RuleEntry<ImportNoInternalModules>;
|
|
516
410
|
/**
|
|
517
411
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
518
|
-
* @see https://github.com/
|
|
412
|
+
* @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/no-mutable-exports/README.md
|
|
519
413
|
*/
|
|
520
414
|
'import/no-mutable-exports'?: Linter.RuleEntry<[]>;
|
|
521
|
-
/**
|
|
522
|
-
* Forbid use of exported name as identifier of default export.
|
|
523
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.12.2/docs/rules/no-named-as-default.md
|
|
524
|
-
*/
|
|
525
|
-
'import/no-named-as-default'?: Linter.RuleEntry<[]>;
|
|
526
|
-
/**
|
|
527
|
-
* Forbid use of exported name as property of default export.
|
|
528
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.12.2/docs/rules/no-named-as-default-member.md
|
|
529
|
-
*/
|
|
530
|
-
'import/no-named-as-default-member'?: Linter.RuleEntry<[]>;
|
|
531
415
|
/**
|
|
532
416
|
* Forbid named default exports.
|
|
533
|
-
* @see https://github.com/
|
|
417
|
+
* @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/no-named-default/README.md
|
|
534
418
|
*/
|
|
535
419
|
'import/no-named-default'?: Linter.RuleEntry<[]>;
|
|
536
|
-
/**
|
|
537
|
-
* Forbid named exports.
|
|
538
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.12.2/docs/rules/no-named-export.md
|
|
539
|
-
*/
|
|
540
|
-
'import/no-named-export'?: Linter.RuleEntry<[]>;
|
|
541
|
-
/**
|
|
542
|
-
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
543
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.12.2/docs/rules/no-namespace.md
|
|
544
|
-
*/
|
|
545
|
-
'import/no-namespace'?: Linter.RuleEntry<ImportNoNamespace>;
|
|
546
|
-
/**
|
|
547
|
-
* Forbid Node.js builtin modules.
|
|
548
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.12.2/docs/rules/no-nodejs-modules.md
|
|
549
|
-
*/
|
|
550
|
-
'import/no-nodejs-modules'?: Linter.RuleEntry<ImportNoNodejsModules>;
|
|
551
|
-
/**
|
|
552
|
-
* Forbid importing packages through relative paths.
|
|
553
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.12.2/docs/rules/no-relative-packages.md
|
|
554
|
-
*/
|
|
555
|
-
'import/no-relative-packages'?: Linter.RuleEntry<ImportNoRelativePackages>;
|
|
556
|
-
/**
|
|
557
|
-
* Forbid importing modules from parent directories.
|
|
558
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.12.2/docs/rules/no-relative-parent-imports.md
|
|
559
|
-
*/
|
|
560
|
-
'import/no-relative-parent-imports'?: Linter.RuleEntry<ImportNoRelativeParentImports>;
|
|
561
|
-
/**
|
|
562
|
-
* Forbid importing a default export by a different name.
|
|
563
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.12.2/docs/rules/no-rename-default.md
|
|
564
|
-
*/
|
|
565
|
-
'import/no-rename-default'?: Linter.RuleEntry<ImportNoRenameDefault>;
|
|
566
|
-
/**
|
|
567
|
-
* Enforce which files can be imported in a given folder.
|
|
568
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.12.2/docs/rules/no-restricted-paths.md
|
|
569
|
-
*/
|
|
570
|
-
'import/no-restricted-paths'?: Linter.RuleEntry<ImportNoRestrictedPaths>;
|
|
571
|
-
/**
|
|
572
|
-
* Forbid a module from importing itself.
|
|
573
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.12.2/docs/rules/no-self-import.md
|
|
574
|
-
*/
|
|
575
|
-
'import/no-self-import'?: Linter.RuleEntry<[]>;
|
|
576
|
-
/**
|
|
577
|
-
* Forbid unassigned imports.
|
|
578
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.12.2/docs/rules/no-unassigned-import.md
|
|
579
|
-
*/
|
|
580
|
-
'import/no-unassigned-import'?: Linter.RuleEntry<ImportNoUnassignedImport>;
|
|
581
|
-
/**
|
|
582
|
-
* Ensure imports point to a file/module that can be resolved.
|
|
583
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.12.2/docs/rules/no-unresolved.md
|
|
584
|
-
*/
|
|
585
|
-
'import/no-unresolved'?: Linter.RuleEntry<ImportNoUnresolved>;
|
|
586
|
-
/**
|
|
587
|
-
* Forbid modules without exports, or exports without matching import in another module.
|
|
588
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.12.2/docs/rules/no-unused-modules.md
|
|
589
|
-
*/
|
|
590
|
-
'import/no-unused-modules'?: Linter.RuleEntry<ImportNoUnusedModules>;
|
|
591
|
-
/**
|
|
592
|
-
* Forbid unnecessary path segments in import and require statements.
|
|
593
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.12.2/docs/rules/no-useless-path-segments.md
|
|
594
|
-
*/
|
|
595
|
-
'import/no-useless-path-segments'?: Linter.RuleEntry<ImportNoUselessPathSegments>;
|
|
596
|
-
/**
|
|
597
|
-
* Forbid webpack loader syntax in imports.
|
|
598
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.12.2/docs/rules/no-webpack-loader-syntax.md
|
|
599
|
-
*/
|
|
600
|
-
'import/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>;
|
|
601
|
-
/**
|
|
602
|
-
* Enforce a convention in module import order.
|
|
603
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.12.2/docs/rules/order.md
|
|
604
|
-
*/
|
|
605
|
-
'import/order'?: Linter.RuleEntry<ImportOrder>;
|
|
606
|
-
/**
|
|
607
|
-
* Prefer a default export if module exports a single name or multiple names.
|
|
608
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.12.2/docs/rules/prefer-default-export.md
|
|
609
|
-
*/
|
|
610
|
-
'import/prefer-default-export'?: Linter.RuleEntry<ImportPreferDefaultExport>;
|
|
611
|
-
/**
|
|
612
|
-
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
613
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.12.2/docs/rules/unambiguous.md
|
|
614
|
-
*/
|
|
615
|
-
'import/unambiguous'?: Linter.RuleEntry<[]>;
|
|
616
420
|
/**
|
|
617
421
|
* Enforce consistent indentation
|
|
618
422
|
* @see https://eslint.org/docs/latest/rules/indent
|
|
@@ -1198,11 +1002,31 @@ interface RuleOptions {
|
|
|
1198
1002
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/heading-increment.md
|
|
1199
1003
|
*/
|
|
1200
1004
|
'markdown/heading-increment'?: Linter.RuleEntry<[]>;
|
|
1005
|
+
/**
|
|
1006
|
+
* Disallow bare URLs
|
|
1007
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-bare-urls.md
|
|
1008
|
+
*/
|
|
1009
|
+
'markdown/no-bare-urls'?: Linter.RuleEntry<[]>;
|
|
1010
|
+
/**
|
|
1011
|
+
* Disallow duplicate definitions
|
|
1012
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-duplicate-definitions.md
|
|
1013
|
+
*/
|
|
1014
|
+
'markdown/no-duplicate-definitions'?: Linter.RuleEntry<MarkdownNoDuplicateDefinitions>;
|
|
1201
1015
|
/**
|
|
1202
1016
|
* Disallow duplicate headings in the same document
|
|
1203
1017
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-duplicate-headings.md
|
|
1204
1018
|
*/
|
|
1205
|
-
'markdown/no-duplicate-headings'?: Linter.RuleEntry<
|
|
1019
|
+
'markdown/no-duplicate-headings'?: Linter.RuleEntry<MarkdownNoDuplicateHeadings>;
|
|
1020
|
+
/**
|
|
1021
|
+
* Disallow empty definitions
|
|
1022
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-empty-definitions.md
|
|
1023
|
+
*/
|
|
1024
|
+
'markdown/no-empty-definitions'?: Linter.RuleEntry<[]>;
|
|
1025
|
+
/**
|
|
1026
|
+
* Disallow empty images
|
|
1027
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-empty-images.md
|
|
1028
|
+
*/
|
|
1029
|
+
'markdown/no-empty-images'?: Linter.RuleEntry<[]>;
|
|
1206
1030
|
/**
|
|
1207
1031
|
* Disallow empty links
|
|
1208
1032
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-empty-links.md
|
|
@@ -1218,11 +1042,41 @@ interface RuleOptions {
|
|
|
1218
1042
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-invalid-label-refs.md
|
|
1219
1043
|
*/
|
|
1220
1044
|
'markdown/no-invalid-label-refs'?: Linter.RuleEntry<[]>;
|
|
1045
|
+
/**
|
|
1046
|
+
* Disallow headings without a space after the hash characters
|
|
1047
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-missing-atx-heading-space.md
|
|
1048
|
+
*/
|
|
1049
|
+
'markdown/no-missing-atx-heading-space'?: Linter.RuleEntry<[]>;
|
|
1221
1050
|
/**
|
|
1222
1051
|
* Disallow missing label references
|
|
1223
1052
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-missing-label-refs.md
|
|
1224
1053
|
*/
|
|
1225
1054
|
'markdown/no-missing-label-refs'?: Linter.RuleEntry<[]>;
|
|
1055
|
+
/**
|
|
1056
|
+
* Disallow link fragments that do not reference valid headings
|
|
1057
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-missing-link-fragments.md
|
|
1058
|
+
*/
|
|
1059
|
+
'markdown/no-missing-link-fragments'?: Linter.RuleEntry<MarkdownNoMissingLinkFragments>;
|
|
1060
|
+
/**
|
|
1061
|
+
* Disallow multiple H1 headings in the same document
|
|
1062
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-multiple-h1.md
|
|
1063
|
+
*/
|
|
1064
|
+
'markdown/no-multiple-h1'?: Linter.RuleEntry<MarkdownNoMultipleH1>;
|
|
1065
|
+
/**
|
|
1066
|
+
* Disallow reversed link and image syntax
|
|
1067
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-reversed-media-syntax.md
|
|
1068
|
+
*/
|
|
1069
|
+
'markdown/no-reversed-media-syntax'?: Linter.RuleEntry<[]>;
|
|
1070
|
+
/**
|
|
1071
|
+
* Require alternative text for images
|
|
1072
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/require-alt-text.md
|
|
1073
|
+
*/
|
|
1074
|
+
'markdown/require-alt-text'?: Linter.RuleEntry<[]>;
|
|
1075
|
+
/**
|
|
1076
|
+
* Disallow data rows in a GitHub Flavored Markdown table from having more cells than the header row
|
|
1077
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/table-column-count.md
|
|
1078
|
+
*/
|
|
1079
|
+
'markdown/table-column-count'?: Linter.RuleEntry<[]>;
|
|
1226
1080
|
/**
|
|
1227
1081
|
* Enforce a maximum number of classes per file
|
|
1228
1082
|
* @see https://eslint.org/docs/latest/rules/max-classes-per-file
|
|
@@ -2228,6 +2082,11 @@ interface RuleOptions {
|
|
|
2228
2082
|
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-sync.md
|
|
2229
2083
|
*/
|
|
2230
2084
|
'node/no-sync'?: Linter.RuleEntry<NodeNoSync>;
|
|
2085
|
+
/**
|
|
2086
|
+
* disallow top-level `await` in published modules
|
|
2087
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-top-level-await.md
|
|
2088
|
+
*/
|
|
2089
|
+
'node/no-top-level-await'?: Linter.RuleEntry<NodeNoTopLevelAwait>;
|
|
2231
2090
|
/**
|
|
2232
2091
|
* disallow `bin` files that npm ignores
|
|
2233
2092
|
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-unpublished-bin.md
|
|
@@ -2791,6 +2650,11 @@ interface RuleOptions {
|
|
|
2791
2650
|
* @see https://eslint-react.xyz/docs/rules/jsx-no-duplicate-props
|
|
2792
2651
|
*/
|
|
2793
2652
|
'react/jsx-no-duplicate-props'?: Linter.RuleEntry<[]>;
|
|
2653
|
+
/**
|
|
2654
|
+
* Disallows 'IIFE' in JSX elements.
|
|
2655
|
+
* @see https://eslint-react.xyz/docs/rules/jsx-no-iife
|
|
2656
|
+
*/
|
|
2657
|
+
'react/jsx-no-iife'?: Linter.RuleEntry<[]>;
|
|
2794
2658
|
/**
|
|
2795
2659
|
* Disallow undefined variables in JSX.
|
|
2796
2660
|
* @see https://eslint-react.xyz/docs/rules/jsx-no-undef
|
|
@@ -3390,7 +3254,7 @@ interface RuleOptions {
|
|
|
3390
3254
|
* enforce using quantifier
|
|
3391
3255
|
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-quantifier.html
|
|
3392
3256
|
*/
|
|
3393
|
-
'regexp/prefer-quantifier'?: Linter.RuleEntry<
|
|
3257
|
+
'regexp/prefer-quantifier'?: Linter.RuleEntry<RegexpPreferQuantifier>;
|
|
3394
3258
|
/**
|
|
3395
3259
|
* enforce using `?` quantifier
|
|
3396
3260
|
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-question-quantifier.html
|
|
@@ -3588,483 +3452,478 @@ interface RuleOptions {
|
|
|
3588
3452
|
'strict'?: Linter.RuleEntry<Strict>;
|
|
3589
3453
|
/**
|
|
3590
3454
|
* Enforce linebreaks after opening and before closing array brackets
|
|
3591
|
-
* @see https://eslint.style/rules/
|
|
3455
|
+
* @see https://eslint.style/rules/array-bracket-newline
|
|
3592
3456
|
*/
|
|
3593
3457
|
'style/array-bracket-newline'?: Linter.RuleEntry<StyleArrayBracketNewline>;
|
|
3594
3458
|
/**
|
|
3595
3459
|
* Enforce consistent spacing inside array brackets
|
|
3596
|
-
* @see https://eslint.style/rules/
|
|
3460
|
+
* @see https://eslint.style/rules/array-bracket-spacing
|
|
3597
3461
|
*/
|
|
3598
3462
|
'style/array-bracket-spacing'?: Linter.RuleEntry<StyleArrayBracketSpacing>;
|
|
3599
3463
|
/**
|
|
3600
3464
|
* Enforce line breaks after each array element
|
|
3601
|
-
* @see https://eslint.style/rules/
|
|
3465
|
+
* @see https://eslint.style/rules/array-element-newline
|
|
3602
3466
|
*/
|
|
3603
3467
|
'style/array-element-newline'?: Linter.RuleEntry<StyleArrayElementNewline>;
|
|
3604
3468
|
/**
|
|
3605
3469
|
* Require parentheses around arrow function arguments
|
|
3606
|
-
* @see https://eslint.style/rules/
|
|
3470
|
+
* @see https://eslint.style/rules/arrow-parens
|
|
3607
3471
|
*/
|
|
3608
3472
|
'style/arrow-parens'?: Linter.RuleEntry<StyleArrowParens>;
|
|
3609
3473
|
/**
|
|
3610
3474
|
* Enforce consistent spacing before and after the arrow in arrow functions
|
|
3611
|
-
* @see https://eslint.style/rules/
|
|
3475
|
+
* @see https://eslint.style/rules/arrow-spacing
|
|
3612
3476
|
*/
|
|
3613
3477
|
'style/arrow-spacing'?: Linter.RuleEntry<StyleArrowSpacing>;
|
|
3614
3478
|
/**
|
|
3615
3479
|
* Disallow or enforce spaces inside of blocks after opening block and before closing block
|
|
3616
|
-
* @see https://eslint.style/rules/
|
|
3480
|
+
* @see https://eslint.style/rules/block-spacing
|
|
3617
3481
|
*/
|
|
3618
3482
|
'style/block-spacing'?: Linter.RuleEntry<StyleBlockSpacing>;
|
|
3619
3483
|
/**
|
|
3620
3484
|
* Enforce consistent brace style for blocks
|
|
3621
|
-
* @see https://eslint.style/rules/
|
|
3485
|
+
* @see https://eslint.style/rules/brace-style
|
|
3622
3486
|
*/
|
|
3623
3487
|
'style/brace-style'?: Linter.RuleEntry<StyleBraceStyle>;
|
|
3624
3488
|
/**
|
|
3625
3489
|
* Require or disallow trailing commas
|
|
3626
|
-
* @see https://eslint.style/rules/
|
|
3490
|
+
* @see https://eslint.style/rules/comma-dangle
|
|
3627
3491
|
*/
|
|
3628
3492
|
'style/comma-dangle'?: Linter.RuleEntry<StyleCommaDangle>;
|
|
3629
3493
|
/**
|
|
3630
3494
|
* Enforce consistent spacing before and after commas
|
|
3631
|
-
* @see https://eslint.style/rules/
|
|
3495
|
+
* @see https://eslint.style/rules/comma-spacing
|
|
3632
3496
|
*/
|
|
3633
3497
|
'style/comma-spacing'?: Linter.RuleEntry<StyleCommaSpacing>;
|
|
3634
3498
|
/**
|
|
3635
3499
|
* Enforce consistent comma style
|
|
3636
|
-
* @see https://eslint.style/rules/
|
|
3500
|
+
* @see https://eslint.style/rules/comma-style
|
|
3637
3501
|
*/
|
|
3638
3502
|
'style/comma-style'?: Linter.RuleEntry<StyleCommaStyle>;
|
|
3639
3503
|
/**
|
|
3640
3504
|
* Enforce consistent spacing inside computed property brackets
|
|
3641
|
-
* @see https://eslint.style/rules/
|
|
3505
|
+
* @see https://eslint.style/rules/computed-property-spacing
|
|
3642
3506
|
*/
|
|
3643
3507
|
'style/computed-property-spacing'?: Linter.RuleEntry<StyleComputedPropertySpacing>;
|
|
3644
3508
|
/**
|
|
3645
3509
|
* Enforce consistent line breaks after opening and before closing braces
|
|
3646
|
-
* @see https://eslint.style/rules/
|
|
3510
|
+
* @see https://eslint.style/rules/curly-newline
|
|
3647
3511
|
*/
|
|
3648
3512
|
'style/curly-newline'?: Linter.RuleEntry<StyleCurlyNewline>;
|
|
3649
3513
|
/**
|
|
3650
3514
|
* Enforce consistent newlines before and after dots
|
|
3651
|
-
* @see https://eslint.style/rules/
|
|
3515
|
+
* @see https://eslint.style/rules/dot-location
|
|
3652
3516
|
*/
|
|
3653
3517
|
'style/dot-location'?: Linter.RuleEntry<StyleDotLocation>;
|
|
3654
3518
|
/**
|
|
3655
3519
|
* Require or disallow newline at the end of files
|
|
3656
|
-
* @see https://eslint.style/rules/
|
|
3520
|
+
* @see https://eslint.style/rules/eol-last
|
|
3657
3521
|
*/
|
|
3658
3522
|
'style/eol-last'?: Linter.RuleEntry<StyleEolLast>;
|
|
3659
|
-
/**
|
|
3660
|
-
* Require or disallow spacing between function identifiers and their invocations
|
|
3661
|
-
* @see https://eslint.style/rules/ts/function-call-spacing
|
|
3662
|
-
*/
|
|
3663
|
-
'style/func-call-spacing'?: Linter.RuleEntry<StyleFuncCallSpacing>;
|
|
3664
3523
|
/**
|
|
3665
3524
|
* Enforce line breaks between arguments of a function call
|
|
3666
|
-
* @see https://eslint.style/rules/
|
|
3525
|
+
* @see https://eslint.style/rules/function-call-argument-newline
|
|
3667
3526
|
*/
|
|
3668
3527
|
'style/function-call-argument-newline'?: Linter.RuleEntry<StyleFunctionCallArgumentNewline>;
|
|
3669
3528
|
/**
|
|
3670
3529
|
* Require or disallow spacing between function identifiers and their invocations
|
|
3671
|
-
* @see https://eslint.style/rules/
|
|
3530
|
+
* @see https://eslint.style/rules/function-call-spacing
|
|
3672
3531
|
*/
|
|
3673
3532
|
'style/function-call-spacing'?: Linter.RuleEntry<StyleFunctionCallSpacing>;
|
|
3674
3533
|
/**
|
|
3675
3534
|
* Enforce consistent line breaks inside function parentheses
|
|
3676
|
-
* @see https://eslint.style/rules/
|
|
3535
|
+
* @see https://eslint.style/rules/function-paren-newline
|
|
3677
3536
|
*/
|
|
3678
3537
|
'style/function-paren-newline'?: Linter.RuleEntry<StyleFunctionParenNewline>;
|
|
3679
3538
|
/**
|
|
3680
3539
|
* Enforce consistent spacing around `*` operators in generator functions
|
|
3681
|
-
* @see https://eslint.style/rules/
|
|
3540
|
+
* @see https://eslint.style/rules/generator-star-spacing
|
|
3682
3541
|
*/
|
|
3683
3542
|
'style/generator-star-spacing'?: Linter.RuleEntry<StyleGeneratorStarSpacing>;
|
|
3684
3543
|
/**
|
|
3685
3544
|
* Enforce the location of arrow function bodies
|
|
3686
|
-
* @see https://eslint.style/rules/
|
|
3545
|
+
* @see https://eslint.style/rules/implicit-arrow-linebreak
|
|
3687
3546
|
*/
|
|
3688
3547
|
'style/implicit-arrow-linebreak'?: Linter.RuleEntry<StyleImplicitArrowLinebreak>;
|
|
3689
3548
|
/**
|
|
3690
3549
|
* Enforce consistent indentation
|
|
3691
|
-
* @see https://eslint.style/rules/
|
|
3550
|
+
* @see https://eslint.style/rules/indent
|
|
3692
3551
|
*/
|
|
3693
3552
|
'style/indent'?: Linter.RuleEntry<StyleIndent>;
|
|
3694
3553
|
/**
|
|
3695
3554
|
* Indentation for binary operators
|
|
3696
|
-
* @see https://eslint.style/rules/
|
|
3555
|
+
* @see https://eslint.style/rules/indent-binary-ops
|
|
3697
3556
|
*/
|
|
3698
3557
|
'style/indent-binary-ops'?: Linter.RuleEntry<StyleIndentBinaryOps>;
|
|
3699
3558
|
/**
|
|
3700
3559
|
* Enforce or disallow spaces inside of curly braces in JSX attributes and expressions
|
|
3701
|
-
* @see https://eslint.style/rules/jsx
|
|
3560
|
+
* @see https://eslint.style/rules/jsx-child-element-spacing
|
|
3702
3561
|
*/
|
|
3703
3562
|
'style/jsx-child-element-spacing'?: Linter.RuleEntry<[]>;
|
|
3704
3563
|
/**
|
|
3705
3564
|
* Enforce closing bracket location in JSX
|
|
3706
|
-
* @see https://eslint.style/rules/jsx
|
|
3565
|
+
* @see https://eslint.style/rules/jsx-closing-bracket-location
|
|
3707
3566
|
*/
|
|
3708
3567
|
'style/jsx-closing-bracket-location'?: Linter.RuleEntry<StyleJsxClosingBracketLocation>;
|
|
3709
3568
|
/**
|
|
3710
3569
|
* Enforce closing tag location for multiline JSX
|
|
3711
|
-
* @see https://eslint.style/rules/jsx
|
|
3570
|
+
* @see https://eslint.style/rules/jsx-closing-tag-location
|
|
3712
3571
|
*/
|
|
3713
3572
|
'style/jsx-closing-tag-location'?: Linter.RuleEntry<StyleJsxClosingTagLocation>;
|
|
3714
3573
|
/**
|
|
3715
3574
|
* Disallow unnecessary JSX expressions when literals alone are sufficient or enforce JSX expressions on literals in JSX children or attributes
|
|
3716
|
-
* @see https://eslint.style/rules/jsx
|
|
3575
|
+
* @see https://eslint.style/rules/jsx-curly-brace-presence
|
|
3717
3576
|
*/
|
|
3718
3577
|
'style/jsx-curly-brace-presence'?: Linter.RuleEntry<StyleJsxCurlyBracePresence>;
|
|
3719
3578
|
/**
|
|
3720
3579
|
* Enforce consistent linebreaks in curly braces in JSX attributes and expressions
|
|
3721
|
-
* @see https://eslint.style/rules/jsx
|
|
3580
|
+
* @see https://eslint.style/rules/jsx-curly-newline
|
|
3722
3581
|
*/
|
|
3723
3582
|
'style/jsx-curly-newline'?: Linter.RuleEntry<StyleJsxCurlyNewline>;
|
|
3724
3583
|
/**
|
|
3725
3584
|
* Enforce or disallow spaces inside of curly braces in JSX attributes and expressions
|
|
3726
|
-
* @see https://eslint.style/rules/jsx
|
|
3585
|
+
* @see https://eslint.style/rules/jsx-curly-spacing
|
|
3727
3586
|
*/
|
|
3728
3587
|
'style/jsx-curly-spacing'?: Linter.RuleEntry<StyleJsxCurlySpacing>;
|
|
3729
3588
|
/**
|
|
3730
3589
|
* Enforce or disallow spaces around equal signs in JSX attributes
|
|
3731
|
-
* @see https://eslint.style/rules/jsx
|
|
3590
|
+
* @see https://eslint.style/rules/jsx-equals-spacing
|
|
3732
3591
|
*/
|
|
3733
3592
|
'style/jsx-equals-spacing'?: Linter.RuleEntry<StyleJsxEqualsSpacing>;
|
|
3734
3593
|
/**
|
|
3735
3594
|
* Enforce proper position of the first property in JSX
|
|
3736
|
-
* @see https://eslint.style/rules/jsx
|
|
3595
|
+
* @see https://eslint.style/rules/jsx-first-prop-new-line
|
|
3737
3596
|
*/
|
|
3738
3597
|
'style/jsx-first-prop-new-line'?: Linter.RuleEntry<StyleJsxFirstPropNewLine>;
|
|
3739
3598
|
/**
|
|
3740
3599
|
* Enforce line breaks before and after JSX elements when they are used as arguments to a function.
|
|
3741
|
-
* @see https://eslint.style/rules/jsx
|
|
3600
|
+
* @see https://eslint.style/rules/jsx-function-call-newline
|
|
3742
3601
|
*/
|
|
3743
3602
|
'style/jsx-function-call-newline'?: Linter.RuleEntry<StyleJsxFunctionCallNewline>;
|
|
3744
3603
|
/**
|
|
3745
3604
|
* Enforce JSX indentation. Deprecated, use `indent` rule instead.
|
|
3746
|
-
* @see https://eslint.style/rules/jsx
|
|
3605
|
+
* @see https://eslint.style/rules/jsx-indent
|
|
3747
3606
|
* @deprecated
|
|
3748
3607
|
*/
|
|
3749
3608
|
'style/jsx-indent'?: Linter.RuleEntry<StyleJsxIndent>;
|
|
3750
3609
|
/**
|
|
3751
3610
|
* Enforce props indentation in JSX
|
|
3752
|
-
* @see https://eslint.style/rules/jsx
|
|
3611
|
+
* @see https://eslint.style/rules/jsx-indent-props
|
|
3753
3612
|
*/
|
|
3754
3613
|
'style/jsx-indent-props'?: Linter.RuleEntry<StyleJsxIndentProps>;
|
|
3755
3614
|
/**
|
|
3756
3615
|
* Enforce maximum of props on a single line in JSX
|
|
3757
|
-
* @see https://eslint.style/rules/jsx
|
|
3616
|
+
* @see https://eslint.style/rules/jsx-max-props-per-line
|
|
3758
3617
|
*/
|
|
3759
3618
|
'style/jsx-max-props-per-line'?: Linter.RuleEntry<StyleJsxMaxPropsPerLine>;
|
|
3760
3619
|
/**
|
|
3761
3620
|
* Require or prevent a new line after jsx elements and expressions.
|
|
3762
|
-
* @see https://eslint.style/rules/jsx
|
|
3621
|
+
* @see https://eslint.style/rules/jsx-newline
|
|
3763
3622
|
*/
|
|
3764
3623
|
'style/jsx-newline'?: Linter.RuleEntry<StyleJsxNewline>;
|
|
3765
3624
|
/**
|
|
3766
3625
|
* Require one JSX element per line
|
|
3767
|
-
* @see https://eslint.style/rules/jsx
|
|
3626
|
+
* @see https://eslint.style/rules/jsx-one-expression-per-line
|
|
3768
3627
|
*/
|
|
3769
3628
|
'style/jsx-one-expression-per-line'?: Linter.RuleEntry<StyleJsxOneExpressionPerLine>;
|
|
3770
3629
|
/**
|
|
3771
3630
|
* Enforce PascalCase for user-defined JSX components
|
|
3772
|
-
* @see https://eslint.style/rules/jsx
|
|
3631
|
+
* @see https://eslint.style/rules/jsx-pascal-case
|
|
3773
3632
|
*/
|
|
3774
3633
|
'style/jsx-pascal-case'?: Linter.RuleEntry<StyleJsxPascalCase>;
|
|
3775
3634
|
/**
|
|
3776
3635
|
* Disallow multiple spaces between inline JSX props
|
|
3777
|
-
* @see https://eslint.style/rules/jsx
|
|
3636
|
+
* @see https://eslint.style/rules/jsx-props-no-multi-spaces
|
|
3778
3637
|
*/
|
|
3779
3638
|
'style/jsx-props-no-multi-spaces'?: Linter.RuleEntry<[]>;
|
|
3780
3639
|
/**
|
|
3781
3640
|
* Enforce the consistent use of either double or single quotes in JSX attributes
|
|
3782
|
-
* @see https://eslint.style/rules/
|
|
3641
|
+
* @see https://eslint.style/rules/jsx-quotes
|
|
3783
3642
|
*/
|
|
3784
3643
|
'style/jsx-quotes'?: Linter.RuleEntry<StyleJsxQuotes>;
|
|
3785
3644
|
/**
|
|
3786
3645
|
* Disallow extra closing tags for components without children
|
|
3787
|
-
* @see https://eslint.style/rules/jsx
|
|
3646
|
+
* @see https://eslint.style/rules/jsx-self-closing-comp
|
|
3788
3647
|
*/
|
|
3789
3648
|
'style/jsx-self-closing-comp'?: Linter.RuleEntry<StyleJsxSelfClosingComp>;
|
|
3790
3649
|
/**
|
|
3791
3650
|
* Enforce props alphabetical sorting
|
|
3792
|
-
* @see https://eslint.style/rules/jsx
|
|
3651
|
+
* @see https://eslint.style/rules/jsx-sort-props
|
|
3793
3652
|
*/
|
|
3794
3653
|
'style/jsx-sort-props'?: Linter.RuleEntry<StyleJsxSortProps>;
|
|
3795
3654
|
/**
|
|
3796
3655
|
* Enforce whitespace in and around the JSX opening and closing brackets
|
|
3797
|
-
* @see https://eslint.style/rules/jsx
|
|
3656
|
+
* @see https://eslint.style/rules/jsx-tag-spacing
|
|
3798
3657
|
*/
|
|
3799
3658
|
'style/jsx-tag-spacing'?: Linter.RuleEntry<StyleJsxTagSpacing>;
|
|
3800
3659
|
/**
|
|
3801
3660
|
* Disallow missing parentheses around multiline JSX
|
|
3802
|
-
* @see https://eslint.style/rules/jsx
|
|
3661
|
+
* @see https://eslint.style/rules/jsx-wrap-multilines
|
|
3803
3662
|
*/
|
|
3804
3663
|
'style/jsx-wrap-multilines'?: Linter.RuleEntry<StyleJsxWrapMultilines>;
|
|
3805
3664
|
/**
|
|
3806
3665
|
* Enforce consistent spacing between property names and type annotations in types and interfaces
|
|
3807
|
-
* @see https://eslint.style/rules/
|
|
3666
|
+
* @see https://eslint.style/rules/key-spacing
|
|
3808
3667
|
*/
|
|
3809
3668
|
'style/key-spacing'?: Linter.RuleEntry<StyleKeySpacing>;
|
|
3810
3669
|
/**
|
|
3811
3670
|
* Enforce consistent spacing before and after keywords
|
|
3812
|
-
* @see https://eslint.style/rules/
|
|
3671
|
+
* @see https://eslint.style/rules/keyword-spacing
|
|
3813
3672
|
*/
|
|
3814
3673
|
'style/keyword-spacing'?: Linter.RuleEntry<StyleKeywordSpacing>;
|
|
3815
3674
|
/**
|
|
3816
3675
|
* Enforce position of line comments
|
|
3817
|
-
* @see https://eslint.style/rules/
|
|
3676
|
+
* @see https://eslint.style/rules/line-comment-position
|
|
3818
3677
|
*/
|
|
3819
3678
|
'style/line-comment-position'?: Linter.RuleEntry<StyleLineCommentPosition>;
|
|
3820
3679
|
/**
|
|
3821
3680
|
* Enforce consistent linebreak style
|
|
3822
|
-
* @see https://eslint.style/rules/
|
|
3681
|
+
* @see https://eslint.style/rules/linebreak-style
|
|
3823
3682
|
*/
|
|
3824
3683
|
'style/linebreak-style'?: Linter.RuleEntry<StyleLinebreakStyle>;
|
|
3825
3684
|
/**
|
|
3826
3685
|
* Require empty lines around comments
|
|
3827
|
-
* @see https://eslint.style/rules/
|
|
3686
|
+
* @see https://eslint.style/rules/lines-around-comment
|
|
3828
3687
|
*/
|
|
3829
3688
|
'style/lines-around-comment'?: Linter.RuleEntry<StyleLinesAroundComment>;
|
|
3830
3689
|
/**
|
|
3831
3690
|
* Require or disallow an empty line between class members
|
|
3832
|
-
* @see https://eslint.style/rules/
|
|
3691
|
+
* @see https://eslint.style/rules/lines-between-class-members
|
|
3833
3692
|
*/
|
|
3834
3693
|
'style/lines-between-class-members'?: Linter.RuleEntry<StyleLinesBetweenClassMembers>;
|
|
3835
3694
|
/**
|
|
3836
3695
|
* Enforce a maximum line length
|
|
3837
|
-
* @see https://eslint.style/rules/
|
|
3696
|
+
* @see https://eslint.style/rules/max-len
|
|
3838
3697
|
*/
|
|
3839
3698
|
'style/max-len'?: Linter.RuleEntry<StyleMaxLen>;
|
|
3840
3699
|
/**
|
|
3841
3700
|
* Enforce a maximum number of statements allowed per line
|
|
3842
|
-
* @see https://eslint.style/rules/
|
|
3701
|
+
* @see https://eslint.style/rules/max-statements-per-line
|
|
3843
3702
|
*/
|
|
3844
3703
|
'style/max-statements-per-line'?: Linter.RuleEntry<StyleMaxStatementsPerLine>;
|
|
3845
3704
|
/**
|
|
3846
3705
|
* Require a specific member delimiter style for interfaces and type literals
|
|
3847
|
-
* @see https://eslint.style/rules/
|
|
3706
|
+
* @see https://eslint.style/rules/member-delimiter-style
|
|
3848
3707
|
*/
|
|
3849
3708
|
'style/member-delimiter-style'?: Linter.RuleEntry<StyleMemberDelimiterStyle>;
|
|
3850
3709
|
/**
|
|
3851
3710
|
* Enforce a particular style for multiline comments
|
|
3852
|
-
* @see https://eslint.style/rules/
|
|
3711
|
+
* @see https://eslint.style/rules/multiline-comment-style
|
|
3853
3712
|
*/
|
|
3854
3713
|
'style/multiline-comment-style'?: Linter.RuleEntry<StyleMultilineCommentStyle>;
|
|
3855
3714
|
/**
|
|
3856
3715
|
* Enforce newlines between operands of ternary expressions
|
|
3857
|
-
* @see https://eslint.style/rules/
|
|
3716
|
+
* @see https://eslint.style/rules/multiline-ternary
|
|
3858
3717
|
*/
|
|
3859
3718
|
'style/multiline-ternary'?: Linter.RuleEntry<StyleMultilineTernary>;
|
|
3860
3719
|
/**
|
|
3861
3720
|
* Enforce or disallow parentheses when invoking a constructor with no arguments
|
|
3862
|
-
* @see https://eslint.style/rules/
|
|
3721
|
+
* @see https://eslint.style/rules/new-parens
|
|
3863
3722
|
*/
|
|
3864
3723
|
'style/new-parens'?: Linter.RuleEntry<StyleNewParens>;
|
|
3865
3724
|
/**
|
|
3866
3725
|
* Require a newline after each call in a method chain
|
|
3867
|
-
* @see https://eslint.style/rules/
|
|
3726
|
+
* @see https://eslint.style/rules/newline-per-chained-call
|
|
3868
3727
|
*/
|
|
3869
3728
|
'style/newline-per-chained-call'?: Linter.RuleEntry<StyleNewlinePerChainedCall>;
|
|
3870
3729
|
/**
|
|
3871
3730
|
* Disallow arrow functions where they could be confused with comparisons
|
|
3872
|
-
* @see https://eslint.style/rules/
|
|
3731
|
+
* @see https://eslint.style/rules/no-confusing-arrow
|
|
3873
3732
|
*/
|
|
3874
3733
|
'style/no-confusing-arrow'?: Linter.RuleEntry<StyleNoConfusingArrow>;
|
|
3875
3734
|
/**
|
|
3876
3735
|
* Disallow unnecessary parentheses
|
|
3877
|
-
* @see https://eslint.style/rules/
|
|
3736
|
+
* @see https://eslint.style/rules/no-extra-parens
|
|
3878
3737
|
*/
|
|
3879
3738
|
'style/no-extra-parens'?: Linter.RuleEntry<StyleNoExtraParens>;
|
|
3880
3739
|
/**
|
|
3881
3740
|
* Disallow unnecessary semicolons
|
|
3882
|
-
* @see https://eslint.style/rules/
|
|
3741
|
+
* @see https://eslint.style/rules/no-extra-semi
|
|
3883
3742
|
*/
|
|
3884
3743
|
'style/no-extra-semi'?: Linter.RuleEntry<[]>;
|
|
3885
3744
|
/**
|
|
3886
3745
|
* Disallow leading or trailing decimal points in numeric literals
|
|
3887
|
-
* @see https://eslint.style/rules/
|
|
3746
|
+
* @see https://eslint.style/rules/no-floating-decimal
|
|
3888
3747
|
*/
|
|
3889
3748
|
'style/no-floating-decimal'?: Linter.RuleEntry<[]>;
|
|
3890
3749
|
/**
|
|
3891
3750
|
* Disallow mixed binary operators
|
|
3892
|
-
* @see https://eslint.style/rules/
|
|
3751
|
+
* @see https://eslint.style/rules/no-mixed-operators
|
|
3893
3752
|
*/
|
|
3894
3753
|
'style/no-mixed-operators'?: Linter.RuleEntry<StyleNoMixedOperators>;
|
|
3895
3754
|
/**
|
|
3896
3755
|
* Disallow mixed spaces and tabs for indentation
|
|
3897
|
-
* @see https://eslint.style/rules/
|
|
3756
|
+
* @see https://eslint.style/rules/no-mixed-spaces-and-tabs
|
|
3898
3757
|
*/
|
|
3899
3758
|
'style/no-mixed-spaces-and-tabs'?: Linter.RuleEntry<StyleNoMixedSpacesAndTabs>;
|
|
3900
3759
|
/**
|
|
3901
3760
|
* Disallow multiple spaces
|
|
3902
|
-
* @see https://eslint.style/rules/
|
|
3761
|
+
* @see https://eslint.style/rules/no-multi-spaces
|
|
3903
3762
|
*/
|
|
3904
3763
|
'style/no-multi-spaces'?: Linter.RuleEntry<StyleNoMultiSpaces>;
|
|
3905
3764
|
/**
|
|
3906
3765
|
* Disallow multiple empty lines
|
|
3907
|
-
* @see https://eslint.style/rules/
|
|
3766
|
+
* @see https://eslint.style/rules/no-multiple-empty-lines
|
|
3908
3767
|
*/
|
|
3909
3768
|
'style/no-multiple-empty-lines'?: Linter.RuleEntry<StyleNoMultipleEmptyLines>;
|
|
3910
3769
|
/**
|
|
3911
3770
|
* Disallow all tabs
|
|
3912
|
-
* @see https://eslint.style/rules/
|
|
3771
|
+
* @see https://eslint.style/rules/no-tabs
|
|
3913
3772
|
*/
|
|
3914
3773
|
'style/no-tabs'?: Linter.RuleEntry<StyleNoTabs>;
|
|
3915
3774
|
/**
|
|
3916
3775
|
* Disallow trailing whitespace at the end of lines
|
|
3917
|
-
* @see https://eslint.style/rules/
|
|
3776
|
+
* @see https://eslint.style/rules/no-trailing-spaces
|
|
3918
3777
|
*/
|
|
3919
3778
|
'style/no-trailing-spaces'?: Linter.RuleEntry<StyleNoTrailingSpaces>;
|
|
3920
3779
|
/**
|
|
3921
3780
|
* Disallow whitespace before properties
|
|
3922
|
-
* @see https://eslint.style/rules/
|
|
3781
|
+
* @see https://eslint.style/rules/no-whitespace-before-property
|
|
3923
3782
|
*/
|
|
3924
3783
|
'style/no-whitespace-before-property'?: Linter.RuleEntry<[]>;
|
|
3925
3784
|
/**
|
|
3926
3785
|
* Enforce the location of single-line statements
|
|
3927
|
-
* @see https://eslint.style/rules/
|
|
3786
|
+
* @see https://eslint.style/rules/nonblock-statement-body-position
|
|
3928
3787
|
*/
|
|
3929
3788
|
'style/nonblock-statement-body-position'?: Linter.RuleEntry<StyleNonblockStatementBodyPosition>;
|
|
3930
3789
|
/**
|
|
3931
3790
|
* Enforce consistent line breaks after opening and before closing braces
|
|
3932
|
-
* @see https://eslint.style/rules/
|
|
3791
|
+
* @see https://eslint.style/rules/object-curly-newline
|
|
3933
3792
|
*/
|
|
3934
3793
|
'style/object-curly-newline'?: Linter.RuleEntry<StyleObjectCurlyNewline>;
|
|
3935
3794
|
/**
|
|
3936
3795
|
* Enforce consistent spacing inside braces
|
|
3937
|
-
* @see https://eslint.style/rules/
|
|
3796
|
+
* @see https://eslint.style/rules/object-curly-spacing
|
|
3938
3797
|
*/
|
|
3939
3798
|
'style/object-curly-spacing'?: Linter.RuleEntry<StyleObjectCurlySpacing>;
|
|
3940
3799
|
/**
|
|
3941
3800
|
* Enforce placing object properties on separate lines
|
|
3942
|
-
* @see https://eslint.style/rules/
|
|
3801
|
+
* @see https://eslint.style/rules/object-property-newline
|
|
3943
3802
|
*/
|
|
3944
3803
|
'style/object-property-newline'?: Linter.RuleEntry<StyleObjectPropertyNewline>;
|
|
3945
3804
|
/**
|
|
3946
3805
|
* Require or disallow newlines around variable declarations
|
|
3947
|
-
* @see https://eslint.style/rules/
|
|
3806
|
+
* @see https://eslint.style/rules/one-var-declaration-per-line
|
|
3948
3807
|
*/
|
|
3949
3808
|
'style/one-var-declaration-per-line'?: Linter.RuleEntry<StyleOneVarDeclarationPerLine>;
|
|
3950
3809
|
/**
|
|
3951
3810
|
* Enforce consistent linebreak style for operators
|
|
3952
|
-
* @see https://eslint.style/rules/
|
|
3811
|
+
* @see https://eslint.style/rules/operator-linebreak
|
|
3953
3812
|
*/
|
|
3954
3813
|
'style/operator-linebreak'?: Linter.RuleEntry<StyleOperatorLinebreak>;
|
|
3955
3814
|
/**
|
|
3956
3815
|
* Require or disallow padding within blocks
|
|
3957
|
-
* @see https://eslint.style/rules/
|
|
3816
|
+
* @see https://eslint.style/rules/padded-blocks
|
|
3958
3817
|
*/
|
|
3959
3818
|
'style/padded-blocks'?: Linter.RuleEntry<StylePaddedBlocks>;
|
|
3960
3819
|
/**
|
|
3961
3820
|
* Require or disallow padding lines between statements
|
|
3962
|
-
* @see https://eslint.style/rules/
|
|
3821
|
+
* @see https://eslint.style/rules/padding-line-between-statements
|
|
3963
3822
|
*/
|
|
3964
3823
|
'style/padding-line-between-statements'?: Linter.RuleEntry<StylePaddingLineBetweenStatements>;
|
|
3965
3824
|
/**
|
|
3966
3825
|
* Require quotes around object literal, type literal, interfaces and enums property names
|
|
3967
|
-
* @see https://eslint.style/rules/
|
|
3826
|
+
* @see https://eslint.style/rules/quote-props
|
|
3968
3827
|
*/
|
|
3969
3828
|
'style/quote-props'?: Linter.RuleEntry<StyleQuoteProps>;
|
|
3970
3829
|
/**
|
|
3971
3830
|
* Enforce the consistent use of either backticks, double, or single quotes
|
|
3972
|
-
* @see https://eslint.style/rules/
|
|
3831
|
+
* @see https://eslint.style/rules/quotes
|
|
3973
3832
|
*/
|
|
3974
3833
|
'style/quotes'?: Linter.RuleEntry<StyleQuotes>;
|
|
3975
3834
|
/**
|
|
3976
3835
|
* Enforce spacing between rest and spread operators and their expressions
|
|
3977
|
-
* @see https://eslint.style/rules/
|
|
3836
|
+
* @see https://eslint.style/rules/rest-spread-spacing
|
|
3978
3837
|
*/
|
|
3979
3838
|
'style/rest-spread-spacing'?: Linter.RuleEntry<StyleRestSpreadSpacing>;
|
|
3980
3839
|
/**
|
|
3981
3840
|
* Require or disallow semicolons instead of ASI
|
|
3982
|
-
* @see https://eslint.style/rules/
|
|
3841
|
+
* @see https://eslint.style/rules/semi
|
|
3983
3842
|
*/
|
|
3984
3843
|
'style/semi'?: Linter.RuleEntry<StyleSemi>;
|
|
3985
3844
|
/**
|
|
3986
3845
|
* Enforce consistent spacing before and after semicolons
|
|
3987
|
-
* @see https://eslint.style/rules/
|
|
3846
|
+
* @see https://eslint.style/rules/semi-spacing
|
|
3988
3847
|
*/
|
|
3989
3848
|
'style/semi-spacing'?: Linter.RuleEntry<StyleSemiSpacing>;
|
|
3990
3849
|
/**
|
|
3991
3850
|
* Enforce location of semicolons
|
|
3992
|
-
* @see https://eslint.style/rules/
|
|
3851
|
+
* @see https://eslint.style/rules/semi-style
|
|
3993
3852
|
*/
|
|
3994
3853
|
'style/semi-style'?: Linter.RuleEntry<StyleSemiStyle>;
|
|
3995
3854
|
/**
|
|
3996
3855
|
* Enforce consistent spacing before blocks
|
|
3997
|
-
* @see https://eslint.style/rules/
|
|
3856
|
+
* @see https://eslint.style/rules/space-before-blocks
|
|
3998
3857
|
*/
|
|
3999
3858
|
'style/space-before-blocks'?: Linter.RuleEntry<StyleSpaceBeforeBlocks>;
|
|
4000
3859
|
/**
|
|
4001
3860
|
* Enforce consistent spacing before function parenthesis
|
|
4002
|
-
* @see https://eslint.style/rules/
|
|
3861
|
+
* @see https://eslint.style/rules/space-before-function-paren
|
|
4003
3862
|
*/
|
|
4004
3863
|
'style/space-before-function-paren'?: Linter.RuleEntry<StyleSpaceBeforeFunctionParen>;
|
|
4005
3864
|
/**
|
|
4006
3865
|
* Enforce consistent spacing inside parentheses
|
|
4007
|
-
* @see https://eslint.style/rules/
|
|
3866
|
+
* @see https://eslint.style/rules/space-in-parens
|
|
4008
3867
|
*/
|
|
4009
3868
|
'style/space-in-parens'?: Linter.RuleEntry<StyleSpaceInParens>;
|
|
4010
3869
|
/**
|
|
4011
3870
|
* Require spacing around infix operators
|
|
4012
|
-
* @see https://eslint.style/rules/
|
|
3871
|
+
* @see https://eslint.style/rules/space-infix-ops
|
|
4013
3872
|
*/
|
|
4014
3873
|
'style/space-infix-ops'?: Linter.RuleEntry<StyleSpaceInfixOps>;
|
|
4015
3874
|
/**
|
|
4016
3875
|
* Enforce consistent spacing before or after unary operators
|
|
4017
|
-
* @see https://eslint.style/rules/
|
|
3876
|
+
* @see https://eslint.style/rules/space-unary-ops
|
|
4018
3877
|
*/
|
|
4019
3878
|
'style/space-unary-ops'?: Linter.RuleEntry<StyleSpaceUnaryOps>;
|
|
4020
3879
|
/**
|
|
4021
3880
|
* Enforce consistent spacing after the `//` or `/*` in a comment
|
|
4022
|
-
* @see https://eslint.style/rules/
|
|
3881
|
+
* @see https://eslint.style/rules/spaced-comment
|
|
4023
3882
|
*/
|
|
4024
3883
|
'style/spaced-comment'?: Linter.RuleEntry<StyleSpacedComment>;
|
|
4025
3884
|
/**
|
|
4026
3885
|
* Enforce spacing around colons of switch statements
|
|
4027
|
-
* @see https://eslint.style/rules/
|
|
3886
|
+
* @see https://eslint.style/rules/switch-colon-spacing
|
|
4028
3887
|
*/
|
|
4029
3888
|
'style/switch-colon-spacing'?: Linter.RuleEntry<StyleSwitchColonSpacing>;
|
|
4030
3889
|
/**
|
|
4031
3890
|
* Require or disallow spacing around embedded expressions of template strings
|
|
4032
|
-
* @see https://eslint.style/rules/
|
|
3891
|
+
* @see https://eslint.style/rules/template-curly-spacing
|
|
4033
3892
|
*/
|
|
4034
3893
|
'style/template-curly-spacing'?: Linter.RuleEntry<StyleTemplateCurlySpacing>;
|
|
4035
3894
|
/**
|
|
4036
3895
|
* Require or disallow spacing between template tags and their literals
|
|
4037
|
-
* @see https://eslint.style/rules/
|
|
3896
|
+
* @see https://eslint.style/rules/template-tag-spacing
|
|
4038
3897
|
*/
|
|
4039
3898
|
'style/template-tag-spacing'?: Linter.RuleEntry<StyleTemplateTagSpacing>;
|
|
4040
3899
|
/**
|
|
4041
3900
|
* Require consistent spacing around type annotations
|
|
4042
|
-
* @see https://eslint.style/rules/
|
|
3901
|
+
* @see https://eslint.style/rules/type-annotation-spacing
|
|
4043
3902
|
*/
|
|
4044
3903
|
'style/type-annotation-spacing'?: Linter.RuleEntry<StyleTypeAnnotationSpacing>;
|
|
4045
3904
|
/**
|
|
4046
3905
|
* Enforces consistent spacing inside TypeScript type generics
|
|
4047
|
-
* @see https://eslint.style/rules/
|
|
3906
|
+
* @see https://eslint.style/rules/type-generic-spacing
|
|
4048
3907
|
*/
|
|
4049
3908
|
'style/type-generic-spacing'?: Linter.RuleEntry<[]>;
|
|
4050
3909
|
/**
|
|
4051
3910
|
* Expect space before the type declaration in the named tuple
|
|
4052
|
-
* @see https://eslint.style/rules/
|
|
3911
|
+
* @see https://eslint.style/rules/type-named-tuple-spacing
|
|
4053
3912
|
*/
|
|
4054
3913
|
'style/type-named-tuple-spacing'?: Linter.RuleEntry<[]>;
|
|
4055
3914
|
/**
|
|
4056
3915
|
* Require parentheses around immediate `function` invocations
|
|
4057
|
-
* @see https://eslint.style/rules/
|
|
3916
|
+
* @see https://eslint.style/rules/wrap-iife
|
|
4058
3917
|
*/
|
|
4059
3918
|
'style/wrap-iife'?: Linter.RuleEntry<StyleWrapIife>;
|
|
4060
3919
|
/**
|
|
4061
3920
|
* Require parenthesis around regex literals
|
|
4062
|
-
* @see https://eslint.style/rules/
|
|
3921
|
+
* @see https://eslint.style/rules/wrap-regex
|
|
4063
3922
|
*/
|
|
4064
3923
|
'style/wrap-regex'?: Linter.RuleEntry<[]>;
|
|
4065
3924
|
/**
|
|
4066
3925
|
* Require or disallow spacing around the `*` in `yield*` expressions
|
|
4067
|
-
* @see https://eslint.style/rules/
|
|
3926
|
+
* @see https://eslint.style/rules/yield-star-spacing
|
|
4068
3927
|
*/
|
|
4069
3928
|
'style/yield-star-spacing'?: Linter.RuleEntry<StyleYieldStarSpacing>;
|
|
4070
3929
|
/**
|
|
@@ -4100,6 +3959,11 @@ interface RuleOptions {
|
|
|
4100
3959
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/consistent-test-it.md
|
|
4101
3960
|
*/
|
|
4102
3961
|
'test/consistent-test-it'?: Linter.RuleEntry<TestConsistentTestIt>;
|
|
3962
|
+
/**
|
|
3963
|
+
* enforce using vitest or vi but not both
|
|
3964
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/consistent-vitest-vi.md
|
|
3965
|
+
*/
|
|
3966
|
+
'test/consistent-vitest-vi'?: Linter.RuleEntry<TestConsistentVitestVi>;
|
|
4103
3967
|
/**
|
|
4104
3968
|
* enforce having expectation in test body
|
|
4105
3969
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/expect-expect.md
|
|
@@ -4176,6 +4040,11 @@ interface RuleOptions {
|
|
|
4176
4040
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-import-node-test.md
|
|
4177
4041
|
*/
|
|
4178
4042
|
'test/no-import-node-test'?: Linter.RuleEntry<[]>;
|
|
4043
|
+
/**
|
|
4044
|
+
* disallow importing Vitest globals
|
|
4045
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-importing-vitest-globals.md
|
|
4046
|
+
*/
|
|
4047
|
+
'test/no-importing-vitest-globals'?: Linter.RuleEntry<[]>;
|
|
4179
4048
|
/**
|
|
4180
4049
|
* disallow string interpolation in snapshots
|
|
4181
4050
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-interpolation-in-snapshots.md
|
|
@@ -4212,7 +4081,7 @@ interface RuleOptions {
|
|
|
4212
4081
|
*/
|
|
4213
4082
|
'test/no-standalone-expect'?: Linter.RuleEntry<TestNoStandaloneExpect>;
|
|
4214
4083
|
/**
|
|
4215
|
-
*
|
|
4084
|
+
* disallow using the `f` and `x` prefixes in favour of `.only` and `.skip`
|
|
4216
4085
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-test-prefixes.md
|
|
4217
4086
|
*/
|
|
4218
4087
|
'test/no-test-prefixes'?: Linter.RuleEntry<[]>;
|
|
@@ -4306,6 +4175,11 @@ interface RuleOptions {
|
|
|
4306
4175
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-hooks-on-top.md
|
|
4307
4176
|
*/
|
|
4308
4177
|
'test/prefer-hooks-on-top'?: Linter.RuleEntry<[]>;
|
|
4178
|
+
/**
|
|
4179
|
+
* enforce importing Vitest globals
|
|
4180
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-importing-vitest-globals.md
|
|
4181
|
+
*/
|
|
4182
|
+
'test/prefer-importing-vitest-globals'?: Linter.RuleEntry<[]>;
|
|
4309
4183
|
/**
|
|
4310
4184
|
* enforce lowercase titles
|
|
4311
4185
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-lowercase-title.md
|
|
@@ -5176,6 +5050,7 @@ interface RuleOptions {
|
|
|
5176
5050
|
/**
|
|
5177
5051
|
* Require type annotations in certain places
|
|
5178
5052
|
* @see https://typescript-eslint.io/rules/typedef
|
|
5053
|
+
* @deprecated
|
|
5179
5054
|
*/
|
|
5180
5055
|
'ts/typedef'?: Linter.RuleEntry<TsTypedef>;
|
|
5181
5056
|
/**
|
|
@@ -7526,6 +7401,7 @@ type _FuncNamesValue = ("always" | "as-needed" | "never");
|
|
|
7526
7401
|
// ----- func-style -----
|
|
7527
7402
|
type FuncStyle = [] | [("declaration" | "expression")] | [("declaration" | "expression"), {
|
|
7528
7403
|
allowArrowFunctions?: boolean;
|
|
7404
|
+
allowTypeAnnotation?: boolean;
|
|
7529
7405
|
overrides?: {
|
|
7530
7406
|
namedExports?: ("declaration" | "expression" | "ignore");
|
|
7531
7407
|
};
|
|
@@ -7583,246 +7459,19 @@ type IdMatch = [] | [string] | [string, {
|
|
|
7583
7459
|
// ----- implicit-arrow-linebreak -----
|
|
7584
7460
|
type ImplicitArrowLinebreak = [] | [("beside" | "below")];
|
|
7585
7461
|
// ----- import/consistent-type-specifier-style -----
|
|
7586
|
-
type ImportConsistentTypeSpecifierStyle = [] | [("
|
|
7587
|
-
// ----- import/dynamic-import-chunkname -----
|
|
7588
|
-
type ImportDynamicImportChunkname = [] | [{
|
|
7589
|
-
importFunctions?: string[];
|
|
7590
|
-
allowEmpty?: boolean;
|
|
7591
|
-
webpackChunknameFormat?: string;
|
|
7592
|
-
[k: string]: unknown | undefined;
|
|
7593
|
-
}];
|
|
7594
|
-
// ----- import/extensions -----
|
|
7595
|
-
type ImportExtensions = ([] | [("always" | "ignorePackages" | "never")] | [] | [("always" | "ignorePackages" | "never")] | [("always" | "ignorePackages" | "never"), {
|
|
7596
|
-
pattern?: {
|
|
7597
|
-
[k: string]: ("always" | "ignorePackages" | "never");
|
|
7598
|
-
};
|
|
7599
|
-
ignorePackages?: boolean;
|
|
7600
|
-
checkTypeImports?: boolean;
|
|
7601
|
-
pathGroupOverrides?: {
|
|
7602
|
-
pattern: string;
|
|
7603
|
-
patternOptions?: {
|
|
7604
|
-
[k: string]: unknown | undefined;
|
|
7605
|
-
};
|
|
7606
|
-
action: ("enforce" | "ignore");
|
|
7607
|
-
}[];
|
|
7608
|
-
fix?: boolean;
|
|
7609
|
-
[k: string]: unknown | undefined;
|
|
7610
|
-
}] | [] | [{
|
|
7611
|
-
pattern?: {
|
|
7612
|
-
[k: string]: ("always" | "ignorePackages" | "never");
|
|
7613
|
-
};
|
|
7614
|
-
ignorePackages?: boolean;
|
|
7615
|
-
checkTypeImports?: boolean;
|
|
7616
|
-
pathGroupOverrides?: {
|
|
7617
|
-
pattern: string;
|
|
7618
|
-
patternOptions?: {
|
|
7619
|
-
[k: string]: unknown | undefined;
|
|
7620
|
-
};
|
|
7621
|
-
action: ("enforce" | "ignore");
|
|
7622
|
-
}[];
|
|
7623
|
-
fix?: boolean;
|
|
7624
|
-
[k: string]: unknown | undefined;
|
|
7625
|
-
}] | [] | [("always" | "ignorePackages" | "never")] | [("always" | "ignorePackages" | "never"), {
|
|
7626
|
-
[k: string]: ("always" | "ignorePackages" | "never");
|
|
7627
|
-
}] | [] | [{
|
|
7628
|
-
[k: string]: ("always" | "ignorePackages" | "never");
|
|
7629
|
-
}]);
|
|
7462
|
+
type ImportConsistentTypeSpecifierStyle = [] | [("top-level" | "inline" | "prefer-top-level")];
|
|
7630
7463
|
// ----- import/first -----
|
|
7631
7464
|
type ImportFirst = [] | [("absolute-first" | "disable-absolute-first")];
|
|
7632
|
-
// ----- import/imports-first -----
|
|
7633
|
-
type ImportImportsFirst = [] | [("absolute-first" | "disable-absolute-first")];
|
|
7634
|
-
// ----- import/max-dependencies -----
|
|
7635
|
-
type ImportMaxDependencies = [] | [{
|
|
7636
|
-
max?: number;
|
|
7637
|
-
ignoreTypeImports?: boolean;
|
|
7638
|
-
}];
|
|
7639
|
-
// ----- import/named -----
|
|
7640
|
-
type ImportNamed = [] | [{
|
|
7641
|
-
commonjs?: boolean;
|
|
7642
|
-
}];
|
|
7643
|
-
// ----- import/namespace -----
|
|
7644
|
-
type ImportNamespace = [] | [{
|
|
7645
|
-
allowComputed?: boolean;
|
|
7646
|
-
}];
|
|
7647
7465
|
// ----- import/newline-after-import -----
|
|
7648
7466
|
type ImportNewlineAfterImport = [] | [{
|
|
7649
7467
|
count?: number;
|
|
7650
7468
|
exactCount?: boolean;
|
|
7651
7469
|
considerComments?: boolean;
|
|
7652
7470
|
}];
|
|
7653
|
-
// ----- import/no-absolute-path -----
|
|
7654
|
-
type ImportNoAbsolutePath = [] | [{
|
|
7655
|
-
commonjs?: boolean;
|
|
7656
|
-
amd?: boolean;
|
|
7657
|
-
esmodule?: boolean;
|
|
7658
|
-
ignore?: [string, ...(string)[]];
|
|
7659
|
-
}];
|
|
7660
|
-
// ----- import/no-anonymous-default-export -----
|
|
7661
|
-
type ImportNoAnonymousDefaultExport = [] | [{
|
|
7662
|
-
allowArray?: boolean;
|
|
7663
|
-
allowArrowFunction?: boolean;
|
|
7664
|
-
allowCallExpression?: boolean;
|
|
7665
|
-
allowAnonymousClass?: boolean;
|
|
7666
|
-
allowAnonymousFunction?: boolean;
|
|
7667
|
-
allowLiteral?: boolean;
|
|
7668
|
-
allowObject?: boolean;
|
|
7669
|
-
allowNew?: boolean;
|
|
7670
|
-
}];
|
|
7671
|
-
// ----- import/no-commonjs -----
|
|
7672
|
-
type ImportNoCommonjs = ([] | ["allow-primitive-modules"] | [] | [{
|
|
7673
|
-
allowPrimitiveModules?: boolean;
|
|
7674
|
-
allowRequire?: boolean;
|
|
7675
|
-
allowConditionalRequire?: boolean;
|
|
7676
|
-
}]);
|
|
7677
|
-
// ----- import/no-cycle -----
|
|
7678
|
-
type ImportNoCycle = [] | [{
|
|
7679
|
-
commonjs?: boolean;
|
|
7680
|
-
amd?: boolean;
|
|
7681
|
-
esmodule?: boolean;
|
|
7682
|
-
ignore?: [string, ...(string)[]];
|
|
7683
|
-
maxDepth?: (number | "∞");
|
|
7684
|
-
ignoreExternal?: boolean;
|
|
7685
|
-
allowUnsafeDynamicCyclicDependency?: boolean;
|
|
7686
|
-
}];
|
|
7687
7471
|
// ----- import/no-duplicates -----
|
|
7688
7472
|
type ImportNoDuplicates = [] | [{
|
|
7689
|
-
considerQueryString?: boolean;
|
|
7690
7473
|
"prefer-inline"?: boolean;
|
|
7691
7474
|
}];
|
|
7692
|
-
// ----- import/no-dynamic-require -----
|
|
7693
|
-
type ImportNoDynamicRequire = [] | [{
|
|
7694
|
-
esmodule?: boolean;
|
|
7695
|
-
}];
|
|
7696
|
-
// ----- import/no-extraneous-dependencies -----
|
|
7697
|
-
type ImportNoExtraneousDependencies = [] | [{
|
|
7698
|
-
devDependencies?: (boolean | unknown[]);
|
|
7699
|
-
optionalDependencies?: (boolean | unknown[]);
|
|
7700
|
-
peerDependencies?: (boolean | unknown[]);
|
|
7701
|
-
bundledDependencies?: (boolean | unknown[]);
|
|
7702
|
-
packageDir?: (string | unknown[]);
|
|
7703
|
-
includeInternal?: boolean;
|
|
7704
|
-
includeTypes?: boolean;
|
|
7705
|
-
whitelist?: unknown[];
|
|
7706
|
-
}];
|
|
7707
|
-
// ----- import/no-import-module-exports -----
|
|
7708
|
-
type ImportNoImportModuleExports = [] | [{
|
|
7709
|
-
exceptions?: unknown[];
|
|
7710
|
-
}];
|
|
7711
|
-
// ----- import/no-internal-modules -----
|
|
7712
|
-
type ImportNoInternalModules = [] | [({
|
|
7713
|
-
allow?: string[];
|
|
7714
|
-
} | {
|
|
7715
|
-
forbid?: string[];
|
|
7716
|
-
})];
|
|
7717
|
-
// ----- import/no-namespace -----
|
|
7718
|
-
type ImportNoNamespace = [] | [{
|
|
7719
|
-
ignore?: string[];
|
|
7720
|
-
[k: string]: unknown | undefined;
|
|
7721
|
-
}];
|
|
7722
|
-
// ----- import/no-nodejs-modules -----
|
|
7723
|
-
type ImportNoNodejsModules = [] | [{
|
|
7724
|
-
allow?: string[];
|
|
7725
|
-
}];
|
|
7726
|
-
// ----- import/no-relative-packages -----
|
|
7727
|
-
type ImportNoRelativePackages = [] | [{
|
|
7728
|
-
commonjs?: boolean;
|
|
7729
|
-
amd?: boolean;
|
|
7730
|
-
esmodule?: boolean;
|
|
7731
|
-
ignore?: [string, ...(string)[]];
|
|
7732
|
-
}];
|
|
7733
|
-
// ----- import/no-relative-parent-imports -----
|
|
7734
|
-
type ImportNoRelativeParentImports = [] | [{
|
|
7735
|
-
commonjs?: boolean;
|
|
7736
|
-
amd?: boolean;
|
|
7737
|
-
esmodule?: boolean;
|
|
7738
|
-
ignore?: [string, ...(string)[]];
|
|
7739
|
-
}];
|
|
7740
|
-
// ----- import/no-rename-default -----
|
|
7741
|
-
type ImportNoRenameDefault = [] | [{
|
|
7742
|
-
commonjs?: boolean;
|
|
7743
|
-
preventRenamingBindings?: boolean;
|
|
7744
|
-
}];
|
|
7745
|
-
// ----- import/no-restricted-paths -----
|
|
7746
|
-
type ImportNoRestrictedPaths = [] | [{
|
|
7747
|
-
zones?: [{
|
|
7748
|
-
target?: (string | [string, ...(string)[]]);
|
|
7749
|
-
from?: (string | [string, ...(string)[]]);
|
|
7750
|
-
except?: string[];
|
|
7751
|
-
message?: string;
|
|
7752
|
-
}, ...({
|
|
7753
|
-
target?: (string | [string, ...(string)[]]);
|
|
7754
|
-
from?: (string | [string, ...(string)[]]);
|
|
7755
|
-
except?: string[];
|
|
7756
|
-
message?: string;
|
|
7757
|
-
})[]];
|
|
7758
|
-
basePath?: string;
|
|
7759
|
-
}];
|
|
7760
|
-
// ----- import/no-unassigned-import -----
|
|
7761
|
-
type ImportNoUnassignedImport = [] | [{
|
|
7762
|
-
devDependencies?: (boolean | unknown[]);
|
|
7763
|
-
optionalDependencies?: (boolean | unknown[]);
|
|
7764
|
-
peerDependencies?: (boolean | unknown[]);
|
|
7765
|
-
allow?: string[];
|
|
7766
|
-
}];
|
|
7767
|
-
// ----- import/no-unresolved -----
|
|
7768
|
-
type ImportNoUnresolved = [] | [{
|
|
7769
|
-
commonjs?: boolean;
|
|
7770
|
-
amd?: boolean;
|
|
7771
|
-
esmodule?: boolean;
|
|
7772
|
-
ignore?: [string, ...(string)[]];
|
|
7773
|
-
caseSensitive?: boolean;
|
|
7774
|
-
caseSensitiveStrict?: boolean;
|
|
7775
|
-
}];
|
|
7776
|
-
// ----- import/no-unused-modules -----
|
|
7777
|
-
type ImportNoUnusedModules = [] | [({
|
|
7778
|
-
unusedExports: true;
|
|
7779
|
-
src?: [unknown, ...(unknown)[]];
|
|
7780
|
-
[k: string]: unknown | undefined;
|
|
7781
|
-
} | {
|
|
7782
|
-
missingExports: true;
|
|
7783
|
-
[k: string]: unknown | undefined;
|
|
7784
|
-
})];
|
|
7785
|
-
// ----- import/no-useless-path-segments -----
|
|
7786
|
-
type ImportNoUselessPathSegments = [] | [{
|
|
7787
|
-
commonjs?: boolean;
|
|
7788
|
-
noUselessIndex?: boolean;
|
|
7789
|
-
}];
|
|
7790
|
-
// ----- import/order -----
|
|
7791
|
-
type ImportOrder = [] | [{
|
|
7792
|
-
groups?: unknown[];
|
|
7793
|
-
pathGroupsExcludedImportTypes?: unknown[];
|
|
7794
|
-
distinctGroup?: boolean;
|
|
7795
|
-
pathGroups?: {
|
|
7796
|
-
pattern: string;
|
|
7797
|
-
patternOptions?: {
|
|
7798
|
-
[k: string]: unknown | undefined;
|
|
7799
|
-
};
|
|
7800
|
-
group: ("builtin" | "external" | "internal" | "unknown" | "parent" | "sibling" | "index" | "object" | "type");
|
|
7801
|
-
position?: ("after" | "before");
|
|
7802
|
-
}[];
|
|
7803
|
-
"newlines-between"?: ("ignore" | "always" | "always-and-inside-groups" | "never");
|
|
7804
|
-
"newlines-between-types"?: ("ignore" | "always" | "always-and-inside-groups" | "never");
|
|
7805
|
-
consolidateIslands?: ("inside-groups" | "never");
|
|
7806
|
-
sortTypesGroup?: boolean;
|
|
7807
|
-
named?: (boolean | {
|
|
7808
|
-
enabled?: boolean;
|
|
7809
|
-
import?: boolean;
|
|
7810
|
-
export?: boolean;
|
|
7811
|
-
require?: boolean;
|
|
7812
|
-
cjsExports?: boolean;
|
|
7813
|
-
types?: ("mixed" | "types-first" | "types-last");
|
|
7814
|
-
});
|
|
7815
|
-
alphabetize?: {
|
|
7816
|
-
caseInsensitive?: boolean;
|
|
7817
|
-
order?: ("ignore" | "asc" | "desc");
|
|
7818
|
-
orderImportKind?: ("ignore" | "asc" | "desc");
|
|
7819
|
-
};
|
|
7820
|
-
warnOnUnassignedImports?: boolean;
|
|
7821
|
-
}];
|
|
7822
|
-
// ----- import/prefer-default-export -----
|
|
7823
|
-
type ImportPreferDefaultExport = [] | [{
|
|
7824
|
-
target?: ("single" | "any");
|
|
7825
|
-
}];
|
|
7826
7475
|
// ----- indent -----
|
|
7827
7476
|
type Indent = [] | [("tab" | number)] | [("tab" | number), {
|
|
7828
7477
|
SwitchCase?: number;
|
|
@@ -7922,10 +7571,10 @@ type JsdocCheckLineAlignment = [] | [("always" | "never" | "any")] | [("always"
|
|
|
7922
7571
|
postTag?: number;
|
|
7923
7572
|
postType?: number;
|
|
7924
7573
|
};
|
|
7574
|
+
disableWrapIndent?: boolean;
|
|
7925
7575
|
preserveMainDescriptionPostDelimiter?: boolean;
|
|
7926
7576
|
tags?: string[];
|
|
7927
7577
|
wrapIndent?: string;
|
|
7928
|
-
disableWrapIndent?: boolean;
|
|
7929
7578
|
}];
|
|
7930
7579
|
// ----- jsdoc/check-param-names -----
|
|
7931
7580
|
type JsdocCheckParamNames = [] | [{
|
|
@@ -8008,6 +7657,7 @@ type JsdocLinesBeforeBlock = [] | [{
|
|
|
8008
7657
|
checkBlockStarts?: boolean;
|
|
8009
7658
|
excludedTags?: string[];
|
|
8010
7659
|
ignoreSameLine?: boolean;
|
|
7660
|
+
ignoreSingleLines?: boolean;
|
|
8011
7661
|
lines?: number;
|
|
8012
7662
|
}];
|
|
8013
7663
|
// ----- jsdoc/match-description -----
|
|
@@ -9003,10 +8653,28 @@ type LogicalAssignmentOperators = (([] | ["always"] | ["always", {
|
|
|
9003
8653
|
type MarkdownFencedCodeLanguage = [] | [{
|
|
9004
8654
|
required?: string[];
|
|
9005
8655
|
}];
|
|
8656
|
+
// ----- markdown/no-duplicate-definitions -----
|
|
8657
|
+
type MarkdownNoDuplicateDefinitions = [] | [{
|
|
8658
|
+
allowDefinitions?: string[];
|
|
8659
|
+
allowFootnoteDefinitions?: string[];
|
|
8660
|
+
}];
|
|
8661
|
+
// ----- markdown/no-duplicate-headings -----
|
|
8662
|
+
type MarkdownNoDuplicateHeadings = [] | [{
|
|
8663
|
+
checkSiblingsOnly?: boolean;
|
|
8664
|
+
}];
|
|
9006
8665
|
// ----- markdown/no-html -----
|
|
9007
8666
|
type MarkdownNoHtml = [] | [{
|
|
9008
8667
|
allowed?: string[];
|
|
9009
8668
|
}];
|
|
8669
|
+
// ----- markdown/no-missing-link-fragments -----
|
|
8670
|
+
type MarkdownNoMissingLinkFragments = [] | [{
|
|
8671
|
+
ignoreCase?: boolean;
|
|
8672
|
+
allowPattern?: string;
|
|
8673
|
+
}];
|
|
8674
|
+
// ----- markdown/no-multiple-h1 -----
|
|
8675
|
+
type MarkdownNoMultipleH1 = [] | [{
|
|
8676
|
+
frontmatterTitle?: string;
|
|
8677
|
+
}];
|
|
9010
8678
|
// ----- max-classes-per-file -----
|
|
9011
8679
|
type MaxClassesPerFile = [] | [(number | {
|
|
9012
8680
|
ignoreExpressions?: boolean;
|
|
@@ -9273,6 +8941,10 @@ type NoMagicNumbers = [] | [{
|
|
|
9273
8941
|
ignoreArrayIndexes?: boolean;
|
|
9274
8942
|
ignoreDefaultValues?: boolean;
|
|
9275
8943
|
ignoreClassFieldInitialValues?: boolean;
|
|
8944
|
+
ignoreEnums?: boolean;
|
|
8945
|
+
ignoreNumericLiteralTypes?: boolean;
|
|
8946
|
+
ignoreReadonlyClassProperties?: boolean;
|
|
8947
|
+
ignoreTypeIndexes?: boolean;
|
|
9276
8948
|
}];
|
|
9277
8949
|
// ----- no-misleading-character-class -----
|
|
9278
8950
|
type NoMisleadingCharacterClass = [] | [{
|
|
@@ -9405,9 +9077,11 @@ type NoSequences = [] | [{
|
|
|
9405
9077
|
// ----- no-shadow -----
|
|
9406
9078
|
type NoShadow = [] | [{
|
|
9407
9079
|
builtinGlobals?: boolean;
|
|
9408
|
-
hoist?: ("all" | "functions" | "never");
|
|
9080
|
+
hoist?: ("all" | "functions" | "never" | "types" | "functions-and-types");
|
|
9409
9081
|
allow?: string[];
|
|
9410
9082
|
ignoreOnInitialization?: boolean;
|
|
9083
|
+
ignoreTypeValueShadow?: boolean;
|
|
9084
|
+
ignoreFunctionTypeParameterNameValueShadow?: boolean;
|
|
9411
9085
|
}];
|
|
9412
9086
|
// ----- no-shadow-restricted-names -----
|
|
9413
9087
|
type NoShadowRestrictedNames = [] | [{
|
|
@@ -9485,6 +9159,9 @@ type NoUseBeforeDefine = [] | [("nofunc" | {
|
|
|
9485
9159
|
classes?: boolean;
|
|
9486
9160
|
variables?: boolean;
|
|
9487
9161
|
allowNamedExports?: boolean;
|
|
9162
|
+
enums?: boolean;
|
|
9163
|
+
typedefs?: boolean;
|
|
9164
|
+
ignoreTypeReferences?: boolean;
|
|
9488
9165
|
})];
|
|
9489
9166
|
// ----- no-useless-computed-key -----
|
|
9490
9167
|
type NoUselessComputedKey = [] | [{
|
|
@@ -9638,7 +9315,33 @@ type NodeNoRestrictedRequire = [] | [(string | {
|
|
|
9638
9315
|
// ----- node/no-sync -----
|
|
9639
9316
|
type NodeNoSync = [] | [{
|
|
9640
9317
|
allowAtRootLevel?: boolean;
|
|
9641
|
-
ignores?: string
|
|
9318
|
+
ignores?: (string | {
|
|
9319
|
+
from?: "file";
|
|
9320
|
+
path?: string;
|
|
9321
|
+
name?: string[];
|
|
9322
|
+
} | {
|
|
9323
|
+
from?: "lib";
|
|
9324
|
+
name?: string[];
|
|
9325
|
+
} | {
|
|
9326
|
+
from?: "package";
|
|
9327
|
+
package?: string;
|
|
9328
|
+
name?: string[];
|
|
9329
|
+
})[];
|
|
9330
|
+
}];
|
|
9331
|
+
// ----- node/no-top-level-await -----
|
|
9332
|
+
type NodeNoTopLevelAwait = [] | [{
|
|
9333
|
+
ignoreBin?: boolean;
|
|
9334
|
+
convertPath?: ({
|
|
9335
|
+
[k: string]: [string, string];
|
|
9336
|
+
} | [{
|
|
9337
|
+
include: [string, ...(string)[]];
|
|
9338
|
+
exclude?: string[];
|
|
9339
|
+
replace: [string, string];
|
|
9340
|
+
}, ...({
|
|
9341
|
+
include: [string, ...(string)[]];
|
|
9342
|
+
exclude?: string[];
|
|
9343
|
+
replace: [string, string];
|
|
9344
|
+
})[]]);
|
|
9642
9345
|
}];
|
|
9643
9346
|
// ----- node/no-unpublished-bin -----
|
|
9644
9347
|
type NodeNoUnpublishedBin = [] | [{
|
|
@@ -9861,7 +9564,7 @@ type PerfectionistSortArrayIncludes = {
|
|
|
9861
9564
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9862
9565
|
groupKind?: ("mixed" | "literals-first" | "spreads-first");
|
|
9863
9566
|
customGroups?: ({
|
|
9864
|
-
newlinesInside?: ("always" | "never");
|
|
9567
|
+
newlinesInside?: (("always" | "never") | number);
|
|
9865
9568
|
fallbackSort?: {
|
|
9866
9569
|
order?: ("asc" | "desc");
|
|
9867
9570
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -9880,7 +9583,7 @@ type PerfectionistSortArrayIncludes = {
|
|
|
9880
9583
|
} | string));
|
|
9881
9584
|
}[];
|
|
9882
9585
|
} | {
|
|
9883
|
-
newlinesInside?: ("always" | "never");
|
|
9586
|
+
newlinesInside?: (("always" | "never") | number);
|
|
9884
9587
|
fallbackSort?: {
|
|
9885
9588
|
order?: ("asc" | "desc");
|
|
9886
9589
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -9929,9 +9632,10 @@ type PerfectionistSortArrayIncludes = {
|
|
|
9929
9632
|
} | string)));
|
|
9930
9633
|
});
|
|
9931
9634
|
partitionByNewLine?: boolean;
|
|
9932
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
9635
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
9933
9636
|
groups?: (string | string[] | {
|
|
9934
|
-
newlinesBetween
|
|
9637
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
9638
|
+
commentAbove?: string;
|
|
9935
9639
|
})[];
|
|
9936
9640
|
}[];
|
|
9937
9641
|
// ----- perfectionist/sort-classes -----
|
|
@@ -9947,7 +9651,7 @@ type PerfectionistSortClasses = [] | [{
|
|
|
9947
9651
|
order?: ("asc" | "desc");
|
|
9948
9652
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9949
9653
|
customGroups?: ({
|
|
9950
|
-
newlinesInside?: ("always" | "never");
|
|
9654
|
+
newlinesInside?: (("always" | "never") | number);
|
|
9951
9655
|
fallbackSort?: {
|
|
9952
9656
|
order?: ("asc" | "desc");
|
|
9953
9657
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -9981,7 +9685,7 @@ type PerfectionistSortClasses = [] | [{
|
|
|
9981
9685
|
} | string));
|
|
9982
9686
|
}[];
|
|
9983
9687
|
} | {
|
|
9984
|
-
newlinesInside?: ("always" | "never");
|
|
9688
|
+
newlinesInside?: (("always" | "never") | number);
|
|
9985
9689
|
fallbackSort?: {
|
|
9986
9690
|
order?: ("asc" | "desc");
|
|
9987
9691
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10043,9 +9747,10 @@ type PerfectionistSortClasses = [] | [{
|
|
|
10043
9747
|
} | string)));
|
|
10044
9748
|
});
|
|
10045
9749
|
partitionByNewLine?: boolean;
|
|
10046
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
9750
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10047
9751
|
groups?: (string | string[] | {
|
|
10048
|
-
newlinesBetween
|
|
9752
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
9753
|
+
commentAbove?: string;
|
|
10049
9754
|
})[];
|
|
10050
9755
|
}];
|
|
10051
9756
|
// ----- perfectionist/sort-decorators -----
|
|
@@ -10091,7 +9796,8 @@ type PerfectionistSortDecorators = [] | [{
|
|
|
10091
9796
|
[k: string]: (string | string[]) | undefined;
|
|
10092
9797
|
};
|
|
10093
9798
|
groups?: (string | string[] | {
|
|
10094
|
-
newlinesBetween
|
|
9799
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
9800
|
+
commentAbove?: string;
|
|
10095
9801
|
})[];
|
|
10096
9802
|
}];
|
|
10097
9803
|
// ----- perfectionist/sort-enums -----
|
|
@@ -10109,7 +9815,7 @@ type PerfectionistSortEnums = [] | [{
|
|
|
10109
9815
|
customGroups?: ({
|
|
10110
9816
|
[k: string]: (string | string[]) | undefined;
|
|
10111
9817
|
} | ({
|
|
10112
|
-
newlinesInside?: ("always" | "never");
|
|
9818
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10113
9819
|
fallbackSort?: {
|
|
10114
9820
|
order?: ("asc" | "desc");
|
|
10115
9821
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10134,7 +9840,7 @@ type PerfectionistSortEnums = [] | [{
|
|
|
10134
9840
|
} | string));
|
|
10135
9841
|
}[];
|
|
10136
9842
|
} | {
|
|
10137
|
-
newlinesInside?: ("always" | "never");
|
|
9843
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10138
9844
|
fallbackSort?: {
|
|
10139
9845
|
order?: ("asc" | "desc");
|
|
10140
9846
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10182,9 +9888,10 @@ type PerfectionistSortEnums = [] | [{
|
|
|
10182
9888
|
} | string)));
|
|
10183
9889
|
});
|
|
10184
9890
|
partitionByNewLine?: boolean;
|
|
10185
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
9891
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10186
9892
|
groups?: (string | string[] | {
|
|
10187
|
-
newlinesBetween
|
|
9893
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
9894
|
+
commentAbove?: string;
|
|
10188
9895
|
})[];
|
|
10189
9896
|
}];
|
|
10190
9897
|
// ----- perfectionist/sort-exports -----
|
|
@@ -10201,7 +9908,7 @@ type PerfectionistSortExports = {
|
|
|
10201
9908
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10202
9909
|
groupKind?: ("mixed" | "values-first" | "types-first");
|
|
10203
9910
|
customGroups?: ({
|
|
10204
|
-
newlinesInside?: ("always" | "never");
|
|
9911
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10205
9912
|
fallbackSort?: {
|
|
10206
9913
|
order?: ("asc" | "desc");
|
|
10207
9914
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10221,7 +9928,7 @@ type PerfectionistSortExports = {
|
|
|
10221
9928
|
} | string));
|
|
10222
9929
|
}[];
|
|
10223
9930
|
} | {
|
|
10224
|
-
newlinesInside?: ("always" | "never");
|
|
9931
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10225
9932
|
fallbackSort?: {
|
|
10226
9933
|
order?: ("asc" | "desc");
|
|
10227
9934
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10262,9 +9969,10 @@ type PerfectionistSortExports = {
|
|
|
10262
9969
|
} | string)));
|
|
10263
9970
|
});
|
|
10264
9971
|
partitionByNewLine?: boolean;
|
|
10265
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
9972
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10266
9973
|
groups?: (string | string[] | {
|
|
10267
|
-
newlinesBetween
|
|
9974
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
9975
|
+
commentAbove?: string;
|
|
10268
9976
|
})[];
|
|
10269
9977
|
}[];
|
|
10270
9978
|
// ----- perfectionist/sort-heritage-clauses -----
|
|
@@ -10283,7 +9991,8 @@ type PerfectionistSortHeritageClauses = [] | [{
|
|
|
10283
9991
|
[k: string]: (string | string[]) | undefined;
|
|
10284
9992
|
};
|
|
10285
9993
|
groups?: (string | string[] | {
|
|
10286
|
-
newlinesBetween
|
|
9994
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
9995
|
+
commentAbove?: string;
|
|
10287
9996
|
})[];
|
|
10288
9997
|
}];
|
|
10289
9998
|
// ----- perfectionist/sort-imports -----
|
|
@@ -10306,7 +10015,7 @@ type PerfectionistSortImports = {
|
|
|
10306
10015
|
[k: string]: (string | string[]) | undefined;
|
|
10307
10016
|
};
|
|
10308
10017
|
} | ({
|
|
10309
|
-
newlinesInside?: ("always" | "never");
|
|
10018
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10310
10019
|
fallbackSort?: {
|
|
10311
10020
|
order?: ("asc" | "desc");
|
|
10312
10021
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10333,7 +10042,7 @@ type PerfectionistSortImports = {
|
|
|
10333
10042
|
} | string));
|
|
10334
10043
|
}[];
|
|
10335
10044
|
} | {
|
|
10336
|
-
newlinesInside?: ("always" | "never");
|
|
10045
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10337
10046
|
fallbackSort?: {
|
|
10338
10047
|
order?: ("asc" | "desc");
|
|
10339
10048
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10358,6 +10067,10 @@ type PerfectionistSortImports = {
|
|
|
10358
10067
|
flags?: string;
|
|
10359
10068
|
} | string));
|
|
10360
10069
|
})[]);
|
|
10070
|
+
tsconfig?: {
|
|
10071
|
+
rootDir: string;
|
|
10072
|
+
filename?: string;
|
|
10073
|
+
};
|
|
10361
10074
|
maxLineLength?: number;
|
|
10362
10075
|
sortSideEffects?: boolean;
|
|
10363
10076
|
environment?: ("node" | "bun");
|
|
@@ -10385,7 +10098,7 @@ type PerfectionistSortImports = {
|
|
|
10385
10098
|
} | string)));
|
|
10386
10099
|
});
|
|
10387
10100
|
partitionByNewLine?: boolean;
|
|
10388
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10101
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10389
10102
|
internalPattern?: (({
|
|
10390
10103
|
pattern: string;
|
|
10391
10104
|
flags?: string;
|
|
@@ -10394,7 +10107,8 @@ type PerfectionistSortImports = {
|
|
|
10394
10107
|
flags?: string;
|
|
10395
10108
|
} | string));
|
|
10396
10109
|
groups?: (string | string[] | {
|
|
10397
|
-
newlinesBetween
|
|
10110
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10111
|
+
commentAbove?: string;
|
|
10398
10112
|
})[];
|
|
10399
10113
|
}[];
|
|
10400
10114
|
// ----- perfectionist/sort-interfaces -----
|
|
@@ -10413,7 +10127,7 @@ type PerfectionistSortInterfaces = {
|
|
|
10413
10127
|
customGroups?: ({
|
|
10414
10128
|
[k: string]: (string | string[]) | undefined;
|
|
10415
10129
|
} | ({
|
|
10416
|
-
newlinesInside?: ("always" | "never");
|
|
10130
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10417
10131
|
fallbackSort?: {
|
|
10418
10132
|
order?: ("asc" | "desc");
|
|
10419
10133
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10442,7 +10156,7 @@ type PerfectionistSortInterfaces = {
|
|
|
10442
10156
|
sortBy?: ("name" | "value");
|
|
10443
10157
|
}[];
|
|
10444
10158
|
} | {
|
|
10445
|
-
newlinesInside?: ("always" | "never");
|
|
10159
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10446
10160
|
fallbackSort?: {
|
|
10447
10161
|
order?: ("asc" | "desc");
|
|
10448
10162
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10509,7 +10223,7 @@ type PerfectionistSortInterfaces = {
|
|
|
10509
10223
|
} | string)));
|
|
10510
10224
|
});
|
|
10511
10225
|
partitionByNewLine?: boolean;
|
|
10512
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10226
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10513
10227
|
ignorePattern?: (({
|
|
10514
10228
|
pattern: string;
|
|
10515
10229
|
flags?: string;
|
|
@@ -10519,7 +10233,8 @@ type PerfectionistSortInterfaces = {
|
|
|
10519
10233
|
} | string));
|
|
10520
10234
|
sortBy?: ("name" | "value");
|
|
10521
10235
|
groups?: (string | string[] | {
|
|
10522
|
-
newlinesBetween
|
|
10236
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10237
|
+
commentAbove?: string;
|
|
10523
10238
|
})[];
|
|
10524
10239
|
}[];
|
|
10525
10240
|
// ----- perfectionist/sort-intersection-types -----
|
|
@@ -10535,7 +10250,7 @@ type PerfectionistSortIntersectionTypes = {
|
|
|
10535
10250
|
order?: ("asc" | "desc");
|
|
10536
10251
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10537
10252
|
customGroups?: ({
|
|
10538
|
-
newlinesInside?: ("always" | "never");
|
|
10253
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10539
10254
|
fallbackSort?: {
|
|
10540
10255
|
order?: ("asc" | "desc");
|
|
10541
10256
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10554,7 +10269,7 @@ type PerfectionistSortIntersectionTypes = {
|
|
|
10554
10269
|
} | string));
|
|
10555
10270
|
}[];
|
|
10556
10271
|
} | {
|
|
10557
|
-
newlinesInside?: ("always" | "never");
|
|
10272
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10558
10273
|
fallbackSort?: {
|
|
10559
10274
|
order?: ("asc" | "desc");
|
|
10560
10275
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10594,9 +10309,10 @@ type PerfectionistSortIntersectionTypes = {
|
|
|
10594
10309
|
} | string)));
|
|
10595
10310
|
});
|
|
10596
10311
|
partitionByNewLine?: boolean;
|
|
10597
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10312
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10598
10313
|
groups?: (string | string[] | {
|
|
10599
|
-
newlinesBetween
|
|
10314
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10315
|
+
commentAbove?: string;
|
|
10600
10316
|
})[];
|
|
10601
10317
|
}[];
|
|
10602
10318
|
// ----- perfectionist/sort-jsx-props -----
|
|
@@ -10614,7 +10330,7 @@ type PerfectionistSortJsxProps = {
|
|
|
10614
10330
|
customGroups?: ({
|
|
10615
10331
|
[k: string]: (string | string[]) | undefined;
|
|
10616
10332
|
} | ({
|
|
10617
|
-
newlinesInside?: ("always" | "never");
|
|
10333
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10618
10334
|
fallbackSort?: {
|
|
10619
10335
|
order?: ("asc" | "desc");
|
|
10620
10336
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10641,7 +10357,7 @@ type PerfectionistSortJsxProps = {
|
|
|
10641
10357
|
} | string));
|
|
10642
10358
|
}[];
|
|
10643
10359
|
} | {
|
|
10644
|
-
newlinesInside?: ("always" | "never");
|
|
10360
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10645
10361
|
fallbackSort?: {
|
|
10646
10362
|
order?: ("asc" | "desc");
|
|
10647
10363
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10683,7 +10399,7 @@ type PerfectionistSortJsxProps = {
|
|
|
10683
10399
|
} | string));
|
|
10684
10400
|
};
|
|
10685
10401
|
partitionByNewLine?: boolean;
|
|
10686
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10402
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10687
10403
|
ignorePattern?: (({
|
|
10688
10404
|
pattern: string;
|
|
10689
10405
|
flags?: string;
|
|
@@ -10692,7 +10408,8 @@ type PerfectionistSortJsxProps = {
|
|
|
10692
10408
|
flags?: string;
|
|
10693
10409
|
} | string));
|
|
10694
10410
|
groups?: (string | string[] | {
|
|
10695
|
-
newlinesBetween
|
|
10411
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10412
|
+
commentAbove?: string;
|
|
10696
10413
|
})[];
|
|
10697
10414
|
}[];
|
|
10698
10415
|
// ----- perfectionist/sort-maps -----
|
|
@@ -10708,7 +10425,7 @@ type PerfectionistSortMaps = {
|
|
|
10708
10425
|
order?: ("asc" | "desc");
|
|
10709
10426
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10710
10427
|
customGroups?: ({
|
|
10711
|
-
newlinesInside?: ("always" | "never");
|
|
10428
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10712
10429
|
fallbackSort?: {
|
|
10713
10430
|
order?: ("asc" | "desc");
|
|
10714
10431
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10726,7 +10443,7 @@ type PerfectionistSortMaps = {
|
|
|
10726
10443
|
} | string));
|
|
10727
10444
|
}[];
|
|
10728
10445
|
} | {
|
|
10729
|
-
newlinesInside?: ("always" | "never");
|
|
10446
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10730
10447
|
fallbackSort?: {
|
|
10731
10448
|
order?: ("asc" | "desc");
|
|
10732
10449
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10774,9 +10491,10 @@ type PerfectionistSortMaps = {
|
|
|
10774
10491
|
} | string)));
|
|
10775
10492
|
});
|
|
10776
10493
|
partitionByNewLine?: boolean;
|
|
10777
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10494
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10778
10495
|
groups?: (string | string[] | {
|
|
10779
|
-
newlinesBetween
|
|
10496
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10497
|
+
commentAbove?: string;
|
|
10780
10498
|
})[];
|
|
10781
10499
|
}[];
|
|
10782
10500
|
// ----- perfectionist/sort-modules -----
|
|
@@ -10792,7 +10510,7 @@ type PerfectionistSortModules = [] | [{
|
|
|
10792
10510
|
order?: ("asc" | "desc");
|
|
10793
10511
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10794
10512
|
customGroups?: ({
|
|
10795
|
-
newlinesInside?: ("always" | "never");
|
|
10513
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10796
10514
|
fallbackSort?: {
|
|
10797
10515
|
order?: ("asc" | "desc");
|
|
10798
10516
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10819,7 +10537,7 @@ type PerfectionistSortModules = [] | [{
|
|
|
10819
10537
|
} | string));
|
|
10820
10538
|
}[];
|
|
10821
10539
|
} | {
|
|
10822
|
-
newlinesInside?: ("always" | "never");
|
|
10540
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10823
10541
|
fallbackSort?: {
|
|
10824
10542
|
order?: ("asc" | "desc");
|
|
10825
10543
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10867,9 +10585,10 @@ type PerfectionistSortModules = [] | [{
|
|
|
10867
10585
|
} | string)));
|
|
10868
10586
|
});
|
|
10869
10587
|
partitionByNewLine?: boolean;
|
|
10870
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10588
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10871
10589
|
groups?: (string | string[] | {
|
|
10872
|
-
newlinesBetween
|
|
10590
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10591
|
+
commentAbove?: string;
|
|
10873
10592
|
})[];
|
|
10874
10593
|
}];
|
|
10875
10594
|
// ----- perfectionist/sort-named-exports -----
|
|
@@ -10887,7 +10606,7 @@ type PerfectionistSortNamedExports = {
|
|
|
10887
10606
|
groupKind?: ("mixed" | "values-first" | "types-first");
|
|
10888
10607
|
ignoreAlias?: boolean;
|
|
10889
10608
|
customGroups?: ({
|
|
10890
|
-
newlinesInside?: ("always" | "never");
|
|
10609
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10891
10610
|
fallbackSort?: {
|
|
10892
10611
|
order?: ("asc" | "desc");
|
|
10893
10612
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10907,7 +10626,7 @@ type PerfectionistSortNamedExports = {
|
|
|
10907
10626
|
} | string));
|
|
10908
10627
|
}[];
|
|
10909
10628
|
} | {
|
|
10910
|
-
newlinesInside?: ("always" | "never");
|
|
10629
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10911
10630
|
fallbackSort?: {
|
|
10912
10631
|
order?: ("asc" | "desc");
|
|
10913
10632
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10948,9 +10667,10 @@ type PerfectionistSortNamedExports = {
|
|
|
10948
10667
|
} | string)));
|
|
10949
10668
|
});
|
|
10950
10669
|
partitionByNewLine?: boolean;
|
|
10951
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10670
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10952
10671
|
groups?: (string | string[] | {
|
|
10953
|
-
newlinesBetween
|
|
10672
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10673
|
+
commentAbove?: string;
|
|
10954
10674
|
})[];
|
|
10955
10675
|
}[];
|
|
10956
10676
|
// ----- perfectionist/sort-named-imports -----
|
|
@@ -10968,7 +10688,7 @@ type PerfectionistSortNamedImports = {
|
|
|
10968
10688
|
groupKind?: ("mixed" | "values-first" | "types-first");
|
|
10969
10689
|
ignoreAlias?: boolean;
|
|
10970
10690
|
customGroups?: ({
|
|
10971
|
-
newlinesInside?: ("always" | "never");
|
|
10691
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10972
10692
|
fallbackSort?: {
|
|
10973
10693
|
order?: ("asc" | "desc");
|
|
10974
10694
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10988,7 +10708,7 @@ type PerfectionistSortNamedImports = {
|
|
|
10988
10708
|
} | string));
|
|
10989
10709
|
}[];
|
|
10990
10710
|
} | {
|
|
10991
|
-
newlinesInside?: ("always" | "never");
|
|
10711
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10992
10712
|
fallbackSort?: {
|
|
10993
10713
|
order?: ("asc" | "desc");
|
|
10994
10714
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -11029,9 +10749,10 @@ type PerfectionistSortNamedImports = {
|
|
|
11029
10749
|
} | string)));
|
|
11030
10750
|
});
|
|
11031
10751
|
partitionByNewLine?: boolean;
|
|
11032
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10752
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11033
10753
|
groups?: (string | string[] | {
|
|
11034
|
-
newlinesBetween
|
|
10754
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10755
|
+
commentAbove?: string;
|
|
11035
10756
|
})[];
|
|
11036
10757
|
}[];
|
|
11037
10758
|
// ----- perfectionist/sort-object-types -----
|
|
@@ -11050,7 +10771,7 @@ type PerfectionistSortObjectTypes = {
|
|
|
11050
10771
|
customGroups?: ({
|
|
11051
10772
|
[k: string]: (string | string[]) | undefined;
|
|
11052
10773
|
} | ({
|
|
11053
|
-
newlinesInside?: ("always" | "never");
|
|
10774
|
+
newlinesInside?: (("always" | "never") | number);
|
|
11054
10775
|
fallbackSort?: {
|
|
11055
10776
|
order?: ("asc" | "desc");
|
|
11056
10777
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -11079,7 +10800,7 @@ type PerfectionistSortObjectTypes = {
|
|
|
11079
10800
|
sortBy?: ("name" | "value");
|
|
11080
10801
|
}[];
|
|
11081
10802
|
} | {
|
|
11082
|
-
newlinesInside?: ("always" | "never");
|
|
10803
|
+
newlinesInside?: (("always" | "never") | number);
|
|
11083
10804
|
fallbackSort?: {
|
|
11084
10805
|
order?: ("asc" | "desc");
|
|
11085
10806
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -11146,7 +10867,7 @@ type PerfectionistSortObjectTypes = {
|
|
|
11146
10867
|
} | string)));
|
|
11147
10868
|
});
|
|
11148
10869
|
partitionByNewLine?: boolean;
|
|
11149
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10870
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11150
10871
|
ignorePattern?: (({
|
|
11151
10872
|
pattern: string;
|
|
11152
10873
|
flags?: string;
|
|
@@ -11156,7 +10877,8 @@ type PerfectionistSortObjectTypes = {
|
|
|
11156
10877
|
} | string));
|
|
11157
10878
|
sortBy?: ("name" | "value");
|
|
11158
10879
|
groups?: (string | string[] | {
|
|
11159
|
-
newlinesBetween
|
|
10880
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10881
|
+
commentAbove?: string;
|
|
11160
10882
|
})[];
|
|
11161
10883
|
}[];
|
|
11162
10884
|
// ----- perfectionist/sort-objects -----
|
|
@@ -11177,7 +10899,7 @@ type PerfectionistSortObjects = {
|
|
|
11177
10899
|
customGroups?: ({
|
|
11178
10900
|
[k: string]: (string | string[]) | undefined;
|
|
11179
10901
|
} | ({
|
|
11180
|
-
newlinesInside?: ("always" | "never");
|
|
10902
|
+
newlinesInside?: (("always" | "never") | number);
|
|
11181
10903
|
fallbackSort?: {
|
|
11182
10904
|
order?: ("asc" | "desc");
|
|
11183
10905
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -11204,7 +10926,7 @@ type PerfectionistSortObjects = {
|
|
|
11204
10926
|
} | string));
|
|
11205
10927
|
}[];
|
|
11206
10928
|
} | {
|
|
11207
|
-
newlinesInside?: ("always" | "never");
|
|
10929
|
+
newlinesInside?: (("always" | "never") | number);
|
|
11208
10930
|
fallbackSort?: {
|
|
11209
10931
|
order?: ("asc" | "desc");
|
|
11210
10932
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -11271,7 +10993,7 @@ type PerfectionistSortObjects = {
|
|
|
11271
10993
|
} | string)));
|
|
11272
10994
|
});
|
|
11273
10995
|
partitionByNewLine?: boolean;
|
|
11274
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10996
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11275
10997
|
ignorePattern?: (({
|
|
11276
10998
|
pattern: string;
|
|
11277
10999
|
flags?: string;
|
|
@@ -11280,7 +11002,8 @@ type PerfectionistSortObjects = {
|
|
|
11280
11002
|
flags?: string;
|
|
11281
11003
|
} | string));
|
|
11282
11004
|
groups?: (string | string[] | {
|
|
11283
|
-
newlinesBetween
|
|
11005
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11006
|
+
commentAbove?: string;
|
|
11284
11007
|
})[];
|
|
11285
11008
|
}[];
|
|
11286
11009
|
// ----- perfectionist/sort-sets -----
|
|
@@ -11297,7 +11020,7 @@ type PerfectionistSortSets = {
|
|
|
11297
11020
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11298
11021
|
groupKind?: ("mixed" | "literals-first" | "spreads-first");
|
|
11299
11022
|
customGroups?: ({
|
|
11300
|
-
newlinesInside?: ("always" | "never");
|
|
11023
|
+
newlinesInside?: (("always" | "never") | number);
|
|
11301
11024
|
fallbackSort?: {
|
|
11302
11025
|
order?: ("asc" | "desc");
|
|
11303
11026
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -11316,7 +11039,7 @@ type PerfectionistSortSets = {
|
|
|
11316
11039
|
} | string));
|
|
11317
11040
|
}[];
|
|
11318
11041
|
} | {
|
|
11319
|
-
newlinesInside?: ("always" | "never");
|
|
11042
|
+
newlinesInside?: (("always" | "never") | number);
|
|
11320
11043
|
fallbackSort?: {
|
|
11321
11044
|
order?: ("asc" | "desc");
|
|
11322
11045
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -11365,9 +11088,10 @@ type PerfectionistSortSets = {
|
|
|
11365
11088
|
} | string)));
|
|
11366
11089
|
});
|
|
11367
11090
|
partitionByNewLine?: boolean;
|
|
11368
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
11091
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11369
11092
|
groups?: (string | string[] | {
|
|
11370
|
-
newlinesBetween
|
|
11093
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11094
|
+
commentAbove?: string;
|
|
11371
11095
|
})[];
|
|
11372
11096
|
}[];
|
|
11373
11097
|
// ----- perfectionist/sort-switch-case -----
|
|
@@ -11396,7 +11120,7 @@ type PerfectionistSortUnionTypes = {
|
|
|
11396
11120
|
order?: ("asc" | "desc");
|
|
11397
11121
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11398
11122
|
customGroups?: ({
|
|
11399
|
-
newlinesInside?: ("always" | "never");
|
|
11123
|
+
newlinesInside?: (("always" | "never") | number);
|
|
11400
11124
|
fallbackSort?: {
|
|
11401
11125
|
order?: ("asc" | "desc");
|
|
11402
11126
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -11415,7 +11139,7 @@ type PerfectionistSortUnionTypes = {
|
|
|
11415
11139
|
} | string));
|
|
11416
11140
|
}[];
|
|
11417
11141
|
} | {
|
|
11418
|
-
newlinesInside?: ("always" | "never");
|
|
11142
|
+
newlinesInside?: (("always" | "never") | number);
|
|
11419
11143
|
fallbackSort?: {
|
|
11420
11144
|
order?: ("asc" | "desc");
|
|
11421
11145
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -11455,9 +11179,10 @@ type PerfectionistSortUnionTypes = {
|
|
|
11455
11179
|
} | string)));
|
|
11456
11180
|
});
|
|
11457
11181
|
partitionByNewLine?: boolean;
|
|
11458
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
11182
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11459
11183
|
groups?: (string | string[] | {
|
|
11460
|
-
newlinesBetween
|
|
11184
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11185
|
+
commentAbove?: string;
|
|
11461
11186
|
})[];
|
|
11462
11187
|
}[];
|
|
11463
11188
|
// ----- perfectionist/sort-variable-declarations -----
|
|
@@ -11473,7 +11198,7 @@ type PerfectionistSortVariableDeclarations = [] | [{
|
|
|
11473
11198
|
order?: ("asc" | "desc");
|
|
11474
11199
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11475
11200
|
customGroups?: ({
|
|
11476
|
-
newlinesInside?: ("always" | "never");
|
|
11201
|
+
newlinesInside?: (("always" | "never") | number);
|
|
11477
11202
|
fallbackSort?: {
|
|
11478
11203
|
order?: ("asc" | "desc");
|
|
11479
11204
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -11492,7 +11217,7 @@ type PerfectionistSortVariableDeclarations = [] | [{
|
|
|
11492
11217
|
} | string));
|
|
11493
11218
|
}[];
|
|
11494
11219
|
} | {
|
|
11495
|
-
newlinesInside?: ("always" | "never");
|
|
11220
|
+
newlinesInside?: (("always" | "never") | number);
|
|
11496
11221
|
fallbackSort?: {
|
|
11497
11222
|
order?: ("asc" | "desc");
|
|
11498
11223
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -11532,9 +11257,10 @@ type PerfectionistSortVariableDeclarations = [] | [{
|
|
|
11532
11257
|
} | string)));
|
|
11533
11258
|
});
|
|
11534
11259
|
partitionByNewLine?: boolean;
|
|
11535
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
11260
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11536
11261
|
groups?: (string | string[] | {
|
|
11537
|
-
newlinesBetween
|
|
11262
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11263
|
+
commentAbove?: string;
|
|
11538
11264
|
})[];
|
|
11539
11265
|
}];
|
|
11540
11266
|
// ----- prefer-arrow-callback -----
|
|
@@ -11734,6 +11460,10 @@ type RegexpPreferLookaround = [] | [{
|
|
|
11734
11460
|
type RegexpPreferNamedReplacement = [] | [{
|
|
11735
11461
|
strictTypes?: boolean;
|
|
11736
11462
|
}];
|
|
11463
|
+
// ----- regexp/prefer-quantifier -----
|
|
11464
|
+
type RegexpPreferQuantifier = [] | [{
|
|
11465
|
+
allows?: string[];
|
|
11466
|
+
}];
|
|
11737
11467
|
// ----- regexp/prefer-range -----
|
|
11738
11468
|
type RegexpPreferRange = [] | [{
|
|
11739
11469
|
target?: (("all" | "alphanumeric") | [("all" | "alphanumeric")] | [("alphanumeric" | string), ...(("alphanumeric" | string))[]]);
|
|
@@ -12014,16 +11744,6 @@ type StyleCurlyNewline = [] | [(("always" | "never") | {
|
|
|
12014
11744
|
minElements?: number;
|
|
12015
11745
|
consistent?: boolean;
|
|
12016
11746
|
});
|
|
12017
|
-
TSEnumBody?: (("always" | "never") | {
|
|
12018
|
-
multiline?: boolean;
|
|
12019
|
-
minElements?: number;
|
|
12020
|
-
consistent?: boolean;
|
|
12021
|
-
});
|
|
12022
|
-
TSInterfaceBody?: (("always" | "never") | {
|
|
12023
|
-
multiline?: boolean;
|
|
12024
|
-
minElements?: number;
|
|
12025
|
-
consistent?: boolean;
|
|
12026
|
-
});
|
|
12027
11747
|
TSModuleBlock?: (("always" | "never") | {
|
|
12028
11748
|
multiline?: boolean;
|
|
12029
11749
|
minElements?: number;
|
|
@@ -12037,14 +11757,6 @@ type StyleCurlyNewline = [] | [(("always" | "never") | {
|
|
|
12037
11757
|
type StyleDotLocation = [] | [("object" | "property")];
|
|
12038
11758
|
// ----- style/eol-last -----
|
|
12039
11759
|
type StyleEolLast = [] | [("always" | "never" | "unix" | "windows")];
|
|
12040
|
-
// ----- style/func-call-spacing -----
|
|
12041
|
-
type StyleFuncCallSpacing = ([] | ["never"] | [] | ["always"] | ["always", {
|
|
12042
|
-
allowNewlines?: boolean;
|
|
12043
|
-
optionalChain?: {
|
|
12044
|
-
before?: boolean;
|
|
12045
|
-
after?: boolean;
|
|
12046
|
-
};
|
|
12047
|
-
}]);
|
|
12048
11760
|
// ----- style/function-call-argument-newline -----
|
|
12049
11761
|
type StyleFunctionCallArgumentNewline = [] | [("always" | "never" | "consistent")];
|
|
12050
11762
|
// ----- style/function-call-spacing -----
|
|
@@ -12085,6 +11797,7 @@ type StyleIndent = [] | [("tab" | number)] | [("tab" | number), {
|
|
|
12085
11797
|
var?: (number | ("first" | "off"));
|
|
12086
11798
|
let?: (number | ("first" | "off"));
|
|
12087
11799
|
const?: (number | ("first" | "off"));
|
|
11800
|
+
using?: (number | ("first" | "off"));
|
|
12088
11801
|
});
|
|
12089
11802
|
outerIIFEBody?: (number | "off");
|
|
12090
11803
|
MemberExpression?: (number | "off");
|
|
@@ -12219,7 +11932,8 @@ type StyleJsxSortProps = [] | [{
|
|
|
12219
11932
|
multiline?: ("ignore" | "first" | "last");
|
|
12220
11933
|
ignoreCase?: boolean;
|
|
12221
11934
|
noSortAlphabetically?: boolean;
|
|
12222
|
-
reservedFirst?: (
|
|
11935
|
+
reservedFirst?: (string[] | boolean);
|
|
11936
|
+
reservedLast?: string[];
|
|
12223
11937
|
locale?: string;
|
|
12224
11938
|
}];
|
|
12225
11939
|
// ----- style/jsx-tag-spacing -----
|
|
@@ -12296,18 +12010,6 @@ type StyleKeywordSpacing = [] | [{
|
|
|
12296
12010
|
before?: boolean;
|
|
12297
12011
|
after?: boolean;
|
|
12298
12012
|
};
|
|
12299
|
-
as?: {
|
|
12300
|
-
before?: boolean;
|
|
12301
|
-
after?: boolean;
|
|
12302
|
-
};
|
|
12303
|
-
async?: {
|
|
12304
|
-
before?: boolean;
|
|
12305
|
-
after?: boolean;
|
|
12306
|
-
};
|
|
12307
|
-
await?: {
|
|
12308
|
-
before?: boolean;
|
|
12309
|
-
after?: boolean;
|
|
12310
|
-
};
|
|
12311
12013
|
boolean?: {
|
|
12312
12014
|
before?: boolean;
|
|
12313
12015
|
after?: boolean;
|
|
@@ -12400,18 +12102,10 @@ type StyleKeywordSpacing = [] | [{
|
|
|
12400
12102
|
before?: boolean;
|
|
12401
12103
|
after?: boolean;
|
|
12402
12104
|
};
|
|
12403
|
-
from?: {
|
|
12404
|
-
before?: boolean;
|
|
12405
|
-
after?: boolean;
|
|
12406
|
-
};
|
|
12407
12105
|
function?: {
|
|
12408
12106
|
before?: boolean;
|
|
12409
12107
|
after?: boolean;
|
|
12410
12108
|
};
|
|
12411
|
-
get?: {
|
|
12412
|
-
before?: boolean;
|
|
12413
|
-
after?: boolean;
|
|
12414
|
-
};
|
|
12415
12109
|
goto?: {
|
|
12416
12110
|
before?: boolean;
|
|
12417
12111
|
after?: boolean;
|
|
@@ -12444,10 +12138,6 @@ type StyleKeywordSpacing = [] | [{
|
|
|
12444
12138
|
before?: boolean;
|
|
12445
12139
|
after?: boolean;
|
|
12446
12140
|
};
|
|
12447
|
-
let?: {
|
|
12448
|
-
before?: boolean;
|
|
12449
|
-
after?: boolean;
|
|
12450
|
-
};
|
|
12451
12141
|
long?: {
|
|
12452
12142
|
before?: boolean;
|
|
12453
12143
|
after?: boolean;
|
|
@@ -12464,10 +12154,6 @@ type StyleKeywordSpacing = [] | [{
|
|
|
12464
12154
|
before?: boolean;
|
|
12465
12155
|
after?: boolean;
|
|
12466
12156
|
};
|
|
12467
|
-
of?: {
|
|
12468
|
-
before?: boolean;
|
|
12469
|
-
after?: boolean;
|
|
12470
|
-
};
|
|
12471
12157
|
package?: {
|
|
12472
12158
|
before?: boolean;
|
|
12473
12159
|
after?: boolean;
|
|
@@ -12488,14 +12174,6 @@ type StyleKeywordSpacing = [] | [{
|
|
|
12488
12174
|
before?: boolean;
|
|
12489
12175
|
after?: boolean;
|
|
12490
12176
|
};
|
|
12491
|
-
satisfies?: {
|
|
12492
|
-
before?: boolean;
|
|
12493
|
-
after?: boolean;
|
|
12494
|
-
};
|
|
12495
|
-
set?: {
|
|
12496
|
-
before?: boolean;
|
|
12497
|
-
after?: boolean;
|
|
12498
|
-
};
|
|
12499
12177
|
short?: {
|
|
12500
12178
|
before?: boolean;
|
|
12501
12179
|
after?: boolean;
|
|
@@ -12564,6 +12242,46 @@ type StyleKeywordSpacing = [] | [{
|
|
|
12564
12242
|
before?: boolean;
|
|
12565
12243
|
after?: boolean;
|
|
12566
12244
|
};
|
|
12245
|
+
as?: {
|
|
12246
|
+
before?: boolean;
|
|
12247
|
+
after?: boolean;
|
|
12248
|
+
};
|
|
12249
|
+
async?: {
|
|
12250
|
+
before?: boolean;
|
|
12251
|
+
after?: boolean;
|
|
12252
|
+
};
|
|
12253
|
+
await?: {
|
|
12254
|
+
before?: boolean;
|
|
12255
|
+
after?: boolean;
|
|
12256
|
+
};
|
|
12257
|
+
from?: {
|
|
12258
|
+
before?: boolean;
|
|
12259
|
+
after?: boolean;
|
|
12260
|
+
};
|
|
12261
|
+
get?: {
|
|
12262
|
+
before?: boolean;
|
|
12263
|
+
after?: boolean;
|
|
12264
|
+
};
|
|
12265
|
+
let?: {
|
|
12266
|
+
before?: boolean;
|
|
12267
|
+
after?: boolean;
|
|
12268
|
+
};
|
|
12269
|
+
of?: {
|
|
12270
|
+
before?: boolean;
|
|
12271
|
+
after?: boolean;
|
|
12272
|
+
};
|
|
12273
|
+
satisfies?: {
|
|
12274
|
+
before?: boolean;
|
|
12275
|
+
after?: boolean;
|
|
12276
|
+
};
|
|
12277
|
+
set?: {
|
|
12278
|
+
before?: boolean;
|
|
12279
|
+
after?: boolean;
|
|
12280
|
+
};
|
|
12281
|
+
using?: {
|
|
12282
|
+
before?: boolean;
|
|
12283
|
+
after?: boolean;
|
|
12284
|
+
};
|
|
12567
12285
|
yield?: {
|
|
12568
12286
|
before?: boolean;
|
|
12569
12287
|
after?: boolean;
|
|
@@ -12766,6 +12484,11 @@ type StyleNoExtraParens = ([] | ["functions"] | [] | ["all"] | ["all", {
|
|
|
12766
12484
|
enforceForFunctionPrototypeMethods?: boolean;
|
|
12767
12485
|
allowParensAfterCommentPattern?: string;
|
|
12768
12486
|
nestedConditionalExpressions?: boolean;
|
|
12487
|
+
allowNodesInSpreadElement?: {
|
|
12488
|
+
ConditionalExpression?: boolean;
|
|
12489
|
+
LogicalExpression?: boolean;
|
|
12490
|
+
AwaitExpression?: boolean;
|
|
12491
|
+
};
|
|
12769
12492
|
}]);
|
|
12770
12493
|
// ----- style/no-mixed-operators -----
|
|
12771
12494
|
type StyleNoMixedOperators = [] | [{
|
|
@@ -12843,6 +12566,11 @@ type StyleObjectCurlyNewline = [] | [((("always" | "never") | {
|
|
|
12843
12566
|
minProperties?: number;
|
|
12844
12567
|
consistent?: boolean;
|
|
12845
12568
|
});
|
|
12569
|
+
TSEnumBody?: (("always" | "never") | {
|
|
12570
|
+
multiline?: boolean;
|
|
12571
|
+
minProperties?: number;
|
|
12572
|
+
consistent?: boolean;
|
|
12573
|
+
});
|
|
12846
12574
|
})];
|
|
12847
12575
|
// ----- style/object-curly-spacing -----
|
|
12848
12576
|
type StyleObjectCurlySpacing = [] | [("always" | "never")] | [("always" | "never"), {
|
|
@@ -12852,7 +12580,6 @@ type StyleObjectCurlySpacing = [] | [("always" | "never")] | [("always" | "never
|
|
|
12852
12580
|
// ----- style/object-property-newline -----
|
|
12853
12581
|
type StyleObjectPropertyNewline = [] | [{
|
|
12854
12582
|
allowAllPropertiesOnSameLine?: boolean;
|
|
12855
|
-
allowMultiplePropertiesPerLine?: boolean;
|
|
12856
12583
|
}];
|
|
12857
12584
|
// ----- style/one-var-declaration-per-line -----
|
|
12858
12585
|
type StyleOneVarDeclarationPerLine = [] | [("always" | "initializations")];
|
|
@@ -12876,7 +12603,7 @@ type StylePaddedBlocks = [] | [(("always" | "never" | "start" | "end") | {
|
|
|
12876
12603
|
}];
|
|
12877
12604
|
// ----- style/padding-line-between-statements -----
|
|
12878
12605
|
type _StylePaddingLineBetweenStatementsPaddingType = ("any" | "never" | "always");
|
|
12879
|
-
type _StylePaddingLineBetweenStatementsStatementType = (("*" | "block-like" | "exports" | "require" | "directive" | "expression" | "iife" | "multiline-block-like" | "multiline-expression" | "multiline-const" | "multiline-export" | "multiline-let" | "multiline-var" | "singleline-const" | "singleline-export" | "singleline-let" | "singleline-var" | "block" | "empty" | "function" | "ts-method" | "break" | "case" | "class" | "const" | "continue" | "debugger" | "default" | "do" | "export" | "for" | "if" | "import" | "let" | "return" | "switch" | "throw" | "try" | "var" | "while" | "with" | "cjs-export" | "cjs-import" | "enum" | "interface" | "type" | "function-overload") | [("*" | "block-like" | "exports" | "require" | "directive" | "expression" | "iife" | "multiline-block-like" | "multiline-expression" | "multiline-const" | "multiline-export" | "multiline-let" | "multiline-var" | "singleline-const" | "singleline-export" | "singleline-let" | "singleline-var" | "block" | "empty" | "function" | "ts-method" | "break" | "case" | "class" | "const" | "continue" | "debugger" | "default" | "do" | "export" | "for" | "if" | "import" | "let" | "return" | "switch" | "throw" | "try" | "var" | "while" | "with" | "cjs-export" | "cjs-import" | "enum" | "interface" | "type" | "function-overload"), ...(("*" | "block-like" | "exports" | "require" | "directive" | "expression" | "iife" | "multiline-block-like" | "multiline-expression" | "multiline-const" | "multiline-export" | "multiline-let" | "multiline-var" | "singleline-const" | "singleline-export" | "singleline-let" | "singleline-var" | "block" | "empty" | "function" | "ts-method" | "break" | "case" | "class" | "const" | "continue" | "debugger" | "default" | "do" | "export" | "for" | "if" | "import" | "let" | "return" | "switch" | "throw" | "try" | "var" | "while" | "with" | "cjs-export" | "cjs-import" | "enum" | "interface" | "type" | "function-overload"))[]]);
|
|
12606
|
+
type _StylePaddingLineBetweenStatementsStatementType = (("*" | "block-like" | "exports" | "require" | "directive" | "expression" | "iife" | "multiline-block-like" | "multiline-expression" | "multiline-const" | "multiline-export" | "multiline-let" | "multiline-using" | "multiline-var" | "singleline-const" | "singleline-export" | "singleline-let" | "singleline-using" | "singleline-var" | "block" | "empty" | "function" | "ts-method" | "break" | "case" | "class" | "const" | "continue" | "debugger" | "default" | "do" | "export" | "for" | "if" | "import" | "let" | "return" | "switch" | "throw" | "try" | "using" | "var" | "while" | "with" | "cjs-export" | "cjs-import" | "enum" | "interface" | "type" | "function-overload") | [("*" | "block-like" | "exports" | "require" | "directive" | "expression" | "iife" | "multiline-block-like" | "multiline-expression" | "multiline-const" | "multiline-export" | "multiline-let" | "multiline-using" | "multiline-var" | "singleline-const" | "singleline-export" | "singleline-let" | "singleline-using" | "singleline-var" | "block" | "empty" | "function" | "ts-method" | "break" | "case" | "class" | "const" | "continue" | "debugger" | "default" | "do" | "export" | "for" | "if" | "import" | "let" | "return" | "switch" | "throw" | "try" | "using" | "var" | "while" | "with" | "cjs-export" | "cjs-import" | "enum" | "interface" | "type" | "function-overload"), ...(("*" | "block-like" | "exports" | "require" | "directive" | "expression" | "iife" | "multiline-block-like" | "multiline-expression" | "multiline-const" | "multiline-export" | "multiline-let" | "multiline-using" | "multiline-var" | "singleline-const" | "singleline-export" | "singleline-let" | "singleline-using" | "singleline-var" | "block" | "empty" | "function" | "ts-method" | "break" | "case" | "class" | "const" | "continue" | "debugger" | "default" | "do" | "export" | "for" | "if" | "import" | "let" | "return" | "switch" | "throw" | "try" | "using" | "var" | "while" | "with" | "cjs-export" | "cjs-import" | "enum" | "interface" | "type" | "function-overload"))[]]);
|
|
12880
12607
|
type StylePaddingLineBetweenStatements = {
|
|
12881
12608
|
blankLine: _StylePaddingLineBetweenStatementsPaddingType;
|
|
12882
12609
|
prev: _StylePaddingLineBetweenStatementsStatementType;
|
|
@@ -12915,12 +12642,14 @@ type StyleSpaceBeforeBlocks = [] | [(("always" | "never") | {
|
|
|
12915
12642
|
keywords?: ("always" | "never" | "off");
|
|
12916
12643
|
functions?: ("always" | "never" | "off");
|
|
12917
12644
|
classes?: ("always" | "never" | "off");
|
|
12645
|
+
modules?: ("always" | "never" | "off");
|
|
12918
12646
|
})];
|
|
12919
12647
|
// ----- style/space-before-function-paren -----
|
|
12920
12648
|
type StyleSpaceBeforeFunctionParen = [] | [(("always" | "never") | {
|
|
12921
12649
|
anonymous?: ("always" | "never" | "ignore");
|
|
12922
12650
|
named?: ("always" | "never" | "ignore");
|
|
12923
12651
|
asyncArrow?: ("always" | "never" | "ignore");
|
|
12652
|
+
catch?: ("always" | "never" | "ignore");
|
|
12924
12653
|
})];
|
|
12925
12654
|
// ----- style/space-in-parens -----
|
|
12926
12655
|
type StyleSpaceInParens = [] | [("always" | "never")] | [("always" | "never"), {
|
|
@@ -13007,6 +12736,10 @@ type TestConsistentTestIt = [] | [{
|
|
|
13007
12736
|
fn?: ("test" | "it");
|
|
13008
12737
|
withinDescribe?: ("test" | "it");
|
|
13009
12738
|
}];
|
|
12739
|
+
// ----- test/consistent-vitest-vi -----
|
|
12740
|
+
type TestConsistentVitestVi = [] | [{
|
|
12741
|
+
fn?: ("vi" | "vitest");
|
|
12742
|
+
}];
|
|
13010
12743
|
// ----- test/expect-expect -----
|
|
13011
12744
|
type TestExpectExpect = [] | [{
|
|
13012
12745
|
assertFunctionNames?: string[];
|
|
@@ -15296,7 +15029,7 @@ type VueNoRestrictedCustomEvent = (string | {
|
|
|
15296
15029
|
})[];
|
|
15297
15030
|
// ----- vue/no-restricted-html-elements -----
|
|
15298
15031
|
type VueNoRestrictedHtmlElements = (string | {
|
|
15299
|
-
element: string;
|
|
15032
|
+
element: (string | string[]);
|
|
15300
15033
|
message?: string;
|
|
15301
15034
|
})[];
|
|
15302
15035
|
// ----- vue/no-restricted-props -----
|
|
@@ -15818,7 +15551,8 @@ type Yoda = [] | [("always" | "never")] | [("always" | "never"), {
|
|
|
15818
15551
|
onlyEquality?: boolean;
|
|
15819
15552
|
}];
|
|
15820
15553
|
// Names of all the configs
|
|
15821
|
-
type ConfigNames = 'eslint/comments/rules' | 'eslint/formatter/setup' | 'eslint/formatter/html' | 'eslint/formatter/xml' | 'eslint/formatter/svg' | 'eslint/formatter/markdown' | 'eslint/formatter/graphql' | 'eslint/imports/rules' | 'eslint/javascript/setup' | 'eslint/javascript/rules' | 'eslint/jsdoc/rules' | 'eslint/jsonc/setup' | 'eslint/jsonc/rules' | 'eslint/markdown/setup' | 'eslint/markdown/processor' | 'eslint/markdown/parser' | 'eslint/markdown/disables' | 'eslint/node/rules' | 'eslint/perfectionist/setup' | 'eslint/react/setup' | 'eslint/react/rules' | 'eslint/regexp/rules' | 'eslint/sort/package-json' | 'eslint/stylistic/rules' | 'eslint/test/setup' | 'eslint/test/rules' | 'eslint/toml/setup' | 'eslint/toml/rules' | 'eslint/typescript/setup' | 'eslint/typescript/parser' | 'eslint/typescript/rules' | 'eslint/unicorn/rules' | 'eslint/unocss/rules' | 'eslint/vue/setup' | 'eslint/vue/rules' | 'eslint/yaml/setup' | 'eslint/yaml/rules' | 'eslint/yaml/pnpm-workspace';
|
|
15554
|
+
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';
|
|
15555
|
+
//#endregion
|
|
15822
15556
|
//#region src/prettier.types.d.ts
|
|
15823
15557
|
/**
|
|
15824
15558
|
* 来自 Prettier 的供应商类型,因此不依赖依赖项
|
|
@@ -15938,7 +15672,6 @@ interface VendoredPrettierOptionsRequired {
|
|
|
15938
15672
|
*/
|
|
15939
15673
|
xmlWhitespaceSensitivity: 'ignore' | 'strict' | 'preserve';
|
|
15940
15674
|
}
|
|
15941
|
-
|
|
15942
15675
|
//#endregion
|
|
15943
15676
|
//#region src/types.d.ts
|
|
15944
15677
|
type Awaitable<T> = T | Promise<T>;
|
|
@@ -16157,6 +15890,11 @@ interface OptionsConfig extends OptionsComponentExts, OptionsProjectType {
|
|
|
16157
15890
|
* @default true
|
|
16158
15891
|
*/
|
|
16159
15892
|
unicorn?: boolean | OptionsUnicorn;
|
|
15893
|
+
/**
|
|
15894
|
+
* eslint-plugin-import-lite 的选项.
|
|
15895
|
+
* @default true
|
|
15896
|
+
*/
|
|
15897
|
+
imports?: boolean;
|
|
16160
15898
|
/**
|
|
16161
15899
|
* 启用 test 支持.
|
|
16162
15900
|
*
|
|
@@ -16291,7 +16029,6 @@ interface OptionsConfig extends OptionsComponentExts, OptionsProjectType {
|
|
|
16291
16029
|
ignores?: string[];
|
|
16292
16030
|
};
|
|
16293
16031
|
}
|
|
16294
|
-
|
|
16295
16032
|
//#endregion
|
|
16296
16033
|
//#region src/factory.d.ts
|
|
16297
16034
|
declare const defaultPluginRenaming: {
|
|
@@ -16301,7 +16038,7 @@ declare const defaultPluginRenaming: {
|
|
|
16301
16038
|
'@eslint-react/naming-convention': string;
|
|
16302
16039
|
'@stylistic': string;
|
|
16303
16040
|
'@typescript-eslint': string;
|
|
16304
|
-
'import-
|
|
16041
|
+
'import-lite': string;
|
|
16305
16042
|
n: string;
|
|
16306
16043
|
vitest: string;
|
|
16307
16044
|
yml: string;
|
|
@@ -16320,51 +16057,39 @@ declare function lincy(options?: OptionsConfig & Omit<TypedFlatConfigItem, 'file
|
|
|
16320
16057
|
type ResolvedOptions<T> = T extends boolean ? never : NonNullable<T>;
|
|
16321
16058
|
declare function resolveSubOptions<K extends keyof OptionsConfig>(options: OptionsConfig, key: K): ResolvedOptions<OptionsConfig[K]>;
|
|
16322
16059
|
declare function getOverrides<K extends keyof OptionsConfig>(options: OptionsConfig, key: K): Partial<Linter.RulesRecord & RuleOptions>;
|
|
16323
|
-
|
|
16324
16060
|
//#endregion
|
|
16325
16061
|
//#region src/configs/comments.d.ts
|
|
16326
16062
|
declare function comments(options?: OptionsOverrides): Promise<TypedFlatConfigItem[]>;
|
|
16327
|
-
|
|
16328
16063
|
//#endregion
|
|
16329
16064
|
//#region src/configs/disables.d.ts
|
|
16330
16065
|
declare function disables(): Promise<TypedFlatConfigItem[]>;
|
|
16331
|
-
|
|
16332
16066
|
//#endregion
|
|
16333
16067
|
//#region src/configs/formatters.d.ts
|
|
16334
16068
|
declare function formatters(options?: OptionsFormatters | true, stylistic?: StylisticConfig): Promise<TypedFlatConfigItem[]>;
|
|
16335
|
-
|
|
16336
16069
|
//#endregion
|
|
16337
16070
|
//#region src/configs/ignores.d.ts
|
|
16338
16071
|
declare function ignores(options?: OptionsIgnores): Promise<TypedFlatConfigItem[]>;
|
|
16339
|
-
|
|
16340
16072
|
//#endregion
|
|
16341
16073
|
//#region src/configs/imports.d.ts
|
|
16342
16074
|
declare function imports(options?: OptionsStylistic & OptionsOverrides): Promise<TypedFlatConfigItem[]>;
|
|
16343
|
-
|
|
16344
16075
|
//#endregion
|
|
16345
16076
|
//#region src/configs/javascript.d.ts
|
|
16346
16077
|
declare function javascript(options?: OptionsIsInEditor & OptionsOverrides): Promise<TypedFlatConfigItem[]>;
|
|
16347
|
-
|
|
16348
16078
|
//#endregion
|
|
16349
16079
|
//#region src/configs/jsdoc.d.ts
|
|
16350
16080
|
declare function jsdoc(options?: OptionsStylistic & OptionsOverrides): Promise<TypedFlatConfigItem[]>;
|
|
16351
|
-
|
|
16352
16081
|
//#endregion
|
|
16353
16082
|
//#region src/configs/jsonc.d.ts
|
|
16354
16083
|
declare function jsonc(options?: OptionsFiles & OptionsStylistic & OptionsOverrides): Promise<TypedFlatConfigItem[]>;
|
|
16355
|
-
|
|
16356
16084
|
//#endregion
|
|
16357
16085
|
//#region src/configs/jsx.d.ts
|
|
16358
16086
|
declare function jsx(): Promise<TypedFlatConfigItem[]>;
|
|
16359
|
-
|
|
16360
16087
|
//#endregion
|
|
16361
16088
|
//#region src/configs/markdown.d.ts
|
|
16362
16089
|
declare function markdown(options?: OptionsFiles & OptionsComponentExts & OptionsOverrides): Promise<TypedFlatConfigItem[]>;
|
|
16363
|
-
|
|
16364
16090
|
//#endregion
|
|
16365
16091
|
//#region src/configs/node.d.ts
|
|
16366
16092
|
declare function node(options?: OptionsOverrides): Promise<TypedFlatConfigItem[]>;
|
|
16367
|
-
|
|
16368
16093
|
//#endregion
|
|
16369
16094
|
//#region src/configs/perfectionist.d.ts
|
|
16370
16095
|
/**
|
|
@@ -16373,19 +16098,15 @@ declare function node(options?: OptionsOverrides): Promise<TypedFlatConfigItem[]
|
|
|
16373
16098
|
* @see https://github.com/azat-io/eslint-plugin-perfectionist
|
|
16374
16099
|
*/
|
|
16375
16100
|
declare function perfectionist(options?: OptionsOverrides): Promise<TypedFlatConfigItem[]>;
|
|
16376
|
-
|
|
16377
16101
|
//#endregion
|
|
16378
16102
|
//#region src/configs/pnpm.d.ts
|
|
16379
16103
|
declare function pnpm(): Promise<TypedFlatConfigItem[]>;
|
|
16380
|
-
|
|
16381
16104
|
//#endregion
|
|
16382
16105
|
//#region src/configs/react.d.ts
|
|
16383
16106
|
declare function react(options?: OptionsTypeScriptParserOptions & OptionsTypeScriptWithTypes & OptionsOverrides & OptionsFiles): Promise<TypedFlatConfigItem[]>;
|
|
16384
|
-
|
|
16385
16107
|
//#endregion
|
|
16386
16108
|
//#region src/configs/regexp.d.ts
|
|
16387
16109
|
declare function regexp(options?: OptionsRegExp & OptionsOverrides): Promise<TypedFlatConfigItem[]>;
|
|
16388
|
-
|
|
16389
16110
|
//#endregion
|
|
16390
16111
|
//#region src/configs/sort.d.ts
|
|
16391
16112
|
/**
|
|
@@ -16400,40 +16121,31 @@ declare function sortPackageJson(): Promise<TypedFlatConfigItem[]>;
|
|
|
16400
16121
|
* Requires `jsonc` config
|
|
16401
16122
|
*/
|
|
16402
16123
|
declare function sortTsconfig(): TypedFlatConfigItem[];
|
|
16403
|
-
|
|
16404
16124
|
//#endregion
|
|
16405
16125
|
//#region src/configs/stylistic.d.ts
|
|
16406
16126
|
declare const StylisticConfigDefaults: StylisticConfig;
|
|
16407
16127
|
declare function stylistic(options?: OptionsStylistic & OptionsOverrides): Promise<TypedFlatConfigItem[]>;
|
|
16408
|
-
|
|
16409
16128
|
//#endregion
|
|
16410
16129
|
//#region src/configs/test.d.ts
|
|
16411
16130
|
declare function test(options?: OptionsFiles & OptionsIsInEditor & OptionsOverrides): Promise<TypedFlatConfigItem[]>;
|
|
16412
|
-
|
|
16413
16131
|
//#endregion
|
|
16414
16132
|
//#region src/configs/toml.d.ts
|
|
16415
16133
|
declare function toml(options?: OptionsOverrides & OptionsStylistic & OptionsFiles): Promise<TypedFlatConfigItem[]>;
|
|
16416
|
-
|
|
16417
16134
|
//#endregion
|
|
16418
16135
|
//#region src/configs/typescript.d.ts
|
|
16419
16136
|
declare function typescript(options?: OptionsFiles & OptionsComponentExts & OptionsOverrides & OptionsTypeScriptWithTypes & OptionsTypeScriptParserOptions & OptionsProjectType): Promise<TypedFlatConfigItem[]>;
|
|
16420
|
-
|
|
16421
16137
|
//#endregion
|
|
16422
16138
|
//#region src/configs/unicorn.d.ts
|
|
16423
16139
|
declare function unicorn(options?: OptionsUnicorn & OptionsOverrides): Promise<TypedFlatConfigItem[]>;
|
|
16424
|
-
|
|
16425
16140
|
//#endregion
|
|
16426
16141
|
//#region src/configs/unocss.d.ts
|
|
16427
16142
|
declare function unocss(options?: OptionsUnoCSS & OptionsOverrides): Promise<TypedFlatConfigItem[]>;
|
|
16428
|
-
|
|
16429
16143
|
//#endregion
|
|
16430
16144
|
//#region src/configs/vue.d.ts
|
|
16431
16145
|
declare function vue(options?: OptionsHasTypeScript & OptionsOverrides & OptionsStylistic & OptionsFiles & OptionsVue): Promise<TypedFlatConfigItem[]>;
|
|
16432
|
-
|
|
16433
16146
|
//#endregion
|
|
16434
16147
|
//#region src/configs/yaml.d.ts
|
|
16435
16148
|
declare function yaml(options?: OptionsOverrides & OptionsStylistic & OptionsFiles): Promise<TypedFlatConfigItem[]>;
|
|
16436
|
-
|
|
16437
16149
|
//#endregion
|
|
16438
16150
|
//#region src/globs.d.ts
|
|
16439
16151
|
declare const GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
|
|
@@ -16464,7 +16176,6 @@ declare const GLOB_MARKDOWN_CODE = "**/*.md/**/*.?([cm])[jt]s?(x)";
|
|
|
16464
16176
|
declare const GLOB_TESTS: string[];
|
|
16465
16177
|
declare const GLOB_ALL_SRC: string[];
|
|
16466
16178
|
declare const GLOB_EXCLUDE: string[];
|
|
16467
|
-
|
|
16468
16179
|
//#endregion
|
|
16469
16180
|
//#region src/utils.d.ts
|
|
16470
16181
|
declare const parserPlain: {
|
|
@@ -16508,6 +16219,5 @@ declare function isPackageInScope(name: string): boolean;
|
|
|
16508
16219
|
declare function ensurePackages(packages: (string | undefined)[]): Promise<void>;
|
|
16509
16220
|
declare function isInEditorEnv(): boolean;
|
|
16510
16221
|
declare function isInGitHooksOrLintStaged(): boolean;
|
|
16511
|
-
|
|
16512
16222
|
//#endregion
|
|
16513
16223
|
export { Awaitable, ConfigNames, GLOB_ALL_SRC, GLOB_CSS, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_SVELTE, GLOB_SVG, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_XML, GLOB_YAML, OptionsComponentExts, OptionsConfig, OptionsFiles, OptionsFormatters, OptionsHasTypeScript, OptionsIgnores, OptionsIsInEditor, OptionsOverrides, OptionsProjectType, OptionsRegExp, OptionsStylistic, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, OptionsTypescript, OptionsUnicorn, OptionsUnoCSS, OptionsVue, ResolvedOptions, Rules, StylisticConfig, StylisticConfigDefaults, TypedFlatConfigItem, combine, comments, lincy as default, defaultPluginRenaming, disables, ensurePackages, formatters, getOverrides, ignores, imports, interopDefault, isInEditorEnv, isInGitHooksOrLintStaged, isPackageInScope, javascript, jsdoc, jsonc, jsx, lincy, markdown, node, parserPlain, perfectionist, pnpm, react, regexp, renamePluginInConfigs, renameRules, resolveSubOptions, sortPackageJson, sortTsconfig, stylistic, test, toArray, toml, typescript, unicorn, unocss, vue, yaml };
|