@coderwyd/eslint-config 4.3.0 → 4.4.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/dist/cli.js +12 -12
- package/dist/dist-DYrxmIwK.js +1887 -0
- package/dist/index.d.ts +188 -517
- package/dist/index.js +116 -117
- package/package.json +21 -23
package/dist/index.d.ts
CHANGED
|
@@ -388,235 +388,39 @@ interface RuleOptions {
|
|
|
388
388
|
'implicit-arrow-linebreak'?: Linter.RuleEntry<ImplicitArrowLinebreak>;
|
|
389
389
|
/**
|
|
390
390
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
391
|
-
* @see https://github.com/
|
|
391
|
+
* @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/consistent-type-specifier-style/README.md
|
|
392
392
|
*/
|
|
393
393
|
'import/consistent-type-specifier-style'?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>;
|
|
394
|
-
/**
|
|
395
|
-
* Ensure a default export is present, given a default import.
|
|
396
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.13.3/docs/rules/default.md
|
|
397
|
-
*/
|
|
398
|
-
'import/default'?: Linter.RuleEntry<[]>;
|
|
399
|
-
/**
|
|
400
|
-
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
401
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.13.3/docs/rules/dynamic-import-chunkname.md
|
|
402
|
-
*/
|
|
403
|
-
'import/dynamic-import-chunkname'?: Linter.RuleEntry<ImportDynamicImportChunkname>;
|
|
404
|
-
/**
|
|
405
|
-
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
406
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.13.3/docs/rules/export.md
|
|
407
|
-
*/
|
|
408
|
-
'import/export'?: Linter.RuleEntry<[]>;
|
|
409
|
-
/**
|
|
410
|
-
* Ensure all exports appear after other statements.
|
|
411
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.13.3/docs/rules/exports-last.md
|
|
412
|
-
*/
|
|
413
|
-
'import/exports-last'?: Linter.RuleEntry<[]>;
|
|
414
|
-
/**
|
|
415
|
-
* Ensure consistent use of file extension within the import path.
|
|
416
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.13.3/docs/rules/extensions.md
|
|
417
|
-
*/
|
|
418
|
-
'import/extensions'?: Linter.RuleEntry<ImportExtensions>;
|
|
419
394
|
/**
|
|
420
395
|
* Ensure all imports appear before other statements.
|
|
421
|
-
* @see https://github.com/
|
|
396
|
+
* @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/first/README.md
|
|
422
397
|
*/
|
|
423
398
|
'import/first'?: Linter.RuleEntry<ImportFirst>;
|
|
424
|
-
/**
|
|
425
|
-
* Prefer named exports to be grouped together in a single export declaration.
|
|
426
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.13.3/docs/rules/group-exports.md
|
|
427
|
-
*/
|
|
428
|
-
'import/group-exports'?: Linter.RuleEntry<[]>;
|
|
429
|
-
/**
|
|
430
|
-
* Replaced by `import-x/first`.
|
|
431
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.13.3/docs/rules/imports-first.md
|
|
432
|
-
* @deprecated
|
|
433
|
-
*/
|
|
434
|
-
'import/imports-first'?: Linter.RuleEntry<ImportImportsFirst>;
|
|
435
|
-
/**
|
|
436
|
-
* Enforce the maximum number of dependencies a module can have.
|
|
437
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.13.3/docs/rules/max-dependencies.md
|
|
438
|
-
*/
|
|
439
|
-
'import/max-dependencies'?: Linter.RuleEntry<ImportMaxDependencies>;
|
|
440
|
-
/**
|
|
441
|
-
* Ensure named imports correspond to a named export in the remote file.
|
|
442
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.13.3/docs/rules/named.md
|
|
443
|
-
*/
|
|
444
|
-
'import/named'?: Linter.RuleEntry<ImportNamed>;
|
|
445
|
-
/**
|
|
446
|
-
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
447
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.13.3/docs/rules/namespace.md
|
|
448
|
-
*/
|
|
449
|
-
'import/namespace'?: Linter.RuleEntry<ImportNamespace>;
|
|
450
399
|
/**
|
|
451
400
|
* Enforce a newline after import statements.
|
|
452
|
-
* @see https://github.com/
|
|
401
|
+
* @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/newline-after-import/README.md
|
|
453
402
|
*/
|
|
454
403
|
'import/newline-after-import'?: Linter.RuleEntry<ImportNewlineAfterImport>;
|
|
455
|
-
/**
|
|
456
|
-
* Forbid import of modules using absolute paths.
|
|
457
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.13.3/docs/rules/no-absolute-path.md
|
|
458
|
-
*/
|
|
459
|
-
'import/no-absolute-path'?: Linter.RuleEntry<ImportNoAbsolutePath>;
|
|
460
|
-
/**
|
|
461
|
-
* Forbid AMD `require` and `define` calls.
|
|
462
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.13.3/docs/rules/no-amd.md
|
|
463
|
-
*/
|
|
464
|
-
'import/no-amd'?: Linter.RuleEntry<[]>;
|
|
465
|
-
/**
|
|
466
|
-
* Forbid anonymous values as default exports.
|
|
467
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.13.3/docs/rules/no-anonymous-default-export.md
|
|
468
|
-
*/
|
|
469
|
-
'import/no-anonymous-default-export'?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>;
|
|
470
|
-
/**
|
|
471
|
-
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
472
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.13.3/docs/rules/no-commonjs.md
|
|
473
|
-
*/
|
|
474
|
-
'import/no-commonjs'?: Linter.RuleEntry<ImportNoCommonjs>;
|
|
475
|
-
/**
|
|
476
|
-
* Forbid a module from importing a module with a dependency path back to itself.
|
|
477
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.13.3/docs/rules/no-cycle.md
|
|
478
|
-
*/
|
|
479
|
-
'import/no-cycle'?: Linter.RuleEntry<ImportNoCycle>;
|
|
480
404
|
/**
|
|
481
405
|
* Forbid default exports.
|
|
482
|
-
* @see https://github.com/
|
|
406
|
+
* @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/no-default-export/README.md
|
|
483
407
|
*/
|
|
484
408
|
'import/no-default-export'?: Linter.RuleEntry<[]>;
|
|
485
|
-
/**
|
|
486
|
-
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
487
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.13.3/docs/rules/no-deprecated.md
|
|
488
|
-
*/
|
|
489
|
-
'import/no-deprecated'?: Linter.RuleEntry<[]>;
|
|
490
409
|
/**
|
|
491
410
|
* Forbid repeated import of the same module in multiple places.
|
|
492
|
-
* @see https://github.com/
|
|
411
|
+
* @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/no-duplicates/README.md
|
|
493
412
|
*/
|
|
494
413
|
'import/no-duplicates'?: Linter.RuleEntry<ImportNoDuplicates>;
|
|
495
|
-
/**
|
|
496
|
-
* Forbid `require()` calls with expressions.
|
|
497
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.13.3/docs/rules/no-dynamic-require.md
|
|
498
|
-
*/
|
|
499
|
-
'import/no-dynamic-require'?: Linter.RuleEntry<ImportNoDynamicRequire>;
|
|
500
|
-
/**
|
|
501
|
-
* Forbid empty named import blocks.
|
|
502
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.13.3/docs/rules/no-empty-named-blocks.md
|
|
503
|
-
*/
|
|
504
|
-
'import/no-empty-named-blocks'?: Linter.RuleEntry<[]>;
|
|
505
|
-
/**
|
|
506
|
-
* Forbid the use of extraneous packages.
|
|
507
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.13.3/docs/rules/no-extraneous-dependencies.md
|
|
508
|
-
*/
|
|
509
|
-
'import/no-extraneous-dependencies'?: Linter.RuleEntry<ImportNoExtraneousDependencies>;
|
|
510
|
-
/**
|
|
511
|
-
* Forbid import statements with CommonJS module.exports.
|
|
512
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.13.3/docs/rules/no-import-module-exports.md
|
|
513
|
-
*/
|
|
514
|
-
'import/no-import-module-exports'?: Linter.RuleEntry<ImportNoImportModuleExports>;
|
|
515
|
-
/**
|
|
516
|
-
* Forbid importing the submodules of other modules.
|
|
517
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.13.3/docs/rules/no-internal-modules.md
|
|
518
|
-
*/
|
|
519
|
-
'import/no-internal-modules'?: Linter.RuleEntry<ImportNoInternalModules>;
|
|
520
414
|
/**
|
|
521
415
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
522
|
-
* @see https://github.com/
|
|
416
|
+
* @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/no-mutable-exports/README.md
|
|
523
417
|
*/
|
|
524
418
|
'import/no-mutable-exports'?: Linter.RuleEntry<[]>;
|
|
525
|
-
/**
|
|
526
|
-
* Forbid use of exported name as identifier of default export.
|
|
527
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.13.3/docs/rules/no-named-as-default.md
|
|
528
|
-
*/
|
|
529
|
-
'import/no-named-as-default'?: Linter.RuleEntry<[]>;
|
|
530
|
-
/**
|
|
531
|
-
* Forbid use of exported name as property of default export.
|
|
532
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.13.3/docs/rules/no-named-as-default-member.md
|
|
533
|
-
*/
|
|
534
|
-
'import/no-named-as-default-member'?: Linter.RuleEntry<[]>;
|
|
535
419
|
/**
|
|
536
420
|
* Forbid named default exports.
|
|
537
|
-
* @see https://github.com/
|
|
421
|
+
* @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/no-named-default/README.md
|
|
538
422
|
*/
|
|
539
423
|
'import/no-named-default'?: Linter.RuleEntry<[]>;
|
|
540
|
-
/**
|
|
541
|
-
* Forbid named exports.
|
|
542
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.13.3/docs/rules/no-named-export.md
|
|
543
|
-
*/
|
|
544
|
-
'import/no-named-export'?: Linter.RuleEntry<[]>;
|
|
545
|
-
/**
|
|
546
|
-
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
547
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.13.3/docs/rules/no-namespace.md
|
|
548
|
-
*/
|
|
549
|
-
'import/no-namespace'?: Linter.RuleEntry<ImportNoNamespace>;
|
|
550
|
-
/**
|
|
551
|
-
* Forbid Node.js builtin modules.
|
|
552
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.13.3/docs/rules/no-nodejs-modules.md
|
|
553
|
-
*/
|
|
554
|
-
'import/no-nodejs-modules'?: Linter.RuleEntry<ImportNoNodejsModules>;
|
|
555
|
-
/**
|
|
556
|
-
* Forbid importing packages through relative paths.
|
|
557
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.13.3/docs/rules/no-relative-packages.md
|
|
558
|
-
*/
|
|
559
|
-
'import/no-relative-packages'?: Linter.RuleEntry<ImportNoRelativePackages>;
|
|
560
|
-
/**
|
|
561
|
-
* Forbid importing modules from parent directories.
|
|
562
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.13.3/docs/rules/no-relative-parent-imports.md
|
|
563
|
-
*/
|
|
564
|
-
'import/no-relative-parent-imports'?: Linter.RuleEntry<ImportNoRelativeParentImports>;
|
|
565
|
-
/**
|
|
566
|
-
* Forbid importing a default export by a different name.
|
|
567
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.13.3/docs/rules/no-rename-default.md
|
|
568
|
-
*/
|
|
569
|
-
'import/no-rename-default'?: Linter.RuleEntry<ImportNoRenameDefault>;
|
|
570
|
-
/**
|
|
571
|
-
* Enforce which files can be imported in a given folder.
|
|
572
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.13.3/docs/rules/no-restricted-paths.md
|
|
573
|
-
*/
|
|
574
|
-
'import/no-restricted-paths'?: Linter.RuleEntry<ImportNoRestrictedPaths>;
|
|
575
|
-
/**
|
|
576
|
-
* Forbid a module from importing itself.
|
|
577
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.13.3/docs/rules/no-self-import.md
|
|
578
|
-
*/
|
|
579
|
-
'import/no-self-import'?: Linter.RuleEntry<[]>;
|
|
580
|
-
/**
|
|
581
|
-
* Forbid unassigned imports.
|
|
582
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.13.3/docs/rules/no-unassigned-import.md
|
|
583
|
-
*/
|
|
584
|
-
'import/no-unassigned-import'?: Linter.RuleEntry<ImportNoUnassignedImport>;
|
|
585
|
-
/**
|
|
586
|
-
* Ensure imports point to a file/module that can be resolved.
|
|
587
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.13.3/docs/rules/no-unresolved.md
|
|
588
|
-
*/
|
|
589
|
-
'import/no-unresolved'?: Linter.RuleEntry<ImportNoUnresolved>;
|
|
590
|
-
/**
|
|
591
|
-
* Forbid modules without exports, or exports without matching import in another module.
|
|
592
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.13.3/docs/rules/no-unused-modules.md
|
|
593
|
-
*/
|
|
594
|
-
'import/no-unused-modules'?: Linter.RuleEntry<ImportNoUnusedModules>;
|
|
595
|
-
/**
|
|
596
|
-
* Forbid unnecessary path segments in import and require statements.
|
|
597
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.13.3/docs/rules/no-useless-path-segments.md
|
|
598
|
-
*/
|
|
599
|
-
'import/no-useless-path-segments'?: Linter.RuleEntry<ImportNoUselessPathSegments>;
|
|
600
|
-
/**
|
|
601
|
-
* Forbid webpack loader syntax in imports.
|
|
602
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.13.3/docs/rules/no-webpack-loader-syntax.md
|
|
603
|
-
*/
|
|
604
|
-
'import/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>;
|
|
605
|
-
/**
|
|
606
|
-
* Enforce a convention in module import order.
|
|
607
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.13.3/docs/rules/order.md
|
|
608
|
-
*/
|
|
609
|
-
'import/order'?: Linter.RuleEntry<ImportOrder>;
|
|
610
|
-
/**
|
|
611
|
-
* Prefer a default export if module exports a single name or multiple names.
|
|
612
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.13.3/docs/rules/prefer-default-export.md
|
|
613
|
-
*/
|
|
614
|
-
'import/prefer-default-export'?: Linter.RuleEntry<ImportPreferDefaultExport>;
|
|
615
|
-
/**
|
|
616
|
-
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
617
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.13.3/docs/rules/unambiguous.md
|
|
618
|
-
*/
|
|
619
|
-
'import/unambiguous'?: Linter.RuleEntry<[]>;
|
|
620
424
|
/**
|
|
621
425
|
* Enforce consistent indentation
|
|
622
426
|
* @see https://eslint.org/docs/latest/rules/indent
|
|
@@ -2197,6 +2001,11 @@ interface RuleOptions {
|
|
|
2197
2001
|
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-sync.md
|
|
2198
2002
|
*/
|
|
2199
2003
|
'node/no-sync'?: Linter.RuleEntry<NodeNoSync>;
|
|
2004
|
+
/**
|
|
2005
|
+
* disallow top-level `await` in published modules
|
|
2006
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-top-level-await.md
|
|
2007
|
+
*/
|
|
2008
|
+
'node/no-top-level-await'?: Linter.RuleEntry<NodeNoTopLevelAwait>;
|
|
2200
2009
|
/**
|
|
2201
2010
|
* disallow `bin` files that npm ignores
|
|
2202
2011
|
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-unpublished-bin.md
|
|
@@ -2539,10 +2348,6 @@ interface RuleOptions {
|
|
|
2539
2348
|
* @see https://eslint.org/docs/latest/rules/radix
|
|
2540
2349
|
*/
|
|
2541
2350
|
'radix'?: Linter.RuleEntry<Radix>;
|
|
2542
|
-
/**
|
|
2543
|
-
* Surfaces diagnostics from React Forget
|
|
2544
|
-
*/
|
|
2545
|
-
'react-compiler/react-compiler'?: Linter.RuleEntry<ReactCompilerReactCompiler>;
|
|
2546
2351
|
/**
|
|
2547
2352
|
* Disallow `children` in void DOM elements.
|
|
2548
2353
|
* @see https://eslint-react.xyz/docs/rules/dom-no-void-elements-with-children
|
|
@@ -2688,6 +2493,10 @@ interface RuleOptions {
|
|
|
2688
2493
|
* @see https://github.com/facebook/react/issues/14920
|
|
2689
2494
|
*/
|
|
2690
2495
|
'react-hooks/exhaustive-deps'?: Linter.RuleEntry<ReactHooksExhaustiveDeps>;
|
|
2496
|
+
/**
|
|
2497
|
+
* Surfaces diagnostics from React Forget
|
|
2498
|
+
*/
|
|
2499
|
+
'react-hooks/react-compiler'?: Linter.RuleEntry<ReactHooksReactCompiler>;
|
|
2691
2500
|
/**
|
|
2692
2501
|
* enforces the Rules of Hooks
|
|
2693
2502
|
* @see https://reactjs.org/docs/hooks-rules.html
|
|
@@ -2764,6 +2573,11 @@ interface RuleOptions {
|
|
|
2764
2573
|
* @see https://eslint-react.xyz/docs/rules/jsx-no-duplicate-props
|
|
2765
2574
|
*/
|
|
2766
2575
|
'react/jsx-no-duplicate-props'?: Linter.RuleEntry<[]>;
|
|
2576
|
+
/**
|
|
2577
|
+
* Disallows 'IIFE' in JSX elements.
|
|
2578
|
+
* @see https://eslint-react.xyz/docs/rules/jsx-no-iife
|
|
2579
|
+
*/
|
|
2580
|
+
'react/jsx-no-iife'?: Linter.RuleEntry<[]>;
|
|
2767
2581
|
/**
|
|
2768
2582
|
* Disallow undefined variables in JSX.
|
|
2769
2583
|
* @see https://eslint-react.xyz/docs/rules/jsx-no-undef
|
|
@@ -3363,7 +3177,7 @@ interface RuleOptions {
|
|
|
3363
3177
|
* enforce using quantifier
|
|
3364
3178
|
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-quantifier.html
|
|
3365
3179
|
*/
|
|
3366
|
-
'regexp/prefer-quantifier'?: Linter.RuleEntry<
|
|
3180
|
+
'regexp/prefer-quantifier'?: Linter.RuleEntry<RegexpPreferQuantifier>;
|
|
3367
3181
|
/**
|
|
3368
3182
|
* enforce using `?` quantifier
|
|
3369
3183
|
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-question-quantifier.html
|
|
@@ -4020,6 +3834,11 @@ interface RuleOptions {
|
|
|
4020
3834
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/consistent-test-it.md
|
|
4021
3835
|
*/
|
|
4022
3836
|
'test/consistent-test-it'?: Linter.RuleEntry<TestConsistentTestIt>;
|
|
3837
|
+
/**
|
|
3838
|
+
* enforce using vitest or vi but not both
|
|
3839
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/consistent-vitest-vi.md
|
|
3840
|
+
*/
|
|
3841
|
+
'test/consistent-vitest-vi'?: Linter.RuleEntry<TestConsistentVitestVi>;
|
|
4023
3842
|
/**
|
|
4024
3843
|
* enforce having expectation in test body
|
|
4025
3844
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/expect-expect.md
|
|
@@ -4096,6 +3915,11 @@ interface RuleOptions {
|
|
|
4096
3915
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-import-node-test.md
|
|
4097
3916
|
*/
|
|
4098
3917
|
'test/no-import-node-test'?: Linter.RuleEntry<[]>;
|
|
3918
|
+
/**
|
|
3919
|
+
* disallow importing Vitest globals
|
|
3920
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-importing-vitest-globals.md
|
|
3921
|
+
*/
|
|
3922
|
+
'test/no-importing-vitest-globals'?: Linter.RuleEntry<[]>;
|
|
4099
3923
|
/**
|
|
4100
3924
|
* disallow string interpolation in snapshots
|
|
4101
3925
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-interpolation-in-snapshots.md
|
|
@@ -4132,7 +3956,7 @@ interface RuleOptions {
|
|
|
4132
3956
|
*/
|
|
4133
3957
|
'test/no-standalone-expect'?: Linter.RuleEntry<TestNoStandaloneExpect>;
|
|
4134
3958
|
/**
|
|
4135
|
-
*
|
|
3959
|
+
* disallow using the `f` and `x` prefixes in favour of `.only` and `.skip`
|
|
4136
3960
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-test-prefixes.md
|
|
4137
3961
|
*/
|
|
4138
3962
|
'test/no-test-prefixes'?: Linter.RuleEntry<[]>;
|
|
@@ -4226,6 +4050,11 @@ interface RuleOptions {
|
|
|
4226
4050
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-hooks-on-top.md
|
|
4227
4051
|
*/
|
|
4228
4052
|
'test/prefer-hooks-on-top'?: Linter.RuleEntry<[]>;
|
|
4053
|
+
/**
|
|
4054
|
+
* enforce importing Vitest globals
|
|
4055
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-importing-vitest-globals.md
|
|
4056
|
+
*/
|
|
4057
|
+
'test/prefer-importing-vitest-globals'?: Linter.RuleEntry<[]>;
|
|
4229
4058
|
/**
|
|
4230
4059
|
* enforce lowercase titles
|
|
4231
4060
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-lowercase-title.md
|
|
@@ -7183,6 +7012,7 @@ type _FuncNamesValue = ("always" | "as-needed" | "never");
|
|
|
7183
7012
|
// ----- func-style -----
|
|
7184
7013
|
type FuncStyle = [] | [("declaration" | "expression")] | [("declaration" | "expression"), {
|
|
7185
7014
|
allowArrowFunctions?: boolean;
|
|
7015
|
+
allowTypeAnnotation?: boolean;
|
|
7186
7016
|
overrides?: {
|
|
7187
7017
|
namedExports?: ("declaration" | "expression" | "ignore");
|
|
7188
7018
|
};
|
|
@@ -7240,246 +7070,19 @@ type IdMatch = [] | [string] | [string, {
|
|
|
7240
7070
|
// ----- implicit-arrow-linebreak -----
|
|
7241
7071
|
type ImplicitArrowLinebreak = [] | [("beside" | "below")];
|
|
7242
7072
|
// ----- import/consistent-type-specifier-style -----
|
|
7243
|
-
type ImportConsistentTypeSpecifierStyle = [] | [("
|
|
7244
|
-
// ----- import/dynamic-import-chunkname -----
|
|
7245
|
-
type ImportDynamicImportChunkname = [] | [{
|
|
7246
|
-
importFunctions?: string[];
|
|
7247
|
-
allowEmpty?: boolean;
|
|
7248
|
-
webpackChunknameFormat?: string;
|
|
7249
|
-
[k: string]: unknown | undefined;
|
|
7250
|
-
}];
|
|
7251
|
-
// ----- import/extensions -----
|
|
7252
|
-
type ImportExtensions = ([] | [("always" | "ignorePackages" | "never")] | [] | [("always" | "ignorePackages" | "never")] | [("always" | "ignorePackages" | "never"), {
|
|
7253
|
-
pattern?: {
|
|
7254
|
-
[k: string]: ("always" | "ignorePackages" | "never");
|
|
7255
|
-
};
|
|
7256
|
-
ignorePackages?: boolean;
|
|
7257
|
-
checkTypeImports?: boolean;
|
|
7258
|
-
pathGroupOverrides?: {
|
|
7259
|
-
pattern: string;
|
|
7260
|
-
patternOptions?: {
|
|
7261
|
-
[k: string]: unknown | undefined;
|
|
7262
|
-
};
|
|
7263
|
-
action: ("enforce" | "ignore");
|
|
7264
|
-
}[];
|
|
7265
|
-
fix?: boolean;
|
|
7266
|
-
[k: string]: unknown | undefined;
|
|
7267
|
-
}] | [] | [{
|
|
7268
|
-
pattern?: {
|
|
7269
|
-
[k: string]: ("always" | "ignorePackages" | "never");
|
|
7270
|
-
};
|
|
7271
|
-
ignorePackages?: boolean;
|
|
7272
|
-
checkTypeImports?: boolean;
|
|
7273
|
-
pathGroupOverrides?: {
|
|
7274
|
-
pattern: string;
|
|
7275
|
-
patternOptions?: {
|
|
7276
|
-
[k: string]: unknown | undefined;
|
|
7277
|
-
};
|
|
7278
|
-
action: ("enforce" | "ignore");
|
|
7279
|
-
}[];
|
|
7280
|
-
fix?: boolean;
|
|
7281
|
-
[k: string]: unknown | undefined;
|
|
7282
|
-
}] | [] | [("always" | "ignorePackages" | "never")] | [("always" | "ignorePackages" | "never"), {
|
|
7283
|
-
[k: string]: ("always" | "ignorePackages" | "never");
|
|
7284
|
-
}] | [] | [{
|
|
7285
|
-
[k: string]: ("always" | "ignorePackages" | "never");
|
|
7286
|
-
}]);
|
|
7073
|
+
type ImportConsistentTypeSpecifierStyle = [] | [("top-level" | "inline" | "prefer-top-level")];
|
|
7287
7074
|
// ----- import/first -----
|
|
7288
7075
|
type ImportFirst = [] | [("absolute-first" | "disable-absolute-first")];
|
|
7289
|
-
// ----- import/imports-first -----
|
|
7290
|
-
type ImportImportsFirst = [] | [("absolute-first" | "disable-absolute-first")];
|
|
7291
|
-
// ----- import/max-dependencies -----
|
|
7292
|
-
type ImportMaxDependencies = [] | [{
|
|
7293
|
-
max?: number;
|
|
7294
|
-
ignoreTypeImports?: boolean;
|
|
7295
|
-
}];
|
|
7296
|
-
// ----- import/named -----
|
|
7297
|
-
type ImportNamed = [] | [{
|
|
7298
|
-
commonjs?: boolean;
|
|
7299
|
-
}];
|
|
7300
|
-
// ----- import/namespace -----
|
|
7301
|
-
type ImportNamespace = [] | [{
|
|
7302
|
-
allowComputed?: boolean;
|
|
7303
|
-
}];
|
|
7304
7076
|
// ----- import/newline-after-import -----
|
|
7305
7077
|
type ImportNewlineAfterImport = [] | [{
|
|
7306
7078
|
count?: number;
|
|
7307
7079
|
exactCount?: boolean;
|
|
7308
7080
|
considerComments?: boolean;
|
|
7309
7081
|
}];
|
|
7310
|
-
// ----- import/no-absolute-path -----
|
|
7311
|
-
type ImportNoAbsolutePath = [] | [{
|
|
7312
|
-
commonjs?: boolean;
|
|
7313
|
-
amd?: boolean;
|
|
7314
|
-
esmodule?: boolean;
|
|
7315
|
-
ignore?: [string, ...(string)[]];
|
|
7316
|
-
}];
|
|
7317
|
-
// ----- import/no-anonymous-default-export -----
|
|
7318
|
-
type ImportNoAnonymousDefaultExport = [] | [{
|
|
7319
|
-
allowArray?: boolean;
|
|
7320
|
-
allowArrowFunction?: boolean;
|
|
7321
|
-
allowCallExpression?: boolean;
|
|
7322
|
-
allowAnonymousClass?: boolean;
|
|
7323
|
-
allowAnonymousFunction?: boolean;
|
|
7324
|
-
allowLiteral?: boolean;
|
|
7325
|
-
allowObject?: boolean;
|
|
7326
|
-
allowNew?: boolean;
|
|
7327
|
-
}];
|
|
7328
|
-
// ----- import/no-commonjs -----
|
|
7329
|
-
type ImportNoCommonjs = ([] | ["allow-primitive-modules"] | [] | [{
|
|
7330
|
-
allowPrimitiveModules?: boolean;
|
|
7331
|
-
allowRequire?: boolean;
|
|
7332
|
-
allowConditionalRequire?: boolean;
|
|
7333
|
-
}]);
|
|
7334
|
-
// ----- import/no-cycle -----
|
|
7335
|
-
type ImportNoCycle = [] | [{
|
|
7336
|
-
commonjs?: boolean;
|
|
7337
|
-
amd?: boolean;
|
|
7338
|
-
esmodule?: boolean;
|
|
7339
|
-
ignore?: [string, ...(string)[]];
|
|
7340
|
-
maxDepth?: (number | "∞");
|
|
7341
|
-
ignoreExternal?: boolean;
|
|
7342
|
-
allowUnsafeDynamicCyclicDependency?: boolean;
|
|
7343
|
-
}];
|
|
7344
7082
|
// ----- import/no-duplicates -----
|
|
7345
7083
|
type ImportNoDuplicates = [] | [{
|
|
7346
|
-
considerQueryString?: boolean;
|
|
7347
7084
|
"prefer-inline"?: boolean;
|
|
7348
7085
|
}];
|
|
7349
|
-
// ----- import/no-dynamic-require -----
|
|
7350
|
-
type ImportNoDynamicRequire = [] | [{
|
|
7351
|
-
esmodule?: boolean;
|
|
7352
|
-
}];
|
|
7353
|
-
// ----- import/no-extraneous-dependencies -----
|
|
7354
|
-
type ImportNoExtraneousDependencies = [] | [{
|
|
7355
|
-
devDependencies?: (boolean | unknown[]);
|
|
7356
|
-
optionalDependencies?: (boolean | unknown[]);
|
|
7357
|
-
peerDependencies?: (boolean | unknown[]);
|
|
7358
|
-
bundledDependencies?: (boolean | unknown[]);
|
|
7359
|
-
packageDir?: (string | unknown[]);
|
|
7360
|
-
includeInternal?: boolean;
|
|
7361
|
-
includeTypes?: boolean;
|
|
7362
|
-
whitelist?: unknown[];
|
|
7363
|
-
}];
|
|
7364
|
-
// ----- import/no-import-module-exports -----
|
|
7365
|
-
type ImportNoImportModuleExports = [] | [{
|
|
7366
|
-
exceptions?: unknown[];
|
|
7367
|
-
}];
|
|
7368
|
-
// ----- import/no-internal-modules -----
|
|
7369
|
-
type ImportNoInternalModules = [] | [({
|
|
7370
|
-
allow?: string[];
|
|
7371
|
-
} | {
|
|
7372
|
-
forbid?: string[];
|
|
7373
|
-
})];
|
|
7374
|
-
// ----- import/no-namespace -----
|
|
7375
|
-
type ImportNoNamespace = [] | [{
|
|
7376
|
-
ignore?: string[];
|
|
7377
|
-
[k: string]: unknown | undefined;
|
|
7378
|
-
}];
|
|
7379
|
-
// ----- import/no-nodejs-modules -----
|
|
7380
|
-
type ImportNoNodejsModules = [] | [{
|
|
7381
|
-
allow?: string[];
|
|
7382
|
-
}];
|
|
7383
|
-
// ----- import/no-relative-packages -----
|
|
7384
|
-
type ImportNoRelativePackages = [] | [{
|
|
7385
|
-
commonjs?: boolean;
|
|
7386
|
-
amd?: boolean;
|
|
7387
|
-
esmodule?: boolean;
|
|
7388
|
-
ignore?: [string, ...(string)[]];
|
|
7389
|
-
}];
|
|
7390
|
-
// ----- import/no-relative-parent-imports -----
|
|
7391
|
-
type ImportNoRelativeParentImports = [] | [{
|
|
7392
|
-
commonjs?: boolean;
|
|
7393
|
-
amd?: boolean;
|
|
7394
|
-
esmodule?: boolean;
|
|
7395
|
-
ignore?: [string, ...(string)[]];
|
|
7396
|
-
}];
|
|
7397
|
-
// ----- import/no-rename-default -----
|
|
7398
|
-
type ImportNoRenameDefault = [] | [{
|
|
7399
|
-
commonjs?: boolean;
|
|
7400
|
-
preventRenamingBindings?: boolean;
|
|
7401
|
-
}];
|
|
7402
|
-
// ----- import/no-restricted-paths -----
|
|
7403
|
-
type ImportNoRestrictedPaths = [] | [{
|
|
7404
|
-
zones?: [{
|
|
7405
|
-
target?: (string | [string, ...(string)[]]);
|
|
7406
|
-
from?: (string | [string, ...(string)[]]);
|
|
7407
|
-
except?: string[];
|
|
7408
|
-
message?: string;
|
|
7409
|
-
}, ...({
|
|
7410
|
-
target?: (string | [string, ...(string)[]]);
|
|
7411
|
-
from?: (string | [string, ...(string)[]]);
|
|
7412
|
-
except?: string[];
|
|
7413
|
-
message?: string;
|
|
7414
|
-
})[]];
|
|
7415
|
-
basePath?: string;
|
|
7416
|
-
}];
|
|
7417
|
-
// ----- import/no-unassigned-import -----
|
|
7418
|
-
type ImportNoUnassignedImport = [] | [{
|
|
7419
|
-
devDependencies?: (boolean | unknown[]);
|
|
7420
|
-
optionalDependencies?: (boolean | unknown[]);
|
|
7421
|
-
peerDependencies?: (boolean | unknown[]);
|
|
7422
|
-
allow?: string[];
|
|
7423
|
-
}];
|
|
7424
|
-
// ----- import/no-unresolved -----
|
|
7425
|
-
type ImportNoUnresolved = [] | [{
|
|
7426
|
-
commonjs?: boolean;
|
|
7427
|
-
amd?: boolean;
|
|
7428
|
-
esmodule?: boolean;
|
|
7429
|
-
ignore?: [string, ...(string)[]];
|
|
7430
|
-
caseSensitive?: boolean;
|
|
7431
|
-
caseSensitiveStrict?: boolean;
|
|
7432
|
-
}];
|
|
7433
|
-
// ----- import/no-unused-modules -----
|
|
7434
|
-
type ImportNoUnusedModules = [] | [({
|
|
7435
|
-
unusedExports: true;
|
|
7436
|
-
src?: [unknown, ...(unknown)[]];
|
|
7437
|
-
[k: string]: unknown | undefined;
|
|
7438
|
-
} | {
|
|
7439
|
-
missingExports: true;
|
|
7440
|
-
[k: string]: unknown | undefined;
|
|
7441
|
-
})];
|
|
7442
|
-
// ----- import/no-useless-path-segments -----
|
|
7443
|
-
type ImportNoUselessPathSegments = [] | [{
|
|
7444
|
-
commonjs?: boolean;
|
|
7445
|
-
noUselessIndex?: boolean;
|
|
7446
|
-
}];
|
|
7447
|
-
// ----- import/order -----
|
|
7448
|
-
type ImportOrder = [] | [{
|
|
7449
|
-
groups?: unknown[];
|
|
7450
|
-
pathGroupsExcludedImportTypes?: unknown[];
|
|
7451
|
-
distinctGroup?: boolean;
|
|
7452
|
-
pathGroups?: {
|
|
7453
|
-
pattern: string;
|
|
7454
|
-
patternOptions?: {
|
|
7455
|
-
[k: string]: unknown | undefined;
|
|
7456
|
-
};
|
|
7457
|
-
group: ("builtin" | "external" | "internal" | "unknown" | "parent" | "sibling" | "index" | "object" | "type");
|
|
7458
|
-
position?: ("after" | "before");
|
|
7459
|
-
}[];
|
|
7460
|
-
"newlines-between"?: ("ignore" | "always" | "always-and-inside-groups" | "never");
|
|
7461
|
-
"newlines-between-types"?: ("ignore" | "always" | "always-and-inside-groups" | "never");
|
|
7462
|
-
consolidateIslands?: ("inside-groups" | "never");
|
|
7463
|
-
sortTypesGroup?: boolean;
|
|
7464
|
-
named?: (boolean | {
|
|
7465
|
-
enabled?: boolean;
|
|
7466
|
-
import?: boolean;
|
|
7467
|
-
export?: boolean;
|
|
7468
|
-
require?: boolean;
|
|
7469
|
-
cjsExports?: boolean;
|
|
7470
|
-
types?: ("mixed" | "types-first" | "types-last");
|
|
7471
|
-
});
|
|
7472
|
-
alphabetize?: {
|
|
7473
|
-
caseInsensitive?: boolean;
|
|
7474
|
-
order?: ("ignore" | "asc" | "desc");
|
|
7475
|
-
orderImportKind?: ("ignore" | "asc" | "desc");
|
|
7476
|
-
};
|
|
7477
|
-
warnOnUnassignedImports?: boolean;
|
|
7478
|
-
}];
|
|
7479
|
-
// ----- import/prefer-default-export -----
|
|
7480
|
-
type ImportPreferDefaultExport = [] | [{
|
|
7481
|
-
target?: ("single" | "any");
|
|
7482
|
-
}];
|
|
7483
7086
|
// ----- indent -----
|
|
7484
7087
|
type Indent = [] | [("tab" | number)] | [("tab" | number), {
|
|
7485
7088
|
SwitchCase?: number;
|
|
@@ -7579,10 +7182,10 @@ type JsdocCheckLineAlignment = [] | [("always" | "never" | "any")] | [("always"
|
|
|
7579
7182
|
postTag?: number;
|
|
7580
7183
|
postType?: number;
|
|
7581
7184
|
};
|
|
7185
|
+
disableWrapIndent?: boolean;
|
|
7582
7186
|
preserveMainDescriptionPostDelimiter?: boolean;
|
|
7583
7187
|
tags?: string[];
|
|
7584
7188
|
wrapIndent?: string;
|
|
7585
|
-
disableWrapIndent?: boolean;
|
|
7586
7189
|
}];
|
|
7587
7190
|
// ----- jsdoc/check-param-names -----
|
|
7588
7191
|
type JsdocCheckParamNames = [] | [{
|
|
@@ -8922,6 +8525,10 @@ type NoMagicNumbers = [] | [{
|
|
|
8922
8525
|
ignoreArrayIndexes?: boolean;
|
|
8923
8526
|
ignoreDefaultValues?: boolean;
|
|
8924
8527
|
ignoreClassFieldInitialValues?: boolean;
|
|
8528
|
+
ignoreEnums?: boolean;
|
|
8529
|
+
ignoreNumericLiteralTypes?: boolean;
|
|
8530
|
+
ignoreReadonlyClassProperties?: boolean;
|
|
8531
|
+
ignoreTypeIndexes?: boolean;
|
|
8925
8532
|
}];
|
|
8926
8533
|
// ----- no-misleading-character-class -----
|
|
8927
8534
|
type NoMisleadingCharacterClass = [] | [{
|
|
@@ -9054,9 +8661,11 @@ type NoSequences = [] | [{
|
|
|
9054
8661
|
// ----- no-shadow -----
|
|
9055
8662
|
type NoShadow = [] | [{
|
|
9056
8663
|
builtinGlobals?: boolean;
|
|
9057
|
-
hoist?: ("all" | "functions" | "never");
|
|
8664
|
+
hoist?: ("all" | "functions" | "never" | "types" | "functions-and-types");
|
|
9058
8665
|
allow?: string[];
|
|
9059
8666
|
ignoreOnInitialization?: boolean;
|
|
8667
|
+
ignoreTypeValueShadow?: boolean;
|
|
8668
|
+
ignoreFunctionTypeParameterNameValueShadow?: boolean;
|
|
9060
8669
|
}];
|
|
9061
8670
|
// ----- no-shadow-restricted-names -----
|
|
9062
8671
|
type NoShadowRestrictedNames = [] | [{
|
|
@@ -9134,6 +8743,9 @@ type NoUseBeforeDefine = [] | [("nofunc" | {
|
|
|
9134
8743
|
classes?: boolean;
|
|
9135
8744
|
variables?: boolean;
|
|
9136
8745
|
allowNamedExports?: boolean;
|
|
8746
|
+
enums?: boolean;
|
|
8747
|
+
typedefs?: boolean;
|
|
8748
|
+
ignoreTypeReferences?: boolean;
|
|
9137
8749
|
})];
|
|
9138
8750
|
// ----- no-useless-computed-key -----
|
|
9139
8751
|
type NoUselessComputedKey = [] | [{
|
|
@@ -9287,7 +8899,33 @@ type NodeNoRestrictedRequire = [] | [(string | {
|
|
|
9287
8899
|
// ----- node/no-sync -----
|
|
9288
8900
|
type NodeNoSync = [] | [{
|
|
9289
8901
|
allowAtRootLevel?: boolean;
|
|
9290
|
-
ignores?: string
|
|
8902
|
+
ignores?: (string | {
|
|
8903
|
+
from?: "file";
|
|
8904
|
+
path?: string;
|
|
8905
|
+
name?: string[];
|
|
8906
|
+
} | {
|
|
8907
|
+
from?: "lib";
|
|
8908
|
+
name?: string[];
|
|
8909
|
+
} | {
|
|
8910
|
+
from?: "package";
|
|
8911
|
+
package?: string;
|
|
8912
|
+
name?: string[];
|
|
8913
|
+
})[];
|
|
8914
|
+
}];
|
|
8915
|
+
// ----- node/no-top-level-await -----
|
|
8916
|
+
type NodeNoTopLevelAwait = [] | [{
|
|
8917
|
+
ignoreBin?: boolean;
|
|
8918
|
+
convertPath?: ({
|
|
8919
|
+
[k: string]: [string, string];
|
|
8920
|
+
} | [{
|
|
8921
|
+
include: [string, ...(string)[]];
|
|
8922
|
+
exclude?: string[];
|
|
8923
|
+
replace: [string, string];
|
|
8924
|
+
}, ...({
|
|
8925
|
+
include: [string, ...(string)[]];
|
|
8926
|
+
exclude?: string[];
|
|
8927
|
+
replace: [string, string];
|
|
8928
|
+
})[]]);
|
|
9291
8929
|
}];
|
|
9292
8930
|
// ----- node/no-unpublished-bin -----
|
|
9293
8931
|
type NodeNoUnpublishedBin = [] | [{
|
|
@@ -9510,7 +9148,7 @@ type PerfectionistSortArrayIncludes = {
|
|
|
9510
9148
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9511
9149
|
groupKind?: ("mixed" | "literals-first" | "spreads-first");
|
|
9512
9150
|
customGroups?: ({
|
|
9513
|
-
newlinesInside?: ("always" | "never");
|
|
9151
|
+
newlinesInside?: (("always" | "never") | number);
|
|
9514
9152
|
fallbackSort?: {
|
|
9515
9153
|
order?: ("asc" | "desc");
|
|
9516
9154
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -9529,7 +9167,7 @@ type PerfectionistSortArrayIncludes = {
|
|
|
9529
9167
|
} | string));
|
|
9530
9168
|
}[];
|
|
9531
9169
|
} | {
|
|
9532
|
-
newlinesInside?: ("always" | "never");
|
|
9170
|
+
newlinesInside?: (("always" | "never") | number);
|
|
9533
9171
|
fallbackSort?: {
|
|
9534
9172
|
order?: ("asc" | "desc");
|
|
9535
9173
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -9578,9 +9216,10 @@ type PerfectionistSortArrayIncludes = {
|
|
|
9578
9216
|
} | string)));
|
|
9579
9217
|
});
|
|
9580
9218
|
partitionByNewLine?: boolean;
|
|
9581
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
9219
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
9582
9220
|
groups?: (string | string[] | {
|
|
9583
|
-
newlinesBetween
|
|
9221
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
9222
|
+
commentAbove?: string;
|
|
9584
9223
|
})[];
|
|
9585
9224
|
}[];
|
|
9586
9225
|
// ----- perfectionist/sort-classes -----
|
|
@@ -9596,7 +9235,7 @@ type PerfectionistSortClasses = [] | [{
|
|
|
9596
9235
|
order?: ("asc" | "desc");
|
|
9597
9236
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9598
9237
|
customGroups?: ({
|
|
9599
|
-
newlinesInside?: ("always" | "never");
|
|
9238
|
+
newlinesInside?: (("always" | "never") | number);
|
|
9600
9239
|
fallbackSort?: {
|
|
9601
9240
|
order?: ("asc" | "desc");
|
|
9602
9241
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -9630,7 +9269,7 @@ type PerfectionistSortClasses = [] | [{
|
|
|
9630
9269
|
} | string));
|
|
9631
9270
|
}[];
|
|
9632
9271
|
} | {
|
|
9633
|
-
newlinesInside?: ("always" | "never");
|
|
9272
|
+
newlinesInside?: (("always" | "never") | number);
|
|
9634
9273
|
fallbackSort?: {
|
|
9635
9274
|
order?: ("asc" | "desc");
|
|
9636
9275
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -9692,9 +9331,10 @@ type PerfectionistSortClasses = [] | [{
|
|
|
9692
9331
|
} | string)));
|
|
9693
9332
|
});
|
|
9694
9333
|
partitionByNewLine?: boolean;
|
|
9695
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
9334
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
9696
9335
|
groups?: (string | string[] | {
|
|
9697
|
-
newlinesBetween
|
|
9336
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
9337
|
+
commentAbove?: string;
|
|
9698
9338
|
})[];
|
|
9699
9339
|
}];
|
|
9700
9340
|
// ----- perfectionist/sort-decorators -----
|
|
@@ -9740,7 +9380,8 @@ type PerfectionistSortDecorators = [] | [{
|
|
|
9740
9380
|
[k: string]: (string | string[]) | undefined;
|
|
9741
9381
|
};
|
|
9742
9382
|
groups?: (string | string[] | {
|
|
9743
|
-
newlinesBetween
|
|
9383
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
9384
|
+
commentAbove?: string;
|
|
9744
9385
|
})[];
|
|
9745
9386
|
}];
|
|
9746
9387
|
// ----- perfectionist/sort-enums -----
|
|
@@ -9758,7 +9399,7 @@ type PerfectionistSortEnums = [] | [{
|
|
|
9758
9399
|
customGroups?: ({
|
|
9759
9400
|
[k: string]: (string | string[]) | undefined;
|
|
9760
9401
|
} | ({
|
|
9761
|
-
newlinesInside?: ("always" | "never");
|
|
9402
|
+
newlinesInside?: (("always" | "never") | number);
|
|
9762
9403
|
fallbackSort?: {
|
|
9763
9404
|
order?: ("asc" | "desc");
|
|
9764
9405
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -9783,7 +9424,7 @@ type PerfectionistSortEnums = [] | [{
|
|
|
9783
9424
|
} | string));
|
|
9784
9425
|
}[];
|
|
9785
9426
|
} | {
|
|
9786
|
-
newlinesInside?: ("always" | "never");
|
|
9427
|
+
newlinesInside?: (("always" | "never") | number);
|
|
9787
9428
|
fallbackSort?: {
|
|
9788
9429
|
order?: ("asc" | "desc");
|
|
9789
9430
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -9831,9 +9472,10 @@ type PerfectionistSortEnums = [] | [{
|
|
|
9831
9472
|
} | string)));
|
|
9832
9473
|
});
|
|
9833
9474
|
partitionByNewLine?: boolean;
|
|
9834
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
9475
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
9835
9476
|
groups?: (string | string[] | {
|
|
9836
|
-
newlinesBetween
|
|
9477
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
9478
|
+
commentAbove?: string;
|
|
9837
9479
|
})[];
|
|
9838
9480
|
}];
|
|
9839
9481
|
// ----- perfectionist/sort-exports -----
|
|
@@ -9850,7 +9492,7 @@ type PerfectionistSortExports = {
|
|
|
9850
9492
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9851
9493
|
groupKind?: ("mixed" | "values-first" | "types-first");
|
|
9852
9494
|
customGroups?: ({
|
|
9853
|
-
newlinesInside?: ("always" | "never");
|
|
9495
|
+
newlinesInside?: (("always" | "never") | number);
|
|
9854
9496
|
fallbackSort?: {
|
|
9855
9497
|
order?: ("asc" | "desc");
|
|
9856
9498
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -9870,7 +9512,7 @@ type PerfectionistSortExports = {
|
|
|
9870
9512
|
} | string));
|
|
9871
9513
|
}[];
|
|
9872
9514
|
} | {
|
|
9873
|
-
newlinesInside?: ("always" | "never");
|
|
9515
|
+
newlinesInside?: (("always" | "never") | number);
|
|
9874
9516
|
fallbackSort?: {
|
|
9875
9517
|
order?: ("asc" | "desc");
|
|
9876
9518
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -9911,9 +9553,10 @@ type PerfectionistSortExports = {
|
|
|
9911
9553
|
} | string)));
|
|
9912
9554
|
});
|
|
9913
9555
|
partitionByNewLine?: boolean;
|
|
9914
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
9556
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
9915
9557
|
groups?: (string | string[] | {
|
|
9916
|
-
newlinesBetween
|
|
9558
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
9559
|
+
commentAbove?: string;
|
|
9917
9560
|
})[];
|
|
9918
9561
|
}[];
|
|
9919
9562
|
// ----- perfectionist/sort-heritage-clauses -----
|
|
@@ -9932,7 +9575,8 @@ type PerfectionistSortHeritageClauses = [] | [{
|
|
|
9932
9575
|
[k: string]: (string | string[]) | undefined;
|
|
9933
9576
|
};
|
|
9934
9577
|
groups?: (string | string[] | {
|
|
9935
|
-
newlinesBetween
|
|
9578
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
9579
|
+
commentAbove?: string;
|
|
9936
9580
|
})[];
|
|
9937
9581
|
}];
|
|
9938
9582
|
// ----- perfectionist/sort-imports -----
|
|
@@ -9955,7 +9599,7 @@ type PerfectionistSortImports = {
|
|
|
9955
9599
|
[k: string]: (string | string[]) | undefined;
|
|
9956
9600
|
};
|
|
9957
9601
|
} | ({
|
|
9958
|
-
newlinesInside?: ("always" | "never");
|
|
9602
|
+
newlinesInside?: (("always" | "never") | number);
|
|
9959
9603
|
fallbackSort?: {
|
|
9960
9604
|
order?: ("asc" | "desc");
|
|
9961
9605
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -9982,7 +9626,7 @@ type PerfectionistSortImports = {
|
|
|
9982
9626
|
} | string));
|
|
9983
9627
|
}[];
|
|
9984
9628
|
} | {
|
|
9985
|
-
newlinesInside?: ("always" | "never");
|
|
9629
|
+
newlinesInside?: (("always" | "never") | number);
|
|
9986
9630
|
fallbackSort?: {
|
|
9987
9631
|
order?: ("asc" | "desc");
|
|
9988
9632
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10007,6 +9651,10 @@ type PerfectionistSortImports = {
|
|
|
10007
9651
|
flags?: string;
|
|
10008
9652
|
} | string));
|
|
10009
9653
|
})[]);
|
|
9654
|
+
tsconfig?: {
|
|
9655
|
+
rootDir: string;
|
|
9656
|
+
filename?: string;
|
|
9657
|
+
};
|
|
10010
9658
|
maxLineLength?: number;
|
|
10011
9659
|
sortSideEffects?: boolean;
|
|
10012
9660
|
environment?: ("node" | "bun");
|
|
@@ -10034,7 +9682,7 @@ type PerfectionistSortImports = {
|
|
|
10034
9682
|
} | string)));
|
|
10035
9683
|
});
|
|
10036
9684
|
partitionByNewLine?: boolean;
|
|
10037
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
9685
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10038
9686
|
internalPattern?: (({
|
|
10039
9687
|
pattern: string;
|
|
10040
9688
|
flags?: string;
|
|
@@ -10043,7 +9691,8 @@ type PerfectionistSortImports = {
|
|
|
10043
9691
|
flags?: string;
|
|
10044
9692
|
} | string));
|
|
10045
9693
|
groups?: (string | string[] | {
|
|
10046
|
-
newlinesBetween
|
|
9694
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
9695
|
+
commentAbove?: string;
|
|
10047
9696
|
})[];
|
|
10048
9697
|
}[];
|
|
10049
9698
|
// ----- perfectionist/sort-interfaces -----
|
|
@@ -10062,7 +9711,7 @@ type PerfectionistSortInterfaces = {
|
|
|
10062
9711
|
customGroups?: ({
|
|
10063
9712
|
[k: string]: (string | string[]) | undefined;
|
|
10064
9713
|
} | ({
|
|
10065
|
-
newlinesInside?: ("always" | "never");
|
|
9714
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10066
9715
|
fallbackSort?: {
|
|
10067
9716
|
order?: ("asc" | "desc");
|
|
10068
9717
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10091,7 +9740,7 @@ type PerfectionistSortInterfaces = {
|
|
|
10091
9740
|
sortBy?: ("name" | "value");
|
|
10092
9741
|
}[];
|
|
10093
9742
|
} | {
|
|
10094
|
-
newlinesInside?: ("always" | "never");
|
|
9743
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10095
9744
|
fallbackSort?: {
|
|
10096
9745
|
order?: ("asc" | "desc");
|
|
10097
9746
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10158,7 +9807,7 @@ type PerfectionistSortInterfaces = {
|
|
|
10158
9807
|
} | string)));
|
|
10159
9808
|
});
|
|
10160
9809
|
partitionByNewLine?: boolean;
|
|
10161
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
9810
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10162
9811
|
ignorePattern?: (({
|
|
10163
9812
|
pattern: string;
|
|
10164
9813
|
flags?: string;
|
|
@@ -10168,7 +9817,8 @@ type PerfectionistSortInterfaces = {
|
|
|
10168
9817
|
} | string));
|
|
10169
9818
|
sortBy?: ("name" | "value");
|
|
10170
9819
|
groups?: (string | string[] | {
|
|
10171
|
-
newlinesBetween
|
|
9820
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
9821
|
+
commentAbove?: string;
|
|
10172
9822
|
})[];
|
|
10173
9823
|
}[];
|
|
10174
9824
|
// ----- perfectionist/sort-intersection-types -----
|
|
@@ -10184,7 +9834,7 @@ type PerfectionistSortIntersectionTypes = {
|
|
|
10184
9834
|
order?: ("asc" | "desc");
|
|
10185
9835
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10186
9836
|
customGroups?: ({
|
|
10187
|
-
newlinesInside?: ("always" | "never");
|
|
9837
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10188
9838
|
fallbackSort?: {
|
|
10189
9839
|
order?: ("asc" | "desc");
|
|
10190
9840
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10203,7 +9853,7 @@ type PerfectionistSortIntersectionTypes = {
|
|
|
10203
9853
|
} | string));
|
|
10204
9854
|
}[];
|
|
10205
9855
|
} | {
|
|
10206
|
-
newlinesInside?: ("always" | "never");
|
|
9856
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10207
9857
|
fallbackSort?: {
|
|
10208
9858
|
order?: ("asc" | "desc");
|
|
10209
9859
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10243,9 +9893,10 @@ type PerfectionistSortIntersectionTypes = {
|
|
|
10243
9893
|
} | string)));
|
|
10244
9894
|
});
|
|
10245
9895
|
partitionByNewLine?: boolean;
|
|
10246
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
9896
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10247
9897
|
groups?: (string | string[] | {
|
|
10248
|
-
newlinesBetween
|
|
9898
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
9899
|
+
commentAbove?: string;
|
|
10249
9900
|
})[];
|
|
10250
9901
|
}[];
|
|
10251
9902
|
// ----- perfectionist/sort-jsx-props -----
|
|
@@ -10263,7 +9914,7 @@ type PerfectionistSortJsxProps = {
|
|
|
10263
9914
|
customGroups?: ({
|
|
10264
9915
|
[k: string]: (string | string[]) | undefined;
|
|
10265
9916
|
} | ({
|
|
10266
|
-
newlinesInside?: ("always" | "never");
|
|
9917
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10267
9918
|
fallbackSort?: {
|
|
10268
9919
|
order?: ("asc" | "desc");
|
|
10269
9920
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10290,7 +9941,7 @@ type PerfectionistSortJsxProps = {
|
|
|
10290
9941
|
} | string));
|
|
10291
9942
|
}[];
|
|
10292
9943
|
} | {
|
|
10293
|
-
newlinesInside?: ("always" | "never");
|
|
9944
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10294
9945
|
fallbackSort?: {
|
|
10295
9946
|
order?: ("asc" | "desc");
|
|
10296
9947
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10332,7 +9983,7 @@ type PerfectionistSortJsxProps = {
|
|
|
10332
9983
|
} | string));
|
|
10333
9984
|
};
|
|
10334
9985
|
partitionByNewLine?: boolean;
|
|
10335
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
9986
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10336
9987
|
ignorePattern?: (({
|
|
10337
9988
|
pattern: string;
|
|
10338
9989
|
flags?: string;
|
|
@@ -10341,7 +9992,8 @@ type PerfectionistSortJsxProps = {
|
|
|
10341
9992
|
flags?: string;
|
|
10342
9993
|
} | string));
|
|
10343
9994
|
groups?: (string | string[] | {
|
|
10344
|
-
newlinesBetween
|
|
9995
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
9996
|
+
commentAbove?: string;
|
|
10345
9997
|
})[];
|
|
10346
9998
|
}[];
|
|
10347
9999
|
// ----- perfectionist/sort-maps -----
|
|
@@ -10357,7 +10009,7 @@ type PerfectionistSortMaps = {
|
|
|
10357
10009
|
order?: ("asc" | "desc");
|
|
10358
10010
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10359
10011
|
customGroups?: ({
|
|
10360
|
-
newlinesInside?: ("always" | "never");
|
|
10012
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10361
10013
|
fallbackSort?: {
|
|
10362
10014
|
order?: ("asc" | "desc");
|
|
10363
10015
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10375,7 +10027,7 @@ type PerfectionistSortMaps = {
|
|
|
10375
10027
|
} | string));
|
|
10376
10028
|
}[];
|
|
10377
10029
|
} | {
|
|
10378
|
-
newlinesInside?: ("always" | "never");
|
|
10030
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10379
10031
|
fallbackSort?: {
|
|
10380
10032
|
order?: ("asc" | "desc");
|
|
10381
10033
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10423,9 +10075,10 @@ type PerfectionistSortMaps = {
|
|
|
10423
10075
|
} | string)));
|
|
10424
10076
|
});
|
|
10425
10077
|
partitionByNewLine?: boolean;
|
|
10426
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10078
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10427
10079
|
groups?: (string | string[] | {
|
|
10428
|
-
newlinesBetween
|
|
10080
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10081
|
+
commentAbove?: string;
|
|
10429
10082
|
})[];
|
|
10430
10083
|
}[];
|
|
10431
10084
|
// ----- perfectionist/sort-modules -----
|
|
@@ -10441,7 +10094,7 @@ type PerfectionistSortModules = [] | [{
|
|
|
10441
10094
|
order?: ("asc" | "desc");
|
|
10442
10095
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10443
10096
|
customGroups?: ({
|
|
10444
|
-
newlinesInside?: ("always" | "never");
|
|
10097
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10445
10098
|
fallbackSort?: {
|
|
10446
10099
|
order?: ("asc" | "desc");
|
|
10447
10100
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10468,7 +10121,7 @@ type PerfectionistSortModules = [] | [{
|
|
|
10468
10121
|
} | string));
|
|
10469
10122
|
}[];
|
|
10470
10123
|
} | {
|
|
10471
|
-
newlinesInside?: ("always" | "never");
|
|
10124
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10472
10125
|
fallbackSort?: {
|
|
10473
10126
|
order?: ("asc" | "desc");
|
|
10474
10127
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10516,9 +10169,10 @@ type PerfectionistSortModules = [] | [{
|
|
|
10516
10169
|
} | string)));
|
|
10517
10170
|
});
|
|
10518
10171
|
partitionByNewLine?: boolean;
|
|
10519
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10172
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10520
10173
|
groups?: (string | string[] | {
|
|
10521
|
-
newlinesBetween
|
|
10174
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10175
|
+
commentAbove?: string;
|
|
10522
10176
|
})[];
|
|
10523
10177
|
}];
|
|
10524
10178
|
// ----- perfectionist/sort-named-exports -----
|
|
@@ -10536,7 +10190,7 @@ type PerfectionistSortNamedExports = {
|
|
|
10536
10190
|
groupKind?: ("mixed" | "values-first" | "types-first");
|
|
10537
10191
|
ignoreAlias?: boolean;
|
|
10538
10192
|
customGroups?: ({
|
|
10539
|
-
newlinesInside?: ("always" | "never");
|
|
10193
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10540
10194
|
fallbackSort?: {
|
|
10541
10195
|
order?: ("asc" | "desc");
|
|
10542
10196
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10556,7 +10210,7 @@ type PerfectionistSortNamedExports = {
|
|
|
10556
10210
|
} | string));
|
|
10557
10211
|
}[];
|
|
10558
10212
|
} | {
|
|
10559
|
-
newlinesInside?: ("always" | "never");
|
|
10213
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10560
10214
|
fallbackSort?: {
|
|
10561
10215
|
order?: ("asc" | "desc");
|
|
10562
10216
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10597,9 +10251,10 @@ type PerfectionistSortNamedExports = {
|
|
|
10597
10251
|
} | string)));
|
|
10598
10252
|
});
|
|
10599
10253
|
partitionByNewLine?: boolean;
|
|
10600
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10254
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10601
10255
|
groups?: (string | string[] | {
|
|
10602
|
-
newlinesBetween
|
|
10256
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10257
|
+
commentAbove?: string;
|
|
10603
10258
|
})[];
|
|
10604
10259
|
}[];
|
|
10605
10260
|
// ----- perfectionist/sort-named-imports -----
|
|
@@ -10617,7 +10272,7 @@ type PerfectionistSortNamedImports = {
|
|
|
10617
10272
|
groupKind?: ("mixed" | "values-first" | "types-first");
|
|
10618
10273
|
ignoreAlias?: boolean;
|
|
10619
10274
|
customGroups?: ({
|
|
10620
|
-
newlinesInside?: ("always" | "never");
|
|
10275
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10621
10276
|
fallbackSort?: {
|
|
10622
10277
|
order?: ("asc" | "desc");
|
|
10623
10278
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10637,7 +10292,7 @@ type PerfectionistSortNamedImports = {
|
|
|
10637
10292
|
} | string));
|
|
10638
10293
|
}[];
|
|
10639
10294
|
} | {
|
|
10640
|
-
newlinesInside?: ("always" | "never");
|
|
10295
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10641
10296
|
fallbackSort?: {
|
|
10642
10297
|
order?: ("asc" | "desc");
|
|
10643
10298
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10678,9 +10333,10 @@ type PerfectionistSortNamedImports = {
|
|
|
10678
10333
|
} | string)));
|
|
10679
10334
|
});
|
|
10680
10335
|
partitionByNewLine?: boolean;
|
|
10681
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10336
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10682
10337
|
groups?: (string | string[] | {
|
|
10683
|
-
newlinesBetween
|
|
10338
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10339
|
+
commentAbove?: string;
|
|
10684
10340
|
})[];
|
|
10685
10341
|
}[];
|
|
10686
10342
|
// ----- perfectionist/sort-object-types -----
|
|
@@ -10699,7 +10355,7 @@ type PerfectionistSortObjectTypes = {
|
|
|
10699
10355
|
customGroups?: ({
|
|
10700
10356
|
[k: string]: (string | string[]) | undefined;
|
|
10701
10357
|
} | ({
|
|
10702
|
-
newlinesInside?: ("always" | "never");
|
|
10358
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10703
10359
|
fallbackSort?: {
|
|
10704
10360
|
order?: ("asc" | "desc");
|
|
10705
10361
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10728,7 +10384,7 @@ type PerfectionistSortObjectTypes = {
|
|
|
10728
10384
|
sortBy?: ("name" | "value");
|
|
10729
10385
|
}[];
|
|
10730
10386
|
} | {
|
|
10731
|
-
newlinesInside?: ("always" | "never");
|
|
10387
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10732
10388
|
fallbackSort?: {
|
|
10733
10389
|
order?: ("asc" | "desc");
|
|
10734
10390
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10795,7 +10451,7 @@ type PerfectionistSortObjectTypes = {
|
|
|
10795
10451
|
} | string)));
|
|
10796
10452
|
});
|
|
10797
10453
|
partitionByNewLine?: boolean;
|
|
10798
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10454
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10799
10455
|
ignorePattern?: (({
|
|
10800
10456
|
pattern: string;
|
|
10801
10457
|
flags?: string;
|
|
@@ -10805,7 +10461,8 @@ type PerfectionistSortObjectTypes = {
|
|
|
10805
10461
|
} | string));
|
|
10806
10462
|
sortBy?: ("name" | "value");
|
|
10807
10463
|
groups?: (string | string[] | {
|
|
10808
|
-
newlinesBetween
|
|
10464
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10465
|
+
commentAbove?: string;
|
|
10809
10466
|
})[];
|
|
10810
10467
|
}[];
|
|
10811
10468
|
// ----- perfectionist/sort-objects -----
|
|
@@ -10826,7 +10483,7 @@ type PerfectionistSortObjects = {
|
|
|
10826
10483
|
customGroups?: ({
|
|
10827
10484
|
[k: string]: (string | string[]) | undefined;
|
|
10828
10485
|
} | ({
|
|
10829
|
-
newlinesInside?: ("always" | "never");
|
|
10486
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10830
10487
|
fallbackSort?: {
|
|
10831
10488
|
order?: ("asc" | "desc");
|
|
10832
10489
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10853,7 +10510,7 @@ type PerfectionistSortObjects = {
|
|
|
10853
10510
|
} | string));
|
|
10854
10511
|
}[];
|
|
10855
10512
|
} | {
|
|
10856
|
-
newlinesInside?: ("always" | "never");
|
|
10513
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10857
10514
|
fallbackSort?: {
|
|
10858
10515
|
order?: ("asc" | "desc");
|
|
10859
10516
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10920,7 +10577,7 @@ type PerfectionistSortObjects = {
|
|
|
10920
10577
|
} | string)));
|
|
10921
10578
|
});
|
|
10922
10579
|
partitionByNewLine?: boolean;
|
|
10923
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10580
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10924
10581
|
ignorePattern?: (({
|
|
10925
10582
|
pattern: string;
|
|
10926
10583
|
flags?: string;
|
|
@@ -10929,7 +10586,8 @@ type PerfectionistSortObjects = {
|
|
|
10929
10586
|
flags?: string;
|
|
10930
10587
|
} | string));
|
|
10931
10588
|
groups?: (string | string[] | {
|
|
10932
|
-
newlinesBetween
|
|
10589
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10590
|
+
commentAbove?: string;
|
|
10933
10591
|
})[];
|
|
10934
10592
|
}[];
|
|
10935
10593
|
// ----- perfectionist/sort-sets -----
|
|
@@ -10946,7 +10604,7 @@ type PerfectionistSortSets = {
|
|
|
10946
10604
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10947
10605
|
groupKind?: ("mixed" | "literals-first" | "spreads-first");
|
|
10948
10606
|
customGroups?: ({
|
|
10949
|
-
newlinesInside?: ("always" | "never");
|
|
10607
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10950
10608
|
fallbackSort?: {
|
|
10951
10609
|
order?: ("asc" | "desc");
|
|
10952
10610
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10965,7 +10623,7 @@ type PerfectionistSortSets = {
|
|
|
10965
10623
|
} | string));
|
|
10966
10624
|
}[];
|
|
10967
10625
|
} | {
|
|
10968
|
-
newlinesInside?: ("always" | "never");
|
|
10626
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10969
10627
|
fallbackSort?: {
|
|
10970
10628
|
order?: ("asc" | "desc");
|
|
10971
10629
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -11014,9 +10672,10 @@ type PerfectionistSortSets = {
|
|
|
11014
10672
|
} | string)));
|
|
11015
10673
|
});
|
|
11016
10674
|
partitionByNewLine?: boolean;
|
|
11017
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10675
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11018
10676
|
groups?: (string | string[] | {
|
|
11019
|
-
newlinesBetween
|
|
10677
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10678
|
+
commentAbove?: string;
|
|
11020
10679
|
})[];
|
|
11021
10680
|
}[];
|
|
11022
10681
|
// ----- perfectionist/sort-switch-case -----
|
|
@@ -11045,7 +10704,7 @@ type PerfectionistSortUnionTypes = {
|
|
|
11045
10704
|
order?: ("asc" | "desc");
|
|
11046
10705
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11047
10706
|
customGroups?: ({
|
|
11048
|
-
newlinesInside?: ("always" | "never");
|
|
10707
|
+
newlinesInside?: (("always" | "never") | number);
|
|
11049
10708
|
fallbackSort?: {
|
|
11050
10709
|
order?: ("asc" | "desc");
|
|
11051
10710
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -11064,7 +10723,7 @@ type PerfectionistSortUnionTypes = {
|
|
|
11064
10723
|
} | string));
|
|
11065
10724
|
}[];
|
|
11066
10725
|
} | {
|
|
11067
|
-
newlinesInside?: ("always" | "never");
|
|
10726
|
+
newlinesInside?: (("always" | "never") | number);
|
|
11068
10727
|
fallbackSort?: {
|
|
11069
10728
|
order?: ("asc" | "desc");
|
|
11070
10729
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -11104,9 +10763,10 @@ type PerfectionistSortUnionTypes = {
|
|
|
11104
10763
|
} | string)));
|
|
11105
10764
|
});
|
|
11106
10765
|
partitionByNewLine?: boolean;
|
|
11107
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10766
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11108
10767
|
groups?: (string | string[] | {
|
|
11109
|
-
newlinesBetween
|
|
10768
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10769
|
+
commentAbove?: string;
|
|
11110
10770
|
})[];
|
|
11111
10771
|
}[];
|
|
11112
10772
|
// ----- perfectionist/sort-variable-declarations -----
|
|
@@ -11122,7 +10782,7 @@ type PerfectionistSortVariableDeclarations = [] | [{
|
|
|
11122
10782
|
order?: ("asc" | "desc");
|
|
11123
10783
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11124
10784
|
customGroups?: ({
|
|
11125
|
-
newlinesInside?: ("always" | "never");
|
|
10785
|
+
newlinesInside?: (("always" | "never") | number);
|
|
11126
10786
|
fallbackSort?: {
|
|
11127
10787
|
order?: ("asc" | "desc");
|
|
11128
10788
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -11141,7 +10801,7 @@ type PerfectionistSortVariableDeclarations = [] | [{
|
|
|
11141
10801
|
} | string));
|
|
11142
10802
|
}[];
|
|
11143
10803
|
} | {
|
|
11144
|
-
newlinesInside?: ("always" | "never");
|
|
10804
|
+
newlinesInside?: (("always" | "never") | number);
|
|
11145
10805
|
fallbackSort?: {
|
|
11146
10806
|
order?: ("asc" | "desc");
|
|
11147
10807
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -11181,9 +10841,10 @@ type PerfectionistSortVariableDeclarations = [] | [{
|
|
|
11181
10841
|
} | string)));
|
|
11182
10842
|
});
|
|
11183
10843
|
partitionByNewLine?: boolean;
|
|
11184
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10844
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11185
10845
|
groups?: (string | string[] | {
|
|
11186
|
-
newlinesBetween
|
|
10846
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10847
|
+
commentAbove?: string;
|
|
11187
10848
|
})[];
|
|
11188
10849
|
}];
|
|
11189
10850
|
// ----- prefer-arrow-callback -----
|
|
@@ -11249,10 +10910,6 @@ type Quotes = [] | [("single" | "double" | "backtick")] | [("single" | "double"
|
|
|
11249
10910
|
})];
|
|
11250
10911
|
// ----- radix -----
|
|
11251
10912
|
type Radix = [] | [("always" | "as-needed")];
|
|
11252
|
-
// ----- react-compiler/react-compiler -----
|
|
11253
|
-
type ReactCompilerReactCompiler = [] | [{
|
|
11254
|
-
[k: string]: unknown | undefined;
|
|
11255
|
-
}];
|
|
11256
10913
|
// ----- react-dom/no-unknown-property -----
|
|
11257
10914
|
type ReactDomNoUnknownProperty = [] | [{
|
|
11258
10915
|
ignore?: string[];
|
|
@@ -11263,6 +10920,10 @@ type ReactHooksExhaustiveDeps = [] | [{
|
|
|
11263
10920
|
additionalHooks?: string;
|
|
11264
10921
|
enableDangerousAutofixThisMayCauseInfiniteLoops?: boolean;
|
|
11265
10922
|
}];
|
|
10923
|
+
// ----- react-hooks/react-compiler -----
|
|
10924
|
+
type ReactHooksReactCompiler = [] | [{
|
|
10925
|
+
[k: string]: unknown | undefined;
|
|
10926
|
+
}];
|
|
11266
10927
|
// ----- react-naming-convention/component-name -----
|
|
11267
10928
|
type ReactNamingConventionComponentName = [] | [(("PascalCase" | "CONSTANT_CASE") | {
|
|
11268
10929
|
allowAllCaps?: boolean;
|
|
@@ -11387,6 +11048,10 @@ type RegexpPreferLookaround = [] | [{
|
|
|
11387
11048
|
type RegexpPreferNamedReplacement = [] | [{
|
|
11388
11049
|
strictTypes?: boolean;
|
|
11389
11050
|
}];
|
|
11051
|
+
// ----- regexp/prefer-quantifier -----
|
|
11052
|
+
type RegexpPreferQuantifier = [] | [{
|
|
11053
|
+
allows?: string[];
|
|
11054
|
+
}];
|
|
11390
11055
|
// ----- regexp/prefer-range -----
|
|
11391
11056
|
type RegexpPreferRange = [] | [{
|
|
11392
11057
|
target?: (("all" | "alphanumeric") | [("all" | "alphanumeric")] | [("alphanumeric" | string), ...(("alphanumeric" | string))[]]);
|
|
@@ -11662,6 +11327,7 @@ type SveltePreferConst = [] | [{
|
|
|
11662
11327
|
destructuring?: ("any" | "all");
|
|
11663
11328
|
ignoreReadBeforeAssign?: boolean;
|
|
11664
11329
|
excludedRunes?: string[];
|
|
11330
|
+
[k: string]: unknown | undefined;
|
|
11665
11331
|
}];
|
|
11666
11332
|
// ----- svelte/require-event-prefix -----
|
|
11667
11333
|
type SvelteRequireEventPrefix = [] | [{
|
|
@@ -11792,6 +11458,10 @@ type TestConsistentTestIt = [] | [{
|
|
|
11792
11458
|
fn?: ("test" | "it");
|
|
11793
11459
|
withinDescribe?: ("test" | "it");
|
|
11794
11460
|
}];
|
|
11461
|
+
// ----- test/consistent-vitest-vi -----
|
|
11462
|
+
type TestConsistentVitestVi = [] | [{
|
|
11463
|
+
fn?: ("vi" | "vitest");
|
|
11464
|
+
}];
|
|
11795
11465
|
// ----- test/expect-expect -----
|
|
11796
11466
|
type TestExpectExpect = [] | [{
|
|
11797
11467
|
assertFunctionNames?: string[];
|
|
@@ -13957,7 +13627,7 @@ type VueNoRestrictedCustomEvent = (string | {
|
|
|
13957
13627
|
})[];
|
|
13958
13628
|
// ----- vue/no-restricted-html-elements -----
|
|
13959
13629
|
type VueNoRestrictedHtmlElements = (string | {
|
|
13960
|
-
element: string;
|
|
13630
|
+
element: (string | string[]);
|
|
13961
13631
|
message?: string;
|
|
13962
13632
|
})[];
|
|
13963
13633
|
// ----- vue/no-restricted-props -----
|
|
@@ -14301,6 +13971,7 @@ interface OptionsComponentExts {
|
|
|
14301
13971
|
*/
|
|
14302
13972
|
componentExts?: string[];
|
|
14303
13973
|
}
|
|
13974
|
+
interface OptionsUnicorn extends OptionsOverrides {}
|
|
14304
13975
|
interface OptionsTypeScriptParserOptions {
|
|
14305
13976
|
/**
|
|
14306
13977
|
* Additional parser options for TypeScript.
|
|
@@ -14522,7 +14193,7 @@ declare const defaultPluginRenaming: {
|
|
|
14522
14193
|
"@eslint-react/hooks-extra": string;
|
|
14523
14194
|
"@eslint-react/naming-convention": string;
|
|
14524
14195
|
"@typescript-eslint": string;
|
|
14525
|
-
"import-
|
|
14196
|
+
"import-lite": string;
|
|
14526
14197
|
n: string;
|
|
14527
14198
|
vitest: string;
|
|
14528
14199
|
yml: string;
|
|
@@ -14539,4 +14210,4 @@ declare const defaultPluginRenaming: {
|
|
|
14539
14210
|
*/
|
|
14540
14211
|
declare function defineConfig(options?: OptionsConfig & Omit<TypedFlatConfigItem, "files">, ...userConfigs: Awaitable<TypedFlatConfigItem | TypedFlatConfigItem[] | Linter.Config[]>[]): Promise<TypedFlatConfigItem[]>;
|
|
14541
14212
|
//#endregion
|
|
14542
|
-
export { Awaitable, OptionsComponentExts, OptionsConfig, OptionsFiles, OptionsHasTypeScript, OptionsIsInEditor, OptionsOverrides, OptionsRegExp, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, OptionsTypescript, OptionsUnoCSS, OptionsVue, ResolvedOptions, TypedFlatConfigItem, combine, defaultPluginRenaming, defineConfig, ensurePackages, getOverrides, getVueVersion, interopDefault, isInEditorEnv, isInGitHooksOrLintStaged, isPackageInScope, renamePluginInConfigs, renameRules, resolveSubOptions, toArray };
|
|
14213
|
+
export { Awaitable, OptionsComponentExts, OptionsConfig, OptionsFiles, OptionsHasTypeScript, OptionsIsInEditor, OptionsOverrides, OptionsRegExp, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, OptionsTypescript, OptionsUnicorn, OptionsUnoCSS, OptionsVue, ResolvedOptions, TypedFlatConfigItem, combine, defaultPluginRenaming, defineConfig, ensurePackages, getOverrides, getVueVersion, interopDefault, isInEditorEnv, isInGitHooksOrLintStaged, isPackageInScope, renamePluginInConfigs, renameRules, resolveSubOptions, toArray };
|