@vinicunca/eslint-config 2.7.0 → 2.7.2
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/index.cjs +21 -19
- package/dist/index.d.cts +600 -1111
- package/dist/index.d.ts +600 -1111
- package/dist/index.js +20 -18
- package/package.json +16 -16
package/dist/index.d.cts
CHANGED
|
@@ -386,42 +386,42 @@ interface RuleOptions {
|
|
|
386
386
|
'implicit-arrow-linebreak'?: Linter.RuleEntry<ImplicitArrowLinebreak>
|
|
387
387
|
/**
|
|
388
388
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
389
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0
|
|
389
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/consistent-type-specifier-style.md
|
|
390
390
|
*/
|
|
391
391
|
'import/consistent-type-specifier-style'?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>
|
|
392
392
|
/**
|
|
393
393
|
* Ensure a default export is present, given a default import.
|
|
394
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0
|
|
394
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/default.md
|
|
395
395
|
*/
|
|
396
396
|
'import/default'?: Linter.RuleEntry<[]>
|
|
397
397
|
/**
|
|
398
398
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
399
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0
|
|
399
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/dynamic-import-chunkname.md
|
|
400
400
|
*/
|
|
401
401
|
'import/dynamic-import-chunkname'?: Linter.RuleEntry<ImportDynamicImportChunkname>
|
|
402
402
|
/**
|
|
403
403
|
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
404
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0
|
|
404
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/export.md
|
|
405
405
|
*/
|
|
406
406
|
'import/export'?: Linter.RuleEntry<[]>
|
|
407
407
|
/**
|
|
408
408
|
* Ensure all exports appear after other statements.
|
|
409
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0
|
|
409
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/exports-last.md
|
|
410
410
|
*/
|
|
411
411
|
'import/exports-last'?: Linter.RuleEntry<[]>
|
|
412
412
|
/**
|
|
413
413
|
* Ensure consistent use of file extension within the import path.
|
|
414
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0
|
|
414
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/extensions.md
|
|
415
415
|
*/
|
|
416
416
|
'import/extensions'?: Linter.RuleEntry<ImportExtensions>
|
|
417
417
|
/**
|
|
418
418
|
* Ensure all imports appear before other statements.
|
|
419
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0
|
|
419
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/first.md
|
|
420
420
|
*/
|
|
421
421
|
'import/first'?: Linter.RuleEntry<ImportFirst>
|
|
422
422
|
/**
|
|
423
423
|
* Prefer named exports to be grouped together in a single export declaration.
|
|
424
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0
|
|
424
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/group-exports.md
|
|
425
425
|
*/
|
|
426
426
|
'import/group-exports'?: Linter.RuleEntry<[]>
|
|
427
427
|
/**
|
|
@@ -432,182 +432,182 @@ interface RuleOptions {
|
|
|
432
432
|
'import/imports-first'?: Linter.RuleEntry<ImportImportsFirst>
|
|
433
433
|
/**
|
|
434
434
|
* Enforce the maximum number of dependencies a module can have.
|
|
435
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0
|
|
435
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/max-dependencies.md
|
|
436
436
|
*/
|
|
437
437
|
'import/max-dependencies'?: Linter.RuleEntry<ImportMaxDependencies>
|
|
438
438
|
/**
|
|
439
439
|
* Ensure named imports correspond to a named export in the remote file.
|
|
440
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0
|
|
440
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/named.md
|
|
441
441
|
*/
|
|
442
442
|
'import/named'?: Linter.RuleEntry<ImportNamed>
|
|
443
443
|
/**
|
|
444
444
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
445
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0
|
|
445
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/namespace.md
|
|
446
446
|
*/
|
|
447
447
|
'import/namespace'?: Linter.RuleEntry<ImportNamespace>
|
|
448
448
|
/**
|
|
449
449
|
* Enforce a newline after import statements.
|
|
450
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0
|
|
450
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/newline-after-import.md
|
|
451
451
|
*/
|
|
452
452
|
'import/newline-after-import'?: Linter.RuleEntry<ImportNewlineAfterImport>
|
|
453
453
|
/**
|
|
454
454
|
* Forbid import of modules using absolute paths.
|
|
455
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0
|
|
455
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-absolute-path.md
|
|
456
456
|
*/
|
|
457
457
|
'import/no-absolute-path'?: Linter.RuleEntry<ImportNoAbsolutePath>
|
|
458
458
|
/**
|
|
459
459
|
* Forbid AMD `require` and `define` calls.
|
|
460
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0
|
|
460
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-amd.md
|
|
461
461
|
*/
|
|
462
462
|
'import/no-amd'?: Linter.RuleEntry<[]>
|
|
463
463
|
/**
|
|
464
464
|
* Forbid anonymous values as default exports.
|
|
465
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0
|
|
465
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-anonymous-default-export.md
|
|
466
466
|
*/
|
|
467
467
|
'import/no-anonymous-default-export'?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>
|
|
468
468
|
/**
|
|
469
469
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
470
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0
|
|
470
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-commonjs.md
|
|
471
471
|
*/
|
|
472
472
|
'import/no-commonjs'?: Linter.RuleEntry<ImportNoCommonjs>
|
|
473
473
|
/**
|
|
474
474
|
* Forbid a module from importing a module with a dependency path back to itself.
|
|
475
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0
|
|
475
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-cycle.md
|
|
476
476
|
*/
|
|
477
477
|
'import/no-cycle'?: Linter.RuleEntry<ImportNoCycle>
|
|
478
478
|
/**
|
|
479
479
|
* Forbid default exports.
|
|
480
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0
|
|
480
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-default-export.md
|
|
481
481
|
*/
|
|
482
482
|
'import/no-default-export'?: Linter.RuleEntry<[]>
|
|
483
483
|
/**
|
|
484
484
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
485
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0
|
|
485
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-deprecated.md
|
|
486
486
|
*/
|
|
487
487
|
'import/no-deprecated'?: Linter.RuleEntry<[]>
|
|
488
488
|
/**
|
|
489
489
|
* Forbid repeated import of the same module in multiple places.
|
|
490
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0
|
|
490
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-duplicates.md
|
|
491
491
|
*/
|
|
492
492
|
'import/no-duplicates'?: Linter.RuleEntry<ImportNoDuplicates>
|
|
493
493
|
/**
|
|
494
494
|
* Forbid `require()` calls with expressions.
|
|
495
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0
|
|
495
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-dynamic-require.md
|
|
496
496
|
*/
|
|
497
497
|
'import/no-dynamic-require'?: Linter.RuleEntry<ImportNoDynamicRequire>
|
|
498
498
|
/**
|
|
499
499
|
* Forbid empty named import blocks.
|
|
500
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0
|
|
500
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-empty-named-blocks.md
|
|
501
501
|
*/
|
|
502
502
|
'import/no-empty-named-blocks'?: Linter.RuleEntry<[]>
|
|
503
503
|
/**
|
|
504
504
|
* Forbid the use of extraneous packages.
|
|
505
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0
|
|
505
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-extraneous-dependencies.md
|
|
506
506
|
*/
|
|
507
507
|
'import/no-extraneous-dependencies'?: Linter.RuleEntry<ImportNoExtraneousDependencies>
|
|
508
508
|
/**
|
|
509
509
|
* Forbid import statements with CommonJS module.exports.
|
|
510
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0
|
|
510
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-import-module-exports.md
|
|
511
511
|
*/
|
|
512
512
|
'import/no-import-module-exports'?: Linter.RuleEntry<ImportNoImportModuleExports>
|
|
513
513
|
/**
|
|
514
514
|
* Forbid importing the submodules of other modules.
|
|
515
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0
|
|
515
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-internal-modules.md
|
|
516
516
|
*/
|
|
517
517
|
'import/no-internal-modules'?: Linter.RuleEntry<ImportNoInternalModules>
|
|
518
518
|
/**
|
|
519
519
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
520
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0
|
|
520
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-mutable-exports.md
|
|
521
521
|
*/
|
|
522
522
|
'import/no-mutable-exports'?: Linter.RuleEntry<[]>
|
|
523
523
|
/**
|
|
524
524
|
* Forbid use of exported name as identifier of default export.
|
|
525
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0
|
|
525
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-named-as-default.md
|
|
526
526
|
*/
|
|
527
527
|
'import/no-named-as-default'?: Linter.RuleEntry<[]>
|
|
528
528
|
/**
|
|
529
529
|
* Forbid use of exported name as property of default export.
|
|
530
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0
|
|
530
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-named-as-default-member.md
|
|
531
531
|
*/
|
|
532
532
|
'import/no-named-as-default-member'?: Linter.RuleEntry<[]>
|
|
533
533
|
/**
|
|
534
534
|
* Forbid named default exports.
|
|
535
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0
|
|
535
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-named-default.md
|
|
536
536
|
*/
|
|
537
537
|
'import/no-named-default'?: Linter.RuleEntry<[]>
|
|
538
538
|
/**
|
|
539
539
|
* Forbid named exports.
|
|
540
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0
|
|
540
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-named-export.md
|
|
541
541
|
*/
|
|
542
542
|
'import/no-named-export'?: Linter.RuleEntry<[]>
|
|
543
543
|
/**
|
|
544
544
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
545
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0
|
|
545
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-namespace.md
|
|
546
546
|
*/
|
|
547
547
|
'import/no-namespace'?: Linter.RuleEntry<ImportNoNamespace>
|
|
548
548
|
/**
|
|
549
549
|
* Forbid Node.js builtin modules.
|
|
550
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0
|
|
550
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-nodejs-modules.md
|
|
551
551
|
*/
|
|
552
552
|
'import/no-nodejs-modules'?: Linter.RuleEntry<ImportNoNodejsModules>
|
|
553
553
|
/**
|
|
554
554
|
* Forbid importing packages through relative paths.
|
|
555
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0
|
|
555
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-relative-packages.md
|
|
556
556
|
*/
|
|
557
557
|
'import/no-relative-packages'?: Linter.RuleEntry<ImportNoRelativePackages>
|
|
558
558
|
/**
|
|
559
559
|
* Forbid importing modules from parent directories.
|
|
560
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0
|
|
560
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-relative-parent-imports.md
|
|
561
561
|
*/
|
|
562
562
|
'import/no-relative-parent-imports'?: Linter.RuleEntry<ImportNoRelativeParentImports>
|
|
563
563
|
/**
|
|
564
564
|
* Enforce which files can be imported in a given folder.
|
|
565
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0
|
|
565
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-restricted-paths.md
|
|
566
566
|
*/
|
|
567
567
|
'import/no-restricted-paths'?: Linter.RuleEntry<ImportNoRestrictedPaths>
|
|
568
568
|
/**
|
|
569
569
|
* Forbid a module from importing itself.
|
|
570
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0
|
|
570
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-self-import.md
|
|
571
571
|
*/
|
|
572
572
|
'import/no-self-import'?: Linter.RuleEntry<[]>
|
|
573
573
|
/**
|
|
574
574
|
* Forbid unassigned imports.
|
|
575
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0
|
|
575
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-unassigned-import.md
|
|
576
576
|
*/
|
|
577
577
|
'import/no-unassigned-import'?: Linter.RuleEntry<ImportNoUnassignedImport>
|
|
578
578
|
/**
|
|
579
579
|
* Ensure imports point to a file/module that can be resolved.
|
|
580
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0
|
|
580
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-unresolved.md
|
|
581
581
|
*/
|
|
582
582
|
'import/no-unresolved'?: Linter.RuleEntry<ImportNoUnresolved>
|
|
583
583
|
/**
|
|
584
584
|
* Forbid modules without exports, or exports without matching import in another module.
|
|
585
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0
|
|
585
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-unused-modules.md
|
|
586
586
|
*/
|
|
587
587
|
'import/no-unused-modules'?: Linter.RuleEntry<ImportNoUnusedModules>
|
|
588
588
|
/**
|
|
589
589
|
* Forbid unnecessary path segments in import and require statements.
|
|
590
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0
|
|
590
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-useless-path-segments.md
|
|
591
591
|
*/
|
|
592
592
|
'import/no-useless-path-segments'?: Linter.RuleEntry<ImportNoUselessPathSegments>
|
|
593
593
|
/**
|
|
594
594
|
* Forbid webpack loader syntax in imports.
|
|
595
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0
|
|
595
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-webpack-loader-syntax.md
|
|
596
596
|
*/
|
|
597
597
|
'import/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>
|
|
598
598
|
/**
|
|
599
599
|
* Enforce a convention in module import order.
|
|
600
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0
|
|
600
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/order.md
|
|
601
601
|
*/
|
|
602
602
|
'import/order'?: Linter.RuleEntry<ImportOrder>
|
|
603
603
|
/**
|
|
604
604
|
* 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/v3.0
|
|
605
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/prefer-default-export.md
|
|
606
606
|
*/
|
|
607
607
|
'import/prefer-default-export'?: Linter.RuleEntry<ImportPreferDefaultExport>
|
|
608
608
|
/**
|
|
609
609
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
610
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0
|
|
610
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/unambiguous.md
|
|
611
611
|
*/
|
|
612
612
|
'import/unambiguous'?: Linter.RuleEntry<[]>
|
|
613
613
|
/**
|
|
@@ -672,6 +672,11 @@ interface RuleOptions {
|
|
|
672
672
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/check-tag-names.md#repos-sticky-header
|
|
673
673
|
*/
|
|
674
674
|
'jsdoc/check-tag-names'?: Linter.RuleEntry<JsdocCheckTagNames>
|
|
675
|
+
/**
|
|
676
|
+
* Checks that any `@template` names are actually used in the connected `@typedef` or type alias.
|
|
677
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-template.md#repos-sticky-header
|
|
678
|
+
*/
|
|
679
|
+
'jsdoc/check-template-names'?: Linter.RuleEntry<[]>
|
|
675
680
|
/**
|
|
676
681
|
* Reports invalid types.
|
|
677
682
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/check-types.md#repos-sticky-header
|
|
@@ -2328,88 +2333,98 @@ interface RuleOptions {
|
|
|
2328
2333
|
*/
|
|
2329
2334
|
'padding-line-between-statements'?: Linter.RuleEntry<PaddingLineBetweenStatements>
|
|
2330
2335
|
/**
|
|
2331
|
-
*
|
|
2332
|
-
* @see https://
|
|
2336
|
+
* Enforce sorted arrays before include method.
|
|
2337
|
+
* @see https://perfectionist.dev/rules/sort-array-includes
|
|
2333
2338
|
*/
|
|
2334
2339
|
'perfectionist/sort-array-includes'?: Linter.RuleEntry<PerfectionistSortArrayIncludes>
|
|
2335
2340
|
/**
|
|
2336
|
-
*
|
|
2337
|
-
* @see https://
|
|
2341
|
+
* Enforce sorted Astro attributes.
|
|
2342
|
+
* @see https://perfectionist.dev/rules/sort-astro-attributes
|
|
2338
2343
|
*/
|
|
2339
2344
|
'perfectionist/sort-astro-attributes'?: Linter.RuleEntry<PerfectionistSortAstroAttributes>
|
|
2340
2345
|
/**
|
|
2341
|
-
*
|
|
2342
|
-
* @see https://
|
|
2346
|
+
* Enforce sorted classes.
|
|
2347
|
+
* @see https://perfectionist.dev/rules/sort-classes
|
|
2343
2348
|
*/
|
|
2344
2349
|
'perfectionist/sort-classes'?: Linter.RuleEntry<PerfectionistSortClasses>
|
|
2345
2350
|
/**
|
|
2346
|
-
*
|
|
2347
|
-
* @see https://
|
|
2351
|
+
* Enforce sorted TypeScript enums.
|
|
2352
|
+
* @see https://perfectionist.dev/rules/sort-enums
|
|
2348
2353
|
*/
|
|
2349
2354
|
'perfectionist/sort-enums'?: Linter.RuleEntry<PerfectionistSortEnums>
|
|
2350
2355
|
/**
|
|
2351
|
-
*
|
|
2352
|
-
* @see https://
|
|
2356
|
+
* Enforce sorted exports.
|
|
2357
|
+
* @see https://perfectionist.dev/rules/sort-exports
|
|
2353
2358
|
*/
|
|
2354
2359
|
'perfectionist/sort-exports'?: Linter.RuleEntry<PerfectionistSortExports>
|
|
2355
2360
|
/**
|
|
2356
|
-
*
|
|
2357
|
-
* @see https://
|
|
2361
|
+
* Enforce sorted imports.
|
|
2362
|
+
* @see https://perfectionist.dev/rules/sort-imports
|
|
2358
2363
|
*/
|
|
2359
2364
|
'perfectionist/sort-imports'?: Linter.RuleEntry<PerfectionistSortImports>
|
|
2360
2365
|
/**
|
|
2361
|
-
*
|
|
2362
|
-
* @see https://
|
|
2366
|
+
* Enforce sorted interface properties.
|
|
2367
|
+
* @see https://perfectionist.dev/rules/sort-interfaces
|
|
2363
2368
|
*/
|
|
2364
2369
|
'perfectionist/sort-interfaces'?: Linter.RuleEntry<PerfectionistSortInterfaces>
|
|
2365
2370
|
/**
|
|
2366
|
-
*
|
|
2367
|
-
* @see https://
|
|
2371
|
+
* Enforce sorted intersection types.
|
|
2372
|
+
* @see https://perfectionist.dev/rules/sort-intersection-types
|
|
2368
2373
|
*/
|
|
2369
2374
|
'perfectionist/sort-intersection-types'?: Linter.RuleEntry<PerfectionistSortIntersectionTypes>
|
|
2370
2375
|
/**
|
|
2371
|
-
*
|
|
2372
|
-
* @see https://
|
|
2376
|
+
* Enforce sorted JSX props.
|
|
2377
|
+
* @see https://perfectionist.dev/rules/sort-jsx-props
|
|
2373
2378
|
*/
|
|
2374
2379
|
'perfectionist/sort-jsx-props'?: Linter.RuleEntry<PerfectionistSortJsxProps>
|
|
2375
2380
|
/**
|
|
2376
|
-
*
|
|
2377
|
-
* @see https://
|
|
2381
|
+
* Enforce sorted Map elements.
|
|
2382
|
+
* @see https://perfectionist.dev/rules/sort-maps
|
|
2378
2383
|
*/
|
|
2379
2384
|
'perfectionist/sort-maps'?: Linter.RuleEntry<PerfectionistSortMaps>
|
|
2380
2385
|
/**
|
|
2381
|
-
*
|
|
2382
|
-
* @see https://
|
|
2386
|
+
* Enforce sorted named exports.
|
|
2387
|
+
* @see https://perfectionist.dev/rules/sort-named-exports
|
|
2383
2388
|
*/
|
|
2384
2389
|
'perfectionist/sort-named-exports'?: Linter.RuleEntry<PerfectionistSortNamedExports>
|
|
2385
2390
|
/**
|
|
2386
|
-
*
|
|
2387
|
-
* @see https://
|
|
2391
|
+
* Enforce sorted named imports.
|
|
2392
|
+
* @see https://perfectionist.dev/rules/sort-named-imports
|
|
2388
2393
|
*/
|
|
2389
2394
|
'perfectionist/sort-named-imports'?: Linter.RuleEntry<PerfectionistSortNamedImports>
|
|
2390
2395
|
/**
|
|
2391
|
-
*
|
|
2392
|
-
* @see https://
|
|
2396
|
+
* Enforce sorted object types.
|
|
2397
|
+
* @see https://perfectionist.dev/rules/sort-object-types
|
|
2393
2398
|
*/
|
|
2394
2399
|
'perfectionist/sort-object-types'?: Linter.RuleEntry<PerfectionistSortObjectTypes>
|
|
2395
2400
|
/**
|
|
2396
|
-
*
|
|
2397
|
-
* @see https://
|
|
2401
|
+
* Enforce sorted objects.
|
|
2402
|
+
* @see https://perfectionist.dev/rules/sort-objects
|
|
2398
2403
|
*/
|
|
2399
2404
|
'perfectionist/sort-objects'?: Linter.RuleEntry<PerfectionistSortObjects>
|
|
2400
2405
|
/**
|
|
2401
|
-
*
|
|
2402
|
-
* @see https://
|
|
2406
|
+
* Enforce sorted Svelte attributes.
|
|
2407
|
+
* @see https://perfectionist.dev/rules/sort-svelte-attributes
|
|
2403
2408
|
*/
|
|
2404
2409
|
'perfectionist/sort-svelte-attributes'?: Linter.RuleEntry<PerfectionistSortSvelteAttributes>
|
|
2405
2410
|
/**
|
|
2406
|
-
*
|
|
2407
|
-
* @see https://
|
|
2411
|
+
* Enforce sorted switch cases.
|
|
2412
|
+
* @see https://perfectionist.dev/rules/sort-switch-case
|
|
2413
|
+
*/
|
|
2414
|
+
'perfectionist/sort-switch-case'?: Linter.RuleEntry<PerfectionistSortSwitchCase>
|
|
2415
|
+
/**
|
|
2416
|
+
* Enforce sorted union types.
|
|
2417
|
+
* @see https://perfectionist.dev/rules/sort-union-types
|
|
2408
2418
|
*/
|
|
2409
2419
|
'perfectionist/sort-union-types'?: Linter.RuleEntry<PerfectionistSortUnionTypes>
|
|
2410
2420
|
/**
|
|
2411
|
-
*
|
|
2412
|
-
* @see https://
|
|
2421
|
+
* Enforce sorted variable declarations.
|
|
2422
|
+
* @see https://perfectionist.dev/rules/sort-variable-declarations
|
|
2423
|
+
*/
|
|
2424
|
+
'perfectionist/sort-variable-declarations'?: Linter.RuleEntry<PerfectionistSortVariableDeclarations>
|
|
2425
|
+
/**
|
|
2426
|
+
* Enforce sorted Vue attributes.
|
|
2427
|
+
* @see https://perfectionist.dev/rules/sort-vue-attributes
|
|
2413
2428
|
*/
|
|
2414
2429
|
'perfectionist/sort-vue-attributes'?: Linter.RuleEntry<PerfectionistSortVueAttributes>
|
|
2415
2430
|
/**
|
|
@@ -2501,522 +2516,302 @@ interface RuleOptions {
|
|
|
2501
2516
|
*/
|
|
2502
2517
|
'radix'?: Linter.RuleEntry<Radix>
|
|
2503
2518
|
/**
|
|
2504
|
-
*
|
|
2505
|
-
* @see https://
|
|
2506
|
-
*/
|
|
2507
|
-
'react-hooks/exhaustive-deps'?: Linter.RuleEntry<ReactHooksExhaustiveDeps>
|
|
2508
|
-
/**
|
|
2509
|
-
* enforces the Rules of Hooks
|
|
2510
|
-
* @see https://reactjs.org/docs/hooks-rules.html
|
|
2511
|
-
*/
|
|
2512
|
-
'react-hooks/rules-of-hooks'?: Linter.RuleEntry<[]>
|
|
2513
|
-
/**
|
|
2514
|
-
* Enforces consistent naming for boolean props
|
|
2515
|
-
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/boolean-prop-naming.md
|
|
2516
|
-
*/
|
|
2517
|
-
'react/boolean-prop-naming'?: Linter.RuleEntry<ReactBooleanPropNaming>
|
|
2518
|
-
/**
|
|
2519
|
-
* Disallow usage of `button` elements without an explicit `type` attribute
|
|
2520
|
-
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/button-has-type.md
|
|
2521
|
-
*/
|
|
2522
|
-
'react/button-has-type'?: Linter.RuleEntry<ReactButtonHasType>
|
|
2523
|
-
/**
|
|
2524
|
-
* Enforce using `onChange` or `readonly` attribute when `checked` is used
|
|
2525
|
-
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/checked-requires-onchange-or-readonly.md
|
|
2526
|
-
*/
|
|
2527
|
-
'react/checked-requires-onchange-or-readonly'?: Linter.RuleEntry<ReactCheckedRequiresOnchangeOrReadonly>
|
|
2528
|
-
/**
|
|
2529
|
-
* Enforce all defaultProps have a corresponding non-required PropType
|
|
2530
|
-
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/default-props-match-prop-types.md
|
|
2531
|
-
*/
|
|
2532
|
-
'react/default-props-match-prop-types'?: Linter.RuleEntry<ReactDefaultPropsMatchPropTypes>
|
|
2533
|
-
/**
|
|
2534
|
-
* Enforce consistent usage of destructuring assignment of props, state, and context
|
|
2535
|
-
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/destructuring-assignment.md
|
|
2536
|
-
*/
|
|
2537
|
-
'react/destructuring-assignment'?: Linter.RuleEntry<ReactDestructuringAssignment>
|
|
2538
|
-
/**
|
|
2539
|
-
* Disallow missing displayName in a React component definition
|
|
2540
|
-
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/display-name.md
|
|
2541
|
-
*/
|
|
2542
|
-
'react/display-name'?: Linter.RuleEntry<ReactDisplayName>
|
|
2543
|
-
/**
|
|
2544
|
-
* Disallow certain props on components
|
|
2545
|
-
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/forbid-component-props.md
|
|
2546
|
-
*/
|
|
2547
|
-
'react/forbid-component-props'?: Linter.RuleEntry<ReactForbidComponentProps>
|
|
2548
|
-
/**
|
|
2549
|
-
* Disallow certain props on DOM Nodes
|
|
2550
|
-
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/forbid-dom-props.md
|
|
2551
|
-
*/
|
|
2552
|
-
'react/forbid-dom-props'?: Linter.RuleEntry<ReactForbidDomProps>
|
|
2553
|
-
/**
|
|
2554
|
-
* Disallow certain elements
|
|
2555
|
-
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/forbid-elements.md
|
|
2556
|
-
*/
|
|
2557
|
-
'react/forbid-elements'?: Linter.RuleEntry<ReactForbidElements>
|
|
2558
|
-
/**
|
|
2559
|
-
* Disallow using another component's propTypes
|
|
2560
|
-
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/forbid-foreign-prop-types.md
|
|
2561
|
-
*/
|
|
2562
|
-
'react/forbid-foreign-prop-types'?: Linter.RuleEntry<ReactForbidForeignPropTypes>
|
|
2563
|
-
/**
|
|
2564
|
-
* Disallow certain propTypes
|
|
2565
|
-
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/forbid-prop-types.md
|
|
2566
|
-
*/
|
|
2567
|
-
'react/forbid-prop-types'?: Linter.RuleEntry<ReactForbidPropTypes>
|
|
2568
|
-
/**
|
|
2569
|
-
* Enforce a specific function type for function components
|
|
2570
|
-
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/function-component-definition.md
|
|
2571
|
-
*/
|
|
2572
|
-
'react/function-component-definition'?: Linter.RuleEntry<ReactFunctionComponentDefinition>
|
|
2573
|
-
/**
|
|
2574
|
-
* Ensure destructuring and symmetric naming of useState hook value and setter variables
|
|
2575
|
-
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/hook-use-state.md
|
|
2576
|
-
*/
|
|
2577
|
-
'react/hook-use-state'?: Linter.RuleEntry<ReactHookUseState>
|
|
2578
|
-
/**
|
|
2579
|
-
* Enforce sandbox attribute on iframe elements
|
|
2580
|
-
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/iframe-missing-sandbox.md
|
|
2581
|
-
*/
|
|
2582
|
-
'react/iframe-missing-sandbox'?: Linter.RuleEntry<[]>
|
|
2583
|
-
/**
|
|
2584
|
-
* Enforce boolean attributes notation in JSX
|
|
2585
|
-
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-boolean-value.md
|
|
2519
|
+
* disallow passing 'children' to void DOM elements
|
|
2520
|
+
* @see https://eslint-react.xyz/docs/rules/dom-no-children-in-void-dom-elements
|
|
2586
2521
|
*/
|
|
2587
|
-
'react/
|
|
2522
|
+
'react-dom/no-children-in-void-dom-elements'?: Linter.RuleEntry<[]>
|
|
2588
2523
|
/**
|
|
2589
|
-
*
|
|
2590
|
-
* @see https://
|
|
2591
|
-
*/
|
|
2592
|
-
'react/jsx-child-element-spacing'?: Linter.RuleEntry<[]>
|
|
2593
|
-
/**
|
|
2594
|
-
* Enforce closing bracket location in JSX
|
|
2595
|
-
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-closing-bracket-location.md
|
|
2524
|
+
* disallow when a DOM component is using 'dangerouslySetInnerHTML'
|
|
2525
|
+
* @see https://eslint-react.xyz/docs/rules/dom-no-dangerously-set-innerhtml
|
|
2596
2526
|
*/
|
|
2597
|
-
'react/
|
|
2527
|
+
'react-dom/no-dangerously-set-innerhtml'?: Linter.RuleEntry<[]>
|
|
2598
2528
|
/**
|
|
2599
|
-
*
|
|
2600
|
-
* @see https://
|
|
2529
|
+
* disallow when a DOM component is using both 'children' and 'dangerouslySetInnerHTML'
|
|
2530
|
+
* @see https://eslint-react.xyz/docs/rules/dom-no-dangerously-set-innerhtml-with-children
|
|
2601
2531
|
*/
|
|
2602
|
-
'react/
|
|
2532
|
+
'react-dom/no-dangerously-set-innerhtml-with-children'?: Linter.RuleEntry<[]>
|
|
2603
2533
|
/**
|
|
2604
|
-
*
|
|
2605
|
-
* @see https://
|
|
2534
|
+
* disallow 'findDOMNode'
|
|
2535
|
+
* @see https://eslint-react.xyz/docs/rules/dom-no-find-dom-node
|
|
2606
2536
|
*/
|
|
2607
|
-
'react/
|
|
2537
|
+
'react-dom/no-find-dom-node'?: Linter.RuleEntry<[]>
|
|
2608
2538
|
/**
|
|
2609
|
-
*
|
|
2610
|
-
* @see https://
|
|
2539
|
+
* enforce that button component have an explicit 'type' attribute
|
|
2540
|
+
* @see https://eslint-react.xyz/docs/rules/dom-no-missing-button-type
|
|
2611
2541
|
*/
|
|
2612
|
-
'react/
|
|
2542
|
+
'react-dom/no-missing-button-type'?: Linter.RuleEntry<[]>
|
|
2613
2543
|
/**
|
|
2614
|
-
*
|
|
2615
|
-
* @see https://
|
|
2544
|
+
* enforce that 'iframe' component have an explicit 'sandbox' attribute
|
|
2545
|
+
* @see https://eslint-react.xyz/docs/rules/dom-no-missing-iframe-sandbox
|
|
2616
2546
|
*/
|
|
2617
|
-
'react/
|
|
2547
|
+
'react-dom/no-missing-iframe-sandbox'?: Linter.RuleEntry<[]>
|
|
2618
2548
|
/**
|
|
2619
|
-
*
|
|
2620
|
-
* @see https://
|
|
2549
|
+
* enforce that namespaces are not used in React elements
|
|
2550
|
+
* @see https://eslint-react.xyz/docs/rules/dom-no-namespace
|
|
2621
2551
|
*/
|
|
2622
|
-
'react/
|
|
2552
|
+
'react-dom/no-namespace'?: Linter.RuleEntry<[]>
|
|
2623
2553
|
/**
|
|
2624
|
-
*
|
|
2625
|
-
* @see https://
|
|
2554
|
+
* disallow usage of the return value of 'ReactDOM.render'
|
|
2555
|
+
* @see https://eslint-react.xyz/docs/rules/dom-no-render-return-value
|
|
2626
2556
|
*/
|
|
2627
|
-
'react/
|
|
2557
|
+
'react-dom/no-render-return-value'?: Linter.RuleEntry<[]>
|
|
2628
2558
|
/**
|
|
2629
|
-
*
|
|
2630
|
-
* @see https://
|
|
2559
|
+
* disallow 'javascript:' URLs as JSX event handler prop's value
|
|
2560
|
+
* @see https://eslint-react.xyz/docs/rules/dom-no-script-url
|
|
2631
2561
|
*/
|
|
2632
|
-
'react/
|
|
2562
|
+
'react-dom/no-script-url'?: Linter.RuleEntry<[]>
|
|
2633
2563
|
/**
|
|
2634
|
-
*
|
|
2635
|
-
* @see https://
|
|
2564
|
+
* disallow unsafe iframe 'sandbox' attribute combinations
|
|
2565
|
+
* @see https://eslint-react.xyz/docs/rules/dom-no-unsafe-iframe-sandbox
|
|
2636
2566
|
*/
|
|
2637
|
-
'react/
|
|
2567
|
+
'react-dom/no-unsafe-iframe-sandbox'?: Linter.RuleEntry<[]>
|
|
2638
2568
|
/**
|
|
2639
|
-
*
|
|
2640
|
-
* @see https://
|
|
2569
|
+
* disallow 'target="_blank"' on an external link without 'rel="noreferrer noopener"'
|
|
2570
|
+
* @see https://eslint-react.xyz/docs/rules/dom-no-unsafe-target-blank
|
|
2641
2571
|
*/
|
|
2642
|
-
'react/
|
|
2572
|
+
'react-dom/no-unsafe-target-blank'?: Linter.RuleEntry<[]>
|
|
2643
2573
|
/**
|
|
2644
|
-
*
|
|
2645
|
-
* @see https://github.com/
|
|
2646
|
-
*/
|
|
2647
|
-
'react/jsx-indent'?: Linter.RuleEntry<ReactJsxIndent>
|
|
2648
|
-
/**
|
|
2649
|
-
* Enforce props indentation in JSX
|
|
2650
|
-
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-indent-props.md
|
|
2651
|
-
*/
|
|
2652
|
-
'react/jsx-indent-props'?: Linter.RuleEntry<ReactJsxIndentProps>
|
|
2653
|
-
/**
|
|
2654
|
-
* Disallow missing `key` props in iterators/collection literals
|
|
2655
|
-
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-key.md
|
|
2656
|
-
*/
|
|
2657
|
-
'react/jsx-key'?: Linter.RuleEntry<ReactJsxKey>
|
|
2658
|
-
/**
|
|
2659
|
-
* Enforce JSX maximum depth
|
|
2660
|
-
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-max-depth.md
|
|
2661
|
-
*/
|
|
2662
|
-
'react/jsx-max-depth'?: Linter.RuleEntry<ReactJsxMaxDepth>
|
|
2663
|
-
/**
|
|
2664
|
-
* Enforce maximum of props on a single line in JSX
|
|
2665
|
-
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-max-props-per-line.md
|
|
2574
|
+
* verifies the list of dependencies for Hooks like useEffect and similar
|
|
2575
|
+
* @see https://github.com/facebook/react/issues/14920
|
|
2666
2576
|
*/
|
|
2667
|
-
'react/
|
|
2577
|
+
'react-hooks/exhaustive-deps'?: Linter.RuleEntry<ReactHooksExhaustiveDeps>
|
|
2668
2578
|
/**
|
|
2669
|
-
*
|
|
2670
|
-
* @see https://
|
|
2579
|
+
* enforces the Rules of Hooks
|
|
2580
|
+
* @see https://reactjs.org/docs/hooks-rules.html
|
|
2671
2581
|
*/
|
|
2672
|
-
'react/
|
|
2582
|
+
'react-hooks/rules-of-hooks'?: Linter.RuleEntry<[]>
|
|
2673
2583
|
/**
|
|
2674
|
-
*
|
|
2675
|
-
* @see https://
|
|
2584
|
+
* avoid using shorthand boolean attribute
|
|
2585
|
+
* @see https://eslint-react.xyz/docs/rules/avoid-shorthand-boolean
|
|
2676
2586
|
*/
|
|
2677
|
-
'react/
|
|
2587
|
+
'react/avoid-shorthand-boolean'?: Linter.RuleEntry<[]>
|
|
2678
2588
|
/**
|
|
2679
|
-
*
|
|
2680
|
-
* @see https://
|
|
2589
|
+
* avoid using shorthand fragment syntax
|
|
2590
|
+
* @see https://eslint-react.xyz/docs/rules/avoid-shorthand-fragment
|
|
2681
2591
|
*/
|
|
2682
|
-
'react/
|
|
2592
|
+
'react/avoid-shorthand-fragment'?: Linter.RuleEntry<[]>
|
|
2683
2593
|
/**
|
|
2684
|
-
*
|
|
2685
|
-
* @see https://
|
|
2594
|
+
* require a 'ref' parameter to be set when using 'forwardRef'
|
|
2595
|
+
* @see https://eslint-react.xyz/docs/rules/ensure-forward-ref-using-ref
|
|
2686
2596
|
*/
|
|
2687
|
-
'react/
|
|
2597
|
+
'react/ensure-forward-ref-using-ref'?: Linter.RuleEntry<[]>
|
|
2688
2598
|
/**
|
|
2689
|
-
*
|
|
2690
|
-
* @see https://
|
|
2599
|
+
* disallow accessing 'this.state' within 'setState'
|
|
2600
|
+
* @see https://eslint-react.xyz/docs/rules/no-access-state-in-setstate
|
|
2691
2601
|
*/
|
|
2692
|
-
'react/
|
|
2602
|
+
'react/no-access-state-in-setstate'?: Linter.RuleEntry<[]>
|
|
2693
2603
|
/**
|
|
2694
|
-
*
|
|
2695
|
-
* @see https://
|
|
2604
|
+
* disallow using Array index as 'key'
|
|
2605
|
+
* @see https://eslint-react.xyz/docs/rules/no-array-index-key
|
|
2696
2606
|
*/
|
|
2697
|
-
'react/
|
|
2607
|
+
'react/no-array-index-key'?: Linter.RuleEntry<[]>
|
|
2698
2608
|
/**
|
|
2699
|
-
*
|
|
2700
|
-
* @see https://
|
|
2609
|
+
* disallow using 'Children.count'
|
|
2610
|
+
* @see https://eslint-react.xyz/docs/rules/no-children-count
|
|
2701
2611
|
*/
|
|
2702
|
-
'react/
|
|
2612
|
+
'react/no-children-count'?: Linter.RuleEntry<[]>
|
|
2703
2613
|
/**
|
|
2704
|
-
*
|
|
2705
|
-
* @see https://
|
|
2614
|
+
* disallow using 'Children.forEach'
|
|
2615
|
+
* @see https://eslint-react.xyz/docs/rules/no-children-for-each
|
|
2706
2616
|
*/
|
|
2707
|
-
'react/
|
|
2617
|
+
'react/no-children-for-each'?: Linter.RuleEntry<[]>
|
|
2708
2618
|
/**
|
|
2709
|
-
*
|
|
2710
|
-
* @see https://
|
|
2619
|
+
* disallow using 'Children.map'
|
|
2620
|
+
* @see https://eslint-react.xyz/docs/rules/no-children-map
|
|
2711
2621
|
*/
|
|
2712
|
-
'react/
|
|
2622
|
+
'react/no-children-map'?: Linter.RuleEntry<[]>
|
|
2713
2623
|
/**
|
|
2714
|
-
*
|
|
2715
|
-
* @see https://
|
|
2624
|
+
* disallow using 'Children.only'
|
|
2625
|
+
* @see https://eslint-react.xyz/docs/rules/no-children-only
|
|
2716
2626
|
*/
|
|
2717
|
-
'react/
|
|
2627
|
+
'react/no-children-only'?: Linter.RuleEntry<[]>
|
|
2718
2628
|
/**
|
|
2719
|
-
*
|
|
2720
|
-
* @see https://
|
|
2629
|
+
* disallow passing 'children' as props
|
|
2630
|
+
* @see https://eslint-react.xyz/docs/rules/no-children-prop
|
|
2721
2631
|
*/
|
|
2722
|
-
'react/
|
|
2632
|
+
'react/no-children-prop'?: Linter.RuleEntry<[]>
|
|
2723
2633
|
/**
|
|
2724
|
-
*
|
|
2725
|
-
* @see https://
|
|
2634
|
+
* disallow using 'Children.toArray'
|
|
2635
|
+
* @see https://eslint-react.xyz/docs/rules/no-children-to-array
|
|
2726
2636
|
*/
|
|
2727
|
-
'react/
|
|
2637
|
+
'react/no-children-to-array'?: Linter.RuleEntry<[]>
|
|
2728
2638
|
/**
|
|
2729
|
-
*
|
|
2730
|
-
* @see https://
|
|
2639
|
+
* disallow using class components
|
|
2640
|
+
* @see https://eslint-react.xyz/docs/rules/no-class-component
|
|
2731
2641
|
*/
|
|
2732
|
-
'react/
|
|
2642
|
+
'react/no-class-component'?: Linter.RuleEntry<[]>
|
|
2733
2643
|
/**
|
|
2734
|
-
*
|
|
2735
|
-
* @see https://
|
|
2644
|
+
* disallow using 'cloneElement'
|
|
2645
|
+
* @see https://eslint-react.xyz/docs/rules/no-clone-element
|
|
2736
2646
|
*/
|
|
2737
|
-
'react/
|
|
2647
|
+
'react/no-clone-element'?: Linter.RuleEntry<[]>
|
|
2738
2648
|
/**
|
|
2739
|
-
*
|
|
2740
|
-
* @see https://
|
|
2649
|
+
* disallow comments from being inserted as text nodes
|
|
2650
|
+
* @see https://eslint-react.xyz/docs/rules/no-comment-textnodes
|
|
2741
2651
|
*/
|
|
2742
|
-
'react/
|
|
2652
|
+
'react/no-comment-textnodes'?: Linter.RuleEntry<[]>
|
|
2743
2653
|
/**
|
|
2744
|
-
*
|
|
2745
|
-
* @see https://
|
|
2654
|
+
* disallow complex conditional rendering
|
|
2655
|
+
* @see https://eslint-react.xyz/docs/rules/no-complex-conditional-rendering
|
|
2746
2656
|
* @deprecated
|
|
2747
2657
|
*/
|
|
2748
|
-
'react/
|
|
2658
|
+
'react/no-complex-conditional-rendering'?: Linter.RuleEntry<[]>
|
|
2749
2659
|
/**
|
|
2750
|
-
*
|
|
2751
|
-
* @see https://
|
|
2752
|
-
*/
|
|
2753
|
-
'react/jsx-sort-props'?: Linter.RuleEntry<ReactJsxSortProps>
|
|
2754
|
-
/**
|
|
2755
|
-
* Enforce spacing before closing bracket in JSX
|
|
2756
|
-
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-space-before-closing.md
|
|
2660
|
+
* disallow complex conditional rendering
|
|
2661
|
+
* @see https://eslint-react.xyz/docs/rules/no-complex-conditional-rendering
|
|
2757
2662
|
* @deprecated
|
|
2758
2663
|
*/
|
|
2759
|
-
'react/
|
|
2664
|
+
'react/no-complicated-conditional-rendering'?: Linter.RuleEntry<[]>
|
|
2760
2665
|
/**
|
|
2761
|
-
*
|
|
2762
|
-
* @see https://
|
|
2666
|
+
* disallow using 'componentWillMount'
|
|
2667
|
+
* @see https://eslint-react.xyz/docs/rules/no-component-will-mount
|
|
2763
2668
|
*/
|
|
2764
|
-
'react/
|
|
2669
|
+
'react/no-component-will-mount'?: Linter.RuleEntry<[]>
|
|
2765
2670
|
/**
|
|
2766
|
-
*
|
|
2767
|
-
* @see https://
|
|
2671
|
+
* disallow using 'componentWillReceiveProps'
|
|
2672
|
+
* @see https://eslint-react.xyz/docs/rules/no-component-will-receive-props
|
|
2768
2673
|
*/
|
|
2769
|
-
'react/
|
|
2674
|
+
'react/no-component-will-receive-props'?: Linter.RuleEntry<[]>
|
|
2770
2675
|
/**
|
|
2771
|
-
*
|
|
2772
|
-
* @see https://
|
|
2676
|
+
* disallow using 'componentWillReceiveProps'
|
|
2677
|
+
* @see https://eslint-react.xyz/docs/rules/no-component-will-update
|
|
2773
2678
|
*/
|
|
2774
|
-
'react/
|
|
2679
|
+
'react/no-component-will-update'?: Linter.RuleEntry<[]>
|
|
2775
2680
|
/**
|
|
2776
|
-
*
|
|
2777
|
-
* @see https://
|
|
2681
|
+
* disallow using 'createRef' in function components
|
|
2682
|
+
* @see https://eslint-react.xyz/docs/rules/no-create-ref
|
|
2778
2683
|
*/
|
|
2779
|
-
'react/
|
|
2684
|
+
'react/no-create-ref'?: Linter.RuleEntry<[]>
|
|
2780
2685
|
/**
|
|
2781
|
-
*
|
|
2782
|
-
* @see https://
|
|
2686
|
+
* disallow using 'defaultProps' property in components
|
|
2687
|
+
* @see https://eslint-react.xyz/docs/rules/no-default-props
|
|
2783
2688
|
*/
|
|
2784
|
-
'react/no-
|
|
2689
|
+
'react/no-default-props'?: Linter.RuleEntry<[]>
|
|
2785
2690
|
/**
|
|
2786
|
-
*
|
|
2787
|
-
* @see https://
|
|
2788
|
-
*/
|
|
2789
|
-
'react/no-adjacent-inline-elements'?: Linter.RuleEntry<[]>
|
|
2790
|
-
/**
|
|
2791
|
-
* Disallow usage of Array index in keys
|
|
2792
|
-
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-array-index-key.md
|
|
2793
|
-
*/
|
|
2794
|
-
'react/no-array-index-key'?: Linter.RuleEntry<[]>
|
|
2795
|
-
/**
|
|
2796
|
-
* Lifecycle methods should be methods on the prototype, not class fields
|
|
2797
|
-
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-arrow-function-lifecycle.md
|
|
2798
|
-
*/
|
|
2799
|
-
'react/no-arrow-function-lifecycle'?: Linter.RuleEntry<[]>
|
|
2800
|
-
/**
|
|
2801
|
-
* Disallow passing of children as props
|
|
2802
|
-
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-children-prop.md
|
|
2803
|
-
*/
|
|
2804
|
-
'react/no-children-prop'?: Linter.RuleEntry<ReactNoChildrenProp>
|
|
2805
|
-
/**
|
|
2806
|
-
* Disallow usage of dangerous JSX properties
|
|
2807
|
-
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-danger.md
|
|
2808
|
-
*/
|
|
2809
|
-
'react/no-danger'?: Linter.RuleEntry<[]>
|
|
2810
|
-
/**
|
|
2811
|
-
* Disallow when a DOM element is using both children and dangerouslySetInnerHTML
|
|
2812
|
-
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-danger-with-children.md
|
|
2813
|
-
*/
|
|
2814
|
-
'react/no-danger-with-children'?: Linter.RuleEntry<[]>
|
|
2815
|
-
/**
|
|
2816
|
-
* Disallow usage of deprecated methods
|
|
2817
|
-
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-deprecated.md
|
|
2818
|
-
*/
|
|
2819
|
-
'react/no-deprecated'?: Linter.RuleEntry<[]>
|
|
2820
|
-
/**
|
|
2821
|
-
* Disallow usage of setState in componentDidMount
|
|
2822
|
-
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-did-mount-set-state.md
|
|
2823
|
-
*/
|
|
2824
|
-
'react/no-did-mount-set-state'?: Linter.RuleEntry<ReactNoDidMountSetState>
|
|
2825
|
-
/**
|
|
2826
|
-
* Disallow usage of setState in componentDidUpdate
|
|
2827
|
-
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-did-update-set-state.md
|
|
2828
|
-
*/
|
|
2829
|
-
'react/no-did-update-set-state'?: Linter.RuleEntry<ReactNoDidUpdateSetState>
|
|
2830
|
-
/**
|
|
2831
|
-
* Disallow direct mutation of this.state
|
|
2832
|
-
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-direct-mutation-state.md
|
|
2691
|
+
* disallow direct mutation of state
|
|
2692
|
+
* @see https://eslint-react.xyz/docs/rules/no-direct-mutation-state
|
|
2833
2693
|
*/
|
|
2834
2694
|
'react/no-direct-mutation-state'?: Linter.RuleEntry<[]>
|
|
2835
2695
|
/**
|
|
2836
|
-
*
|
|
2837
|
-
* @see https://
|
|
2696
|
+
* disallow duplicate keys in 'key' prop when rendering list
|
|
2697
|
+
* @see https://eslint-react.xyz/docs/rules/no-duplicate-key
|
|
2838
2698
|
*/
|
|
2839
|
-
'react/no-
|
|
2699
|
+
'react/no-duplicate-key'?: Linter.RuleEntry<[]>
|
|
2840
2700
|
/**
|
|
2841
|
-
*
|
|
2842
|
-
* @see https://
|
|
2701
|
+
* disallow implicit 'key' props
|
|
2702
|
+
* @see https://eslint-react.xyz/docs/rules/no-implicit-key
|
|
2843
2703
|
*/
|
|
2844
|
-
'react/no-
|
|
2704
|
+
'react/no-implicit-key'?: Linter.RuleEntry<[]>
|
|
2845
2705
|
/**
|
|
2846
|
-
*
|
|
2847
|
-
* @see https://
|
|
2706
|
+
* disallow problematic leaked values from being rendered
|
|
2707
|
+
* @see https://eslint-react.xyz/docs/rules/no-leaked-conditional-rendering
|
|
2848
2708
|
*/
|
|
2849
|
-
'react/no-
|
|
2709
|
+
'react/no-leaked-conditional-rendering'?: Linter.RuleEntry<[]>
|
|
2850
2710
|
/**
|
|
2851
|
-
*
|
|
2852
|
-
* @see https://
|
|
2711
|
+
* require 'displayName' for 'memo' and 'forwardRef' components
|
|
2712
|
+
* @see https://eslint-react.xyz/docs/rules/no-missing-component-display-name
|
|
2853
2713
|
*/
|
|
2854
|
-
'react/no-
|
|
2714
|
+
'react/no-missing-component-display-name'?: Linter.RuleEntry<[]>
|
|
2855
2715
|
/**
|
|
2856
|
-
*
|
|
2857
|
-
* @see https://
|
|
2716
|
+
* require 'key' prop when rendering list
|
|
2717
|
+
* @see https://eslint-react.xyz/docs/rules/no-missing-key
|
|
2858
2718
|
*/
|
|
2859
|
-
'react/no-
|
|
2719
|
+
'react/no-missing-key'?: Linter.RuleEntry<[]>
|
|
2860
2720
|
/**
|
|
2861
|
-
*
|
|
2862
|
-
* @see https://
|
|
2721
|
+
* disallow using unstable nested components
|
|
2722
|
+
* @see https://eslint-react.xyz/docs/rules/no-nested-components
|
|
2863
2723
|
*/
|
|
2864
|
-
'react/no-
|
|
2724
|
+
'react/no-nested-components'?: Linter.RuleEntry<[]>
|
|
2865
2725
|
/**
|
|
2866
|
-
*
|
|
2867
|
-
* @see https://
|
|
2726
|
+
* disallow using 'propTypes' property in components
|
|
2727
|
+
* @see https://eslint-react.xyz/docs/rules/no-prop-types
|
|
2868
2728
|
*/
|
|
2869
|
-
'react/no-
|
|
2729
|
+
'react/no-prop-types'?: Linter.RuleEntry<[]>
|
|
2870
2730
|
/**
|
|
2871
|
-
*
|
|
2872
|
-
* @see https://
|
|
2731
|
+
* disallow using 'shouldComponentUpdate' in class component extends 'React.PureComponent'
|
|
2732
|
+
* @see https://eslint-react.xyz/docs/rules/no-redundant-should-component-update
|
|
2873
2733
|
*/
|
|
2874
|
-
'react/no-
|
|
2734
|
+
'react/no-redundant-should-component-update'?: Linter.RuleEntry<[]>
|
|
2875
2735
|
/**
|
|
2876
|
-
*
|
|
2877
|
-
* @see https://
|
|
2736
|
+
* disallow using 'setState' in 'componentDidMount'
|
|
2737
|
+
* @see https://eslint-react.xyz/docs/rules/no-set-state-in-component-did-mount
|
|
2878
2738
|
*/
|
|
2879
|
-
'react/no-set-state'?: Linter.RuleEntry<[]>
|
|
2739
|
+
'react/no-set-state-in-component-did-mount'?: Linter.RuleEntry<[]>
|
|
2880
2740
|
/**
|
|
2881
|
-
*
|
|
2882
|
-
* @see https://
|
|
2741
|
+
* disallow using 'setState' in 'componentDidUpdate'
|
|
2742
|
+
* @see https://eslint-react.xyz/docs/rules/no-set-state-in-component-did-update
|
|
2883
2743
|
*/
|
|
2884
|
-
'react/no-
|
|
2744
|
+
'react/no-set-state-in-component-did-update'?: Linter.RuleEntry<[]>
|
|
2885
2745
|
/**
|
|
2886
|
-
*
|
|
2887
|
-
* @see https://
|
|
2746
|
+
* disallow using 'setState' in 'componentWillUpdate'
|
|
2747
|
+
* @see https://eslint-react.xyz/docs/rules/no-set-state-in-component-will-update
|
|
2888
2748
|
*/
|
|
2889
|
-
'react/no-
|
|
2749
|
+
'react/no-set-state-in-component-will-update'?: Linter.RuleEntry<[]>
|
|
2890
2750
|
/**
|
|
2891
|
-
*
|
|
2892
|
-
* @see https://
|
|
2751
|
+
* disallow using deprecated string refs
|
|
2752
|
+
* @see https://eslint-react.xyz/docs/rules/no-string-refs
|
|
2893
2753
|
*/
|
|
2894
|
-
'react/no-
|
|
2754
|
+
'react/no-string-refs'?: Linter.RuleEntry<[]>
|
|
2895
2755
|
/**
|
|
2896
|
-
*
|
|
2897
|
-
* @see https://
|
|
2756
|
+
* disallow using 'UNSAFE_componentWillMount'
|
|
2757
|
+
* @see https://eslint-react.xyz/docs/rules/no-unsafe-component-will-mount
|
|
2898
2758
|
*/
|
|
2899
|
-
'react/no-
|
|
2759
|
+
'react/no-unsafe-component-will-mount'?: Linter.RuleEntry<[]>
|
|
2900
2760
|
/**
|
|
2901
|
-
*
|
|
2902
|
-
* @see https://
|
|
2761
|
+
* disallow using 'UNSAFE_componentWillReceiveProps'
|
|
2762
|
+
* @see https://eslint-react.xyz/docs/rules/no-unsafe-component-will-receive-props
|
|
2903
2763
|
*/
|
|
2904
|
-
'react/no-
|
|
2764
|
+
'react/no-unsafe-component-will-receive-props'?: Linter.RuleEntry<[]>
|
|
2905
2765
|
/**
|
|
2906
|
-
*
|
|
2907
|
-
* @see https://
|
|
2766
|
+
* disallow using 'UNSAFE_componentWillUpdate'
|
|
2767
|
+
* @see https://eslint-react.xyz/docs/rules/no-unsafe-component-will-update
|
|
2908
2768
|
*/
|
|
2909
|
-
'react/no-unsafe'?: Linter.RuleEntry<
|
|
2769
|
+
'react/no-unsafe-component-will-update'?: Linter.RuleEntry<[]>
|
|
2910
2770
|
/**
|
|
2911
|
-
*
|
|
2912
|
-
* @see https://
|
|
2771
|
+
* disallow passing constructed values to context providers
|
|
2772
|
+
* @see https://eslint-react.xyz/docs/rules/no-unstable-context-value
|
|
2913
2773
|
*/
|
|
2914
|
-
'react/no-unstable-
|
|
2774
|
+
'react/no-unstable-context-value'?: Linter.RuleEntry<[]>
|
|
2915
2775
|
/**
|
|
2916
|
-
*
|
|
2917
|
-
* @see https://
|
|
2776
|
+
* disallow using unstable value as default param in function component
|
|
2777
|
+
* @see https://eslint-react.xyz/docs/rules/no-unstable-default-props
|
|
2918
2778
|
*/
|
|
2919
|
-
'react/no-
|
|
2779
|
+
'react/no-unstable-default-props'?: Linter.RuleEntry<[]>
|
|
2920
2780
|
/**
|
|
2921
|
-
*
|
|
2922
|
-
* @see https://
|
|
2781
|
+
* disallow unused class component members
|
|
2782
|
+
* @see https://eslint-react.xyz/docs/rules/no-unused-class-component-members
|
|
2923
2783
|
*/
|
|
2924
|
-
'react/no-unused-
|
|
2784
|
+
'react/no-unused-class-component-members'?: Linter.RuleEntry<[]>
|
|
2925
2785
|
/**
|
|
2926
|
-
*
|
|
2927
|
-
* @see https://
|
|
2786
|
+
* disallow unused state of class component
|
|
2787
|
+
* @see https://eslint-react.xyz/docs/rules/no-unused-state
|
|
2928
2788
|
*/
|
|
2929
2789
|
'react/no-unused-state'?: Linter.RuleEntry<[]>
|
|
2930
2790
|
/**
|
|
2931
|
-
*
|
|
2932
|
-
* @see https://
|
|
2791
|
+
* disallow unnecessary fragments
|
|
2792
|
+
* @see https://eslint-react.xyz/docs/rules/no-useless-fragment
|
|
2933
2793
|
*/
|
|
2934
|
-
'react/no-
|
|
2794
|
+
'react/no-useless-fragment'?: Linter.RuleEntry<[]>
|
|
2935
2795
|
/**
|
|
2936
|
-
*
|
|
2937
|
-
* @see https://
|
|
2796
|
+
* enforce using destructuring assignment in component props and context
|
|
2797
|
+
* @see https://eslint-react.xyz/docs/rules/prefer-destructuring-assignment
|
|
2938
2798
|
*/
|
|
2939
|
-
'react/prefer-
|
|
2799
|
+
'react/prefer-destructuring-assignment'?: Linter.RuleEntry<[]>
|
|
2940
2800
|
/**
|
|
2941
|
-
*
|
|
2942
|
-
* @see https://
|
|
2943
|
-
*/
|
|
2944
|
-
'react/prefer-exact-props'?: Linter.RuleEntry<[]>
|
|
2945
|
-
/**
|
|
2946
|
-
* Enforce that props are read-only
|
|
2947
|
-
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/prefer-read-only-props.md
|
|
2801
|
+
* enforce read-only props in components
|
|
2802
|
+
* @see https://eslint-react.xyz/docs/rules/prefer-read-only-props
|
|
2948
2803
|
*/
|
|
2949
2804
|
'react/prefer-read-only-props'?: Linter.RuleEntry<[]>
|
|
2950
2805
|
/**
|
|
2951
|
-
*
|
|
2952
|
-
* @see https://
|
|
2953
|
-
*/
|
|
2954
|
-
'react/prefer-stateless-function'?: Linter.RuleEntry<ReactPreferStatelessFunction>
|
|
2955
|
-
/**
|
|
2956
|
-
* Disallow missing props validation in a React component definition
|
|
2957
|
-
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/prop-types.md
|
|
2806
|
+
* enforce using shorthand boolean attributes
|
|
2807
|
+
* @see https://eslint-react.xyz/docs/rules/prefer-shorthand-boolean
|
|
2958
2808
|
*/
|
|
2959
|
-
'react/
|
|
2809
|
+
'react/prefer-shorthand-boolean'?: Linter.RuleEntry<[]>
|
|
2960
2810
|
/**
|
|
2961
|
-
*
|
|
2962
|
-
* @see https://
|
|
2811
|
+
* enforce using fragment syntax instead of 'Fragment' component
|
|
2812
|
+
* @see https://eslint-react.xyz/docs/rules/prefer-shorthand-fragment
|
|
2963
2813
|
*/
|
|
2964
|
-
'react/
|
|
2965
|
-
/**
|
|
2966
|
-
* Enforce a defaultProps definition for every prop that is not a required prop
|
|
2967
|
-
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/require-default-props.md
|
|
2968
|
-
*/
|
|
2969
|
-
'react/require-default-props'?: Linter.RuleEntry<ReactRequireDefaultProps>
|
|
2970
|
-
/**
|
|
2971
|
-
* Enforce React components to have a shouldComponentUpdate method
|
|
2972
|
-
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/require-optimization.md
|
|
2973
|
-
*/
|
|
2974
|
-
'react/require-optimization'?: Linter.RuleEntry<ReactRequireOptimization>
|
|
2975
|
-
/**
|
|
2976
|
-
* Enforce ES5 or ES6 class for returning value in render function
|
|
2977
|
-
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/require-render-return.md
|
|
2978
|
-
*/
|
|
2979
|
-
'react/require-render-return'?: Linter.RuleEntry<[]>
|
|
2980
|
-
/**
|
|
2981
|
-
* Disallow extra closing tags for components without children
|
|
2982
|
-
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/self-closing-comp.md
|
|
2983
|
-
*/
|
|
2984
|
-
'react/self-closing-comp'?: Linter.RuleEntry<ReactSelfClosingComp>
|
|
2985
|
-
/**
|
|
2986
|
-
* Enforce component methods order
|
|
2987
|
-
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/sort-comp.md
|
|
2988
|
-
*/
|
|
2989
|
-
'react/sort-comp'?: Linter.RuleEntry<ReactSortComp>
|
|
2990
|
-
/**
|
|
2991
|
-
* Enforce defaultProps declarations alphabetical sorting
|
|
2992
|
-
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/sort-default-props.md
|
|
2993
|
-
*/
|
|
2994
|
-
'react/sort-default-props'?: Linter.RuleEntry<ReactSortDefaultProps>
|
|
2995
|
-
/**
|
|
2996
|
-
* Enforce propTypes declarations alphabetical sorting
|
|
2997
|
-
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/sort-prop-types.md
|
|
2998
|
-
*/
|
|
2999
|
-
'react/sort-prop-types'?: Linter.RuleEntry<ReactSortPropTypes>
|
|
3000
|
-
/**
|
|
3001
|
-
* Enforce class component state initialization style
|
|
3002
|
-
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/state-in-constructor.md
|
|
3003
|
-
*/
|
|
3004
|
-
'react/state-in-constructor'?: Linter.RuleEntry<ReactStateInConstructor>
|
|
3005
|
-
/**
|
|
3006
|
-
* Enforces where React component static properties should be positioned.
|
|
3007
|
-
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/static-property-placement.md
|
|
3008
|
-
*/
|
|
3009
|
-
'react/static-property-placement'?: Linter.RuleEntry<ReactStaticPropertyPlacement>
|
|
3010
|
-
/**
|
|
3011
|
-
* Enforce style prop value is an object
|
|
3012
|
-
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/style-prop-object.md
|
|
3013
|
-
*/
|
|
3014
|
-
'react/style-prop-object'?: Linter.RuleEntry<ReactStylePropObject>
|
|
3015
|
-
/**
|
|
3016
|
-
* Disallow void DOM elements (e.g. `<img />`, `<br />`) from receiving children
|
|
3017
|
-
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/void-dom-elements-no-children.md
|
|
3018
|
-
*/
|
|
3019
|
-
'react/void-dom-elements-no-children'?: Linter.RuleEntry<[]>
|
|
2814
|
+
'react/prefer-shorthand-fragment'?: Linter.RuleEntry<[]>
|
|
3020
2815
|
/**
|
|
3021
2816
|
* disallow confusing quantifiers
|
|
3022
2817
|
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/confusing-quantifier.html
|
|
@@ -4930,682 +4725,687 @@ interface RuleOptions {
|
|
|
4930
4725
|
'unicode-bom'?: Linter.RuleEntry<UnicodeBom>
|
|
4931
4726
|
/**
|
|
4932
4727
|
* Improve regexes by making them shorter, consistent, and safer.
|
|
4933
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4728
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/better-regex.md
|
|
4934
4729
|
*/
|
|
4935
4730
|
'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>
|
|
4936
4731
|
/**
|
|
4937
4732
|
* Enforce a specific parameter name in catch clauses.
|
|
4938
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4733
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/catch-error-name.md
|
|
4939
4734
|
*/
|
|
4940
4735
|
'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>
|
|
4941
4736
|
/**
|
|
4942
4737
|
* Use destructured variables over properties.
|
|
4943
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4738
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/consistent-destructuring.md
|
|
4944
4739
|
*/
|
|
4945
4740
|
'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>
|
|
4946
4741
|
/**
|
|
4947
4742
|
* Prefer consistent types when spreading a ternary in an array literal.
|
|
4948
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4743
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/consistent-empty-array-spread.md
|
|
4949
4744
|
*/
|
|
4950
4745
|
'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>
|
|
4951
4746
|
/**
|
|
4952
4747
|
* Move function definitions to the highest possible scope.
|
|
4953
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4748
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/consistent-function-scoping.md
|
|
4954
4749
|
*/
|
|
4955
4750
|
'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>
|
|
4956
4751
|
/**
|
|
4957
4752
|
* Enforce correct `Error` subclassing.
|
|
4958
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4753
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/custom-error-definition.md
|
|
4959
4754
|
*/
|
|
4960
4755
|
'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>
|
|
4961
4756
|
/**
|
|
4962
4757
|
* Enforce no spaces between braces.
|
|
4963
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4758
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/empty-brace-spaces.md
|
|
4964
4759
|
*/
|
|
4965
4760
|
'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>
|
|
4966
4761
|
/**
|
|
4967
4762
|
* Enforce passing a `message` value when creating a built-in error.
|
|
4968
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4763
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/error-message.md
|
|
4969
4764
|
*/
|
|
4970
4765
|
'unicorn/error-message'?: Linter.RuleEntry<[]>
|
|
4971
4766
|
/**
|
|
4972
4767
|
* Require escape sequences to use uppercase values.
|
|
4973
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4768
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/escape-case.md
|
|
4974
4769
|
*/
|
|
4975
4770
|
'unicorn/escape-case'?: Linter.RuleEntry<[]>
|
|
4976
4771
|
/**
|
|
4977
4772
|
* Add expiration conditions to TODO comments.
|
|
4978
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4773
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/expiring-todo-comments.md
|
|
4979
4774
|
*/
|
|
4980
4775
|
'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>
|
|
4981
4776
|
/**
|
|
4982
4777
|
* Enforce explicitly comparing the `length` or `size` property of a value.
|
|
4983
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4778
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/explicit-length-check.md
|
|
4984
4779
|
*/
|
|
4985
4780
|
'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>
|
|
4986
4781
|
/**
|
|
4987
4782
|
* Enforce a case style for filenames.
|
|
4988
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4783
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/filename-case.md
|
|
4989
4784
|
*/
|
|
4990
4785
|
'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>
|
|
4991
4786
|
/**
|
|
4992
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4787
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#import-index
|
|
4993
4788
|
* @deprecated
|
|
4994
4789
|
*/
|
|
4995
4790
|
'unicorn/import-index'?: Linter.RuleEntry<[]>
|
|
4996
4791
|
/**
|
|
4997
4792
|
* Enforce specific import styles per module.
|
|
4998
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4793
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/import-style.md
|
|
4999
4794
|
*/
|
|
5000
4795
|
'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>
|
|
5001
4796
|
/**
|
|
5002
4797
|
* Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
|
|
5003
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4798
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/new-for-builtins.md
|
|
5004
4799
|
*/
|
|
5005
4800
|
'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>
|
|
5006
4801
|
/**
|
|
5007
4802
|
* Enforce specifying rules to disable in `eslint-disable` comments.
|
|
5008
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4803
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-abusive-eslint-disable.md
|
|
5009
4804
|
*/
|
|
5010
4805
|
'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>
|
|
5011
4806
|
/**
|
|
5012
4807
|
* Disallow anonymous functions and classes as the default export.
|
|
5013
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4808
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-anonymous-default-export.md
|
|
5014
4809
|
*/
|
|
5015
4810
|
'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>
|
|
5016
4811
|
/**
|
|
5017
4812
|
* Prevent passing a function reference directly to iterator methods.
|
|
5018
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4813
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-array-callback-reference.md
|
|
5019
4814
|
*/
|
|
5020
4815
|
'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>
|
|
5021
4816
|
/**
|
|
5022
4817
|
* Prefer `for…of` over the `forEach` method.
|
|
5023
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4818
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-array-for-each.md
|
|
5024
4819
|
*/
|
|
5025
4820
|
'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>
|
|
5026
4821
|
/**
|
|
5027
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4822
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#no-array-instanceof
|
|
5028
4823
|
* @deprecated
|
|
5029
4824
|
*/
|
|
5030
4825
|
'unicorn/no-array-instanceof'?: Linter.RuleEntry<[]>
|
|
5031
4826
|
/**
|
|
5032
4827
|
* Disallow using the `this` argument in array methods.
|
|
5033
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4828
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-array-method-this-argument.md
|
|
5034
4829
|
*/
|
|
5035
4830
|
'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>
|
|
5036
4831
|
/**
|
|
5037
4832
|
* Enforce combining multiple `Array#push()` into one call.
|
|
5038
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4833
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-array-push-push.md
|
|
5039
4834
|
*/
|
|
5040
4835
|
'unicorn/no-array-push-push'?: Linter.RuleEntry<UnicornNoArrayPushPush>
|
|
5041
4836
|
/**
|
|
5042
4837
|
* Disallow `Array#reduce()` and `Array#reduceRight()`.
|
|
5043
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4838
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-array-reduce.md
|
|
5044
4839
|
*/
|
|
5045
4840
|
'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>
|
|
5046
4841
|
/**
|
|
5047
4842
|
* Disallow member access from await expression.
|
|
5048
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4843
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-await-expression-member.md
|
|
5049
4844
|
*/
|
|
5050
4845
|
'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>
|
|
5051
4846
|
/**
|
|
5052
4847
|
* Disallow using `await` in `Promise` method parameters.
|
|
5053
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4848
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-await-in-promise-methods.md
|
|
5054
4849
|
*/
|
|
5055
4850
|
'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>
|
|
5056
4851
|
/**
|
|
5057
4852
|
* Do not use leading/trailing space between `console.log` parameters.
|
|
5058
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4853
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-console-spaces.md
|
|
5059
4854
|
*/
|
|
5060
4855
|
'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>
|
|
5061
4856
|
/**
|
|
5062
4857
|
* Do not use `document.cookie` directly.
|
|
5063
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4858
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-document-cookie.md
|
|
5064
4859
|
*/
|
|
5065
4860
|
'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>
|
|
5066
4861
|
/**
|
|
5067
4862
|
* Disallow empty files.
|
|
5068
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4863
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-empty-file.md
|
|
5069
4864
|
*/
|
|
5070
4865
|
'unicorn/no-empty-file'?: Linter.RuleEntry<[]>
|
|
5071
4866
|
/**
|
|
5072
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4867
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#no-fn-reference-in-iterator
|
|
5073
4868
|
* @deprecated
|
|
5074
4869
|
*/
|
|
5075
4870
|
'unicorn/no-fn-reference-in-iterator'?: Linter.RuleEntry<[]>
|
|
5076
4871
|
/**
|
|
5077
4872
|
* Do not use a `for` loop that can be replaced with a `for-of` loop.
|
|
5078
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4873
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-for-loop.md
|
|
5079
4874
|
*/
|
|
5080
4875
|
'unicorn/no-for-loop'?: Linter.RuleEntry<[]>
|
|
5081
4876
|
/**
|
|
5082
4877
|
* Enforce the use of Unicode escapes instead of hexadecimal escapes.
|
|
5083
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4878
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-hex-escape.md
|
|
5084
4879
|
*/
|
|
5085
4880
|
'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>
|
|
5086
4881
|
/**
|
|
5087
4882
|
* Require `Array.isArray()` instead of `instanceof Array`.
|
|
5088
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4883
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-instanceof-array.md
|
|
5089
4884
|
*/
|
|
5090
4885
|
'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>
|
|
5091
4886
|
/**
|
|
5092
4887
|
* Disallow invalid options in `fetch()` and `new Request()`.
|
|
5093
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4888
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-invalid-fetch-options.md
|
|
5094
4889
|
*/
|
|
5095
4890
|
'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>
|
|
5096
4891
|
/**
|
|
5097
4892
|
* Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
|
|
5098
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4893
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-invalid-remove-event-listener.md
|
|
5099
4894
|
*/
|
|
5100
4895
|
'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>
|
|
5101
4896
|
/**
|
|
5102
4897
|
* Disallow identifiers starting with `new` or `class`.
|
|
5103
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4898
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-keyword-prefix.md
|
|
5104
4899
|
*/
|
|
5105
4900
|
'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>
|
|
4901
|
+
/**
|
|
4902
|
+
* Disallow using `.length` as the `end` argument of `{Array,String,TypedArray}#slice()`.
|
|
4903
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-length-as-slice-end.md
|
|
4904
|
+
*/
|
|
4905
|
+
'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>
|
|
5106
4906
|
/**
|
|
5107
4907
|
* Disallow `if` statements as the only statement in `if` blocks without `else`.
|
|
5108
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4908
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-lonely-if.md
|
|
5109
4909
|
*/
|
|
5110
4910
|
'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>
|
|
5111
4911
|
/**
|
|
5112
4912
|
* Disallow a magic number as the `depth` argument in `Array#flat(…).`
|
|
5113
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4913
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-magic-array-flat-depth.md
|
|
5114
4914
|
*/
|
|
5115
4915
|
'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>
|
|
5116
4916
|
/**
|
|
5117
4917
|
* Disallow negated conditions.
|
|
5118
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4918
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-negated-condition.md
|
|
5119
4919
|
*/
|
|
5120
4920
|
'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>
|
|
5121
4921
|
/**
|
|
5122
4922
|
* Disallow negated expression in equality check.
|
|
5123
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4923
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-negation-in-equality-check.md
|
|
5124
4924
|
*/
|
|
5125
4925
|
'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>
|
|
5126
4926
|
/**
|
|
5127
4927
|
* Disallow nested ternary expressions.
|
|
5128
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4928
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-nested-ternary.md
|
|
5129
4929
|
*/
|
|
5130
4930
|
'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>
|
|
5131
4931
|
/**
|
|
5132
4932
|
* Disallow `new Array()`.
|
|
5133
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4933
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-new-array.md
|
|
5134
4934
|
*/
|
|
5135
4935
|
'unicorn/no-new-array'?: Linter.RuleEntry<[]>
|
|
5136
4936
|
/**
|
|
5137
4937
|
* Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
|
|
5138
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4938
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-new-buffer.md
|
|
5139
4939
|
*/
|
|
5140
4940
|
'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>
|
|
5141
4941
|
/**
|
|
5142
4942
|
* Disallow the use of the `null` literal.
|
|
5143
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4943
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-null.md
|
|
5144
4944
|
*/
|
|
5145
4945
|
'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>
|
|
5146
4946
|
/**
|
|
5147
4947
|
* Disallow the use of objects as default parameters.
|
|
5148
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4948
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-object-as-default-parameter.md
|
|
5149
4949
|
*/
|
|
5150
4950
|
'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>
|
|
5151
4951
|
/**
|
|
5152
4952
|
* Disallow `process.exit()`.
|
|
5153
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4953
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-process-exit.md
|
|
5154
4954
|
*/
|
|
5155
4955
|
'unicorn/no-process-exit'?: Linter.RuleEntry<[]>
|
|
5156
4956
|
/**
|
|
5157
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4957
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#no-reduce
|
|
5158
4958
|
* @deprecated
|
|
5159
4959
|
*/
|
|
5160
4960
|
'unicorn/no-reduce'?: Linter.RuleEntry<[]>
|
|
5161
4961
|
/**
|
|
5162
4962
|
* Disallow passing single-element arrays to `Promise` methods.
|
|
5163
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4963
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-single-promise-in-promise-methods.md
|
|
5164
4964
|
*/
|
|
5165
4965
|
'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>
|
|
5166
4966
|
/**
|
|
5167
4967
|
* Disallow classes that only have static members.
|
|
5168
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4968
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-static-only-class.md
|
|
5169
4969
|
*/
|
|
5170
4970
|
'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>
|
|
5171
4971
|
/**
|
|
5172
4972
|
* Disallow `then` property.
|
|
5173
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4973
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-thenable.md
|
|
5174
4974
|
*/
|
|
5175
4975
|
'unicorn/no-thenable'?: Linter.RuleEntry<[]>
|
|
5176
4976
|
/**
|
|
5177
4977
|
* Disallow assigning `this` to a variable.
|
|
5178
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4978
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-this-assignment.md
|
|
5179
4979
|
*/
|
|
5180
4980
|
'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>
|
|
5181
4981
|
/**
|
|
5182
4982
|
* Disallow comparing `undefined` using `typeof`.
|
|
5183
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4983
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-typeof-undefined.md
|
|
5184
4984
|
*/
|
|
5185
4985
|
'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>
|
|
5186
4986
|
/**
|
|
5187
4987
|
* Disallow awaiting non-promise values.
|
|
5188
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4988
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-unnecessary-await.md
|
|
5189
4989
|
*/
|
|
5190
4990
|
'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>
|
|
5191
4991
|
/**
|
|
5192
4992
|
* Enforce the use of built-in methods instead of unnecessary polyfills.
|
|
5193
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4993
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-unnecessary-polyfills.md
|
|
5194
4994
|
*/
|
|
5195
4995
|
'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>
|
|
5196
4996
|
/**
|
|
5197
4997
|
* Disallow unreadable array destructuring.
|
|
5198
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4998
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-unreadable-array-destructuring.md
|
|
5199
4999
|
*/
|
|
5200
5000
|
'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>
|
|
5201
5001
|
/**
|
|
5202
5002
|
* Disallow unreadable IIFEs.
|
|
5203
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5003
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-unreadable-iife.md
|
|
5204
5004
|
*/
|
|
5205
5005
|
'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>
|
|
5206
5006
|
/**
|
|
5207
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5007
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#no-unsafe-regex
|
|
5208
5008
|
* @deprecated
|
|
5209
5009
|
*/
|
|
5210
5010
|
'unicorn/no-unsafe-regex'?: Linter.RuleEntry<[]>
|
|
5211
5011
|
/**
|
|
5212
5012
|
* Disallow unused object properties.
|
|
5213
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5013
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-unused-properties.md
|
|
5214
5014
|
*/
|
|
5215
5015
|
'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>
|
|
5216
5016
|
/**
|
|
5217
5017
|
* Disallow useless fallback when spreading in object literals.
|
|
5218
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5018
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-useless-fallback-in-spread.md
|
|
5219
5019
|
*/
|
|
5220
5020
|
'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>
|
|
5221
5021
|
/**
|
|
5222
5022
|
* Disallow useless array length check.
|
|
5223
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5023
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-useless-length-check.md
|
|
5224
5024
|
*/
|
|
5225
5025
|
'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>
|
|
5226
5026
|
/**
|
|
5227
5027
|
* Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
|
|
5228
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5028
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-useless-promise-resolve-reject.md
|
|
5229
5029
|
*/
|
|
5230
5030
|
'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>
|
|
5231
5031
|
/**
|
|
5232
5032
|
* Disallow unnecessary spread.
|
|
5233
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5033
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-useless-spread.md
|
|
5234
5034
|
*/
|
|
5235
5035
|
'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>
|
|
5236
5036
|
/**
|
|
5237
5037
|
* Disallow useless case in switch statements.
|
|
5238
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5038
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-useless-switch-case.md
|
|
5239
5039
|
*/
|
|
5240
5040
|
'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>
|
|
5241
5041
|
/**
|
|
5242
5042
|
* Disallow useless `undefined`.
|
|
5243
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5043
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-useless-undefined.md
|
|
5244
5044
|
*/
|
|
5245
5045
|
'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>
|
|
5246
5046
|
/**
|
|
5247
5047
|
* Disallow number literals with zero fractions or dangling dots.
|
|
5248
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5048
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-zero-fractions.md
|
|
5249
5049
|
*/
|
|
5250
5050
|
'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>
|
|
5251
5051
|
/**
|
|
5252
5052
|
* Enforce proper case for numeric literals.
|
|
5253
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5053
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/number-literal-case.md
|
|
5254
5054
|
*/
|
|
5255
5055
|
'unicorn/number-literal-case'?: Linter.RuleEntry<[]>
|
|
5256
5056
|
/**
|
|
5257
5057
|
* Enforce the style of numeric separators by correctly grouping digits.
|
|
5258
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5058
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/numeric-separators-style.md
|
|
5259
5059
|
*/
|
|
5260
5060
|
'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>
|
|
5261
5061
|
/**
|
|
5262
5062
|
* Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
|
|
5263
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5063
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-add-event-listener.md
|
|
5264
5064
|
*/
|
|
5265
5065
|
'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>
|
|
5266
5066
|
/**
|
|
5267
5067
|
* Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
|
|
5268
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5068
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-array-find.md
|
|
5269
5069
|
*/
|
|
5270
5070
|
'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>
|
|
5271
5071
|
/**
|
|
5272
5072
|
* Prefer `Array#flat()` over legacy techniques to flatten arrays.
|
|
5273
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5073
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-array-flat.md
|
|
5274
5074
|
*/
|
|
5275
5075
|
'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>
|
|
5276
5076
|
/**
|
|
5277
5077
|
* Prefer `.flatMap(…)` over `.map(…).flat()`.
|
|
5278
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5078
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-array-flat-map.md
|
|
5279
5079
|
*/
|
|
5280
5080
|
'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>
|
|
5281
5081
|
/**
|
|
5282
5082
|
* Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
|
|
5283
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5083
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-array-index-of.md
|
|
5284
5084
|
*/
|
|
5285
5085
|
'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>
|
|
5286
5086
|
/**
|
|
5287
5087
|
* Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
|
|
5288
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5088
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-array-some.md
|
|
5289
5089
|
*/
|
|
5290
5090
|
'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>
|
|
5291
5091
|
/**
|
|
5292
5092
|
* Prefer `.at()` method for index access and `String#charAt()`.
|
|
5293
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5093
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-at.md
|
|
5294
5094
|
*/
|
|
5295
5095
|
'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>
|
|
5296
5096
|
/**
|
|
5297
5097
|
* Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
|
|
5298
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5098
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-blob-reading-methods.md
|
|
5299
5099
|
*/
|
|
5300
5100
|
'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>
|
|
5301
5101
|
/**
|
|
5302
5102
|
* Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
|
|
5303
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5103
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-code-point.md
|
|
5304
5104
|
*/
|
|
5305
5105
|
'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>
|
|
5306
5106
|
/**
|
|
5307
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5107
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#prefer-dataset
|
|
5308
5108
|
* @deprecated
|
|
5309
5109
|
*/
|
|
5310
5110
|
'unicorn/prefer-dataset'?: Linter.RuleEntry<[]>
|
|
5311
5111
|
/**
|
|
5312
5112
|
* Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
|
|
5313
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5113
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-date-now.md
|
|
5314
5114
|
*/
|
|
5315
5115
|
'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>
|
|
5316
5116
|
/**
|
|
5317
5117
|
* Prefer default parameters over reassignment.
|
|
5318
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5118
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-default-parameters.md
|
|
5319
5119
|
*/
|
|
5320
5120
|
'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>
|
|
5321
5121
|
/**
|
|
5322
5122
|
* Prefer `Node#append()` over `Node#appendChild()`.
|
|
5323
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5123
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-dom-node-append.md
|
|
5324
5124
|
*/
|
|
5325
5125
|
'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>
|
|
5326
5126
|
/**
|
|
5327
5127
|
* Prefer using `.dataset` on DOM elements over calling attribute methods.
|
|
5328
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5128
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-dom-node-dataset.md
|
|
5329
5129
|
*/
|
|
5330
5130
|
'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>
|
|
5331
5131
|
/**
|
|
5332
5132
|
* Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
|
|
5333
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5133
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-dom-node-remove.md
|
|
5334
5134
|
*/
|
|
5335
5135
|
'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>
|
|
5336
5136
|
/**
|
|
5337
5137
|
* Prefer `.textContent` over `.innerText`.
|
|
5338
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5138
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-dom-node-text-content.md
|
|
5339
5139
|
*/
|
|
5340
5140
|
'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>
|
|
5341
5141
|
/**
|
|
5342
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5142
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#prefer-event-key
|
|
5343
5143
|
* @deprecated
|
|
5344
5144
|
*/
|
|
5345
5145
|
'unicorn/prefer-event-key'?: Linter.RuleEntry<[]>
|
|
5346
5146
|
/**
|
|
5347
5147
|
* Prefer `EventTarget` over `EventEmitter`.
|
|
5348
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5148
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-event-target.md
|
|
5349
5149
|
*/
|
|
5350
5150
|
'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>
|
|
5351
5151
|
/**
|
|
5352
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5152
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#prefer-exponentiation-operator
|
|
5353
5153
|
* @deprecated
|
|
5354
5154
|
*/
|
|
5355
5155
|
'unicorn/prefer-exponentiation-operator'?: Linter.RuleEntry<[]>
|
|
5356
5156
|
/**
|
|
5357
5157
|
* Prefer `export…from` when re-exporting.
|
|
5358
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5158
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-export-from.md
|
|
5359
5159
|
*/
|
|
5360
5160
|
'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>
|
|
5361
5161
|
/**
|
|
5362
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5162
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#prefer-flat-map
|
|
5363
5163
|
* @deprecated
|
|
5364
5164
|
*/
|
|
5365
5165
|
'unicorn/prefer-flat-map'?: Linter.RuleEntry<[]>
|
|
5366
5166
|
/**
|
|
5367
5167
|
* Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
|
|
5368
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5168
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-includes.md
|
|
5369
5169
|
*/
|
|
5370
5170
|
'unicorn/prefer-includes'?: Linter.RuleEntry<[]>
|
|
5371
5171
|
/**
|
|
5372
5172
|
* Prefer reading a JSON file as a buffer.
|
|
5373
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5173
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-json-parse-buffer.md
|
|
5374
5174
|
*/
|
|
5375
5175
|
'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>
|
|
5376
5176
|
/**
|
|
5377
5177
|
* Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
|
|
5378
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5178
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-keyboard-event-key.md
|
|
5379
5179
|
*/
|
|
5380
5180
|
'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>
|
|
5381
5181
|
/**
|
|
5382
5182
|
* Prefer using a logical operator over a ternary.
|
|
5383
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5183
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-logical-operator-over-ternary.md
|
|
5384
5184
|
*/
|
|
5385
5185
|
'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>
|
|
5386
5186
|
/**
|
|
5387
5187
|
* Enforce the use of `Math.trunc` instead of bitwise operators.
|
|
5388
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5188
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-math-trunc.md
|
|
5389
5189
|
*/
|
|
5390
5190
|
'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>
|
|
5391
5191
|
/**
|
|
5392
5192
|
* Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
|
|
5393
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5193
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-modern-dom-apis.md
|
|
5394
5194
|
*/
|
|
5395
5195
|
'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>
|
|
5396
5196
|
/**
|
|
5397
5197
|
* Prefer modern `Math` APIs over legacy patterns.
|
|
5398
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5198
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-modern-math-apis.md
|
|
5399
5199
|
*/
|
|
5400
5200
|
'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>
|
|
5401
5201
|
/**
|
|
5402
5202
|
* Prefer JavaScript modules (ESM) over CommonJS.
|
|
5403
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5203
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-module.md
|
|
5404
5204
|
*/
|
|
5405
5205
|
'unicorn/prefer-module'?: Linter.RuleEntry<[]>
|
|
5406
5206
|
/**
|
|
5407
5207
|
* Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
|
|
5408
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5208
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-native-coercion-functions.md
|
|
5409
5209
|
*/
|
|
5410
5210
|
'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>
|
|
5411
5211
|
/**
|
|
5412
5212
|
* Prefer negative index over `.length - index` when possible.
|
|
5413
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5213
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-negative-index.md
|
|
5414
5214
|
*/
|
|
5415
5215
|
'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>
|
|
5416
5216
|
/**
|
|
5417
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5217
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#prefer-node-append
|
|
5418
5218
|
* @deprecated
|
|
5419
5219
|
*/
|
|
5420
5220
|
'unicorn/prefer-node-append'?: Linter.RuleEntry<[]>
|
|
5421
5221
|
/**
|
|
5422
5222
|
* Prefer using the `node:` protocol when importing Node.js builtin modules.
|
|
5423
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5223
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-node-protocol.md
|
|
5424
5224
|
*/
|
|
5425
5225
|
'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>
|
|
5426
5226
|
/**
|
|
5427
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5227
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#prefer-node-remove
|
|
5428
5228
|
* @deprecated
|
|
5429
5229
|
*/
|
|
5430
5230
|
'unicorn/prefer-node-remove'?: Linter.RuleEntry<[]>
|
|
5431
5231
|
/**
|
|
5432
5232
|
* Prefer `Number` static properties over global ones.
|
|
5433
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5233
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-number-properties.md
|
|
5434
5234
|
*/
|
|
5435
5235
|
'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>
|
|
5436
5236
|
/**
|
|
5437
5237
|
* Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
|
|
5438
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5238
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-object-from-entries.md
|
|
5439
5239
|
*/
|
|
5440
5240
|
'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>
|
|
5441
5241
|
/**
|
|
5442
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5242
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#prefer-object-has-own
|
|
5443
5243
|
* @deprecated
|
|
5444
5244
|
*/
|
|
5445
5245
|
'unicorn/prefer-object-has-own'?: Linter.RuleEntry<[]>
|
|
5446
5246
|
/**
|
|
5447
5247
|
* Prefer omitting the `catch` binding parameter.
|
|
5448
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5248
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-optional-catch-binding.md
|
|
5449
5249
|
*/
|
|
5450
5250
|
'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>
|
|
5451
5251
|
/**
|
|
5452
5252
|
* Prefer borrowing methods from the prototype instead of the instance.
|
|
5453
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5253
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-prototype-methods.md
|
|
5454
5254
|
*/
|
|
5455
5255
|
'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>
|
|
5456
5256
|
/**
|
|
5457
5257
|
* Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()`.
|
|
5458
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5258
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-query-selector.md
|
|
5459
5259
|
*/
|
|
5460
5260
|
'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>
|
|
5461
5261
|
/**
|
|
5462
5262
|
* Prefer `Reflect.apply()` over `Function#apply()`.
|
|
5463
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5263
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-reflect-apply.md
|
|
5464
5264
|
*/
|
|
5465
5265
|
'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>
|
|
5466
5266
|
/**
|
|
5467
5267
|
* Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
|
|
5468
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5268
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-regexp-test.md
|
|
5469
5269
|
*/
|
|
5470
5270
|
'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>
|
|
5471
5271
|
/**
|
|
5472
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5272
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#prefer-replace-all
|
|
5473
5273
|
* @deprecated
|
|
5474
5274
|
*/
|
|
5475
5275
|
'unicorn/prefer-replace-all'?: Linter.RuleEntry<[]>
|
|
5476
5276
|
/**
|
|
5477
5277
|
* Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
|
|
5478
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5278
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-set-has.md
|
|
5479
5279
|
*/
|
|
5480
5280
|
'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>
|
|
5481
5281
|
/**
|
|
5482
5282
|
* Prefer using `Set#size` instead of `Array#length`.
|
|
5483
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5283
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-set-size.md
|
|
5484
5284
|
*/
|
|
5485
5285
|
'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>
|
|
5486
5286
|
/**
|
|
5487
5287
|
* Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
|
|
5488
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5288
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-spread.md
|
|
5489
5289
|
*/
|
|
5490
5290
|
'unicorn/prefer-spread'?: Linter.RuleEntry<[]>
|
|
5491
5291
|
/**
|
|
5492
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5292
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#prefer-starts-ends-with
|
|
5493
5293
|
* @deprecated
|
|
5494
5294
|
*/
|
|
5495
5295
|
'unicorn/prefer-starts-ends-with'?: Linter.RuleEntry<[]>
|
|
5496
5296
|
/**
|
|
5497
5297
|
* Prefer using the `String.raw` tag to avoid escaping `\`.
|
|
5498
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5298
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-string-raw.md
|
|
5499
5299
|
*/
|
|
5500
5300
|
'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>
|
|
5501
5301
|
/**
|
|
5502
5302
|
* Prefer `String#replaceAll()` over regex searches with the global flag.
|
|
5503
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5303
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-string-replace-all.md
|
|
5504
5304
|
*/
|
|
5505
5305
|
'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>
|
|
5506
5306
|
/**
|
|
5507
5307
|
* Prefer `String#slice()` over `String#substr()` and `String#substring()`.
|
|
5508
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5308
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-string-slice.md
|
|
5509
5309
|
*/
|
|
5510
5310
|
'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>
|
|
5511
5311
|
/**
|
|
5512
5312
|
* Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
|
|
5513
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5313
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-string-starts-ends-with.md
|
|
5514
5314
|
*/
|
|
5515
5315
|
'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>
|
|
5516
5316
|
/**
|
|
5517
5317
|
* Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
|
|
5518
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5318
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-string-trim-start-end.md
|
|
5519
5319
|
*/
|
|
5520
5320
|
'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>
|
|
5521
5321
|
/**
|
|
5522
5322
|
* Prefer using `structuredClone` to create a deep clone.
|
|
5523
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5323
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-structured-clone.md
|
|
5524
5324
|
*/
|
|
5525
5325
|
'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>
|
|
5526
5326
|
/**
|
|
5527
5327
|
* Prefer `switch` over multiple `else-if`.
|
|
5528
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5328
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-switch.md
|
|
5529
5329
|
*/
|
|
5530
5330
|
'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>
|
|
5531
5331
|
/**
|
|
5532
5332
|
* Prefer ternary expressions over simple `if-else` statements.
|
|
5533
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5333
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-ternary.md
|
|
5534
5334
|
*/
|
|
5535
5335
|
'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>
|
|
5536
5336
|
/**
|
|
5537
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5337
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#prefer-text-content
|
|
5538
5338
|
* @deprecated
|
|
5539
5339
|
*/
|
|
5540
5340
|
'unicorn/prefer-text-content'?: Linter.RuleEntry<[]>
|
|
5541
5341
|
/**
|
|
5542
5342
|
* Prefer top-level await over top-level promises and async function calls.
|
|
5543
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5343
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-top-level-await.md
|
|
5544
5344
|
*/
|
|
5545
5345
|
'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>
|
|
5546
5346
|
/**
|
|
5547
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5347
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#prefer-trim-start-end
|
|
5548
5348
|
* @deprecated
|
|
5549
5349
|
*/
|
|
5550
5350
|
'unicorn/prefer-trim-start-end'?: Linter.RuleEntry<[]>
|
|
5551
5351
|
/**
|
|
5552
5352
|
* Enforce throwing `TypeError` in type checking conditions.
|
|
5553
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5353
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-type-error.md
|
|
5554
5354
|
*/
|
|
5555
5355
|
'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>
|
|
5556
5356
|
/**
|
|
5557
5357
|
* Prevent abbreviations.
|
|
5558
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5358
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prevent-abbreviations.md
|
|
5559
5359
|
*/
|
|
5560
5360
|
'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>
|
|
5561
5361
|
/**
|
|
5562
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5362
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#regex-shorthand
|
|
5563
5363
|
* @deprecated
|
|
5564
5364
|
*/
|
|
5565
5365
|
'unicorn/regex-shorthand'?: Linter.RuleEntry<[]>
|
|
5566
5366
|
/**
|
|
5567
5367
|
* Enforce consistent relative URL style.
|
|
5568
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5368
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/relative-url-style.md
|
|
5569
5369
|
*/
|
|
5570
5370
|
'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>
|
|
5571
5371
|
/**
|
|
5572
5372
|
* Enforce using the separator argument with `Array#join()`.
|
|
5573
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5373
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/require-array-join-separator.md
|
|
5574
5374
|
*/
|
|
5575
5375
|
'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>
|
|
5576
5376
|
/**
|
|
5577
5377
|
* Enforce using the digits argument with `Number#toFixed()`.
|
|
5578
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5378
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/require-number-to-fixed-digits-argument.md
|
|
5579
5379
|
*/
|
|
5580
5380
|
'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>
|
|
5581
5381
|
/**
|
|
5582
5382
|
* Enforce using the `targetOrigin` argument with `window.postMessage()`.
|
|
5583
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5383
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/require-post-message-target-origin.md
|
|
5584
5384
|
*/
|
|
5585
5385
|
'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>
|
|
5586
5386
|
/**
|
|
5587
5387
|
* Enforce better string content.
|
|
5588
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5388
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/string-content.md
|
|
5589
5389
|
*/
|
|
5590
5390
|
'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>
|
|
5591
5391
|
/**
|
|
5592
5392
|
* Enforce consistent brace style for `case` clauses.
|
|
5593
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5393
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/switch-case-braces.md
|
|
5594
5394
|
*/
|
|
5595
5395
|
'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>
|
|
5596
5396
|
/**
|
|
5597
5397
|
* Fix whitespace-insensitive template indentation.
|
|
5598
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5398
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/template-indent.md
|
|
5599
5399
|
*/
|
|
5600
5400
|
'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>
|
|
5601
5401
|
/**
|
|
5602
5402
|
* Enforce consistent case for text encoding identifiers.
|
|
5603
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5403
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/text-encoding-identifier-case.md
|
|
5604
5404
|
*/
|
|
5605
5405
|
'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<[]>
|
|
5606
5406
|
/**
|
|
5607
5407
|
* Require `new` when creating an error.
|
|
5608
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5408
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/throw-new-error.md
|
|
5609
5409
|
*/
|
|
5610
5410
|
'unicorn/throw-new-error'?: Linter.RuleEntry<[]>
|
|
5611
5411
|
/**
|
|
@@ -9395,7 +9195,7 @@ type NodeNoUnsupportedFeaturesEsSyntax = []|[{
|
|
|
9395
9195
|
type NodeNoUnsupportedFeaturesNodeBuiltins = []|[{
|
|
9396
9196
|
version?: string
|
|
9397
9197
|
allowExperimental?: boolean
|
|
9398
|
-
ignores?: ("__filename" | "__dirname" | "require" | "require.cache" | "require.extensions" | "require.main" | "require.resolve" | "require.resolve.paths" | "module" | "module.children" | "module.exports" | "module.filename" | "module.id" | "module.isPreloading" | "module.loaded" | "module.parent" | "module.path" | "module.paths" | "module.require" | "exports" | "AbortController" | "AbortSignal" | "AbortSignal.abort" | "AbortSignal.timeout" | "AbortSignal.any" | "DOMException" | "FormData" | "Headers" | "MessageEvent" | "Navigator" | "Request" | "Response" | "WebAssembly" | "WebSocket" | "fetch" | "global" | "queueMicrotask" | "navigator" | "navigator.hardwareConcurrency" | "navigator.language" | "navigator.languages" | "navigator.platform" | "navigator.userAgent" | "structuredClone" | "Blob" | "new Buffer()" | "Buffer" | "Buffer.alloc" | "Buffer.allocUnsafe" | "Buffer.allocUnsafeSlow" | "Buffer.byteLength" | "Buffer.compare" | "Buffer.concat" | "Buffer.copyBytesFrom" | "Buffer.from" | "Buffer.isBuffer" | "Buffer.isEncoding" | "File" | "atob" | "btoa" | "console" | "console.profile" | "console.profileEnd" | "console.timeStamp" | "console.Console" | "console.assert" | "console.clear" | "console.count" | "console.countReset" | "console.debug" | "console.dir" | "console.dirxml" | "console.error" | "console.group" | "console.groupCollapsed" | "console.groupEnd" | "console.info" | "console.log" | "console.table" | "console.time" | "console.timeEnd" | "console.timeLog" | "console.trace" | "console.warn" | "crypto" | "crypto.subtle" | "crypto.subtle.decrypt" | "crypto.subtle.deriveBits" | "crypto.subtle.deriveKey" | "crypto.subtle.digest" | "crypto.subtle.encrypt" | "crypto.subtle.exportKey" | "crypto.subtle.generateKey" | "crypto.subtle.importKey" | "crypto.subtle.sign" | "crypto.subtle.unwrapKey" | "crypto.subtle.verify" | "crypto.subtle.wrapKey" | "crypto.getRandomValues" | "crypto.randomUUID" | "Crypto" | "CryptoKey" | "SubtleCrypto" | "CustomEvent" | "Event" | "EventTarget" | "PerformanceEntry" | "PerformanceMark" | "PerformanceMeasure" | "PerformanceObserver" | "PerformanceObserverEntryList" | "PerformanceResourceTiming" | "performance" | "process" | "process.allowedNodeEnvironmentFlags" | "process.availableMemory" | "process.arch" | "process.argv" | "process.argv0" | "process.channel" | "process.config" | "process.connected" | "process.debugPort" | "process.env" | "process.execArgv" | "process.execPath" | "process.exitCode" | "process.mainModule" | "process.noDeprecation" | "process.permission" | "process.pid" | "process.platform" | "process.ppid" | "process.release" | "process.report" | "process.sourceMapsEnabled" | "process.stdin" | "process.stdin.isRaw" | "process.stdin.isTTY" | "process.stdin.setRawMode" | "process.stdout" | "process.stdout.clearLine" | "process.stdout.clearScreenDown" | "process.stdout.columns" | "process.stdout.cursorTo" | "process.stdout.getColorDepth" | "process.stdout.getWindowSize" | "process.stdout.hasColors" | "process.stdout.isTTY" | "process.stdout.moveCursor" | "process.stdout.rows" | "process.stderr" | "process.stderr.clearLine" | "process.stderr.clearScreenDown" | "process.stderr.columns" | "process.stderr.cursorTo" | "process.stderr.getColorDepth" | "process.stderr.getWindowSize" | "process.stderr.hasColors" | "process.stderr.isTTY" | "process.stderr.moveCursor" | "process.stderr.rows" | "process.throwDeprecation" | "process.title" | "process.traceDeprecation" | "process.version" | "process.versions" | "process.abort" | "process.chdir" | "process.constrainedMemory" | "process.cpuUsage" | "process.cwd" | "process.disconnect" | "process.dlopen" | "process.emitWarning" | "process.exit" | "process.getActiveResourcesInfo" | "process.getegid" | "process.geteuid" | "process.getgid" | "process.getgroups" | "process.getuid" | "process.hasUncaughtExceptionCaptureCallback" | "process.hrtime" | "process.hrtime.bigint" | "process.initgroups" | "process.kill" | "process.loadEnvFile" | "process.memoryUsage" | "process.rss" | "process.nextTick" | "process.resourceUsage" | "process.send" | "process.setegid" | "process.seteuid" | "process.setgid" | "process.setgroups" | "process.setuid" | "process.setSourceMapsEnabled" | "process.setUncaughtExceptionCaptureCallback" | "process.umask" | "process.uptime" | "ReadableStream" | "ReadableStream.from" | "ReadableStreamDefaultReader" | "ReadableStreamBYOBReader" | "ReadableStreamDefaultController" | "ReadableByteStreamController" | "ReadableStreamBYOBRequest" | "WritableStream" | "WritableStreamDefaultWriter" | "WritableStreamDefaultController" | "TransformStream" | "TransformStreamDefaultController" | "ByteLengthQueuingStrategy" | "CountQueuingStrategy" | "TextEncoderStream" | "TextDecoderStream" | "CompressionStream" | "DecompressionStream" | "setInterval" | "clearInterval" | "setTimeout" | "clearTimeout" | "setImmediate" | "clearImmediate" | "URL" | "URL.canParse" | "URL.createObjectURL" | "URL.revokeObjectURL" | "URLSearchParams" | "TextDecoder" | "TextEncoder" | "BroadcastChannel" | "MessageChannel" | "MessagePort" | "assert" | "assert.assert" | "assert.deepEqual" | "assert.deepStrictEqual" | "assert.doesNotMatch" | "assert.doesNotReject" | "assert.doesNotThrow" | "assert.equal" | "assert.fail" | "assert.ifError" | "assert.match" | "assert.notDeepEqual" | "assert.notDeepStrictEqual" | "assert.notEqual" | "assert.notStrictEqual" | "assert.ok" | "assert.rejects" | "assert.strictEqual" | "assert.throws" | "assert.CallTracker" | "assert.strict" | "assert.strict.assert" | "assert.strict.deepEqual" | "assert.strict.deepStrictEqual" | "assert.strict.doesNotMatch" | "assert.strict.doesNotReject" | "assert.strict.doesNotThrow" | "assert.strict.equal" | "assert.strict.fail" | "assert.strict.ifError" | "assert.strict.match" | "assert.strict.notDeepEqual" | "assert.strict.notDeepStrictEqual" | "assert.strict.notEqual" | "assert.strict.notStrictEqual" | "assert.strict.ok" | "assert.strict.rejects" | "assert.strict.strictEqual" | "assert.strict.throws" | "assert.strict.CallTracker" | "assert/strict" | "assert/strict.assert" | "assert/strict.deepEqual" | "assert/strict.deepStrictEqual" | "assert/strict.doesNotMatch" | "assert/strict.doesNotReject" | "assert/strict.doesNotThrow" | "assert/strict.equal" | "assert/strict.fail" | "assert/strict.ifError" | "assert/strict.match" | "assert/strict.notDeepEqual" | "assert/strict.notDeepStrictEqual" | "assert/strict.notEqual" | "assert/strict.notStrictEqual" | "assert/strict.ok" | "assert/strict.rejects" | "assert/strict.strictEqual" | "assert/strict.throws" | "assert/strict.CallTracker" | "async_hooks" | "async_hooks.createHook" | "async_hooks.executionAsyncResource" | "async_hooks.executionAsyncId" | "async_hooks.triggerAsyncId" | "async_hooks.AsyncLocalStorage" | "async_hooks.AsyncLocalStorage.bind" | "async_hooks.AsyncLocalStorage.snapshot" | "async_hooks.AsyncResource" | "async_hooks.AsyncResource.bind" | "buffer" | "buffer.constants" | "buffer.INSPECT_MAX_BYTES" | "buffer.kMaxLength" | "buffer.kStringMaxLength" | "buffer.atob" | "buffer.btoa" | "buffer.isAscii" | "buffer.isUtf8" | "buffer.resolveObjectURL" | "buffer.transcode" | "buffer.SlowBuffer" | "buffer.Blob" | "new buffer.Buffer()" | "buffer.Buffer" | "buffer.Buffer.alloc" | "buffer.Buffer.allocUnsafe" | "buffer.Buffer.allocUnsafeSlow" | "buffer.Buffer.byteLength" | "buffer.Buffer.compare" | "buffer.Buffer.concat" | "buffer.Buffer.copyBytesFrom" | "buffer.Buffer.from" | "buffer.Buffer.isBuffer" | "buffer.Buffer.isEncoding" | "buffer.File" | "child_process" | "child_process.exec" | "child_process.execFile" | "child_process.fork" | "child_process.spawn" | "child_process.execFileSync" | "child_process.execSync" | "child_process.spawnSync" | "child_process.ChildProcess" | "cluster" | "cluster.isMaster" | "cluster.isPrimary" | "cluster.isWorker" | "cluster.schedulingPolicy" | "cluster.settings" | "cluster.worker" | "cluster.workers" | "cluster.disconnect" | "cluster.fork" | "cluster.setupMaster" | "cluster.setupPrimary" | "cluster.Worker" | "crypto.constants" | "crypto.fips" | "crypto.webcrypto" | "crypto.webcrypto.subtle" | "crypto.webcrypto.subtle.decrypt" | "crypto.webcrypto.subtle.deriveBits" | "crypto.webcrypto.subtle.deriveKey" | "crypto.webcrypto.subtle.digest" | "crypto.webcrypto.subtle.encrypt" | "crypto.webcrypto.subtle.exportKey" | "crypto.webcrypto.subtle.generateKey" | "crypto.webcrypto.subtle.importKey" | "crypto.webcrypto.subtle.sign" | "crypto.webcrypto.subtle.unwrapKey" | "crypto.webcrypto.subtle.verify" | "crypto.webcrypto.subtle.wrapKey" | "crypto.webcrypto.getRandomValues" | "crypto.webcrypto.randomUUID" | "crypto.checkPrime" | "crypto.checkPrimeSync" | "crypto.createCipher" | "crypto.createCipheriv" | "crypto.createDecipher" | "crypto.createDecipheriv" | "crypto.createDiffieHellman" | "crypto.createDiffieHellmanGroup" | "crypto.createECDH" | "crypto.createHash" | "crypto.createHmac" | "crypto.createPrivateKey" | "crypto.createPublicKey" | "crypto.createSecretKey" | "crypto.createSign" | "crypto.createVerify" | "crypto.diffieHellman" | "crypto.generateKey" | "crypto.generateKeyPair" | "crypto.generateKeyPairSync" | "crypto.generateKeySync" | "crypto.generatePrime" | "crypto.generatePrimeSync" | "crypto.getCipherInfo" | "crypto.getCiphers" | "crypto.getCurves" | "crypto.getDiffieHellman" | "crypto.getFips" | "crypto.getHashes" | "crypto.hash" | "crypto.hkdf" | "crypto.hkdfSync" | "crypto.pbkdf2" | "crypto.pbkdf2Sync" | "crypto.privateDecrypt" | "crypto.privateEncrypt" | "crypto.publicDecrypt" | "crypto.publicEncrypt" | "crypto.randomBytes" | "crypto.randomFillSync" | "crypto.randomFill" | "crypto.randomInt" | "crypto.scrypt" | "crypto.scryptSync" | "crypto.secureHeapUsed" | "crypto.setEngine" | "crypto.setFips" | "crypto.sign" | "crypto.timingSafeEqual" | "crypto.verify" | "crypto.Certificate" | "crypto.Certificate.exportChallenge" | "crypto.Certificate.exportPublicKey" | "crypto.Certificate.verifySpkac" | "crypto.Cipher" | "crypto.Decipher" | "crypto.DiffieHellman" | "crypto.DiffieHellmanGroup" | "crypto.ECDH" | "crypto.ECDH.convertKey" | "crypto.Hash()" | "new crypto.Hash()" | "crypto.Hash" | "crypto.Hmac()" | "new crypto.Hmac()" | "crypto.Hmac" | "crypto.KeyObject" | "crypto.KeyObject.from" | "crypto.Sign" | "crypto.Verify" | "crypto.X509Certificate" | "dgram" | "dgram.createSocket" | "dgram.Socket" | "diagnostics_channel" | "diagnostics_channel.hasSubscribers" | "diagnostics_channel.channel" | "diagnostics_channel.subscribe" | "diagnostics_channel.unsubscribe" | "diagnostics_channel.tracingChannel" | "diagnostics_channel.Channel" | "diagnostics_channel.TracingChannel" | "dns" | "dns.Resolver" | "dns.getServers" | "dns.lookup" | "dns.lookupService" | "dns.resolve" | "dns.resolve4" | "dns.resolve6" | "dns.resolveAny" | "dns.resolveCname" | "dns.resolveCaa" | "dns.resolveMx" | "dns.resolveNaptr" | "dns.resolveNs" | "dns.resolvePtr" | "dns.resolveSoa" | "dns.resolveSrv" | "dns.resolveTxt" | "dns.reverse" | "dns.setDefaultResultOrder" | "dns.getDefaultResultOrder" | "dns.setServers" | "dns.promises" | "dns.promises.Resolver" | "dns.promises.cancel" | "dns.promises.getServers" | "dns.promises.lookup" | "dns.promises.lookupService" | "dns.promises.resolve" | "dns.promises.resolve4" | "dns.promises.resolve6" | "dns.promises.resolveAny" | "dns.promises.resolveCaa" | "dns.promises.resolveCname" | "dns.promises.resolveMx" | "dns.promises.resolveNaptr" | "dns.promises.resolveNs" | "dns.promises.resolvePtr" | "dns.promises.resolveSoa" | "dns.promises.resolveSrv" | "dns.promises.resolveTxt" | "dns.promises.reverse" | "dns.promises.setDefaultResultOrder" | "dns.promises.getDefaultResultOrder" | "dns.promises.setServers" | "dns/promises" | "dns/promises.Resolver" | "dns/promises.cancel" | "dns/promises.getServers" | "dns/promises.lookup" | "dns/promises.lookupService" | "dns/promises.resolve" | "dns/promises.resolve4" | "dns/promises.resolve6" | "dns/promises.resolveAny" | "dns/promises.resolveCaa" | "dns/promises.resolveCname" | "dns/promises.resolveMx" | "dns/promises.resolveNaptr" | "dns/promises.resolveNs" | "dns/promises.resolvePtr" | "dns/promises.resolveSoa" | "dns/promises.resolveSrv" | "dns/promises.resolveTxt" | "dns/promises.reverse" | "dns/promises.setDefaultResultOrder" | "dns/promises.getDefaultResultOrder" | "dns/promises.setServers" | "domain" | "domain.create" | "domain.Domain" | "events" | "events.Event" | "events.EventTarget" | "events.CustomEvent" | "events.NodeEventTarget" | "events.EventEmitter" | "events.EventEmitter.defaultMaxListeners" | "events.EventEmitter.errorMonitor" | "events.EventEmitter.captureRejections" | "events.EventEmitter.captureRejectionSymbol" | "events.EventEmitter.getEventListeners" | "events.EventEmitter.getMaxListeners" | "events.EventEmitter.once" | "events.EventEmitter.listenerCount" | "events.EventEmitter.on" | "events.EventEmitter.setMaxListeners" | "events.EventEmitter.addAbortListener" | "events.EventEmitterAsyncResource" | "events.EventEmitterAsyncResource.defaultMaxListeners" | "events.EventEmitterAsyncResource.errorMonitor" | "events.EventEmitterAsyncResource.captureRejections" | "events.EventEmitterAsyncResource.captureRejectionSymbol" | "events.EventEmitterAsyncResource.getEventListeners" | "events.EventEmitterAsyncResource.getMaxListeners" | "events.EventEmitterAsyncResource.once" | "events.EventEmitterAsyncResource.listenerCount" | "events.EventEmitterAsyncResource.on" | "events.EventEmitterAsyncResource.setMaxListeners" | "events.EventEmitterAsyncResource.addAbortListener" | "events.defaultMaxListeners" | "events.errorMonitor" | "events.captureRejections" | "events.captureRejectionSymbol" | "events.getEventListeners" | "events.getMaxListeners" | "events.once" | "events.listenerCount" | "events.on" | "events.setMaxListeners" | "events.addAbortListener" | "fs" | "fs.promises" | "fs.promises.FileHandle" | "fs.promises.access" | "fs.promises.appendFile" | "fs.promises.chmod" | "fs.promises.chown" | "fs.promises.constants" | "fs.promises.copyFile" | "fs.promises.cp" | "fs.promises.glob" | "fs.promises.lchmod" | "fs.promises.lchown" | "fs.promises.link" | "fs.promises.lstat" | "fs.promises.lutimes" | "fs.promises.mkdir" | "fs.promises.mkdtemp" | "fs.promises.open" | "fs.promises.opendir" | "fs.promises.readFile" | "fs.promises.readdir" | "fs.promises.readlink" | "fs.promises.realpath" | "fs.promises.rename" | "fs.promises.rm" | "fs.promises.rmdir" | "fs.promises.stat" | "fs.promises.statfs" | "fs.promises.symlink" | "fs.promises.truncate" | "fs.promises.unlink" | "fs.promises.utimes" | "fs.promises.watch" | "fs.promises.writeFile" | "fs.access" | "fs.appendFile" | "fs.chmod" | "fs.chown" | "fs.close" | "fs.copyFile" | "fs.cp" | "fs.createReadStream" | "fs.createWriteStream" | "fs.exists" | "fs.fchmod" | "fs.fchown" | "fs.fdatasync" | "fs.fstat" | "fs.fsync" | "fs.ftruncate" | "fs.futimes" | "fs.glob" | "fs.lchmod" | "fs.lchown" | "fs.link" | "fs.lstat" | "fs.lutimes" | "fs.mkdir" | "fs.mkdtemp" | "fs.native" | "fs.open" | "fs.openAsBlob" | "fs.opendir" | "fs.read" | "fs.readdir" | "fs.readFile" | "fs.readlink" | "fs.readv" | "fs.realpath" | "fs.realpath.native" | "fs.rename" | "fs.rm" | "fs.rmdir" | "fs.stat" | "fs.statfs" | "fs.symlink" | "fs.truncate" | "fs.unlink" | "fs.unwatchFile" | "fs.utimes" | "fs.watch" | "fs.watchFile" | "fs.write" | "fs.writeFile" | "fs.writev" | "fs.accessSync" | "fs.appendFileSync" | "fs.chmodSync" | "fs.chownSync" | "fs.closeSync" | "fs.copyFileSync" | "fs.cpSync" | "fs.existsSync" | "fs.fchmodSync" | "fs.fchownSync" | "fs.fdatasyncSync" | "fs.fstatSync" | "fs.fsyncSync" | "fs.ftruncateSync" | "fs.futimesSync" | "fs.globSync" | "fs.lchmodSync" | "fs.lchownSync" | "fs.linkSync" | "fs.lstatSync" | "fs.lutimesSync" | "fs.mkdirSync" | "fs.mkdtempSync" | "fs.opendirSync" | "fs.openSync" | "fs.readdirSync" | "fs.readFileSync" | "fs.readlinkSync" | "fs.readSync" | "fs.readvSync" | "fs.realpathSync" | "fs.realpathSync.native" | "fs.renameSync" | "fs.rmdirSync" | "fs.rmSync" | "fs.statfsSync" | "fs.statSync" | "fs.symlinkSync" | "fs.truncateSync" | "fs.unlinkSync" | "fs.utimesSync" | "fs.writeFileSync" | "fs.writeSync" | "fs.writevSync" | "fs.constants" | "fs.Dir" | "fs.Dirent" | "fs.FSWatcher" | "fs.StatWatcher" | "fs.ReadStream" | "fs.Stats()" | "new fs.Stats()" | "fs.Stats" | "fs.StatFs" | "fs.WriteStream" | "fs.common_objects" | "fs/promises" | "fs/promises.FileHandle" | "fs/promises.access" | "fs/promises.appendFile" | "fs/promises.chmod" | "fs/promises.chown" | "fs/promises.constants" | "fs/promises.copyFile" | "fs/promises.cp" | "fs/promises.glob" | "fs/promises.lchmod" | "fs/promises.lchown" | "fs/promises.link" | "fs/promises.lstat" | "fs/promises.lutimes" | "fs/promises.mkdir" | "fs/promises.mkdtemp" | "fs/promises.open" | "fs/promises.opendir" | "fs/promises.readFile" | "fs/promises.readdir" | "fs/promises.readlink" | "fs/promises.realpath" | "fs/promises.rename" | "fs/promises.rm" | "fs/promises.rmdir" | "fs/promises.stat" | "fs/promises.statfs" | "fs/promises.symlink" | "fs/promises.truncate" | "fs/promises.unlink" | "fs/promises.utimes" | "fs/promises.watch" | "fs/promises.writeFile" | "http2" | "http2.constants" | "http2.sensitiveHeaders" | "http2.createServer" | "http2.createSecureServer" | "http2.connect" | "http2.getDefaultSettings" | "http2.getPackedSettings" | "http2.getUnpackedSettings" | "http2.performServerHandshake" | "http2.Http2Session" | "http2.ServerHttp2Session" | "http2.ClientHttp2Session" | "http2.Http2Stream" | "http2.ClientHttp2Stream" | "http2.ServerHttp2Stream" | "http2.Http2Server" | "http2.Http2SecureServer" | "http2.Http2ServerRequest" | "http2.Http2ServerResponse" | "http" | "http.globalAgent" | "http.createServer" | "http.get" | "http.request" | "http.Agent" | "http.Server" | "inspector" | "inspector.Session" | "inspector.console" | "inspector.close" | "inspector.open" | "inspector.url" | "inspector.waitForDebugger" | "inspector/promises" | "inspector/promises.Session" | "inspector/promises.console" | "inspector/promises.close" | "inspector/promises.open" | "inspector/promises.url" | "inspector/promises.waitForDebugger" | "module.builtinModules" | "module.createRequire" | "module.createRequireFromPath" | "module.isBuiltin" | "module.register" | "module.syncBuiltinESMExports" | "module.findSourceMap" | "module.SourceMap" | "module.Module.builtinModules" | "module.Module.createRequire" | "module.Module.createRequireFromPath" | "module.Module.isBuiltin" | "module.Module.register" | "module.Module.syncBuiltinESMExports" | "module.Module.findSourceMap" | "module.Module.SourceMap" | "net" | "net.connect" | "net.createConnection" | "net.createServer" | "net.getDefaultAutoSelectFamily" | "net.setDefaultAutoSelectFamily" | "net.getDefaultAutoSelectFamilyAttemptTimeout" | "net.setDefaultAutoSelectFamilyAttemptTimeout" | "net.isIP" | "net.isIPv4" | "net.isIPv6" | "net.BlockList" | "net.SocketAddress" | "net.Server" | "net.Socket" | "os" | "os.EOL" | "os.constants" | "os.constants.priority" | "os.devNull" | "os.availableParallelism" | "os.arch" | "os.cpus" | "os.endianness" | "os.freemem" | "os.getPriority" | "os.homedir" | "os.hostname" | "os.loadavg" | "os.machine" | "os.networkInterfaces" | "os.platform" | "os.release" | "os.setPriority" | "os.tmpdir" | "os.totalmem" | "os.type" | "os.uptime" | "os.userInfo" | "os.version" | "path" | "path.posix" | "path.posix.delimiter" | "path.posix.sep" | "path.posix.basename" | "path.posix.dirname" | "path.posix.extname" | "path.posix.format" | "path.posix.isAbsolute" | "path.posix.join" | "path.posix.normalize" | "path.posix.parse" | "path.posix.relative" | "path.posix.resolve" | "path.posix.toNamespacedPath" | "path.win32" | "path.win32.delimiter" | "path.win32.sep" | "path.win32.basename" | "path.win32.dirname" | "path.win32.extname" | "path.win32.format" | "path.win32.isAbsolute" | "path.win32.join" | "path.win32.normalize" | "path.win32.parse" | "path.win32.relative" | "path.win32.resolve" | "path.win32.toNamespacedPath" | "path.delimiter" | "path.sep" | "path.basename" | "path.dirname" | "path.extname" | "path.format" | "path.isAbsolute" | "path.join" | "path.normalize" | "path.parse" | "path.relative" | "path.resolve" | "path.toNamespacedPath" | "path/posix" | "path/posix.delimiter" | "path/posix.sep" | "path/posix.basename" | "path/posix.dirname" | "path/posix.extname" | "path/posix.format" | "path/posix.isAbsolute" | "path/posix.join" | "path/posix.normalize" | "path/posix.parse" | "path/posix.relative" | "path/posix.resolve" | "path/posix.toNamespacedPath" | "path/win32" | "path/win32.delimiter" | "path/win32.sep" | "path/win32.basename" | "path/win32.dirname" | "path/win32.extname" | "path/win32.format" | "path/win32.isAbsolute" | "path/win32.join" | "path/win32.normalize" | "path/win32.parse" | "path/win32.relative" | "path/win32.resolve" | "path/win32.toNamespacedPath" | "perf_hooks" | "perf_hooks.performance" | "perf_hooks.createHistogram" | "perf_hooks.monitorEventLoopDelay" | "perf_hooks.PerformanceEntry" | "perf_hooks.PerformanceMark" | "perf_hooks.PerformanceMeasure" | "perf_hooks.PerformanceNodeEntry" | "perf_hooks.PerformanceNodeTiming" | "perf_hooks.PerformanceResourceTiming" | "perf_hooks.PerformanceObserver" | "perf_hooks.PerformanceObserverEntryList" | "perf_hooks.Histogram" | "perf_hooks.IntervalHistogram" | "perf_hooks.RecordableHistogram" | "punycode" | "punycode.ucs2" | "punycode.version" | "punycode.decode" | "punycode.encode" | "punycode.toASCII" | "punycode.toUnicode" | "querystring" | "querystring.decode" | "querystring.encode" | "querystring.escape" | "querystring.parse" | "querystring.stringify" | "querystring.unescape" | "readline" | "readline.promises" | "readline.promises.createInterface" | "readline.promises.Interface" | "readline.promises.Readline" | "readline.clearLine" | "readline.clearScreenDown" | "readline.createInterface" | "readline.cursorTo" | "readline.moveCursor" | "readline.Interface" | "readline.emitKeypressEvents" | "readline.InterfaceConstructor" | "readline/promises" | "readline/promises.createInterface" | "readline/promises.Interface" | "readline/promises.Readline" | "sea" | "sea.isSea" | "sea.getAsset" | "sea.getAssetAsBlob" | "sea.getRawAsset" | "sea.test.isSea" | "sea.test.getAsset" | "sea.test.getAssetAsBlob" | "sea.test.getRawAsset" | "stream" | "stream.promises" | "stream.promises.pipeline" | "stream.promises.finished" | "stream.finished" | "stream.pipeline" | "stream.compose" | "stream.Readable" | "stream.Readable.from" | "stream.Readable.isDisturbed" | "stream.Readable.fromWeb" | "stream.Readable.toWeb" | "stream.Writable" | "stream.Writable.fromWeb" | "stream.Writable.toWeb" | "stream.Duplex" | "stream.Duplex.from" | "stream.Duplex.fromWeb" | "stream.Duplex.toWeb" | "stream.Transform" | "stream.isErrored" | "stream.isReadable" | "stream.addAbortSignal" | "stream.getDefaultHighWaterMark" | "stream.setDefaultHighWaterMark" | "stream/promises.pipeline" | "stream/promises.finished" | "stream/web" | "stream/web.ReadableStream" | "stream/web.ReadableStream.from" | "stream/web.ReadableStreamDefaultReader" | "stream/web.ReadableStreamBYOBReader" | "stream/web.ReadableStreamDefaultController" | "stream/web.ReadableByteStreamController" | "stream/web.ReadableStreamBYOBRequest" | "stream/web.WritableStream" | "stream/web.WritableStreamDefaultWriter" | "stream/web.WritableStreamDefaultController" | "stream/web.TransformStream" | "stream/web.TransformStreamDefaultController" | "stream/web.ByteLengthQueuingStrategy" | "stream/web.CountQueuingStrategy" | "stream/web.TextEncoderStream" | "stream/web.TextDecoderStream" | "stream/web.CompressionStream" | "stream/web.DecompressionStream" | "stream/consumers" | "stream/consumers.arrayBuffer" | "stream/consumers.blob" | "stream/consumers.buffer" | "stream/consumers.json" | "stream/consumers.text" | "string_decoder" | "string_decoder.StringDecoder" | "test" | "test.run" | "test.skip" | "test.todo" | "test.only" | "test.describe" | "test.describe.skip" | "test.describe.todo" | "test.describe.only" | "test.it" | "test.it.skip" | "test.it.todo" | "test.it.only" | "test.suite" | "test.suite.skip" | "test.suite.todo" | "test.suite.only" | "test.before" | "test.after" | "test.beforeEach" | "test.afterEach" | "test.MockFunctionContext" | "test.MockTracker" | "test.MockTimers" | "test.TestsStream" | "test.TestContext" | "test.SuiteContext" | "test.test.run" | "test.test.skip" | "test.test.todo" | "test.test.only" | "test.test.describe" | "test.test.it" | "test.test.suite" | "test.test.before" | "test.test.after" | "test.test.beforeEach" | "test.test.afterEach" | "test.test.MockFunctionContext" | "test.test.MockTracker" | "test.test.MockTimers" | "test.test.TestsStream" | "test.test.TestContext" | "test.test.SuiteContext" | "timers" | "timers.Immediate" | "timers.Timeout" | "timers.setImmediate" | "timers.clearImmediate" | "timers.setInterval" | "timers.clearInterval" | "timers.setTimeout" | "timers.clearTimeout" | "timers.promises" | "timers.promises.setTimeout" | "timers.promises.setImmediate" | "timers.promises.setInterval" | "timers.promises.scheduler.wait" | "timers.promises.scheduler.yield" | "timers/promises" | "timers/promises.setTimeout" | "timers/promises.setImmediate" | "timers/promises.setInterval" | "tls" | "tls.rootCertificates" | "tls.DEFAULT_ECDH_CURVE" | "tls.DEFAULT_MAX_VERSION" | "tls.DEFAULT_MIN_VERSION" | "tls.DEFAULT_CIPHERS" | "tls.checkServerIdentity" | "tls.connect" | "tls.createSecureContext" | "tls.createSecurePair" | "tls.createServer" | "tls.getCiphers" | "tls.SecureContext" | "tls.CryptoStream" | "tls.SecurePair" | "tls.Server" | "tls.TLSSocket" | "trace_events" | "trace_events.createTracing" | "trace_events.getEnabledCategories" | "tty" | "tty.isatty" | "tty.ReadStream" | "tty.WriteStream" | "url" | "url.domainToASCII" | "url.domainToUnicode" | "url.fileURLToPath" | "url.format" | "url.pathToFileURL" | "url.urlToHttpOptions" | "url.URL" | "url.URL.canParse" | "url.URL.createObjectURL" | "url.URL.revokeObjectURL" | "url.URLSearchParams" | "url.Url" | "util.promisify" | "util.promisify.custom" | "util.callbackify" | "util.debuglog" | "util.debug" | "util.deprecate" | "util.format" | "util.formatWithOptions" | "util.getSystemErrorName" | "util.getSystemErrorMap" | "util.inherits" | "util.inspect" | "util.inspect.custom" | "util.inspect.defaultOptions" | "util.inspect.replDefaults" | "util.isDeepStrictEqual" | "util.parseArgs" | "util.parseEnv" | "util.stripVTControlCharacters" | "util.styleText" | "util.toUSVString" | "util.transferableAbortController" | "util.transferableAbortSignal" | "util.aborted" | "util.MIMEType" | "util.MIMEParams" | "util.TextDecoder" | "util.TextEncoder" | "util.types" | "util.types.isExternal" | "util.types.isDate" | "util.types.isArgumentsObject" | "util.types.isBigIntObject" | "util.types.isBooleanObject" | "util.types.isNumberObject" | "util.types.isStringObject" | "util.types.isSymbolObject" | "util.types.isNativeError" | "util.types.isRegExp" | "util.types.isAsyncFunction" | "util.types.isGeneratorFunction" | "util.types.isGeneratorObject" | "util.types.isPromise" | "util.types.isMap" | "util.types.isSet" | "util.types.isMapIterator" | "util.types.isSetIterator" | "util.types.isWeakMap" | "util.types.isWeakSet" | "util.types.isArrayBuffer" | "util.types.isDataView" | "util.types.isSharedArrayBuffer" | "util.types.isProxy" | "util.types.isModuleNamespaceObject" | "util.types.isAnyArrayBuffer" | "util.types.isBoxedPrimitive" | "util.types.isArrayBufferView" | "util.types.isTypedArray" | "util.types.isUint8Array" | "util.types.isUint8ClampedArray" | "util.types.isUint16Array" | "util.types.isUint32Array" | "util.types.isInt8Array" | "util.types.isInt16Array" | "util.types.isInt32Array" | "util.types.isFloat32Array" | "util.types.isFloat64Array" | "util.types.isBigInt64Array" | "util.types.isBigUint64Array" | "util.types.isKeyObject" | "util.types.isCryptoKey" | "util.types.isWebAssemblyCompiledModule" | "util._extend" | "util.isArray" | "util.isBoolean" | "util.isBuffer" | "util.isDate" | "util.isError" | "util.isFunction" | "util.isNull" | "util.isNullOrUndefined" | "util.isNumber" | "util.isObject" | "util.isPrimitive" | "util.isRegExp" | "util.isString" | "util.isSymbol" | "util.isUndefined" | "util.log" | "util" | "util/types" | "util/types.isExternal" | "util/types.isDate" | "util/types.isArgumentsObject" | "util/types.isBigIntObject" | "util/types.isBooleanObject" | "util/types.isNumberObject" | "util/types.isStringObject" | "util/types.isSymbolObject" | "util/types.isNativeError" | "util/types.isRegExp" | "util/types.isAsyncFunction" | "util/types.isGeneratorFunction" | "util/types.isGeneratorObject" | "util/types.isPromise" | "util/types.isMap" | "util/types.isSet" | "util/types.isMapIterator" | "util/types.isSetIterator" | "util/types.isWeakMap" | "util/types.isWeakSet" | "util/types.isArrayBuffer" | "util/types.isDataView" | "util/types.isSharedArrayBuffer" | "util/types.isProxy" | "util/types.isModuleNamespaceObject" | "util/types.isAnyArrayBuffer" | "util/types.isBoxedPrimitive" | "util/types.isArrayBufferView" | "util/types.isTypedArray" | "util/types.isUint8Array" | "util/types.isUint8ClampedArray" | "util/types.isUint16Array" | "util/types.isUint32Array" | "util/types.isInt8Array" | "util/types.isInt16Array" | "util/types.isInt32Array" | "util/types.isFloat32Array" | "util/types.isFloat64Array" | "util/types.isBigInt64Array" | "util/types.isBigUint64Array" | "util/types.isKeyObject" | "util/types.isCryptoKey" | "util/types.isWebAssemblyCompiledModule" | "v8" | "v8.serialize" | "v8.deserialize" | "v8.Serializer" | "v8.Deserializer" | "v8.DefaultSerializer" | "v8.DefaultDeserializer" | "v8.promiseHooks" | "v8.promiseHooks.onInit" | "v8.promiseHooks.onSettled" | "v8.promiseHooks.onBefore" | "v8.promiseHooks.onAfter" | "v8.promiseHooks.createHook" | "v8.startupSnapshot" | "v8.startupSnapshot.addSerializeCallback" | "v8.startupSnapshot.addDeserializeCallback" | "v8.startupSnapshot.setDeserializeMainFunction" | "v8.startupSnapshot.isBuildingSnapshot" | "v8.cachedDataVersionTag" | "v8.getHeapCodeStatistics" | "v8.getHeapSnapshot" | "v8.getHeapSpaceStatistics" | "v8.getHeapStatistics" | "v8.queryObjects" | "v8.setFlagsFromString" | "v8.stopCoverage" | "v8.takeCoverage" | "v8.writeHeapSnapshot" | "v8.setHeapSnapshotNearHeapLimit" | "v8.GCProfiler" | "vm.constants" | "vm.compileFunction" | "vm.createContext" | "vm.isContext" | "vm.measureMemory" | "vm.runInContext" | "vm.runInNewContext" | "vm.runInThisContext" | "vm.Script" | "vm.Module" | "vm.SourceTextModule" | "vm.SyntheticModule" | "vm" | "wasi.WASI" | "wasi" | "worker_threads" | "worker_threads.isMainThread" | "worker_threads.parentPort" | "worker_threads.resourceLimits" | "worker_threads.SHARE_ENV" | "worker_threads.threadId" | "worker_threads.workerData" | "worker_threads.getEnvironmentData" | "worker_threads.markAsUntransferable" | "worker_threads.isMarkedAsUntransferable" | "worker_threads.moveMessagePortToContext" | "worker_threads.receiveMessageOnPort" | "worker_threads.setEnvironmentData" | "worker_threads.BroadcastChannel" | "worker_threads.MessageChannel" | "worker_threads.MessagePort" | "worker_threads.Worker" | "zlib.constants" | "zlib.crc32" | "zlib.createBrotliCompress" | "zlib.createBrotliDecompress" | "zlib.createDeflate" | "zlib.createDeflateRaw" | "zlib.createGunzip" | "zlib.createGzip" | "zlib.createInflate" | "zlib.createInflateRaw" | "zlib.createUnzip" | "zlib.brotliCompress" | "zlib.brotliCompressSync" | "zlib.brotliDecompress" | "zlib.brotliDecompressSync" | "zlib.deflate" | "zlib.deflateSync" | "zlib.deflateRaw" | "zlib.deflateRawSync" | "zlib.gunzip" | "zlib.gunzipSync" | "zlib.gzip" | "zlib.gzipSync" | "zlib.inflate" | "zlib.inflateSync" | "zlib.inflateRaw" | "zlib.inflateRawSync" | "zlib.unzip" | "zlib.unzipSync" | "zlib.BrotliCompress" | "zlib.BrotliDecompress" | "zlib.Deflate" | "zlib.DeflateRaw" | "zlib.Gunzip" | "zlib.Gzip" | "zlib.Inflate" | "zlib.InflateRaw" | "zlib.Unzip" | "zlib")[]
|
|
9198
|
+
ignores?: ("__filename" | "__dirname" | "require" | "require.cache" | "require.extensions" | "require.main" | "require.resolve" | "require.resolve.paths" | "module" | "module.children" | "module.exports" | "module.filename" | "module.id" | "module.isPreloading" | "module.loaded" | "module.parent" | "module.path" | "module.paths" | "module.require" | "exports" | "AbortController" | "AbortSignal" | "AbortSignal.abort" | "AbortSignal.timeout" | "AbortSignal.any" | "DOMException" | "FormData" | "Headers" | "MessageEvent" | "Navigator" | "Request" | "Response" | "WebAssembly" | "WebSocket" | "fetch" | "global" | "queueMicrotask" | "navigator" | "navigator.hardwareConcurrency" | "navigator.language" | "navigator.languages" | "navigator.platform" | "navigator.userAgent" | "structuredClone" | "localStorage" | "sessionStorage" | "Storage" | "Blob" | "new Buffer()" | "Buffer" | "Buffer.alloc" | "Buffer.allocUnsafe" | "Buffer.allocUnsafeSlow" | "Buffer.byteLength" | "Buffer.compare" | "Buffer.concat" | "Buffer.copyBytesFrom" | "Buffer.from" | "Buffer.isBuffer" | "Buffer.isEncoding" | "File" | "atob" | "btoa" | "console" | "console.profile" | "console.profileEnd" | "console.timeStamp" | "console.Console" | "console.assert" | "console.clear" | "console.count" | "console.countReset" | "console.debug" | "console.dir" | "console.dirxml" | "console.error" | "console.group" | "console.groupCollapsed" | "console.groupEnd" | "console.info" | "console.log" | "console.table" | "console.time" | "console.timeEnd" | "console.timeLog" | "console.trace" | "console.warn" | "crypto" | "crypto.subtle" | "crypto.subtle.decrypt" | "crypto.subtle.deriveBits" | "crypto.subtle.deriveKey" | "crypto.subtle.digest" | "crypto.subtle.encrypt" | "crypto.subtle.exportKey" | "crypto.subtle.generateKey" | "crypto.subtle.importKey" | "crypto.subtle.sign" | "crypto.subtle.unwrapKey" | "crypto.subtle.verify" | "crypto.subtle.wrapKey" | "crypto.getRandomValues" | "crypto.randomUUID" | "Crypto" | "CryptoKey" | "SubtleCrypto" | "CustomEvent" | "Event" | "EventTarget" | "PerformanceEntry" | "PerformanceMark" | "PerformanceMeasure" | "PerformanceObserver" | "PerformanceObserverEntryList" | "PerformanceResourceTiming" | "performance" | "process" | "process.allowedNodeEnvironmentFlags" | "process.availableMemory" | "process.arch" | "process.argv" | "process.argv0" | "process.channel" | "process.config" | "process.connected" | "process.debugPort" | "process.env" | "process.execArgv" | "process.execPath" | "process.exitCode" | "process.finalization.register" | "process.finalization.registerBeforeExit" | "process.finalization.unregister" | "process.getBuiltinModule" | "process.mainModule" | "process.noDeprecation" | "process.permission" | "process.pid" | "process.platform" | "process.ppid" | "process.release" | "process.report" | "process.sourceMapsEnabled" | "process.stdin" | "process.stdin.isRaw" | "process.stdin.isTTY" | "process.stdin.setRawMode" | "process.stdout" | "process.stdout.clearLine" | "process.stdout.clearScreenDown" | "process.stdout.columns" | "process.stdout.cursorTo" | "process.stdout.getColorDepth" | "process.stdout.getWindowSize" | "process.stdout.hasColors" | "process.stdout.isTTY" | "process.stdout.moveCursor" | "process.stdout.rows" | "process.stderr" | "process.stderr.clearLine" | "process.stderr.clearScreenDown" | "process.stderr.columns" | "process.stderr.cursorTo" | "process.stderr.getColorDepth" | "process.stderr.getWindowSize" | "process.stderr.hasColors" | "process.stderr.isTTY" | "process.stderr.moveCursor" | "process.stderr.rows" | "process.throwDeprecation" | "process.title" | "process.traceDeprecation" | "process.version" | "process.versions" | "process.abort" | "process.chdir" | "process.constrainedMemory" | "process.cpuUsage" | "process.cwd" | "process.disconnect" | "process.dlopen" | "process.emitWarning" | "process.exit" | "process.getActiveResourcesInfo" | "process.getegid" | "process.geteuid" | "process.getgid" | "process.getgroups" | "process.getuid" | "process.hasUncaughtExceptionCaptureCallback" | "process.hrtime" | "process.hrtime.bigint" | "process.initgroups" | "process.kill" | "process.loadEnvFile" | "process.memoryUsage" | "process.rss" | "process.nextTick" | "process.resourceUsage" | "process.send" | "process.setegid" | "process.seteuid" | "process.setgid" | "process.setgroups" | "process.setuid" | "process.setSourceMapsEnabled" | "process.setUncaughtExceptionCaptureCallback" | "process.umask" | "process.uptime" | "ReadableStream" | "ReadableStream.from" | "ReadableStreamDefaultReader" | "ReadableStreamBYOBReader" | "ReadableStreamDefaultController" | "ReadableByteStreamController" | "ReadableStreamBYOBRequest" | "WritableStream" | "WritableStreamDefaultWriter" | "WritableStreamDefaultController" | "TransformStream" | "TransformStreamDefaultController" | "ByteLengthQueuingStrategy" | "CountQueuingStrategy" | "TextEncoderStream" | "TextDecoderStream" | "CompressionStream" | "DecompressionStream" | "setInterval" | "clearInterval" | "setTimeout" | "clearTimeout" | "setImmediate" | "clearImmediate" | "URL" | "URL.canParse" | "URL.createObjectURL" | "URL.revokeObjectURL" | "URLSearchParams" | "TextDecoder" | "TextEncoder" | "BroadcastChannel" | "MessageChannel" | "MessagePort" | "assert" | "assert.assert" | "assert.deepEqual" | "assert.deepStrictEqual" | "assert.doesNotMatch" | "assert.doesNotReject" | "assert.doesNotThrow" | "assert.equal" | "assert.fail" | "assert.ifError" | "assert.match" | "assert.notDeepEqual" | "assert.notDeepStrictEqual" | "assert.notEqual" | "assert.notStrictEqual" | "assert.ok" | "assert.rejects" | "assert.strictEqual" | "assert.throws" | "assert.CallTracker" | "assert.strict" | "assert.strict.assert" | "assert.strict.deepEqual" | "assert.strict.deepStrictEqual" | "assert.strict.doesNotMatch" | "assert.strict.doesNotReject" | "assert.strict.doesNotThrow" | "assert.strict.equal" | "assert.strict.fail" | "assert.strict.ifError" | "assert.strict.match" | "assert.strict.notDeepEqual" | "assert.strict.notDeepStrictEqual" | "assert.strict.notEqual" | "assert.strict.notStrictEqual" | "assert.strict.ok" | "assert.strict.rejects" | "assert.strict.strictEqual" | "assert.strict.throws" | "assert.strict.CallTracker" | "assert/strict" | "assert/strict.assert" | "assert/strict.deepEqual" | "assert/strict.deepStrictEqual" | "assert/strict.doesNotMatch" | "assert/strict.doesNotReject" | "assert/strict.doesNotThrow" | "assert/strict.equal" | "assert/strict.fail" | "assert/strict.ifError" | "assert/strict.match" | "assert/strict.notDeepEqual" | "assert/strict.notDeepStrictEqual" | "assert/strict.notEqual" | "assert/strict.notStrictEqual" | "assert/strict.ok" | "assert/strict.rejects" | "assert/strict.strictEqual" | "assert/strict.throws" | "assert/strict.CallTracker" | "async_hooks" | "async_hooks.createHook" | "async_hooks.executionAsyncResource" | "async_hooks.executionAsyncId" | "async_hooks.triggerAsyncId" | "async_hooks.AsyncLocalStorage" | "async_hooks.AsyncLocalStorage.bind" | "async_hooks.AsyncLocalStorage.snapshot" | "async_hooks.AsyncResource" | "async_hooks.AsyncResource.bind" | "buffer" | "buffer.constants" | "buffer.INSPECT_MAX_BYTES" | "buffer.kMaxLength" | "buffer.kStringMaxLength" | "buffer.atob" | "buffer.btoa" | "buffer.isAscii" | "buffer.isUtf8" | "buffer.resolveObjectURL" | "buffer.transcode" | "buffer.SlowBuffer" | "buffer.Blob" | "new buffer.Buffer()" | "buffer.Buffer" | "buffer.Buffer.alloc" | "buffer.Buffer.allocUnsafe" | "buffer.Buffer.allocUnsafeSlow" | "buffer.Buffer.byteLength" | "buffer.Buffer.compare" | "buffer.Buffer.concat" | "buffer.Buffer.copyBytesFrom" | "buffer.Buffer.from" | "buffer.Buffer.isBuffer" | "buffer.Buffer.isEncoding" | "buffer.File" | "child_process" | "child_process.exec" | "child_process.execFile" | "child_process.fork" | "child_process.spawn" | "child_process.execFileSync" | "child_process.execSync" | "child_process.spawnSync" | "child_process.ChildProcess" | "cluster" | "cluster.isMaster" | "cluster.isPrimary" | "cluster.isWorker" | "cluster.schedulingPolicy" | "cluster.settings" | "cluster.worker" | "cluster.workers" | "cluster.disconnect" | "cluster.fork" | "cluster.setupMaster" | "cluster.setupPrimary" | "cluster.Worker" | "crypto.constants" | "crypto.fips" | "crypto.webcrypto" | "crypto.webcrypto.subtle" | "crypto.webcrypto.subtle.decrypt" | "crypto.webcrypto.subtle.deriveBits" | "crypto.webcrypto.subtle.deriveKey" | "crypto.webcrypto.subtle.digest" | "crypto.webcrypto.subtle.encrypt" | "crypto.webcrypto.subtle.exportKey" | "crypto.webcrypto.subtle.generateKey" | "crypto.webcrypto.subtle.importKey" | "crypto.webcrypto.subtle.sign" | "crypto.webcrypto.subtle.unwrapKey" | "crypto.webcrypto.subtle.verify" | "crypto.webcrypto.subtle.wrapKey" | "crypto.webcrypto.getRandomValues" | "crypto.webcrypto.randomUUID" | "crypto.checkPrime" | "crypto.checkPrimeSync" | "crypto.createCipher" | "crypto.createCipheriv" | "crypto.createDecipher" | "crypto.createDecipheriv" | "crypto.createDiffieHellman" | "crypto.createDiffieHellmanGroup" | "crypto.createECDH" | "crypto.createHash" | "crypto.createHmac" | "crypto.createPrivateKey" | "crypto.createPublicKey" | "crypto.createSecretKey" | "crypto.createSign" | "crypto.createVerify" | "crypto.diffieHellman" | "crypto.generateKey" | "crypto.generateKeyPair" | "crypto.generateKeyPairSync" | "crypto.generateKeySync" | "crypto.generatePrime" | "crypto.generatePrimeSync" | "crypto.getCipherInfo" | "crypto.getCiphers" | "crypto.getCurves" | "crypto.getDiffieHellman" | "crypto.getFips" | "crypto.getHashes" | "crypto.hash" | "crypto.hkdf" | "crypto.hkdfSync" | "crypto.pbkdf2" | "crypto.pbkdf2Sync" | "crypto.privateDecrypt" | "crypto.privateEncrypt" | "crypto.publicDecrypt" | "crypto.publicEncrypt" | "crypto.randomBytes" | "crypto.randomFillSync" | "crypto.randomFill" | "crypto.randomInt" | "crypto.scrypt" | "crypto.scryptSync" | "crypto.secureHeapUsed" | "crypto.setEngine" | "crypto.setFips" | "crypto.sign" | "crypto.timingSafeEqual" | "crypto.verify" | "crypto.Certificate" | "crypto.Certificate.exportChallenge" | "crypto.Certificate.exportPublicKey" | "crypto.Certificate.verifySpkac" | "crypto.Cipher" | "crypto.Decipher" | "crypto.DiffieHellman" | "crypto.DiffieHellmanGroup" | "crypto.ECDH" | "crypto.ECDH.convertKey" | "crypto.Hash()" | "new crypto.Hash()" | "crypto.Hash" | "crypto.Hmac()" | "new crypto.Hmac()" | "crypto.Hmac" | "crypto.KeyObject" | "crypto.KeyObject.from" | "crypto.Sign" | "crypto.Verify" | "crypto.X509Certificate" | "dgram" | "dgram.createSocket" | "dgram.Socket" | "diagnostics_channel" | "diagnostics_channel.hasSubscribers" | "diagnostics_channel.channel" | "diagnostics_channel.subscribe" | "diagnostics_channel.unsubscribe" | "diagnostics_channel.tracingChannel" | "diagnostics_channel.Channel" | "diagnostics_channel.TracingChannel" | "dns" | "dns.Resolver" | "dns.getServers" | "dns.lookup" | "dns.lookupService" | "dns.resolve" | "dns.resolve4" | "dns.resolve6" | "dns.resolveAny" | "dns.resolveCname" | "dns.resolveCaa" | "dns.resolveMx" | "dns.resolveNaptr" | "dns.resolveNs" | "dns.resolvePtr" | "dns.resolveSoa" | "dns.resolveSrv" | "dns.resolveTxt" | "dns.reverse" | "dns.setDefaultResultOrder" | "dns.getDefaultResultOrder" | "dns.setServers" | "dns.promises" | "dns.promises.Resolver" | "dns.promises.cancel" | "dns.promises.getServers" | "dns.promises.lookup" | "dns.promises.lookupService" | "dns.promises.resolve" | "dns.promises.resolve4" | "dns.promises.resolve6" | "dns.promises.resolveAny" | "dns.promises.resolveCaa" | "dns.promises.resolveCname" | "dns.promises.resolveMx" | "dns.promises.resolveNaptr" | "dns.promises.resolveNs" | "dns.promises.resolvePtr" | "dns.promises.resolveSoa" | "dns.promises.resolveSrv" | "dns.promises.resolveTxt" | "dns.promises.reverse" | "dns.promises.setDefaultResultOrder" | "dns.promises.getDefaultResultOrder" | "dns.promises.setServers" | "dns/promises" | "dns/promises.Resolver" | "dns/promises.cancel" | "dns/promises.getServers" | "dns/promises.lookup" | "dns/promises.lookupService" | "dns/promises.resolve" | "dns/promises.resolve4" | "dns/promises.resolve6" | "dns/promises.resolveAny" | "dns/promises.resolveCaa" | "dns/promises.resolveCname" | "dns/promises.resolveMx" | "dns/promises.resolveNaptr" | "dns/promises.resolveNs" | "dns/promises.resolvePtr" | "dns/promises.resolveSoa" | "dns/promises.resolveSrv" | "dns/promises.resolveTxt" | "dns/promises.reverse" | "dns/promises.setDefaultResultOrder" | "dns/promises.getDefaultResultOrder" | "dns/promises.setServers" | "domain" | "domain.create" | "domain.Domain" | "events" | "events.Event" | "events.EventTarget" | "events.CustomEvent" | "events.NodeEventTarget" | "events.EventEmitter" | "events.EventEmitter.defaultMaxListeners" | "events.EventEmitter.errorMonitor" | "events.EventEmitter.captureRejections" | "events.EventEmitter.captureRejectionSymbol" | "events.EventEmitter.getEventListeners" | "events.EventEmitter.getMaxListeners" | "events.EventEmitter.once" | "events.EventEmitter.listenerCount" | "events.EventEmitter.on" | "events.EventEmitter.setMaxListeners" | "events.EventEmitter.addAbortListener" | "events.EventEmitterAsyncResource" | "events.EventEmitterAsyncResource.defaultMaxListeners" | "events.EventEmitterAsyncResource.errorMonitor" | "events.EventEmitterAsyncResource.captureRejections" | "events.EventEmitterAsyncResource.captureRejectionSymbol" | "events.EventEmitterAsyncResource.getEventListeners" | "events.EventEmitterAsyncResource.getMaxListeners" | "events.EventEmitterAsyncResource.once" | "events.EventEmitterAsyncResource.listenerCount" | "events.EventEmitterAsyncResource.on" | "events.EventEmitterAsyncResource.setMaxListeners" | "events.EventEmitterAsyncResource.addAbortListener" | "events.defaultMaxListeners" | "events.errorMonitor" | "events.captureRejections" | "events.captureRejectionSymbol" | "events.getEventListeners" | "events.getMaxListeners" | "events.once" | "events.listenerCount" | "events.on" | "events.setMaxListeners" | "events.addAbortListener" | "fs" | "fs.promises" | "fs.promises.FileHandle" | "fs.promises.access" | "fs.promises.appendFile" | "fs.promises.chmod" | "fs.promises.chown" | "fs.promises.constants" | "fs.promises.copyFile" | "fs.promises.cp" | "fs.promises.glob" | "fs.promises.lchmod" | "fs.promises.lchown" | "fs.promises.link" | "fs.promises.lstat" | "fs.promises.lutimes" | "fs.promises.mkdir" | "fs.promises.mkdtemp" | "fs.promises.open" | "fs.promises.opendir" | "fs.promises.readFile" | "fs.promises.readdir" | "fs.promises.readlink" | "fs.promises.realpath" | "fs.promises.rename" | "fs.promises.rm" | "fs.promises.rmdir" | "fs.promises.stat" | "fs.promises.statfs" | "fs.promises.symlink" | "fs.promises.truncate" | "fs.promises.unlink" | "fs.promises.utimes" | "fs.promises.watch" | "fs.promises.writeFile" | "fs.access" | "fs.appendFile" | "fs.chmod" | "fs.chown" | "fs.close" | "fs.copyFile" | "fs.cp" | "fs.createReadStream" | "fs.createWriteStream" | "fs.exists" | "fs.fchmod" | "fs.fchown" | "fs.fdatasync" | "fs.fstat" | "fs.fsync" | "fs.ftruncate" | "fs.futimes" | "fs.glob" | "fs.lchmod" | "fs.lchown" | "fs.link" | "fs.lstat" | "fs.lutimes" | "fs.mkdir" | "fs.mkdtemp" | "fs.native" | "fs.open" | "fs.openAsBlob" | "fs.opendir" | "fs.read" | "fs.readdir" | "fs.readFile" | "fs.readlink" | "fs.readv" | "fs.realpath" | "fs.realpath.native" | "fs.rename" | "fs.rm" | "fs.rmdir" | "fs.stat" | "fs.statfs" | "fs.symlink" | "fs.truncate" | "fs.unlink" | "fs.unwatchFile" | "fs.utimes" | "fs.watch" | "fs.watchFile" | "fs.write" | "fs.writeFile" | "fs.writev" | "fs.accessSync" | "fs.appendFileSync" | "fs.chmodSync" | "fs.chownSync" | "fs.closeSync" | "fs.copyFileSync" | "fs.cpSync" | "fs.existsSync" | "fs.fchmodSync" | "fs.fchownSync" | "fs.fdatasyncSync" | "fs.fstatSync" | "fs.fsyncSync" | "fs.ftruncateSync" | "fs.futimesSync" | "fs.globSync" | "fs.lchmodSync" | "fs.lchownSync" | "fs.linkSync" | "fs.lstatSync" | "fs.lutimesSync" | "fs.mkdirSync" | "fs.mkdtempSync" | "fs.opendirSync" | "fs.openSync" | "fs.readdirSync" | "fs.readFileSync" | "fs.readlinkSync" | "fs.readSync" | "fs.readvSync" | "fs.realpathSync" | "fs.realpathSync.native" | "fs.renameSync" | "fs.rmdirSync" | "fs.rmSync" | "fs.statfsSync" | "fs.statSync" | "fs.symlinkSync" | "fs.truncateSync" | "fs.unlinkSync" | "fs.utimesSync" | "fs.writeFileSync" | "fs.writeSync" | "fs.writevSync" | "fs.constants" | "fs.Dir" | "fs.Dirent" | "fs.FSWatcher" | "fs.StatWatcher" | "fs.ReadStream" | "fs.Stats()" | "new fs.Stats()" | "fs.Stats" | "fs.StatFs" | "fs.WriteStream" | "fs.common_objects" | "fs/promises" | "fs/promises.FileHandle" | "fs/promises.access" | "fs/promises.appendFile" | "fs/promises.chmod" | "fs/promises.chown" | "fs/promises.constants" | "fs/promises.copyFile" | "fs/promises.cp" | "fs/promises.glob" | "fs/promises.lchmod" | "fs/promises.lchown" | "fs/promises.link" | "fs/promises.lstat" | "fs/promises.lutimes" | "fs/promises.mkdir" | "fs/promises.mkdtemp" | "fs/promises.open" | "fs/promises.opendir" | "fs/promises.readFile" | "fs/promises.readdir" | "fs/promises.readlink" | "fs/promises.realpath" | "fs/promises.rename" | "fs/promises.rm" | "fs/promises.rmdir" | "fs/promises.stat" | "fs/promises.statfs" | "fs/promises.symlink" | "fs/promises.truncate" | "fs/promises.unlink" | "fs/promises.utimes" | "fs/promises.watch" | "fs/promises.writeFile" | "http2" | "http2.constants" | "http2.sensitiveHeaders" | "http2.createServer" | "http2.createSecureServer" | "http2.connect" | "http2.getDefaultSettings" | "http2.getPackedSettings" | "http2.getUnpackedSettings" | "http2.performServerHandshake" | "http2.Http2Session" | "http2.ServerHttp2Session" | "http2.ClientHttp2Session" | "http2.Http2Stream" | "http2.ClientHttp2Stream" | "http2.ServerHttp2Stream" | "http2.Http2Server" | "http2.Http2SecureServer" | "http2.Http2ServerRequest" | "http2.Http2ServerResponse" | "http" | "http.globalAgent" | "http.createServer" | "http.get" | "http.request" | "http.Agent" | "http.Server" | "inspector" | "inspector.Session" | "inspector.console" | "inspector.close" | "inspector.open" | "inspector.url" | "inspector.waitForDebugger" | "inspector/promises" | "inspector/promises.Session" | "inspector/promises.console" | "inspector/promises.close" | "inspector/promises.open" | "inspector/promises.url" | "inspector/promises.waitForDebugger" | "module.builtinModules" | "module.createRequire" | "module.createRequireFromPath" | "module.isBuiltin" | "module.register" | "module.syncBuiltinESMExports" | "module.findSourceMap" | "module.SourceMap" | "module.Module.builtinModules" | "module.Module.createRequire" | "module.Module.createRequireFromPath" | "module.Module.isBuiltin" | "module.Module.register" | "module.Module.syncBuiltinESMExports" | "module.Module.findSourceMap" | "module.Module.SourceMap" | "net" | "net.connect" | "net.createConnection" | "net.createServer" | "net.getDefaultAutoSelectFamily" | "net.setDefaultAutoSelectFamily" | "net.getDefaultAutoSelectFamilyAttemptTimeout" | "net.setDefaultAutoSelectFamilyAttemptTimeout" | "net.isIP" | "net.isIPv4" | "net.isIPv6" | "net.BlockList" | "net.SocketAddress" | "net.Server" | "net.Socket" | "os" | "os.EOL" | "os.constants" | "os.constants.priority" | "os.devNull" | "os.availableParallelism" | "os.arch" | "os.cpus" | "os.endianness" | "os.freemem" | "os.getPriority" | "os.homedir" | "os.hostname" | "os.loadavg" | "os.machine" | "os.networkInterfaces" | "os.platform" | "os.release" | "os.setPriority" | "os.tmpdir" | "os.totalmem" | "os.type" | "os.uptime" | "os.userInfo" | "os.version" | "path" | "path.posix" | "path.posix.delimiter" | "path.posix.sep" | "path.posix.basename" | "path.posix.dirname" | "path.posix.extname" | "path.posix.format" | "path.posix.matchesGlob" | "path.posix.isAbsolute" | "path.posix.join" | "path.posix.normalize" | "path.posix.parse" | "path.posix.relative" | "path.posix.resolve" | "path.posix.toNamespacedPath" | "path.win32" | "path.win32.delimiter" | "path.win32.sep" | "path.win32.basename" | "path.win32.dirname" | "path.win32.extname" | "path.win32.format" | "path.win32.matchesGlob" | "path.win32.isAbsolute" | "path.win32.join" | "path.win32.normalize" | "path.win32.parse" | "path.win32.relative" | "path.win32.resolve" | "path.win32.toNamespacedPath" | "path.delimiter" | "path.sep" | "path.basename" | "path.dirname" | "path.extname" | "path.format" | "path.matchesGlob" | "path.isAbsolute" | "path.join" | "path.normalize" | "path.parse" | "path.relative" | "path.resolve" | "path.toNamespacedPath" | "path/posix" | "path/posix.delimiter" | "path/posix.sep" | "path/posix.basename" | "path/posix.dirname" | "path/posix.extname" | "path/posix.format" | "path/posix.matchesGlob" | "path/posix.isAbsolute" | "path/posix.join" | "path/posix.normalize" | "path/posix.parse" | "path/posix.relative" | "path/posix.resolve" | "path/posix.toNamespacedPath" | "path/win32" | "path/win32.delimiter" | "path/win32.sep" | "path/win32.basename" | "path/win32.dirname" | "path/win32.extname" | "path/win32.format" | "path/win32.matchesGlob" | "path/win32.isAbsolute" | "path/win32.join" | "path/win32.normalize" | "path/win32.parse" | "path/win32.relative" | "path/win32.resolve" | "path/win32.toNamespacedPath" | "perf_hooks" | "perf_hooks.performance" | "perf_hooks.createHistogram" | "perf_hooks.monitorEventLoopDelay" | "perf_hooks.PerformanceEntry" | "perf_hooks.PerformanceMark" | "perf_hooks.PerformanceMeasure" | "perf_hooks.PerformanceNodeEntry" | "perf_hooks.PerformanceNodeTiming" | "perf_hooks.PerformanceResourceTiming" | "perf_hooks.PerformanceObserver" | "perf_hooks.PerformanceObserverEntryList" | "perf_hooks.Histogram" | "perf_hooks.IntervalHistogram" | "perf_hooks.RecordableHistogram" | "punycode" | "punycode.ucs2" | "punycode.version" | "punycode.decode" | "punycode.encode" | "punycode.toASCII" | "punycode.toUnicode" | "querystring" | "querystring.decode" | "querystring.encode" | "querystring.escape" | "querystring.parse" | "querystring.stringify" | "querystring.unescape" | "readline" | "readline.promises" | "readline.promises.createInterface" | "readline.promises.Interface" | "readline.promises.Readline" | "readline.clearLine" | "readline.clearScreenDown" | "readline.createInterface" | "readline.cursorTo" | "readline.moveCursor" | "readline.Interface" | "readline.emitKeypressEvents" | "readline.InterfaceConstructor" | "readline/promises" | "readline/promises.createInterface" | "readline/promises.Interface" | "readline/promises.Readline" | "sea" | "sea.isSea" | "sea.getAsset" | "sea.getAssetAsBlob" | "sea.getRawAsset" | "sea.test.isSea" | "sea.test.getAsset" | "sea.test.getAssetAsBlob" | "sea.test.getRawAsset" | "stream" | "stream.promises" | "stream.promises.pipeline" | "stream.promises.finished" | "stream.finished" | "stream.pipeline" | "stream.compose" | "stream.Readable" | "stream.Readable.from" | "stream.Readable.isDisturbed" | "stream.Readable.fromWeb" | "stream.Readable.toWeb" | "stream.Writable" | "stream.Writable.fromWeb" | "stream.Writable.toWeb" | "stream.Duplex" | "stream.Duplex.from" | "stream.Duplex.fromWeb" | "stream.Duplex.toWeb" | "stream.Transform" | "stream.isErrored" | "stream.isReadable" | "stream.addAbortSignal" | "stream.getDefaultHighWaterMark" | "stream.setDefaultHighWaterMark" | "stream/promises.pipeline" | "stream/promises.finished" | "stream/web" | "stream/web.ReadableStream" | "stream/web.ReadableStream.from" | "stream/web.ReadableStreamDefaultReader" | "stream/web.ReadableStreamBYOBReader" | "stream/web.ReadableStreamDefaultController" | "stream/web.ReadableByteStreamController" | "stream/web.ReadableStreamBYOBRequest" | "stream/web.WritableStream" | "stream/web.WritableStreamDefaultWriter" | "stream/web.WritableStreamDefaultController" | "stream/web.TransformStream" | "stream/web.TransformStreamDefaultController" | "stream/web.ByteLengthQueuingStrategy" | "stream/web.CountQueuingStrategy" | "stream/web.TextEncoderStream" | "stream/web.TextDecoderStream" | "stream/web.CompressionStream" | "stream/web.DecompressionStream" | "stream/consumers" | "stream/consumers.arrayBuffer" | "stream/consumers.blob" | "stream/consumers.buffer" | "stream/consumers.json" | "stream/consumers.text" | "string_decoder" | "string_decoder.StringDecoder" | "test" | "test.run" | "test.skip" | "test.todo" | "test.only" | "test.describe" | "test.describe.skip" | "test.describe.todo" | "test.describe.only" | "test.it" | "test.it.skip" | "test.it.todo" | "test.it.only" | "test.suite" | "test.suite.skip" | "test.suite.todo" | "test.suite.only" | "test.before" | "test.after" | "test.beforeEach" | "test.afterEach" | "test.snapshot" | "test.snapshot.setDefaultSnapshotSerializers" | "test.snapshot.setResolveSnapshotPath" | "test.MockFunctionContext" | "test.MockModuleContext" | "test.MockTracker" | "test.MockTimers" | "test.TestsStream" | "test.TestContext" | "test.SuiteContext" | "test.test.run" | "test.test.skip" | "test.test.todo" | "test.test.only" | "test.test.describe" | "test.test.it" | "test.test.suite" | "test.test.before" | "test.test.after" | "test.test.beforeEach" | "test.test.afterEach" | "test.test.snapshot" | "test.test.MockFunctionContext" | "test.test.MockModuleContext" | "test.test.MockTracker" | "test.test.MockTimers" | "test.test.TestsStream" | "test.test.TestContext" | "test.test.SuiteContext" | "timers" | "timers.Immediate" | "timers.Timeout" | "timers.setImmediate" | "timers.clearImmediate" | "timers.setInterval" | "timers.clearInterval" | "timers.setTimeout" | "timers.clearTimeout" | "timers.promises" | "timers.promises.setTimeout" | "timers.promises.setImmediate" | "timers.promises.setInterval" | "timers.promises.scheduler.wait" | "timers.promises.scheduler.yield" | "timers/promises" | "timers/promises.setTimeout" | "timers/promises.setImmediate" | "timers/promises.setInterval" | "tls" | "tls.rootCertificates" | "tls.DEFAULT_ECDH_CURVE" | "tls.DEFAULT_MAX_VERSION" | "tls.DEFAULT_MIN_VERSION" | "tls.DEFAULT_CIPHERS" | "tls.checkServerIdentity" | "tls.connect" | "tls.createSecureContext" | "tls.createSecurePair" | "tls.createServer" | "tls.getCiphers" | "tls.SecureContext" | "tls.CryptoStream" | "tls.SecurePair" | "tls.Server" | "tls.TLSSocket" | "trace_events" | "trace_events.createTracing" | "trace_events.getEnabledCategories" | "tty" | "tty.isatty" | "tty.ReadStream" | "tty.WriteStream" | "url" | "url.domainToASCII" | "url.domainToUnicode" | "url.fileURLToPath" | "url.format" | "url.pathToFileURL" | "url.urlToHttpOptions" | "url.URL" | "url.URL.canParse" | "url.URL.createObjectURL" | "url.URL.revokeObjectURL" | "url.URLSearchParams" | "url.Url" | "util.promisify" | "util.promisify.custom" | "util.callbackify" | "util.debuglog" | "util.debug" | "util.deprecate" | "util.format" | "util.formatWithOptions" | "util.getSystemErrorName" | "util.getSystemErrorMap" | "util.inherits" | "util.inspect" | "util.inspect.custom" | "util.inspect.defaultOptions" | "util.inspect.replDefaults" | "util.isDeepStrictEqual" | "util.parseArgs" | "util.parseEnv" | "util.stripVTControlCharacters" | "util.styleText" | "util.toUSVString" | "util.transferableAbortController" | "util.transferableAbortSignal" | "util.aborted" | "util.MIMEType" | "util.MIMEParams" | "util.TextDecoder" | "util.TextEncoder" | "util.types" | "util.types.isExternal" | "util.types.isDate" | "util.types.isArgumentsObject" | "util.types.isBigIntObject" | "util.types.isBooleanObject" | "util.types.isNumberObject" | "util.types.isStringObject" | "util.types.isSymbolObject" | "util.types.isNativeError" | "util.types.isRegExp" | "util.types.isAsyncFunction" | "util.types.isGeneratorFunction" | "util.types.isGeneratorObject" | "util.types.isPromise" | "util.types.isMap" | "util.types.isSet" | "util.types.isMapIterator" | "util.types.isSetIterator" | "util.types.isWeakMap" | "util.types.isWeakSet" | "util.types.isArrayBuffer" | "util.types.isDataView" | "util.types.isSharedArrayBuffer" | "util.types.isProxy" | "util.types.isModuleNamespaceObject" | "util.types.isAnyArrayBuffer" | "util.types.isBoxedPrimitive" | "util.types.isArrayBufferView" | "util.types.isTypedArray" | "util.types.isUint8Array" | "util.types.isUint8ClampedArray" | "util.types.isUint16Array" | "util.types.isUint32Array" | "util.types.isInt8Array" | "util.types.isInt16Array" | "util.types.isInt32Array" | "util.types.isFloat32Array" | "util.types.isFloat64Array" | "util.types.isBigInt64Array" | "util.types.isBigUint64Array" | "util.types.isKeyObject" | "util.types.isCryptoKey" | "util.types.isWebAssemblyCompiledModule" | "util._extend" | "util.isArray" | "util.isBoolean" | "util.isBuffer" | "util.isDate" | "util.isError" | "util.isFunction" | "util.isNull" | "util.isNullOrUndefined" | "util.isNumber" | "util.isObject" | "util.isPrimitive" | "util.isRegExp" | "util.isString" | "util.isSymbol" | "util.isUndefined" | "util.log" | "util" | "util/types" | "util/types.isExternal" | "util/types.isDate" | "util/types.isArgumentsObject" | "util/types.isBigIntObject" | "util/types.isBooleanObject" | "util/types.isNumberObject" | "util/types.isStringObject" | "util/types.isSymbolObject" | "util/types.isNativeError" | "util/types.isRegExp" | "util/types.isAsyncFunction" | "util/types.isGeneratorFunction" | "util/types.isGeneratorObject" | "util/types.isPromise" | "util/types.isMap" | "util/types.isSet" | "util/types.isMapIterator" | "util/types.isSetIterator" | "util/types.isWeakMap" | "util/types.isWeakSet" | "util/types.isArrayBuffer" | "util/types.isDataView" | "util/types.isSharedArrayBuffer" | "util/types.isProxy" | "util/types.isModuleNamespaceObject" | "util/types.isAnyArrayBuffer" | "util/types.isBoxedPrimitive" | "util/types.isArrayBufferView" | "util/types.isTypedArray" | "util/types.isUint8Array" | "util/types.isUint8ClampedArray" | "util/types.isUint16Array" | "util/types.isUint32Array" | "util/types.isInt8Array" | "util/types.isInt16Array" | "util/types.isInt32Array" | "util/types.isFloat32Array" | "util/types.isFloat64Array" | "util/types.isBigInt64Array" | "util/types.isBigUint64Array" | "util/types.isKeyObject" | "util/types.isCryptoKey" | "util/types.isWebAssemblyCompiledModule" | "v8" | "v8.serialize" | "v8.deserialize" | "v8.Serializer" | "v8.Deserializer" | "v8.DefaultSerializer" | "v8.DefaultDeserializer" | "v8.promiseHooks" | "v8.promiseHooks.onInit" | "v8.promiseHooks.onSettled" | "v8.promiseHooks.onBefore" | "v8.promiseHooks.onAfter" | "v8.promiseHooks.createHook" | "v8.startupSnapshot" | "v8.startupSnapshot.addSerializeCallback" | "v8.startupSnapshot.addDeserializeCallback" | "v8.startupSnapshot.setDeserializeMainFunction" | "v8.startupSnapshot.isBuildingSnapshot" | "v8.cachedDataVersionTag" | "v8.getHeapCodeStatistics" | "v8.getHeapSnapshot" | "v8.getHeapSpaceStatistics" | "v8.getHeapStatistics" | "v8.queryObjects" | "v8.setFlagsFromString" | "v8.stopCoverage" | "v8.takeCoverage" | "v8.writeHeapSnapshot" | "v8.setHeapSnapshotNearHeapLimit" | "v8.GCProfiler" | "vm.constants" | "vm.compileFunction" | "vm.createContext" | "vm.isContext" | "vm.measureMemory" | "vm.runInContext" | "vm.runInNewContext" | "vm.runInThisContext" | "vm.Script" | "vm.Module" | "vm.SourceTextModule" | "vm.SyntheticModule" | "vm" | "wasi.WASI" | "wasi" | "worker_threads" | "worker_threads.isMainThread" | "worker_threads.parentPort" | "worker_threads.resourceLimits" | "worker_threads.SHARE_ENV" | "worker_threads.threadId" | "worker_threads.workerData" | "worker_threads.getEnvironmentData" | "worker_threads.markAsUntransferable" | "worker_threads.isMarkedAsUntransferable" | "worker_threads.moveMessagePortToContext" | "worker_threads.postMessageToThread" | "worker_threads.receiveMessageOnPort" | "worker_threads.setEnvironmentData" | "worker_threads.BroadcastChannel" | "worker_threads.MessageChannel" | "worker_threads.MessagePort" | "worker_threads.Worker" | "zlib.constants" | "zlib.crc32" | "zlib.createBrotliCompress" | "zlib.createBrotliDecompress" | "zlib.createDeflate" | "zlib.createDeflateRaw" | "zlib.createGunzip" | "zlib.createGzip" | "zlib.createInflate" | "zlib.createInflateRaw" | "zlib.createUnzip" | "zlib.brotliCompress" | "zlib.brotliCompressSync" | "zlib.brotliDecompress" | "zlib.brotliDecompressSync" | "zlib.deflate" | "zlib.deflateSync" | "zlib.deflateRaw" | "zlib.deflateRawSync" | "zlib.gunzip" | "zlib.gunzipSync" | "zlib.gzip" | "zlib.gzipSync" | "zlib.inflate" | "zlib.inflateSync" | "zlib.inflateRaw" | "zlib.inflateRawSync" | "zlib.unzip" | "zlib.unzipSync" | "zlib.BrotliCompress" | "zlib.BrotliDecompress" | "zlib.Deflate" | "zlib.DeflateRaw" | "zlib.Gunzip" | "zlib.Gzip" | "zlib.Inflate" | "zlib.InflateRaw" | "zlib.Unzip" | "zlib")[]
|
|
9399
9199
|
}]
|
|
9400
9200
|
// ----- node/prefer-global/buffer -----
|
|
9401
9201
|
type NodePreferGlobalBuffer = []|[("always" | "never")]
|
|
@@ -9537,48 +9337,86 @@ type PaddingLineBetweenStatements = {
|
|
|
9537
9337
|
}[]
|
|
9538
9338
|
// ----- perfectionist/sort-array-includes -----
|
|
9539
9339
|
type PerfectionistSortArrayIncludes = []|[{
|
|
9340
|
+
|
|
9540
9341
|
type?: ("alphabetical" | "natural" | "line-length")
|
|
9342
|
+
|
|
9541
9343
|
order?: ("asc" | "desc")
|
|
9542
|
-
|
|
9543
|
-
|
|
9344
|
+
|
|
9345
|
+
ignoreCase?: boolean
|
|
9346
|
+
|
|
9347
|
+
groupKind?: ("mixed" | "literals-first" | "spreads-first")
|
|
9544
9348
|
}]
|
|
9545
9349
|
// ----- perfectionist/sort-astro-attributes -----
|
|
9546
9350
|
type PerfectionistSortAstroAttributes = []|[{
|
|
9547
|
-
|
|
9548
|
-
[k: string]: unknown | undefined
|
|
9549
|
-
}
|
|
9351
|
+
|
|
9550
9352
|
type?: ("alphabetical" | "natural" | "line-length")
|
|
9353
|
+
|
|
9551
9354
|
order?: ("asc" | "desc")
|
|
9552
|
-
|
|
9553
|
-
|
|
9355
|
+
|
|
9356
|
+
ignoreCase?: boolean
|
|
9357
|
+
|
|
9358
|
+
groups?: (string | string[])[]
|
|
9359
|
+
|
|
9360
|
+
customGroups?: {
|
|
9361
|
+
[k: string]: (string | string[]) | undefined
|
|
9362
|
+
}
|
|
9554
9363
|
}]
|
|
9555
9364
|
// ----- perfectionist/sort-classes -----
|
|
9556
9365
|
type PerfectionistSortClasses = []|[{
|
|
9557
|
-
|
|
9558
|
-
[k: string]: unknown | undefined
|
|
9559
|
-
}
|
|
9366
|
+
|
|
9560
9367
|
type?: ("alphabetical" | "natural" | "line-length")
|
|
9561
|
-
|
|
9368
|
+
|
|
9562
9369
|
order?: ("asc" | "desc")
|
|
9563
|
-
|
|
9370
|
+
|
|
9371
|
+
ignoreCase?: boolean
|
|
9372
|
+
|
|
9373
|
+
partitionByComment?: (string[] | boolean | string)
|
|
9374
|
+
|
|
9375
|
+
groups?: (string | string[])[]
|
|
9376
|
+
|
|
9377
|
+
customGroups?: {
|
|
9378
|
+
[k: string]: (string | string[]) | undefined
|
|
9379
|
+
}
|
|
9564
9380
|
}]
|
|
9565
9381
|
// ----- perfectionist/sort-enums -----
|
|
9566
9382
|
type PerfectionistSortEnums = []|[{
|
|
9567
|
-
|
|
9383
|
+
|
|
9568
9384
|
type?: ("alphabetical" | "natural" | "line-length")
|
|
9569
|
-
|
|
9385
|
+
|
|
9570
9386
|
order?: ("asc" | "desc")
|
|
9387
|
+
|
|
9388
|
+
ignoreCase?: boolean
|
|
9389
|
+
|
|
9390
|
+
partitionByComment?: (string[] | boolean | string)
|
|
9571
9391
|
}]
|
|
9572
9392
|
// ----- perfectionist/sort-exports -----
|
|
9573
9393
|
type PerfectionistSortExports = []|[{
|
|
9394
|
+
|
|
9574
9395
|
type?: ("alphabetical" | "natural" | "line-length")
|
|
9396
|
+
|
|
9575
9397
|
order?: ("asc" | "desc")
|
|
9576
|
-
|
|
9398
|
+
|
|
9399
|
+
ignoreCase?: boolean
|
|
9577
9400
|
}]
|
|
9578
9401
|
// ----- perfectionist/sort-imports -----
|
|
9579
9402
|
type PerfectionistSortImports = []|[_PerfectionistSortImportsSortImports]
|
|
9580
9403
|
type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLengthRequiresLineLengthType & {
|
|
9581
|
-
|
|
9404
|
+
|
|
9405
|
+
type?: ("alphabetical" | "natural" | "line-length")
|
|
9406
|
+
|
|
9407
|
+
order?: ("asc" | "desc")
|
|
9408
|
+
|
|
9409
|
+
ignoreCase?: boolean
|
|
9410
|
+
|
|
9411
|
+
internalPattern?: string[]
|
|
9412
|
+
|
|
9413
|
+
newlinesBetween?: ("ignore" | "always" | "never")
|
|
9414
|
+
|
|
9415
|
+
maxLineLength?: number
|
|
9416
|
+
|
|
9417
|
+
groups?: (string | string[])[]
|
|
9418
|
+
|
|
9419
|
+
customGroups?: {
|
|
9582
9420
|
type?: {
|
|
9583
9421
|
[k: string]: unknown | undefined
|
|
9584
9422
|
}
|
|
@@ -9586,13 +9424,8 @@ type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLen
|
|
|
9586
9424
|
[k: string]: unknown | undefined
|
|
9587
9425
|
}
|
|
9588
9426
|
}
|
|
9589
|
-
|
|
9590
|
-
|
|
9591
|
-
"ignore-case"?: boolean
|
|
9592
|
-
groups?: unknown[]
|
|
9593
|
-
"internal-pattern"?: string[]
|
|
9594
|
-
"newlines-between"?: ("ignore" | "always" | "never")
|
|
9595
|
-
"max-line-length"?: number
|
|
9427
|
+
|
|
9428
|
+
environment?: ("node" | "bun")
|
|
9596
9429
|
})
|
|
9597
9430
|
type _PerfectionistSortImportsMaxLineLengthRequiresLineLengthType = ({
|
|
9598
9431
|
[k: string]: unknown | undefined
|
|
@@ -9603,105 +9436,188 @@ interface _PerfectionistSortImports_IsLineLength {
|
|
|
9603
9436
|
}
|
|
9604
9437
|
// ----- perfectionist/sort-interfaces -----
|
|
9605
9438
|
type PerfectionistSortInterfaces = []|[{
|
|
9606
|
-
|
|
9607
|
-
[k: string]: unknown | undefined
|
|
9608
|
-
}
|
|
9609
|
-
"optionality-order"?: ("ignore" | "optional-first" | "required-first")
|
|
9439
|
+
|
|
9610
9440
|
type?: ("alphabetical" | "natural" | "line-length")
|
|
9441
|
+
|
|
9611
9442
|
order?: ("asc" | "desc")
|
|
9612
|
-
|
|
9613
|
-
|
|
9614
|
-
|
|
9615
|
-
|
|
9443
|
+
|
|
9444
|
+
ignoreCase?: boolean
|
|
9445
|
+
|
|
9446
|
+
ignorePattern?: string[]
|
|
9447
|
+
|
|
9448
|
+
partitionByNewLine?: boolean
|
|
9449
|
+
|
|
9450
|
+
groupKind?: ("mixed" | "optional-first" | "required-first")
|
|
9451
|
+
|
|
9452
|
+
groups?: (string | string[])[]
|
|
9453
|
+
|
|
9454
|
+
customGroups?: {
|
|
9455
|
+
[k: string]: (string | string[]) | undefined
|
|
9456
|
+
}
|
|
9616
9457
|
}]
|
|
9617
9458
|
// ----- perfectionist/sort-intersection-types -----
|
|
9618
9459
|
type PerfectionistSortIntersectionTypes = []|[{
|
|
9460
|
+
|
|
9619
9461
|
type?: ("alphabetical" | "natural" | "line-length")
|
|
9462
|
+
|
|
9620
9463
|
order?: ("asc" | "desc")
|
|
9621
|
-
|
|
9464
|
+
|
|
9465
|
+
ignoreCase?: boolean
|
|
9466
|
+
|
|
9467
|
+
groups?: (string | string[])[]
|
|
9622
9468
|
}]
|
|
9623
9469
|
// ----- perfectionist/sort-jsx-props -----
|
|
9624
9470
|
type PerfectionistSortJsxProps = []|[{
|
|
9625
|
-
|
|
9626
|
-
[k: string]: unknown | undefined
|
|
9627
|
-
}
|
|
9471
|
+
|
|
9628
9472
|
type?: ("alphabetical" | "natural" | "line-length")
|
|
9473
|
+
|
|
9629
9474
|
order?: ("asc" | "desc")
|
|
9630
|
-
|
|
9631
|
-
|
|
9475
|
+
|
|
9476
|
+
ignoreCase?: boolean
|
|
9477
|
+
|
|
9478
|
+
ignorePattern?: string[]
|
|
9479
|
+
|
|
9480
|
+
groups?: (string | string[])[]
|
|
9481
|
+
|
|
9482
|
+
customGroups?: {
|
|
9483
|
+
[k: string]: (string | string[]) | undefined
|
|
9484
|
+
}
|
|
9632
9485
|
}]
|
|
9633
9486
|
// ----- perfectionist/sort-maps -----
|
|
9634
9487
|
type PerfectionistSortMaps = []|[{
|
|
9488
|
+
|
|
9635
9489
|
type?: ("alphabetical" | "natural" | "line-length")
|
|
9490
|
+
|
|
9636
9491
|
order?: ("asc" | "desc")
|
|
9637
|
-
|
|
9492
|
+
|
|
9493
|
+
ignoreCase?: boolean
|
|
9638
9494
|
}]
|
|
9639
9495
|
// ----- perfectionist/sort-named-exports -----
|
|
9640
9496
|
type PerfectionistSortNamedExports = []|[{
|
|
9497
|
+
|
|
9641
9498
|
type?: ("alphabetical" | "natural" | "line-length")
|
|
9499
|
+
|
|
9642
9500
|
order?: ("asc" | "desc")
|
|
9643
|
-
|
|
9644
|
-
|
|
9501
|
+
|
|
9502
|
+
ignoreCase?: boolean
|
|
9503
|
+
|
|
9504
|
+
groupKind?: ("mixed" | "values-first" | "types-first")
|
|
9645
9505
|
}]
|
|
9646
9506
|
// ----- perfectionist/sort-named-imports -----
|
|
9647
9507
|
type PerfectionistSortNamedImports = []|[{
|
|
9508
|
+
|
|
9648
9509
|
type?: ("alphabetical" | "natural" | "line-length")
|
|
9510
|
+
|
|
9649
9511
|
order?: ("asc" | "desc")
|
|
9650
|
-
|
|
9651
|
-
|
|
9652
|
-
|
|
9512
|
+
|
|
9513
|
+
ignoreCase?: boolean
|
|
9514
|
+
|
|
9515
|
+
ignoreAlias?: boolean
|
|
9516
|
+
|
|
9517
|
+
groupKind?: ("mixed" | "values-first" | "types-first")
|
|
9653
9518
|
}]
|
|
9654
9519
|
// ----- perfectionist/sort-object-types -----
|
|
9655
9520
|
type PerfectionistSortObjectTypes = []|[{
|
|
9656
|
-
|
|
9657
|
-
[k: string]: unknown | undefined
|
|
9658
|
-
}
|
|
9521
|
+
|
|
9659
9522
|
type?: ("alphabetical" | "natural" | "line-length")
|
|
9523
|
+
|
|
9660
9524
|
order?: ("asc" | "desc")
|
|
9661
|
-
|
|
9662
|
-
|
|
9663
|
-
|
|
9525
|
+
|
|
9526
|
+
ignoreCase?: boolean
|
|
9527
|
+
|
|
9528
|
+
partitionByNewLine?: boolean
|
|
9529
|
+
|
|
9530
|
+
groupKind?: ("mixed" | "required-first" | "optional-first")
|
|
9531
|
+
|
|
9532
|
+
groups?: (string | string[])[]
|
|
9533
|
+
|
|
9534
|
+
customGroups?: {
|
|
9535
|
+
[k: string]: (string | string[]) | undefined
|
|
9536
|
+
}
|
|
9664
9537
|
}]
|
|
9665
9538
|
// ----- perfectionist/sort-objects -----
|
|
9666
9539
|
type PerfectionistSortObjects = []|[{
|
|
9667
|
-
|
|
9668
|
-
[k: string]: unknown | undefined
|
|
9669
|
-
}
|
|
9670
|
-
"partition-by-comment"?: (boolean | string | unknown[])
|
|
9671
|
-
"partition-by-new-line"?: boolean
|
|
9672
|
-
"styled-components"?: boolean
|
|
9540
|
+
|
|
9673
9541
|
type?: ("alphabetical" | "natural" | "line-length")
|
|
9542
|
+
|
|
9674
9543
|
order?: ("asc" | "desc")
|
|
9675
|
-
|
|
9676
|
-
|
|
9677
|
-
|
|
9544
|
+
|
|
9545
|
+
ignoreCase?: boolean
|
|
9546
|
+
|
|
9547
|
+
partitionByComment?: (string[] | boolean | string)
|
|
9548
|
+
|
|
9549
|
+
partitionByNewLine?: boolean
|
|
9550
|
+
|
|
9551
|
+
styledComponents?: boolean
|
|
9552
|
+
|
|
9553
|
+
ignorePattern?: string[]
|
|
9554
|
+
|
|
9555
|
+
customIgnore?: unknown[]
|
|
9556
|
+
|
|
9557
|
+
groups?: (string | string[])[]
|
|
9558
|
+
|
|
9559
|
+
customGroups?: {
|
|
9560
|
+
[k: string]: (string | string[]) | undefined
|
|
9561
|
+
}
|
|
9678
9562
|
}]
|
|
9679
9563
|
// ----- perfectionist/sort-svelte-attributes -----
|
|
9680
9564
|
type PerfectionistSortSvelteAttributes = []|[{
|
|
9681
|
-
|
|
9682
|
-
|
|
9565
|
+
|
|
9566
|
+
type?: ("alphabetical" | "natural" | "line-length")
|
|
9567
|
+
|
|
9568
|
+
order?: ("asc" | "desc")
|
|
9569
|
+
|
|
9570
|
+
ignoreCase?: boolean
|
|
9571
|
+
|
|
9572
|
+
groups?: (string | string[])[]
|
|
9573
|
+
|
|
9574
|
+
customGroups?: {
|
|
9575
|
+
[k: string]: (string | string[]) | undefined
|
|
9683
9576
|
}
|
|
9577
|
+
}]
|
|
9578
|
+
// ----- perfectionist/sort-switch-case -----
|
|
9579
|
+
type PerfectionistSortSwitchCase = []|[{
|
|
9580
|
+
|
|
9684
9581
|
type?: ("alphabetical" | "natural" | "line-length")
|
|
9582
|
+
|
|
9685
9583
|
order?: ("asc" | "desc")
|
|
9686
|
-
|
|
9687
|
-
|
|
9584
|
+
|
|
9585
|
+
ignoreCase?: boolean
|
|
9688
9586
|
}]
|
|
9689
9587
|
// ----- perfectionist/sort-union-types -----
|
|
9690
9588
|
type PerfectionistSortUnionTypes = []|[{
|
|
9589
|
+
|
|
9590
|
+
type?: ("alphabetical" | "natural" | "line-length")
|
|
9591
|
+
|
|
9592
|
+
order?: ("asc" | "desc")
|
|
9593
|
+
|
|
9594
|
+
ignoreCase?: boolean
|
|
9595
|
+
|
|
9596
|
+
groups?: (string | string[])[]
|
|
9597
|
+
}]
|
|
9598
|
+
// ----- perfectionist/sort-variable-declarations -----
|
|
9599
|
+
type PerfectionistSortVariableDeclarations = []|[{
|
|
9600
|
+
|
|
9691
9601
|
type?: ("alphabetical" | "natural" | "line-length")
|
|
9602
|
+
|
|
9692
9603
|
order?: ("asc" | "desc")
|
|
9693
|
-
|
|
9694
|
-
|
|
9604
|
+
|
|
9605
|
+
ignoreCase?: boolean
|
|
9695
9606
|
}]
|
|
9696
9607
|
// ----- perfectionist/sort-vue-attributes -----
|
|
9697
9608
|
type PerfectionistSortVueAttributes = []|[{
|
|
9698
|
-
|
|
9699
|
-
[k: string]: unknown | undefined
|
|
9700
|
-
}
|
|
9609
|
+
|
|
9701
9610
|
type?: ("alphabetical" | "natural" | "line-length")
|
|
9611
|
+
|
|
9702
9612
|
order?: ("asc" | "desc")
|
|
9703
|
-
|
|
9704
|
-
|
|
9613
|
+
|
|
9614
|
+
ignoreCase?: boolean
|
|
9615
|
+
|
|
9616
|
+
groups?: (string | string[])[]
|
|
9617
|
+
|
|
9618
|
+
customGroups?: {
|
|
9619
|
+
[k: string]: (string | string[]) | undefined
|
|
9620
|
+
}
|
|
9705
9621
|
}]
|
|
9706
9622
|
// ----- prefer-arrow-callback -----
|
|
9707
9623
|
type PreferArrowCallback = []|[{
|
|
@@ -9771,433 +9687,6 @@ type ReactHooksExhaustiveDeps = []|[{
|
|
|
9771
9687
|
additionalHooks?: string
|
|
9772
9688
|
enableDangerousAutofixThisMayCauseInfiniteLoops?: boolean
|
|
9773
9689
|
}]
|
|
9774
|
-
// ----- react/boolean-prop-naming -----
|
|
9775
|
-
type ReactBooleanPropNaming = []|[{
|
|
9776
|
-
|
|
9777
|
-
propTypeNames?: [string, ...(string)[]]
|
|
9778
|
-
rule?: string
|
|
9779
|
-
message?: string
|
|
9780
|
-
validateNested?: boolean
|
|
9781
|
-
}]
|
|
9782
|
-
// ----- react/button-has-type -----
|
|
9783
|
-
type ReactButtonHasType = []|[{
|
|
9784
|
-
button?: boolean
|
|
9785
|
-
submit?: boolean
|
|
9786
|
-
reset?: boolean
|
|
9787
|
-
}]
|
|
9788
|
-
// ----- react/checked-requires-onchange-or-readonly -----
|
|
9789
|
-
type ReactCheckedRequiresOnchangeOrReadonly = []|[{
|
|
9790
|
-
ignoreMissingProperties?: boolean
|
|
9791
|
-
ignoreExclusiveCheckedAttribute?: boolean
|
|
9792
|
-
}]
|
|
9793
|
-
// ----- react/default-props-match-prop-types -----
|
|
9794
|
-
type ReactDefaultPropsMatchPropTypes = []|[{
|
|
9795
|
-
allowRequiredDefaults?: boolean
|
|
9796
|
-
}]
|
|
9797
|
-
// ----- react/destructuring-assignment -----
|
|
9798
|
-
type ReactDestructuringAssignment = []|[("always" | "never")]|[("always" | "never"), {
|
|
9799
|
-
ignoreClassFields?: boolean
|
|
9800
|
-
destructureInSignature?: ("always" | "ignore")
|
|
9801
|
-
}]
|
|
9802
|
-
// ----- react/display-name -----
|
|
9803
|
-
type ReactDisplayName = []|[{
|
|
9804
|
-
ignoreTranspilerName?: boolean
|
|
9805
|
-
checkContextObjects?: boolean
|
|
9806
|
-
}]
|
|
9807
|
-
// ----- react/forbid-component-props -----
|
|
9808
|
-
type ReactForbidComponentProps = []|[{
|
|
9809
|
-
forbid?: (string | {
|
|
9810
|
-
propName?: string
|
|
9811
|
-
allowedFor?: string[]
|
|
9812
|
-
message?: string
|
|
9813
|
-
} | {
|
|
9814
|
-
propName?: string
|
|
9815
|
-
|
|
9816
|
-
disallowedFor: [string, ...(string)[]]
|
|
9817
|
-
message?: string
|
|
9818
|
-
})[]
|
|
9819
|
-
[k: string]: unknown | undefined
|
|
9820
|
-
}]
|
|
9821
|
-
// ----- react/forbid-dom-props -----
|
|
9822
|
-
type ReactForbidDomProps = []|[{
|
|
9823
|
-
forbid?: (string | {
|
|
9824
|
-
propName?: string
|
|
9825
|
-
disallowedFor?: string[]
|
|
9826
|
-
message?: string
|
|
9827
|
-
[k: string]: unknown | undefined
|
|
9828
|
-
})[]
|
|
9829
|
-
}]
|
|
9830
|
-
// ----- react/forbid-elements -----
|
|
9831
|
-
type ReactForbidElements = []|[{
|
|
9832
|
-
forbid?: (string | {
|
|
9833
|
-
element: string
|
|
9834
|
-
message?: string
|
|
9835
|
-
})[]
|
|
9836
|
-
}]
|
|
9837
|
-
// ----- react/forbid-foreign-prop-types -----
|
|
9838
|
-
type ReactForbidForeignPropTypes = []|[{
|
|
9839
|
-
allowInPropTypes?: boolean
|
|
9840
|
-
}]
|
|
9841
|
-
// ----- react/forbid-prop-types -----
|
|
9842
|
-
type ReactForbidPropTypes = []|[{
|
|
9843
|
-
forbid?: string[]
|
|
9844
|
-
checkContextTypes?: boolean
|
|
9845
|
-
checkChildContextTypes?: boolean
|
|
9846
|
-
[k: string]: unknown | undefined
|
|
9847
|
-
}]
|
|
9848
|
-
// ----- react/function-component-definition -----
|
|
9849
|
-
type ReactFunctionComponentDefinition = []|[{
|
|
9850
|
-
namedComponents?: (("function-declaration" | "arrow-function" | "function-expression") | ("function-declaration" | "arrow-function" | "function-expression")[])
|
|
9851
|
-
unnamedComponents?: (("arrow-function" | "function-expression") | ("arrow-function" | "function-expression")[])
|
|
9852
|
-
[k: string]: unknown | undefined
|
|
9853
|
-
}]
|
|
9854
|
-
// ----- react/hook-use-state -----
|
|
9855
|
-
type ReactHookUseState = []|[{
|
|
9856
|
-
allowDestructuredState?: boolean
|
|
9857
|
-
}]
|
|
9858
|
-
// ----- react/jsx-boolean-value -----
|
|
9859
|
-
type ReactJsxBooleanValue = ([]|[("always" | "never")] | []|["always"]|["always", {
|
|
9860
|
-
never?: string[]
|
|
9861
|
-
assumeUndefinedIsFalse?: boolean
|
|
9862
|
-
}] | []|["never"]|["never", {
|
|
9863
|
-
always?: string[]
|
|
9864
|
-
assumeUndefinedIsFalse?: boolean
|
|
9865
|
-
}])
|
|
9866
|
-
// ----- react/jsx-closing-bracket-location -----
|
|
9867
|
-
type ReactJsxClosingBracketLocation = []|[(("after-props" | "props-aligned" | "tag-aligned" | "line-aligned") | {
|
|
9868
|
-
location?: ("after-props" | "props-aligned" | "tag-aligned" | "line-aligned")
|
|
9869
|
-
} | {
|
|
9870
|
-
nonEmpty?: ("after-props" | "props-aligned" | "tag-aligned" | "line-aligned" | false)
|
|
9871
|
-
selfClosing?: ("after-props" | "props-aligned" | "tag-aligned" | "line-aligned" | false)
|
|
9872
|
-
})]
|
|
9873
|
-
// ----- react/jsx-curly-brace-presence -----
|
|
9874
|
-
type ReactJsxCurlyBracePresence = []|[({
|
|
9875
|
-
props?: ("always" | "never" | "ignore")
|
|
9876
|
-
children?: ("always" | "never" | "ignore")
|
|
9877
|
-
propElementValues?: ("always" | "never" | "ignore")
|
|
9878
|
-
} | ("always" | "never" | "ignore"))]
|
|
9879
|
-
// ----- react/jsx-curly-newline -----
|
|
9880
|
-
type ReactJsxCurlyNewline = []|[(("consistent" | "never") | {
|
|
9881
|
-
singleline?: ("consistent" | "require" | "forbid")
|
|
9882
|
-
multiline?: ("consistent" | "require" | "forbid")
|
|
9883
|
-
})]
|
|
9884
|
-
// ----- react/jsx-curly-spacing -----
|
|
9885
|
-
type ReactJsxCurlySpacing = []|[((_ReactJsxCurlySpacing_BasicConfig & {
|
|
9886
|
-
attributes?: _ReactJsxCurlySpacingBasicConfigOrBoolean
|
|
9887
|
-
children?: _ReactJsxCurlySpacingBasicConfigOrBoolean
|
|
9888
|
-
[k: string]: unknown | undefined
|
|
9889
|
-
}) | ("always" | "never"))]|[((_ReactJsxCurlySpacing_BasicConfig & {
|
|
9890
|
-
attributes?: _ReactJsxCurlySpacingBasicConfigOrBoolean
|
|
9891
|
-
children?: _ReactJsxCurlySpacingBasicConfigOrBoolean
|
|
9892
|
-
[k: string]: unknown | undefined
|
|
9893
|
-
}) | ("always" | "never")), {
|
|
9894
|
-
allowMultiline?: boolean
|
|
9895
|
-
spacing?: {
|
|
9896
|
-
objectLiterals?: ("always" | "never")
|
|
9897
|
-
[k: string]: unknown | undefined
|
|
9898
|
-
}
|
|
9899
|
-
}]
|
|
9900
|
-
type _ReactJsxCurlySpacingBasicConfigOrBoolean = (_ReactJsxCurlySpacing_BasicConfig | boolean)
|
|
9901
|
-
interface _ReactJsxCurlySpacing_BasicConfig {
|
|
9902
|
-
when?: ("always" | "never")
|
|
9903
|
-
allowMultiline?: boolean
|
|
9904
|
-
spacing?: {
|
|
9905
|
-
objectLiterals?: ("always" | "never")
|
|
9906
|
-
[k: string]: unknown | undefined
|
|
9907
|
-
}
|
|
9908
|
-
[k: string]: unknown | undefined
|
|
9909
|
-
}
|
|
9910
|
-
// ----- react/jsx-equals-spacing -----
|
|
9911
|
-
type ReactJsxEqualsSpacing = []|[("always" | "never")]
|
|
9912
|
-
// ----- react/jsx-filename-extension -----
|
|
9913
|
-
type ReactJsxFilenameExtension = []|[{
|
|
9914
|
-
allow?: ("always" | "as-needed")
|
|
9915
|
-
extensions?: string[]
|
|
9916
|
-
ignoreFilesWithoutCode?: boolean
|
|
9917
|
-
}]
|
|
9918
|
-
// ----- react/jsx-first-prop-new-line -----
|
|
9919
|
-
type ReactJsxFirstPropNewLine = []|[("always" | "never" | "multiline" | "multiline-multiprop" | "multiprop")]
|
|
9920
|
-
// ----- react/jsx-fragments -----
|
|
9921
|
-
type ReactJsxFragments = []|[("syntax" | "element")]
|
|
9922
|
-
// ----- react/jsx-handler-names -----
|
|
9923
|
-
type ReactJsxHandlerNames = []|[({
|
|
9924
|
-
eventHandlerPrefix?: string
|
|
9925
|
-
eventHandlerPropPrefix?: string
|
|
9926
|
-
checkLocalVariables?: boolean
|
|
9927
|
-
checkInlineFunction?: boolean
|
|
9928
|
-
} | {
|
|
9929
|
-
eventHandlerPrefix?: string
|
|
9930
|
-
eventHandlerPropPrefix?: false
|
|
9931
|
-
checkLocalVariables?: boolean
|
|
9932
|
-
checkInlineFunction?: boolean
|
|
9933
|
-
} | {
|
|
9934
|
-
eventHandlerPrefix?: false
|
|
9935
|
-
eventHandlerPropPrefix?: string
|
|
9936
|
-
checkLocalVariables?: boolean
|
|
9937
|
-
checkInlineFunction?: boolean
|
|
9938
|
-
} | {
|
|
9939
|
-
checkLocalVariables?: boolean
|
|
9940
|
-
} | {
|
|
9941
|
-
checkInlineFunction?: boolean
|
|
9942
|
-
})]
|
|
9943
|
-
// ----- react/jsx-indent -----
|
|
9944
|
-
type ReactJsxIndent = []|[("tab" | number)]|[("tab" | number), {
|
|
9945
|
-
checkAttributes?: boolean
|
|
9946
|
-
indentLogicalExpressions?: boolean
|
|
9947
|
-
}]
|
|
9948
|
-
// ----- react/jsx-indent-props -----
|
|
9949
|
-
type ReactJsxIndentProps = []|[(("tab" | "first") | number | {
|
|
9950
|
-
indentMode?: (("tab" | "first") | number)
|
|
9951
|
-
ignoreTernaryOperator?: boolean
|
|
9952
|
-
[k: string]: unknown | undefined
|
|
9953
|
-
})]
|
|
9954
|
-
// ----- react/jsx-key -----
|
|
9955
|
-
type ReactJsxKey = []|[{
|
|
9956
|
-
checkFragmentShorthand?: boolean
|
|
9957
|
-
checkKeyMustBeforeSpread?: boolean
|
|
9958
|
-
warnOnDuplicates?: boolean
|
|
9959
|
-
}]
|
|
9960
|
-
// ----- react/jsx-max-depth -----
|
|
9961
|
-
type ReactJsxMaxDepth = []|[{
|
|
9962
|
-
max?: number
|
|
9963
|
-
}]
|
|
9964
|
-
// ----- react/jsx-max-props-per-line -----
|
|
9965
|
-
type ReactJsxMaxPropsPerLine = []|[({
|
|
9966
|
-
maximum?: {
|
|
9967
|
-
single?: number
|
|
9968
|
-
multi?: number
|
|
9969
|
-
[k: string]: unknown | undefined
|
|
9970
|
-
}
|
|
9971
|
-
} | {
|
|
9972
|
-
maximum?: number
|
|
9973
|
-
when?: ("always" | "multiline")
|
|
9974
|
-
})]
|
|
9975
|
-
// ----- react/jsx-newline -----
|
|
9976
|
-
type ReactJsxNewline = []|[{
|
|
9977
|
-
prevent?: boolean
|
|
9978
|
-
allowMultilines?: boolean
|
|
9979
|
-
}]
|
|
9980
|
-
// ----- react/jsx-no-bind -----
|
|
9981
|
-
type ReactJsxNoBind = []|[{
|
|
9982
|
-
allowArrowFunctions?: boolean
|
|
9983
|
-
allowBind?: boolean
|
|
9984
|
-
allowFunctions?: boolean
|
|
9985
|
-
ignoreRefs?: boolean
|
|
9986
|
-
ignoreDOMComponents?: boolean
|
|
9987
|
-
}]
|
|
9988
|
-
// ----- react/jsx-no-duplicate-props -----
|
|
9989
|
-
type ReactJsxNoDuplicateProps = []|[{
|
|
9990
|
-
ignoreCase?: boolean
|
|
9991
|
-
}]
|
|
9992
|
-
// ----- react/jsx-no-leaked-render -----
|
|
9993
|
-
type ReactJsxNoLeakedRender = []|[{
|
|
9994
|
-
validStrategies?: ("ternary" | "coerce")[]
|
|
9995
|
-
}]
|
|
9996
|
-
// ----- react/jsx-no-literals -----
|
|
9997
|
-
type ReactJsxNoLiterals = []|[{
|
|
9998
|
-
noStrings?: boolean
|
|
9999
|
-
allowedStrings?: string[]
|
|
10000
|
-
ignoreProps?: boolean
|
|
10001
|
-
noAttributeStrings?: boolean
|
|
10002
|
-
}]
|
|
10003
|
-
// ----- react/jsx-no-script-url -----
|
|
10004
|
-
type ReactJsxNoScriptUrl = ([]|[{
|
|
10005
|
-
name: string
|
|
10006
|
-
props: string[]
|
|
10007
|
-
}[]]|[{
|
|
10008
|
-
name: string
|
|
10009
|
-
props: string[]
|
|
10010
|
-
}[], {
|
|
10011
|
-
includeFromSettings?: boolean
|
|
10012
|
-
[k: string]: unknown | undefined
|
|
10013
|
-
}] | []|[{
|
|
10014
|
-
includeFromSettings?: boolean
|
|
10015
|
-
[k: string]: unknown | undefined
|
|
10016
|
-
}])
|
|
10017
|
-
// ----- react/jsx-no-target-blank -----
|
|
10018
|
-
type ReactJsxNoTargetBlank = []|[{
|
|
10019
|
-
allowReferrer?: boolean
|
|
10020
|
-
enforceDynamicLinks?: ("always" | "never")
|
|
10021
|
-
warnOnSpreadAttributes?: boolean
|
|
10022
|
-
links?: boolean
|
|
10023
|
-
forms?: boolean
|
|
10024
|
-
}]
|
|
10025
|
-
// ----- react/jsx-no-undef -----
|
|
10026
|
-
type ReactJsxNoUndef = []|[{
|
|
10027
|
-
allowGlobals?: boolean
|
|
10028
|
-
}]
|
|
10029
|
-
// ----- react/jsx-no-useless-fragment -----
|
|
10030
|
-
type ReactJsxNoUselessFragment = []|[{
|
|
10031
|
-
allowExpressions?: boolean
|
|
10032
|
-
[k: string]: unknown | undefined
|
|
10033
|
-
}]
|
|
10034
|
-
// ----- react/jsx-one-expression-per-line -----
|
|
10035
|
-
type ReactJsxOneExpressionPerLine = []|[{
|
|
10036
|
-
allow?: ("none" | "literal" | "single-child" | "non-jsx")
|
|
10037
|
-
}]
|
|
10038
|
-
// ----- react/jsx-pascal-case -----
|
|
10039
|
-
type ReactJsxPascalCase = []|[{
|
|
10040
|
-
allowAllCaps?: boolean
|
|
10041
|
-
allowLeadingUnderscore?: boolean
|
|
10042
|
-
allowNamespace?: boolean
|
|
10043
|
-
|
|
10044
|
-
ignore?: []|[string]
|
|
10045
|
-
}]
|
|
10046
|
-
// ----- react/jsx-props-no-spreading -----
|
|
10047
|
-
type ReactJsxPropsNoSpreading = []|[({
|
|
10048
|
-
html?: ("enforce" | "ignore")
|
|
10049
|
-
custom?: ("enforce" | "ignore")
|
|
10050
|
-
exceptions?: string[]
|
|
10051
|
-
[k: string]: unknown | undefined
|
|
10052
|
-
} & {
|
|
10053
|
-
[k: string]: unknown | undefined
|
|
10054
|
-
})]
|
|
10055
|
-
// ----- react/jsx-sort-default-props -----
|
|
10056
|
-
type ReactJsxSortDefaultProps = []|[{
|
|
10057
|
-
ignoreCase?: boolean
|
|
10058
|
-
}]
|
|
10059
|
-
// ----- react/jsx-sort-props -----
|
|
10060
|
-
type ReactJsxSortProps = []|[{
|
|
10061
|
-
callbacksLast?: boolean
|
|
10062
|
-
shorthandFirst?: boolean
|
|
10063
|
-
shorthandLast?: boolean
|
|
10064
|
-
multiline?: ("ignore" | "first" | "last")
|
|
10065
|
-
ignoreCase?: boolean
|
|
10066
|
-
noSortAlphabetically?: boolean
|
|
10067
|
-
reservedFirst?: (unknown[] | boolean)
|
|
10068
|
-
locale?: string
|
|
10069
|
-
}]
|
|
10070
|
-
// ----- react/jsx-space-before-closing -----
|
|
10071
|
-
type ReactJsxSpaceBeforeClosing = []|[("always" | "never")]
|
|
10072
|
-
// ----- react/jsx-tag-spacing -----
|
|
10073
|
-
type ReactJsxTagSpacing = []|[{
|
|
10074
|
-
closingSlash?: ("always" | "never" | "allow")
|
|
10075
|
-
beforeSelfClosing?: ("always" | "proportional-always" | "never" | "allow")
|
|
10076
|
-
afterOpening?: ("always" | "allow-multiline" | "never" | "allow")
|
|
10077
|
-
beforeClosing?: ("always" | "proportional-always" | "never" | "allow")
|
|
10078
|
-
}]
|
|
10079
|
-
// ----- react/jsx-wrap-multilines -----
|
|
10080
|
-
type ReactJsxWrapMultilines = []|[{
|
|
10081
|
-
declaration?: (true | false | "ignore" | "parens" | "parens-new-line" | "never")
|
|
10082
|
-
assignment?: (true | false | "ignore" | "parens" | "parens-new-line" | "never")
|
|
10083
|
-
return?: (true | false | "ignore" | "parens" | "parens-new-line" | "never")
|
|
10084
|
-
arrow?: (true | false | "ignore" | "parens" | "parens-new-line" | "never")
|
|
10085
|
-
condition?: (true | false | "ignore" | "parens" | "parens-new-line" | "never")
|
|
10086
|
-
logical?: (true | false | "ignore" | "parens" | "parens-new-line" | "never")
|
|
10087
|
-
prop?: (true | false | "ignore" | "parens" | "parens-new-line" | "never")
|
|
10088
|
-
}]
|
|
10089
|
-
// ----- react/no-children-prop -----
|
|
10090
|
-
type ReactNoChildrenProp = []|[{
|
|
10091
|
-
allowFunctions?: boolean
|
|
10092
|
-
}]
|
|
10093
|
-
// ----- react/no-did-mount-set-state -----
|
|
10094
|
-
type ReactNoDidMountSetState = []|["disallow-in-func"]
|
|
10095
|
-
// ----- react/no-did-update-set-state -----
|
|
10096
|
-
type ReactNoDidUpdateSetState = []|["disallow-in-func"]
|
|
10097
|
-
// ----- react/no-invalid-html-attribute -----
|
|
10098
|
-
type ReactNoInvalidHtmlAttribute = []|[("rel")[]]
|
|
10099
|
-
// ----- react/no-multi-comp -----
|
|
10100
|
-
type ReactNoMultiComp = []|[{
|
|
10101
|
-
ignoreStateless?: boolean
|
|
10102
|
-
}]
|
|
10103
|
-
// ----- react/no-string-refs -----
|
|
10104
|
-
type ReactNoStringRefs = []|[{
|
|
10105
|
-
noTemplateLiterals?: boolean
|
|
10106
|
-
}]
|
|
10107
|
-
// ----- react/no-unescaped-entities -----
|
|
10108
|
-
type ReactNoUnescapedEntities = []|[{
|
|
10109
|
-
forbid?: (string | {
|
|
10110
|
-
char?: string
|
|
10111
|
-
alternatives?: string[]
|
|
10112
|
-
[k: string]: unknown | undefined
|
|
10113
|
-
})[]
|
|
10114
|
-
}]
|
|
10115
|
-
// ----- react/no-unknown-property -----
|
|
10116
|
-
type ReactNoUnknownProperty = []|[{
|
|
10117
|
-
ignore?: string[]
|
|
10118
|
-
requireDataLowercase?: boolean
|
|
10119
|
-
}]
|
|
10120
|
-
// ----- react/no-unsafe -----
|
|
10121
|
-
type ReactNoUnsafe = []|[{
|
|
10122
|
-
checkAliases?: boolean
|
|
10123
|
-
}]
|
|
10124
|
-
// ----- react/no-unstable-nested-components -----
|
|
10125
|
-
type ReactNoUnstableNestedComponents = []|[{
|
|
10126
|
-
customValidators?: string[]
|
|
10127
|
-
allowAsProps?: boolean
|
|
10128
|
-
}]
|
|
10129
|
-
// ----- react/no-unused-prop-types -----
|
|
10130
|
-
type ReactNoUnusedPropTypes = []|[{
|
|
10131
|
-
ignore?: string[]
|
|
10132
|
-
customValidators?: string[]
|
|
10133
|
-
skipShapeProps?: boolean
|
|
10134
|
-
}]
|
|
10135
|
-
// ----- react/no-will-update-set-state -----
|
|
10136
|
-
type ReactNoWillUpdateSetState = []|["disallow-in-func"]
|
|
10137
|
-
// ----- react/prefer-es6-class -----
|
|
10138
|
-
type ReactPreferEs6Class = []|[("always" | "never")]
|
|
10139
|
-
// ----- react/prefer-stateless-function -----
|
|
10140
|
-
type ReactPreferStatelessFunction = []|[{
|
|
10141
|
-
ignorePureComponents?: boolean
|
|
10142
|
-
}]
|
|
10143
|
-
// ----- react/prop-types -----
|
|
10144
|
-
type ReactPropTypes = []|[{
|
|
10145
|
-
ignore?: string[]
|
|
10146
|
-
customValidators?: string[]
|
|
10147
|
-
skipUndeclared?: boolean
|
|
10148
|
-
}]
|
|
10149
|
-
// ----- react/require-default-props -----
|
|
10150
|
-
type ReactRequireDefaultProps = []|[{
|
|
10151
|
-
forbidDefaultForRequired?: boolean
|
|
10152
|
-
classes?: ("defaultProps" | "ignore")
|
|
10153
|
-
functions?: ("defaultArguments" | "defaultProps" | "ignore")
|
|
10154
|
-
ignoreFunctionalComponents?: boolean
|
|
10155
|
-
}]
|
|
10156
|
-
// ----- react/require-optimization -----
|
|
10157
|
-
type ReactRequireOptimization = []|[{
|
|
10158
|
-
allowDecorators?: string[]
|
|
10159
|
-
}]
|
|
10160
|
-
// ----- react/self-closing-comp -----
|
|
10161
|
-
type ReactSelfClosingComp = []|[{
|
|
10162
|
-
component?: boolean
|
|
10163
|
-
html?: boolean
|
|
10164
|
-
}]
|
|
10165
|
-
// ----- react/sort-comp -----
|
|
10166
|
-
type ReactSortComp = []|[{
|
|
10167
|
-
order?: string[]
|
|
10168
|
-
groups?: {
|
|
10169
|
-
[k: string]: string[]
|
|
10170
|
-
}
|
|
10171
|
-
}]
|
|
10172
|
-
// ----- react/sort-default-props -----
|
|
10173
|
-
type ReactSortDefaultProps = []|[{
|
|
10174
|
-
ignoreCase?: boolean
|
|
10175
|
-
}]
|
|
10176
|
-
// ----- react/sort-prop-types -----
|
|
10177
|
-
type ReactSortPropTypes = []|[{
|
|
10178
|
-
requiredFirst?: boolean
|
|
10179
|
-
callbacksLast?: boolean
|
|
10180
|
-
ignoreCase?: boolean
|
|
10181
|
-
noSortAlphabetically?: boolean
|
|
10182
|
-
sortShapeProp?: boolean
|
|
10183
|
-
checkTypes?: boolean
|
|
10184
|
-
}]
|
|
10185
|
-
// ----- react/state-in-constructor -----
|
|
10186
|
-
type ReactStateInConstructor = []|[("always" | "never")]
|
|
10187
|
-
// ----- react/static-property-placement -----
|
|
10188
|
-
type ReactStaticPropertyPlacement = []|[("static public field" | "static getter" | "property assignment")]|[("static public field" | "static getter" | "property assignment"), {
|
|
10189
|
-
propTypes?: ("static public field" | "static getter" | "property assignment")
|
|
10190
|
-
defaultProps?: ("static public field" | "static getter" | "property assignment")
|
|
10191
|
-
childContextTypes?: ("static public field" | "static getter" | "property assignment")
|
|
10192
|
-
contextTypes?: ("static public field" | "static getter" | "property assignment")
|
|
10193
|
-
contextType?: ("static public field" | "static getter" | "property assignment")
|
|
10194
|
-
displayName?: ("static public field" | "static getter" | "property assignment")
|
|
10195
|
-
}]
|
|
10196
|
-
// ----- react/style-prop-object -----
|
|
10197
|
-
type ReactStylePropObject = []|[{
|
|
10198
|
-
allow?: string[]
|
|
10199
|
-
[k: string]: unknown | undefined
|
|
10200
|
-
}]
|
|
10201
9690
|
// ----- regexp/hexadecimal-escape -----
|
|
10202
9691
|
type RegexpHexadecimalEscape = []|[("always" | "never")]
|
|
10203
9692
|
// ----- regexp/letter-case -----
|
|
@@ -11290,7 +10779,7 @@ type StylePaddedBlocks = []|[(("always" | "never") | {
|
|
|
11290
10779
|
}]
|
|
11291
10780
|
// ----- style/padding-line-between-statements -----
|
|
11292
10781
|
type _StylePaddingLineBetweenStatementsPaddingType = ("any" | "never" | "always")
|
|
11293
|
-
type _StylePaddingLineBetweenStatementsStatementType = (("*" | "block-like" | "exports" | "require" | "directive" | "expression" | "iife" | "multiline-block-like" | "multiline-expression" | "multiline-const" | "multiline-let" | "multiline-var" | "singleline-const" | "singleline-let" | "singleline-var" | "block" | "empty" | "function" | "break" | "case" | "class" | "const" | "continue" | "debugger" | "default" | "do" | "export" | "for" | "if" | "import" | "let" | "return" | "switch" | "throw" | "try" | "var" | "while" | "with" | "cjs-export" | "cjs-import" | "interface" | "type" | "function-overload") | [("*" | "block-like" | "exports" | "require" | "directive" | "expression" | "iife" | "multiline-block-like" | "multiline-expression" | "multiline-const" | "multiline-let" | "multiline-var" | "singleline-const" | "singleline-let" | "singleline-var" | "block" | "empty" | "function" | "break" | "case" | "class" | "const" | "continue" | "debugger" | "default" | "do" | "export" | "for" | "if" | "import" | "let" | "return" | "switch" | "throw" | "try" | "var" | "while" | "with" | "cjs-export" | "cjs-import" | "interface" | "type" | "function-overload"), ...(("*" | "block-like" | "exports" | "require" | "directive" | "expression" | "iife" | "multiline-block-like" | "multiline-expression" | "multiline-const" | "multiline-let" | "multiline-var" | "singleline-const" | "singleline-let" | "singleline-var" | "block" | "empty" | "function" | "break" | "case" | "class" | "const" | "continue" | "debugger" | "default" | "do" | "export" | "for" | "if" | "import" | "let" | "return" | "switch" | "throw" | "try" | "var" | "while" | "with" | "cjs-export" | "cjs-import" | "interface" | "type" | "function-overload"))[]])
|
|
10782
|
+
type _StylePaddingLineBetweenStatementsStatementType = (("*" | "block-like" | "exports" | "require" | "directive" | "expression" | "iife" | "multiline-block-like" | "multiline-expression" | "multiline-const" | "multiline-let" | "multiline-var" | "singleline-const" | "singleline-let" | "singleline-var" | "block" | "empty" | "function" | "break" | "case" | "class" | "const" | "continue" | "debugger" | "default" | "do" | "export" | "for" | "if" | "import" | "let" | "return" | "switch" | "throw" | "try" | "var" | "while" | "with" | "cjs-export" | "cjs-import" | "enum" | "interface" | "type" | "function-overload") | [("*" | "block-like" | "exports" | "require" | "directive" | "expression" | "iife" | "multiline-block-like" | "multiline-expression" | "multiline-const" | "multiline-let" | "multiline-var" | "singleline-const" | "singleline-let" | "singleline-var" | "block" | "empty" | "function" | "break" | "case" | "class" | "const" | "continue" | "debugger" | "default" | "do" | "export" | "for" | "if" | "import" | "let" | "return" | "switch" | "throw" | "try" | "var" | "while" | "with" | "cjs-export" | "cjs-import" | "enum" | "interface" | "type" | "function-overload"), ...(("*" | "block-like" | "exports" | "require" | "directive" | "expression" | "iife" | "multiline-block-like" | "multiline-expression" | "multiline-const" | "multiline-let" | "multiline-var" | "singleline-const" | "singleline-let" | "singleline-var" | "block" | "empty" | "function" | "break" | "case" | "class" | "const" | "continue" | "debugger" | "default" | "do" | "export" | "for" | "if" | "import" | "let" | "return" | "switch" | "throw" | "try" | "var" | "while" | "with" | "cjs-export" | "cjs-import" | "enum" | "interface" | "type" | "function-overload"))[]])
|
|
11294
10783
|
type StylePaddingLineBetweenStatements = {
|
|
11295
10784
|
blankLine: _StylePaddingLineBetweenStatementsPaddingType
|
|
11296
10785
|
prev: _StylePaddingLineBetweenStatementsStatementType
|
|
@@ -14209,7 +13698,7 @@ type TypedFlatConfigItem = {
|
|
|
14209
13698
|
* @see [Using plugins in your configuration](https://eslint.org/docs/latest/user-guide/configuring/configuration-files-new#using-plugins-in-your-configuration)
|
|
14210
13699
|
*/
|
|
14211
13700
|
plugins?: Record<string, any>;
|
|
14212
|
-
} & Omit<Linter.
|
|
13701
|
+
} & Omit<Linter.Config<Linter.RulesRecord & Rules>, 'plugins'>;
|
|
14213
13702
|
interface OptionsFiles {
|
|
14214
13703
|
/**
|
|
14215
13704
|
* Override the `files` option to provide custom globs.
|
|
@@ -14300,7 +13789,7 @@ interface OptionsTypeScriptWithTypes {
|
|
|
14300
13789
|
* When this options is provided, type aware rules will be enabled.
|
|
14301
13790
|
* @see https://typescript-eslint.io/linting/typed-linting/
|
|
14302
13791
|
*/
|
|
14303
|
-
tsconfigPath?:
|
|
13792
|
+
tsconfigPath?: string;
|
|
14304
13793
|
}
|
|
14305
13794
|
interface OptionsHasTypeScript {
|
|
14306
13795
|
typescript?: boolean;
|
|
@@ -14469,7 +13958,7 @@ declare const defaultPluginRenaming: {
|
|
|
14469
13958
|
* @returns
|
|
14470
13959
|
* The merged ESLint configurations.
|
|
14471
13960
|
*/
|
|
14472
|
-
declare function vinicuncaESLint(options?: OptionsConfig & TypedFlatConfigItem, ...userConfigs: Array<Awaitable<Array<Linter.
|
|
13961
|
+
declare function vinicuncaESLint(options?: OptionsConfig & TypedFlatConfigItem, ...userConfigs: Array<Awaitable<Array<Linter.Config> | Array<TypedFlatConfigItem> | FlatConfigComposer<any, any> | TypedFlatConfigItem>>): FlatConfigComposer<TypedFlatConfigItem, ConfigNames>;
|
|
14473
13962
|
|
|
14474
13963
|
declare function comments(): Promise<Array<TypedFlatConfigItem>>;
|
|
14475
13964
|
|
|
@@ -14624,6 +14113,6 @@ declare const parserPlain: {
|
|
|
14624
14113
|
};
|
|
14625
14114
|
};
|
|
14626
14115
|
};
|
|
14627
|
-
declare function
|
|
14116
|
+
declare function isInEditorEnv(): boolean;
|
|
14628
14117
|
|
|
14629
|
-
export { type Awaitable, type ConfigNames, GLOB_ALL_SRC, GLOB_CSS, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TESTS, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_YAML, type OptionsComponentExts, type OptionsConfig, type OptionsFiles, type OptionsFormatters, type OptionsHasTypeScript, type OptionsIsInEditor, type OptionsOverrides, type OptionsRegExp, type OptionsStylistic, type OptionsTypeScriptParserOptions, type OptionsTypeScriptWithTypes, type OptionsTypescript, type OptionsUnoCSS, type OptionsVue, type Rules, STYLISTIC_CONFIG_DEFAULTS, type StylisticConfig, type TypedFlatConfigItem, combineConfigs, comments, defaultPluginRenaming, formatters, ignores, imports, interopDefault, javascript, jsdoc, jsonc, jsx, markdown, node, parserPlain, perfectionist, react, regexp, renamePluginInConfigs, renameRules, sonar, sortPackageJson, sortTsconfig, stylistic, test,
|
|
14118
|
+
export { type Awaitable, type ConfigNames, GLOB_ALL_SRC, GLOB_CSS, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TESTS, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_YAML, type OptionsComponentExts, type OptionsConfig, type OptionsFiles, type OptionsFormatters, type OptionsHasTypeScript, type OptionsIsInEditor, type OptionsOverrides, type OptionsRegExp, type OptionsStylistic, type OptionsTypeScriptParserOptions, type OptionsTypeScriptWithTypes, type OptionsTypescript, type OptionsUnoCSS, type OptionsVue, type Rules, STYLISTIC_CONFIG_DEFAULTS, type StylisticConfig, type TypedFlatConfigItem, combineConfigs, comments, defaultPluginRenaming, formatters, ignores, imports, interopDefault, isInEditorEnv, javascript, jsdoc, jsonc, jsx, markdown, node, parserPlain, perfectionist, react, regexp, renamePluginInConfigs, renameRules, sonar, sortPackageJson, sortTsconfig, stylistic, test, typescript, unicorn, unocss, vinicuncaESLint, vue, yaml };
|