@coderwyd/eslint-config 4.0.1 → 4.2.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 +14 -14
- package/dist/index.d.ts +528 -230
- package/dist/index.js +108 -12
- package/package.json +31 -28
package/dist/index.d.ts
CHANGED
|
@@ -199,6 +199,16 @@ interface RuleOptions {
|
|
|
199
199
|
* @see https://eslint.org/docs/latest/rules/curly
|
|
200
200
|
*/
|
|
201
201
|
'curly'?: Linter.RuleEntry<Curly>
|
|
202
|
+
/**
|
|
203
|
+
* Transforms the negation of a conjunction !(A && B) into the equivalent !A || !B according to De Morgan’s law
|
|
204
|
+
* @see https://github.com/azat-io/eslint-plugin-de-morgan/blob/main/docs/no-negated-conjunction.md
|
|
205
|
+
*/
|
|
206
|
+
'de-morgan/no-negated-conjunction'?: Linter.RuleEntry<[]>
|
|
207
|
+
/**
|
|
208
|
+
* Transforms the negation of a disjunction !(A || B) into the equivalent !A && !B according to De Morgan’s law
|
|
209
|
+
* @see https://github.com/azat-io/eslint-plugin-de-morgan/blob/main/docs/no-negated-disjunction.md
|
|
210
|
+
*/
|
|
211
|
+
'de-morgan/no-negated-disjunction'?: Linter.RuleEntry<[]>
|
|
202
212
|
/**
|
|
203
213
|
* Require `default` cases in `switch` statements
|
|
204
214
|
* @see https://eslint.org/docs/latest/rules/default-case
|
|
@@ -381,233 +391,233 @@ interface RuleOptions {
|
|
|
381
391
|
'implicit-arrow-linebreak'?: Linter.RuleEntry<ImplicitArrowLinebreak>
|
|
382
392
|
/**
|
|
383
393
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
384
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
394
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/consistent-type-specifier-style.md
|
|
385
395
|
*/
|
|
386
396
|
'import/consistent-type-specifier-style'?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>
|
|
387
397
|
/**
|
|
388
398
|
* Ensure a default export is present, given a default import.
|
|
389
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
399
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/default.md
|
|
390
400
|
*/
|
|
391
401
|
'import/default'?: Linter.RuleEntry<[]>
|
|
392
402
|
/**
|
|
393
403
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
394
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
404
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/dynamic-import-chunkname.md
|
|
395
405
|
*/
|
|
396
406
|
'import/dynamic-import-chunkname'?: Linter.RuleEntry<ImportDynamicImportChunkname>
|
|
397
407
|
/**
|
|
398
408
|
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
399
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
409
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/export.md
|
|
400
410
|
*/
|
|
401
411
|
'import/export'?: Linter.RuleEntry<[]>
|
|
402
412
|
/**
|
|
403
413
|
* Ensure all exports appear after other statements.
|
|
404
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
414
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/exports-last.md
|
|
405
415
|
*/
|
|
406
416
|
'import/exports-last'?: Linter.RuleEntry<[]>
|
|
407
417
|
/**
|
|
408
418
|
* Ensure consistent use of file extension within the import path.
|
|
409
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
419
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/extensions.md
|
|
410
420
|
*/
|
|
411
421
|
'import/extensions'?: Linter.RuleEntry<ImportExtensions>
|
|
412
422
|
/**
|
|
413
423
|
* Ensure all imports appear before other statements.
|
|
414
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
424
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/first.md
|
|
415
425
|
*/
|
|
416
426
|
'import/first'?: Linter.RuleEntry<ImportFirst>
|
|
417
427
|
/**
|
|
418
428
|
* Prefer named exports to be grouped together in a single export declaration.
|
|
419
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
429
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/group-exports.md
|
|
420
430
|
*/
|
|
421
431
|
'import/group-exports'?: Linter.RuleEntry<[]>
|
|
422
432
|
/**
|
|
423
433
|
* Replaced by `import-x/first`.
|
|
424
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
434
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/imports-first.md
|
|
425
435
|
* @deprecated
|
|
426
436
|
*/
|
|
427
437
|
'import/imports-first'?: Linter.RuleEntry<ImportImportsFirst>
|
|
428
438
|
/**
|
|
429
439
|
* Enforce the maximum number of dependencies a module can have.
|
|
430
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
440
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/max-dependencies.md
|
|
431
441
|
*/
|
|
432
442
|
'import/max-dependencies'?: Linter.RuleEntry<ImportMaxDependencies>
|
|
433
443
|
/**
|
|
434
444
|
* Ensure named imports correspond to a named export in the remote file.
|
|
435
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
445
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/named.md
|
|
436
446
|
*/
|
|
437
447
|
'import/named'?: Linter.RuleEntry<ImportNamed>
|
|
438
448
|
/**
|
|
439
449
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
440
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
450
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/namespace.md
|
|
441
451
|
*/
|
|
442
452
|
'import/namespace'?: Linter.RuleEntry<ImportNamespace>
|
|
443
453
|
/**
|
|
444
454
|
* Enforce a newline after import statements.
|
|
445
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
455
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/newline-after-import.md
|
|
446
456
|
*/
|
|
447
457
|
'import/newline-after-import'?: Linter.RuleEntry<ImportNewlineAfterImport>
|
|
448
458
|
/**
|
|
449
459
|
* Forbid import of modules using absolute paths.
|
|
450
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
460
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-absolute-path.md
|
|
451
461
|
*/
|
|
452
462
|
'import/no-absolute-path'?: Linter.RuleEntry<ImportNoAbsolutePath>
|
|
453
463
|
/**
|
|
454
464
|
* Forbid AMD `require` and `define` calls.
|
|
455
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
465
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-amd.md
|
|
456
466
|
*/
|
|
457
467
|
'import/no-amd'?: Linter.RuleEntry<[]>
|
|
458
468
|
/**
|
|
459
469
|
* Forbid anonymous values as default exports.
|
|
460
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
470
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-anonymous-default-export.md
|
|
461
471
|
*/
|
|
462
472
|
'import/no-anonymous-default-export'?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>
|
|
463
473
|
/**
|
|
464
474
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
465
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
475
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-commonjs.md
|
|
466
476
|
*/
|
|
467
477
|
'import/no-commonjs'?: Linter.RuleEntry<ImportNoCommonjs>
|
|
468
478
|
/**
|
|
469
479
|
* Forbid a module from importing a module with a dependency path back to itself.
|
|
470
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
480
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-cycle.md
|
|
471
481
|
*/
|
|
472
482
|
'import/no-cycle'?: Linter.RuleEntry<ImportNoCycle>
|
|
473
483
|
/**
|
|
474
484
|
* Forbid default exports.
|
|
475
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
485
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-default-export.md
|
|
476
486
|
*/
|
|
477
487
|
'import/no-default-export'?: Linter.RuleEntry<[]>
|
|
478
488
|
/**
|
|
479
489
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
480
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
490
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-deprecated.md
|
|
481
491
|
*/
|
|
482
492
|
'import/no-deprecated'?: Linter.RuleEntry<[]>
|
|
483
493
|
/**
|
|
484
494
|
* Forbid repeated import of the same module in multiple places.
|
|
485
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
495
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-duplicates.md
|
|
486
496
|
*/
|
|
487
497
|
'import/no-duplicates'?: Linter.RuleEntry<ImportNoDuplicates>
|
|
488
498
|
/**
|
|
489
499
|
* Forbid `require()` calls with expressions.
|
|
490
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
500
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-dynamic-require.md
|
|
491
501
|
*/
|
|
492
502
|
'import/no-dynamic-require'?: Linter.RuleEntry<ImportNoDynamicRequire>
|
|
493
503
|
/**
|
|
494
504
|
* Forbid empty named import blocks.
|
|
495
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
505
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-empty-named-blocks.md
|
|
496
506
|
*/
|
|
497
507
|
'import/no-empty-named-blocks'?: Linter.RuleEntry<[]>
|
|
498
508
|
/**
|
|
499
509
|
* Forbid the use of extraneous packages.
|
|
500
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
510
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-extraneous-dependencies.md
|
|
501
511
|
*/
|
|
502
512
|
'import/no-extraneous-dependencies'?: Linter.RuleEntry<ImportNoExtraneousDependencies>
|
|
503
513
|
/**
|
|
504
514
|
* Forbid import statements with CommonJS module.exports.
|
|
505
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
515
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-import-module-exports.md
|
|
506
516
|
*/
|
|
507
517
|
'import/no-import-module-exports'?: Linter.RuleEntry<ImportNoImportModuleExports>
|
|
508
518
|
/**
|
|
509
519
|
* Forbid importing the submodules of other modules.
|
|
510
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
520
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-internal-modules.md
|
|
511
521
|
*/
|
|
512
522
|
'import/no-internal-modules'?: Linter.RuleEntry<ImportNoInternalModules>
|
|
513
523
|
/**
|
|
514
524
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
515
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
525
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-mutable-exports.md
|
|
516
526
|
*/
|
|
517
527
|
'import/no-mutable-exports'?: Linter.RuleEntry<[]>
|
|
518
528
|
/**
|
|
519
529
|
* Forbid use of exported name as identifier of default export.
|
|
520
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
530
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-named-as-default.md
|
|
521
531
|
*/
|
|
522
532
|
'import/no-named-as-default'?: Linter.RuleEntry<[]>
|
|
523
533
|
/**
|
|
524
534
|
* Forbid use of exported name as property of default export.
|
|
525
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
535
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-named-as-default-member.md
|
|
526
536
|
*/
|
|
527
537
|
'import/no-named-as-default-member'?: Linter.RuleEntry<[]>
|
|
528
538
|
/**
|
|
529
539
|
* Forbid named default exports.
|
|
530
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
540
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-named-default.md
|
|
531
541
|
*/
|
|
532
542
|
'import/no-named-default'?: Linter.RuleEntry<[]>
|
|
533
543
|
/**
|
|
534
544
|
* Forbid named exports.
|
|
535
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
545
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-named-export.md
|
|
536
546
|
*/
|
|
537
547
|
'import/no-named-export'?: Linter.RuleEntry<[]>
|
|
538
548
|
/**
|
|
539
549
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
540
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
550
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-namespace.md
|
|
541
551
|
*/
|
|
542
552
|
'import/no-namespace'?: Linter.RuleEntry<ImportNoNamespace>
|
|
543
553
|
/**
|
|
544
554
|
* Forbid Node.js builtin modules.
|
|
545
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
555
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-nodejs-modules.md
|
|
546
556
|
*/
|
|
547
557
|
'import/no-nodejs-modules'?: Linter.RuleEntry<ImportNoNodejsModules>
|
|
548
558
|
/**
|
|
549
559
|
* Forbid importing packages through relative paths.
|
|
550
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
560
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-relative-packages.md
|
|
551
561
|
*/
|
|
552
562
|
'import/no-relative-packages'?: Linter.RuleEntry<ImportNoRelativePackages>
|
|
553
563
|
/**
|
|
554
564
|
* Forbid importing modules from parent directories.
|
|
555
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
565
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-relative-parent-imports.md
|
|
556
566
|
*/
|
|
557
567
|
'import/no-relative-parent-imports'?: Linter.RuleEntry<ImportNoRelativeParentImports>
|
|
558
568
|
/**
|
|
559
569
|
* Forbid importing a default export by a different name.
|
|
560
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
570
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-rename-default.md
|
|
561
571
|
*/
|
|
562
572
|
'import/no-rename-default'?: Linter.RuleEntry<ImportNoRenameDefault>
|
|
563
573
|
/**
|
|
564
574
|
* Enforce which files can be imported in a given folder.
|
|
565
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
575
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-restricted-paths.md
|
|
566
576
|
*/
|
|
567
577
|
'import/no-restricted-paths'?: Linter.RuleEntry<ImportNoRestrictedPaths>
|
|
568
578
|
/**
|
|
569
579
|
* Forbid a module from importing itself.
|
|
570
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
580
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-self-import.md
|
|
571
581
|
*/
|
|
572
582
|
'import/no-self-import'?: Linter.RuleEntry<[]>
|
|
573
583
|
/**
|
|
574
584
|
* Forbid unassigned imports.
|
|
575
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
585
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-unassigned-import.md
|
|
576
586
|
*/
|
|
577
587
|
'import/no-unassigned-import'?: Linter.RuleEntry<ImportNoUnassignedImport>
|
|
578
588
|
/**
|
|
579
589
|
* Ensure imports point to a file/module that can be resolved.
|
|
580
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
590
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-unresolved.md
|
|
581
591
|
*/
|
|
582
592
|
'import/no-unresolved'?: Linter.RuleEntry<ImportNoUnresolved>
|
|
583
593
|
/**
|
|
584
594
|
* Forbid modules without exports, or exports without matching import in another module.
|
|
585
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
595
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-unused-modules.md
|
|
586
596
|
*/
|
|
587
597
|
'import/no-unused-modules'?: Linter.RuleEntry<ImportNoUnusedModules>
|
|
588
598
|
/**
|
|
589
599
|
* Forbid unnecessary path segments in import and require statements.
|
|
590
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
600
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-useless-path-segments.md
|
|
591
601
|
*/
|
|
592
602
|
'import/no-useless-path-segments'?: Linter.RuleEntry<ImportNoUselessPathSegments>
|
|
593
603
|
/**
|
|
594
604
|
* Forbid webpack loader syntax in imports.
|
|
595
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
605
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-webpack-loader-syntax.md
|
|
596
606
|
*/
|
|
597
607
|
'import/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>
|
|
598
608
|
/**
|
|
599
609
|
* Enforce a convention in module import order.
|
|
600
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
610
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/order.md
|
|
601
611
|
*/
|
|
602
612
|
'import/order'?: Linter.RuleEntry<ImportOrder>
|
|
603
613
|
/**
|
|
604
614
|
* Prefer a default export if module exports a single name or multiple names.
|
|
605
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
615
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/prefer-default-export.md
|
|
606
616
|
*/
|
|
607
617
|
'import/prefer-default-export'?: Linter.RuleEntry<ImportPreferDefaultExport>
|
|
608
618
|
/**
|
|
609
619
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
610
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
620
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/unambiguous.md
|
|
611
621
|
*/
|
|
612
622
|
'import/unambiguous'?: Linter.RuleEntry<[]>
|
|
613
623
|
/**
|
|
@@ -2551,6 +2561,16 @@ interface RuleOptions {
|
|
|
2551
2561
|
* @see https://eslint-react.xyz/docs/rules/dom-no-find-dom-node
|
|
2552
2562
|
*/
|
|
2553
2563
|
'react-dom/no-find-dom-node'?: Linter.RuleEntry<[]>
|
|
2564
|
+
/**
|
|
2565
|
+
* warns against using `flushSync`
|
|
2566
|
+
* @see https://eslint-react.xyz/docs/rules/dom-no-flush-sync
|
|
2567
|
+
*/
|
|
2568
|
+
'react-dom/no-flush-sync'?: Linter.RuleEntry<[]>
|
|
2569
|
+
/**
|
|
2570
|
+
* replaces usages of 'ReactDom.hydrate()' with 'hydrateRoot()'
|
|
2571
|
+
* @see https://eslint-react.xyz/docs/rules/dom-no-hydrate
|
|
2572
|
+
*/
|
|
2573
|
+
'react-dom/no-hydrate'?: Linter.RuleEntry<[]>
|
|
2554
2574
|
/**
|
|
2555
2575
|
* enforce that button component have an explicit 'type' attribute
|
|
2556
2576
|
* @see https://eslint-react.xyz/docs/rules/dom-no-missing-button-type
|
|
@@ -2566,6 +2586,11 @@ interface RuleOptions {
|
|
|
2566
2586
|
* @see https://eslint-react.xyz/docs/rules/dom-no-namespace
|
|
2567
2587
|
*/
|
|
2568
2588
|
'react-dom/no-namespace'?: Linter.RuleEntry<[]>
|
|
2589
|
+
/**
|
|
2590
|
+
* replace usages of 'ReactDom.render()' with 'createRoot(node).render()'
|
|
2591
|
+
* @see https://eslint-react.xyz/docs/rules/dom-no-render
|
|
2592
|
+
*/
|
|
2593
|
+
'react-dom/no-render'?: Linter.RuleEntry<[]>
|
|
2569
2594
|
/**
|
|
2570
2595
|
* disallow usage of the return value of 'ReactDOM.render'
|
|
2571
2596
|
* @see https://eslint-react.xyz/docs/rules/dom-no-render-return-value
|
|
@@ -2591,6 +2616,11 @@ interface RuleOptions {
|
|
|
2591
2616
|
* @see https://eslint-react.xyz/docs/rules/dom-no-unsafe-target-blank
|
|
2592
2617
|
*/
|
|
2593
2618
|
'react-dom/no-unsafe-target-blank'?: Linter.RuleEntry<[]>
|
|
2619
|
+
/**
|
|
2620
|
+
* replace usages of 'ReactDom.render()' with 'createRoot(node).render()'
|
|
2621
|
+
* @see https://eslint-react.xyz/docs/rules/dom-no-use-form-state
|
|
2622
|
+
*/
|
|
2623
|
+
'react-dom/no-use-form-state'?: Linter.RuleEntry<[]>
|
|
2594
2624
|
/**
|
|
2595
2625
|
* disallow void elements (AKA self-closing elements) from having children
|
|
2596
2626
|
* @see https://eslint-react.xyz/docs/rules/dom-no-void-elements-with-children
|
|
@@ -2598,7 +2628,7 @@ interface RuleOptions {
|
|
|
2598
2628
|
'react-dom/no-void-elements-with-children'?: Linter.RuleEntry<[]>
|
|
2599
2629
|
/**
|
|
2600
2630
|
* enforce custom Hooks to use at least one other hook inside
|
|
2601
|
-
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-
|
|
2631
|
+
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-unnecessary-use-prefix
|
|
2602
2632
|
*/
|
|
2603
2633
|
'react-hooks-extra/ensure-custom-hooks-using-other-hooks'?: Linter.RuleEntry<[]>
|
|
2604
2634
|
/**
|
|
@@ -2623,7 +2653,7 @@ interface RuleOptions {
|
|
|
2623
2653
|
'react-hooks-extra/no-direct-set-state-in-use-layout-effect'?: Linter.RuleEntry<[]>
|
|
2624
2654
|
/**
|
|
2625
2655
|
* enforce custom Hooks to use at least one other hook inside
|
|
2626
|
-
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-
|
|
2656
|
+
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-unnecessary-use-prefix
|
|
2627
2657
|
*/
|
|
2628
2658
|
'react-hooks-extra/no-redundant-custom-hook'?: Linter.RuleEntry<[]>
|
|
2629
2659
|
/**
|
|
@@ -2638,7 +2668,12 @@ interface RuleOptions {
|
|
|
2638
2668
|
'react-hooks-extra/no-unnecessary-use-memo'?: Linter.RuleEntry<[]>
|
|
2639
2669
|
/**
|
|
2640
2670
|
* enforce custom Hooks to use at least one other hook inside
|
|
2641
|
-
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-
|
|
2671
|
+
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-unnecessary-use-prefix
|
|
2672
|
+
*/
|
|
2673
|
+
'react-hooks-extra/no-unnecessary-use-prefix'?: Linter.RuleEntry<[]>
|
|
2674
|
+
/**
|
|
2675
|
+
* enforce custom Hooks to use at least one other hook inside
|
|
2676
|
+
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-unnecessary-use-prefix
|
|
2642
2677
|
*/
|
|
2643
2678
|
'react-hooks-extra/no-useless-custom-hooks'?: Linter.RuleEntry<[]>
|
|
2644
2679
|
/**
|
|
@@ -2657,10 +2692,15 @@ interface RuleOptions {
|
|
|
2657
2692
|
*/
|
|
2658
2693
|
'react-hooks/rules-of-hooks'?: Linter.RuleEntry<[]>
|
|
2659
2694
|
/**
|
|
2660
|
-
* enforce
|
|
2695
|
+
* enforce naming convention for components
|
|
2661
2696
|
* @see https://eslint-react.xyz/docs/rules/naming-convention-component-name
|
|
2662
2697
|
*/
|
|
2663
2698
|
'react-naming-convention/component-name'?: Linter.RuleEntry<ReactNamingConventionComponentName>
|
|
2699
|
+
/**
|
|
2700
|
+
* enforce context name to be a valid component name with the suffix 'Context'
|
|
2701
|
+
* @see https://eslint-react.xyz/docs/rules/naming-convention-context-name
|
|
2702
|
+
*/
|
|
2703
|
+
'react-naming-convention/context-name'?: Linter.RuleEntry<[]>
|
|
2664
2704
|
/**
|
|
2665
2705
|
* enforce naming convention for JSX filenames
|
|
2666
2706
|
* @see https://eslint-react.xyz/docs/rules/naming-convention-filename
|
|
@@ -2709,7 +2749,7 @@ interface RuleOptions {
|
|
|
2709
2749
|
'react/avoid-shorthand-fragment'?: Linter.RuleEntry<[]>
|
|
2710
2750
|
/**
|
|
2711
2751
|
* require a 'ref' parameter to be set when using 'forwardRef'
|
|
2712
|
-
* @see https://eslint-react.xyz/docs/rules/
|
|
2752
|
+
* @see https://eslint-react.xyz/docs/rules/no-useless-forward-ref
|
|
2713
2753
|
*/
|
|
2714
2754
|
'react/ensure-forward-ref-using-ref'?: Linter.RuleEntry<[]>
|
|
2715
2755
|
/**
|
|
@@ -2728,7 +2768,7 @@ interface RuleOptions {
|
|
|
2728
2768
|
*/
|
|
2729
2769
|
'react/no-access-state-in-setstate'?: Linter.RuleEntry<[]>
|
|
2730
2770
|
/**
|
|
2731
|
-
* disallow using
|
|
2771
|
+
* disallow using an item's index in the array as its key
|
|
2732
2772
|
* @see https://eslint-react.xyz/docs/rules/no-array-index-key
|
|
2733
2773
|
*/
|
|
2734
2774
|
'react/no-array-index-key'?: Linter.RuleEntry<[]>
|
|
@@ -2788,22 +2828,22 @@ interface RuleOptions {
|
|
|
2788
2828
|
*/
|
|
2789
2829
|
'react/no-complicated-conditional-rendering'?: Linter.RuleEntry<[]>
|
|
2790
2830
|
/**
|
|
2791
|
-
*
|
|
2831
|
+
* replace usages of 'componentWillMount' with 'UNSAFE_componentWillMount'
|
|
2792
2832
|
* @see https://eslint-react.xyz/docs/rules/no-component-will-mount
|
|
2793
2833
|
*/
|
|
2794
2834
|
'react/no-component-will-mount'?: Linter.RuleEntry<[]>
|
|
2795
2835
|
/**
|
|
2796
|
-
*
|
|
2836
|
+
* replace usages of 'componentWillReceiveProps' with 'UNSAFE_componentWillReceiveProps'
|
|
2797
2837
|
* @see https://eslint-react.xyz/docs/rules/no-component-will-receive-props
|
|
2798
2838
|
*/
|
|
2799
2839
|
'react/no-component-will-receive-props'?: Linter.RuleEntry<[]>
|
|
2800
2840
|
/**
|
|
2801
|
-
*
|
|
2841
|
+
* replace usages of 'componentWillUpdate' with 'UNSAFE_componentWillUpdate'
|
|
2802
2842
|
* @see https://eslint-react.xyz/docs/rules/no-component-will-update
|
|
2803
2843
|
*/
|
|
2804
2844
|
'react/no-component-will-update'?: Linter.RuleEntry<[]>
|
|
2805
2845
|
/**
|
|
2806
|
-
*
|
|
2846
|
+
* replace usages of '<Context.Provider>' with '<Context>'
|
|
2807
2847
|
* @see https://eslint-react.xyz/docs/rules/no-context-provider
|
|
2808
2848
|
*/
|
|
2809
2849
|
'react/no-context-provider'?: Linter.RuleEntry<[]>
|
|
@@ -2833,7 +2873,7 @@ interface RuleOptions {
|
|
|
2833
2873
|
*/
|
|
2834
2874
|
'react/no-duplicate-key'?: Linter.RuleEntry<[]>
|
|
2835
2875
|
/**
|
|
2836
|
-
*
|
|
2876
|
+
* replace usages of 'forwardRef' with passing 'ref' as a prop
|
|
2837
2877
|
* @see https://eslint-react.xyz/docs/rules/no-forward-ref
|
|
2838
2878
|
*/
|
|
2839
2879
|
'react/no-forward-ref'?: Linter.RuleEntry<[]>
|
|
@@ -2863,8 +2903,13 @@ interface RuleOptions {
|
|
|
2863
2903
|
*/
|
|
2864
2904
|
'react/no-missing-key'?: Linter.RuleEntry<[]>
|
|
2865
2905
|
/**
|
|
2866
|
-
*
|
|
2867
|
-
* @see https://eslint-react.xyz/docs/rules/no-nested-
|
|
2906
|
+
* prevents nesting component definitions inside other components
|
|
2907
|
+
* @see https://eslint-react.xyz/docs/rules/no-nested-component-definitions
|
|
2908
|
+
*/
|
|
2909
|
+
'react/no-nested-component-definitions'?: Linter.RuleEntry<[]>
|
|
2910
|
+
/**
|
|
2911
|
+
* prevents nesting component definitions inside other components
|
|
2912
|
+
* @see https://eslint-react.xyz/docs/rules/no-nested-component-definitions
|
|
2868
2913
|
*/
|
|
2869
2914
|
'react/no-nested-components'?: Linter.RuleEntry<[]>
|
|
2870
2915
|
/**
|
|
@@ -2933,10 +2978,15 @@ interface RuleOptions {
|
|
|
2933
2978
|
*/
|
|
2934
2979
|
'react/no-unused-state'?: Linter.RuleEntry<[]>
|
|
2935
2980
|
/**
|
|
2936
|
-
*
|
|
2981
|
+
* replace usages of 'useContext' with 'use'
|
|
2937
2982
|
* @see https://eslint-react.xyz/docs/rules/no-use-context
|
|
2938
2983
|
*/
|
|
2939
2984
|
'react/no-use-context'?: Linter.RuleEntry<[]>
|
|
2985
|
+
/**
|
|
2986
|
+
* require a 'ref' parameter to be set when using 'forwardRef'
|
|
2987
|
+
* @see https://eslint-react.xyz/docs/rules/no-useless-forward-ref
|
|
2988
|
+
*/
|
|
2989
|
+
'react/no-useless-forward-ref'?: Linter.RuleEntry<[]>
|
|
2940
2990
|
/**
|
|
2941
2991
|
* disallow useless fragments
|
|
2942
2992
|
* @see https://eslint-react.xyz/docs/rules/no-useless-fragment
|
|
@@ -2958,12 +3008,12 @@ interface RuleOptions {
|
|
|
2958
3008
|
*/
|
|
2959
3009
|
'react/prefer-read-only-props'?: Linter.RuleEntry<[]>
|
|
2960
3010
|
/**
|
|
2961
|
-
* enforce
|
|
3011
|
+
* enforce the use of shorthand syntax for boolean attributes
|
|
2962
3012
|
* @see https://eslint-react.xyz/docs/rules/prefer-shorthand-boolean
|
|
2963
3013
|
*/
|
|
2964
3014
|
'react/prefer-shorthand-boolean'?: Linter.RuleEntry<[]>
|
|
2965
3015
|
/**
|
|
2966
|
-
* enforce
|
|
3016
|
+
* enforce the use of shorthand syntax for fragments
|
|
2967
3017
|
* @see https://eslint-react.xyz/docs/rules/prefer-shorthand-fragment
|
|
2968
3018
|
*/
|
|
2969
3019
|
'react/prefer-shorthand-fragment'?: Linter.RuleEntry<[]>
|
|
@@ -3503,6 +3553,11 @@ interface RuleOptions {
|
|
|
3503
3553
|
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/comment-directive/
|
|
3504
3554
|
*/
|
|
3505
3555
|
'svelte/comment-directive'?: Linter.RuleEntry<SvelteCommentDirective>
|
|
3556
|
+
/**
|
|
3557
|
+
* enforce a consistent style for CSS selectors
|
|
3558
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/consistent-selector-style/
|
|
3559
|
+
*/
|
|
3560
|
+
'svelte/consistent-selector-style'?: Linter.RuleEntry<SvelteConsistentSelectorStyle>
|
|
3506
3561
|
/**
|
|
3507
3562
|
* derived store should use same variable names between values and callback
|
|
3508
3563
|
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/derived-has-same-inputs-outputs/
|
|
@@ -3601,6 +3656,7 @@ interface RuleOptions {
|
|
|
3601
3656
|
/**
|
|
3602
3657
|
* disallow dynamic slot name
|
|
3603
3658
|
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-dynamic-slot-name/
|
|
3659
|
+
* @deprecated
|
|
3604
3660
|
*/
|
|
3605
3661
|
'svelte/no-dynamic-slot-name'?: Linter.RuleEntry<[]>
|
|
3606
3662
|
/**
|
|
@@ -3616,6 +3672,7 @@ interface RuleOptions {
|
|
|
3616
3672
|
/**
|
|
3617
3673
|
* disallow using goto() without the base path
|
|
3618
3674
|
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-goto-without-base/
|
|
3675
|
+
* @deprecated
|
|
3619
3676
|
*/
|
|
3620
3677
|
'svelte/no-goto-without-base'?: Linter.RuleEntry<[]>
|
|
3621
3678
|
/**
|
|
@@ -3643,6 +3700,11 @@ interface RuleOptions {
|
|
|
3643
3700
|
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-inspect/
|
|
3644
3701
|
*/
|
|
3645
3702
|
'svelte/no-inspect'?: Linter.RuleEntry<[]>
|
|
3703
|
+
/**
|
|
3704
|
+
* disallow using navigation (links, goto, pushState, replaceState) without the base path
|
|
3705
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-navigation-without-base/
|
|
3706
|
+
*/
|
|
3707
|
+
'svelte/no-navigation-without-base'?: Linter.RuleEntry<SvelteNoNavigationWithoutBase>
|
|
3646
3708
|
/**
|
|
3647
3709
|
* disallow use of not function in event handler
|
|
3648
3710
|
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-not-function-handler/
|
|
@@ -3653,6 +3715,11 @@ interface RuleOptions {
|
|
|
3653
3715
|
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-object-in-text-mustaches/
|
|
3654
3716
|
*/
|
|
3655
3717
|
'svelte/no-object-in-text-mustaches'?: Linter.RuleEntry<[]>
|
|
3718
|
+
/**
|
|
3719
|
+
* Checks for invalid raw HTML elements
|
|
3720
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-raw-special-elements/
|
|
3721
|
+
*/
|
|
3722
|
+
'svelte/no-raw-special-elements'?: Linter.RuleEntry<[]>
|
|
3656
3723
|
/**
|
|
3657
3724
|
* it's not necessary to define functions in reactive statements
|
|
3658
3725
|
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-reactive-functions/
|
|
@@ -3708,16 +3775,31 @@ interface RuleOptions {
|
|
|
3708
3775
|
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-unknown-style-directive-property/
|
|
3709
3776
|
*/
|
|
3710
3777
|
'svelte/no-unknown-style-directive-property'?: Linter.RuleEntry<SvelteNoUnknownStyleDirectiveProperty>
|
|
3778
|
+
/**
|
|
3779
|
+
* Disallow unnecessary $state wrapping of reactive classes
|
|
3780
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-unnecessary-state-wrap/
|
|
3781
|
+
*/
|
|
3782
|
+
'svelte/no-unnecessary-state-wrap'?: Linter.RuleEntry<SvelteNoUnnecessaryStateWrap>
|
|
3711
3783
|
/**
|
|
3712
3784
|
* disallow the use of a class in the template without a corresponding style
|
|
3713
3785
|
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-unused-class-name/
|
|
3714
3786
|
*/
|
|
3715
3787
|
'svelte/no-unused-class-name'?: Linter.RuleEntry<SvelteNoUnusedClassName>
|
|
3788
|
+
/**
|
|
3789
|
+
* Warns about defined Props properties that are unused
|
|
3790
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-unused-props/
|
|
3791
|
+
*/
|
|
3792
|
+
'svelte/no-unused-props'?: Linter.RuleEntry<SvelteNoUnusedProps>
|
|
3716
3793
|
/**
|
|
3717
3794
|
* disallow unused svelte-ignore comments
|
|
3718
3795
|
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-unused-svelte-ignore/
|
|
3719
3796
|
*/
|
|
3720
3797
|
'svelte/no-unused-svelte-ignore'?: Linter.RuleEntry<[]>
|
|
3798
|
+
/**
|
|
3799
|
+
* disallow explicit children snippet where it's not needed
|
|
3800
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-useless-children-snippet/
|
|
3801
|
+
*/
|
|
3802
|
+
'svelte/no-useless-children-snippet'?: Linter.RuleEntry<[]>
|
|
3721
3803
|
/**
|
|
3722
3804
|
* disallow unnecessary mustache interpolations
|
|
3723
3805
|
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-useless-mustaches/
|
|
@@ -3728,6 +3810,11 @@ interface RuleOptions {
|
|
|
3728
3810
|
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/prefer-class-directive/
|
|
3729
3811
|
*/
|
|
3730
3812
|
'svelte/prefer-class-directive'?: Linter.RuleEntry<SveltePreferClassDirective>
|
|
3813
|
+
/**
|
|
3814
|
+
* Require `const` declarations for variables that are never reassigned after declared
|
|
3815
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/prefer-const/
|
|
3816
|
+
*/
|
|
3817
|
+
'svelte/prefer-const'?: Linter.RuleEntry<SveltePreferConst>
|
|
3731
3818
|
/**
|
|
3732
3819
|
* destructure values from object stores for better change tracking & fewer redraws
|
|
3733
3820
|
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/prefer-destructured-store-props/
|
|
@@ -3808,6 +3895,11 @@ interface RuleOptions {
|
|
|
3808
3895
|
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/valid-prop-names-in-kit-pages/
|
|
3809
3896
|
*/
|
|
3810
3897
|
'svelte/valid-prop-names-in-kit-pages'?: Linter.RuleEntry<[]>
|
|
3898
|
+
/**
|
|
3899
|
+
* require valid style element parsing
|
|
3900
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/valid-style-parse/
|
|
3901
|
+
*/
|
|
3902
|
+
'svelte/valid-style-parse'?: Linter.RuleEntry<[]>
|
|
3811
3903
|
/**
|
|
3812
3904
|
* Enforce spacing around colons of switch statements
|
|
3813
3905
|
* @see https://eslint.org/docs/latest/rules/switch-colon-spacing
|
|
@@ -5643,12 +5735,6 @@ interface RuleOptions {
|
|
|
5643
5735
|
* @see https://eslint.vuejs.org/rules/component-options-name-casing.html
|
|
5644
5736
|
*/
|
|
5645
5737
|
'vue/component-options-name-casing'?: Linter.RuleEntry<VueComponentOptionsNameCasing>
|
|
5646
|
-
/**
|
|
5647
|
-
* enforce order of component top-level elements
|
|
5648
|
-
* @see https://eslint.vuejs.org/rules/component-tags-order.html
|
|
5649
|
-
* @deprecated
|
|
5650
|
-
*/
|
|
5651
|
-
'vue/component-tags-order'?: Linter.RuleEntry<VueComponentTagsOrder>
|
|
5652
5738
|
/**
|
|
5653
5739
|
* enforce specific casing for custom event name
|
|
5654
5740
|
* @see https://eslint.vuejs.org/rules/custom-event-name-casing.html
|
|
@@ -5715,7 +5801,7 @@ interface RuleOptions {
|
|
|
5715
5801
|
*/
|
|
5716
5802
|
'vue/html-closing-bracket-spacing'?: Linter.RuleEntry<VueHtmlClosingBracketSpacing>
|
|
5717
5803
|
/**
|
|
5718
|
-
* enforce unified line
|
|
5804
|
+
* enforce unified line break in HTML comments
|
|
5719
5805
|
* @see https://eslint.vuejs.org/rules/html-comment-content-newline.html
|
|
5720
5806
|
*/
|
|
5721
5807
|
'vue/html-comment-content-newline'?: Linter.RuleEntry<VueHtmlCommentContentNewline>
|
|
@@ -6025,11 +6111,15 @@ interface RuleOptions {
|
|
|
6025
6111
|
*/
|
|
6026
6112
|
'vue/no-extra-parens'?: Linter.RuleEntry<VueNoExtraParens>
|
|
6027
6113
|
/**
|
|
6028
|
-
*
|
|
6029
|
-
* @see https://eslint.vuejs.org/rules/no-
|
|
6030
|
-
|
|
6114
|
+
* Disallow shorthand type conversions in `<template>`
|
|
6115
|
+
* @see https://eslint.vuejs.org/rules/no-implicit-coercion.html
|
|
6116
|
+
*/
|
|
6117
|
+
'vue/no-implicit-coercion'?: Linter.RuleEntry<VueNoImplicitCoercion>
|
|
6118
|
+
/**
|
|
6119
|
+
* disallow importing Vue compiler macros
|
|
6120
|
+
* @see https://eslint.vuejs.org/rules/no-import-compiler-macros.html
|
|
6031
6121
|
*/
|
|
6032
|
-
'vue/no-
|
|
6122
|
+
'vue/no-import-compiler-macros'?: Linter.RuleEntry<[]>
|
|
6033
6123
|
/**
|
|
6034
6124
|
* disallow irregular whitespace in `.vue` files
|
|
6035
6125
|
* @see https://eslint.vuejs.org/rules/no-irregular-whitespace.html
|
|
@@ -6056,12 +6146,12 @@ interface RuleOptions {
|
|
|
6056
6146
|
*/
|
|
6057
6147
|
'vue/no-multi-spaces'?: Linter.RuleEntry<VueNoMultiSpaces>
|
|
6058
6148
|
/**
|
|
6059
|
-
* disallow
|
|
6149
|
+
* disallow passing multiple objects in an array to class
|
|
6060
6150
|
* @see https://eslint.vuejs.org/rules/no-multiple-objects-in-class.html
|
|
6061
6151
|
*/
|
|
6062
6152
|
'vue/no-multiple-objects-in-class'?: Linter.RuleEntry<[]>
|
|
6063
6153
|
/**
|
|
6064
|
-
* disallow
|
|
6154
|
+
* disallow passing multiple arguments to scoped slots
|
|
6065
6155
|
* @see https://eslint.vuejs.org/rules/no-multiple-slot-args.html
|
|
6066
6156
|
*/
|
|
6067
6157
|
'vue/no-multiple-slot-args'?: Linter.RuleEntry<[]>
|
|
@@ -6090,12 +6180,6 @@ interface RuleOptions {
|
|
|
6090
6180
|
* @see https://eslint.vuejs.org/rules/no-ref-as-operand.html
|
|
6091
6181
|
*/
|
|
6092
6182
|
'vue/no-ref-as-operand'?: Linter.RuleEntry<[]>
|
|
6093
|
-
/**
|
|
6094
|
-
* disallow usages of ref objects that can lead to loss of reactivity
|
|
6095
|
-
* @see https://eslint.vuejs.org/rules/no-ref-object-destructure.html
|
|
6096
|
-
* @deprecated
|
|
6097
|
-
*/
|
|
6098
|
-
'vue/no-ref-object-destructure'?: Linter.RuleEntry<[]>
|
|
6099
6183
|
/**
|
|
6100
6184
|
* disallow usages of ref objects that can lead to loss of reactivity
|
|
6101
6185
|
* @see https://eslint.vuejs.org/rules/no-ref-object-reactivity-loss.html
|
|
@@ -6186,12 +6270,6 @@ interface RuleOptions {
|
|
|
6186
6270
|
* @see https://eslint.vuejs.org/rules/no-root-v-if.html
|
|
6187
6271
|
*/
|
|
6188
6272
|
'vue/no-root-v-if'?: Linter.RuleEntry<[]>
|
|
6189
|
-
/**
|
|
6190
|
-
* disallow usages that lose the reactivity of `props` passed to `setup`
|
|
6191
|
-
* @see https://eslint.vuejs.org/rules/no-setup-props-destructure.html
|
|
6192
|
-
* @deprecated
|
|
6193
|
-
*/
|
|
6194
|
-
'vue/no-setup-props-destructure'?: Linter.RuleEntry<[]>
|
|
6195
6273
|
/**
|
|
6196
6274
|
* disallow usages that lose the reactivity of `props` passed to `setup`
|
|
6197
6275
|
* @see https://eslint.vuejs.org/rules/no-setup-props-reactivity-loss.html
|
|
@@ -6325,6 +6403,7 @@ interface RuleOptions {
|
|
|
6325
6403
|
/**
|
|
6326
6404
|
* disallow `key` attribute on `<template v-for>`
|
|
6327
6405
|
* @see https://eslint.vuejs.org/rules/no-v-for-template-key.html
|
|
6406
|
+
* @deprecated
|
|
6328
6407
|
*/
|
|
6329
6408
|
'vue/no-v-for-template-key'?: Linter.RuleEntry<[]>
|
|
6330
6409
|
/**
|
|
@@ -6340,6 +6419,7 @@ interface RuleOptions {
|
|
|
6340
6419
|
/**
|
|
6341
6420
|
* disallow adding an argument to `v-model` used in custom component
|
|
6342
6421
|
* @see https://eslint.vuejs.org/rules/no-v-model-argument.html
|
|
6422
|
+
* @deprecated
|
|
6343
6423
|
*/
|
|
6344
6424
|
'vue/no-v-model-argument'?: Linter.RuleEntry<[]>
|
|
6345
6425
|
/**
|
|
@@ -6572,12 +6652,6 @@ interface RuleOptions {
|
|
|
6572
6652
|
* @see https://eslint.vuejs.org/rules/script-indent.html
|
|
6573
6653
|
*/
|
|
6574
6654
|
'vue/script-indent'?: Linter.RuleEntry<VueScriptIndent>
|
|
6575
|
-
/**
|
|
6576
|
-
* prevent `<script setup>` variables used in `<template>` to be marked as unused
|
|
6577
|
-
* @see https://eslint.vuejs.org/rules/script-setup-uses-vars.html
|
|
6578
|
-
* @deprecated
|
|
6579
|
-
*/
|
|
6580
|
-
'vue/script-setup-uses-vars'?: Linter.RuleEntry<[]>
|
|
6581
6655
|
/**
|
|
6582
6656
|
* require a line break before and after the contents of a singleline element
|
|
6583
6657
|
* @see https://eslint.vuejs.org/rules/singleline-html-element-content-newline.html
|
|
@@ -6648,12 +6722,6 @@ interface RuleOptions {
|
|
|
6648
6722
|
* @see https://eslint.vuejs.org/rules/v-on-event-hyphenation.html
|
|
6649
6723
|
*/
|
|
6650
6724
|
'vue/v-on-event-hyphenation'?: Linter.RuleEntry<VueVOnEventHyphenation>
|
|
6651
|
-
/**
|
|
6652
|
-
* enforce or forbid parentheses after method calls without arguments in `v-on` directives
|
|
6653
|
-
* @see https://eslint.vuejs.org/rules/v-on-function-call.html
|
|
6654
|
-
* @deprecated
|
|
6655
|
-
*/
|
|
6656
|
-
'vue/v-on-function-call'?: Linter.RuleEntry<VueVOnFunctionCall>
|
|
6657
6725
|
/**
|
|
6658
6726
|
* enforce writing style for handlers in `v-on` directives
|
|
6659
6727
|
* @see https://eslint.vuejs.org/rules/v-on-handler-style.html
|
|
@@ -6692,6 +6760,7 @@ interface RuleOptions {
|
|
|
6692
6760
|
/**
|
|
6693
6761
|
* require valid keys in model option
|
|
6694
6762
|
* @see https://eslint.vuejs.org/rules/valid-model-definition.html
|
|
6763
|
+
* @deprecated
|
|
6695
6764
|
*/
|
|
6696
6765
|
'vue/valid-model-definition'?: Linter.RuleEntry<[]>
|
|
6697
6766
|
/**
|
|
@@ -6712,6 +6781,7 @@ interface RuleOptions {
|
|
|
6712
6781
|
/**
|
|
6713
6782
|
* enforce valid `.sync` modifier on `v-bind` directives
|
|
6714
6783
|
* @see https://eslint.vuejs.org/rules/valid-v-bind-sync.html
|
|
6784
|
+
* @deprecated
|
|
6715
6785
|
*/
|
|
6716
6786
|
'vue/valid-v-bind-sync'?: Linter.RuleEntry<[]>
|
|
6717
6787
|
/**
|
|
@@ -7079,7 +7149,7 @@ type IdMatch = []|[string]|[string, {
|
|
|
7079
7149
|
// ----- implicit-arrow-linebreak -----
|
|
7080
7150
|
type ImplicitArrowLinebreak = []|[("beside" | "below")]
|
|
7081
7151
|
// ----- import/consistent-type-specifier-style -----
|
|
7082
|
-
type ImportConsistentTypeSpecifierStyle = []|[("prefer-
|
|
7152
|
+
type ImportConsistentTypeSpecifierStyle = []|[("prefer-top-level" | "prefer-inline")]
|
|
7083
7153
|
// ----- import/dynamic-import-chunkname -----
|
|
7084
7154
|
type ImportDynamicImportChunkname = []|[{
|
|
7085
7155
|
importFunctions?: string[]
|
|
@@ -9357,8 +9427,6 @@ type PaddingLineBetweenStatements = {
|
|
|
9357
9427
|
// ----- perfectionist/sort-array-includes -----
|
|
9358
9428
|
type PerfectionistSortArrayIncludes = {
|
|
9359
9429
|
|
|
9360
|
-
specialCharacters?: ("remove" | "trim" | "keep")
|
|
9361
|
-
|
|
9362
9430
|
fallbackSort?: {
|
|
9363
9431
|
|
|
9364
9432
|
order?: ("asc" | "desc")
|
|
@@ -9367,6 +9435,8 @@ type PerfectionistSortArrayIncludes = {
|
|
|
9367
9435
|
[k: string]: unknown | undefined
|
|
9368
9436
|
}
|
|
9369
9437
|
|
|
9438
|
+
specialCharacters?: ("remove" | "trim" | "keep")
|
|
9439
|
+
|
|
9370
9440
|
ignoreCase?: boolean
|
|
9371
9441
|
|
|
9372
9442
|
alphabet?: string
|
|
@@ -9381,13 +9451,21 @@ type PerfectionistSortArrayIncludes = {
|
|
|
9381
9451
|
|
|
9382
9452
|
customGroups?: ({
|
|
9383
9453
|
|
|
9384
|
-
|
|
9454
|
+
newlinesInside?: ("always" | "never")
|
|
9385
9455
|
|
|
9386
|
-
|
|
9456
|
+
fallbackSort?: {
|
|
9457
|
+
|
|
9458
|
+
order?: ("asc" | "desc")
|
|
9459
|
+
|
|
9460
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
9461
|
+
[k: string]: unknown | undefined
|
|
9462
|
+
}
|
|
9387
9463
|
|
|
9388
|
-
|
|
9464
|
+
groupName?: string
|
|
9389
9465
|
|
|
9390
|
-
|
|
9466
|
+
order?: ("asc" | "desc")
|
|
9467
|
+
|
|
9468
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
9391
9469
|
anyOf?: {
|
|
9392
9470
|
|
|
9393
9471
|
selector?: ("literal" | "spread")
|
|
@@ -9402,13 +9480,21 @@ type PerfectionistSortArrayIncludes = {
|
|
|
9402
9480
|
}[]
|
|
9403
9481
|
} | {
|
|
9404
9482
|
|
|
9405
|
-
|
|
9483
|
+
newlinesInside?: ("always" | "never")
|
|
9406
9484
|
|
|
9407
|
-
|
|
9485
|
+
fallbackSort?: {
|
|
9486
|
+
|
|
9487
|
+
order?: ("asc" | "desc")
|
|
9488
|
+
|
|
9489
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
9490
|
+
[k: string]: unknown | undefined
|
|
9491
|
+
}
|
|
9408
9492
|
|
|
9409
|
-
|
|
9493
|
+
groupName?: string
|
|
9410
9494
|
|
|
9411
|
-
|
|
9495
|
+
order?: ("asc" | "desc")
|
|
9496
|
+
|
|
9497
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
9412
9498
|
|
|
9413
9499
|
selector?: ("literal" | "spread")
|
|
9414
9500
|
|
|
@@ -9466,8 +9552,6 @@ type PerfectionistSortArrayIncludes = {
|
|
|
9466
9552
|
// ----- perfectionist/sort-classes -----
|
|
9467
9553
|
type PerfectionistSortClasses = []|[{
|
|
9468
9554
|
|
|
9469
|
-
specialCharacters?: ("remove" | "trim" | "keep")
|
|
9470
|
-
|
|
9471
9555
|
fallbackSort?: {
|
|
9472
9556
|
|
|
9473
9557
|
order?: ("asc" | "desc")
|
|
@@ -9476,6 +9560,8 @@ type PerfectionistSortClasses = []|[{
|
|
|
9476
9560
|
[k: string]: unknown | undefined
|
|
9477
9561
|
}
|
|
9478
9562
|
|
|
9563
|
+
specialCharacters?: ("remove" | "trim" | "keep")
|
|
9564
|
+
|
|
9479
9565
|
ignoreCase?: boolean
|
|
9480
9566
|
|
|
9481
9567
|
alphabet?: string
|
|
@@ -9488,13 +9574,21 @@ type PerfectionistSortClasses = []|[{
|
|
|
9488
9574
|
|
|
9489
9575
|
customGroups?: ({
|
|
9490
9576
|
|
|
9491
|
-
|
|
9577
|
+
newlinesInside?: ("always" | "never")
|
|
9578
|
+
|
|
9579
|
+
fallbackSort?: {
|
|
9580
|
+
|
|
9581
|
+
order?: ("asc" | "desc")
|
|
9582
|
+
|
|
9583
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
9584
|
+
[k: string]: unknown | undefined
|
|
9585
|
+
}
|
|
9492
9586
|
|
|
9493
|
-
|
|
9587
|
+
groupName?: string
|
|
9494
9588
|
|
|
9495
|
-
order?: ("
|
|
9589
|
+
order?: ("asc" | "desc")
|
|
9496
9590
|
|
|
9497
|
-
|
|
9591
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
9498
9592
|
anyOf?: {
|
|
9499
9593
|
|
|
9500
9594
|
modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[]
|
|
@@ -9527,13 +9621,21 @@ type PerfectionistSortClasses = []|[{
|
|
|
9527
9621
|
}[]
|
|
9528
9622
|
} | {
|
|
9529
9623
|
|
|
9530
|
-
|
|
9624
|
+
newlinesInside?: ("always" | "never")
|
|
9625
|
+
|
|
9626
|
+
fallbackSort?: {
|
|
9627
|
+
|
|
9628
|
+
order?: ("asc" | "desc")
|
|
9629
|
+
|
|
9630
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
9631
|
+
[k: string]: unknown | undefined
|
|
9632
|
+
}
|
|
9531
9633
|
|
|
9532
|
-
|
|
9634
|
+
groupName?: string
|
|
9533
9635
|
|
|
9534
|
-
order?: ("
|
|
9636
|
+
order?: ("asc" | "desc")
|
|
9535
9637
|
|
|
9536
|
-
|
|
9638
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
9537
9639
|
|
|
9538
9640
|
modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[]
|
|
9539
9641
|
|
|
@@ -9607,8 +9709,6 @@ type PerfectionistSortClasses = []|[{
|
|
|
9607
9709
|
// ----- perfectionist/sort-decorators -----
|
|
9608
9710
|
type PerfectionistSortDecorators = []|[{
|
|
9609
9711
|
|
|
9610
|
-
specialCharacters?: ("remove" | "trim" | "keep")
|
|
9611
|
-
|
|
9612
9712
|
fallbackSort?: {
|
|
9613
9713
|
|
|
9614
9714
|
order?: ("asc" | "desc")
|
|
@@ -9617,6 +9717,8 @@ type PerfectionistSortDecorators = []|[{
|
|
|
9617
9717
|
[k: string]: unknown | undefined
|
|
9618
9718
|
}
|
|
9619
9719
|
|
|
9720
|
+
specialCharacters?: ("remove" | "trim" | "keep")
|
|
9721
|
+
|
|
9620
9722
|
ignoreCase?: boolean
|
|
9621
9723
|
|
|
9622
9724
|
alphabet?: string
|
|
@@ -9672,8 +9774,6 @@ type PerfectionistSortDecorators = []|[{
|
|
|
9672
9774
|
// ----- perfectionist/sort-enums -----
|
|
9673
9775
|
type PerfectionistSortEnums = []|[{
|
|
9674
9776
|
|
|
9675
|
-
specialCharacters?: ("remove" | "trim" | "keep")
|
|
9676
|
-
|
|
9677
9777
|
fallbackSort?: {
|
|
9678
9778
|
|
|
9679
9779
|
order?: ("asc" | "desc")
|
|
@@ -9682,6 +9782,8 @@ type PerfectionistSortEnums = []|[{
|
|
|
9682
9782
|
[k: string]: unknown | undefined
|
|
9683
9783
|
}
|
|
9684
9784
|
|
|
9785
|
+
specialCharacters?: ("remove" | "trim" | "keep")
|
|
9786
|
+
|
|
9685
9787
|
ignoreCase?: boolean
|
|
9686
9788
|
|
|
9687
9789
|
alphabet?: string
|
|
@@ -9697,13 +9799,21 @@ type PerfectionistSortEnums = []|[{
|
|
|
9697
9799
|
[k: string]: (string | string[]) | undefined
|
|
9698
9800
|
} | ({
|
|
9699
9801
|
|
|
9700
|
-
|
|
9802
|
+
newlinesInside?: ("always" | "never")
|
|
9701
9803
|
|
|
9702
|
-
|
|
9804
|
+
fallbackSort?: {
|
|
9805
|
+
|
|
9806
|
+
order?: ("asc" | "desc")
|
|
9807
|
+
|
|
9808
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
9809
|
+
[k: string]: unknown | undefined
|
|
9810
|
+
}
|
|
9703
9811
|
|
|
9704
|
-
|
|
9812
|
+
groupName?: string
|
|
9705
9813
|
|
|
9706
|
-
|
|
9814
|
+
order?: ("asc" | "desc")
|
|
9815
|
+
|
|
9816
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
9707
9817
|
anyOf?: {
|
|
9708
9818
|
|
|
9709
9819
|
elementValuePattern?: (({
|
|
@@ -9724,13 +9834,21 @@ type PerfectionistSortEnums = []|[{
|
|
|
9724
9834
|
}[]
|
|
9725
9835
|
} | {
|
|
9726
9836
|
|
|
9727
|
-
|
|
9837
|
+
newlinesInside?: ("always" | "never")
|
|
9728
9838
|
|
|
9729
|
-
|
|
9839
|
+
fallbackSort?: {
|
|
9840
|
+
|
|
9841
|
+
order?: ("asc" | "desc")
|
|
9842
|
+
|
|
9843
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
9844
|
+
[k: string]: unknown | undefined
|
|
9845
|
+
}
|
|
9730
9846
|
|
|
9731
|
-
|
|
9847
|
+
groupName?: string
|
|
9732
9848
|
|
|
9733
|
-
|
|
9849
|
+
order?: ("asc" | "desc")
|
|
9850
|
+
|
|
9851
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
9734
9852
|
|
|
9735
9853
|
elementValuePattern?: (({
|
|
9736
9854
|
pattern?: string
|
|
@@ -9786,8 +9904,6 @@ type PerfectionistSortEnums = []|[{
|
|
|
9786
9904
|
// ----- perfectionist/sort-exports -----
|
|
9787
9905
|
type PerfectionistSortExports = []|[{
|
|
9788
9906
|
|
|
9789
|
-
specialCharacters?: ("remove" | "trim" | "keep")
|
|
9790
|
-
|
|
9791
9907
|
fallbackSort?: {
|
|
9792
9908
|
|
|
9793
9909
|
order?: ("asc" | "desc")
|
|
@@ -9796,6 +9912,8 @@ type PerfectionistSortExports = []|[{
|
|
|
9796
9912
|
[k: string]: unknown | undefined
|
|
9797
9913
|
}
|
|
9798
9914
|
|
|
9915
|
+
specialCharacters?: ("remove" | "trim" | "keep")
|
|
9916
|
+
|
|
9799
9917
|
ignoreCase?: boolean
|
|
9800
9918
|
|
|
9801
9919
|
alphabet?: string
|
|
@@ -9836,8 +9954,6 @@ type PerfectionistSortExports = []|[{
|
|
|
9836
9954
|
// ----- perfectionist/sort-heritage-clauses -----
|
|
9837
9955
|
type PerfectionistSortHeritageClauses = []|[{
|
|
9838
9956
|
|
|
9839
|
-
specialCharacters?: ("remove" | "trim" | "keep")
|
|
9840
|
-
|
|
9841
9957
|
fallbackSort?: {
|
|
9842
9958
|
|
|
9843
9959
|
order?: ("asc" | "desc")
|
|
@@ -9846,6 +9962,8 @@ type PerfectionistSortHeritageClauses = []|[{
|
|
|
9846
9962
|
[k: string]: unknown | undefined
|
|
9847
9963
|
}
|
|
9848
9964
|
|
|
9965
|
+
specialCharacters?: ("remove" | "trim" | "keep")
|
|
9966
|
+
|
|
9849
9967
|
ignoreCase?: boolean
|
|
9850
9968
|
|
|
9851
9969
|
alphabet?: string
|
|
@@ -9869,8 +9987,6 @@ type PerfectionistSortHeritageClauses = []|[{
|
|
|
9869
9987
|
type PerfectionistSortImports = []|[_PerfectionistSortImportsSortImports]
|
|
9870
9988
|
type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLengthRequiresLineLengthType & {
|
|
9871
9989
|
|
|
9872
|
-
specialCharacters?: ("remove" | "trim" | "keep")
|
|
9873
|
-
|
|
9874
9990
|
fallbackSort?: {
|
|
9875
9991
|
|
|
9876
9992
|
order?: ("asc" | "desc")
|
|
@@ -9879,6 +9995,8 @@ type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLen
|
|
|
9879
9995
|
[k: string]: unknown | undefined
|
|
9880
9996
|
}
|
|
9881
9997
|
|
|
9998
|
+
specialCharacters?: ("remove" | "trim" | "keep")
|
|
9999
|
+
|
|
9882
10000
|
ignoreCase?: boolean
|
|
9883
10001
|
|
|
9884
10002
|
alphabet?: string
|
|
@@ -9958,8 +10076,6 @@ interface _PerfectionistSortImports_IsLineLength {
|
|
|
9958
10076
|
// ----- perfectionist/sort-interfaces -----
|
|
9959
10077
|
type PerfectionistSortInterfaces = {
|
|
9960
10078
|
|
|
9961
|
-
specialCharacters?: ("remove" | "trim" | "keep")
|
|
9962
|
-
|
|
9963
10079
|
fallbackSort?: {
|
|
9964
10080
|
|
|
9965
10081
|
order?: ("asc" | "desc")
|
|
@@ -9968,6 +10084,8 @@ type PerfectionistSortInterfaces = {
|
|
|
9968
10084
|
[k: string]: unknown | undefined
|
|
9969
10085
|
}
|
|
9970
10086
|
|
|
10087
|
+
specialCharacters?: ("remove" | "trim" | "keep")
|
|
10088
|
+
|
|
9971
10089
|
ignoreCase?: boolean
|
|
9972
10090
|
|
|
9973
10091
|
alphabet?: string
|
|
@@ -9981,19 +10099,36 @@ type PerfectionistSortInterfaces = {
|
|
|
9981
10099
|
[k: string]: (string | string[]) | undefined
|
|
9982
10100
|
} | ({
|
|
9983
10101
|
|
|
9984
|
-
|
|
10102
|
+
newlinesInside?: ("always" | "never")
|
|
9985
10103
|
|
|
9986
|
-
|
|
10104
|
+
fallbackSort?: {
|
|
10105
|
+
|
|
10106
|
+
order?: ("asc" | "desc")
|
|
10107
|
+
|
|
10108
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10109
|
+
sortBy?: ("name" | "value")
|
|
10110
|
+
[k: string]: unknown | undefined
|
|
10111
|
+
}
|
|
9987
10112
|
|
|
9988
|
-
|
|
10113
|
+
groupName?: string
|
|
9989
10114
|
|
|
9990
|
-
|
|
10115
|
+
order?: ("asc" | "desc")
|
|
10116
|
+
|
|
10117
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
9991
10118
|
anyOf?: {
|
|
9992
10119
|
|
|
9993
10120
|
modifiers?: ("optional" | "required" | "multiline")[]
|
|
9994
10121
|
|
|
9995
10122
|
selector?: ("index-signature" | "member" | "method" | "multiline" | "property")
|
|
9996
10123
|
|
|
10124
|
+
elementValuePattern?: (({
|
|
10125
|
+
pattern?: string
|
|
10126
|
+
flags?: string
|
|
10127
|
+
} | string)[] | ({
|
|
10128
|
+
pattern?: string
|
|
10129
|
+
flags?: string
|
|
10130
|
+
} | string))
|
|
10131
|
+
|
|
9997
10132
|
elementNamePattern?: (({
|
|
9998
10133
|
pattern?: string
|
|
9999
10134
|
flags?: string
|
|
@@ -10001,21 +10136,39 @@ type PerfectionistSortInterfaces = {
|
|
|
10001
10136
|
pattern?: string
|
|
10002
10137
|
flags?: string
|
|
10003
10138
|
} | string))
|
|
10139
|
+
sortBy?: ("name" | "value")
|
|
10004
10140
|
}[]
|
|
10005
10141
|
} | {
|
|
10006
10142
|
|
|
10007
|
-
|
|
10143
|
+
newlinesInside?: ("always" | "never")
|
|
10008
10144
|
|
|
10009
|
-
|
|
10145
|
+
fallbackSort?: {
|
|
10146
|
+
|
|
10147
|
+
order?: ("asc" | "desc")
|
|
10148
|
+
|
|
10149
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10150
|
+
sortBy?: ("name" | "value")
|
|
10151
|
+
[k: string]: unknown | undefined
|
|
10152
|
+
}
|
|
10010
10153
|
|
|
10011
|
-
|
|
10154
|
+
groupName?: string
|
|
10012
10155
|
|
|
10013
|
-
|
|
10156
|
+
order?: ("asc" | "desc")
|
|
10157
|
+
|
|
10158
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10014
10159
|
|
|
10015
10160
|
modifiers?: ("optional" | "required" | "multiline")[]
|
|
10016
10161
|
|
|
10017
10162
|
selector?: ("index-signature" | "member" | "method" | "multiline" | "property")
|
|
10018
10163
|
|
|
10164
|
+
elementValuePattern?: (({
|
|
10165
|
+
pattern?: string
|
|
10166
|
+
flags?: string
|
|
10167
|
+
} | string)[] | ({
|
|
10168
|
+
pattern?: string
|
|
10169
|
+
flags?: string
|
|
10170
|
+
} | string))
|
|
10171
|
+
|
|
10019
10172
|
elementNamePattern?: (({
|
|
10020
10173
|
pattern?: string
|
|
10021
10174
|
flags?: string
|
|
@@ -10023,6 +10176,7 @@ type PerfectionistSortInterfaces = {
|
|
|
10023
10176
|
pattern?: string
|
|
10024
10177
|
flags?: string
|
|
10025
10178
|
} | string))
|
|
10179
|
+
sortBy?: ("name" | "value")
|
|
10026
10180
|
})[])
|
|
10027
10181
|
useConfigurationIf?: {
|
|
10028
10182
|
|
|
@@ -10079,6 +10233,7 @@ type PerfectionistSortInterfaces = {
|
|
|
10079
10233
|
pattern?: string
|
|
10080
10234
|
flags?: string
|
|
10081
10235
|
} | string))
|
|
10236
|
+
sortBy?: ("name" | "value")
|
|
10082
10237
|
|
|
10083
10238
|
groups?: (string | string[] | {
|
|
10084
10239
|
|
|
@@ -10088,8 +10243,6 @@ type PerfectionistSortInterfaces = {
|
|
|
10088
10243
|
// ----- perfectionist/sort-intersection-types -----
|
|
10089
10244
|
type PerfectionistSortIntersectionTypes = []|[{
|
|
10090
10245
|
|
|
10091
|
-
specialCharacters?: ("remove" | "trim" | "keep")
|
|
10092
|
-
|
|
10093
10246
|
fallbackSort?: {
|
|
10094
10247
|
|
|
10095
10248
|
order?: ("asc" | "desc")
|
|
@@ -10098,6 +10251,8 @@ type PerfectionistSortIntersectionTypes = []|[{
|
|
|
10098
10251
|
[k: string]: unknown | undefined
|
|
10099
10252
|
}
|
|
10100
10253
|
|
|
10254
|
+
specialCharacters?: ("remove" | "trim" | "keep")
|
|
10255
|
+
|
|
10101
10256
|
ignoreCase?: boolean
|
|
10102
10257
|
|
|
10103
10258
|
alphabet?: string
|
|
@@ -10143,8 +10298,6 @@ type PerfectionistSortIntersectionTypes = []|[{
|
|
|
10143
10298
|
// ----- perfectionist/sort-jsx-props -----
|
|
10144
10299
|
type PerfectionistSortJsxProps = {
|
|
10145
10300
|
|
|
10146
|
-
specialCharacters?: ("remove" | "trim" | "keep")
|
|
10147
|
-
|
|
10148
10301
|
fallbackSort?: {
|
|
10149
10302
|
|
|
10150
10303
|
order?: ("asc" | "desc")
|
|
@@ -10153,6 +10306,8 @@ type PerfectionistSortJsxProps = {
|
|
|
10153
10306
|
[k: string]: unknown | undefined
|
|
10154
10307
|
}
|
|
10155
10308
|
|
|
10309
|
+
specialCharacters?: ("remove" | "trim" | "keep")
|
|
10310
|
+
|
|
10156
10311
|
ignoreCase?: boolean
|
|
10157
10312
|
|
|
10158
10313
|
alphabet?: string
|
|
@@ -10205,8 +10360,6 @@ type PerfectionistSortJsxProps = {
|
|
|
10205
10360
|
// ----- perfectionist/sort-maps -----
|
|
10206
10361
|
type PerfectionistSortMaps = {
|
|
10207
10362
|
|
|
10208
|
-
specialCharacters?: ("remove" | "trim" | "keep")
|
|
10209
|
-
|
|
10210
10363
|
fallbackSort?: {
|
|
10211
10364
|
|
|
10212
10365
|
order?: ("asc" | "desc")
|
|
@@ -10215,6 +10368,8 @@ type PerfectionistSortMaps = {
|
|
|
10215
10368
|
[k: string]: unknown | undefined
|
|
10216
10369
|
}
|
|
10217
10370
|
|
|
10371
|
+
specialCharacters?: ("remove" | "trim" | "keep")
|
|
10372
|
+
|
|
10218
10373
|
ignoreCase?: boolean
|
|
10219
10374
|
|
|
10220
10375
|
alphabet?: string
|
|
@@ -10227,13 +10382,21 @@ type PerfectionistSortMaps = {
|
|
|
10227
10382
|
|
|
10228
10383
|
customGroups?: ({
|
|
10229
10384
|
|
|
10230
|
-
|
|
10385
|
+
newlinesInside?: ("always" | "never")
|
|
10231
10386
|
|
|
10232
|
-
|
|
10387
|
+
fallbackSort?: {
|
|
10388
|
+
|
|
10389
|
+
order?: ("asc" | "desc")
|
|
10390
|
+
|
|
10391
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10392
|
+
[k: string]: unknown | undefined
|
|
10393
|
+
}
|
|
10233
10394
|
|
|
10234
|
-
|
|
10395
|
+
groupName?: string
|
|
10235
10396
|
|
|
10236
|
-
|
|
10397
|
+
order?: ("asc" | "desc")
|
|
10398
|
+
|
|
10399
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10237
10400
|
anyOf?: {
|
|
10238
10401
|
|
|
10239
10402
|
elementNamePattern?: (({
|
|
@@ -10246,13 +10409,21 @@ type PerfectionistSortMaps = {
|
|
|
10246
10409
|
}[]
|
|
10247
10410
|
} | {
|
|
10248
10411
|
|
|
10249
|
-
|
|
10412
|
+
newlinesInside?: ("always" | "never")
|
|
10250
10413
|
|
|
10251
|
-
|
|
10414
|
+
fallbackSort?: {
|
|
10415
|
+
|
|
10416
|
+
order?: ("asc" | "desc")
|
|
10417
|
+
|
|
10418
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10419
|
+
[k: string]: unknown | undefined
|
|
10420
|
+
}
|
|
10252
10421
|
|
|
10253
|
-
|
|
10422
|
+
groupName?: string
|
|
10254
10423
|
|
|
10255
|
-
|
|
10424
|
+
order?: ("asc" | "desc")
|
|
10425
|
+
|
|
10426
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10256
10427
|
|
|
10257
10428
|
elementNamePattern?: (({
|
|
10258
10429
|
pattern?: string
|
|
@@ -10308,8 +10479,6 @@ type PerfectionistSortMaps = {
|
|
|
10308
10479
|
// ----- perfectionist/sort-modules -----
|
|
10309
10480
|
type PerfectionistSortModules = []|[{
|
|
10310
10481
|
|
|
10311
|
-
specialCharacters?: ("remove" | "trim" | "keep")
|
|
10312
|
-
|
|
10313
10482
|
fallbackSort?: {
|
|
10314
10483
|
|
|
10315
10484
|
order?: ("asc" | "desc")
|
|
@@ -10318,6 +10487,8 @@ type PerfectionistSortModules = []|[{
|
|
|
10318
10487
|
[k: string]: unknown | undefined
|
|
10319
10488
|
}
|
|
10320
10489
|
|
|
10490
|
+
specialCharacters?: ("remove" | "trim" | "keep")
|
|
10491
|
+
|
|
10321
10492
|
ignoreCase?: boolean
|
|
10322
10493
|
|
|
10323
10494
|
alphabet?: string
|
|
@@ -10330,13 +10501,21 @@ type PerfectionistSortModules = []|[{
|
|
|
10330
10501
|
|
|
10331
10502
|
customGroups?: ({
|
|
10332
10503
|
|
|
10333
|
-
|
|
10504
|
+
newlinesInside?: ("always" | "never")
|
|
10334
10505
|
|
|
10335
|
-
|
|
10506
|
+
fallbackSort?: {
|
|
10507
|
+
|
|
10508
|
+
order?: ("asc" | "desc")
|
|
10509
|
+
|
|
10510
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10511
|
+
[k: string]: unknown | undefined
|
|
10512
|
+
}
|
|
10336
10513
|
|
|
10337
|
-
|
|
10514
|
+
groupName?: string
|
|
10338
10515
|
|
|
10339
|
-
|
|
10516
|
+
order?: ("asc" | "desc")
|
|
10517
|
+
|
|
10518
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10340
10519
|
anyOf?: {
|
|
10341
10520
|
|
|
10342
10521
|
modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[]
|
|
@@ -10361,13 +10540,21 @@ type PerfectionistSortModules = []|[{
|
|
|
10361
10540
|
}[]
|
|
10362
10541
|
} | {
|
|
10363
10542
|
|
|
10364
|
-
|
|
10543
|
+
newlinesInside?: ("always" | "never")
|
|
10544
|
+
|
|
10545
|
+
fallbackSort?: {
|
|
10546
|
+
|
|
10547
|
+
order?: ("asc" | "desc")
|
|
10548
|
+
|
|
10549
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10550
|
+
[k: string]: unknown | undefined
|
|
10551
|
+
}
|
|
10365
10552
|
|
|
10366
|
-
|
|
10553
|
+
groupName?: string
|
|
10367
10554
|
|
|
10368
|
-
order?: ("
|
|
10555
|
+
order?: ("asc" | "desc")
|
|
10369
10556
|
|
|
10370
|
-
|
|
10557
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10371
10558
|
|
|
10372
10559
|
modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[]
|
|
10373
10560
|
|
|
@@ -10425,8 +10612,6 @@ type PerfectionistSortModules = []|[{
|
|
|
10425
10612
|
// ----- perfectionist/sort-named-exports -----
|
|
10426
10613
|
type PerfectionistSortNamedExports = []|[{
|
|
10427
10614
|
|
|
10428
|
-
specialCharacters?: ("remove" | "trim" | "keep")
|
|
10429
|
-
|
|
10430
10615
|
fallbackSort?: {
|
|
10431
10616
|
|
|
10432
10617
|
order?: ("asc" | "desc")
|
|
@@ -10435,6 +10620,8 @@ type PerfectionistSortNamedExports = []|[{
|
|
|
10435
10620
|
[k: string]: unknown | undefined
|
|
10436
10621
|
}
|
|
10437
10622
|
|
|
10623
|
+
specialCharacters?: ("remove" | "trim" | "keep")
|
|
10624
|
+
|
|
10438
10625
|
ignoreCase?: boolean
|
|
10439
10626
|
|
|
10440
10627
|
alphabet?: string
|
|
@@ -10477,8 +10664,6 @@ type PerfectionistSortNamedExports = []|[{
|
|
|
10477
10664
|
// ----- perfectionist/sort-named-imports -----
|
|
10478
10665
|
type PerfectionistSortNamedImports = []|[{
|
|
10479
10666
|
|
|
10480
|
-
specialCharacters?: ("remove" | "trim" | "keep")
|
|
10481
|
-
|
|
10482
10667
|
fallbackSort?: {
|
|
10483
10668
|
|
|
10484
10669
|
order?: ("asc" | "desc")
|
|
@@ -10487,6 +10672,8 @@ type PerfectionistSortNamedImports = []|[{
|
|
|
10487
10672
|
[k: string]: unknown | undefined
|
|
10488
10673
|
}
|
|
10489
10674
|
|
|
10675
|
+
specialCharacters?: ("remove" | "trim" | "keep")
|
|
10676
|
+
|
|
10490
10677
|
ignoreCase?: boolean
|
|
10491
10678
|
|
|
10492
10679
|
alphabet?: string
|
|
@@ -10529,8 +10716,6 @@ type PerfectionistSortNamedImports = []|[{
|
|
|
10529
10716
|
// ----- perfectionist/sort-object-types -----
|
|
10530
10717
|
type PerfectionistSortObjectTypes = {
|
|
10531
10718
|
|
|
10532
|
-
specialCharacters?: ("remove" | "trim" | "keep")
|
|
10533
|
-
|
|
10534
10719
|
fallbackSort?: {
|
|
10535
10720
|
|
|
10536
10721
|
order?: ("asc" | "desc")
|
|
@@ -10539,6 +10724,8 @@ type PerfectionistSortObjectTypes = {
|
|
|
10539
10724
|
[k: string]: unknown | undefined
|
|
10540
10725
|
}
|
|
10541
10726
|
|
|
10727
|
+
specialCharacters?: ("remove" | "trim" | "keep")
|
|
10728
|
+
|
|
10542
10729
|
ignoreCase?: boolean
|
|
10543
10730
|
|
|
10544
10731
|
alphabet?: string
|
|
@@ -10552,19 +10739,36 @@ type PerfectionistSortObjectTypes = {
|
|
|
10552
10739
|
[k: string]: (string | string[]) | undefined
|
|
10553
10740
|
} | ({
|
|
10554
10741
|
|
|
10555
|
-
|
|
10742
|
+
newlinesInside?: ("always" | "never")
|
|
10556
10743
|
|
|
10557
|
-
|
|
10744
|
+
fallbackSort?: {
|
|
10745
|
+
|
|
10746
|
+
order?: ("asc" | "desc")
|
|
10747
|
+
|
|
10748
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10749
|
+
sortBy?: ("name" | "value")
|
|
10750
|
+
[k: string]: unknown | undefined
|
|
10751
|
+
}
|
|
10558
10752
|
|
|
10559
|
-
|
|
10753
|
+
groupName?: string
|
|
10560
10754
|
|
|
10561
|
-
|
|
10755
|
+
order?: ("asc" | "desc")
|
|
10756
|
+
|
|
10757
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10562
10758
|
anyOf?: {
|
|
10563
10759
|
|
|
10564
10760
|
modifiers?: ("optional" | "required" | "multiline")[]
|
|
10565
10761
|
|
|
10566
10762
|
selector?: ("index-signature" | "member" | "method" | "multiline" | "property")
|
|
10567
10763
|
|
|
10764
|
+
elementValuePattern?: (({
|
|
10765
|
+
pattern?: string
|
|
10766
|
+
flags?: string
|
|
10767
|
+
} | string)[] | ({
|
|
10768
|
+
pattern?: string
|
|
10769
|
+
flags?: string
|
|
10770
|
+
} | string))
|
|
10771
|
+
|
|
10568
10772
|
elementNamePattern?: (({
|
|
10569
10773
|
pattern?: string
|
|
10570
10774
|
flags?: string
|
|
@@ -10572,21 +10776,39 @@ type PerfectionistSortObjectTypes = {
|
|
|
10572
10776
|
pattern?: string
|
|
10573
10777
|
flags?: string
|
|
10574
10778
|
} | string))
|
|
10779
|
+
sortBy?: ("name" | "value")
|
|
10575
10780
|
}[]
|
|
10576
10781
|
} | {
|
|
10577
10782
|
|
|
10578
|
-
|
|
10783
|
+
newlinesInside?: ("always" | "never")
|
|
10784
|
+
|
|
10785
|
+
fallbackSort?: {
|
|
10786
|
+
|
|
10787
|
+
order?: ("asc" | "desc")
|
|
10788
|
+
|
|
10789
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10790
|
+
sortBy?: ("name" | "value")
|
|
10791
|
+
[k: string]: unknown | undefined
|
|
10792
|
+
}
|
|
10579
10793
|
|
|
10580
|
-
|
|
10794
|
+
groupName?: string
|
|
10581
10795
|
|
|
10582
|
-
order?: ("
|
|
10796
|
+
order?: ("asc" | "desc")
|
|
10583
10797
|
|
|
10584
|
-
|
|
10798
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10585
10799
|
|
|
10586
10800
|
modifiers?: ("optional" | "required" | "multiline")[]
|
|
10587
10801
|
|
|
10588
10802
|
selector?: ("index-signature" | "member" | "method" | "multiline" | "property")
|
|
10589
10803
|
|
|
10804
|
+
elementValuePattern?: (({
|
|
10805
|
+
pattern?: string
|
|
10806
|
+
flags?: string
|
|
10807
|
+
} | string)[] | ({
|
|
10808
|
+
pattern?: string
|
|
10809
|
+
flags?: string
|
|
10810
|
+
} | string))
|
|
10811
|
+
|
|
10590
10812
|
elementNamePattern?: (({
|
|
10591
10813
|
pattern?: string
|
|
10592
10814
|
flags?: string
|
|
@@ -10594,6 +10816,7 @@ type PerfectionistSortObjectTypes = {
|
|
|
10594
10816
|
pattern?: string
|
|
10595
10817
|
flags?: string
|
|
10596
10818
|
} | string))
|
|
10819
|
+
sortBy?: ("name" | "value")
|
|
10597
10820
|
})[])
|
|
10598
10821
|
useConfigurationIf?: {
|
|
10599
10822
|
|
|
@@ -10650,6 +10873,7 @@ type PerfectionistSortObjectTypes = {
|
|
|
10650
10873
|
pattern?: string
|
|
10651
10874
|
flags?: string
|
|
10652
10875
|
} | string))
|
|
10876
|
+
sortBy?: ("name" | "value")
|
|
10653
10877
|
|
|
10654
10878
|
groups?: (string | string[] | {
|
|
10655
10879
|
|
|
@@ -10659,8 +10883,6 @@ type PerfectionistSortObjectTypes = {
|
|
|
10659
10883
|
// ----- perfectionist/sort-objects -----
|
|
10660
10884
|
type PerfectionistSortObjects = {
|
|
10661
10885
|
|
|
10662
|
-
specialCharacters?: ("remove" | "trim" | "keep")
|
|
10663
|
-
|
|
10664
10886
|
fallbackSort?: {
|
|
10665
10887
|
|
|
10666
10888
|
order?: ("asc" | "desc")
|
|
@@ -10669,6 +10891,8 @@ type PerfectionistSortObjects = {
|
|
|
10669
10891
|
[k: string]: unknown | undefined
|
|
10670
10892
|
}
|
|
10671
10893
|
|
|
10894
|
+
specialCharacters?: ("remove" | "trim" | "keep")
|
|
10895
|
+
|
|
10672
10896
|
ignoreCase?: boolean
|
|
10673
10897
|
|
|
10674
10898
|
alphabet?: string
|
|
@@ -10687,13 +10911,21 @@ type PerfectionistSortObjects = {
|
|
|
10687
10911
|
[k: string]: (string | string[]) | undefined
|
|
10688
10912
|
} | ({
|
|
10689
10913
|
|
|
10690
|
-
|
|
10914
|
+
newlinesInside?: ("always" | "never")
|
|
10691
10915
|
|
|
10692
|
-
|
|
10916
|
+
fallbackSort?: {
|
|
10917
|
+
|
|
10918
|
+
order?: ("asc" | "desc")
|
|
10919
|
+
|
|
10920
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10921
|
+
[k: string]: unknown | undefined
|
|
10922
|
+
}
|
|
10693
10923
|
|
|
10694
|
-
|
|
10924
|
+
groupName?: string
|
|
10695
10925
|
|
|
10696
|
-
|
|
10926
|
+
order?: ("asc" | "desc")
|
|
10927
|
+
|
|
10928
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10697
10929
|
anyOf?: {
|
|
10698
10930
|
|
|
10699
10931
|
modifiers?: ("optional" | "required" | "multiline")[]
|
|
@@ -10718,13 +10950,21 @@ type PerfectionistSortObjects = {
|
|
|
10718
10950
|
}[]
|
|
10719
10951
|
} | {
|
|
10720
10952
|
|
|
10721
|
-
|
|
10953
|
+
newlinesInside?: ("always" | "never")
|
|
10722
10954
|
|
|
10723
|
-
|
|
10955
|
+
fallbackSort?: {
|
|
10956
|
+
|
|
10957
|
+
order?: ("asc" | "desc")
|
|
10958
|
+
|
|
10959
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10960
|
+
[k: string]: unknown | undefined
|
|
10961
|
+
}
|
|
10724
10962
|
|
|
10725
|
-
|
|
10963
|
+
groupName?: string
|
|
10726
10964
|
|
|
10727
|
-
|
|
10965
|
+
order?: ("asc" | "desc")
|
|
10966
|
+
|
|
10967
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10728
10968
|
|
|
10729
10969
|
modifiers?: ("optional" | "required" | "multiline")[]
|
|
10730
10970
|
|
|
@@ -10814,8 +11054,6 @@ type PerfectionistSortObjects = {
|
|
|
10814
11054
|
// ----- perfectionist/sort-sets -----
|
|
10815
11055
|
type PerfectionistSortSets = {
|
|
10816
11056
|
|
|
10817
|
-
specialCharacters?: ("remove" | "trim" | "keep")
|
|
10818
|
-
|
|
10819
11057
|
fallbackSort?: {
|
|
10820
11058
|
|
|
10821
11059
|
order?: ("asc" | "desc")
|
|
@@ -10824,6 +11062,8 @@ type PerfectionistSortSets = {
|
|
|
10824
11062
|
[k: string]: unknown | undefined
|
|
10825
11063
|
}
|
|
10826
11064
|
|
|
11065
|
+
specialCharacters?: ("remove" | "trim" | "keep")
|
|
11066
|
+
|
|
10827
11067
|
ignoreCase?: boolean
|
|
10828
11068
|
|
|
10829
11069
|
alphabet?: string
|
|
@@ -10838,13 +11078,21 @@ type PerfectionistSortSets = {
|
|
|
10838
11078
|
|
|
10839
11079
|
customGroups?: ({
|
|
10840
11080
|
|
|
10841
|
-
|
|
11081
|
+
newlinesInside?: ("always" | "never")
|
|
10842
11082
|
|
|
10843
|
-
|
|
11083
|
+
fallbackSort?: {
|
|
11084
|
+
|
|
11085
|
+
order?: ("asc" | "desc")
|
|
11086
|
+
|
|
11087
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
11088
|
+
[k: string]: unknown | undefined
|
|
11089
|
+
}
|
|
10844
11090
|
|
|
10845
|
-
|
|
11091
|
+
groupName?: string
|
|
10846
11092
|
|
|
10847
|
-
|
|
11093
|
+
order?: ("asc" | "desc")
|
|
11094
|
+
|
|
11095
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10848
11096
|
anyOf?: {
|
|
10849
11097
|
|
|
10850
11098
|
selector?: ("literal" | "spread")
|
|
@@ -10859,13 +11107,21 @@ type PerfectionistSortSets = {
|
|
|
10859
11107
|
}[]
|
|
10860
11108
|
} | {
|
|
10861
11109
|
|
|
10862
|
-
|
|
11110
|
+
newlinesInside?: ("always" | "never")
|
|
10863
11111
|
|
|
10864
|
-
|
|
11112
|
+
fallbackSort?: {
|
|
11113
|
+
|
|
11114
|
+
order?: ("asc" | "desc")
|
|
11115
|
+
|
|
11116
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
11117
|
+
[k: string]: unknown | undefined
|
|
11118
|
+
}
|
|
10865
11119
|
|
|
10866
|
-
|
|
11120
|
+
groupName?: string
|
|
10867
11121
|
|
|
10868
|
-
|
|
11122
|
+
order?: ("asc" | "desc")
|
|
11123
|
+
|
|
11124
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10869
11125
|
|
|
10870
11126
|
selector?: ("literal" | "spread")
|
|
10871
11127
|
|
|
@@ -10923,8 +11179,6 @@ type PerfectionistSortSets = {
|
|
|
10923
11179
|
// ----- perfectionist/sort-switch-case -----
|
|
10924
11180
|
type PerfectionistSortSwitchCase = []|[{
|
|
10925
11181
|
|
|
10926
|
-
specialCharacters?: ("remove" | "trim" | "keep")
|
|
10927
|
-
|
|
10928
11182
|
fallbackSort?: {
|
|
10929
11183
|
|
|
10930
11184
|
order?: ("asc" | "desc")
|
|
@@ -10933,6 +11187,8 @@ type PerfectionistSortSwitchCase = []|[{
|
|
|
10933
11187
|
[k: string]: unknown | undefined
|
|
10934
11188
|
}
|
|
10935
11189
|
|
|
11190
|
+
specialCharacters?: ("remove" | "trim" | "keep")
|
|
11191
|
+
|
|
10936
11192
|
ignoreCase?: boolean
|
|
10937
11193
|
|
|
10938
11194
|
alphabet?: string
|
|
@@ -10946,8 +11202,6 @@ type PerfectionistSortSwitchCase = []|[{
|
|
|
10946
11202
|
// ----- perfectionist/sort-union-types -----
|
|
10947
11203
|
type PerfectionistSortUnionTypes = []|[{
|
|
10948
11204
|
|
|
10949
|
-
specialCharacters?: ("remove" | "trim" | "keep")
|
|
10950
|
-
|
|
10951
11205
|
fallbackSort?: {
|
|
10952
11206
|
|
|
10953
11207
|
order?: ("asc" | "desc")
|
|
@@ -10956,6 +11210,8 @@ type PerfectionistSortUnionTypes = []|[{
|
|
|
10956
11210
|
[k: string]: unknown | undefined
|
|
10957
11211
|
}
|
|
10958
11212
|
|
|
11213
|
+
specialCharacters?: ("remove" | "trim" | "keep")
|
|
11214
|
+
|
|
10959
11215
|
ignoreCase?: boolean
|
|
10960
11216
|
|
|
10961
11217
|
alphabet?: string
|
|
@@ -11001,8 +11257,6 @@ type PerfectionistSortUnionTypes = []|[{
|
|
|
11001
11257
|
// ----- perfectionist/sort-variable-declarations -----
|
|
11002
11258
|
type PerfectionistSortVariableDeclarations = []|[{
|
|
11003
11259
|
|
|
11004
|
-
specialCharacters?: ("remove" | "trim" | "keep")
|
|
11005
|
-
|
|
11006
11260
|
fallbackSort?: {
|
|
11007
11261
|
|
|
11008
11262
|
order?: ("asc" | "desc")
|
|
@@ -11011,6 +11265,8 @@ type PerfectionistSortVariableDeclarations = []|[{
|
|
|
11011
11265
|
[k: string]: unknown | undefined
|
|
11012
11266
|
}
|
|
11013
11267
|
|
|
11268
|
+
specialCharacters?: ("remove" | "trim" | "keep")
|
|
11269
|
+
|
|
11014
11270
|
ignoreCase?: boolean
|
|
11015
11271
|
|
|
11016
11272
|
alphabet?: string
|
|
@@ -11386,6 +11642,12 @@ type SvelteButtonHasType = []|[{
|
|
|
11386
11642
|
type SvelteCommentDirective = []|[{
|
|
11387
11643
|
reportUnusedDisableDirectives?: boolean
|
|
11388
11644
|
}]
|
|
11645
|
+
// ----- svelte/consistent-selector-style -----
|
|
11646
|
+
type SvelteConsistentSelectorStyle = []|[{
|
|
11647
|
+
checkGlobal?: boolean
|
|
11648
|
+
|
|
11649
|
+
style?: []|[("class" | "id" | "type")]|[("class" | "id" | "type"), ("class" | "id" | "type")]|[("class" | "id" | "type"), ("class" | "id" | "type"), ("class" | "id" | "type")]
|
|
11650
|
+
}]
|
|
11389
11651
|
// ----- svelte/first-attribute-linebreak -----
|
|
11390
11652
|
type SvelteFirstAttributeLinebreak = []|[{
|
|
11391
11653
|
multiline?: ("below" | "beside")
|
|
@@ -11418,7 +11680,8 @@ type SvelteHtmlQuotes = []|[{
|
|
|
11418
11680
|
type SvelteHtmlSelfClosing = []|[({
|
|
11419
11681
|
void?: ("never" | "always" | "ignore")
|
|
11420
11682
|
normal?: ("never" | "always" | "ignore")
|
|
11421
|
-
|
|
11683
|
+
svg?: ("never" | "always" | "ignore")
|
|
11684
|
+
math?: ("never" | "always" | "ignore")
|
|
11422
11685
|
component?: ("never" | "always" | "ignore")
|
|
11423
11686
|
svelte?: ("never" | "always" | "ignore")
|
|
11424
11687
|
} | ("all" | "html" | "none"))]
|
|
@@ -11457,6 +11720,13 @@ type SvelteNoInlineStyles = []|[{
|
|
|
11457
11720
|
type SvelteNoInnerDeclarations = []|[("functions" | "both")]|[("functions" | "both"), {
|
|
11458
11721
|
blockScopedFunctions?: ("allow" | "disallow")
|
|
11459
11722
|
}]
|
|
11723
|
+
// ----- svelte/no-navigation-without-base -----
|
|
11724
|
+
type SvelteNoNavigationWithoutBase = []|[{
|
|
11725
|
+
ignoreGoto?: boolean
|
|
11726
|
+
ignoreLinks?: boolean
|
|
11727
|
+
ignorePushState?: boolean
|
|
11728
|
+
ignoreReplaceState?: boolean
|
|
11729
|
+
}]
|
|
11460
11730
|
// ----- svelte/no-reactive-reassign -----
|
|
11461
11731
|
type SvelteNoReactiveReassign = []|[{
|
|
11462
11732
|
props?: boolean
|
|
@@ -11487,10 +11757,21 @@ type SvelteNoUnknownStyleDirectiveProperty = []|[{
|
|
|
11487
11757
|
ignoreProperties?: [string, ...(string)[]]
|
|
11488
11758
|
ignorePrefixed?: boolean
|
|
11489
11759
|
}]
|
|
11760
|
+
// ----- svelte/no-unnecessary-state-wrap -----
|
|
11761
|
+
type SvelteNoUnnecessaryStateWrap = []|[{
|
|
11762
|
+
additionalReactiveClasses?: string[]
|
|
11763
|
+
allowReassign?: boolean
|
|
11764
|
+
}]
|
|
11490
11765
|
// ----- svelte/no-unused-class-name -----
|
|
11491
11766
|
type SvelteNoUnusedClassName = []|[{
|
|
11492
11767
|
allowedClassNames?: string[]
|
|
11493
11768
|
}]
|
|
11769
|
+
// ----- svelte/no-unused-props -----
|
|
11770
|
+
type SvelteNoUnusedProps = []|[{
|
|
11771
|
+
checkImportedTypes?: boolean
|
|
11772
|
+
ignoreTypePatterns?: string[]
|
|
11773
|
+
ignorePropertyPatterns?: string[]
|
|
11774
|
+
}]
|
|
11494
11775
|
// ----- svelte/no-useless-mustaches -----
|
|
11495
11776
|
type SvelteNoUselessMustaches = []|[{
|
|
11496
11777
|
ignoreIncludesComment?: boolean
|
|
@@ -11500,6 +11781,12 @@ type SvelteNoUselessMustaches = []|[{
|
|
|
11500
11781
|
type SveltePreferClassDirective = []|[{
|
|
11501
11782
|
prefer?: ("always" | "empty")
|
|
11502
11783
|
}]
|
|
11784
|
+
// ----- svelte/prefer-const -----
|
|
11785
|
+
type SveltePreferConst = []|[{
|
|
11786
|
+
destructuring?: ("any" | "all")
|
|
11787
|
+
ignoreReadBeforeAssign?: boolean
|
|
11788
|
+
excludedRunes?: string[]
|
|
11789
|
+
}]
|
|
11503
11790
|
// ----- svelte/shorthand-attribute -----
|
|
11504
11791
|
type SvelteShorthandAttribute = []|[{
|
|
11505
11792
|
prefer?: ("always" | "never")
|
|
@@ -11847,6 +12134,8 @@ type TsExplicitModuleBoundaryTypes = []|[{
|
|
|
11847
12134
|
|
|
11848
12135
|
allowHigherOrderFunctions?: boolean
|
|
11849
12136
|
|
|
12137
|
+
allowOverloadFunctions?: boolean
|
|
12138
|
+
|
|
11850
12139
|
allowTypedFunctionExpressions?: boolean
|
|
11851
12140
|
}]
|
|
11852
12141
|
// ----- ts/init-declarations -----
|
|
@@ -12878,6 +13167,8 @@ type TsUnboundMethod = []|[{
|
|
|
12878
13167
|
type TsUnifiedSignatures = []|[{
|
|
12879
13168
|
|
|
12880
13169
|
ignoreDifferentlyNamedParameters?: boolean
|
|
13170
|
+
|
|
13171
|
+
ignoreOverloadsWithDifferentJSDoc?: boolean
|
|
12881
13172
|
}]
|
|
12882
13173
|
// ----- unicode-bom -----
|
|
12883
13174
|
type UnicodeBom = []|[("always" | "never")]
|
|
@@ -13261,16 +13552,10 @@ type VueComponentNameInTemplateCasing = []|[("PascalCase" | "kebab-case")]|[("Pa
|
|
|
13261
13552
|
}]
|
|
13262
13553
|
// ----- vue/component-options-name-casing -----
|
|
13263
13554
|
type VueComponentOptionsNameCasing = []|[("camelCase" | "kebab-case" | "PascalCase")]
|
|
13264
|
-
// ----- vue/component-tags-order -----
|
|
13265
|
-
type VueComponentTagsOrder = []|[{
|
|
13266
|
-
order?: (string | string[])[]
|
|
13267
|
-
}]
|
|
13268
13555
|
// ----- vue/custom-event-name-casing -----
|
|
13269
|
-
type VueCustomEventNameCasing =
|
|
13556
|
+
type VueCustomEventNameCasing = []|[("kebab-case" | "camelCase")]|[("kebab-case" | "camelCase"), {
|
|
13270
13557
|
ignores?: string[]
|
|
13271
|
-
}]
|
|
13272
|
-
ignores?: string[]
|
|
13273
|
-
}])
|
|
13558
|
+
}]
|
|
13274
13559
|
// ----- vue/define-emits-declaration -----
|
|
13275
13560
|
type VueDefineEmitsDeclaration = []|[("type-based" | "type-literal" | "runtime")]
|
|
13276
13561
|
// ----- vue/define-macros-order -----
|
|
@@ -13901,6 +14186,14 @@ type VueNoExtraParens = ([]|["functions"] | []|["all"]|["all", {
|
|
|
13901
14186
|
enforceForFunctionPrototypeMethods?: boolean
|
|
13902
14187
|
allowParensAfterCommentPattern?: string
|
|
13903
14188
|
}])
|
|
14189
|
+
// ----- vue/no-implicit-coercion -----
|
|
14190
|
+
type VueNoImplicitCoercion = []|[{
|
|
14191
|
+
boolean?: boolean
|
|
14192
|
+
number?: boolean
|
|
14193
|
+
string?: boolean
|
|
14194
|
+
disallowTemplateShorthand?: boolean
|
|
14195
|
+
allow?: ("~" | "!!" | "+" | "- -" | "-" | "*")[]
|
|
14196
|
+
}]
|
|
13904
14197
|
// ----- vue/no-irregular-whitespace -----
|
|
13905
14198
|
type VueNoIrregularWhitespace = []|[{
|
|
13906
14199
|
skipComments?: boolean
|
|
@@ -14192,9 +14485,13 @@ type VuePaddingLinesInComponentDefinition = []|[(("always" | "never") | {
|
|
|
14192
14485
|
groupSingleLineProperties?: boolean
|
|
14193
14486
|
})]
|
|
14194
14487
|
// ----- vue/prefer-true-attribute-shorthand -----
|
|
14195
|
-
type VuePreferTrueAttributeShorthand = []|[("always" | "never")]
|
|
14488
|
+
type VuePreferTrueAttributeShorthand = []|[("always" | "never")]|[("always" | "never"), {
|
|
14489
|
+
except?: string[]
|
|
14490
|
+
}]
|
|
14196
14491
|
// ----- vue/prop-name-casing -----
|
|
14197
|
-
type VuePropNameCasing = []|[("camelCase" | "snake_case")]
|
|
14492
|
+
type VuePropNameCasing = []|[("camelCase" | "snake_case")]|[("camelCase" | "snake_case"), {
|
|
14493
|
+
ignoreProps?: string[]
|
|
14494
|
+
}]
|
|
14198
14495
|
// ----- vue/quote-props -----
|
|
14199
14496
|
type VueQuoteProps = ([]|[("always" | "as-needed" | "consistent" | "consistent-as-needed")] | []|[("always" | "as-needed" | "consistent" | "consistent-as-needed")]|[("always" | "as-needed" | "consistent" | "consistent-as-needed"), {
|
|
14200
14497
|
keywords?: boolean
|
|
@@ -14259,7 +14556,6 @@ type VueSortKeys = []|[("asc" | "desc")]|[("asc" | "desc"), {
|
|
|
14259
14556
|
ignoreGrandchildrenOf?: unknown[]
|
|
14260
14557
|
minKeys?: number
|
|
14261
14558
|
natural?: boolean
|
|
14262
|
-
runOutsideVue?: boolean
|
|
14263
14559
|
}]
|
|
14264
14560
|
// ----- vue/space-in-parens -----
|
|
14265
14561
|
type VueSpaceInParens = []|[("always" | "never")]|[("always" | "never"), {
|
|
@@ -14297,10 +14593,6 @@ type VueVOnEventHyphenation = []|[("always" | "never")]|[("always" | "never"), {
|
|
|
14297
14593
|
})[]
|
|
14298
14594
|
ignoreTags?: string[]
|
|
14299
14595
|
}]
|
|
14300
|
-
// ----- vue/v-on-function-call -----
|
|
14301
|
-
type VueVOnFunctionCall = []|[("always" | "never")]|[("always" | "never"), {
|
|
14302
|
-
ignoreIncludesComment?: boolean
|
|
14303
|
-
}]
|
|
14304
14596
|
// ----- vue/v-on-handler-style -----
|
|
14305
14597
|
type VueVOnHandlerStyle = []|[(("inline" | "inline-function") | ["method", ("inline" | "inline-function")])]|[(("inline" | "inline-function") | ["method", ("inline" | "inline-function")]), {
|
|
14306
14598
|
ignoreIncludesComment?: boolean
|
|
@@ -14336,7 +14628,7 @@ type Yoda = []|[("always" | "never")]|[("always" | "never"), {
|
|
|
14336
14628
|
onlyEquality?: boolean
|
|
14337
14629
|
}]
|
|
14338
14630
|
// Names of all the configs
|
|
14339
|
-
type ConfigNames = 'coderwyd/eslint-comments/rules' | 'coderwyd/imports/rules' | 'coderwyd/javascript/setup' | 'coderwyd/javascript/rules' | 'coderwyd/jsdoc/rules' | 'coderwyd/jsonc/setup' | 'coderwyd/jsonc/rules' | 'coderwyd/node/rules' | 'coderwyd/perfectionist/rules' | 'coderwyd/react/setup' | 'coderwyd/react/rules' | 'coderwyd/sort/package-json' | 'coderwyd/svelte/setup' | 'coderwyd/svelte/rules' | 'coderwyd/test/setup' | 'coderwyd/test/rules' | 'coderwyd/prettier/rules' | 'coderwyd/typescript/setup' | 'coderwyd/typescript/parser' | 'coderwyd/typescript/rules' | 'coderwyd/unicorn/rules' | 'coderwyd/unocss/rules' | 'coderwyd/vue/rules' | 'coderwyd/command/rules' | 'coderwyd/regexp/rules' | 'coderwyd/tailwindcss/rules'
|
|
14631
|
+
type ConfigNames = 'coderwyd/eslint-comments/rules' | 'coderwyd/imports/rules' | 'coderwyd/javascript/setup' | 'coderwyd/javascript/rules' | 'coderwyd/jsdoc/rules' | 'coderwyd/jsonc/setup' | 'coderwyd/jsonc/rules' | 'coderwyd/node/rules' | 'coderwyd/perfectionist/rules' | 'coderwyd/react/setup' | 'coderwyd/react/rules' | 'coderwyd/sort/package-json' | 'coderwyd/svelte/setup' | 'coderwyd/svelte/rules' | 'coderwyd/test/setup' | 'coderwyd/test/rules' | 'coderwyd/prettier/rules' | 'coderwyd/typescript/setup' | 'coderwyd/typescript/parser' | 'coderwyd/typescript/rules' | 'coderwyd/unicorn/rules' | 'coderwyd/unocss/rules' | 'coderwyd/vue/rules' | 'coderwyd/command/rules' | 'coderwyd/regexp/rules' | 'coderwyd/tailwindcss/rules' | 'coderwyd/de-morgan/rules'
|
|
14340
14632
|
|
|
14341
14633
|
type Rules = RuleOptions;
|
|
14342
14634
|
|
|
@@ -14468,6 +14760,12 @@ interface OptionsConfig extends OptionsComponentExts {
|
|
|
14468
14760
|
* @default true
|
|
14469
14761
|
*/
|
|
14470
14762
|
jsonc?: boolean | OptionsOverrides;
|
|
14763
|
+
/**
|
|
14764
|
+
* Enable YAML support.
|
|
14765
|
+
*
|
|
14766
|
+
* @default true
|
|
14767
|
+
*/
|
|
14768
|
+
yaml?: boolean | OptionsOverrides;
|
|
14471
14769
|
/**
|
|
14472
14770
|
* Enable react rules.
|
|
14473
14771
|
*
|
|
@@ -14569,7 +14867,7 @@ declare function interopDefault<T>(m: Awaitable<T>): Promise<T extends {
|
|
|
14569
14867
|
} ? U : T>;
|
|
14570
14868
|
declare function isPackageInScope(name: string): boolean;
|
|
14571
14869
|
declare function ensurePackages(packages: string[]): Promise<void>;
|
|
14572
|
-
declare function resolveSubOptions<K extends keyof OptionsConfig>(options: OptionsConfig, key: K): ResolvedOptions<OptionsConfig[K]
|
|
14870
|
+
declare function resolveSubOptions<K extends keyof OptionsConfig>(options: OptionsConfig, key: K): Partial<ResolvedOptions<OptionsConfig[K]>>;
|
|
14573
14871
|
declare function getOverrides<K extends keyof OptionsConfig>(options: OptionsConfig, key: K): Partial<Linter.RulesRecord & RuleOptions>;
|
|
14574
14872
|
declare function isInEditorEnv(): boolean;
|
|
14575
14873
|
declare function isInGitHooksOrLintStaged(): boolean;
|