@coderwyd/eslint-config 4.3.0 → 4.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +11 -12
- package/dist/index.d.ts +189 -517
- package/dist/index.js +116 -117
- package/package.json +23 -25
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 = [] | [{
|
|
@@ -7665,6 +7268,7 @@ type JsdocLinesBeforeBlock = [] | [{
|
|
|
7665
7268
|
checkBlockStarts?: boolean;
|
|
7666
7269
|
excludedTags?: string[];
|
|
7667
7270
|
ignoreSameLine?: boolean;
|
|
7271
|
+
ignoreSingleLines?: boolean;
|
|
7668
7272
|
lines?: number;
|
|
7669
7273
|
}];
|
|
7670
7274
|
// ----- jsdoc/match-description -----
|
|
@@ -8922,6 +8526,10 @@ type NoMagicNumbers = [] | [{
|
|
|
8922
8526
|
ignoreArrayIndexes?: boolean;
|
|
8923
8527
|
ignoreDefaultValues?: boolean;
|
|
8924
8528
|
ignoreClassFieldInitialValues?: boolean;
|
|
8529
|
+
ignoreEnums?: boolean;
|
|
8530
|
+
ignoreNumericLiteralTypes?: boolean;
|
|
8531
|
+
ignoreReadonlyClassProperties?: boolean;
|
|
8532
|
+
ignoreTypeIndexes?: boolean;
|
|
8925
8533
|
}];
|
|
8926
8534
|
// ----- no-misleading-character-class -----
|
|
8927
8535
|
type NoMisleadingCharacterClass = [] | [{
|
|
@@ -9054,9 +8662,11 @@ type NoSequences = [] | [{
|
|
|
9054
8662
|
// ----- no-shadow -----
|
|
9055
8663
|
type NoShadow = [] | [{
|
|
9056
8664
|
builtinGlobals?: boolean;
|
|
9057
|
-
hoist?: ("all" | "functions" | "never");
|
|
8665
|
+
hoist?: ("all" | "functions" | "never" | "types" | "functions-and-types");
|
|
9058
8666
|
allow?: string[];
|
|
9059
8667
|
ignoreOnInitialization?: boolean;
|
|
8668
|
+
ignoreTypeValueShadow?: boolean;
|
|
8669
|
+
ignoreFunctionTypeParameterNameValueShadow?: boolean;
|
|
9060
8670
|
}];
|
|
9061
8671
|
// ----- no-shadow-restricted-names -----
|
|
9062
8672
|
type NoShadowRestrictedNames = [] | [{
|
|
@@ -9134,6 +8744,9 @@ type NoUseBeforeDefine = [] | [("nofunc" | {
|
|
|
9134
8744
|
classes?: boolean;
|
|
9135
8745
|
variables?: boolean;
|
|
9136
8746
|
allowNamedExports?: boolean;
|
|
8747
|
+
enums?: boolean;
|
|
8748
|
+
typedefs?: boolean;
|
|
8749
|
+
ignoreTypeReferences?: boolean;
|
|
9137
8750
|
})];
|
|
9138
8751
|
// ----- no-useless-computed-key -----
|
|
9139
8752
|
type NoUselessComputedKey = [] | [{
|
|
@@ -9287,7 +8900,33 @@ type NodeNoRestrictedRequire = [] | [(string | {
|
|
|
9287
8900
|
// ----- node/no-sync -----
|
|
9288
8901
|
type NodeNoSync = [] | [{
|
|
9289
8902
|
allowAtRootLevel?: boolean;
|
|
9290
|
-
ignores?: string
|
|
8903
|
+
ignores?: (string | {
|
|
8904
|
+
from?: "file";
|
|
8905
|
+
path?: string;
|
|
8906
|
+
name?: string[];
|
|
8907
|
+
} | {
|
|
8908
|
+
from?: "lib";
|
|
8909
|
+
name?: string[];
|
|
8910
|
+
} | {
|
|
8911
|
+
from?: "package";
|
|
8912
|
+
package?: string;
|
|
8913
|
+
name?: string[];
|
|
8914
|
+
})[];
|
|
8915
|
+
}];
|
|
8916
|
+
// ----- node/no-top-level-await -----
|
|
8917
|
+
type NodeNoTopLevelAwait = [] | [{
|
|
8918
|
+
ignoreBin?: boolean;
|
|
8919
|
+
convertPath?: ({
|
|
8920
|
+
[k: string]: [string, string];
|
|
8921
|
+
} | [{
|
|
8922
|
+
include: [string, ...(string)[]];
|
|
8923
|
+
exclude?: string[];
|
|
8924
|
+
replace: [string, string];
|
|
8925
|
+
}, ...({
|
|
8926
|
+
include: [string, ...(string)[]];
|
|
8927
|
+
exclude?: string[];
|
|
8928
|
+
replace: [string, string];
|
|
8929
|
+
})[]]);
|
|
9291
8930
|
}];
|
|
9292
8931
|
// ----- node/no-unpublished-bin -----
|
|
9293
8932
|
type NodeNoUnpublishedBin = [] | [{
|
|
@@ -9510,7 +9149,7 @@ type PerfectionistSortArrayIncludes = {
|
|
|
9510
9149
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9511
9150
|
groupKind?: ("mixed" | "literals-first" | "spreads-first");
|
|
9512
9151
|
customGroups?: ({
|
|
9513
|
-
newlinesInside?: ("always" | "never");
|
|
9152
|
+
newlinesInside?: (("always" | "never") | number);
|
|
9514
9153
|
fallbackSort?: {
|
|
9515
9154
|
order?: ("asc" | "desc");
|
|
9516
9155
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -9529,7 +9168,7 @@ type PerfectionistSortArrayIncludes = {
|
|
|
9529
9168
|
} | string));
|
|
9530
9169
|
}[];
|
|
9531
9170
|
} | {
|
|
9532
|
-
newlinesInside?: ("always" | "never");
|
|
9171
|
+
newlinesInside?: (("always" | "never") | number);
|
|
9533
9172
|
fallbackSort?: {
|
|
9534
9173
|
order?: ("asc" | "desc");
|
|
9535
9174
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -9578,9 +9217,10 @@ type PerfectionistSortArrayIncludes = {
|
|
|
9578
9217
|
} | string)));
|
|
9579
9218
|
});
|
|
9580
9219
|
partitionByNewLine?: boolean;
|
|
9581
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
9220
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
9582
9221
|
groups?: (string | string[] | {
|
|
9583
|
-
newlinesBetween
|
|
9222
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
9223
|
+
commentAbove?: string;
|
|
9584
9224
|
})[];
|
|
9585
9225
|
}[];
|
|
9586
9226
|
// ----- perfectionist/sort-classes -----
|
|
@@ -9596,7 +9236,7 @@ type PerfectionistSortClasses = [] | [{
|
|
|
9596
9236
|
order?: ("asc" | "desc");
|
|
9597
9237
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9598
9238
|
customGroups?: ({
|
|
9599
|
-
newlinesInside?: ("always" | "never");
|
|
9239
|
+
newlinesInside?: (("always" | "never") | number);
|
|
9600
9240
|
fallbackSort?: {
|
|
9601
9241
|
order?: ("asc" | "desc");
|
|
9602
9242
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -9630,7 +9270,7 @@ type PerfectionistSortClasses = [] | [{
|
|
|
9630
9270
|
} | string));
|
|
9631
9271
|
}[];
|
|
9632
9272
|
} | {
|
|
9633
|
-
newlinesInside?: ("always" | "never");
|
|
9273
|
+
newlinesInside?: (("always" | "never") | number);
|
|
9634
9274
|
fallbackSort?: {
|
|
9635
9275
|
order?: ("asc" | "desc");
|
|
9636
9276
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -9692,9 +9332,10 @@ type PerfectionistSortClasses = [] | [{
|
|
|
9692
9332
|
} | string)));
|
|
9693
9333
|
});
|
|
9694
9334
|
partitionByNewLine?: boolean;
|
|
9695
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
9335
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
9696
9336
|
groups?: (string | string[] | {
|
|
9697
|
-
newlinesBetween
|
|
9337
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
9338
|
+
commentAbove?: string;
|
|
9698
9339
|
})[];
|
|
9699
9340
|
}];
|
|
9700
9341
|
// ----- perfectionist/sort-decorators -----
|
|
@@ -9740,7 +9381,8 @@ type PerfectionistSortDecorators = [] | [{
|
|
|
9740
9381
|
[k: string]: (string | string[]) | undefined;
|
|
9741
9382
|
};
|
|
9742
9383
|
groups?: (string | string[] | {
|
|
9743
|
-
newlinesBetween
|
|
9384
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
9385
|
+
commentAbove?: string;
|
|
9744
9386
|
})[];
|
|
9745
9387
|
}];
|
|
9746
9388
|
// ----- perfectionist/sort-enums -----
|
|
@@ -9758,7 +9400,7 @@ type PerfectionistSortEnums = [] | [{
|
|
|
9758
9400
|
customGroups?: ({
|
|
9759
9401
|
[k: string]: (string | string[]) | undefined;
|
|
9760
9402
|
} | ({
|
|
9761
|
-
newlinesInside?: ("always" | "never");
|
|
9403
|
+
newlinesInside?: (("always" | "never") | number);
|
|
9762
9404
|
fallbackSort?: {
|
|
9763
9405
|
order?: ("asc" | "desc");
|
|
9764
9406
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -9783,7 +9425,7 @@ type PerfectionistSortEnums = [] | [{
|
|
|
9783
9425
|
} | string));
|
|
9784
9426
|
}[];
|
|
9785
9427
|
} | {
|
|
9786
|
-
newlinesInside?: ("always" | "never");
|
|
9428
|
+
newlinesInside?: (("always" | "never") | number);
|
|
9787
9429
|
fallbackSort?: {
|
|
9788
9430
|
order?: ("asc" | "desc");
|
|
9789
9431
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -9831,9 +9473,10 @@ type PerfectionistSortEnums = [] | [{
|
|
|
9831
9473
|
} | string)));
|
|
9832
9474
|
});
|
|
9833
9475
|
partitionByNewLine?: boolean;
|
|
9834
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
9476
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
9835
9477
|
groups?: (string | string[] | {
|
|
9836
|
-
newlinesBetween
|
|
9478
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
9479
|
+
commentAbove?: string;
|
|
9837
9480
|
})[];
|
|
9838
9481
|
}];
|
|
9839
9482
|
// ----- perfectionist/sort-exports -----
|
|
@@ -9850,7 +9493,7 @@ type PerfectionistSortExports = {
|
|
|
9850
9493
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9851
9494
|
groupKind?: ("mixed" | "values-first" | "types-first");
|
|
9852
9495
|
customGroups?: ({
|
|
9853
|
-
newlinesInside?: ("always" | "never");
|
|
9496
|
+
newlinesInside?: (("always" | "never") | number);
|
|
9854
9497
|
fallbackSort?: {
|
|
9855
9498
|
order?: ("asc" | "desc");
|
|
9856
9499
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -9870,7 +9513,7 @@ type PerfectionistSortExports = {
|
|
|
9870
9513
|
} | string));
|
|
9871
9514
|
}[];
|
|
9872
9515
|
} | {
|
|
9873
|
-
newlinesInside?: ("always" | "never");
|
|
9516
|
+
newlinesInside?: (("always" | "never") | number);
|
|
9874
9517
|
fallbackSort?: {
|
|
9875
9518
|
order?: ("asc" | "desc");
|
|
9876
9519
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -9911,9 +9554,10 @@ type PerfectionistSortExports = {
|
|
|
9911
9554
|
} | string)));
|
|
9912
9555
|
});
|
|
9913
9556
|
partitionByNewLine?: boolean;
|
|
9914
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
9557
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
9915
9558
|
groups?: (string | string[] | {
|
|
9916
|
-
newlinesBetween
|
|
9559
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
9560
|
+
commentAbove?: string;
|
|
9917
9561
|
})[];
|
|
9918
9562
|
}[];
|
|
9919
9563
|
// ----- perfectionist/sort-heritage-clauses -----
|
|
@@ -9932,7 +9576,8 @@ type PerfectionistSortHeritageClauses = [] | [{
|
|
|
9932
9576
|
[k: string]: (string | string[]) | undefined;
|
|
9933
9577
|
};
|
|
9934
9578
|
groups?: (string | string[] | {
|
|
9935
|
-
newlinesBetween
|
|
9579
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
9580
|
+
commentAbove?: string;
|
|
9936
9581
|
})[];
|
|
9937
9582
|
}];
|
|
9938
9583
|
// ----- perfectionist/sort-imports -----
|
|
@@ -9955,7 +9600,7 @@ type PerfectionistSortImports = {
|
|
|
9955
9600
|
[k: string]: (string | string[]) | undefined;
|
|
9956
9601
|
};
|
|
9957
9602
|
} | ({
|
|
9958
|
-
newlinesInside?: ("always" | "never");
|
|
9603
|
+
newlinesInside?: (("always" | "never") | number);
|
|
9959
9604
|
fallbackSort?: {
|
|
9960
9605
|
order?: ("asc" | "desc");
|
|
9961
9606
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -9982,7 +9627,7 @@ type PerfectionistSortImports = {
|
|
|
9982
9627
|
} | string));
|
|
9983
9628
|
}[];
|
|
9984
9629
|
} | {
|
|
9985
|
-
newlinesInside?: ("always" | "never");
|
|
9630
|
+
newlinesInside?: (("always" | "never") | number);
|
|
9986
9631
|
fallbackSort?: {
|
|
9987
9632
|
order?: ("asc" | "desc");
|
|
9988
9633
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10007,6 +9652,10 @@ type PerfectionistSortImports = {
|
|
|
10007
9652
|
flags?: string;
|
|
10008
9653
|
} | string));
|
|
10009
9654
|
})[]);
|
|
9655
|
+
tsconfig?: {
|
|
9656
|
+
rootDir: string;
|
|
9657
|
+
filename?: string;
|
|
9658
|
+
};
|
|
10010
9659
|
maxLineLength?: number;
|
|
10011
9660
|
sortSideEffects?: boolean;
|
|
10012
9661
|
environment?: ("node" | "bun");
|
|
@@ -10034,7 +9683,7 @@ type PerfectionistSortImports = {
|
|
|
10034
9683
|
} | string)));
|
|
10035
9684
|
});
|
|
10036
9685
|
partitionByNewLine?: boolean;
|
|
10037
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
9686
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10038
9687
|
internalPattern?: (({
|
|
10039
9688
|
pattern: string;
|
|
10040
9689
|
flags?: string;
|
|
@@ -10043,7 +9692,8 @@ type PerfectionistSortImports = {
|
|
|
10043
9692
|
flags?: string;
|
|
10044
9693
|
} | string));
|
|
10045
9694
|
groups?: (string | string[] | {
|
|
10046
|
-
newlinesBetween
|
|
9695
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
9696
|
+
commentAbove?: string;
|
|
10047
9697
|
})[];
|
|
10048
9698
|
}[];
|
|
10049
9699
|
// ----- perfectionist/sort-interfaces -----
|
|
@@ -10062,7 +9712,7 @@ type PerfectionistSortInterfaces = {
|
|
|
10062
9712
|
customGroups?: ({
|
|
10063
9713
|
[k: string]: (string | string[]) | undefined;
|
|
10064
9714
|
} | ({
|
|
10065
|
-
newlinesInside?: ("always" | "never");
|
|
9715
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10066
9716
|
fallbackSort?: {
|
|
10067
9717
|
order?: ("asc" | "desc");
|
|
10068
9718
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10091,7 +9741,7 @@ type PerfectionistSortInterfaces = {
|
|
|
10091
9741
|
sortBy?: ("name" | "value");
|
|
10092
9742
|
}[];
|
|
10093
9743
|
} | {
|
|
10094
|
-
newlinesInside?: ("always" | "never");
|
|
9744
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10095
9745
|
fallbackSort?: {
|
|
10096
9746
|
order?: ("asc" | "desc");
|
|
10097
9747
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10158,7 +9808,7 @@ type PerfectionistSortInterfaces = {
|
|
|
10158
9808
|
} | string)));
|
|
10159
9809
|
});
|
|
10160
9810
|
partitionByNewLine?: boolean;
|
|
10161
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
9811
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10162
9812
|
ignorePattern?: (({
|
|
10163
9813
|
pattern: string;
|
|
10164
9814
|
flags?: string;
|
|
@@ -10168,7 +9818,8 @@ type PerfectionistSortInterfaces = {
|
|
|
10168
9818
|
} | string));
|
|
10169
9819
|
sortBy?: ("name" | "value");
|
|
10170
9820
|
groups?: (string | string[] | {
|
|
10171
|
-
newlinesBetween
|
|
9821
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
9822
|
+
commentAbove?: string;
|
|
10172
9823
|
})[];
|
|
10173
9824
|
}[];
|
|
10174
9825
|
// ----- perfectionist/sort-intersection-types -----
|
|
@@ -10184,7 +9835,7 @@ type PerfectionistSortIntersectionTypes = {
|
|
|
10184
9835
|
order?: ("asc" | "desc");
|
|
10185
9836
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10186
9837
|
customGroups?: ({
|
|
10187
|
-
newlinesInside?: ("always" | "never");
|
|
9838
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10188
9839
|
fallbackSort?: {
|
|
10189
9840
|
order?: ("asc" | "desc");
|
|
10190
9841
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10203,7 +9854,7 @@ type PerfectionistSortIntersectionTypes = {
|
|
|
10203
9854
|
} | string));
|
|
10204
9855
|
}[];
|
|
10205
9856
|
} | {
|
|
10206
|
-
newlinesInside?: ("always" | "never");
|
|
9857
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10207
9858
|
fallbackSort?: {
|
|
10208
9859
|
order?: ("asc" | "desc");
|
|
10209
9860
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10243,9 +9894,10 @@ type PerfectionistSortIntersectionTypes = {
|
|
|
10243
9894
|
} | string)));
|
|
10244
9895
|
});
|
|
10245
9896
|
partitionByNewLine?: boolean;
|
|
10246
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
9897
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10247
9898
|
groups?: (string | string[] | {
|
|
10248
|
-
newlinesBetween
|
|
9899
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
9900
|
+
commentAbove?: string;
|
|
10249
9901
|
})[];
|
|
10250
9902
|
}[];
|
|
10251
9903
|
// ----- perfectionist/sort-jsx-props -----
|
|
@@ -10263,7 +9915,7 @@ type PerfectionistSortJsxProps = {
|
|
|
10263
9915
|
customGroups?: ({
|
|
10264
9916
|
[k: string]: (string | string[]) | undefined;
|
|
10265
9917
|
} | ({
|
|
10266
|
-
newlinesInside?: ("always" | "never");
|
|
9918
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10267
9919
|
fallbackSort?: {
|
|
10268
9920
|
order?: ("asc" | "desc");
|
|
10269
9921
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10290,7 +9942,7 @@ type PerfectionistSortJsxProps = {
|
|
|
10290
9942
|
} | string));
|
|
10291
9943
|
}[];
|
|
10292
9944
|
} | {
|
|
10293
|
-
newlinesInside?: ("always" | "never");
|
|
9945
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10294
9946
|
fallbackSort?: {
|
|
10295
9947
|
order?: ("asc" | "desc");
|
|
10296
9948
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10332,7 +9984,7 @@ type PerfectionistSortJsxProps = {
|
|
|
10332
9984
|
} | string));
|
|
10333
9985
|
};
|
|
10334
9986
|
partitionByNewLine?: boolean;
|
|
10335
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
9987
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10336
9988
|
ignorePattern?: (({
|
|
10337
9989
|
pattern: string;
|
|
10338
9990
|
flags?: string;
|
|
@@ -10341,7 +9993,8 @@ type PerfectionistSortJsxProps = {
|
|
|
10341
9993
|
flags?: string;
|
|
10342
9994
|
} | string));
|
|
10343
9995
|
groups?: (string | string[] | {
|
|
10344
|
-
newlinesBetween
|
|
9996
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
9997
|
+
commentAbove?: string;
|
|
10345
9998
|
})[];
|
|
10346
9999
|
}[];
|
|
10347
10000
|
// ----- perfectionist/sort-maps -----
|
|
@@ -10357,7 +10010,7 @@ type PerfectionistSortMaps = {
|
|
|
10357
10010
|
order?: ("asc" | "desc");
|
|
10358
10011
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10359
10012
|
customGroups?: ({
|
|
10360
|
-
newlinesInside?: ("always" | "never");
|
|
10013
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10361
10014
|
fallbackSort?: {
|
|
10362
10015
|
order?: ("asc" | "desc");
|
|
10363
10016
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10375,7 +10028,7 @@ type PerfectionistSortMaps = {
|
|
|
10375
10028
|
} | string));
|
|
10376
10029
|
}[];
|
|
10377
10030
|
} | {
|
|
10378
|
-
newlinesInside?: ("always" | "never");
|
|
10031
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10379
10032
|
fallbackSort?: {
|
|
10380
10033
|
order?: ("asc" | "desc");
|
|
10381
10034
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10423,9 +10076,10 @@ type PerfectionistSortMaps = {
|
|
|
10423
10076
|
} | string)));
|
|
10424
10077
|
});
|
|
10425
10078
|
partitionByNewLine?: boolean;
|
|
10426
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10079
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10427
10080
|
groups?: (string | string[] | {
|
|
10428
|
-
newlinesBetween
|
|
10081
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10082
|
+
commentAbove?: string;
|
|
10429
10083
|
})[];
|
|
10430
10084
|
}[];
|
|
10431
10085
|
// ----- perfectionist/sort-modules -----
|
|
@@ -10441,7 +10095,7 @@ type PerfectionistSortModules = [] | [{
|
|
|
10441
10095
|
order?: ("asc" | "desc");
|
|
10442
10096
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10443
10097
|
customGroups?: ({
|
|
10444
|
-
newlinesInside?: ("always" | "never");
|
|
10098
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10445
10099
|
fallbackSort?: {
|
|
10446
10100
|
order?: ("asc" | "desc");
|
|
10447
10101
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10468,7 +10122,7 @@ type PerfectionistSortModules = [] | [{
|
|
|
10468
10122
|
} | string));
|
|
10469
10123
|
}[];
|
|
10470
10124
|
} | {
|
|
10471
|
-
newlinesInside?: ("always" | "never");
|
|
10125
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10472
10126
|
fallbackSort?: {
|
|
10473
10127
|
order?: ("asc" | "desc");
|
|
10474
10128
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10516,9 +10170,10 @@ type PerfectionistSortModules = [] | [{
|
|
|
10516
10170
|
} | string)));
|
|
10517
10171
|
});
|
|
10518
10172
|
partitionByNewLine?: boolean;
|
|
10519
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10173
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10520
10174
|
groups?: (string | string[] | {
|
|
10521
|
-
newlinesBetween
|
|
10175
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10176
|
+
commentAbove?: string;
|
|
10522
10177
|
})[];
|
|
10523
10178
|
}];
|
|
10524
10179
|
// ----- perfectionist/sort-named-exports -----
|
|
@@ -10536,7 +10191,7 @@ type PerfectionistSortNamedExports = {
|
|
|
10536
10191
|
groupKind?: ("mixed" | "values-first" | "types-first");
|
|
10537
10192
|
ignoreAlias?: boolean;
|
|
10538
10193
|
customGroups?: ({
|
|
10539
|
-
newlinesInside?: ("always" | "never");
|
|
10194
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10540
10195
|
fallbackSort?: {
|
|
10541
10196
|
order?: ("asc" | "desc");
|
|
10542
10197
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10556,7 +10211,7 @@ type PerfectionistSortNamedExports = {
|
|
|
10556
10211
|
} | string));
|
|
10557
10212
|
}[];
|
|
10558
10213
|
} | {
|
|
10559
|
-
newlinesInside?: ("always" | "never");
|
|
10214
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10560
10215
|
fallbackSort?: {
|
|
10561
10216
|
order?: ("asc" | "desc");
|
|
10562
10217
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10597,9 +10252,10 @@ type PerfectionistSortNamedExports = {
|
|
|
10597
10252
|
} | string)));
|
|
10598
10253
|
});
|
|
10599
10254
|
partitionByNewLine?: boolean;
|
|
10600
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10255
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10601
10256
|
groups?: (string | string[] | {
|
|
10602
|
-
newlinesBetween
|
|
10257
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10258
|
+
commentAbove?: string;
|
|
10603
10259
|
})[];
|
|
10604
10260
|
}[];
|
|
10605
10261
|
// ----- perfectionist/sort-named-imports -----
|
|
@@ -10617,7 +10273,7 @@ type PerfectionistSortNamedImports = {
|
|
|
10617
10273
|
groupKind?: ("mixed" | "values-first" | "types-first");
|
|
10618
10274
|
ignoreAlias?: boolean;
|
|
10619
10275
|
customGroups?: ({
|
|
10620
|
-
newlinesInside?: ("always" | "never");
|
|
10276
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10621
10277
|
fallbackSort?: {
|
|
10622
10278
|
order?: ("asc" | "desc");
|
|
10623
10279
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10637,7 +10293,7 @@ type PerfectionistSortNamedImports = {
|
|
|
10637
10293
|
} | string));
|
|
10638
10294
|
}[];
|
|
10639
10295
|
} | {
|
|
10640
|
-
newlinesInside?: ("always" | "never");
|
|
10296
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10641
10297
|
fallbackSort?: {
|
|
10642
10298
|
order?: ("asc" | "desc");
|
|
10643
10299
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10678,9 +10334,10 @@ type PerfectionistSortNamedImports = {
|
|
|
10678
10334
|
} | string)));
|
|
10679
10335
|
});
|
|
10680
10336
|
partitionByNewLine?: boolean;
|
|
10681
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10337
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10682
10338
|
groups?: (string | string[] | {
|
|
10683
|
-
newlinesBetween
|
|
10339
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10340
|
+
commentAbove?: string;
|
|
10684
10341
|
})[];
|
|
10685
10342
|
}[];
|
|
10686
10343
|
// ----- perfectionist/sort-object-types -----
|
|
@@ -10699,7 +10356,7 @@ type PerfectionistSortObjectTypes = {
|
|
|
10699
10356
|
customGroups?: ({
|
|
10700
10357
|
[k: string]: (string | string[]) | undefined;
|
|
10701
10358
|
} | ({
|
|
10702
|
-
newlinesInside?: ("always" | "never");
|
|
10359
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10703
10360
|
fallbackSort?: {
|
|
10704
10361
|
order?: ("asc" | "desc");
|
|
10705
10362
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10728,7 +10385,7 @@ type PerfectionistSortObjectTypes = {
|
|
|
10728
10385
|
sortBy?: ("name" | "value");
|
|
10729
10386
|
}[];
|
|
10730
10387
|
} | {
|
|
10731
|
-
newlinesInside?: ("always" | "never");
|
|
10388
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10732
10389
|
fallbackSort?: {
|
|
10733
10390
|
order?: ("asc" | "desc");
|
|
10734
10391
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10795,7 +10452,7 @@ type PerfectionistSortObjectTypes = {
|
|
|
10795
10452
|
} | string)));
|
|
10796
10453
|
});
|
|
10797
10454
|
partitionByNewLine?: boolean;
|
|
10798
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10455
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10799
10456
|
ignorePattern?: (({
|
|
10800
10457
|
pattern: string;
|
|
10801
10458
|
flags?: string;
|
|
@@ -10805,7 +10462,8 @@ type PerfectionistSortObjectTypes = {
|
|
|
10805
10462
|
} | string));
|
|
10806
10463
|
sortBy?: ("name" | "value");
|
|
10807
10464
|
groups?: (string | string[] | {
|
|
10808
|
-
newlinesBetween
|
|
10465
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10466
|
+
commentAbove?: string;
|
|
10809
10467
|
})[];
|
|
10810
10468
|
}[];
|
|
10811
10469
|
// ----- perfectionist/sort-objects -----
|
|
@@ -10826,7 +10484,7 @@ type PerfectionistSortObjects = {
|
|
|
10826
10484
|
customGroups?: ({
|
|
10827
10485
|
[k: string]: (string | string[]) | undefined;
|
|
10828
10486
|
} | ({
|
|
10829
|
-
newlinesInside?: ("always" | "never");
|
|
10487
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10830
10488
|
fallbackSort?: {
|
|
10831
10489
|
order?: ("asc" | "desc");
|
|
10832
10490
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10853,7 +10511,7 @@ type PerfectionistSortObjects = {
|
|
|
10853
10511
|
} | string));
|
|
10854
10512
|
}[];
|
|
10855
10513
|
} | {
|
|
10856
|
-
newlinesInside?: ("always" | "never");
|
|
10514
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10857
10515
|
fallbackSort?: {
|
|
10858
10516
|
order?: ("asc" | "desc");
|
|
10859
10517
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10920,7 +10578,7 @@ type PerfectionistSortObjects = {
|
|
|
10920
10578
|
} | string)));
|
|
10921
10579
|
});
|
|
10922
10580
|
partitionByNewLine?: boolean;
|
|
10923
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10581
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10924
10582
|
ignorePattern?: (({
|
|
10925
10583
|
pattern: string;
|
|
10926
10584
|
flags?: string;
|
|
@@ -10929,7 +10587,8 @@ type PerfectionistSortObjects = {
|
|
|
10929
10587
|
flags?: string;
|
|
10930
10588
|
} | string));
|
|
10931
10589
|
groups?: (string | string[] | {
|
|
10932
|
-
newlinesBetween
|
|
10590
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10591
|
+
commentAbove?: string;
|
|
10933
10592
|
})[];
|
|
10934
10593
|
}[];
|
|
10935
10594
|
// ----- perfectionist/sort-sets -----
|
|
@@ -10946,7 +10605,7 @@ type PerfectionistSortSets = {
|
|
|
10946
10605
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10947
10606
|
groupKind?: ("mixed" | "literals-first" | "spreads-first");
|
|
10948
10607
|
customGroups?: ({
|
|
10949
|
-
newlinesInside?: ("always" | "never");
|
|
10608
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10950
10609
|
fallbackSort?: {
|
|
10951
10610
|
order?: ("asc" | "desc");
|
|
10952
10611
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -10965,7 +10624,7 @@ type PerfectionistSortSets = {
|
|
|
10965
10624
|
} | string));
|
|
10966
10625
|
}[];
|
|
10967
10626
|
} | {
|
|
10968
|
-
newlinesInside?: ("always" | "never");
|
|
10627
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10969
10628
|
fallbackSort?: {
|
|
10970
10629
|
order?: ("asc" | "desc");
|
|
10971
10630
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -11014,9 +10673,10 @@ type PerfectionistSortSets = {
|
|
|
11014
10673
|
} | string)));
|
|
11015
10674
|
});
|
|
11016
10675
|
partitionByNewLine?: boolean;
|
|
11017
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10676
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11018
10677
|
groups?: (string | string[] | {
|
|
11019
|
-
newlinesBetween
|
|
10678
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10679
|
+
commentAbove?: string;
|
|
11020
10680
|
})[];
|
|
11021
10681
|
}[];
|
|
11022
10682
|
// ----- perfectionist/sort-switch-case -----
|
|
@@ -11045,7 +10705,7 @@ type PerfectionistSortUnionTypes = {
|
|
|
11045
10705
|
order?: ("asc" | "desc");
|
|
11046
10706
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11047
10707
|
customGroups?: ({
|
|
11048
|
-
newlinesInside?: ("always" | "never");
|
|
10708
|
+
newlinesInside?: (("always" | "never") | number);
|
|
11049
10709
|
fallbackSort?: {
|
|
11050
10710
|
order?: ("asc" | "desc");
|
|
11051
10711
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -11064,7 +10724,7 @@ type PerfectionistSortUnionTypes = {
|
|
|
11064
10724
|
} | string));
|
|
11065
10725
|
}[];
|
|
11066
10726
|
} | {
|
|
11067
|
-
newlinesInside?: ("always" | "never");
|
|
10727
|
+
newlinesInside?: (("always" | "never") | number);
|
|
11068
10728
|
fallbackSort?: {
|
|
11069
10729
|
order?: ("asc" | "desc");
|
|
11070
10730
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -11104,9 +10764,10 @@ type PerfectionistSortUnionTypes = {
|
|
|
11104
10764
|
} | string)));
|
|
11105
10765
|
});
|
|
11106
10766
|
partitionByNewLine?: boolean;
|
|
11107
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10767
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11108
10768
|
groups?: (string | string[] | {
|
|
11109
|
-
newlinesBetween
|
|
10769
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10770
|
+
commentAbove?: string;
|
|
11110
10771
|
})[];
|
|
11111
10772
|
}[];
|
|
11112
10773
|
// ----- perfectionist/sort-variable-declarations -----
|
|
@@ -11122,7 +10783,7 @@ type PerfectionistSortVariableDeclarations = [] | [{
|
|
|
11122
10783
|
order?: ("asc" | "desc");
|
|
11123
10784
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11124
10785
|
customGroups?: ({
|
|
11125
|
-
newlinesInside?: ("always" | "never");
|
|
10786
|
+
newlinesInside?: (("always" | "never") | number);
|
|
11126
10787
|
fallbackSort?: {
|
|
11127
10788
|
order?: ("asc" | "desc");
|
|
11128
10789
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -11141,7 +10802,7 @@ type PerfectionistSortVariableDeclarations = [] | [{
|
|
|
11141
10802
|
} | string));
|
|
11142
10803
|
}[];
|
|
11143
10804
|
} | {
|
|
11144
|
-
newlinesInside?: ("always" | "never");
|
|
10805
|
+
newlinesInside?: (("always" | "never") | number);
|
|
11145
10806
|
fallbackSort?: {
|
|
11146
10807
|
order?: ("asc" | "desc");
|
|
11147
10808
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -11181,9 +10842,10 @@ type PerfectionistSortVariableDeclarations = [] | [{
|
|
|
11181
10842
|
} | string)));
|
|
11182
10843
|
});
|
|
11183
10844
|
partitionByNewLine?: boolean;
|
|
11184
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10845
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11185
10846
|
groups?: (string | string[] | {
|
|
11186
|
-
newlinesBetween
|
|
10847
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10848
|
+
commentAbove?: string;
|
|
11187
10849
|
})[];
|
|
11188
10850
|
}];
|
|
11189
10851
|
// ----- prefer-arrow-callback -----
|
|
@@ -11249,10 +10911,6 @@ type Quotes = [] | [("single" | "double" | "backtick")] | [("single" | "double"
|
|
|
11249
10911
|
})];
|
|
11250
10912
|
// ----- radix -----
|
|
11251
10913
|
type Radix = [] | [("always" | "as-needed")];
|
|
11252
|
-
// ----- react-compiler/react-compiler -----
|
|
11253
|
-
type ReactCompilerReactCompiler = [] | [{
|
|
11254
|
-
[k: string]: unknown | undefined;
|
|
11255
|
-
}];
|
|
11256
10914
|
// ----- react-dom/no-unknown-property -----
|
|
11257
10915
|
type ReactDomNoUnknownProperty = [] | [{
|
|
11258
10916
|
ignore?: string[];
|
|
@@ -11263,6 +10921,10 @@ type ReactHooksExhaustiveDeps = [] | [{
|
|
|
11263
10921
|
additionalHooks?: string;
|
|
11264
10922
|
enableDangerousAutofixThisMayCauseInfiniteLoops?: boolean;
|
|
11265
10923
|
}];
|
|
10924
|
+
// ----- react-hooks/react-compiler -----
|
|
10925
|
+
type ReactHooksReactCompiler = [] | [{
|
|
10926
|
+
[k: string]: unknown | undefined;
|
|
10927
|
+
}];
|
|
11266
10928
|
// ----- react-naming-convention/component-name -----
|
|
11267
10929
|
type ReactNamingConventionComponentName = [] | [(("PascalCase" | "CONSTANT_CASE") | {
|
|
11268
10930
|
allowAllCaps?: boolean;
|
|
@@ -11387,6 +11049,10 @@ type RegexpPreferLookaround = [] | [{
|
|
|
11387
11049
|
type RegexpPreferNamedReplacement = [] | [{
|
|
11388
11050
|
strictTypes?: boolean;
|
|
11389
11051
|
}];
|
|
11052
|
+
// ----- regexp/prefer-quantifier -----
|
|
11053
|
+
type RegexpPreferQuantifier = [] | [{
|
|
11054
|
+
allows?: string[];
|
|
11055
|
+
}];
|
|
11390
11056
|
// ----- regexp/prefer-range -----
|
|
11391
11057
|
type RegexpPreferRange = [] | [{
|
|
11392
11058
|
target?: (("all" | "alphanumeric") | [("all" | "alphanumeric")] | [("alphanumeric" | string), ...(("alphanumeric" | string))[]]);
|
|
@@ -11662,6 +11328,7 @@ type SveltePreferConst = [] | [{
|
|
|
11662
11328
|
destructuring?: ("any" | "all");
|
|
11663
11329
|
ignoreReadBeforeAssign?: boolean;
|
|
11664
11330
|
excludedRunes?: string[];
|
|
11331
|
+
[k: string]: unknown | undefined;
|
|
11665
11332
|
}];
|
|
11666
11333
|
// ----- svelte/require-event-prefix -----
|
|
11667
11334
|
type SvelteRequireEventPrefix = [] | [{
|
|
@@ -11792,6 +11459,10 @@ type TestConsistentTestIt = [] | [{
|
|
|
11792
11459
|
fn?: ("test" | "it");
|
|
11793
11460
|
withinDescribe?: ("test" | "it");
|
|
11794
11461
|
}];
|
|
11462
|
+
// ----- test/consistent-vitest-vi -----
|
|
11463
|
+
type TestConsistentVitestVi = [] | [{
|
|
11464
|
+
fn?: ("vi" | "vitest");
|
|
11465
|
+
}];
|
|
11795
11466
|
// ----- test/expect-expect -----
|
|
11796
11467
|
type TestExpectExpect = [] | [{
|
|
11797
11468
|
assertFunctionNames?: string[];
|
|
@@ -13957,7 +13628,7 @@ type VueNoRestrictedCustomEvent = (string | {
|
|
|
13957
13628
|
})[];
|
|
13958
13629
|
// ----- vue/no-restricted-html-elements -----
|
|
13959
13630
|
type VueNoRestrictedHtmlElements = (string | {
|
|
13960
|
-
element: string;
|
|
13631
|
+
element: (string | string[]);
|
|
13961
13632
|
message?: string;
|
|
13962
13633
|
})[];
|
|
13963
13634
|
// ----- vue/no-restricted-props -----
|
|
@@ -14301,6 +13972,7 @@ interface OptionsComponentExts {
|
|
|
14301
13972
|
*/
|
|
14302
13973
|
componentExts?: string[];
|
|
14303
13974
|
}
|
|
13975
|
+
interface OptionsUnicorn extends OptionsOverrides {}
|
|
14304
13976
|
interface OptionsTypeScriptParserOptions {
|
|
14305
13977
|
/**
|
|
14306
13978
|
* Additional parser options for TypeScript.
|
|
@@ -14522,7 +14194,7 @@ declare const defaultPluginRenaming: {
|
|
|
14522
14194
|
"@eslint-react/hooks-extra": string;
|
|
14523
14195
|
"@eslint-react/naming-convention": string;
|
|
14524
14196
|
"@typescript-eslint": string;
|
|
14525
|
-
"import-
|
|
14197
|
+
"import-lite": string;
|
|
14526
14198
|
n: string;
|
|
14527
14199
|
vitest: string;
|
|
14528
14200
|
yml: string;
|
|
@@ -14539,4 +14211,4 @@ declare const defaultPluginRenaming: {
|
|
|
14539
14211
|
*/
|
|
14540
14212
|
declare function defineConfig(options?: OptionsConfig & Omit<TypedFlatConfigItem, "files">, ...userConfigs: Awaitable<TypedFlatConfigItem | TypedFlatConfigItem[] | Linter.Config[]>[]): Promise<TypedFlatConfigItem[]>;
|
|
14541
14213
|
//#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 };
|
|
14214
|
+
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 };
|