@coderwyd/eslint-config 4.2.0 → 4.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -391,233 +391,233 @@ interface RuleOptions {
391
391
  'implicit-arrow-linebreak'?: Linter.RuleEntry<ImplicitArrowLinebreak>
392
392
  /**
393
393
  * Enforce or ban the use of inline type-only markers for named imports.
394
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/consistent-type-specifier-style.md
394
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/consistent-type-specifier-style.md
395
395
  */
396
396
  'import/consistent-type-specifier-style'?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>
397
397
  /**
398
398
  * Ensure a default export is present, given a default import.
399
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/default.md
399
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/default.md
400
400
  */
401
401
  'import/default'?: Linter.RuleEntry<[]>
402
402
  /**
403
403
  * Enforce a leading comment with the webpackChunkName for dynamic imports.
404
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/dynamic-import-chunkname.md
404
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/dynamic-import-chunkname.md
405
405
  */
406
406
  'import/dynamic-import-chunkname'?: Linter.RuleEntry<ImportDynamicImportChunkname>
407
407
  /**
408
408
  * Forbid any invalid exports, i.e. re-export of the same name.
409
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/export.md
409
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/export.md
410
410
  */
411
411
  'import/export'?: Linter.RuleEntry<[]>
412
412
  /**
413
413
  * Ensure all exports appear after other statements.
414
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/exports-last.md
414
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/exports-last.md
415
415
  */
416
416
  'import/exports-last'?: Linter.RuleEntry<[]>
417
417
  /**
418
418
  * Ensure consistent use of file extension within the import path.
419
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/extensions.md
419
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/extensions.md
420
420
  */
421
421
  'import/extensions'?: Linter.RuleEntry<ImportExtensions>
422
422
  /**
423
423
  * Ensure all imports appear before other statements.
424
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/first.md
424
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/first.md
425
425
  */
426
426
  'import/first'?: Linter.RuleEntry<ImportFirst>
427
427
  /**
428
428
  * Prefer named exports to be grouped together in a single export declaration.
429
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/group-exports.md
429
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/group-exports.md
430
430
  */
431
431
  'import/group-exports'?: Linter.RuleEntry<[]>
432
432
  /**
433
433
  * Replaced by `import-x/first`.
434
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/imports-first.md
434
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/imports-first.md
435
435
  * @deprecated
436
436
  */
437
437
  'import/imports-first'?: Linter.RuleEntry<ImportImportsFirst>
438
438
  /**
439
439
  * Enforce the maximum number of dependencies a module can have.
440
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/max-dependencies.md
440
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/max-dependencies.md
441
441
  */
442
442
  'import/max-dependencies'?: Linter.RuleEntry<ImportMaxDependencies>
443
443
  /**
444
444
  * Ensure named imports correspond to a named export in the remote file.
445
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/named.md
445
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/named.md
446
446
  */
447
447
  'import/named'?: Linter.RuleEntry<ImportNamed>
448
448
  /**
449
449
  * Ensure imported namespaces contain dereferenced properties as they are dereferenced.
450
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/namespace.md
450
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/namespace.md
451
451
  */
452
452
  'import/namespace'?: Linter.RuleEntry<ImportNamespace>
453
453
  /**
454
454
  * Enforce a newline after import statements.
455
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/newline-after-import.md
455
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/newline-after-import.md
456
456
  */
457
457
  'import/newline-after-import'?: Linter.RuleEntry<ImportNewlineAfterImport>
458
458
  /**
459
459
  * Forbid import of modules using absolute paths.
460
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-absolute-path.md
460
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-absolute-path.md
461
461
  */
462
462
  'import/no-absolute-path'?: Linter.RuleEntry<ImportNoAbsolutePath>
463
463
  /**
464
464
  * Forbid AMD `require` and `define` calls.
465
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-amd.md
465
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-amd.md
466
466
  */
467
467
  'import/no-amd'?: Linter.RuleEntry<[]>
468
468
  /**
469
469
  * Forbid anonymous values as default exports.
470
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-anonymous-default-export.md
470
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-anonymous-default-export.md
471
471
  */
472
472
  'import/no-anonymous-default-export'?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>
473
473
  /**
474
474
  * Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
475
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-commonjs.md
475
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-commonjs.md
476
476
  */
477
477
  'import/no-commonjs'?: Linter.RuleEntry<ImportNoCommonjs>
478
478
  /**
479
479
  * Forbid a module from importing a module with a dependency path back to itself.
480
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-cycle.md
480
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-cycle.md
481
481
  */
482
482
  'import/no-cycle'?: Linter.RuleEntry<ImportNoCycle>
483
483
  /**
484
484
  * Forbid default exports.
485
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-default-export.md
485
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-default-export.md
486
486
  */
487
487
  'import/no-default-export'?: Linter.RuleEntry<[]>
488
488
  /**
489
489
  * Forbid imported names marked with `@deprecated` documentation tag.
490
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-deprecated.md
490
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-deprecated.md
491
491
  */
492
492
  'import/no-deprecated'?: Linter.RuleEntry<[]>
493
493
  /**
494
494
  * Forbid repeated import of the same module in multiple places.
495
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-duplicates.md
495
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-duplicates.md
496
496
  */
497
497
  'import/no-duplicates'?: Linter.RuleEntry<ImportNoDuplicates>
498
498
  /**
499
499
  * Forbid `require()` calls with expressions.
500
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-dynamic-require.md
500
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-dynamic-require.md
501
501
  */
502
502
  'import/no-dynamic-require'?: Linter.RuleEntry<ImportNoDynamicRequire>
503
503
  /**
504
504
  * Forbid empty named import blocks.
505
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-empty-named-blocks.md
505
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-empty-named-blocks.md
506
506
  */
507
507
  'import/no-empty-named-blocks'?: Linter.RuleEntry<[]>
508
508
  /**
509
509
  * Forbid the use of extraneous packages.
510
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-extraneous-dependencies.md
510
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-extraneous-dependencies.md
511
511
  */
512
512
  'import/no-extraneous-dependencies'?: Linter.RuleEntry<ImportNoExtraneousDependencies>
513
513
  /**
514
514
  * Forbid import statements with CommonJS module.exports.
515
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-import-module-exports.md
515
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-import-module-exports.md
516
516
  */
517
517
  'import/no-import-module-exports'?: Linter.RuleEntry<ImportNoImportModuleExports>
518
518
  /**
519
519
  * Forbid importing the submodules of other modules.
520
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-internal-modules.md
520
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-internal-modules.md
521
521
  */
522
522
  'import/no-internal-modules'?: Linter.RuleEntry<ImportNoInternalModules>
523
523
  /**
524
524
  * Forbid the use of mutable exports with `var` or `let`.
525
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-mutable-exports.md
525
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-mutable-exports.md
526
526
  */
527
527
  'import/no-mutable-exports'?: Linter.RuleEntry<[]>
528
528
  /**
529
529
  * Forbid use of exported name as identifier of default export.
530
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-named-as-default.md
530
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-named-as-default.md
531
531
  */
532
532
  'import/no-named-as-default'?: Linter.RuleEntry<[]>
533
533
  /**
534
534
  * Forbid use of exported name as property of default export.
535
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-named-as-default-member.md
535
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-named-as-default-member.md
536
536
  */
537
537
  'import/no-named-as-default-member'?: Linter.RuleEntry<[]>
538
538
  /**
539
539
  * Forbid named default exports.
540
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-named-default.md
540
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-named-default.md
541
541
  */
542
542
  'import/no-named-default'?: Linter.RuleEntry<[]>
543
543
  /**
544
544
  * Forbid named exports.
545
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-named-export.md
545
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-named-export.md
546
546
  */
547
547
  'import/no-named-export'?: Linter.RuleEntry<[]>
548
548
  /**
549
549
  * Forbid namespace (a.k.a. "wildcard" `*`) imports.
550
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-namespace.md
550
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-namespace.md
551
551
  */
552
552
  'import/no-namespace'?: Linter.RuleEntry<ImportNoNamespace>
553
553
  /**
554
554
  * Forbid Node.js builtin modules.
555
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-nodejs-modules.md
555
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-nodejs-modules.md
556
556
  */
557
557
  'import/no-nodejs-modules'?: Linter.RuleEntry<ImportNoNodejsModules>
558
558
  /**
559
559
  * Forbid importing packages through relative paths.
560
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-relative-packages.md
560
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-relative-packages.md
561
561
  */
562
562
  'import/no-relative-packages'?: Linter.RuleEntry<ImportNoRelativePackages>
563
563
  /**
564
564
  * Forbid importing modules from parent directories.
565
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-relative-parent-imports.md
565
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-relative-parent-imports.md
566
566
  */
567
567
  'import/no-relative-parent-imports'?: Linter.RuleEntry<ImportNoRelativeParentImports>
568
568
  /**
569
569
  * Forbid importing a default export by a different name.
570
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-rename-default.md
570
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-rename-default.md
571
571
  */
572
572
  'import/no-rename-default'?: Linter.RuleEntry<ImportNoRenameDefault>
573
573
  /**
574
574
  * Enforce which files can be imported in a given folder.
575
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-restricted-paths.md
575
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-restricted-paths.md
576
576
  */
577
577
  'import/no-restricted-paths'?: Linter.RuleEntry<ImportNoRestrictedPaths>
578
578
  /**
579
579
  * Forbid a module from importing itself.
580
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-self-import.md
580
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-self-import.md
581
581
  */
582
582
  'import/no-self-import'?: Linter.RuleEntry<[]>
583
583
  /**
584
584
  * Forbid unassigned imports.
585
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-unassigned-import.md
585
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-unassigned-import.md
586
586
  */
587
587
  'import/no-unassigned-import'?: Linter.RuleEntry<ImportNoUnassignedImport>
588
588
  /**
589
589
  * Ensure imports point to a file/module that can be resolved.
590
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-unresolved.md
590
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-unresolved.md
591
591
  */
592
592
  'import/no-unresolved'?: Linter.RuleEntry<ImportNoUnresolved>
593
593
  /**
594
594
  * Forbid modules without exports, or exports without matching import in another module.
595
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-unused-modules.md
595
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-unused-modules.md
596
596
  */
597
597
  'import/no-unused-modules'?: Linter.RuleEntry<ImportNoUnusedModules>
598
598
  /**
599
599
  * Forbid unnecessary path segments in import and require statements.
600
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-useless-path-segments.md
600
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-useless-path-segments.md
601
601
  */
602
602
  'import/no-useless-path-segments'?: Linter.RuleEntry<ImportNoUselessPathSegments>
603
603
  /**
604
604
  * Forbid webpack loader syntax in imports.
605
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-webpack-loader-syntax.md
605
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-webpack-loader-syntax.md
606
606
  */
607
607
  'import/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>
608
608
  /**
609
609
  * Enforce a convention in module import order.
610
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/order.md
610
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/order.md
611
611
  */
612
612
  'import/order'?: Linter.RuleEntry<ImportOrder>
613
613
  /**
614
614
  * Prefer a default export if module exports a single name or multiple names.
615
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/prefer-default-export.md
615
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/prefer-default-export.md
616
616
  */
617
617
  'import/prefer-default-export'?: Linter.RuleEntry<ImportPreferDefaultExport>
618
618
  /**
619
619
  * Forbid potentially ambiguous parse goal (`script` vs. `module`).
620
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/unambiguous.md
620
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/unambiguous.md
621
621
  */
622
622
  'import/unambiguous'?: Linter.RuleEntry<[]>
623
623
  /**
@@ -2542,142 +2542,142 @@ interface RuleOptions {
2542
2542
  */
2543
2543
  'react-compiler/react-compiler'?: Linter.RuleEntry<ReactCompilerReactCompiler>
2544
2544
  /**
2545
- * disallow void elements (AKA self-closing elements) from having children
2545
+ * Disallow `children` in void DOM elements.
2546
2546
  * @see https://eslint-react.xyz/docs/rules/dom-no-void-elements-with-children
2547
2547
  */
2548
2548
  'react-dom/no-children-in-void-dom-elements'?: Linter.RuleEntry<[]>
2549
2549
  /**
2550
- * disallow when a DOM component is using 'dangerouslySetInnerHTML'
2550
+ * Disallow `dangerouslySetInnerHTML`.
2551
2551
  * @see https://eslint-react.xyz/docs/rules/dom-no-dangerously-set-innerhtml
2552
2552
  */
2553
2553
  'react-dom/no-dangerously-set-innerhtml'?: Linter.RuleEntry<[]>
2554
2554
  /**
2555
- * disallow when a DOM component is using both 'children' and 'dangerouslySetInnerHTML'
2555
+ * Disallow `dangerouslySetInnerHTML` and `children` at the same time.
2556
2556
  * @see https://eslint-react.xyz/docs/rules/dom-no-dangerously-set-innerhtml-with-children
2557
2557
  */
2558
2558
  'react-dom/no-dangerously-set-innerhtml-with-children'?: Linter.RuleEntry<[]>
2559
2559
  /**
2560
- * disallow 'findDOMNode'
2560
+ * Disallow `findDOMNode`.
2561
2561
  * @see https://eslint-react.xyz/docs/rules/dom-no-find-dom-node
2562
2562
  */
2563
2563
  'react-dom/no-find-dom-node'?: Linter.RuleEntry<[]>
2564
2564
  /**
2565
- * warns against using `flushSync`
2565
+ * Disallow `flushSync`.
2566
2566
  * @see https://eslint-react.xyz/docs/rules/dom-no-flush-sync
2567
2567
  */
2568
2568
  'react-dom/no-flush-sync'?: Linter.RuleEntry<[]>
2569
2569
  /**
2570
- * replaces usages of 'ReactDom.hydrate()' with 'hydrateRoot()'
2570
+ * Replaces usages of `ReactDom.hydrate()` with `hydrateRoot()`.
2571
2571
  * @see https://eslint-react.xyz/docs/rules/dom-no-hydrate
2572
2572
  */
2573
2573
  'react-dom/no-hydrate'?: Linter.RuleEntry<[]>
2574
2574
  /**
2575
- * enforce that button component have an explicit 'type' attribute
2575
+ * Enforces explicit `type` attribute for `button` elements.
2576
2576
  * @see https://eslint-react.xyz/docs/rules/dom-no-missing-button-type
2577
2577
  */
2578
2578
  'react-dom/no-missing-button-type'?: Linter.RuleEntry<[]>
2579
2579
  /**
2580
- * enforce that 'iframe' component have an explicit 'sandbox' attribute
2580
+ * Enforces explicit `sandbox` attribute for `iframe` elements.
2581
2581
  * @see https://eslint-react.xyz/docs/rules/dom-no-missing-iframe-sandbox
2582
2582
  */
2583
2583
  'react-dom/no-missing-iframe-sandbox'?: Linter.RuleEntry<[]>
2584
2584
  /**
2585
- * enforce that namespaces are not used in React elements
2585
+ * Enforces the absence of a `namespace` in React elements.
2586
2586
  * @see https://eslint-react.xyz/docs/rules/dom-no-namespace
2587
2587
  */
2588
2588
  'react-dom/no-namespace'?: Linter.RuleEntry<[]>
2589
2589
  /**
2590
- * replace usages of 'ReactDom.render()' with 'createRoot(node).render()'
2590
+ * Replaces usages of `ReactDom.render()` with `createRoot(node).render()`.
2591
2591
  * @see https://eslint-react.xyz/docs/rules/dom-no-render
2592
2592
  */
2593
2593
  'react-dom/no-render'?: Linter.RuleEntry<[]>
2594
2594
  /**
2595
- * disallow usage of the return value of 'ReactDOM.render'
2595
+ * Disallow the return value of `ReactDOM.render`.
2596
2596
  * @see https://eslint-react.xyz/docs/rules/dom-no-render-return-value
2597
2597
  */
2598
2598
  'react-dom/no-render-return-value'?: Linter.RuleEntry<[]>
2599
2599
  /**
2600
- * disallow 'javascript:' URLs as JSX event handler prop's value
2600
+ * Disallow `javascript:` URLs as attribute values.
2601
2601
  * @see https://eslint-react.xyz/docs/rules/dom-no-script-url
2602
2602
  */
2603
2603
  'react-dom/no-script-url'?: Linter.RuleEntry<[]>
2604
2604
  /**
2605
- * disallow usage of unknown DOM property
2605
+ * Disallow unknown `DOM` property.
2606
2606
  * @see https://eslint-react.xyz/docs/rules/dom-no-unknown-property
2607
2607
  */
2608
2608
  'react-dom/no-unknown-property'?: Linter.RuleEntry<ReactDomNoUnknownProperty>
2609
2609
  /**
2610
- * disallow unsafe iframe 'sandbox' attribute combinations
2610
+ * Enforces `sandbox` attribute for `iframe` elements is not set to unsafe combinations.
2611
2611
  * @see https://eslint-react.xyz/docs/rules/dom-no-unsafe-iframe-sandbox
2612
2612
  */
2613
2613
  'react-dom/no-unsafe-iframe-sandbox'?: Linter.RuleEntry<[]>
2614
2614
  /**
2615
- * disallow 'target="_blank"' on an external link without 'rel="noreferrer noopener"'
2615
+ * Disallow `target="_blank"` without `rel="noreferrer noopener"`.
2616
2616
  * @see https://eslint-react.xyz/docs/rules/dom-no-unsafe-target-blank
2617
2617
  */
2618
2618
  'react-dom/no-unsafe-target-blank'?: Linter.RuleEntry<[]>
2619
2619
  /**
2620
- * replace usages of 'ReactDom.render()' with 'createRoot(node).render()'
2620
+ * Replaces usages of `useFormState` with `useActionState`.
2621
2621
  * @see https://eslint-react.xyz/docs/rules/dom-no-use-form-state
2622
2622
  */
2623
2623
  'react-dom/no-use-form-state'?: Linter.RuleEntry<[]>
2624
2624
  /**
2625
- * disallow void elements (AKA self-closing elements) from having children
2625
+ * Disallow `children` in void DOM elements.
2626
2626
  * @see https://eslint-react.xyz/docs/rules/dom-no-void-elements-with-children
2627
2627
  */
2628
2628
  'react-dom/no-void-elements-with-children'?: Linter.RuleEntry<[]>
2629
2629
  /**
2630
- * enforce custom Hooks to use at least one other hook inside
2630
+ * Enforces that a function with the `use` prefix should use at least one Hook inside of it.
2631
2631
  * @see https://eslint-react.xyz/docs/rules/hooks-extra-no-unnecessary-use-prefix
2632
2632
  */
2633
2633
  'react-hooks-extra/ensure-custom-hooks-using-other-hooks'?: Linter.RuleEntry<[]>
2634
2634
  /**
2635
- * disallow unnecessary usage of 'useCallback'
2635
+ * Disallow unnecessary usage of `useCallback`.
2636
2636
  * @see https://eslint-react.xyz/docs/rules/hooks-extra-no-unnecessary-use-callback
2637
2637
  */
2638
2638
  'react-hooks-extra/ensure-use-callback-has-non-empty-deps'?: Linter.RuleEntry<[]>
2639
2639
  /**
2640
- * disallow unnecessary usage of 'useMemo'
2640
+ * Disallow unnecessary usage of `useMemo`.
2641
2641
  * @see https://eslint-react.xyz/docs/rules/hooks-extra-no-unnecessary-use-memo
2642
2642
  */
2643
2643
  'react-hooks-extra/ensure-use-memo-has-non-empty-deps'?: Linter.RuleEntry<[]>
2644
2644
  /**
2645
- * disallow direct calls to the 'set' function of 'useState' in 'useEffect'
2645
+ * Disallow direct calls to the `set` function of `useState` in `useEffect`.
2646
2646
  * @see https://eslint-react.xyz/docs/rules/hooks-extra-no-direct-set-state-in-use-effect
2647
2647
  */
2648
2648
  'react-hooks-extra/no-direct-set-state-in-use-effect'?: Linter.RuleEntry<[]>
2649
2649
  /**
2650
- * disallow direct calls to the 'set' function of 'useState' in 'useLayoutEffect'
2650
+ * Disallow direct calls to the `set` function of `useState` in `useLayoutEffect`.
2651
2651
  * @see https://eslint-react.xyz/docs/rules/hooks-extra-no-direct-set-state-in-use-layout-effect
2652
2652
  */
2653
2653
  'react-hooks-extra/no-direct-set-state-in-use-layout-effect'?: Linter.RuleEntry<[]>
2654
2654
  /**
2655
- * enforce custom Hooks to use at least one other hook inside
2655
+ * Enforces that a function with the `use` prefix should use at least one Hook inside of it.
2656
2656
  * @see https://eslint-react.xyz/docs/rules/hooks-extra-no-unnecessary-use-prefix
2657
2657
  */
2658
2658
  'react-hooks-extra/no-redundant-custom-hook'?: Linter.RuleEntry<[]>
2659
2659
  /**
2660
- * disallow unnecessary usage of 'useCallback'
2660
+ * Disallow unnecessary usage of `useCallback`.
2661
2661
  * @see https://eslint-react.xyz/docs/rules/hooks-extra-no-unnecessary-use-callback
2662
2662
  */
2663
2663
  'react-hooks-extra/no-unnecessary-use-callback'?: Linter.RuleEntry<[]>
2664
2664
  /**
2665
- * disallow unnecessary usage of 'useMemo'
2665
+ * Disallow unnecessary usage of `useMemo`.
2666
2666
  * @see https://eslint-react.xyz/docs/rules/hooks-extra-no-unnecessary-use-memo
2667
2667
  */
2668
2668
  'react-hooks-extra/no-unnecessary-use-memo'?: Linter.RuleEntry<[]>
2669
2669
  /**
2670
- * enforce custom Hooks to use at least one other hook inside
2670
+ * Enforces that a function with the `use` prefix should use at least one Hook inside of it.
2671
2671
  * @see https://eslint-react.xyz/docs/rules/hooks-extra-no-unnecessary-use-prefix
2672
2672
  */
2673
2673
  'react-hooks-extra/no-unnecessary-use-prefix'?: Linter.RuleEntry<[]>
2674
2674
  /**
2675
- * enforce custom Hooks to use at least one other hook inside
2675
+ * Enforces that a function with the `use` prefix should use at least one Hook inside of it.
2676
2676
  * @see https://eslint-react.xyz/docs/rules/hooks-extra-no-unnecessary-use-prefix
2677
2677
  */
2678
2678
  'react-hooks-extra/no-useless-custom-hooks'?: Linter.RuleEntry<[]>
2679
2679
  /**
2680
- * disallow function calls in 'useState' that aren't wrapped in an initializer function
2680
+ * Enforces function calls made inside `useState` to be wrapped in an `initializer function`.
2681
2681
  * @see https://eslint-react.xyz/docs/rules/hooks-extra-prefer-use-state-lazy-initialization
2682
2682
  */
2683
2683
  'react-hooks-extra/prefer-use-state-lazy-initialization'?: Linter.RuleEntry<[]>
@@ -2692,334 +2692,339 @@ interface RuleOptions {
2692
2692
  */
2693
2693
  'react-hooks/rules-of-hooks'?: Linter.RuleEntry<[]>
2694
2694
  /**
2695
- * enforce naming convention for components
2695
+ * Enforces naming conventions for components.
2696
2696
  * @see https://eslint-react.xyz/docs/rules/naming-convention-component-name
2697
2697
  */
2698
2698
  'react-naming-convention/component-name'?: Linter.RuleEntry<ReactNamingConventionComponentName>
2699
2699
  /**
2700
- * enforce context name to be a valid component name with the suffix 'Context'
2700
+ * Enforces context name to be a valid component name with the suffix `Context`.
2701
2701
  * @see https://eslint-react.xyz/docs/rules/naming-convention-context-name
2702
2702
  */
2703
2703
  'react-naming-convention/context-name'?: Linter.RuleEntry<[]>
2704
2704
  /**
2705
- * enforce naming convention for JSX filenames
2705
+ * Enforces consistent file naming conventions.
2706
2706
  * @see https://eslint-react.xyz/docs/rules/naming-convention-filename
2707
2707
  */
2708
2708
  'react-naming-convention/filename'?: Linter.RuleEntry<ReactNamingConventionFilename>
2709
2709
  /**
2710
- * enforce naming convention for JSX file extensions
2710
+ * Enforces consistent file naming conventions.
2711
2711
  * @see https://eslint-react.xyz/docs/rules/naming-convention-filename-extension
2712
2712
  */
2713
2713
  'react-naming-convention/filename-extension'?: Linter.RuleEntry<ReactNamingConventionFilenameExtension>
2714
2714
  /**
2715
- * enforce destructuring and symmetric naming of 'useState' hook value and setter
2715
+ * Enforces destructuring and symmetric naming of `useState` hook value and setter.
2716
2716
  * @see https://eslint-react.xyz/docs/rules/naming-convention-use-state
2717
2717
  */
2718
2718
  'react-naming-convention/use-state'?: Linter.RuleEntry<[]>
2719
2719
  'react-refresh/only-export-components'?: Linter.RuleEntry<ReactRefreshOnlyExportComponents>
2720
2720
  /**
2721
- * enforce that every 'addEventListener' in a component or custom Hook has a corresponding 'removeEventListener'.
2721
+ * Prevents leaked `addEventListener` in a component or custom Hook.
2722
2722
  * @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-event-listener
2723
2723
  */
2724
2724
  'react-web-api/no-leaked-event-listener'?: Linter.RuleEntry<[]>
2725
2725
  /**
2726
- * enforce that every 'setInterval' in a component or custom Hook has a corresponding 'clearInterval'.
2726
+ * Prevents leaked `setInterval` in a component or custom Hook.
2727
2727
  * @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-interval
2728
2728
  */
2729
2729
  'react-web-api/no-leaked-interval'?: Linter.RuleEntry<[]>
2730
2730
  /**
2731
- * enforce cleanup of 'ResizeObserver' instances in components and custom Hooks.
2731
+ * Prevents leaked `ResizeObserver` in a component or custom Hook.
2732
2732
  * @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-resize-observer
2733
2733
  */
2734
2734
  'react-web-api/no-leaked-resize-observer'?: Linter.RuleEntry<[]>
2735
2735
  /**
2736
- * enforce that every 'setTimeout' in a component or custom Hook has a corresponding 'clearTimeout'.
2736
+ * Prevents leaked `setTimeout` in a component or custom Hook.
2737
2737
  * @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-timeout
2738
2738
  */
2739
2739
  'react-web-api/no-leaked-timeout'?: Linter.RuleEntry<[]>
2740
2740
  /**
2741
- * disallow using shorthand boolean attributes
2741
+ * Enforces explicit boolean values for boolean attributes.
2742
2742
  * @see https://eslint-react.xyz/docs/rules/avoid-shorthand-boolean
2743
2743
  */
2744
2744
  'react/avoid-shorthand-boolean'?: Linter.RuleEntry<[]>
2745
2745
  /**
2746
- * disallow using shorthand fragment syntax
2746
+ * Enforces explicit `<Fragment>` components instead of the shorthand `<>` or `</>` syntax.
2747
2747
  * @see https://eslint-react.xyz/docs/rules/avoid-shorthand-fragment
2748
2748
  */
2749
2749
  'react/avoid-shorthand-fragment'?: Linter.RuleEntry<[]>
2750
2750
  /**
2751
- * require a 'ref' parameter to be set when using 'forwardRef'
2751
+ * Disallow useless `forwardRef` calls on components that don't use `ref`s.
2752
2752
  * @see https://eslint-react.xyz/docs/rules/no-useless-forward-ref
2753
2753
  */
2754
2754
  'react/ensure-forward-ref-using-ref'?: Linter.RuleEntry<[]>
2755
2755
  /**
2756
- * disallow duplicate props
2757
- * @see https://eslint-react.xyz/docs/rules/no-duplicate-jsx-props
2756
+ * Disallow duplicate props in JSX elements.
2757
+ * @see https://eslint-react.xyz/docs/rules/jsx-no-duplicate-props
2758
2758
  */
2759
2759
  'react/jsx-no-duplicate-props'?: Linter.RuleEntry<[]>
2760
2760
  /**
2761
- * marks variables used in JSX as used
2762
- * @see https://eslint-react.xyz/docs/rules/use-jsx-vars
2761
+ * Disallow undefined variables in JSX.
2762
+ * @see https://eslint-react.xyz/docs/rules/jsx-no-undef
2763
+ */
2764
+ 'react/jsx-no-undef'?: Linter.RuleEntry<[]>
2765
+ /**
2766
+ * Marks variables used in JSX elements as used.
2767
+ * @see https://eslint-react.xyz/docs/rules/jsx-uses-vars
2763
2768
  */
2764
2769
  'react/jsx-uses-vars'?: Linter.RuleEntry<[]>
2765
2770
  /**
2766
- * disallow accessing 'this.state' within 'setState'
2771
+ * Disallow accessing `this.state` inside `setState` calls.
2767
2772
  * @see https://eslint-react.xyz/docs/rules/no-access-state-in-setstate
2768
2773
  */
2769
2774
  'react/no-access-state-in-setstate'?: Linter.RuleEntry<[]>
2770
2775
  /**
2771
- * disallow using an item's index in the array as its key
2776
+ * Disallow an item's index in the array as its key.
2772
2777
  * @see https://eslint-react.xyz/docs/rules/no-array-index-key
2773
2778
  */
2774
2779
  'react/no-array-index-key'?: Linter.RuleEntry<[]>
2775
2780
  /**
2776
- * disallow using 'Children.count'
2781
+ * Disallow `Children.count`.
2777
2782
  * @see https://eslint-react.xyz/docs/rules/no-children-count
2778
2783
  */
2779
2784
  'react/no-children-count'?: Linter.RuleEntry<[]>
2780
2785
  /**
2781
- * disallow using 'Children.forEach'
2786
+ * Disallow 'Children.forEach'.
2782
2787
  * @see https://eslint-react.xyz/docs/rules/no-children-for-each
2783
2788
  */
2784
2789
  'react/no-children-for-each'?: Linter.RuleEntry<[]>
2785
2790
  /**
2786
- * disallow using 'Children.map'
2791
+ * Disallow `Children.map`.
2787
2792
  * @see https://eslint-react.xyz/docs/rules/no-children-map
2788
2793
  */
2789
2794
  'react/no-children-map'?: Linter.RuleEntry<[]>
2790
2795
  /**
2791
- * disallow using 'Children.only'
2796
+ * Disallow `Children.only`.
2792
2797
  * @see https://eslint-react.xyz/docs/rules/no-children-only
2793
2798
  */
2794
2799
  'react/no-children-only'?: Linter.RuleEntry<[]>
2795
2800
  /**
2796
- * disallow passing 'children' as props
2801
+ * Disallow passing `children` as a prop.
2797
2802
  * @see https://eslint-react.xyz/docs/rules/no-children-prop
2798
2803
  */
2799
2804
  'react/no-children-prop'?: Linter.RuleEntry<[]>
2800
2805
  /**
2801
- * disallow using 'Children.toArray'
2806
+ * Disallow `Children.toArray`.
2802
2807
  * @see https://eslint-react.xyz/docs/rules/no-children-to-array
2803
2808
  */
2804
2809
  'react/no-children-to-array'?: Linter.RuleEntry<[]>
2805
2810
  /**
2806
- * disallow using class components
2811
+ * Disallow class components.
2807
2812
  * @see https://eslint-react.xyz/docs/rules/no-class-component
2808
2813
  */
2809
2814
  'react/no-class-component'?: Linter.RuleEntry<[]>
2810
2815
  /**
2811
- * disallow using 'cloneElement'
2816
+ * Disallow `cloneElement`.
2812
2817
  * @see https://eslint-react.xyz/docs/rules/no-clone-element
2813
2818
  */
2814
2819
  'react/no-clone-element'?: Linter.RuleEntry<[]>
2815
2820
  /**
2816
- * disallow comments from being inserted as text nodes
2821
+ * Prevents comments from being inserted as text nodes.
2817
2822
  * @see https://eslint-react.xyz/docs/rules/no-comment-textnodes
2818
2823
  */
2819
2824
  'react/no-comment-textnodes'?: Linter.RuleEntry<[]>
2820
2825
  /**
2821
- * disallow complex conditional rendering
2826
+ * Disallow complex conditional rendering in JSX expressions.
2822
2827
  * @see https://eslint-react.xyz/docs/rules/no-complex-conditional-rendering
2823
2828
  */
2824
2829
  'react/no-complex-conditional-rendering'?: Linter.RuleEntry<[]>
2825
2830
  /**
2826
- * disallow complex conditional rendering
2831
+ * Disallow complex conditional rendering in JSX expressions.
2827
2832
  * @see https://eslint-react.xyz/docs/rules/no-complex-conditional-rendering
2828
2833
  */
2829
2834
  'react/no-complicated-conditional-rendering'?: Linter.RuleEntry<[]>
2830
2835
  /**
2831
- * replace usages of 'componentWillMount' with 'UNSAFE_componentWillMount'
2836
+ * Replace usages of `componentWillMount` with `UNSAFE_componentWillMount`.
2832
2837
  * @see https://eslint-react.xyz/docs/rules/no-component-will-mount
2833
2838
  */
2834
2839
  'react/no-component-will-mount'?: Linter.RuleEntry<[]>
2835
2840
  /**
2836
- * replace usages of 'componentWillReceiveProps' with 'UNSAFE_componentWillReceiveProps'
2841
+ * Replace usages of `componentWillReceiveProps` with `UNSAFE_componentWillReceiveProps`.
2837
2842
  * @see https://eslint-react.xyz/docs/rules/no-component-will-receive-props
2838
2843
  */
2839
2844
  'react/no-component-will-receive-props'?: Linter.RuleEntry<[]>
2840
2845
  /**
2841
- * replace usages of 'componentWillUpdate' with 'UNSAFE_componentWillUpdate'
2846
+ * Replace usages of `componentWillUpdate` with `UNSAFE_componentWillUpdate`.
2842
2847
  * @see https://eslint-react.xyz/docs/rules/no-component-will-update
2843
2848
  */
2844
2849
  'react/no-component-will-update'?: Linter.RuleEntry<[]>
2845
2850
  /**
2846
- * replace usages of '<Context.Provider>' with '<Context>'
2851
+ * Replace usages of `<Context.Provider>` with `<Context>`.
2847
2852
  * @see https://eslint-react.xyz/docs/rules/no-context-provider
2848
2853
  */
2849
2854
  'react/no-context-provider'?: Linter.RuleEntry<[]>
2850
2855
  /**
2851
- * disallow using 'createRef' in function components
2856
+ * Disallow `createRef` in function components.
2852
2857
  * @see https://eslint-react.xyz/docs/rules/no-create-ref
2853
2858
  */
2854
2859
  'react/no-create-ref'?: Linter.RuleEntry<[]>
2855
2860
  /**
2856
- * disallow using 'defaultProps' property in components
2861
+ * Disallow `defaultProps` property in favor of ES6 default parameters.
2857
2862
  * @see https://eslint-react.xyz/docs/rules/no-default-props
2858
2863
  */
2859
2864
  'react/no-default-props'?: Linter.RuleEntry<[]>
2860
2865
  /**
2861
- * disallow direct mutation of state
2866
+ * Disallow direct mutation of `this.state`.
2862
2867
  * @see https://eslint-react.xyz/docs/rules/no-direct-mutation-state
2863
2868
  */
2864
2869
  'react/no-direct-mutation-state'?: Linter.RuleEntry<[]>
2865
2870
  /**
2866
- * disallow duplicate props
2867
- * @see https://eslint-react.xyz/docs/rules/no-duplicate-jsx-props
2871
+ * Disallow duplicate props in JSX elements.
2872
+ * @see https://eslint-react.xyz/docs/rules/jsx-no-duplicate-props
2868
2873
  */
2869
2874
  'react/no-duplicate-jsx-props'?: Linter.RuleEntry<[]>
2870
2875
  /**
2871
- * disallow duplicate keys when rendering list
2876
+ * Disallow duplicate `key` on elements in the same array or a list of `children`.
2872
2877
  * @see https://eslint-react.xyz/docs/rules/no-duplicate-key
2873
2878
  */
2874
2879
  'react/no-duplicate-key'?: Linter.RuleEntry<[]>
2875
2880
  /**
2876
- * replace usages of 'forwardRef' with passing 'ref' as a prop
2881
+ * Replaces usages of `forwardRef` with passing `ref` as a prop.
2877
2882
  * @see https://eslint-react.xyz/docs/rules/no-forward-ref
2878
2883
  */
2879
2884
  'react/no-forward-ref'?: Linter.RuleEntry<[]>
2880
2885
  /**
2881
- * disallow implicit 'key' props
2886
+ * Prevents `key` from not being explicitly specified (e.g. spreading `key` from objects).
2882
2887
  * @see https://eslint-react.xyz/docs/rules/no-implicit-key
2883
2888
  */
2884
2889
  'react/no-implicit-key'?: Linter.RuleEntry<[]>
2885
2890
  /**
2886
- * disallow problematic leaked values from being rendered
2891
+ * Prevents problematic leaked values from being rendered.
2887
2892
  * @see https://eslint-react.xyz/docs/rules/no-leaked-conditional-rendering
2888
2893
  */
2889
2894
  'react/no-leaked-conditional-rendering'?: Linter.RuleEntry<[]>
2890
2895
  /**
2891
- * require 'displayName' for 'memo' and 'forwardRef' components
2896
+ * Enforces that all components have a `displayName` which can be used in devtools.
2892
2897
  * @see https://eslint-react.xyz/docs/rules/no-missing-component-display-name
2893
2898
  */
2894
2899
  'react/no-missing-component-display-name'?: Linter.RuleEntry<[]>
2895
2900
  /**
2896
- * require 'displayName' for contexts.
2901
+ * Enforces that all contexts have a `displayName` which can be used in devtools.
2897
2902
  * @see https://eslint-react.xyz/docs/rules/no-missing-context-display-name
2898
2903
  */
2899
2904
  'react/no-missing-context-display-name'?: Linter.RuleEntry<[]>
2900
2905
  /**
2901
- * require 'key' when rendering list
2906
+ * Disallow missing `key` on items in list rendering.
2902
2907
  * @see https://eslint-react.xyz/docs/rules/no-missing-key
2903
2908
  */
2904
2909
  'react/no-missing-key'?: Linter.RuleEntry<[]>
2905
2910
  /**
2906
- * prevents nesting component definitions inside other components
2911
+ * Disallow nesting component definitions inside other components.
2907
2912
  * @see https://eslint-react.xyz/docs/rules/no-nested-component-definitions
2908
2913
  */
2909
2914
  'react/no-nested-component-definitions'?: Linter.RuleEntry<[]>
2910
2915
  /**
2911
- * prevents nesting component definitions inside other components
2916
+ * Disallow nesting component definitions inside other components.
2912
2917
  * @see https://eslint-react.xyz/docs/rules/no-nested-component-definitions
2913
2918
  */
2914
2919
  'react/no-nested-components'?: Linter.RuleEntry<[]>
2915
2920
  /**
2916
- * disallow using 'propTypes' property in components
2921
+ * Disallow `propTypes` in favor of TypeScript or another type-checking solution.
2917
2922
  * @see https://eslint-react.xyz/docs/rules/no-prop-types
2918
2923
  */
2919
2924
  'react/no-prop-types'?: Linter.RuleEntry<[]>
2920
2925
  /**
2921
- * disallow using 'shouldComponentUpdate' in class component extends 'React.PureComponent'
2926
+ * Disallow `shouldComponentUpdate` when extending `React.PureComponent`.
2922
2927
  * @see https://eslint-react.xyz/docs/rules/no-redundant-should-component-update
2923
2928
  */
2924
2929
  'react/no-redundant-should-component-update'?: Linter.RuleEntry<[]>
2925
2930
  /**
2926
- * disallow using 'setState' in 'componentDidMount'
2931
+ * Disallow calling `this.setState` in `componentDidMount` outside of functions, such as callbacks.
2927
2932
  * @see https://eslint-react.xyz/docs/rules/no-set-state-in-component-did-mount
2928
2933
  */
2929
2934
  'react/no-set-state-in-component-did-mount'?: Linter.RuleEntry<[]>
2930
2935
  /**
2931
- * disallow using 'setState' in 'componentDidUpdate'
2936
+ * Disallows calling `this.setState` in `componentDidUpdate` outside of functions, such as callbacks.
2932
2937
  * @see https://eslint-react.xyz/docs/rules/no-set-state-in-component-did-update
2933
2938
  */
2934
2939
  'react/no-set-state-in-component-did-update'?: Linter.RuleEntry<[]>
2935
2940
  /**
2936
- * disallow using 'setState' in 'componentWillUpdate'
2941
+ * Disallows calling `this.setState` in `componentWillUpdate` outside of functions, such as callbacks.
2937
2942
  * @see https://eslint-react.xyz/docs/rules/no-set-state-in-component-will-update
2938
2943
  */
2939
2944
  'react/no-set-state-in-component-will-update'?: Linter.RuleEntry<[]>
2940
2945
  /**
2941
- * disallow using deprecated string refs
2946
+ * Disallow deprecated string `refs`.
2942
2947
  * @see https://eslint-react.xyz/docs/rules/no-string-refs
2943
2948
  */
2944
2949
  'react/no-string-refs'?: Linter.RuleEntry<[]>
2945
2950
  /**
2946
- * disallow using 'UNSAFE_componentWillMount'
2951
+ * Warns the usage of `UNSAFE_componentWillMount` in class components.
2947
2952
  * @see https://eslint-react.xyz/docs/rules/no-unsafe-component-will-mount
2948
2953
  */
2949
2954
  'react/no-unsafe-component-will-mount'?: Linter.RuleEntry<[]>
2950
2955
  /**
2951
- * disallow using 'UNSAFE_componentWillReceiveProps'
2956
+ * Warns the usage of `UNSAFE_componentWillReceiveProps` in class components.
2952
2957
  * @see https://eslint-react.xyz/docs/rules/no-unsafe-component-will-receive-props
2953
2958
  */
2954
2959
  'react/no-unsafe-component-will-receive-props'?: Linter.RuleEntry<[]>
2955
2960
  /**
2956
- * disallow using 'UNSAFE_componentWillUpdate'
2961
+ * Warns the usage of `UNSAFE_componentWillUpdate` in class components.
2957
2962
  * @see https://eslint-react.xyz/docs/rules/no-unsafe-component-will-update
2958
2963
  */
2959
2964
  'react/no-unsafe-component-will-update'?: Linter.RuleEntry<[]>
2960
2965
  /**
2961
- * disallow passing constructed values to context providers
2966
+ * Prevents non-stable values (i.e. object literals) from being used as a value for `Context.Provider`.
2962
2967
  * @see https://eslint-react.xyz/docs/rules/no-unstable-context-value
2963
2968
  */
2964
2969
  'react/no-unstable-context-value'?: Linter.RuleEntry<[]>
2965
2970
  /**
2966
- * disallow using unstable value as default param in function component
2971
+ * Prevents using referential-type values as default props in object destructuring.
2967
2972
  * @see https://eslint-react.xyz/docs/rules/no-unstable-default-props
2968
2973
  */
2969
2974
  'react/no-unstable-default-props'?: Linter.RuleEntry<[]>
2970
2975
  /**
2971
- * disallow unused class component members
2976
+ * Warns unused class component methods and properties.
2972
2977
  * @see https://eslint-react.xyz/docs/rules/no-unused-class-component-members
2973
2978
  */
2974
2979
  'react/no-unused-class-component-members'?: Linter.RuleEntry<[]>
2975
2980
  /**
2976
- * disallow unused state of class component
2981
+ * Warns unused class component state.
2977
2982
  * @see https://eslint-react.xyz/docs/rules/no-unused-state
2978
2983
  */
2979
2984
  'react/no-unused-state'?: Linter.RuleEntry<[]>
2980
2985
  /**
2981
- * replace usages of 'useContext' with 'use'
2986
+ * Replaces usages of `useContext` with `use`.
2982
2987
  * @see https://eslint-react.xyz/docs/rules/no-use-context
2983
2988
  */
2984
2989
  'react/no-use-context'?: Linter.RuleEntry<[]>
2985
2990
  /**
2986
- * require a 'ref' parameter to be set when using 'forwardRef'
2991
+ * Disallow useless `forwardRef` calls on components that don't use `ref`s.
2987
2992
  * @see https://eslint-react.xyz/docs/rules/no-useless-forward-ref
2988
2993
  */
2989
2994
  'react/no-useless-forward-ref'?: Linter.RuleEntry<[]>
2990
2995
  /**
2991
- * disallow useless fragments
2996
+ * Disallow useless fragment elements.
2992
2997
  * @see https://eslint-react.xyz/docs/rules/no-useless-fragment
2993
2998
  */
2994
2999
  'react/no-useless-fragment'?: Linter.RuleEntry<ReactNoUselessFragment>
2995
3000
  /**
2996
- * enforce using destructuring assignment in component props and context
3001
+ * Enforces destructuring assignment for component props and context.
2997
3002
  * @see https://eslint-react.xyz/docs/rules/prefer-destructuring-assignment
2998
3003
  */
2999
3004
  'react/prefer-destructuring-assignment'?: Linter.RuleEntry<[]>
3000
3005
  /**
3001
- * enforce React is imported via a namespace import
3006
+ * Enforces React is imported via a namespace import.
3002
3007
  * @see https://eslint-react.xyz/docs/rules/prefer-react-namespace-import
3003
3008
  */
3004
3009
  'react/prefer-react-namespace-import'?: Linter.RuleEntry<[]>
3005
3010
  /**
3006
- * enforce read-only props in components
3011
+ * Enforces read-only props in components.
3007
3012
  * @see https://eslint-react.xyz/docs/rules/prefer-read-only-props
3008
3013
  */
3009
3014
  'react/prefer-read-only-props'?: Linter.RuleEntry<[]>
3010
3015
  /**
3011
- * enforce the use of shorthand syntax for boolean attributes
3016
+ * Enforces shorthand syntax for boolean attributes.
3012
3017
  * @see https://eslint-react.xyz/docs/rules/prefer-shorthand-boolean
3013
3018
  */
3014
3019
  'react/prefer-shorthand-boolean'?: Linter.RuleEntry<[]>
3015
3020
  /**
3016
- * enforce the use of shorthand syntax for fragments
3021
+ * Enforces shorthand syntax for fragments.
3017
3022
  * @see https://eslint-react.xyz/docs/rules/prefer-shorthand-fragment
3018
3023
  */
3019
3024
  'react/prefer-shorthand-fragment'?: Linter.RuleEntry<[]>
3020
3025
  /**
3021
- * marks variables used in JSX as used
3022
- * @see https://eslint-react.xyz/docs/rules/use-jsx-vars
3026
+ * Marks variables used in JSX elements as used.
3027
+ * @see https://eslint-react.xyz/docs/rules/jsx-uses-vars
3023
3028
  */
3024
3029
  'react/use-jsx-vars'?: Linter.RuleEntry<[]>
3025
3030
  /**
@@ -4952,642 +4957,643 @@ interface RuleOptions {
4952
4957
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>
4953
4958
  /**
4954
4959
  * Improve regexes by making them shorter, consistent, and safer.
4955
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/better-regex.md
4960
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/better-regex.md
4956
4961
  */
4957
4962
  'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>
4958
4963
  /**
4959
4964
  * Enforce a specific parameter name in catch clauses.
4960
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/catch-error-name.md
4965
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/catch-error-name.md
4961
4966
  */
4962
4967
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>
4963
4968
  /**
4964
4969
  * Enforce consistent assertion style with `node:assert`.
4965
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-assert.md
4970
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/consistent-assert.md
4966
4971
  */
4967
4972
  'unicorn/consistent-assert'?: Linter.RuleEntry<[]>
4968
4973
  /**
4969
4974
  * Prefer passing `Date` directly to the constructor when cloning.
4970
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-date-clone.md
4975
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/consistent-date-clone.md
4971
4976
  */
4972
4977
  'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>
4973
4978
  /**
4974
4979
  * Use destructured variables over properties.
4975
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-destructuring.md
4980
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/consistent-destructuring.md
4976
4981
  */
4977
4982
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>
4978
4983
  /**
4979
4984
  * Prefer consistent types when spreading a ternary in an array literal.
4980
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-empty-array-spread.md
4985
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/consistent-empty-array-spread.md
4981
4986
  */
4982
4987
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>
4983
4988
  /**
4984
4989
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
4985
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-existence-index-check.md
4990
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/consistent-existence-index-check.md
4986
4991
  */
4987
4992
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>
4988
4993
  /**
4989
4994
  * Move function definitions to the highest possible scope.
4990
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-function-scoping.md
4995
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/consistent-function-scoping.md
4991
4996
  */
4992
4997
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>
4993
4998
  /**
4994
4999
  * Enforce correct `Error` subclassing.
4995
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/custom-error-definition.md
5000
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/custom-error-definition.md
4996
5001
  */
4997
5002
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>
4998
5003
  /**
4999
5004
  * Enforce no spaces between braces.
5000
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/empty-brace-spaces.md
5005
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/empty-brace-spaces.md
5001
5006
  */
5002
5007
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>
5003
5008
  /**
5004
5009
  * Enforce passing a `message` value when creating a built-in error.
5005
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/error-message.md
5010
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/error-message.md
5006
5011
  */
5007
5012
  'unicorn/error-message'?: Linter.RuleEntry<[]>
5008
5013
  /**
5009
- * Require escape sequences to use uppercase values.
5010
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/escape-case.md
5014
+ * Require escape sequences to use uppercase or lowercase values.
5015
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/escape-case.md
5011
5016
  */
5012
- 'unicorn/escape-case'?: Linter.RuleEntry<[]>
5017
+ 'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>
5013
5018
  /**
5014
5019
  * Add expiration conditions to TODO comments.
5015
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/expiring-todo-comments.md
5020
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/expiring-todo-comments.md
5016
5021
  */
5017
5022
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>
5018
5023
  /**
5019
5024
  * Enforce explicitly comparing the `length` or `size` property of a value.
5020
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/explicit-length-check.md
5025
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/explicit-length-check.md
5021
5026
  */
5022
5027
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>
5023
5028
  /**
5024
5029
  * Enforce a case style for filenames.
5025
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/filename-case.md
5030
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/filename-case.md
5026
5031
  */
5027
5032
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>
5028
5033
  /**
5029
5034
  * Enforce specific import styles per module.
5030
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/import-style.md
5035
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/import-style.md
5031
5036
  */
5032
5037
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>
5033
5038
  /**
5034
5039
  * Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
5035
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/new-for-builtins.md
5040
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/new-for-builtins.md
5036
5041
  */
5037
5042
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>
5038
5043
  /**
5039
5044
  * Enforce specifying rules to disable in `eslint-disable` comments.
5040
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-abusive-eslint-disable.md
5045
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-abusive-eslint-disable.md
5041
5046
  */
5042
5047
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>
5043
5048
  /**
5044
5049
  * Disallow recursive access to `this` within getters and setters.
5045
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-accessor-recursion.md
5050
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-accessor-recursion.md
5046
5051
  */
5047
5052
  'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>
5048
5053
  /**
5049
5054
  * Disallow anonymous functions and classes as the default export.
5050
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-anonymous-default-export.md
5055
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-anonymous-default-export.md
5051
5056
  */
5052
5057
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>
5053
5058
  /**
5054
5059
  * Prevent passing a function reference directly to iterator methods.
5055
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-callback-reference.md
5060
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-array-callback-reference.md
5056
5061
  */
5057
5062
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>
5058
5063
  /**
5059
5064
  * Prefer `for…of` over the `forEach` method.
5060
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-for-each.md
5065
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-array-for-each.md
5061
5066
  */
5062
5067
  'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>
5063
5068
  /**
5064
5069
  * Disallow using the `this` argument in array methods.
5065
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-method-this-argument.md
5070
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-array-method-this-argument.md
5066
5071
  */
5067
5072
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>
5068
5073
  /**
5069
5074
  * Enforce combining multiple `Array#push()` into one call.
5070
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-push-push.md
5075
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-array-push-push.md
5071
5076
  */
5072
5077
  'unicorn/no-array-push-push'?: Linter.RuleEntry<UnicornNoArrayPushPush>
5073
5078
  /**
5074
5079
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
5075
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-reduce.md
5080
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-array-reduce.md
5076
5081
  */
5077
5082
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>
5078
5083
  /**
5079
5084
  * Disallow member access from await expression.
5080
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-await-expression-member.md
5085
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-await-expression-member.md
5081
5086
  */
5082
5087
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>
5083
5088
  /**
5084
5089
  * Disallow using `await` in `Promise` method parameters.
5085
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-await-in-promise-methods.md
5090
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-await-in-promise-methods.md
5086
5091
  */
5087
5092
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>
5088
5093
  /**
5089
5094
  * Do not use leading/trailing space between `console.log` parameters.
5090
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-console-spaces.md
5095
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-console-spaces.md
5091
5096
  */
5092
5097
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>
5093
5098
  /**
5094
5099
  * Do not use `document.cookie` directly.
5095
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-document-cookie.md
5100
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-document-cookie.md
5096
5101
  */
5097
5102
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>
5098
5103
  /**
5099
5104
  * Disallow empty files.
5100
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-empty-file.md
5105
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-empty-file.md
5101
5106
  */
5102
5107
  'unicorn/no-empty-file'?: Linter.RuleEntry<[]>
5103
5108
  /**
5104
5109
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
5105
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-for-loop.md
5110
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-for-loop.md
5106
5111
  */
5107
5112
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>
5108
5113
  /**
5109
5114
  * Enforce the use of Unicode escapes instead of hexadecimal escapes.
5110
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-hex-escape.md
5115
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-hex-escape.md
5111
5116
  */
5112
5117
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>
5113
5118
  /**
5114
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/deprecated-rules.md#no-instanceof-array
5119
+ * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
5120
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/deprecated-rules.md#no-instanceof-array
5115
5121
  * @deprecated
5116
5122
  */
5117
5123
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>
5118
5124
  /**
5119
5125
  * Disallow `instanceof` with built-in objects
5120
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-instanceof-builtins.md
5126
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-instanceof-builtins.md
5121
5127
  */
5122
5128
  'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>
5123
5129
  /**
5124
5130
  * Disallow invalid options in `fetch()` and `new Request()`.
5125
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-invalid-fetch-options.md
5131
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-invalid-fetch-options.md
5126
5132
  */
5127
5133
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>
5128
5134
  /**
5129
5135
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
5130
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-invalid-remove-event-listener.md
5136
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-invalid-remove-event-listener.md
5131
5137
  */
5132
5138
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>
5133
5139
  /**
5134
5140
  * Disallow identifiers starting with `new` or `class`.
5135
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-keyword-prefix.md
5141
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-keyword-prefix.md
5136
5142
  */
5137
5143
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>
5138
5144
  /**
5139
5145
  * Disallow using `.length` as the `end` argument of `{Array,String,TypedArray}#slice()`.
5140
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-length-as-slice-end.md
5146
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-length-as-slice-end.md
5141
5147
  */
5142
5148
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>
5143
5149
  /**
5144
5150
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
5145
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-lonely-if.md
5151
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-lonely-if.md
5146
5152
  */
5147
5153
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>
5148
5154
  /**
5149
5155
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
5150
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-magic-array-flat-depth.md
5156
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-magic-array-flat-depth.md
5151
5157
  */
5152
5158
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>
5153
5159
  /**
5154
5160
  * Disallow named usage of default import and export.
5155
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-named-default.md
5161
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-named-default.md
5156
5162
  */
5157
5163
  'unicorn/no-named-default'?: Linter.RuleEntry<[]>
5158
5164
  /**
5159
5165
  * Disallow negated conditions.
5160
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-negated-condition.md
5166
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-negated-condition.md
5161
5167
  */
5162
5168
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>
5163
5169
  /**
5164
5170
  * Disallow negated expression in equality check.
5165
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-negation-in-equality-check.md
5171
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-negation-in-equality-check.md
5166
5172
  */
5167
5173
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>
5168
5174
  /**
5169
5175
  * Disallow nested ternary expressions.
5170
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-nested-ternary.md
5176
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-nested-ternary.md
5171
5177
  */
5172
5178
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>
5173
5179
  /**
5174
5180
  * Disallow `new Array()`.
5175
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-new-array.md
5181
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-new-array.md
5176
5182
  */
5177
5183
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>
5178
5184
  /**
5179
5185
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
5180
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-new-buffer.md
5186
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-new-buffer.md
5181
5187
  */
5182
5188
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>
5183
5189
  /**
5184
5190
  * Disallow the use of the `null` literal.
5185
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-null.md
5191
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-null.md
5186
5192
  */
5187
5193
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>
5188
5194
  /**
5189
5195
  * Disallow the use of objects as default parameters.
5190
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-object-as-default-parameter.md
5196
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-object-as-default-parameter.md
5191
5197
  */
5192
5198
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>
5193
5199
  /**
5194
5200
  * Disallow `process.exit()`.
5195
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-process-exit.md
5201
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-process-exit.md
5196
5202
  */
5197
5203
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>
5198
5204
  /**
5199
5205
  * Disallow passing single-element arrays to `Promise` methods.
5200
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-single-promise-in-promise-methods.md
5206
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-single-promise-in-promise-methods.md
5201
5207
  */
5202
5208
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>
5203
5209
  /**
5204
5210
  * Disallow classes that only have static members.
5205
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-static-only-class.md
5211
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-static-only-class.md
5206
5212
  */
5207
5213
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>
5208
5214
  /**
5209
5215
  * Disallow `then` property.
5210
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-thenable.md
5216
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-thenable.md
5211
5217
  */
5212
5218
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>
5213
5219
  /**
5214
5220
  * Disallow assigning `this` to a variable.
5215
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-this-assignment.md
5221
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-this-assignment.md
5216
5222
  */
5217
5223
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>
5218
5224
  /**
5219
5225
  * Disallow comparing `undefined` using `typeof`.
5220
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-typeof-undefined.md
5226
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-typeof-undefined.md
5221
5227
  */
5222
5228
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>
5223
5229
  /**
5224
5230
  * Disallow awaiting non-promise values.
5225
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unnecessary-await.md
5231
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-unnecessary-await.md
5226
5232
  */
5227
5233
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>
5228
5234
  /**
5229
5235
  * Enforce the use of built-in methods instead of unnecessary polyfills.
5230
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unnecessary-polyfills.md
5236
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-unnecessary-polyfills.md
5231
5237
  */
5232
5238
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>
5233
5239
  /**
5234
5240
  * Disallow unreadable array destructuring.
5235
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unreadable-array-destructuring.md
5241
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-unreadable-array-destructuring.md
5236
5242
  */
5237
5243
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>
5238
5244
  /**
5239
5245
  * Disallow unreadable IIFEs.
5240
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unreadable-iife.md
5246
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-unreadable-iife.md
5241
5247
  */
5242
5248
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>
5243
5249
  /**
5244
5250
  * Disallow unused object properties.
5245
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unused-properties.md
5251
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-unused-properties.md
5246
5252
  */
5247
5253
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>
5248
5254
  /**
5249
5255
  * Disallow useless fallback when spreading in object literals.
5250
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-fallback-in-spread.md
5256
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-useless-fallback-in-spread.md
5251
5257
  */
5252
5258
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>
5253
5259
  /**
5254
5260
  * Disallow useless array length check.
5255
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-length-check.md
5261
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-useless-length-check.md
5256
5262
  */
5257
5263
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>
5258
5264
  /**
5259
5265
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
5260
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-promise-resolve-reject.md
5266
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-useless-promise-resolve-reject.md
5261
5267
  */
5262
5268
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>
5263
5269
  /**
5264
5270
  * Disallow unnecessary spread.
5265
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-spread.md
5271
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-useless-spread.md
5266
5272
  */
5267
5273
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>
5268
5274
  /**
5269
5275
  * Disallow useless case in switch statements.
5270
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-switch-case.md
5276
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-useless-switch-case.md
5271
5277
  */
5272
5278
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>
5273
5279
  /**
5274
5280
  * Disallow useless `undefined`.
5275
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-undefined.md
5281
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-useless-undefined.md
5276
5282
  */
5277
5283
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>
5278
5284
  /**
5279
5285
  * Disallow number literals with zero fractions or dangling dots.
5280
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-zero-fractions.md
5286
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-zero-fractions.md
5281
5287
  */
5282
5288
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>
5283
5289
  /**
5284
5290
  * Enforce proper case for numeric literals.
5285
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/number-literal-case.md
5291
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/number-literal-case.md
5286
5292
  */
5287
- 'unicorn/number-literal-case'?: Linter.RuleEntry<[]>
5293
+ 'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>
5288
5294
  /**
5289
5295
  * Enforce the style of numeric separators by correctly grouping digits.
5290
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/numeric-separators-style.md
5296
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/numeric-separators-style.md
5291
5297
  */
5292
5298
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>
5293
5299
  /**
5294
5300
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
5295
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-add-event-listener.md
5301
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-add-event-listener.md
5296
5302
  */
5297
5303
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>
5298
5304
  /**
5299
5305
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
5300
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-find.md
5306
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-array-find.md
5301
5307
  */
5302
5308
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>
5303
5309
  /**
5304
5310
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
5305
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-flat.md
5311
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-array-flat.md
5306
5312
  */
5307
5313
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>
5308
5314
  /**
5309
5315
  * Prefer `.flatMap(…)` over `.map(…).flat()`.
5310
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-flat-map.md
5316
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-array-flat-map.md
5311
5317
  */
5312
5318
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>
5313
5319
  /**
5314
5320
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
5315
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-index-of.md
5321
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-array-index-of.md
5316
5322
  */
5317
5323
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>
5318
5324
  /**
5319
5325
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
5320
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-some.md
5326
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-array-some.md
5321
5327
  */
5322
5328
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>
5323
5329
  /**
5324
5330
  * Prefer `.at()` method for index access and `String#charAt()`.
5325
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-at.md
5331
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-at.md
5326
5332
  */
5327
5333
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>
5328
5334
  /**
5329
5335
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
5330
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-blob-reading-methods.md
5336
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-blob-reading-methods.md
5331
5337
  */
5332
5338
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>
5333
5339
  /**
5334
5340
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
5335
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-code-point.md
5341
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-code-point.md
5336
5342
  */
5337
5343
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>
5338
5344
  /**
5339
5345
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
5340
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-date-now.md
5346
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-date-now.md
5341
5347
  */
5342
5348
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>
5343
5349
  /**
5344
5350
  * Prefer default parameters over reassignment.
5345
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-default-parameters.md
5351
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-default-parameters.md
5346
5352
  */
5347
5353
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>
5348
5354
  /**
5349
5355
  * Prefer `Node#append()` over `Node#appendChild()`.
5350
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-append.md
5356
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-dom-node-append.md
5351
5357
  */
5352
5358
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>
5353
5359
  /**
5354
5360
  * Prefer using `.dataset` on DOM elements over calling attribute methods.
5355
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-dataset.md
5361
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-dom-node-dataset.md
5356
5362
  */
5357
5363
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>
5358
5364
  /**
5359
5365
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
5360
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-remove.md
5366
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-dom-node-remove.md
5361
5367
  */
5362
5368
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>
5363
5369
  /**
5364
5370
  * Prefer `.textContent` over `.innerText`.
5365
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-text-content.md
5371
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-dom-node-text-content.md
5366
5372
  */
5367
5373
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>
5368
5374
  /**
5369
5375
  * Prefer `EventTarget` over `EventEmitter`.
5370
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-event-target.md
5376
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-event-target.md
5371
5377
  */
5372
5378
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>
5373
5379
  /**
5374
5380
  * Prefer `export…from` when re-exporting.
5375
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-export-from.md
5381
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-export-from.md
5376
5382
  */
5377
5383
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>
5378
5384
  /**
5379
5385
  * Prefer `globalThis` over `window`, `self`, and `global`.
5380
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-global-this.md
5386
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-global-this.md
5381
5387
  */
5382
5388
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>
5383
5389
  /**
5384
5390
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
5385
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-includes.md
5391
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-includes.md
5386
5392
  */
5387
5393
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>
5388
5394
  /**
5389
5395
  * Prefer reading a JSON file as a buffer.
5390
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-json-parse-buffer.md
5396
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-json-parse-buffer.md
5391
5397
  */
5392
5398
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>
5393
5399
  /**
5394
5400
  * Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
5395
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-keyboard-event-key.md
5401
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-keyboard-event-key.md
5396
5402
  */
5397
5403
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>
5398
5404
  /**
5399
5405
  * Prefer using a logical operator over a ternary.
5400
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-logical-operator-over-ternary.md
5406
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-logical-operator-over-ternary.md
5401
5407
  */
5402
5408
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>
5403
5409
  /**
5404
5410
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
5405
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-math-min-max.md
5411
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-math-min-max.md
5406
5412
  */
5407
5413
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>
5408
5414
  /**
5409
5415
  * Enforce the use of `Math.trunc` instead of bitwise operators.
5410
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-math-trunc.md
5416
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-math-trunc.md
5411
5417
  */
5412
5418
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>
5413
5419
  /**
5414
5420
  * Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
5415
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-modern-dom-apis.md
5421
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-modern-dom-apis.md
5416
5422
  */
5417
5423
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>
5418
5424
  /**
5419
5425
  * Prefer modern `Math` APIs over legacy patterns.
5420
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-modern-math-apis.md
5426
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-modern-math-apis.md
5421
5427
  */
5422
5428
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>
5423
5429
  /**
5424
5430
  * Prefer JavaScript modules (ESM) over CommonJS.
5425
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-module.md
5431
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-module.md
5426
5432
  */
5427
5433
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>
5428
5434
  /**
5429
5435
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
5430
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-native-coercion-functions.md
5436
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-native-coercion-functions.md
5431
5437
  */
5432
5438
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>
5433
5439
  /**
5434
5440
  * Prefer negative index over `.length - index` when possible.
5435
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-negative-index.md
5441
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-negative-index.md
5436
5442
  */
5437
5443
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>
5438
5444
  /**
5439
5445
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
5440
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-node-protocol.md
5446
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-node-protocol.md
5441
5447
  */
5442
5448
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>
5443
5449
  /**
5444
5450
  * Prefer `Number` static properties over global ones.
5445
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-number-properties.md
5451
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-number-properties.md
5446
5452
  */
5447
5453
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>
5448
5454
  /**
5449
5455
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
5450
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-object-from-entries.md
5456
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-object-from-entries.md
5451
5457
  */
5452
5458
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>
5453
5459
  /**
5454
5460
  * Prefer omitting the `catch` binding parameter.
5455
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-optional-catch-binding.md
5461
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-optional-catch-binding.md
5456
5462
  */
5457
5463
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>
5458
5464
  /**
5459
5465
  * Prefer borrowing methods from the prototype instead of the instance.
5460
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-prototype-methods.md
5466
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-prototype-methods.md
5461
5467
  */
5462
5468
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>
5463
5469
  /**
5464
5470
  * Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
5465
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-query-selector.md
5471
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-query-selector.md
5466
5472
  */
5467
5473
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>
5468
5474
  /**
5469
5475
  * Prefer `Reflect.apply()` over `Function#apply()`.
5470
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-reflect-apply.md
5476
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-reflect-apply.md
5471
5477
  */
5472
5478
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>
5473
5479
  /**
5474
5480
  * Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
5475
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-regexp-test.md
5481
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-regexp-test.md
5476
5482
  */
5477
5483
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>
5478
5484
  /**
5479
5485
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
5480
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-set-has.md
5486
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-set-has.md
5481
5487
  */
5482
5488
  'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>
5483
5489
  /**
5484
5490
  * Prefer using `Set#size` instead of `Array#length`.
5485
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-set-size.md
5491
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-set-size.md
5486
5492
  */
5487
5493
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>
5488
5494
  /**
5489
5495
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
5490
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-spread.md
5496
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-spread.md
5491
5497
  */
5492
5498
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>
5493
5499
  /**
5494
5500
  * Prefer using the `String.raw` tag to avoid escaping `\`.
5495
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-raw.md
5501
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-string-raw.md
5496
5502
  */
5497
5503
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>
5498
5504
  /**
5499
5505
  * Prefer `String#replaceAll()` over regex searches with the global flag.
5500
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-replace-all.md
5506
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-string-replace-all.md
5501
5507
  */
5502
5508
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>
5503
5509
  /**
5504
5510
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
5505
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-slice.md
5511
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-string-slice.md
5506
5512
  */
5507
5513
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>
5508
5514
  /**
5509
5515
  * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
5510
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-starts-ends-with.md
5516
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-string-starts-ends-with.md
5511
5517
  */
5512
5518
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>
5513
5519
  /**
5514
5520
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
5515
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-trim-start-end.md
5521
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-string-trim-start-end.md
5516
5522
  */
5517
5523
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>
5518
5524
  /**
5519
5525
  * Prefer using `structuredClone` to create a deep clone.
5520
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-structured-clone.md
5526
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-structured-clone.md
5521
5527
  */
5522
5528
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>
5523
5529
  /**
5524
5530
  * Prefer `switch` over multiple `else-if`.
5525
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-switch.md
5531
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-switch.md
5526
5532
  */
5527
5533
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>
5528
5534
  /**
5529
5535
  * Prefer ternary expressions over simple `if-else` statements.
5530
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-ternary.md
5536
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-ternary.md
5531
5537
  */
5532
5538
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>
5533
5539
  /**
5534
5540
  * Prefer top-level await over top-level promises and async function calls.
5535
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-top-level-await.md
5541
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-top-level-await.md
5536
5542
  */
5537
5543
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>
5538
5544
  /**
5539
5545
  * Enforce throwing `TypeError` in type checking conditions.
5540
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-type-error.md
5546
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-type-error.md
5541
5547
  */
5542
5548
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>
5543
5549
  /**
5544
5550
  * Prevent abbreviations.
5545
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prevent-abbreviations.md
5551
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prevent-abbreviations.md
5546
5552
  */
5547
5553
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>
5548
5554
  /**
5549
5555
  * Enforce consistent relative URL style.
5550
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/relative-url-style.md
5556
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/relative-url-style.md
5551
5557
  */
5552
5558
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>
5553
5559
  /**
5554
5560
  * Enforce using the separator argument with `Array#join()`.
5555
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/require-array-join-separator.md
5561
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/require-array-join-separator.md
5556
5562
  */
5557
5563
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>
5558
5564
  /**
5559
5565
  * Enforce using the digits argument with `Number#toFixed()`.
5560
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/require-number-to-fixed-digits-argument.md
5566
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/require-number-to-fixed-digits-argument.md
5561
5567
  */
5562
5568
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>
5563
5569
  /**
5564
5570
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
5565
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/require-post-message-target-origin.md
5571
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/require-post-message-target-origin.md
5566
5572
  */
5567
5573
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>
5568
5574
  /**
5569
5575
  * Enforce better string content.
5570
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/string-content.md
5576
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/string-content.md
5571
5577
  */
5572
5578
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>
5573
5579
  /**
5574
5580
  * Enforce consistent brace style for `case` clauses.
5575
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/switch-case-braces.md
5581
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/switch-case-braces.md
5576
5582
  */
5577
5583
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>
5578
5584
  /**
5579
5585
  * Fix whitespace-insensitive template indentation.
5580
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/template-indent.md
5586
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/template-indent.md
5581
5587
  */
5582
5588
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>
5583
5589
  /**
5584
5590
  * Enforce consistent case for text encoding identifiers.
5585
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/text-encoding-identifier-case.md
5591
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/text-encoding-identifier-case.md
5586
5592
  */
5587
5593
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<[]>
5588
5594
  /**
5589
5595
  * Require `new` when creating an error.
5590
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/throw-new-error.md
5596
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/throw-new-error.md
5591
5597
  */
5592
5598
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>
5593
5599
  /**
@@ -7369,6 +7375,17 @@ type ImportOrder = []|[{
7369
7375
  position?: ("after" | "before")
7370
7376
  }[]
7371
7377
  "newlines-between"?: ("ignore" | "always" | "always-and-inside-groups" | "never")
7378
+ "newlines-between-types"?: ("ignore" | "always" | "always-and-inside-groups" | "never")
7379
+ consolidateIslands?: ("inside-groups" | "never")
7380
+ sortTypesGroup?: boolean
7381
+ named?: (boolean | {
7382
+ enabled?: boolean
7383
+ import?: boolean
7384
+ export?: boolean
7385
+ require?: boolean
7386
+ cjsExports?: boolean
7387
+ types?: ("mixed" | "types-first" | "types-last")
7388
+ })
7372
7389
  alphabetize?: {
7373
7390
  caseInsensitive?: boolean
7374
7391
  order?: ("ignore" | "asc" | "desc")
@@ -13185,6 +13202,8 @@ type UnicornCatchErrorName = []|[{
13185
13202
  type UnicornConsistentFunctionScoping = []|[{
13186
13203
  checkArrowFunctions?: boolean
13187
13204
  }]
13205
+ // ----- unicorn/escape-case -----
13206
+ type UnicornEscapeCase = []|[("uppercase" | "lowercase")]
13188
13207
  // ----- unicorn/expiring-todo-comments -----
13189
13208
  type UnicornExpiringTodoComments = []|[{
13190
13209
  terms?: string[]
@@ -13269,6 +13288,10 @@ type UnicornNoUselessUndefined = []|[{
13269
13288
  checkArguments?: boolean
13270
13289
  checkArrowFunctionBody?: boolean
13271
13290
  }]
13291
+ // ----- unicorn/number-literal-case -----
13292
+ type UnicornNumberLiteralCase = []|[{
13293
+ hexadecimalValue?: ("uppercase" | "lowercase")
13294
+ }]
13272
13295
  // ----- unicorn/numeric-separators-style -----
13273
13296
  type UnicornNumericSeparatorsStyle = []|[{
13274
13297
  binary?: {