@lincy/eslint-config 5.6.1 → 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 +14 -11
- package/dist/index.d.cts +245 -626
- package/dist/index.d.ts +245 -626
- package/dist/index.js +14 -11
- package/package.json +21 -21
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.15.1/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.15.1/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.15.1/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.15.1/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.15.1/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.15.1/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.15.1/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.15.1/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.15.1/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.15.1/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.15.1/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.15.1/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.15.1/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.15.1/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.15.1/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.15.1/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.15.1/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.15.1/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.15.1/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.15.1/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.15.1/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.15.1/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.15.1/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.15.1/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.15.1/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.15.1/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.15.1/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.15.1/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.15.1/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.15.1/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.15.1/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.15.1/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.15.1/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.15.1/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.15.1/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.15.1/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.15.1/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.15.1/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.15.1/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,6 +1002,11 @@ 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<[]>;
|
|
1201
1010
|
/**
|
|
1202
1011
|
* Disallow duplicate definitions
|
|
1203
1012
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-duplicate-definitions.md
|
|
@@ -1207,7 +1016,7 @@ interface RuleOptions {
|
|
|
1207
1016
|
* Disallow duplicate headings in the same document
|
|
1208
1017
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-duplicate-headings.md
|
|
1209
1018
|
*/
|
|
1210
|
-
'markdown/no-duplicate-headings'?: Linter.RuleEntry<
|
|
1019
|
+
'markdown/no-duplicate-headings'?: Linter.RuleEntry<MarkdownNoDuplicateHeadings>;
|
|
1211
1020
|
/**
|
|
1212
1021
|
* Disallow empty definitions
|
|
1213
1022
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-empty-definitions.md
|
|
@@ -1243,11 +1052,21 @@ interface RuleOptions {
|
|
|
1243
1052
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-missing-label-refs.md
|
|
1244
1053
|
*/
|
|
1245
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>;
|
|
1246
1060
|
/**
|
|
1247
1061
|
* Disallow multiple H1 headings in the same document
|
|
1248
1062
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-multiple-h1.md
|
|
1249
1063
|
*/
|
|
1250
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<[]>;
|
|
1251
1070
|
/**
|
|
1252
1071
|
* Require alternative text for images
|
|
1253
1072
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/require-alt-text.md
|
|
@@ -3633,483 +3452,478 @@ interface RuleOptions {
|
|
|
3633
3452
|
'strict'?: Linter.RuleEntry<Strict>;
|
|
3634
3453
|
/**
|
|
3635
3454
|
* Enforce linebreaks after opening and before closing array brackets
|
|
3636
|
-
* @see https://eslint.style/rules/
|
|
3455
|
+
* @see https://eslint.style/rules/array-bracket-newline
|
|
3637
3456
|
*/
|
|
3638
3457
|
'style/array-bracket-newline'?: Linter.RuleEntry<StyleArrayBracketNewline>;
|
|
3639
3458
|
/**
|
|
3640
3459
|
* Enforce consistent spacing inside array brackets
|
|
3641
|
-
* @see https://eslint.style/rules/
|
|
3460
|
+
* @see https://eslint.style/rules/array-bracket-spacing
|
|
3642
3461
|
*/
|
|
3643
3462
|
'style/array-bracket-spacing'?: Linter.RuleEntry<StyleArrayBracketSpacing>;
|
|
3644
3463
|
/**
|
|
3645
3464
|
* Enforce line breaks after each array element
|
|
3646
|
-
* @see https://eslint.style/rules/
|
|
3465
|
+
* @see https://eslint.style/rules/array-element-newline
|
|
3647
3466
|
*/
|
|
3648
3467
|
'style/array-element-newline'?: Linter.RuleEntry<StyleArrayElementNewline>;
|
|
3649
3468
|
/**
|
|
3650
3469
|
* Require parentheses around arrow function arguments
|
|
3651
|
-
* @see https://eslint.style/rules/
|
|
3470
|
+
* @see https://eslint.style/rules/arrow-parens
|
|
3652
3471
|
*/
|
|
3653
3472
|
'style/arrow-parens'?: Linter.RuleEntry<StyleArrowParens>;
|
|
3654
3473
|
/**
|
|
3655
3474
|
* Enforce consistent spacing before and after the arrow in arrow functions
|
|
3656
|
-
* @see https://eslint.style/rules/
|
|
3475
|
+
* @see https://eslint.style/rules/arrow-spacing
|
|
3657
3476
|
*/
|
|
3658
3477
|
'style/arrow-spacing'?: Linter.RuleEntry<StyleArrowSpacing>;
|
|
3659
3478
|
/**
|
|
3660
3479
|
* Disallow or enforce spaces inside of blocks after opening block and before closing block
|
|
3661
|
-
* @see https://eslint.style/rules/
|
|
3480
|
+
* @see https://eslint.style/rules/block-spacing
|
|
3662
3481
|
*/
|
|
3663
3482
|
'style/block-spacing'?: Linter.RuleEntry<StyleBlockSpacing>;
|
|
3664
3483
|
/**
|
|
3665
3484
|
* Enforce consistent brace style for blocks
|
|
3666
|
-
* @see https://eslint.style/rules/
|
|
3485
|
+
* @see https://eslint.style/rules/brace-style
|
|
3667
3486
|
*/
|
|
3668
3487
|
'style/brace-style'?: Linter.RuleEntry<StyleBraceStyle>;
|
|
3669
3488
|
/**
|
|
3670
3489
|
* Require or disallow trailing commas
|
|
3671
|
-
* @see https://eslint.style/rules/
|
|
3490
|
+
* @see https://eslint.style/rules/comma-dangle
|
|
3672
3491
|
*/
|
|
3673
3492
|
'style/comma-dangle'?: Linter.RuleEntry<StyleCommaDangle>;
|
|
3674
3493
|
/**
|
|
3675
3494
|
* Enforce consistent spacing before and after commas
|
|
3676
|
-
* @see https://eslint.style/rules/
|
|
3495
|
+
* @see https://eslint.style/rules/comma-spacing
|
|
3677
3496
|
*/
|
|
3678
3497
|
'style/comma-spacing'?: Linter.RuleEntry<StyleCommaSpacing>;
|
|
3679
3498
|
/**
|
|
3680
3499
|
* Enforce consistent comma style
|
|
3681
|
-
* @see https://eslint.style/rules/
|
|
3500
|
+
* @see https://eslint.style/rules/comma-style
|
|
3682
3501
|
*/
|
|
3683
3502
|
'style/comma-style'?: Linter.RuleEntry<StyleCommaStyle>;
|
|
3684
3503
|
/**
|
|
3685
3504
|
* Enforce consistent spacing inside computed property brackets
|
|
3686
|
-
* @see https://eslint.style/rules/
|
|
3505
|
+
* @see https://eslint.style/rules/computed-property-spacing
|
|
3687
3506
|
*/
|
|
3688
3507
|
'style/computed-property-spacing'?: Linter.RuleEntry<StyleComputedPropertySpacing>;
|
|
3689
3508
|
/**
|
|
3690
3509
|
* Enforce consistent line breaks after opening and before closing braces
|
|
3691
|
-
* @see https://eslint.style/rules/
|
|
3510
|
+
* @see https://eslint.style/rules/curly-newline
|
|
3692
3511
|
*/
|
|
3693
3512
|
'style/curly-newline'?: Linter.RuleEntry<StyleCurlyNewline>;
|
|
3694
3513
|
/**
|
|
3695
3514
|
* Enforce consistent newlines before and after dots
|
|
3696
|
-
* @see https://eslint.style/rules/
|
|
3515
|
+
* @see https://eslint.style/rules/dot-location
|
|
3697
3516
|
*/
|
|
3698
3517
|
'style/dot-location'?: Linter.RuleEntry<StyleDotLocation>;
|
|
3699
3518
|
/**
|
|
3700
3519
|
* Require or disallow newline at the end of files
|
|
3701
|
-
* @see https://eslint.style/rules/
|
|
3520
|
+
* @see https://eslint.style/rules/eol-last
|
|
3702
3521
|
*/
|
|
3703
3522
|
'style/eol-last'?: Linter.RuleEntry<StyleEolLast>;
|
|
3704
|
-
/**
|
|
3705
|
-
* Require or disallow spacing between function identifiers and their invocations
|
|
3706
|
-
* @see https://eslint.style/rules/ts/function-call-spacing
|
|
3707
|
-
*/
|
|
3708
|
-
'style/func-call-spacing'?: Linter.RuleEntry<StyleFuncCallSpacing>;
|
|
3709
3523
|
/**
|
|
3710
3524
|
* Enforce line breaks between arguments of a function call
|
|
3711
|
-
* @see https://eslint.style/rules/
|
|
3525
|
+
* @see https://eslint.style/rules/function-call-argument-newline
|
|
3712
3526
|
*/
|
|
3713
3527
|
'style/function-call-argument-newline'?: Linter.RuleEntry<StyleFunctionCallArgumentNewline>;
|
|
3714
3528
|
/**
|
|
3715
3529
|
* Require or disallow spacing between function identifiers and their invocations
|
|
3716
|
-
* @see https://eslint.style/rules/
|
|
3530
|
+
* @see https://eslint.style/rules/function-call-spacing
|
|
3717
3531
|
*/
|
|
3718
3532
|
'style/function-call-spacing'?: Linter.RuleEntry<StyleFunctionCallSpacing>;
|
|
3719
3533
|
/**
|
|
3720
3534
|
* Enforce consistent line breaks inside function parentheses
|
|
3721
|
-
* @see https://eslint.style/rules/
|
|
3535
|
+
* @see https://eslint.style/rules/function-paren-newline
|
|
3722
3536
|
*/
|
|
3723
3537
|
'style/function-paren-newline'?: Linter.RuleEntry<StyleFunctionParenNewline>;
|
|
3724
3538
|
/**
|
|
3725
3539
|
* Enforce consistent spacing around `*` operators in generator functions
|
|
3726
|
-
* @see https://eslint.style/rules/
|
|
3540
|
+
* @see https://eslint.style/rules/generator-star-spacing
|
|
3727
3541
|
*/
|
|
3728
3542
|
'style/generator-star-spacing'?: Linter.RuleEntry<StyleGeneratorStarSpacing>;
|
|
3729
3543
|
/**
|
|
3730
3544
|
* Enforce the location of arrow function bodies
|
|
3731
|
-
* @see https://eslint.style/rules/
|
|
3545
|
+
* @see https://eslint.style/rules/implicit-arrow-linebreak
|
|
3732
3546
|
*/
|
|
3733
3547
|
'style/implicit-arrow-linebreak'?: Linter.RuleEntry<StyleImplicitArrowLinebreak>;
|
|
3734
3548
|
/**
|
|
3735
3549
|
* Enforce consistent indentation
|
|
3736
|
-
* @see https://eslint.style/rules/
|
|
3550
|
+
* @see https://eslint.style/rules/indent
|
|
3737
3551
|
*/
|
|
3738
3552
|
'style/indent'?: Linter.RuleEntry<StyleIndent>;
|
|
3739
3553
|
/**
|
|
3740
3554
|
* Indentation for binary operators
|
|
3741
|
-
* @see https://eslint.style/rules/
|
|
3555
|
+
* @see https://eslint.style/rules/indent-binary-ops
|
|
3742
3556
|
*/
|
|
3743
3557
|
'style/indent-binary-ops'?: Linter.RuleEntry<StyleIndentBinaryOps>;
|
|
3744
3558
|
/**
|
|
3745
3559
|
* Enforce or disallow spaces inside of curly braces in JSX attributes and expressions
|
|
3746
|
-
* @see https://eslint.style/rules/jsx
|
|
3560
|
+
* @see https://eslint.style/rules/jsx-child-element-spacing
|
|
3747
3561
|
*/
|
|
3748
3562
|
'style/jsx-child-element-spacing'?: Linter.RuleEntry<[]>;
|
|
3749
3563
|
/**
|
|
3750
3564
|
* Enforce closing bracket location in JSX
|
|
3751
|
-
* @see https://eslint.style/rules/jsx
|
|
3565
|
+
* @see https://eslint.style/rules/jsx-closing-bracket-location
|
|
3752
3566
|
*/
|
|
3753
3567
|
'style/jsx-closing-bracket-location'?: Linter.RuleEntry<StyleJsxClosingBracketLocation>;
|
|
3754
3568
|
/**
|
|
3755
3569
|
* Enforce closing tag location for multiline JSX
|
|
3756
|
-
* @see https://eslint.style/rules/jsx
|
|
3570
|
+
* @see https://eslint.style/rules/jsx-closing-tag-location
|
|
3757
3571
|
*/
|
|
3758
3572
|
'style/jsx-closing-tag-location'?: Linter.RuleEntry<StyleJsxClosingTagLocation>;
|
|
3759
3573
|
/**
|
|
3760
3574
|
* Disallow unnecessary JSX expressions when literals alone are sufficient or enforce JSX expressions on literals in JSX children or attributes
|
|
3761
|
-
* @see https://eslint.style/rules/jsx
|
|
3575
|
+
* @see https://eslint.style/rules/jsx-curly-brace-presence
|
|
3762
3576
|
*/
|
|
3763
3577
|
'style/jsx-curly-brace-presence'?: Linter.RuleEntry<StyleJsxCurlyBracePresence>;
|
|
3764
3578
|
/**
|
|
3765
3579
|
* Enforce consistent linebreaks in curly braces in JSX attributes and expressions
|
|
3766
|
-
* @see https://eslint.style/rules/jsx
|
|
3580
|
+
* @see https://eslint.style/rules/jsx-curly-newline
|
|
3767
3581
|
*/
|
|
3768
3582
|
'style/jsx-curly-newline'?: Linter.RuleEntry<StyleJsxCurlyNewline>;
|
|
3769
3583
|
/**
|
|
3770
3584
|
* Enforce or disallow spaces inside of curly braces in JSX attributes and expressions
|
|
3771
|
-
* @see https://eslint.style/rules/jsx
|
|
3585
|
+
* @see https://eslint.style/rules/jsx-curly-spacing
|
|
3772
3586
|
*/
|
|
3773
3587
|
'style/jsx-curly-spacing'?: Linter.RuleEntry<StyleJsxCurlySpacing>;
|
|
3774
3588
|
/**
|
|
3775
3589
|
* Enforce or disallow spaces around equal signs in JSX attributes
|
|
3776
|
-
* @see https://eslint.style/rules/jsx
|
|
3590
|
+
* @see https://eslint.style/rules/jsx-equals-spacing
|
|
3777
3591
|
*/
|
|
3778
3592
|
'style/jsx-equals-spacing'?: Linter.RuleEntry<StyleJsxEqualsSpacing>;
|
|
3779
3593
|
/**
|
|
3780
3594
|
* Enforce proper position of the first property in JSX
|
|
3781
|
-
* @see https://eslint.style/rules/jsx
|
|
3595
|
+
* @see https://eslint.style/rules/jsx-first-prop-new-line
|
|
3782
3596
|
*/
|
|
3783
3597
|
'style/jsx-first-prop-new-line'?: Linter.RuleEntry<StyleJsxFirstPropNewLine>;
|
|
3784
3598
|
/**
|
|
3785
3599
|
* Enforce line breaks before and after JSX elements when they are used as arguments to a function.
|
|
3786
|
-
* @see https://eslint.style/rules/jsx
|
|
3600
|
+
* @see https://eslint.style/rules/jsx-function-call-newline
|
|
3787
3601
|
*/
|
|
3788
3602
|
'style/jsx-function-call-newline'?: Linter.RuleEntry<StyleJsxFunctionCallNewline>;
|
|
3789
3603
|
/**
|
|
3790
3604
|
* Enforce JSX indentation. Deprecated, use `indent` rule instead.
|
|
3791
|
-
* @see https://eslint.style/rules/jsx
|
|
3605
|
+
* @see https://eslint.style/rules/jsx-indent
|
|
3792
3606
|
* @deprecated
|
|
3793
3607
|
*/
|
|
3794
3608
|
'style/jsx-indent'?: Linter.RuleEntry<StyleJsxIndent>;
|
|
3795
3609
|
/**
|
|
3796
3610
|
* Enforce props indentation in JSX
|
|
3797
|
-
* @see https://eslint.style/rules/jsx
|
|
3611
|
+
* @see https://eslint.style/rules/jsx-indent-props
|
|
3798
3612
|
*/
|
|
3799
3613
|
'style/jsx-indent-props'?: Linter.RuleEntry<StyleJsxIndentProps>;
|
|
3800
3614
|
/**
|
|
3801
3615
|
* Enforce maximum of props on a single line in JSX
|
|
3802
|
-
* @see https://eslint.style/rules/jsx
|
|
3616
|
+
* @see https://eslint.style/rules/jsx-max-props-per-line
|
|
3803
3617
|
*/
|
|
3804
3618
|
'style/jsx-max-props-per-line'?: Linter.RuleEntry<StyleJsxMaxPropsPerLine>;
|
|
3805
3619
|
/**
|
|
3806
3620
|
* Require or prevent a new line after jsx elements and expressions.
|
|
3807
|
-
* @see https://eslint.style/rules/jsx
|
|
3621
|
+
* @see https://eslint.style/rules/jsx-newline
|
|
3808
3622
|
*/
|
|
3809
3623
|
'style/jsx-newline'?: Linter.RuleEntry<StyleJsxNewline>;
|
|
3810
3624
|
/**
|
|
3811
3625
|
* Require one JSX element per line
|
|
3812
|
-
* @see https://eslint.style/rules/jsx
|
|
3626
|
+
* @see https://eslint.style/rules/jsx-one-expression-per-line
|
|
3813
3627
|
*/
|
|
3814
3628
|
'style/jsx-one-expression-per-line'?: Linter.RuleEntry<StyleJsxOneExpressionPerLine>;
|
|
3815
3629
|
/**
|
|
3816
3630
|
* Enforce PascalCase for user-defined JSX components
|
|
3817
|
-
* @see https://eslint.style/rules/jsx
|
|
3631
|
+
* @see https://eslint.style/rules/jsx-pascal-case
|
|
3818
3632
|
*/
|
|
3819
3633
|
'style/jsx-pascal-case'?: Linter.RuleEntry<StyleJsxPascalCase>;
|
|
3820
3634
|
/**
|
|
3821
3635
|
* Disallow multiple spaces between inline JSX props
|
|
3822
|
-
* @see https://eslint.style/rules/jsx
|
|
3636
|
+
* @see https://eslint.style/rules/jsx-props-no-multi-spaces
|
|
3823
3637
|
*/
|
|
3824
3638
|
'style/jsx-props-no-multi-spaces'?: Linter.RuleEntry<[]>;
|
|
3825
3639
|
/**
|
|
3826
3640
|
* Enforce the consistent use of either double or single quotes in JSX attributes
|
|
3827
|
-
* @see https://eslint.style/rules/
|
|
3641
|
+
* @see https://eslint.style/rules/jsx-quotes
|
|
3828
3642
|
*/
|
|
3829
3643
|
'style/jsx-quotes'?: Linter.RuleEntry<StyleJsxQuotes>;
|
|
3830
3644
|
/**
|
|
3831
3645
|
* Disallow extra closing tags for components without children
|
|
3832
|
-
* @see https://eslint.style/rules/jsx
|
|
3646
|
+
* @see https://eslint.style/rules/jsx-self-closing-comp
|
|
3833
3647
|
*/
|
|
3834
3648
|
'style/jsx-self-closing-comp'?: Linter.RuleEntry<StyleJsxSelfClosingComp>;
|
|
3835
3649
|
/**
|
|
3836
3650
|
* Enforce props alphabetical sorting
|
|
3837
|
-
* @see https://eslint.style/rules/jsx
|
|
3651
|
+
* @see https://eslint.style/rules/jsx-sort-props
|
|
3838
3652
|
*/
|
|
3839
3653
|
'style/jsx-sort-props'?: Linter.RuleEntry<StyleJsxSortProps>;
|
|
3840
3654
|
/**
|
|
3841
3655
|
* Enforce whitespace in and around the JSX opening and closing brackets
|
|
3842
|
-
* @see https://eslint.style/rules/jsx
|
|
3656
|
+
* @see https://eslint.style/rules/jsx-tag-spacing
|
|
3843
3657
|
*/
|
|
3844
3658
|
'style/jsx-tag-spacing'?: Linter.RuleEntry<StyleJsxTagSpacing>;
|
|
3845
3659
|
/**
|
|
3846
3660
|
* Disallow missing parentheses around multiline JSX
|
|
3847
|
-
* @see https://eslint.style/rules/jsx
|
|
3661
|
+
* @see https://eslint.style/rules/jsx-wrap-multilines
|
|
3848
3662
|
*/
|
|
3849
3663
|
'style/jsx-wrap-multilines'?: Linter.RuleEntry<StyleJsxWrapMultilines>;
|
|
3850
3664
|
/**
|
|
3851
3665
|
* Enforce consistent spacing between property names and type annotations in types and interfaces
|
|
3852
|
-
* @see https://eslint.style/rules/
|
|
3666
|
+
* @see https://eslint.style/rules/key-spacing
|
|
3853
3667
|
*/
|
|
3854
3668
|
'style/key-spacing'?: Linter.RuleEntry<StyleKeySpacing>;
|
|
3855
3669
|
/**
|
|
3856
3670
|
* Enforce consistent spacing before and after keywords
|
|
3857
|
-
* @see https://eslint.style/rules/
|
|
3671
|
+
* @see https://eslint.style/rules/keyword-spacing
|
|
3858
3672
|
*/
|
|
3859
3673
|
'style/keyword-spacing'?: Linter.RuleEntry<StyleKeywordSpacing>;
|
|
3860
3674
|
/**
|
|
3861
3675
|
* Enforce position of line comments
|
|
3862
|
-
* @see https://eslint.style/rules/
|
|
3676
|
+
* @see https://eslint.style/rules/line-comment-position
|
|
3863
3677
|
*/
|
|
3864
3678
|
'style/line-comment-position'?: Linter.RuleEntry<StyleLineCommentPosition>;
|
|
3865
3679
|
/**
|
|
3866
3680
|
* Enforce consistent linebreak style
|
|
3867
|
-
* @see https://eslint.style/rules/
|
|
3681
|
+
* @see https://eslint.style/rules/linebreak-style
|
|
3868
3682
|
*/
|
|
3869
3683
|
'style/linebreak-style'?: Linter.RuleEntry<StyleLinebreakStyle>;
|
|
3870
3684
|
/**
|
|
3871
3685
|
* Require empty lines around comments
|
|
3872
|
-
* @see https://eslint.style/rules/
|
|
3686
|
+
* @see https://eslint.style/rules/lines-around-comment
|
|
3873
3687
|
*/
|
|
3874
3688
|
'style/lines-around-comment'?: Linter.RuleEntry<StyleLinesAroundComment>;
|
|
3875
3689
|
/**
|
|
3876
3690
|
* Require or disallow an empty line between class members
|
|
3877
|
-
* @see https://eslint.style/rules/
|
|
3691
|
+
* @see https://eslint.style/rules/lines-between-class-members
|
|
3878
3692
|
*/
|
|
3879
3693
|
'style/lines-between-class-members'?: Linter.RuleEntry<StyleLinesBetweenClassMembers>;
|
|
3880
3694
|
/**
|
|
3881
3695
|
* Enforce a maximum line length
|
|
3882
|
-
* @see https://eslint.style/rules/
|
|
3696
|
+
* @see https://eslint.style/rules/max-len
|
|
3883
3697
|
*/
|
|
3884
3698
|
'style/max-len'?: Linter.RuleEntry<StyleMaxLen>;
|
|
3885
3699
|
/**
|
|
3886
3700
|
* Enforce a maximum number of statements allowed per line
|
|
3887
|
-
* @see https://eslint.style/rules/
|
|
3701
|
+
* @see https://eslint.style/rules/max-statements-per-line
|
|
3888
3702
|
*/
|
|
3889
3703
|
'style/max-statements-per-line'?: Linter.RuleEntry<StyleMaxStatementsPerLine>;
|
|
3890
3704
|
/**
|
|
3891
3705
|
* Require a specific member delimiter style for interfaces and type literals
|
|
3892
|
-
* @see https://eslint.style/rules/
|
|
3706
|
+
* @see https://eslint.style/rules/member-delimiter-style
|
|
3893
3707
|
*/
|
|
3894
3708
|
'style/member-delimiter-style'?: Linter.RuleEntry<StyleMemberDelimiterStyle>;
|
|
3895
3709
|
/**
|
|
3896
3710
|
* Enforce a particular style for multiline comments
|
|
3897
|
-
* @see https://eslint.style/rules/
|
|
3711
|
+
* @see https://eslint.style/rules/multiline-comment-style
|
|
3898
3712
|
*/
|
|
3899
3713
|
'style/multiline-comment-style'?: Linter.RuleEntry<StyleMultilineCommentStyle>;
|
|
3900
3714
|
/**
|
|
3901
3715
|
* Enforce newlines between operands of ternary expressions
|
|
3902
|
-
* @see https://eslint.style/rules/
|
|
3716
|
+
* @see https://eslint.style/rules/multiline-ternary
|
|
3903
3717
|
*/
|
|
3904
3718
|
'style/multiline-ternary'?: Linter.RuleEntry<StyleMultilineTernary>;
|
|
3905
3719
|
/**
|
|
3906
3720
|
* Enforce or disallow parentheses when invoking a constructor with no arguments
|
|
3907
|
-
* @see https://eslint.style/rules/
|
|
3721
|
+
* @see https://eslint.style/rules/new-parens
|
|
3908
3722
|
*/
|
|
3909
3723
|
'style/new-parens'?: Linter.RuleEntry<StyleNewParens>;
|
|
3910
3724
|
/**
|
|
3911
3725
|
* Require a newline after each call in a method chain
|
|
3912
|
-
* @see https://eslint.style/rules/
|
|
3726
|
+
* @see https://eslint.style/rules/newline-per-chained-call
|
|
3913
3727
|
*/
|
|
3914
3728
|
'style/newline-per-chained-call'?: Linter.RuleEntry<StyleNewlinePerChainedCall>;
|
|
3915
3729
|
/**
|
|
3916
3730
|
* Disallow arrow functions where they could be confused with comparisons
|
|
3917
|
-
* @see https://eslint.style/rules/
|
|
3731
|
+
* @see https://eslint.style/rules/no-confusing-arrow
|
|
3918
3732
|
*/
|
|
3919
3733
|
'style/no-confusing-arrow'?: Linter.RuleEntry<StyleNoConfusingArrow>;
|
|
3920
3734
|
/**
|
|
3921
3735
|
* Disallow unnecessary parentheses
|
|
3922
|
-
* @see https://eslint.style/rules/
|
|
3736
|
+
* @see https://eslint.style/rules/no-extra-parens
|
|
3923
3737
|
*/
|
|
3924
3738
|
'style/no-extra-parens'?: Linter.RuleEntry<StyleNoExtraParens>;
|
|
3925
3739
|
/**
|
|
3926
3740
|
* Disallow unnecessary semicolons
|
|
3927
|
-
* @see https://eslint.style/rules/
|
|
3741
|
+
* @see https://eslint.style/rules/no-extra-semi
|
|
3928
3742
|
*/
|
|
3929
3743
|
'style/no-extra-semi'?: Linter.RuleEntry<[]>;
|
|
3930
3744
|
/**
|
|
3931
3745
|
* Disallow leading or trailing decimal points in numeric literals
|
|
3932
|
-
* @see https://eslint.style/rules/
|
|
3746
|
+
* @see https://eslint.style/rules/no-floating-decimal
|
|
3933
3747
|
*/
|
|
3934
3748
|
'style/no-floating-decimal'?: Linter.RuleEntry<[]>;
|
|
3935
3749
|
/**
|
|
3936
3750
|
* Disallow mixed binary operators
|
|
3937
|
-
* @see https://eslint.style/rules/
|
|
3751
|
+
* @see https://eslint.style/rules/no-mixed-operators
|
|
3938
3752
|
*/
|
|
3939
3753
|
'style/no-mixed-operators'?: Linter.RuleEntry<StyleNoMixedOperators>;
|
|
3940
3754
|
/**
|
|
3941
3755
|
* Disallow mixed spaces and tabs for indentation
|
|
3942
|
-
* @see https://eslint.style/rules/
|
|
3756
|
+
* @see https://eslint.style/rules/no-mixed-spaces-and-tabs
|
|
3943
3757
|
*/
|
|
3944
3758
|
'style/no-mixed-spaces-and-tabs'?: Linter.RuleEntry<StyleNoMixedSpacesAndTabs>;
|
|
3945
3759
|
/**
|
|
3946
3760
|
* Disallow multiple spaces
|
|
3947
|
-
* @see https://eslint.style/rules/
|
|
3761
|
+
* @see https://eslint.style/rules/no-multi-spaces
|
|
3948
3762
|
*/
|
|
3949
3763
|
'style/no-multi-spaces'?: Linter.RuleEntry<StyleNoMultiSpaces>;
|
|
3950
3764
|
/**
|
|
3951
3765
|
* Disallow multiple empty lines
|
|
3952
|
-
* @see https://eslint.style/rules/
|
|
3766
|
+
* @see https://eslint.style/rules/no-multiple-empty-lines
|
|
3953
3767
|
*/
|
|
3954
3768
|
'style/no-multiple-empty-lines'?: Linter.RuleEntry<StyleNoMultipleEmptyLines>;
|
|
3955
3769
|
/**
|
|
3956
3770
|
* Disallow all tabs
|
|
3957
|
-
* @see https://eslint.style/rules/
|
|
3771
|
+
* @see https://eslint.style/rules/no-tabs
|
|
3958
3772
|
*/
|
|
3959
3773
|
'style/no-tabs'?: Linter.RuleEntry<StyleNoTabs>;
|
|
3960
3774
|
/**
|
|
3961
3775
|
* Disallow trailing whitespace at the end of lines
|
|
3962
|
-
* @see https://eslint.style/rules/
|
|
3776
|
+
* @see https://eslint.style/rules/no-trailing-spaces
|
|
3963
3777
|
*/
|
|
3964
3778
|
'style/no-trailing-spaces'?: Linter.RuleEntry<StyleNoTrailingSpaces>;
|
|
3965
3779
|
/**
|
|
3966
3780
|
* Disallow whitespace before properties
|
|
3967
|
-
* @see https://eslint.style/rules/
|
|
3781
|
+
* @see https://eslint.style/rules/no-whitespace-before-property
|
|
3968
3782
|
*/
|
|
3969
3783
|
'style/no-whitespace-before-property'?: Linter.RuleEntry<[]>;
|
|
3970
3784
|
/**
|
|
3971
3785
|
* Enforce the location of single-line statements
|
|
3972
|
-
* @see https://eslint.style/rules/
|
|
3786
|
+
* @see https://eslint.style/rules/nonblock-statement-body-position
|
|
3973
3787
|
*/
|
|
3974
3788
|
'style/nonblock-statement-body-position'?: Linter.RuleEntry<StyleNonblockStatementBodyPosition>;
|
|
3975
3789
|
/**
|
|
3976
3790
|
* Enforce consistent line breaks after opening and before closing braces
|
|
3977
|
-
* @see https://eslint.style/rules/
|
|
3791
|
+
* @see https://eslint.style/rules/object-curly-newline
|
|
3978
3792
|
*/
|
|
3979
3793
|
'style/object-curly-newline'?: Linter.RuleEntry<StyleObjectCurlyNewline>;
|
|
3980
3794
|
/**
|
|
3981
3795
|
* Enforce consistent spacing inside braces
|
|
3982
|
-
* @see https://eslint.style/rules/
|
|
3796
|
+
* @see https://eslint.style/rules/object-curly-spacing
|
|
3983
3797
|
*/
|
|
3984
3798
|
'style/object-curly-spacing'?: Linter.RuleEntry<StyleObjectCurlySpacing>;
|
|
3985
3799
|
/**
|
|
3986
3800
|
* Enforce placing object properties on separate lines
|
|
3987
|
-
* @see https://eslint.style/rules/
|
|
3801
|
+
* @see https://eslint.style/rules/object-property-newline
|
|
3988
3802
|
*/
|
|
3989
3803
|
'style/object-property-newline'?: Linter.RuleEntry<StyleObjectPropertyNewline>;
|
|
3990
3804
|
/**
|
|
3991
3805
|
* Require or disallow newlines around variable declarations
|
|
3992
|
-
* @see https://eslint.style/rules/
|
|
3806
|
+
* @see https://eslint.style/rules/one-var-declaration-per-line
|
|
3993
3807
|
*/
|
|
3994
3808
|
'style/one-var-declaration-per-line'?: Linter.RuleEntry<StyleOneVarDeclarationPerLine>;
|
|
3995
3809
|
/**
|
|
3996
3810
|
* Enforce consistent linebreak style for operators
|
|
3997
|
-
* @see https://eslint.style/rules/
|
|
3811
|
+
* @see https://eslint.style/rules/operator-linebreak
|
|
3998
3812
|
*/
|
|
3999
3813
|
'style/operator-linebreak'?: Linter.RuleEntry<StyleOperatorLinebreak>;
|
|
4000
3814
|
/**
|
|
4001
3815
|
* Require or disallow padding within blocks
|
|
4002
|
-
* @see https://eslint.style/rules/
|
|
3816
|
+
* @see https://eslint.style/rules/padded-blocks
|
|
4003
3817
|
*/
|
|
4004
3818
|
'style/padded-blocks'?: Linter.RuleEntry<StylePaddedBlocks>;
|
|
4005
3819
|
/**
|
|
4006
3820
|
* Require or disallow padding lines between statements
|
|
4007
|
-
* @see https://eslint.style/rules/
|
|
3821
|
+
* @see https://eslint.style/rules/padding-line-between-statements
|
|
4008
3822
|
*/
|
|
4009
3823
|
'style/padding-line-between-statements'?: Linter.RuleEntry<StylePaddingLineBetweenStatements>;
|
|
4010
3824
|
/**
|
|
4011
3825
|
* Require quotes around object literal, type literal, interfaces and enums property names
|
|
4012
|
-
* @see https://eslint.style/rules/
|
|
3826
|
+
* @see https://eslint.style/rules/quote-props
|
|
4013
3827
|
*/
|
|
4014
3828
|
'style/quote-props'?: Linter.RuleEntry<StyleQuoteProps>;
|
|
4015
3829
|
/**
|
|
4016
3830
|
* Enforce the consistent use of either backticks, double, or single quotes
|
|
4017
|
-
* @see https://eslint.style/rules/
|
|
3831
|
+
* @see https://eslint.style/rules/quotes
|
|
4018
3832
|
*/
|
|
4019
3833
|
'style/quotes'?: Linter.RuleEntry<StyleQuotes>;
|
|
4020
3834
|
/**
|
|
4021
3835
|
* Enforce spacing between rest and spread operators and their expressions
|
|
4022
|
-
* @see https://eslint.style/rules/
|
|
3836
|
+
* @see https://eslint.style/rules/rest-spread-spacing
|
|
4023
3837
|
*/
|
|
4024
3838
|
'style/rest-spread-spacing'?: Linter.RuleEntry<StyleRestSpreadSpacing>;
|
|
4025
3839
|
/**
|
|
4026
3840
|
* Require or disallow semicolons instead of ASI
|
|
4027
|
-
* @see https://eslint.style/rules/
|
|
3841
|
+
* @see https://eslint.style/rules/semi
|
|
4028
3842
|
*/
|
|
4029
3843
|
'style/semi'?: Linter.RuleEntry<StyleSemi>;
|
|
4030
3844
|
/**
|
|
4031
3845
|
* Enforce consistent spacing before and after semicolons
|
|
4032
|
-
* @see https://eslint.style/rules/
|
|
3846
|
+
* @see https://eslint.style/rules/semi-spacing
|
|
4033
3847
|
*/
|
|
4034
3848
|
'style/semi-spacing'?: Linter.RuleEntry<StyleSemiSpacing>;
|
|
4035
3849
|
/**
|
|
4036
3850
|
* Enforce location of semicolons
|
|
4037
|
-
* @see https://eslint.style/rules/
|
|
3851
|
+
* @see https://eslint.style/rules/semi-style
|
|
4038
3852
|
*/
|
|
4039
3853
|
'style/semi-style'?: Linter.RuleEntry<StyleSemiStyle>;
|
|
4040
3854
|
/**
|
|
4041
3855
|
* Enforce consistent spacing before blocks
|
|
4042
|
-
* @see https://eslint.style/rules/
|
|
3856
|
+
* @see https://eslint.style/rules/space-before-blocks
|
|
4043
3857
|
*/
|
|
4044
3858
|
'style/space-before-blocks'?: Linter.RuleEntry<StyleSpaceBeforeBlocks>;
|
|
4045
3859
|
/**
|
|
4046
3860
|
* Enforce consistent spacing before function parenthesis
|
|
4047
|
-
* @see https://eslint.style/rules/
|
|
3861
|
+
* @see https://eslint.style/rules/space-before-function-paren
|
|
4048
3862
|
*/
|
|
4049
3863
|
'style/space-before-function-paren'?: Linter.RuleEntry<StyleSpaceBeforeFunctionParen>;
|
|
4050
3864
|
/**
|
|
4051
3865
|
* Enforce consistent spacing inside parentheses
|
|
4052
|
-
* @see https://eslint.style/rules/
|
|
3866
|
+
* @see https://eslint.style/rules/space-in-parens
|
|
4053
3867
|
*/
|
|
4054
3868
|
'style/space-in-parens'?: Linter.RuleEntry<StyleSpaceInParens>;
|
|
4055
3869
|
/**
|
|
4056
3870
|
* Require spacing around infix operators
|
|
4057
|
-
* @see https://eslint.style/rules/
|
|
3871
|
+
* @see https://eslint.style/rules/space-infix-ops
|
|
4058
3872
|
*/
|
|
4059
3873
|
'style/space-infix-ops'?: Linter.RuleEntry<StyleSpaceInfixOps>;
|
|
4060
3874
|
/**
|
|
4061
3875
|
* Enforce consistent spacing before or after unary operators
|
|
4062
|
-
* @see https://eslint.style/rules/
|
|
3876
|
+
* @see https://eslint.style/rules/space-unary-ops
|
|
4063
3877
|
*/
|
|
4064
3878
|
'style/space-unary-ops'?: Linter.RuleEntry<StyleSpaceUnaryOps>;
|
|
4065
3879
|
/**
|
|
4066
3880
|
* Enforce consistent spacing after the `//` or `/*` in a comment
|
|
4067
|
-
* @see https://eslint.style/rules/
|
|
3881
|
+
* @see https://eslint.style/rules/spaced-comment
|
|
4068
3882
|
*/
|
|
4069
3883
|
'style/spaced-comment'?: Linter.RuleEntry<StyleSpacedComment>;
|
|
4070
3884
|
/**
|
|
4071
3885
|
* Enforce spacing around colons of switch statements
|
|
4072
|
-
* @see https://eslint.style/rules/
|
|
3886
|
+
* @see https://eslint.style/rules/switch-colon-spacing
|
|
4073
3887
|
*/
|
|
4074
3888
|
'style/switch-colon-spacing'?: Linter.RuleEntry<StyleSwitchColonSpacing>;
|
|
4075
3889
|
/**
|
|
4076
3890
|
* Require or disallow spacing around embedded expressions of template strings
|
|
4077
|
-
* @see https://eslint.style/rules/
|
|
3891
|
+
* @see https://eslint.style/rules/template-curly-spacing
|
|
4078
3892
|
*/
|
|
4079
3893
|
'style/template-curly-spacing'?: Linter.RuleEntry<StyleTemplateCurlySpacing>;
|
|
4080
3894
|
/**
|
|
4081
3895
|
* Require or disallow spacing between template tags and their literals
|
|
4082
|
-
* @see https://eslint.style/rules/
|
|
3896
|
+
* @see https://eslint.style/rules/template-tag-spacing
|
|
4083
3897
|
*/
|
|
4084
3898
|
'style/template-tag-spacing'?: Linter.RuleEntry<StyleTemplateTagSpacing>;
|
|
4085
3899
|
/**
|
|
4086
3900
|
* Require consistent spacing around type annotations
|
|
4087
|
-
* @see https://eslint.style/rules/
|
|
3901
|
+
* @see https://eslint.style/rules/type-annotation-spacing
|
|
4088
3902
|
*/
|
|
4089
3903
|
'style/type-annotation-spacing'?: Linter.RuleEntry<StyleTypeAnnotationSpacing>;
|
|
4090
3904
|
/**
|
|
4091
3905
|
* Enforces consistent spacing inside TypeScript type generics
|
|
4092
|
-
* @see https://eslint.style/rules/
|
|
3906
|
+
* @see https://eslint.style/rules/type-generic-spacing
|
|
4093
3907
|
*/
|
|
4094
3908
|
'style/type-generic-spacing'?: Linter.RuleEntry<[]>;
|
|
4095
3909
|
/**
|
|
4096
3910
|
* Expect space before the type declaration in the named tuple
|
|
4097
|
-
* @see https://eslint.style/rules/
|
|
3911
|
+
* @see https://eslint.style/rules/type-named-tuple-spacing
|
|
4098
3912
|
*/
|
|
4099
3913
|
'style/type-named-tuple-spacing'?: Linter.RuleEntry<[]>;
|
|
4100
3914
|
/**
|
|
4101
3915
|
* Require parentheses around immediate `function` invocations
|
|
4102
|
-
* @see https://eslint.style/rules/
|
|
3916
|
+
* @see https://eslint.style/rules/wrap-iife
|
|
4103
3917
|
*/
|
|
4104
3918
|
'style/wrap-iife'?: Linter.RuleEntry<StyleWrapIife>;
|
|
4105
3919
|
/**
|
|
4106
3920
|
* Require parenthesis around regex literals
|
|
4107
|
-
* @see https://eslint.style/rules/
|
|
3921
|
+
* @see https://eslint.style/rules/wrap-regex
|
|
4108
3922
|
*/
|
|
4109
3923
|
'style/wrap-regex'?: Linter.RuleEntry<[]>;
|
|
4110
3924
|
/**
|
|
4111
3925
|
* Require or disallow spacing around the `*` in `yield*` expressions
|
|
4112
|
-
* @see https://eslint.style/rules/
|
|
3926
|
+
* @see https://eslint.style/rules/yield-star-spacing
|
|
4113
3927
|
*/
|
|
4114
3928
|
'style/yield-star-spacing'?: Linter.RuleEntry<StyleYieldStarSpacing>;
|
|
4115
3929
|
/**
|
|
@@ -4145,6 +3959,11 @@ interface RuleOptions {
|
|
|
4145
3959
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/consistent-test-it.md
|
|
4146
3960
|
*/
|
|
4147
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>;
|
|
4148
3967
|
/**
|
|
4149
3968
|
* enforce having expectation in test body
|
|
4150
3969
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/expect-expect.md
|
|
@@ -4221,6 +4040,11 @@ interface RuleOptions {
|
|
|
4221
4040
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-import-node-test.md
|
|
4222
4041
|
*/
|
|
4223
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<[]>;
|
|
4224
4048
|
/**
|
|
4225
4049
|
* disallow string interpolation in snapshots
|
|
4226
4050
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-interpolation-in-snapshots.md
|
|
@@ -4257,7 +4081,7 @@ interface RuleOptions {
|
|
|
4257
4081
|
*/
|
|
4258
4082
|
'test/no-standalone-expect'?: Linter.RuleEntry<TestNoStandaloneExpect>;
|
|
4259
4083
|
/**
|
|
4260
|
-
*
|
|
4084
|
+
* disallow using the `f` and `x` prefixes in favour of `.only` and `.skip`
|
|
4261
4085
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-test-prefixes.md
|
|
4262
4086
|
*/
|
|
4263
4087
|
'test/no-test-prefixes'?: Linter.RuleEntry<[]>;
|
|
@@ -4351,6 +4175,11 @@ interface RuleOptions {
|
|
|
4351
4175
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-hooks-on-top.md
|
|
4352
4176
|
*/
|
|
4353
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<[]>;
|
|
4354
4183
|
/**
|
|
4355
4184
|
* enforce lowercase titles
|
|
4356
4185
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-lowercase-title.md
|
|
@@ -7630,246 +7459,19 @@ type IdMatch = [] | [string] | [string, {
|
|
|
7630
7459
|
// ----- implicit-arrow-linebreak -----
|
|
7631
7460
|
type ImplicitArrowLinebreak = [] | [("beside" | "below")];
|
|
7632
7461
|
// ----- import/consistent-type-specifier-style -----
|
|
7633
|
-
type ImportConsistentTypeSpecifierStyle = [] | [("
|
|
7634
|
-
// ----- import/dynamic-import-chunkname -----
|
|
7635
|
-
type ImportDynamicImportChunkname = [] | [{
|
|
7636
|
-
importFunctions?: string[];
|
|
7637
|
-
allowEmpty?: boolean;
|
|
7638
|
-
webpackChunknameFormat?: string;
|
|
7639
|
-
[k: string]: unknown | undefined;
|
|
7640
|
-
}];
|
|
7641
|
-
// ----- import/extensions -----
|
|
7642
|
-
type ImportExtensions = ([] | [("always" | "ignorePackages" | "never")] | [] | [("always" | "ignorePackages" | "never")] | [("always" | "ignorePackages" | "never"), {
|
|
7643
|
-
pattern?: {
|
|
7644
|
-
[k: string]: ("always" | "ignorePackages" | "never");
|
|
7645
|
-
};
|
|
7646
|
-
ignorePackages?: boolean;
|
|
7647
|
-
checkTypeImports?: boolean;
|
|
7648
|
-
pathGroupOverrides?: {
|
|
7649
|
-
pattern: string;
|
|
7650
|
-
patternOptions?: {
|
|
7651
|
-
[k: string]: unknown | undefined;
|
|
7652
|
-
};
|
|
7653
|
-
action: ("enforce" | "ignore");
|
|
7654
|
-
}[];
|
|
7655
|
-
fix?: boolean;
|
|
7656
|
-
[k: string]: unknown | undefined;
|
|
7657
|
-
}] | [] | [{
|
|
7658
|
-
pattern?: {
|
|
7659
|
-
[k: string]: ("always" | "ignorePackages" | "never");
|
|
7660
|
-
};
|
|
7661
|
-
ignorePackages?: boolean;
|
|
7662
|
-
checkTypeImports?: boolean;
|
|
7663
|
-
pathGroupOverrides?: {
|
|
7664
|
-
pattern: string;
|
|
7665
|
-
patternOptions?: {
|
|
7666
|
-
[k: string]: unknown | undefined;
|
|
7667
|
-
};
|
|
7668
|
-
action: ("enforce" | "ignore");
|
|
7669
|
-
}[];
|
|
7670
|
-
fix?: boolean;
|
|
7671
|
-
[k: string]: unknown | undefined;
|
|
7672
|
-
}] | [] | [("always" | "ignorePackages" | "never")] | [("always" | "ignorePackages" | "never"), {
|
|
7673
|
-
[k: string]: ("always" | "ignorePackages" | "never");
|
|
7674
|
-
}] | [] | [{
|
|
7675
|
-
[k: string]: ("always" | "ignorePackages" | "never");
|
|
7676
|
-
}]);
|
|
7462
|
+
type ImportConsistentTypeSpecifierStyle = [] | [("top-level" | "inline" | "prefer-top-level")];
|
|
7677
7463
|
// ----- import/first -----
|
|
7678
7464
|
type ImportFirst = [] | [("absolute-first" | "disable-absolute-first")];
|
|
7679
|
-
// ----- import/imports-first -----
|
|
7680
|
-
type ImportImportsFirst = [] | [("absolute-first" | "disable-absolute-first")];
|
|
7681
|
-
// ----- import/max-dependencies -----
|
|
7682
|
-
type ImportMaxDependencies = [] | [{
|
|
7683
|
-
max?: number;
|
|
7684
|
-
ignoreTypeImports?: boolean;
|
|
7685
|
-
}];
|
|
7686
|
-
// ----- import/named -----
|
|
7687
|
-
type ImportNamed = [] | [{
|
|
7688
|
-
commonjs?: boolean;
|
|
7689
|
-
}];
|
|
7690
|
-
// ----- import/namespace -----
|
|
7691
|
-
type ImportNamespace = [] | [{
|
|
7692
|
-
allowComputed?: boolean;
|
|
7693
|
-
}];
|
|
7694
7465
|
// ----- import/newline-after-import -----
|
|
7695
7466
|
type ImportNewlineAfterImport = [] | [{
|
|
7696
7467
|
count?: number;
|
|
7697
7468
|
exactCount?: boolean;
|
|
7698
7469
|
considerComments?: boolean;
|
|
7699
7470
|
}];
|
|
7700
|
-
// ----- import/no-absolute-path -----
|
|
7701
|
-
type ImportNoAbsolutePath = [] | [{
|
|
7702
|
-
commonjs?: boolean;
|
|
7703
|
-
amd?: boolean;
|
|
7704
|
-
esmodule?: boolean;
|
|
7705
|
-
ignore?: [string, ...(string)[]];
|
|
7706
|
-
}];
|
|
7707
|
-
// ----- import/no-anonymous-default-export -----
|
|
7708
|
-
type ImportNoAnonymousDefaultExport = [] | [{
|
|
7709
|
-
allowArray?: boolean;
|
|
7710
|
-
allowArrowFunction?: boolean;
|
|
7711
|
-
allowCallExpression?: boolean;
|
|
7712
|
-
allowAnonymousClass?: boolean;
|
|
7713
|
-
allowAnonymousFunction?: boolean;
|
|
7714
|
-
allowLiteral?: boolean;
|
|
7715
|
-
allowObject?: boolean;
|
|
7716
|
-
allowNew?: boolean;
|
|
7717
|
-
}];
|
|
7718
|
-
// ----- import/no-commonjs -----
|
|
7719
|
-
type ImportNoCommonjs = ([] | ["allow-primitive-modules"] | [] | [{
|
|
7720
|
-
allowPrimitiveModules?: boolean;
|
|
7721
|
-
allowRequire?: boolean;
|
|
7722
|
-
allowConditionalRequire?: boolean;
|
|
7723
|
-
}]);
|
|
7724
|
-
// ----- import/no-cycle -----
|
|
7725
|
-
type ImportNoCycle = [] | [{
|
|
7726
|
-
commonjs?: boolean;
|
|
7727
|
-
amd?: boolean;
|
|
7728
|
-
esmodule?: boolean;
|
|
7729
|
-
ignore?: [string, ...(string)[]];
|
|
7730
|
-
maxDepth?: (number | "∞");
|
|
7731
|
-
ignoreExternal?: boolean;
|
|
7732
|
-
allowUnsafeDynamicCyclicDependency?: boolean;
|
|
7733
|
-
}];
|
|
7734
7471
|
// ----- import/no-duplicates -----
|
|
7735
7472
|
type ImportNoDuplicates = [] | [{
|
|
7736
|
-
considerQueryString?: boolean;
|
|
7737
7473
|
"prefer-inline"?: boolean;
|
|
7738
7474
|
}];
|
|
7739
|
-
// ----- import/no-dynamic-require -----
|
|
7740
|
-
type ImportNoDynamicRequire = [] | [{
|
|
7741
|
-
esmodule?: boolean;
|
|
7742
|
-
}];
|
|
7743
|
-
// ----- import/no-extraneous-dependencies -----
|
|
7744
|
-
type ImportNoExtraneousDependencies = [] | [{
|
|
7745
|
-
devDependencies?: (boolean | unknown[]);
|
|
7746
|
-
optionalDependencies?: (boolean | unknown[]);
|
|
7747
|
-
peerDependencies?: (boolean | unknown[]);
|
|
7748
|
-
bundledDependencies?: (boolean | unknown[]);
|
|
7749
|
-
packageDir?: (string | unknown[]);
|
|
7750
|
-
includeInternal?: boolean;
|
|
7751
|
-
includeTypes?: boolean;
|
|
7752
|
-
whitelist?: unknown[];
|
|
7753
|
-
}];
|
|
7754
|
-
// ----- import/no-import-module-exports -----
|
|
7755
|
-
type ImportNoImportModuleExports = [] | [{
|
|
7756
|
-
exceptions?: unknown[];
|
|
7757
|
-
}];
|
|
7758
|
-
// ----- import/no-internal-modules -----
|
|
7759
|
-
type ImportNoInternalModules = [] | [({
|
|
7760
|
-
allow?: string[];
|
|
7761
|
-
} | {
|
|
7762
|
-
forbid?: string[];
|
|
7763
|
-
})];
|
|
7764
|
-
// ----- import/no-namespace -----
|
|
7765
|
-
type ImportNoNamespace = [] | [{
|
|
7766
|
-
ignore?: string[];
|
|
7767
|
-
[k: string]: unknown | undefined;
|
|
7768
|
-
}];
|
|
7769
|
-
// ----- import/no-nodejs-modules -----
|
|
7770
|
-
type ImportNoNodejsModules = [] | [{
|
|
7771
|
-
allow?: string[];
|
|
7772
|
-
}];
|
|
7773
|
-
// ----- import/no-relative-packages -----
|
|
7774
|
-
type ImportNoRelativePackages = [] | [{
|
|
7775
|
-
commonjs?: boolean;
|
|
7776
|
-
amd?: boolean;
|
|
7777
|
-
esmodule?: boolean;
|
|
7778
|
-
ignore?: [string, ...(string)[]];
|
|
7779
|
-
}];
|
|
7780
|
-
// ----- import/no-relative-parent-imports -----
|
|
7781
|
-
type ImportNoRelativeParentImports = [] | [{
|
|
7782
|
-
commonjs?: boolean;
|
|
7783
|
-
amd?: boolean;
|
|
7784
|
-
esmodule?: boolean;
|
|
7785
|
-
ignore?: [string, ...(string)[]];
|
|
7786
|
-
}];
|
|
7787
|
-
// ----- import/no-rename-default -----
|
|
7788
|
-
type ImportNoRenameDefault = [] | [{
|
|
7789
|
-
commonjs?: boolean;
|
|
7790
|
-
preventRenamingBindings?: boolean;
|
|
7791
|
-
}];
|
|
7792
|
-
// ----- import/no-restricted-paths -----
|
|
7793
|
-
type ImportNoRestrictedPaths = [] | [{
|
|
7794
|
-
zones?: [{
|
|
7795
|
-
target?: (string | [string, ...(string)[]]);
|
|
7796
|
-
from?: (string | [string, ...(string)[]]);
|
|
7797
|
-
except?: string[];
|
|
7798
|
-
message?: string;
|
|
7799
|
-
}, ...({
|
|
7800
|
-
target?: (string | [string, ...(string)[]]);
|
|
7801
|
-
from?: (string | [string, ...(string)[]]);
|
|
7802
|
-
except?: string[];
|
|
7803
|
-
message?: string;
|
|
7804
|
-
})[]];
|
|
7805
|
-
basePath?: string;
|
|
7806
|
-
}];
|
|
7807
|
-
// ----- import/no-unassigned-import -----
|
|
7808
|
-
type ImportNoUnassignedImport = [] | [{
|
|
7809
|
-
devDependencies?: (boolean | unknown[]);
|
|
7810
|
-
optionalDependencies?: (boolean | unknown[]);
|
|
7811
|
-
peerDependencies?: (boolean | unknown[]);
|
|
7812
|
-
allow?: string[];
|
|
7813
|
-
}];
|
|
7814
|
-
// ----- import/no-unresolved -----
|
|
7815
|
-
type ImportNoUnresolved = [] | [{
|
|
7816
|
-
commonjs?: boolean;
|
|
7817
|
-
amd?: boolean;
|
|
7818
|
-
esmodule?: boolean;
|
|
7819
|
-
ignore?: [string, ...(string)[]];
|
|
7820
|
-
caseSensitive?: boolean;
|
|
7821
|
-
caseSensitiveStrict?: boolean;
|
|
7822
|
-
}];
|
|
7823
|
-
// ----- import/no-unused-modules -----
|
|
7824
|
-
type ImportNoUnusedModules = [] | [({
|
|
7825
|
-
unusedExports: true;
|
|
7826
|
-
src?: [unknown, ...(unknown)[]];
|
|
7827
|
-
[k: string]: unknown | undefined;
|
|
7828
|
-
} | {
|
|
7829
|
-
missingExports: true;
|
|
7830
|
-
[k: string]: unknown | undefined;
|
|
7831
|
-
})];
|
|
7832
|
-
// ----- import/no-useless-path-segments -----
|
|
7833
|
-
type ImportNoUselessPathSegments = [] | [{
|
|
7834
|
-
commonjs?: boolean;
|
|
7835
|
-
noUselessIndex?: boolean;
|
|
7836
|
-
}];
|
|
7837
|
-
// ----- import/order -----
|
|
7838
|
-
type ImportOrder = [] | [{
|
|
7839
|
-
groups?: unknown[];
|
|
7840
|
-
pathGroupsExcludedImportTypes?: unknown[];
|
|
7841
|
-
distinctGroup?: boolean;
|
|
7842
|
-
pathGroups?: {
|
|
7843
|
-
pattern: string;
|
|
7844
|
-
patternOptions?: {
|
|
7845
|
-
[k: string]: unknown | undefined;
|
|
7846
|
-
};
|
|
7847
|
-
group: ("builtin" | "external" | "internal" | "unknown" | "parent" | "sibling" | "index" | "object" | "type");
|
|
7848
|
-
position?: ("after" | "before");
|
|
7849
|
-
}[];
|
|
7850
|
-
"newlines-between"?: ("ignore" | "always" | "always-and-inside-groups" | "never");
|
|
7851
|
-
"newlines-between-types"?: ("ignore" | "always" | "always-and-inside-groups" | "never");
|
|
7852
|
-
consolidateIslands?: ("inside-groups" | "never");
|
|
7853
|
-
sortTypesGroup?: boolean;
|
|
7854
|
-
named?: (boolean | {
|
|
7855
|
-
enabled?: boolean;
|
|
7856
|
-
import?: boolean;
|
|
7857
|
-
export?: boolean;
|
|
7858
|
-
require?: boolean;
|
|
7859
|
-
cjsExports?: boolean;
|
|
7860
|
-
types?: ("mixed" | "types-first" | "types-last");
|
|
7861
|
-
});
|
|
7862
|
-
alphabetize?: {
|
|
7863
|
-
caseInsensitive?: boolean;
|
|
7864
|
-
order?: ("ignore" | "asc" | "desc");
|
|
7865
|
-
orderImportKind?: ("ignore" | "asc" | "desc");
|
|
7866
|
-
};
|
|
7867
|
-
warnOnUnassignedImports?: boolean;
|
|
7868
|
-
}];
|
|
7869
|
-
// ----- import/prefer-default-export -----
|
|
7870
|
-
type ImportPreferDefaultExport = [] | [{
|
|
7871
|
-
target?: ("single" | "any");
|
|
7872
|
-
}];
|
|
7873
7475
|
// ----- indent -----
|
|
7874
7476
|
type Indent = [] | [("tab" | number)] | [("tab" | number), {
|
|
7875
7477
|
SwitchCase?: number;
|
|
@@ -8055,6 +7657,7 @@ type JsdocLinesBeforeBlock = [] | [{
|
|
|
8055
7657
|
checkBlockStarts?: boolean;
|
|
8056
7658
|
excludedTags?: string[];
|
|
8057
7659
|
ignoreSameLine?: boolean;
|
|
7660
|
+
ignoreSingleLines?: boolean;
|
|
8058
7661
|
lines?: number;
|
|
8059
7662
|
}];
|
|
8060
7663
|
// ----- jsdoc/match-description -----
|
|
@@ -9055,10 +8658,19 @@ type MarkdownNoDuplicateDefinitions = [] | [{
|
|
|
9055
8658
|
allowDefinitions?: string[];
|
|
9056
8659
|
allowFootnoteDefinitions?: string[];
|
|
9057
8660
|
}];
|
|
8661
|
+
// ----- markdown/no-duplicate-headings -----
|
|
8662
|
+
type MarkdownNoDuplicateHeadings = [] | [{
|
|
8663
|
+
checkSiblingsOnly?: boolean;
|
|
8664
|
+
}];
|
|
9058
8665
|
// ----- markdown/no-html -----
|
|
9059
8666
|
type MarkdownNoHtml = [] | [{
|
|
9060
8667
|
allowed?: string[];
|
|
9061
8668
|
}];
|
|
8669
|
+
// ----- markdown/no-missing-link-fragments -----
|
|
8670
|
+
type MarkdownNoMissingLinkFragments = [] | [{
|
|
8671
|
+
ignoreCase?: boolean;
|
|
8672
|
+
allowPattern?: string;
|
|
8673
|
+
}];
|
|
9062
8674
|
// ----- markdown/no-multiple-h1 -----
|
|
9063
8675
|
type MarkdownNoMultipleH1 = [] | [{
|
|
9064
8676
|
frontmatterTitle?: string;
|
|
@@ -9952,7 +9564,7 @@ type PerfectionistSortArrayIncludes = {
|
|
|
9952
9564
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9953
9565
|
groupKind?: ("mixed" | "literals-first" | "spreads-first");
|
|
9954
9566
|
customGroups?: ({
|
|
9955
|
-
newlinesInside?: ("always" | "never");
|
|
9567
|
+
newlinesInside?: (("always" | "never") | number);
|
|
9956
9568
|
fallbackSort?: {
|
|
9957
9569
|
order?: ("asc" | "desc");
|
|
9958
9570
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -9971,7 +9583,7 @@ type PerfectionistSortArrayIncludes = {
|
|
|
9971
9583
|
} | string));
|
|
9972
9584
|
}[];
|
|
9973
9585
|
} | {
|
|
9974
|
-
newlinesInside?: ("always" | "never");
|
|
9586
|
+
newlinesInside?: (("always" | "never") | number);
|
|
9975
9587
|
fallbackSort?: {
|
|
9976
9588
|
order?: ("asc" | "desc");
|
|
9977
9589
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10020,9 +9632,9 @@ type PerfectionistSortArrayIncludes = {
|
|
|
10020
9632
|
} | string)));
|
|
10021
9633
|
});
|
|
10022
9634
|
partitionByNewLine?: boolean;
|
|
10023
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
9635
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10024
9636
|
groups?: (string | string[] | {
|
|
10025
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
9637
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10026
9638
|
commentAbove?: string;
|
|
10027
9639
|
})[];
|
|
10028
9640
|
}[];
|
|
@@ -10039,7 +9651,7 @@ type PerfectionistSortClasses = [] | [{
|
|
|
10039
9651
|
order?: ("asc" | "desc");
|
|
10040
9652
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10041
9653
|
customGroups?: ({
|
|
10042
|
-
newlinesInside?: ("always" | "never");
|
|
9654
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10043
9655
|
fallbackSort?: {
|
|
10044
9656
|
order?: ("asc" | "desc");
|
|
10045
9657
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10073,7 +9685,7 @@ type PerfectionistSortClasses = [] | [{
|
|
|
10073
9685
|
} | string));
|
|
10074
9686
|
}[];
|
|
10075
9687
|
} | {
|
|
10076
|
-
newlinesInside?: ("always" | "never");
|
|
9688
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10077
9689
|
fallbackSort?: {
|
|
10078
9690
|
order?: ("asc" | "desc");
|
|
10079
9691
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10135,9 +9747,9 @@ type PerfectionistSortClasses = [] | [{
|
|
|
10135
9747
|
} | string)));
|
|
10136
9748
|
});
|
|
10137
9749
|
partitionByNewLine?: boolean;
|
|
10138
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
9750
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10139
9751
|
groups?: (string | string[] | {
|
|
10140
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
9752
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10141
9753
|
commentAbove?: string;
|
|
10142
9754
|
})[];
|
|
10143
9755
|
}];
|
|
@@ -10184,7 +9796,7 @@ type PerfectionistSortDecorators = [] | [{
|
|
|
10184
9796
|
[k: string]: (string | string[]) | undefined;
|
|
10185
9797
|
};
|
|
10186
9798
|
groups?: (string | string[] | {
|
|
10187
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
9799
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10188
9800
|
commentAbove?: string;
|
|
10189
9801
|
})[];
|
|
10190
9802
|
}];
|
|
@@ -10203,7 +9815,7 @@ type PerfectionistSortEnums = [] | [{
|
|
|
10203
9815
|
customGroups?: ({
|
|
10204
9816
|
[k: string]: (string | string[]) | undefined;
|
|
10205
9817
|
} | ({
|
|
10206
|
-
newlinesInside?: ("always" | "never");
|
|
9818
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10207
9819
|
fallbackSort?: {
|
|
10208
9820
|
order?: ("asc" | "desc");
|
|
10209
9821
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10228,7 +9840,7 @@ type PerfectionistSortEnums = [] | [{
|
|
|
10228
9840
|
} | string));
|
|
10229
9841
|
}[];
|
|
10230
9842
|
} | {
|
|
10231
|
-
newlinesInside?: ("always" | "never");
|
|
9843
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10232
9844
|
fallbackSort?: {
|
|
10233
9845
|
order?: ("asc" | "desc");
|
|
10234
9846
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10276,9 +9888,9 @@ type PerfectionistSortEnums = [] | [{
|
|
|
10276
9888
|
} | string)));
|
|
10277
9889
|
});
|
|
10278
9890
|
partitionByNewLine?: boolean;
|
|
10279
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
9891
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10280
9892
|
groups?: (string | string[] | {
|
|
10281
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
9893
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10282
9894
|
commentAbove?: string;
|
|
10283
9895
|
})[];
|
|
10284
9896
|
}];
|
|
@@ -10296,7 +9908,7 @@ type PerfectionistSortExports = {
|
|
|
10296
9908
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10297
9909
|
groupKind?: ("mixed" | "values-first" | "types-first");
|
|
10298
9910
|
customGroups?: ({
|
|
10299
|
-
newlinesInside?: ("always" | "never");
|
|
9911
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10300
9912
|
fallbackSort?: {
|
|
10301
9913
|
order?: ("asc" | "desc");
|
|
10302
9914
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10316,7 +9928,7 @@ type PerfectionistSortExports = {
|
|
|
10316
9928
|
} | string));
|
|
10317
9929
|
}[];
|
|
10318
9930
|
} | {
|
|
10319
|
-
newlinesInside?: ("always" | "never");
|
|
9931
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10320
9932
|
fallbackSort?: {
|
|
10321
9933
|
order?: ("asc" | "desc");
|
|
10322
9934
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10357,9 +9969,9 @@ type PerfectionistSortExports = {
|
|
|
10357
9969
|
} | string)));
|
|
10358
9970
|
});
|
|
10359
9971
|
partitionByNewLine?: boolean;
|
|
10360
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
9972
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10361
9973
|
groups?: (string | string[] | {
|
|
10362
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
9974
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10363
9975
|
commentAbove?: string;
|
|
10364
9976
|
})[];
|
|
10365
9977
|
}[];
|
|
@@ -10379,7 +9991,7 @@ type PerfectionistSortHeritageClauses = [] | [{
|
|
|
10379
9991
|
[k: string]: (string | string[]) | undefined;
|
|
10380
9992
|
};
|
|
10381
9993
|
groups?: (string | string[] | {
|
|
10382
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
9994
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10383
9995
|
commentAbove?: string;
|
|
10384
9996
|
})[];
|
|
10385
9997
|
}];
|
|
@@ -10403,7 +10015,7 @@ type PerfectionistSortImports = {
|
|
|
10403
10015
|
[k: string]: (string | string[]) | undefined;
|
|
10404
10016
|
};
|
|
10405
10017
|
} | ({
|
|
10406
|
-
newlinesInside?: ("always" | "never");
|
|
10018
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10407
10019
|
fallbackSort?: {
|
|
10408
10020
|
order?: ("asc" | "desc");
|
|
10409
10021
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10430,7 +10042,7 @@ type PerfectionistSortImports = {
|
|
|
10430
10042
|
} | string));
|
|
10431
10043
|
}[];
|
|
10432
10044
|
} | {
|
|
10433
|
-
newlinesInside?: ("always" | "never");
|
|
10045
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10434
10046
|
fallbackSort?: {
|
|
10435
10047
|
order?: ("asc" | "desc");
|
|
10436
10048
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10486,7 +10098,7 @@ type PerfectionistSortImports = {
|
|
|
10486
10098
|
} | string)));
|
|
10487
10099
|
});
|
|
10488
10100
|
partitionByNewLine?: boolean;
|
|
10489
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10101
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10490
10102
|
internalPattern?: (({
|
|
10491
10103
|
pattern: string;
|
|
10492
10104
|
flags?: string;
|
|
@@ -10495,7 +10107,7 @@ type PerfectionistSortImports = {
|
|
|
10495
10107
|
flags?: string;
|
|
10496
10108
|
} | string));
|
|
10497
10109
|
groups?: (string | string[] | {
|
|
10498
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10110
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10499
10111
|
commentAbove?: string;
|
|
10500
10112
|
})[];
|
|
10501
10113
|
}[];
|
|
@@ -10515,7 +10127,7 @@ type PerfectionistSortInterfaces = {
|
|
|
10515
10127
|
customGroups?: ({
|
|
10516
10128
|
[k: string]: (string | string[]) | undefined;
|
|
10517
10129
|
} | ({
|
|
10518
|
-
newlinesInside?: ("always" | "never");
|
|
10130
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10519
10131
|
fallbackSort?: {
|
|
10520
10132
|
order?: ("asc" | "desc");
|
|
10521
10133
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10544,7 +10156,7 @@ type PerfectionistSortInterfaces = {
|
|
|
10544
10156
|
sortBy?: ("name" | "value");
|
|
10545
10157
|
}[];
|
|
10546
10158
|
} | {
|
|
10547
|
-
newlinesInside?: ("always" | "never");
|
|
10159
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10548
10160
|
fallbackSort?: {
|
|
10549
10161
|
order?: ("asc" | "desc");
|
|
10550
10162
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10611,7 +10223,7 @@ type PerfectionistSortInterfaces = {
|
|
|
10611
10223
|
} | string)));
|
|
10612
10224
|
});
|
|
10613
10225
|
partitionByNewLine?: boolean;
|
|
10614
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10226
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10615
10227
|
ignorePattern?: (({
|
|
10616
10228
|
pattern: string;
|
|
10617
10229
|
flags?: string;
|
|
@@ -10621,7 +10233,7 @@ type PerfectionistSortInterfaces = {
|
|
|
10621
10233
|
} | string));
|
|
10622
10234
|
sortBy?: ("name" | "value");
|
|
10623
10235
|
groups?: (string | string[] | {
|
|
10624
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10236
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10625
10237
|
commentAbove?: string;
|
|
10626
10238
|
})[];
|
|
10627
10239
|
}[];
|
|
@@ -10638,7 +10250,7 @@ type PerfectionistSortIntersectionTypes = {
|
|
|
10638
10250
|
order?: ("asc" | "desc");
|
|
10639
10251
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10640
10252
|
customGroups?: ({
|
|
10641
|
-
newlinesInside?: ("always" | "never");
|
|
10253
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10642
10254
|
fallbackSort?: {
|
|
10643
10255
|
order?: ("asc" | "desc");
|
|
10644
10256
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10657,7 +10269,7 @@ type PerfectionistSortIntersectionTypes = {
|
|
|
10657
10269
|
} | string));
|
|
10658
10270
|
}[];
|
|
10659
10271
|
} | {
|
|
10660
|
-
newlinesInside?: ("always" | "never");
|
|
10272
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10661
10273
|
fallbackSort?: {
|
|
10662
10274
|
order?: ("asc" | "desc");
|
|
10663
10275
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10697,9 +10309,9 @@ type PerfectionistSortIntersectionTypes = {
|
|
|
10697
10309
|
} | string)));
|
|
10698
10310
|
});
|
|
10699
10311
|
partitionByNewLine?: boolean;
|
|
10700
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10312
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10701
10313
|
groups?: (string | string[] | {
|
|
10702
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10314
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10703
10315
|
commentAbove?: string;
|
|
10704
10316
|
})[];
|
|
10705
10317
|
}[];
|
|
@@ -10718,7 +10330,7 @@ type PerfectionistSortJsxProps = {
|
|
|
10718
10330
|
customGroups?: ({
|
|
10719
10331
|
[k: string]: (string | string[]) | undefined;
|
|
10720
10332
|
} | ({
|
|
10721
|
-
newlinesInside?: ("always" | "never");
|
|
10333
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10722
10334
|
fallbackSort?: {
|
|
10723
10335
|
order?: ("asc" | "desc");
|
|
10724
10336
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10745,7 +10357,7 @@ type PerfectionistSortJsxProps = {
|
|
|
10745
10357
|
} | string));
|
|
10746
10358
|
}[];
|
|
10747
10359
|
} | {
|
|
10748
|
-
newlinesInside?: ("always" | "never");
|
|
10360
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10749
10361
|
fallbackSort?: {
|
|
10750
10362
|
order?: ("asc" | "desc");
|
|
10751
10363
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10787,7 +10399,7 @@ type PerfectionistSortJsxProps = {
|
|
|
10787
10399
|
} | string));
|
|
10788
10400
|
};
|
|
10789
10401
|
partitionByNewLine?: boolean;
|
|
10790
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10402
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10791
10403
|
ignorePattern?: (({
|
|
10792
10404
|
pattern: string;
|
|
10793
10405
|
flags?: string;
|
|
@@ -10796,7 +10408,7 @@ type PerfectionistSortJsxProps = {
|
|
|
10796
10408
|
flags?: string;
|
|
10797
10409
|
} | string));
|
|
10798
10410
|
groups?: (string | string[] | {
|
|
10799
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10411
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10800
10412
|
commentAbove?: string;
|
|
10801
10413
|
})[];
|
|
10802
10414
|
}[];
|
|
@@ -10813,7 +10425,7 @@ type PerfectionistSortMaps = {
|
|
|
10813
10425
|
order?: ("asc" | "desc");
|
|
10814
10426
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10815
10427
|
customGroups?: ({
|
|
10816
|
-
newlinesInside?: ("always" | "never");
|
|
10428
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10817
10429
|
fallbackSort?: {
|
|
10818
10430
|
order?: ("asc" | "desc");
|
|
10819
10431
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10831,7 +10443,7 @@ type PerfectionistSortMaps = {
|
|
|
10831
10443
|
} | string));
|
|
10832
10444
|
}[];
|
|
10833
10445
|
} | {
|
|
10834
|
-
newlinesInside?: ("always" | "never");
|
|
10446
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10835
10447
|
fallbackSort?: {
|
|
10836
10448
|
order?: ("asc" | "desc");
|
|
10837
10449
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10879,9 +10491,9 @@ type PerfectionistSortMaps = {
|
|
|
10879
10491
|
} | string)));
|
|
10880
10492
|
});
|
|
10881
10493
|
partitionByNewLine?: boolean;
|
|
10882
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10494
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10883
10495
|
groups?: (string | string[] | {
|
|
10884
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10496
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10885
10497
|
commentAbove?: string;
|
|
10886
10498
|
})[];
|
|
10887
10499
|
}[];
|
|
@@ -10898,7 +10510,7 @@ type PerfectionistSortModules = [] | [{
|
|
|
10898
10510
|
order?: ("asc" | "desc");
|
|
10899
10511
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10900
10512
|
customGroups?: ({
|
|
10901
|
-
newlinesInside?: ("always" | "never");
|
|
10513
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10902
10514
|
fallbackSort?: {
|
|
10903
10515
|
order?: ("asc" | "desc");
|
|
10904
10516
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10925,7 +10537,7 @@ type PerfectionistSortModules = [] | [{
|
|
|
10925
10537
|
} | string));
|
|
10926
10538
|
}[];
|
|
10927
10539
|
} | {
|
|
10928
|
-
newlinesInside?: ("always" | "never");
|
|
10540
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10929
10541
|
fallbackSort?: {
|
|
10930
10542
|
order?: ("asc" | "desc");
|
|
10931
10543
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10973,9 +10585,9 @@ type PerfectionistSortModules = [] | [{
|
|
|
10973
10585
|
} | string)));
|
|
10974
10586
|
});
|
|
10975
10587
|
partitionByNewLine?: boolean;
|
|
10976
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10588
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10977
10589
|
groups?: (string | string[] | {
|
|
10978
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10590
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10979
10591
|
commentAbove?: string;
|
|
10980
10592
|
})[];
|
|
10981
10593
|
}];
|
|
@@ -10994,7 +10606,7 @@ type PerfectionistSortNamedExports = {
|
|
|
10994
10606
|
groupKind?: ("mixed" | "values-first" | "types-first");
|
|
10995
10607
|
ignoreAlias?: boolean;
|
|
10996
10608
|
customGroups?: ({
|
|
10997
|
-
newlinesInside?: ("always" | "never");
|
|
10609
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10998
10610
|
fallbackSort?: {
|
|
10999
10611
|
order?: ("asc" | "desc");
|
|
11000
10612
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -11014,7 +10626,7 @@ type PerfectionistSortNamedExports = {
|
|
|
11014
10626
|
} | string));
|
|
11015
10627
|
}[];
|
|
11016
10628
|
} | {
|
|
11017
|
-
newlinesInside?: ("always" | "never");
|
|
10629
|
+
newlinesInside?: (("always" | "never") | number);
|
|
11018
10630
|
fallbackSort?: {
|
|
11019
10631
|
order?: ("asc" | "desc");
|
|
11020
10632
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -11055,9 +10667,9 @@ type PerfectionistSortNamedExports = {
|
|
|
11055
10667
|
} | string)));
|
|
11056
10668
|
});
|
|
11057
10669
|
partitionByNewLine?: boolean;
|
|
11058
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10670
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11059
10671
|
groups?: (string | string[] | {
|
|
11060
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10672
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11061
10673
|
commentAbove?: string;
|
|
11062
10674
|
})[];
|
|
11063
10675
|
}[];
|
|
@@ -11076,7 +10688,7 @@ type PerfectionistSortNamedImports = {
|
|
|
11076
10688
|
groupKind?: ("mixed" | "values-first" | "types-first");
|
|
11077
10689
|
ignoreAlias?: boolean;
|
|
11078
10690
|
customGroups?: ({
|
|
11079
|
-
newlinesInside?: ("always" | "never");
|
|
10691
|
+
newlinesInside?: (("always" | "never") | number);
|
|
11080
10692
|
fallbackSort?: {
|
|
11081
10693
|
order?: ("asc" | "desc");
|
|
11082
10694
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -11096,7 +10708,7 @@ type PerfectionistSortNamedImports = {
|
|
|
11096
10708
|
} | string));
|
|
11097
10709
|
}[];
|
|
11098
10710
|
} | {
|
|
11099
|
-
newlinesInside?: ("always" | "never");
|
|
10711
|
+
newlinesInside?: (("always" | "never") | number);
|
|
11100
10712
|
fallbackSort?: {
|
|
11101
10713
|
order?: ("asc" | "desc");
|
|
11102
10714
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -11137,9 +10749,9 @@ type PerfectionistSortNamedImports = {
|
|
|
11137
10749
|
} | string)));
|
|
11138
10750
|
});
|
|
11139
10751
|
partitionByNewLine?: boolean;
|
|
11140
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10752
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11141
10753
|
groups?: (string | string[] | {
|
|
11142
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10754
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11143
10755
|
commentAbove?: string;
|
|
11144
10756
|
})[];
|
|
11145
10757
|
}[];
|
|
@@ -11159,7 +10771,7 @@ type PerfectionistSortObjectTypes = {
|
|
|
11159
10771
|
customGroups?: ({
|
|
11160
10772
|
[k: string]: (string | string[]) | undefined;
|
|
11161
10773
|
} | ({
|
|
11162
|
-
newlinesInside?: ("always" | "never");
|
|
10774
|
+
newlinesInside?: (("always" | "never") | number);
|
|
11163
10775
|
fallbackSort?: {
|
|
11164
10776
|
order?: ("asc" | "desc");
|
|
11165
10777
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -11188,7 +10800,7 @@ type PerfectionistSortObjectTypes = {
|
|
|
11188
10800
|
sortBy?: ("name" | "value");
|
|
11189
10801
|
}[];
|
|
11190
10802
|
} | {
|
|
11191
|
-
newlinesInside?: ("always" | "never");
|
|
10803
|
+
newlinesInside?: (("always" | "never") | number);
|
|
11192
10804
|
fallbackSort?: {
|
|
11193
10805
|
order?: ("asc" | "desc");
|
|
11194
10806
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -11255,7 +10867,7 @@ type PerfectionistSortObjectTypes = {
|
|
|
11255
10867
|
} | string)));
|
|
11256
10868
|
});
|
|
11257
10869
|
partitionByNewLine?: boolean;
|
|
11258
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10870
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11259
10871
|
ignorePattern?: (({
|
|
11260
10872
|
pattern: string;
|
|
11261
10873
|
flags?: string;
|
|
@@ -11265,7 +10877,7 @@ type PerfectionistSortObjectTypes = {
|
|
|
11265
10877
|
} | string));
|
|
11266
10878
|
sortBy?: ("name" | "value");
|
|
11267
10879
|
groups?: (string | string[] | {
|
|
11268
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10880
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11269
10881
|
commentAbove?: string;
|
|
11270
10882
|
})[];
|
|
11271
10883
|
}[];
|
|
@@ -11287,7 +10899,7 @@ type PerfectionistSortObjects = {
|
|
|
11287
10899
|
customGroups?: ({
|
|
11288
10900
|
[k: string]: (string | string[]) | undefined;
|
|
11289
10901
|
} | ({
|
|
11290
|
-
newlinesInside?: ("always" | "never");
|
|
10902
|
+
newlinesInside?: (("always" | "never") | number);
|
|
11291
10903
|
fallbackSort?: {
|
|
11292
10904
|
order?: ("asc" | "desc");
|
|
11293
10905
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -11314,7 +10926,7 @@ type PerfectionistSortObjects = {
|
|
|
11314
10926
|
} | string));
|
|
11315
10927
|
}[];
|
|
11316
10928
|
} | {
|
|
11317
|
-
newlinesInside?: ("always" | "never");
|
|
10929
|
+
newlinesInside?: (("always" | "never") | number);
|
|
11318
10930
|
fallbackSort?: {
|
|
11319
10931
|
order?: ("asc" | "desc");
|
|
11320
10932
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -11381,7 +10993,7 @@ type PerfectionistSortObjects = {
|
|
|
11381
10993
|
} | string)));
|
|
11382
10994
|
});
|
|
11383
10995
|
partitionByNewLine?: boolean;
|
|
11384
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10996
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11385
10997
|
ignorePattern?: (({
|
|
11386
10998
|
pattern: string;
|
|
11387
10999
|
flags?: string;
|
|
@@ -11390,7 +11002,7 @@ type PerfectionistSortObjects = {
|
|
|
11390
11002
|
flags?: string;
|
|
11391
11003
|
} | string));
|
|
11392
11004
|
groups?: (string | string[] | {
|
|
11393
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
11005
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11394
11006
|
commentAbove?: string;
|
|
11395
11007
|
})[];
|
|
11396
11008
|
}[];
|
|
@@ -11408,7 +11020,7 @@ type PerfectionistSortSets = {
|
|
|
11408
11020
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11409
11021
|
groupKind?: ("mixed" | "literals-first" | "spreads-first");
|
|
11410
11022
|
customGroups?: ({
|
|
11411
|
-
newlinesInside?: ("always" | "never");
|
|
11023
|
+
newlinesInside?: (("always" | "never") | number);
|
|
11412
11024
|
fallbackSort?: {
|
|
11413
11025
|
order?: ("asc" | "desc");
|
|
11414
11026
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -11427,7 +11039,7 @@ type PerfectionistSortSets = {
|
|
|
11427
11039
|
} | string));
|
|
11428
11040
|
}[];
|
|
11429
11041
|
} | {
|
|
11430
|
-
newlinesInside?: ("always" | "never");
|
|
11042
|
+
newlinesInside?: (("always" | "never") | number);
|
|
11431
11043
|
fallbackSort?: {
|
|
11432
11044
|
order?: ("asc" | "desc");
|
|
11433
11045
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -11476,9 +11088,9 @@ type PerfectionistSortSets = {
|
|
|
11476
11088
|
} | string)));
|
|
11477
11089
|
});
|
|
11478
11090
|
partitionByNewLine?: boolean;
|
|
11479
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
11091
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11480
11092
|
groups?: (string | string[] | {
|
|
11481
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
11093
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11482
11094
|
commentAbove?: string;
|
|
11483
11095
|
})[];
|
|
11484
11096
|
}[];
|
|
@@ -11508,7 +11120,7 @@ type PerfectionistSortUnionTypes = {
|
|
|
11508
11120
|
order?: ("asc" | "desc");
|
|
11509
11121
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11510
11122
|
customGroups?: ({
|
|
11511
|
-
newlinesInside?: ("always" | "never");
|
|
11123
|
+
newlinesInside?: (("always" | "never") | number);
|
|
11512
11124
|
fallbackSort?: {
|
|
11513
11125
|
order?: ("asc" | "desc");
|
|
11514
11126
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -11527,7 +11139,7 @@ type PerfectionistSortUnionTypes = {
|
|
|
11527
11139
|
} | string));
|
|
11528
11140
|
}[];
|
|
11529
11141
|
} | {
|
|
11530
|
-
newlinesInside?: ("always" | "never");
|
|
11142
|
+
newlinesInside?: (("always" | "never") | number);
|
|
11531
11143
|
fallbackSort?: {
|
|
11532
11144
|
order?: ("asc" | "desc");
|
|
11533
11145
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -11567,9 +11179,9 @@ type PerfectionistSortUnionTypes = {
|
|
|
11567
11179
|
} | string)));
|
|
11568
11180
|
});
|
|
11569
11181
|
partitionByNewLine?: boolean;
|
|
11570
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
11182
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11571
11183
|
groups?: (string | string[] | {
|
|
11572
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
11184
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11573
11185
|
commentAbove?: string;
|
|
11574
11186
|
})[];
|
|
11575
11187
|
}[];
|
|
@@ -11586,7 +11198,7 @@ type PerfectionistSortVariableDeclarations = [] | [{
|
|
|
11586
11198
|
order?: ("asc" | "desc");
|
|
11587
11199
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11588
11200
|
customGroups?: ({
|
|
11589
|
-
newlinesInside?: ("always" | "never");
|
|
11201
|
+
newlinesInside?: (("always" | "never") | number);
|
|
11590
11202
|
fallbackSort?: {
|
|
11591
11203
|
order?: ("asc" | "desc");
|
|
11592
11204
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -11605,7 +11217,7 @@ type PerfectionistSortVariableDeclarations = [] | [{
|
|
|
11605
11217
|
} | string));
|
|
11606
11218
|
}[];
|
|
11607
11219
|
} | {
|
|
11608
|
-
newlinesInside?: ("always" | "never");
|
|
11220
|
+
newlinesInside?: (("always" | "never") | number);
|
|
11609
11221
|
fallbackSort?: {
|
|
11610
11222
|
order?: ("asc" | "desc");
|
|
11611
11223
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -11645,9 +11257,9 @@ type PerfectionistSortVariableDeclarations = [] | [{
|
|
|
11645
11257
|
} | string)));
|
|
11646
11258
|
});
|
|
11647
11259
|
partitionByNewLine?: boolean;
|
|
11648
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
11260
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11649
11261
|
groups?: (string | string[] | {
|
|
11650
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
11262
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11651
11263
|
commentAbove?: string;
|
|
11652
11264
|
})[];
|
|
11653
11265
|
}];
|
|
@@ -12132,16 +11744,6 @@ type StyleCurlyNewline = [] | [(("always" | "never") | {
|
|
|
12132
11744
|
minElements?: number;
|
|
12133
11745
|
consistent?: boolean;
|
|
12134
11746
|
});
|
|
12135
|
-
TSEnumBody?: (("always" | "never") | {
|
|
12136
|
-
multiline?: boolean;
|
|
12137
|
-
minElements?: number;
|
|
12138
|
-
consistent?: boolean;
|
|
12139
|
-
});
|
|
12140
|
-
TSInterfaceBody?: (("always" | "never") | {
|
|
12141
|
-
multiline?: boolean;
|
|
12142
|
-
minElements?: number;
|
|
12143
|
-
consistent?: boolean;
|
|
12144
|
-
});
|
|
12145
11747
|
TSModuleBlock?: (("always" | "never") | {
|
|
12146
11748
|
multiline?: boolean;
|
|
12147
11749
|
minElements?: number;
|
|
@@ -12155,14 +11757,6 @@ type StyleCurlyNewline = [] | [(("always" | "never") | {
|
|
|
12155
11757
|
type StyleDotLocation = [] | [("object" | "property")];
|
|
12156
11758
|
// ----- style/eol-last -----
|
|
12157
11759
|
type StyleEolLast = [] | [("always" | "never" | "unix" | "windows")];
|
|
12158
|
-
// ----- style/func-call-spacing -----
|
|
12159
|
-
type StyleFuncCallSpacing = ([] | ["never"] | [] | ["always"] | ["always", {
|
|
12160
|
-
allowNewlines?: boolean;
|
|
12161
|
-
optionalChain?: {
|
|
12162
|
-
before?: boolean;
|
|
12163
|
-
after?: boolean;
|
|
12164
|
-
};
|
|
12165
|
-
}]);
|
|
12166
11760
|
// ----- style/function-call-argument-newline -----
|
|
12167
11761
|
type StyleFunctionCallArgumentNewline = [] | [("always" | "never" | "consistent")];
|
|
12168
11762
|
// ----- style/function-call-spacing -----
|
|
@@ -12203,6 +11797,7 @@ type StyleIndent = [] | [("tab" | number)] | [("tab" | number), {
|
|
|
12203
11797
|
var?: (number | ("first" | "off"));
|
|
12204
11798
|
let?: (number | ("first" | "off"));
|
|
12205
11799
|
const?: (number | ("first" | "off"));
|
|
11800
|
+
using?: (number | ("first" | "off"));
|
|
12206
11801
|
});
|
|
12207
11802
|
outerIIFEBody?: (number | "off");
|
|
12208
11803
|
MemberExpression?: (number | "off");
|
|
@@ -12337,8 +11932,8 @@ type StyleJsxSortProps = [] | [{
|
|
|
12337
11932
|
multiline?: ("ignore" | "first" | "last");
|
|
12338
11933
|
ignoreCase?: boolean;
|
|
12339
11934
|
noSortAlphabetically?: boolean;
|
|
12340
|
-
reservedFirst?: (
|
|
12341
|
-
reservedLast?:
|
|
11935
|
+
reservedFirst?: (string[] | boolean);
|
|
11936
|
+
reservedLast?: string[];
|
|
12342
11937
|
locale?: string;
|
|
12343
11938
|
}];
|
|
12344
11939
|
// ----- style/jsx-tag-spacing -----
|
|
@@ -12683,6 +12278,10 @@ type StyleKeywordSpacing = [] | [{
|
|
|
12683
12278
|
before?: boolean;
|
|
12684
12279
|
after?: boolean;
|
|
12685
12280
|
};
|
|
12281
|
+
using?: {
|
|
12282
|
+
before?: boolean;
|
|
12283
|
+
after?: boolean;
|
|
12284
|
+
};
|
|
12686
12285
|
yield?: {
|
|
12687
12286
|
before?: boolean;
|
|
12688
12287
|
after?: boolean;
|
|
@@ -12885,6 +12484,11 @@ type StyleNoExtraParens = ([] | ["functions"] | [] | ["all"] | ["all", {
|
|
|
12885
12484
|
enforceForFunctionPrototypeMethods?: boolean;
|
|
12886
12485
|
allowParensAfterCommentPattern?: string;
|
|
12887
12486
|
nestedConditionalExpressions?: boolean;
|
|
12487
|
+
allowNodesInSpreadElement?: {
|
|
12488
|
+
ConditionalExpression?: boolean;
|
|
12489
|
+
LogicalExpression?: boolean;
|
|
12490
|
+
AwaitExpression?: boolean;
|
|
12491
|
+
};
|
|
12888
12492
|
}]);
|
|
12889
12493
|
// ----- style/no-mixed-operators -----
|
|
12890
12494
|
type StyleNoMixedOperators = [] | [{
|
|
@@ -12962,6 +12566,11 @@ type StyleObjectCurlyNewline = [] | [((("always" | "never") | {
|
|
|
12962
12566
|
minProperties?: number;
|
|
12963
12567
|
consistent?: boolean;
|
|
12964
12568
|
});
|
|
12569
|
+
TSEnumBody?: (("always" | "never") | {
|
|
12570
|
+
multiline?: boolean;
|
|
12571
|
+
minProperties?: number;
|
|
12572
|
+
consistent?: boolean;
|
|
12573
|
+
});
|
|
12965
12574
|
})];
|
|
12966
12575
|
// ----- style/object-curly-spacing -----
|
|
12967
12576
|
type StyleObjectCurlySpacing = [] | [("always" | "never")] | [("always" | "never"), {
|
|
@@ -12971,7 +12580,6 @@ type StyleObjectCurlySpacing = [] | [("always" | "never")] | [("always" | "never
|
|
|
12971
12580
|
// ----- style/object-property-newline -----
|
|
12972
12581
|
type StyleObjectPropertyNewline = [] | [{
|
|
12973
12582
|
allowAllPropertiesOnSameLine?: boolean;
|
|
12974
|
-
allowMultiplePropertiesPerLine?: boolean;
|
|
12975
12583
|
}];
|
|
12976
12584
|
// ----- style/one-var-declaration-per-line -----
|
|
12977
12585
|
type StyleOneVarDeclarationPerLine = [] | [("always" | "initializations")];
|
|
@@ -12995,7 +12603,7 @@ type StylePaddedBlocks = [] | [(("always" | "never" | "start" | "end") | {
|
|
|
12995
12603
|
}];
|
|
12996
12604
|
// ----- style/padding-line-between-statements -----
|
|
12997
12605
|
type _StylePaddingLineBetweenStatementsPaddingType = ("any" | "never" | "always");
|
|
12998
|
-
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"))[]]);
|
|
12999
12607
|
type StylePaddingLineBetweenStatements = {
|
|
13000
12608
|
blankLine: _StylePaddingLineBetweenStatementsPaddingType;
|
|
13001
12609
|
prev: _StylePaddingLineBetweenStatementsStatementType;
|
|
@@ -13034,12 +12642,14 @@ type StyleSpaceBeforeBlocks = [] | [(("always" | "never") | {
|
|
|
13034
12642
|
keywords?: ("always" | "never" | "off");
|
|
13035
12643
|
functions?: ("always" | "never" | "off");
|
|
13036
12644
|
classes?: ("always" | "never" | "off");
|
|
12645
|
+
modules?: ("always" | "never" | "off");
|
|
13037
12646
|
})];
|
|
13038
12647
|
// ----- style/space-before-function-paren -----
|
|
13039
12648
|
type StyleSpaceBeforeFunctionParen = [] | [(("always" | "never") | {
|
|
13040
12649
|
anonymous?: ("always" | "never" | "ignore");
|
|
13041
12650
|
named?: ("always" | "never" | "ignore");
|
|
13042
12651
|
asyncArrow?: ("always" | "never" | "ignore");
|
|
12652
|
+
catch?: ("always" | "never" | "ignore");
|
|
13043
12653
|
})];
|
|
13044
12654
|
// ----- style/space-in-parens -----
|
|
13045
12655
|
type StyleSpaceInParens = [] | [("always" | "never")] | [("always" | "never"), {
|
|
@@ -13126,6 +12736,10 @@ type TestConsistentTestIt = [] | [{
|
|
|
13126
12736
|
fn?: ("test" | "it");
|
|
13127
12737
|
withinDescribe?: ("test" | "it");
|
|
13128
12738
|
}];
|
|
12739
|
+
// ----- test/consistent-vitest-vi -----
|
|
12740
|
+
type TestConsistentVitestVi = [] | [{
|
|
12741
|
+
fn?: ("vi" | "vitest");
|
|
12742
|
+
}];
|
|
13129
12743
|
// ----- test/expect-expect -----
|
|
13130
12744
|
type TestExpectExpect = [] | [{
|
|
13131
12745
|
assertFunctionNames?: string[];
|
|
@@ -16276,6 +15890,11 @@ interface OptionsConfig extends OptionsComponentExts, OptionsProjectType {
|
|
|
16276
15890
|
* @default true
|
|
16277
15891
|
*/
|
|
16278
15892
|
unicorn?: boolean | OptionsUnicorn;
|
|
15893
|
+
/**
|
|
15894
|
+
* eslint-plugin-import-lite 的选项.
|
|
15895
|
+
* @default true
|
|
15896
|
+
*/
|
|
15897
|
+
imports?: boolean;
|
|
16279
15898
|
/**
|
|
16280
15899
|
* 启用 test 支持.
|
|
16281
15900
|
*
|
|
@@ -16419,7 +16038,7 @@ declare const defaultPluginRenaming: {
|
|
|
16419
16038
|
'@eslint-react/naming-convention': string;
|
|
16420
16039
|
'@stylistic': string;
|
|
16421
16040
|
'@typescript-eslint': string;
|
|
16422
|
-
'import-
|
|
16041
|
+
'import-lite': string;
|
|
16423
16042
|
n: string;
|
|
16424
16043
|
vitest: string;
|
|
16425
16044
|
yml: string;
|