@2digits/eslint-config 5.12.2 → 5.12.4

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.mts CHANGED
@@ -6084,16 +6084,19 @@ Backward pagination arguments
6084
6084
  /**
6085
6085
  * Enforce linebreaks after opening and before closing array brackets
6086
6086
  * @see https://eslint.style/rules/array-bracket-newline
6087
+ * @deprecated
6087
6088
  */
6088
6089
  'stylistic/array-bracket-newline'?: Linter.RuleEntry<StylisticArrayBracketNewline>;
6089
6090
  /**
6090
6091
  * Enforce consistent spacing inside array brackets
6091
6092
  * @see https://eslint.style/rules/array-bracket-spacing
6093
+ * @deprecated
6092
6094
  */
6093
6095
  'stylistic/array-bracket-spacing'?: Linter.RuleEntry<StylisticArrayBracketSpacing>;
6094
6096
  /**
6095
6097
  * Enforce line breaks after each array element
6096
6098
  * @see https://eslint.style/rules/array-element-newline
6099
+ * @deprecated
6097
6100
  */
6098
6101
  'stylistic/array-element-newline'?: Linter.RuleEntry<StylisticArrayElementNewline>;
6099
6102
  /**
@@ -6156,14 +6159,10 @@ Backward pagination arguments
6156
6159
  * @see https://eslint.style/rules/jsx-props-style
6157
6160
  */
6158
6161
  'stylistic/exp-jsx-props-style'?: Linter.RuleEntry<StylisticExpJsxPropsStyle>;
6159
- /**
6160
- * Enforce consistent spacing and line break styles inside brackets.
6161
- * @see https://eslint.style/rules/list-style
6162
- */
6163
- 'stylistic/exp-list-style'?: Linter.RuleEntry<StylisticExpListStyle>;
6164
6162
  /**
6165
6163
  * Enforce line breaks between arguments of a function call
6166
6164
  * @see https://eslint.style/rules/function-call-argument-newline
6165
+ * @deprecated
6167
6166
  */
6168
6167
  'stylistic/function-call-argument-newline'?: Linter.RuleEntry<StylisticFunctionCallArgumentNewline>;
6169
6168
  /**
@@ -6174,6 +6173,7 @@ Backward pagination arguments
6174
6173
  /**
6175
6174
  * Enforce consistent line breaks inside function parentheses
6176
6175
  * @see https://eslint.style/rules/function-paren-newline
6176
+ * @deprecated
6177
6177
  */
6178
6178
  'stylistic/function-paren-newline'?: Linter.RuleEntry<StylisticFunctionParenNewline>;
6179
6179
  /**
@@ -6241,12 +6241,6 @@ Backward pagination arguments
6241
6241
  * @see https://eslint.style/rules/jsx-function-call-newline
6242
6242
  */
6243
6243
  'stylistic/jsx-function-call-newline'?: Linter.RuleEntry<StylisticJsxFunctionCallNewline>;
6244
- /**
6245
- * Enforce JSX indentation. Deprecated, use `indent` rule instead.
6246
- * @see https://eslint.style/rules/jsx-indent
6247
- * @deprecated
6248
- */
6249
- 'stylistic/jsx-indent'?: Linter.RuleEntry<StylisticJsxIndent>;
6250
6244
  /**
6251
6245
  * Enforce props indentation in JSX
6252
6246
  * @see https://eslint.style/rules/jsx-indent-props
@@ -6272,12 +6266,6 @@ Backward pagination arguments
6272
6266
  * @see https://eslint.style/rules/jsx-pascal-case
6273
6267
  */
6274
6268
  'stylistic/jsx-pascal-case'?: Linter.RuleEntry<StylisticJsxPascalCase>;
6275
- /**
6276
- * Disallow multiple spaces between inline JSX props. Deprecated, use `no-multi-spaces` rule instead.
6277
- * @see https://eslint.style/rules/jsx-props-no-multi-spaces
6278
- * @deprecated
6279
- */
6280
- 'stylistic/jsx-props-no-multi-spaces'?: Linter.RuleEntry<[]>;
6281
6269
  /**
6282
6270
  * Enforce the consistent use of either double or single quotes in JSX attributes
6283
6271
  * @see https://eslint.style/rules/jsx-quotes
@@ -6289,11 +6277,15 @@ Backward pagination arguments
6289
6277
  */
6290
6278
  'stylistic/jsx-self-closing-comp'?: Linter.RuleEntry<StylisticJsxSelfClosingComp>;
6291
6279
  /**
6292
- * Enforce props alphabetical sorting
6293
- * @see https://eslint.style/rules/jsx-sort-props
6294
- * @deprecated
6280
+ * Enforce shorthand for boolean JSX attributes.
6281
+ * @see https://eslint.style/rules/jsx-shorthand-boolean
6282
+ */
6283
+ 'stylistic/jsx-shorthand-boolean'?: Linter.RuleEntry<[]>;
6284
+ /**
6285
+ * Enforce shorthand fragment syntax.
6286
+ * @see https://eslint.style/rules/jsx-shorthand-fragment
6295
6287
  */
6296
- 'stylistic/jsx-sort-props'?: Linter.RuleEntry<StylisticJsxSortProps>;
6288
+ 'stylistic/jsx-shorthand-fragment'?: Linter.RuleEntry<[]>;
6297
6289
  /**
6298
6290
  * Enforce whitespace in and around the JSX opening and closing brackets
6299
6291
  * @see https://eslint.style/rules/jsx-tag-spacing
@@ -6334,6 +6326,11 @@ Backward pagination arguments
6334
6326
  * @see https://eslint.style/rules/lines-between-class-members
6335
6327
  */
6336
6328
  'stylistic/lines-between-class-members'?: Linter.RuleEntry<StylisticLinesBetweenClassMembers>;
6329
+ /**
6330
+ * Enforce consistent spacing and line break styles inside brackets.
6331
+ * @see https://eslint.style/rules/list-style
6332
+ */
6333
+ 'stylistic/list-style'?: Linter.RuleEntry<StylisticListStyle>;
6337
6334
  /**
6338
6335
  * Enforce a maximum line length
6339
6336
  * @see https://eslint.style/rules/max-len
@@ -6432,16 +6429,19 @@ Backward pagination arguments
6432
6429
  /**
6433
6430
  * Enforce consistent line breaks after opening and before closing braces
6434
6431
  * @see https://eslint.style/rules/object-curly-newline
6432
+ * @deprecated
6435
6433
  */
6436
6434
  'stylistic/object-curly-newline'?: Linter.RuleEntry<StylisticObjectCurlyNewline>;
6437
6435
  /**
6438
6436
  * Enforce consistent spacing inside braces
6439
6437
  * @see https://eslint.style/rules/object-curly-spacing
6438
+ * @deprecated
6440
6439
  */
6441
6440
  'stylistic/object-curly-spacing'?: Linter.RuleEntry<StylisticObjectCurlySpacing>;
6442
6441
  /**
6443
6442
  * Enforce placing object properties on separate lines
6444
6443
  * @see https://eslint.style/rules/object-property-newline
6444
+ * @deprecated
6445
6445
  */
6446
6446
  'stylistic/object-property-newline'?: Linter.RuleEntry<StylisticObjectPropertyNewline>;
6447
6447
  /**
@@ -6548,7 +6548,7 @@ Backward pagination arguments
6548
6548
  * Enforces consistent spacing inside TypeScript type generics
6549
6549
  * @see https://eslint.style/rules/type-generic-spacing
6550
6550
  */
6551
- 'stylistic/type-generic-spacing'?: Linter.RuleEntry<[]>;
6551
+ 'stylistic/type-generic-spacing'?: Linter.RuleEntry<StylisticTypeGenericSpacing>;
6552
6552
  /**
6553
6553
  * Expect space before the type declaration in the named tuple
6554
6554
  * @see https://eslint.style/rules/type-named-tuple-spacing
@@ -7509,2002 +7509,2017 @@ Backward pagination arguments
7509
7509
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>;
7510
7510
  /**
7511
7511
  * Prefer better DOM traversal APIs.
7512
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/better-dom-traversing.md
7512
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/better-dom-traversing.md
7513
7513
  */
7514
7514
  'unicorn/better-dom-traversing'?: Linter.RuleEntry<[]>;
7515
7515
  /**
7516
7516
  * Removed. Prefer `eslint-plugin-regexp`
7517
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/deleted-and-deprecated-rules.md#better-regex
7517
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/deleted-and-deprecated-rules.md#better-regex
7518
7518
  * @deprecated
7519
7519
  */
7520
7520
  'unicorn/better-regex'?: Linter.RuleEntry<[]>;
7521
7521
  /**
7522
7522
  * Enforce a specific parameter name in catch clauses.
7523
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/catch-error-name.md
7523
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/catch-error-name.md
7524
7524
  */
7525
7525
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
7526
7526
  /**
7527
7527
  * Enforce consistent class references in static methods.
7528
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/class-reference-in-static-methods.md
7528
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/class-reference-in-static-methods.md
7529
7529
  */
7530
7530
  'unicorn/class-reference-in-static-methods'?: Linter.RuleEntry<UnicornClassReferenceInStaticMethods>;
7531
7531
  /**
7532
7532
  * Enforce consistent spacing before and after commas in JSON and SOML.
7533
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/comma-spacing.md
7533
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/comma-spacing.md
7534
7534
  */
7535
7535
  'unicorn/comma-spacing'?: Linter.RuleEntry<[]>;
7536
7536
  /**
7537
7537
  * Enforce better comment content.
7538
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/comment-content.md
7538
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/comment-content.md
7539
7539
  */
7540
7540
  'unicorn/comment-content'?: Linter.RuleEntry<UnicornCommentContent>;
7541
7541
  /**
7542
7542
  * Enforce a consistent return style for multiline arrow function bodies.
7543
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/consistent-arrow-return-style.md
7543
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/consistent-arrow-return-style.md
7544
7544
  */
7545
7545
  'unicorn/consistent-arrow-return-style'?: Linter.RuleEntry<[]>;
7546
7546
  /**
7547
7547
  * Enforce consistent assertion style with `node:assert`.
7548
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/consistent-assert.md
7548
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/consistent-assert.md
7549
7549
  */
7550
7550
  'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
7551
7551
  /**
7552
7552
  * Enforce consistent naming for boolean names.
7553
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/consistent-boolean-name.md
7553
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/consistent-boolean-name.md
7554
7554
  */
7555
7555
  'unicorn/consistent-boolean-name'?: Linter.RuleEntry<UnicornConsistentBooleanName>;
7556
7556
  /**
7557
7557
  * Enforce consistent class member order.
7558
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/consistent-class-member-order.md
7558
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/consistent-class-member-order.md
7559
7559
  */
7560
7560
  'unicorn/consistent-class-member-order'?: Linter.RuleEntry<UnicornConsistentClassMemberOrder>;
7561
7561
  /**
7562
7562
  * Enforce consistent spelling of compound words in identifiers.
7563
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/consistent-compound-words.md
7563
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/consistent-compound-words.md
7564
7564
  */
7565
7565
  'unicorn/consistent-compound-words'?: Linter.RuleEntry<UnicornConsistentCompoundWords>;
7566
7566
  /**
7567
7567
  * Enforce consistent conditional object spread style.
7568
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/consistent-conditional-object-spread.md
7568
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/consistent-conditional-object-spread.md
7569
7569
  */
7570
7570
  'unicorn/consistent-conditional-object-spread'?: Linter.RuleEntry<UnicornConsistentConditionalObjectSpread>;
7571
7571
  /**
7572
7572
  * Prefer passing `Date` directly to the constructor when cloning.
7573
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/consistent-date-clone.md
7573
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/consistent-date-clone.md
7574
7574
  */
7575
7575
  'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
7576
7576
  /**
7577
7577
  * Use destructured variables over properties.
7578
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/consistent-destructuring.md
7578
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/consistent-destructuring.md
7579
7579
  */
7580
7580
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
7581
7581
  /**
7582
7582
  * Prefer consistent types when spreading a ternary in an array literal.
7583
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/consistent-empty-array-spread.md
7583
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/consistent-empty-array-spread.md
7584
7584
  */
7585
7585
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
7586
7586
  /**
7587
7587
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
7588
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/consistent-existence-index-check.md
7588
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/consistent-existence-index-check.md
7589
7589
  */
7590
7590
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
7591
7591
  /**
7592
7592
  * Enforce consistent decorator position on exported classes.
7593
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/consistent-export-decorator-position.md
7593
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/consistent-export-decorator-position.md
7594
7594
  */
7595
7595
  'unicorn/consistent-export-decorator-position'?: Linter.RuleEntry<UnicornConsistentExportDecoratorPosition>;
7596
7596
  /**
7597
7597
  * Move function definitions to the highest possible scope.
7598
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/consistent-function-scoping.md
7598
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/consistent-function-scoping.md
7599
7599
  */
7600
7600
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
7601
7601
  /**
7602
7602
  * Enforce function syntax by role.
7603
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/consistent-function-style.md
7603
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/consistent-function-style.md
7604
7604
  */
7605
7605
  'unicorn/consistent-function-style'?: Linter.RuleEntry<UnicornConsistentFunctionStyle>;
7606
7606
  /**
7607
7607
  * Enforce consistent JSON file reads before `JSON.parse()`.
7608
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/consistent-json-file-read.md
7608
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/consistent-json-file-read.md
7609
7609
  */
7610
7610
  'unicorn/consistent-json-file-read'?: Linter.RuleEntry<UnicornConsistentJsonFileRead>;
7611
7611
  /**
7612
7612
  * Enforce consistent optional chaining for same-base member access.
7613
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/consistent-optional-chaining.md
7613
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/consistent-optional-chaining.md
7614
7614
  */
7615
7615
  'unicorn/consistent-optional-chaining'?: Linter.RuleEntry<[]>;
7616
7616
  /**
7617
7617
  * Enforce consistent style for escaping `${` in template literals.
7618
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/consistent-template-literal-escape.md
7618
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/consistent-template-literal-escape.md
7619
7619
  */
7620
7620
  'unicorn/consistent-template-literal-escape'?: Linter.RuleEntry<[]>;
7621
7621
  /**
7622
7622
  * Enforce consistent labels on tuple type elements.
7623
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/consistent-tuple-labels.md
7623
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/consistent-tuple-labels.md
7624
7624
  */
7625
7625
  'unicorn/consistent-tuple-labels'?: Linter.RuleEntry<[]>;
7626
7626
  /**
7627
7627
  * Enforce correct `Error` subclassing.
7628
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/custom-error-definition.md
7628
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/custom-error-definition.md
7629
7629
  */
7630
7630
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
7631
7631
  /**
7632
7632
  * Enforce consistent default export declarations.
7633
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/default-export-style.md
7633
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/default-export-style.md
7634
7634
  */
7635
7635
  'unicorn/default-export-style'?: Linter.RuleEntry<UnicornDefaultExportStyle>;
7636
7636
  /**
7637
7637
  * Enforce consistent style for DOM element dataset access.
7638
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/dom-node-dataset.md
7638
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/dom-node-dataset.md
7639
7639
  */
7640
7640
  'unicorn/dom-node-dataset'?: Linter.RuleEntry<UnicornDomNodeDataset>;
7641
7641
  /**
7642
7642
  * Enforce no spaces between braces.
7643
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/empty-brace-spaces.md
7643
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/empty-brace-spaces.md
7644
7644
  */
7645
7645
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
7646
7646
  /**
7647
7647
  * Enforce passing a `message` value when creating a built-in error.
7648
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/error-message.md
7648
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/error-message.md
7649
7649
  */
7650
7650
  'unicorn/error-message'?: Linter.RuleEntry<[]>;
7651
7651
  /**
7652
7652
  * Require escape sequences to use uppercase or lowercase values.
7653
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/escape-case.md
7653
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/escape-case.md
7654
7654
  */
7655
7655
  'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
7656
7656
  /**
7657
7657
  * Add expiration conditions to TODO comments.
7658
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/expiring-todo-comments.md
7658
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/expiring-todo-comments.md
7659
7659
  */
7660
7660
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
7661
7661
  /**
7662
7662
  * Enforce explicitly comparing the `length` or `size` property of a value.
7663
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/explicit-length-check.md
7663
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/explicit-length-check.md
7664
7664
  */
7665
7665
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
7666
7666
  /**
7667
7667
  * Enforce or disallow explicit `delay` argument for `setTimeout()` and `setInterval()`.
7668
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/explicit-timer-delay.md
7668
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/explicit-timer-delay.md
7669
7669
  */
7670
7670
  'unicorn/explicit-timer-delay'?: Linter.RuleEntry<UnicornExplicitTimerDelay>;
7671
7671
  /**
7672
7672
  * Enforce a case style for filenames and directory names.
7673
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/filename-case.md
7673
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/filename-case.md
7674
7674
  */
7675
7675
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
7676
7676
  /**
7677
7677
  * Require identifiers to match a specified regular expression.
7678
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/id-match.md
7678
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/id-match.md
7679
7679
  */
7680
7680
  'unicorn/id-match'?: Linter.RuleEntry<UnicornIdMatch>;
7681
7681
  /**
7682
7682
  * Enforce specific import styles per module.
7683
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/import-style.md
7683
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/import-style.md
7684
7684
  */
7685
7685
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
7686
7686
  /**
7687
7687
  * Enforce consistent indentation in JSON and CSS.
7688
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/indent.md
7688
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/indent.md
7689
7689
  */
7690
7690
  'unicorn/indent'?: Linter.RuleEntry<UnicornIndent>;
7691
7691
  /**
7692
7692
  * Prevent usage of variables from outside the scope of isolated functions.
7693
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/isolated-functions.md
7693
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/isolated-functions.md
7694
7694
  */
7695
7695
  'unicorn/isolated-functions'?: Linter.RuleEntry<UnicornIsolatedFunctions>;
7696
7696
  /**
7697
7697
  * Enforce a consistent style for optional loop sources.
7698
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/iteration-fallback-style.md
7698
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/iteration-fallback-style.md
7699
7699
  */
7700
7700
  'unicorn/iteration-fallback-style'?: Linter.RuleEntry<UnicornIterationFallbackStyle>;
7701
7701
  /**
7702
7702
  * Enforce a case style for data keys.
7703
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/key-name-casing.md
7703
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/key-name-casing.md
7704
7704
  */
7705
7705
  'unicorn/key-name-casing'?: Linter.RuleEntry<UnicornKeyNameCasing>;
7706
7706
  /**
7707
7707
  * Require or disallow logical assignment operator shorthand
7708
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/logical-assignment-operators.md
7708
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/logical-assignment-operators.md
7709
7709
  */
7710
7710
  'unicorn/logical-assignment-operators'?: Linter.RuleEntry<UnicornLogicalAssignmentOperators>;
7711
7711
  /**
7712
7712
  * Limit the depth of nested calls.
7713
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/max-nested-calls.md
7713
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/max-nested-calls.md
7714
7714
  */
7715
7715
  'unicorn/max-nested-calls'?: Linter.RuleEntry<UnicornMaxNestedCalls>;
7716
7716
  /**
7717
7717
  * Enforce replacements for variable, property, and filenames.
7718
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/name-replacements.md
7718
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/name-replacements.md
7719
7719
  */
7720
7720
  'unicorn/name-replacements'?: Linter.RuleEntry<UnicornNameReplacements>;
7721
7721
  /**
7722
7722
  * Enforce correct use of `new` for builtin constructors.
7723
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/new-for-builtins.md
7723
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/new-for-builtins.md
7724
7724
  */
7725
7725
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
7726
7726
  /**
7727
7727
  * Enforce specifying rules to disable in `eslint-disable` comments.
7728
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-abusive-eslint-disable.md
7728
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-abusive-eslint-disable.md
7729
7729
  */
7730
7730
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
7731
7731
  /**
7732
7732
  * Disallow recursive access to `this` within getters and setters.
7733
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-accessor-recursion.md
7733
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-accessor-recursion.md
7734
7734
  */
7735
7735
  'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
7736
7736
  /**
7737
7737
  * Disallow bitwise operators where a logical operator was likely intended.
7738
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-accidental-bitwise-operator.md
7738
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-accidental-bitwise-operator.md
7739
7739
  */
7740
7740
  'unicorn/no-accidental-bitwise-operator'?: Linter.RuleEntry<[]>;
7741
7741
  /**
7742
7742
  * Disallow anonymous functions and classes as the default export.
7743
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-anonymous-default-export.md
7743
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-anonymous-default-export.md
7744
7744
  */
7745
7745
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
7746
7746
  /**
7747
7747
  * Prevent passing a function reference directly to iterator methods.
7748
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-array-callback-reference.md
7748
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-array-callback-reference.md
7749
7749
  */
7750
7750
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<UnicornNoArrayCallbackReference>;
7751
7751
  /**
7752
7752
  * Disallow array accumulation with `Array#concat()` in loops.
7753
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-array-concat-in-loop.md
7753
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-array-concat-in-loop.md
7754
7754
  */
7755
7755
  'unicorn/no-array-concat-in-loop'?: Linter.RuleEntry<[]>;
7756
7756
  /**
7757
7757
  * Disallow using reference values as `Array#fill()` values.
7758
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-array-fill-with-reference-type.md
7758
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-array-fill-with-reference-type.md
7759
7759
  */
7760
7760
  'unicorn/no-array-fill-with-reference-type'?: Linter.RuleEntry<[]>;
7761
7761
  /**
7762
7762
  * Disallow `.fill()` after `Array.from({length: …})`.
7763
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-array-from-fill.md
7763
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-array-from-fill.md
7764
7764
  */
7765
7765
  'unicorn/no-array-from-fill'?: Linter.RuleEntry<[]>;
7766
7766
  /**
7767
7767
  * Disallow front-of-array mutation.
7768
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-array-front-mutation.md
7768
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-array-front-mutation.md
7769
7769
  */
7770
7770
  'unicorn/no-array-front-mutation'?: Linter.RuleEntry<[]>;
7771
7771
  /**
7772
7772
  * Disallow using the `this` argument in array methods.
7773
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-array-method-this-argument.md
7773
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-array-method-this-argument.md
7774
7774
  */
7775
7775
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
7776
7776
  /**
7777
7777
  * Replaced by `unicorn/prefer-single-call` which covers more cases.
7778
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
7778
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
7779
7779
  * @deprecated
7780
7780
  */
7781
7781
  'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
7782
7782
  /**
7783
7783
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
7784
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-array-reduce.md
7784
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-array-reduce.md
7785
7785
  */
7786
7786
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
7787
7787
  /**
7788
7788
  * Prefer `Array#toReversed()` over `Array#reverse()`.
7789
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-array-reverse.md
7789
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-array-reverse.md
7790
7790
  */
7791
7791
  'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
7792
7792
  /**
7793
7793
  * Prefer `Array#toSorted()` over `Array#sort()`.
7794
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-array-sort.md
7794
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-array-sort.md
7795
7795
  */
7796
7796
  'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>;
7797
7797
  /**
7798
7798
  * Disallow sorting arrays to get the minimum or maximum value.
7799
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-array-sort-for-min-max.md
7799
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-array-sort-for-min-max.md
7800
7800
  */
7801
7801
  'unicorn/no-array-sort-for-min-max'?: Linter.RuleEntry<[]>;
7802
7802
  /**
7803
7803
  * Prefer `Array#toSpliced()` over `Array#splice()`.
7804
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-array-splice.md
7804
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-array-splice.md
7805
7805
  */
7806
7806
  'unicorn/no-array-splice'?: Linter.RuleEntry<[]>;
7807
7807
  /**
7808
7808
  * Disallow asterisk prefixes and shared indentation in multiline comments.
7809
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
7809
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
7810
7810
  */
7811
7811
  'unicorn/no-asterisk-prefix-in-documentation-comments'?: Linter.RuleEntry<[]>;
7812
7812
  /**
7813
7813
  * Disallow asynchronous callbacks in synchronous iterator helpers.
7814
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-async-iterator-callback.md
7814
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-async-iterator-callback.md
7815
7815
  */
7816
7816
  'unicorn/no-async-iterator-callback'?: Linter.RuleEntry<[]>;
7817
7817
  /**
7818
7818
  * Disallow async functions as `Promise#finally()` callbacks.
7819
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-async-promise-finally.md
7819
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-async-promise-finally.md
7820
7820
  */
7821
7821
  'unicorn/no-async-promise-finally'?: Linter.RuleEntry<[]>;
7822
7822
  /**
7823
7823
  * Disallow member access from await expression.
7824
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-await-expression-member.md
7824
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-await-expression-member.md
7825
7825
  */
7826
7826
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
7827
7827
  /**
7828
7828
  * Disallow using `await` in `Promise` method parameters.
7829
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-await-in-promise-methods.md
7829
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-await-in-promise-methods.md
7830
7830
  */
7831
7831
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
7832
7832
  /**
7833
7833
  * Disallow barrel files.
7834
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-barrel-files.md
7834
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-barrel-files.md
7835
7835
  */
7836
7836
  'unicorn/no-barrel-files'?: Linter.RuleEntry<[]>;
7837
7837
  /**
7838
7838
  * Disallow unnecessary `Blob` to `File` conversion.
7839
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-blob-to-file.md
7839
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-blob-to-file.md
7840
7840
  */
7841
7841
  'unicorn/no-blob-to-file'?: Linter.RuleEntry<[]>;
7842
7842
  /**
7843
7843
  * Disallow boolean-returning sort comparators.
7844
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-boolean-sort-comparator.md
7844
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-boolean-sort-comparator.md
7845
7845
  */
7846
7846
  'unicorn/no-boolean-sort-comparator'?: Linter.RuleEntry<[]>;
7847
7847
  /**
7848
7848
  * Disallow `break` and optionally `continue` in nested loops and switches inside loops.
7849
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-break-in-nested-loop.md
7849
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-break-in-nested-loop.md
7850
7850
  */
7851
7851
  'unicorn/no-break-in-nested-loop'?: Linter.RuleEntry<UnicornNoBreakInNestedLoop>;
7852
7852
  /**
7853
7853
  * Prefer drawing canvases directly instead of converting them to images.
7854
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-canvas-to-image.md
7854
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-canvas-to-image.md
7855
7855
  */
7856
7856
  'unicorn/no-canvas-to-image'?: Linter.RuleEntry<[]>;
7857
7857
  /**
7858
7858
  * Disallow chained comparisons such as `a < b < c`.
7859
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-chained-comparison.md
7859
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-chained-comparison.md
7860
7860
  */
7861
7861
  'unicorn/no-chained-comparison'?: Linter.RuleEntry<[]>;
7862
7862
  /**
7863
7863
  * Disallow accessing `Map`, `Set`, `WeakMap`, and `WeakSet` entries with bracket notation.
7864
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-collection-bracket-access.md
7864
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-collection-bracket-access.md
7865
7865
  */
7866
7866
  'unicorn/no-collection-bracket-access'?: Linter.RuleEntry<[]>;
7867
7867
  /**
7868
7868
  * Disallow dynamic object property existence checks.
7869
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-computed-property-existence-check.md
7869
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-computed-property-existence-check.md
7870
7870
  */
7871
7871
  'unicorn/no-computed-property-existence-check'?: Linter.RuleEntry<[]>;
7872
7872
  /**
7873
7873
  * Disallow conflicting CSS query and HTML form constraints.
7874
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-conflicting-constraints.md
7874
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-conflicting-constraints.md
7875
7875
  */
7876
7876
  'unicorn/no-conflicting-constraints'?: Linter.RuleEntry<[]>;
7877
7877
  /**
7878
7878
  * Disallow confusing uses of `Array#{splice,toSpliced}()`.
7879
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-confusing-array-splice.md
7879
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-confusing-array-splice.md
7880
7880
  */
7881
7881
  'unicorn/no-confusing-array-splice'?: Linter.RuleEntry<[]>;
7882
7882
  /**
7883
7883
  * Disallow confusing uses of `Array#with()`.
7884
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-confusing-array-with.md
7884
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-confusing-array-with.md
7885
7885
  */
7886
7886
  'unicorn/no-confusing-array-with'?: Linter.RuleEntry<[]>;
7887
7887
  /**
7888
7888
  * Do not use leading/trailing space between `console.log` parameters.
7889
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-console-spaces.md
7889
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-console-spaces.md
7890
7890
  */
7891
7891
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
7892
7892
  /**
7893
7893
  * Disallow arithmetic and bitwise operations that always evaluate to `0`.
7894
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-constant-zero-expression.md
7894
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-constant-zero-expression.md
7895
7895
  */
7896
7896
  'unicorn/no-constant-zero-expression'?: Linter.RuleEntry<[]>;
7897
7897
  /**
7898
7898
  * Disallow declarations before conditional early exits when they are only used after the exit.
7899
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-declarations-before-early-exit.md
7899
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-declarations-before-early-exit.md
7900
7900
  */
7901
7901
  'unicorn/no-declarations-before-early-exit'?: Linter.RuleEntry<[]>;
7902
7902
  /**
7903
7903
  * Moved to `eslint-cssicorn` as `cssicorn/no-deprecated-features`.
7904
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/deleted-and-deprecated-rules.md#no-deprecated-css-features
7904
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/deleted-and-deprecated-rules.md#no-deprecated-css-features
7905
7905
  * @deprecated
7906
7906
  */
7907
7907
  'unicorn/no-deprecated-css-features'?: Linter.RuleEntry<[]>;
7908
7908
  /**
7909
7909
  * Do not use `document.cookie` directly.
7910
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-document-cookie.md
7910
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-document-cookie.md
7911
7911
  */
7912
7912
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
7913
7913
  /**
7914
7914
  * Disallow two comparisons of the same operands that can be combined into one.
7915
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-double-comparison.md
7915
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-double-comparison.md
7916
7916
  */
7917
7917
  'unicorn/no-double-comparison'?: Linter.RuleEntry<[]>;
7918
7918
  /**
7919
7919
  * Moved to `eslint-cssicorn` as `cssicorn/no-duplicate-selectors`.
7920
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/deleted-and-deprecated-rules.md#no-duplicate-css-selectors
7920
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/deleted-and-deprecated-rules.md#no-duplicate-css-selectors
7921
7921
  * @deprecated
7922
7922
  */
7923
7923
  'unicorn/no-duplicate-css-selectors'?: Linter.RuleEntry<[]>;
7924
7924
  /**
7925
7925
  * Moved to `eslint-cssicorn` as `cssicorn/no-duplicate-font-family-names`.
7926
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/deleted-and-deprecated-rules.md#no-duplicate-font-family-names
7926
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/deleted-and-deprecated-rules.md#no-duplicate-font-family-names
7927
7927
  * @deprecated
7928
7928
  */
7929
7929
  'unicorn/no-duplicate-font-family-names'?: Linter.RuleEntry<[]>;
7930
7930
  /**
7931
7931
  * Disallow duplicate adjacent branches in if chains.
7932
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-duplicate-if-branches.md
7932
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-duplicate-if-branches.md
7933
7933
  */
7934
7934
  'unicorn/no-duplicate-if-branches'?: Linter.RuleEntry<[]>;
7935
7935
  /**
7936
7936
  * Disallow adjacent duplicate operands in logical expressions.
7937
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-duplicate-logical-operands.md
7937
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-duplicate-logical-operands.md
7938
7938
  */
7939
7939
  'unicorn/no-duplicate-logical-operands'?: Linter.RuleEntry<[]>;
7940
7940
  /**
7941
7941
  * Disallow `.map()` and `.filter()` in `for…of` and `for await…of` loop headers.
7942
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-duplicate-loops.md
7942
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-duplicate-loops.md
7943
7943
  */
7944
7944
  'unicorn/no-duplicate-loops'?: Linter.RuleEntry<[]>;
7945
7945
  /**
7946
7946
  * Disallow duplicate values in `Set` constructor array literals.
7947
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-duplicate-set-values.md
7947
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-duplicate-set-values.md
7948
7948
  */
7949
7949
  'unicorn/no-duplicate-set-values'?: Linter.RuleEntry<[]>;
7950
7950
  /**
7951
7951
  * Disallow empty files.
7952
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-empty-file.md
7952
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-empty-file.md
7953
7953
  */
7954
7954
  'unicorn/no-empty-file'?: Linter.RuleEntry<UnicornNoEmptyFile>;
7955
7955
  /**
7956
7956
  * Disallow empty link text in Markdown.
7957
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-empty-link-text.md
7957
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-empty-link-text.md
7958
7958
  */
7959
7959
  'unicorn/no-empty-link-text'?: Linter.RuleEntry<[]>;
7960
7960
  /**
7961
7961
  * Disallow assigning to built-in error properties.
7962
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-error-property-assignment.md
7962
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-error-property-assignment.md
7963
7963
  */
7964
7964
  'unicorn/no-error-property-assignment'?: Linter.RuleEntry<[]>;
7965
7965
  /**
7966
7966
  * Disallow exports in scripts.
7967
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-exports-in-scripts.md
7967
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-exports-in-scripts.md
7968
7968
  */
7969
7969
  'unicorn/no-exports-in-scripts'?: Linter.RuleEntry<[]>;
7970
7970
  /**
7971
7971
  * Prefer `for…of` over the `forEach` method.
7972
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-for-each.md
7972
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-for-each.md
7973
7973
  */
7974
7974
  'unicorn/no-for-each'?: Linter.RuleEntry<[]>;
7975
7975
  /**
7976
7976
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
7977
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-for-loop.md
7977
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-for-loop.md
7978
7978
  */
7979
7979
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
7980
7980
  /**
7981
7981
  * Disallow assigning properties on the global object.
7982
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-global-object-property-assignment.md
7982
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-global-object-property-assignment.md
7983
7983
  */
7984
7984
  'unicorn/no-global-object-property-assignment'?: Linter.RuleEntry<[]>;
7985
7985
  /**
7986
7986
  * Replaced by `unicorn/prefer-literal-ascii` and `unicorn/prefer-unicode-code-point-escapes`, which cover more cases.
7987
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
7987
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
7988
7988
  * @deprecated
7989
7989
  */
7990
7990
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
7991
7991
  /**
7992
7992
  * Disallow immediate mutation after assignment and initialization immediately after declaration.
7993
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-immediate-mutation.md
7993
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-immediate-mutation.md
7994
7994
  */
7995
7995
  'unicorn/no-immediate-mutation'?: Linter.RuleEntry<UnicornNoImmediateMutation>;
7996
7996
  /**
7997
7997
  * Disallow impossible comparisons against `.length` or `.size`.
7998
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-impossible-length-comparison.md
7998
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-impossible-length-comparison.md
7999
7999
  */
8000
8000
  'unicorn/no-impossible-length-comparison'?: Linter.RuleEntry<[]>;
8001
8001
  /**
8002
8002
  * Disallow class accessors that hide an inherited getter or setter.
8003
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-incomplete-accessor-override.md
8003
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-incomplete-accessor-override.md
8004
8004
  */
8005
8005
  'unicorn/no-incomplete-accessor-override'?: Linter.RuleEntry<[]>;
8006
8006
  /**
8007
8007
  * Disallow incorrect `querySelector()` and `querySelectorAll()` usage.
8008
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-incorrect-query-selector.md
8008
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-incorrect-query-selector.md
8009
8009
  */
8010
8010
  'unicorn/no-incorrect-query-selector'?: Linter.RuleEntry<[]>;
8011
8011
  /**
8012
8012
  * Disallow incorrect template literal interpolation syntax.
8013
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-incorrect-template-string-interpolation.md
8013
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-incorrect-template-string-interpolation.md
8014
8014
  */
8015
8015
  'unicorn/no-incorrect-template-string-interpolation'?: Linter.RuleEntry<[]>;
8016
8016
  /**
8017
8017
  * Disallow ineffective CSP directives in `<meta>` elements.
8018
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-ineffective-csp-directives.md
8018
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-ineffective-csp-directives.md
8019
8019
  */
8020
8020
  'unicorn/no-ineffective-csp-directives'?: Linter.RuleEntry<[]>;
8021
8021
  /**
8022
8022
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
8023
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
8023
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
8024
8024
  * @deprecated
8025
8025
  */
8026
8026
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
8027
8027
  /**
8028
8028
  * Disallow `instanceof` with built-in objects
8029
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-instanceof-builtins.md
8029
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-instanceof-builtins.md
8030
8030
  */
8031
8031
  'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
8032
8032
  /**
8033
8033
  * Disallow calling functions and constructors with an invalid number of arguments.
8034
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-invalid-argument-count.md
8034
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-invalid-argument-count.md
8035
8035
  */
8036
8036
  'unicorn/no-invalid-argument-count'?: Linter.RuleEntry<UnicornNoInvalidArgumentCount>;
8037
8037
  /**
8038
8038
  * Disallow invalid values for HTML boolean attributes.
8039
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-invalid-boolean-attribute-value.md
8039
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-invalid-boolean-attribute-value.md
8040
8040
  */
8041
8041
  'unicorn/no-invalid-boolean-attribute-value'?: Linter.RuleEntry<[]>;
8042
8042
  /**
8043
8043
  * Disallow comparing a single character from a string to a multi-character string.
8044
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-invalid-character-comparison.md
8044
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-invalid-character-comparison.md
8045
8045
  */
8046
8046
  'unicorn/no-invalid-character-comparison'?: Linter.RuleEntry<[]>;
8047
8047
  /**
8048
8048
  * Disallow invalid DOM tokens.
8049
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-invalid-dom-token.md
8049
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-invalid-dom-token.md
8050
8050
  */
8051
8051
  'unicorn/no-invalid-dom-token'?: Linter.RuleEntry<[]>;
8052
8052
  /**
8053
8053
  * Disallow invalid options in `fetch()` and `new Request()`.
8054
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-invalid-fetch-options.md
8054
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-invalid-fetch-options.md
8055
8055
  */
8056
8056
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
8057
8057
  /**
8058
8058
  * Disallow invalid `accept` values on file inputs.
8059
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-invalid-file-input-accept.md
8059
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-invalid-file-input-accept.md
8060
8060
  */
8061
8061
  'unicorn/no-invalid-file-input-accept'?: Linter.RuleEntry<[]>;
8062
8062
  /**
8063
8063
  * Disallow invalid subresource integrity metadata.
8064
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-invalid-integrity.md
8064
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-invalid-integrity.md
8065
8065
  */
8066
8066
  'unicorn/no-invalid-integrity'?: Linter.RuleEntry<[]>;
8067
8067
  /**
8068
8068
  * Disallow invalid or ignored Intl options.
8069
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-invalid-intl-options.md
8069
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-invalid-intl-options.md
8070
8070
  */
8071
8071
  'unicorn/no-invalid-intl-options'?: Linter.RuleEntry<[]>;
8072
8072
  /**
8073
8073
  * Moved to `eslint-cssicorn` as `cssicorn/no-invalid-media-features`.
8074
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/deleted-and-deprecated-rules.md#no-invalid-media-features
8074
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/deleted-and-deprecated-rules.md#no-invalid-media-features
8075
8075
  * @deprecated
8076
8076
  */
8077
8077
  'unicorn/no-invalid-media-features'?: Linter.RuleEntry<[]>;
8078
8078
  /**
8079
8079
  * Disallow invalid property descriptors.
8080
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-invalid-property-descriptor.md
8080
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-invalid-property-descriptor.md
8081
8081
  */
8082
8082
  'unicorn/no-invalid-property-descriptor'?: Linter.RuleEntry<[]>;
8083
8083
  /**
8084
8084
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
8085
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-invalid-remove-event-listener.md
8085
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-invalid-remove-event-listener.md
8086
8086
  */
8087
8087
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
8088
8088
  /**
8089
8089
  * Disallow invalid options in `new Response()`, `Response.json()`, and `Response.redirect()`.
8090
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-invalid-response-options.md
8090
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-invalid-response-options.md
8091
8091
  */
8092
8092
  'unicorn/no-invalid-response-options'?: Linter.RuleEntry<[]>;
8093
8093
  /**
8094
8094
  * Disallow invalid arguments to `CSSStyleDeclaration#setProperty()`.
8095
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-invalid-style-set-property.md
8095
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-invalid-style-set-property.md
8096
8096
  */
8097
8097
  'unicorn/no-invalid-style-set-property'?: Linter.RuleEntry<[]>;
8098
8098
  /**
8099
8099
  * Disallow statically known invalid Temporal arithmetic.
8100
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-invalid-temporal-arithmetic.md
8100
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-invalid-temporal-arithmetic.md
8101
8101
  */
8102
8102
  'unicorn/no-invalid-temporal-arithmetic'?: Linter.RuleEntry<[]>;
8103
8103
  /**
8104
8104
  * Disallow invalid protocol strings in comparisons with `URL#protocol`.
8105
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-invalid-url-protocol-comparison.md
8105
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-invalid-url-protocol-comparison.md
8106
8106
  */
8107
8107
  'unicorn/no-invalid-url-protocol-comparison'?: Linter.RuleEntry<[]>;
8108
8108
  /**
8109
8109
  * Disallow invalid implementations of well-known symbol methods.
8110
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
8110
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
8111
8111
  */
8112
8112
  'unicorn/no-invalid-well-known-symbol-methods'?: Linter.RuleEntry<[]>;
8113
8113
  /**
8114
8114
  * Disallow `javascript:` URLs in Markdown.
8115
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-javascript-url.md
8115
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-javascript-url.md
8116
8116
  */
8117
8117
  'unicorn/no-javascript-url'?: Linter.RuleEntry<[]>;
8118
8118
  /**
8119
8119
  * Disallow identifiers starting with `new` or `class`.
8120
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-keyword-prefix.md
8120
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-keyword-prefix.md
8121
8121
  */
8122
8122
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
8123
8123
  /**
8124
8124
  * Disallow accessing `event.currentTarget` after the synchronous event dispatch has finished.
8125
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-late-current-target-access.md
8125
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-late-current-target-access.md
8126
8126
  */
8127
8127
  'unicorn/no-late-current-target-access'?: Linter.RuleEntry<[]>;
8128
8128
  /**
8129
8129
  * Disallow event-control method calls after the synchronous event dispatch has finished.
8130
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-late-event-control.md
8130
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-late-event-control.md
8131
8131
  */
8132
8132
  'unicorn/no-late-event-control'?: Linter.RuleEntry<[]>;
8133
8133
  /**
8134
8134
  * Disallow empty lines at the beginning of a file.
8135
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-leading-empty-lines.md
8135
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-leading-empty-lines.md
8136
8136
  */
8137
8137
  'unicorn/no-leading-empty-lines'?: Linter.RuleEntry<[]>;
8138
8138
  /**
8139
8139
  * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
8140
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
8140
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
8141
8141
  * @deprecated
8142
8142
  */
8143
8143
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
8144
8144
  /**
8145
8145
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
8146
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-lonely-if.md
8146
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-lonely-if.md
8147
8147
  */
8148
8148
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
8149
8149
  /**
8150
8150
  * Disallow mutating a loop iterable during iteration.
8151
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-loop-iterable-mutation.md
8151
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-loop-iterable-mutation.md
8152
8152
  */
8153
8153
  'unicorn/no-loop-iterable-mutation'?: Linter.RuleEntry<[]>;
8154
8154
  /**
8155
8155
  * Disallow numeric literals that lose precision when represented as IEEE 754 binary64 values.
8156
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-loss-of-precision.md
8156
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-loss-of-precision.md
8157
8157
  */
8158
8158
  'unicorn/no-loss-of-precision'?: Linter.RuleEntry<[]>;
8159
8159
  /**
8160
8160
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
8161
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-magic-array-flat-depth.md
8161
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-magic-array-flat-depth.md
8162
8162
  */
8163
8163
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
8164
8164
  /**
8165
8165
  * Disallow manually wrapped comments.
8166
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-manually-wrapped-comments.md
8166
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-manually-wrapped-comments.md
8167
8167
  */
8168
8168
  'unicorn/no-manually-wrapped-comments'?: Linter.RuleEntry<[]>;
8169
8169
  /**
8170
8170
  * Disallow checking a Map key before accessing a different key.
8171
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-mismatched-map-key.md
8171
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-mismatched-map-key.md
8172
8172
  */
8173
8173
  'unicorn/no-mismatched-map-key'?: Linter.RuleEntry<[]>;
8174
8174
  /**
8175
8175
  * Disallow misrefactored compound assignments where the target is duplicated in the right-hand side.
8176
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-misrefactored-assignment.md
8176
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-misrefactored-assignment.md
8177
8177
  */
8178
8178
  'unicorn/no-misrefactored-assignment'?: Linter.RuleEntry<[]>;
8179
8179
  /**
8180
8180
  * Disallow references to missing local resources.
8181
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-missing-local-resource.md
8181
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-missing-local-resource.md
8182
8182
  */
8183
8183
  'unicorn/no-missing-local-resource'?: Linter.RuleEntry<[]>;
8184
8184
  /**
8185
8185
  * Disallow calling Promise executor resolver functions more than once on the same execution path.
8186
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-multiple-promise-resolver-calls.md
8186
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-multiple-promise-resolver-calls.md
8187
8187
  */
8188
8188
  'unicorn/no-multiple-promise-resolver-calls'?: Linter.RuleEntry<[]>;
8189
8189
  /**
8190
8190
  * Disallow named usage of default import and export.
8191
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-named-default.md
8191
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-named-default.md
8192
8192
  */
8193
8193
  'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
8194
8194
  /**
8195
8195
  * Disallow negated array predicate calls.
8196
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-negated-array-predicate.md
8196
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-negated-array-predicate.md
8197
8197
  */
8198
8198
  'unicorn/no-negated-array-predicate'?: Linter.RuleEntry<[]>;
8199
8199
  /**
8200
8200
  * Disallow negated comparisons.
8201
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-negated-comparison.md
8201
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-negated-comparison.md
8202
8202
  */
8203
8203
  'unicorn/no-negated-comparison'?: Linter.RuleEntry<UnicornNoNegatedComparison>;
8204
8204
  /**
8205
8205
  * Disallow negated conditions.
8206
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-negated-condition.md
8206
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-negated-condition.md
8207
8207
  */
8208
8208
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
8209
8209
  /**
8210
8210
  * Disallow negated expression in equality check.
8211
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-negation-in-equality-check.md
8211
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-negation-in-equality-check.md
8212
8212
  */
8213
8213
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
8214
8214
  /**
8215
8215
  * Disallow nested ternary expressions.
8216
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-nested-ternary.md
8216
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-nested-ternary.md
8217
8217
  */
8218
8218
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
8219
8219
  /**
8220
8220
  * Moved to `eslint-cssicorn` as `cssicorn/no-nesting-with-mixed-specificity`.
8221
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/deleted-and-deprecated-rules.md#no-nesting-with-mixed-specificity
8221
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/deleted-and-deprecated-rules.md#no-nesting-with-mixed-specificity
8222
8222
  * @deprecated
8223
8223
  */
8224
8224
  'unicorn/no-nesting-with-mixed-specificity'?: Linter.RuleEntry<[]>;
8225
8225
  /**
8226
8226
  * Disallow `new Array()`.
8227
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-new-array.md
8227
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-new-array.md
8228
8228
  */
8229
8229
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
8230
8230
  /**
8231
8231
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
8232
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-new-buffer.md
8232
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-new-buffer.md
8233
8233
  */
8234
8234
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
8235
8235
  /**
8236
8236
  * Disallow non-function values with function-style verb prefixes.
8237
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-non-function-verb-prefix.md
8237
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-non-function-verb-prefix.md
8238
8238
  */
8239
8239
  'unicorn/no-non-function-verb-prefix'?: Linter.RuleEntry<UnicornNoNonFunctionVerbPrefix>;
8240
8240
  /**
8241
8241
  * Disallow non-standard properties on built-in objects.
8242
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-nonstandard-builtin-properties.md
8242
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-nonstandard-builtin-properties.md
8243
8243
  */
8244
8244
  'unicorn/no-nonstandard-builtin-properties'?: Linter.RuleEntry<[]>;
8245
8245
  /**
8246
8246
  * Disallow the use of the `null` literal.
8247
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-null.md
8247
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-null.md
8248
8248
  */
8249
8249
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
8250
8250
  /**
8251
8251
  * Disallow the use of objects as default parameters.
8252
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-object-as-default-parameter.md
8252
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-object-as-default-parameter.md
8253
8253
  */
8254
8254
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
8255
8255
  /**
8256
8256
  * Disallow `Object` methods with `Map` or `Set`.
8257
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-object-methods-with-collections.md
8257
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-object-methods-with-collections.md
8258
8258
  */
8259
8259
  'unicorn/no-object-methods-with-collections'?: Linter.RuleEntry<[]>;
8260
8260
  /**
8261
8261
  * Disallow optional chaining on undeclared variables.
8262
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
8262
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
8263
8263
  */
8264
8264
  'unicorn/no-optional-chaining-on-undeclared-variable'?: Linter.RuleEntry<[]>;
8265
8265
  /**
8266
8266
  * Disallow ineffective `preventDefault()` calls in passive event listeners.
8267
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-prevent-default-in-passive-listener.md
8267
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-prevent-default-in-passive-listener.md
8268
8268
  */
8269
8269
  'unicorn/no-prevent-default-in-passive-listener'?: Linter.RuleEntry<[]>;
8270
8270
  /**
8271
8271
  * Disallow `process.exit()`.
8272
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-process-exit.md
8272
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-process-exit.md
8273
8273
  */
8274
8274
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
8275
8275
  /**
8276
8276
  * Disallow comparisons made redundant by an equality check in the same logical AND.
8277
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-redundant-comparison.md
8277
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-redundant-comparison.md
8278
8278
  */
8279
8279
  'unicorn/no-redundant-comparison'?: Linter.RuleEntry<[]>;
8280
8280
  /**
8281
8281
  * Moved to `eslint-cssicorn` as `cssicorn/no-redundant-nested-style-rules`.
8282
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/deleted-and-deprecated-rules.md#no-redundant-nested-style-rules
8282
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/deleted-and-deprecated-rules.md#no-redundant-nested-style-rules
8283
8283
  * @deprecated
8284
8284
  */
8285
8285
  'unicorn/no-redundant-nested-style-rules'?: Linter.RuleEntry<[]>;
8286
8286
  /**
8287
8287
  * Disallow repeating the same wrapper at every call to a function.
8288
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-repeated-call-wrappers.md
8288
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-repeated-call-wrappers.md
8289
8289
  */
8290
8290
  'unicorn/no-repeated-call-wrappers'?: Linter.RuleEntry<[]>;
8291
8291
  /**
8292
8292
  * Disallow using the return value of `Array#push()` and `Array#unshift()`.
8293
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-return-array-push.md
8293
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-return-array-push.md
8294
8294
  */
8295
8295
  'unicorn/no-return-array-push'?: Linter.RuleEntry<[]>;
8296
8296
  /**
8297
8297
  * Disallow selector syntax in DOM names.
8298
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-selector-as-dom-name.md
8298
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-selector-as-dom-name.md
8299
8299
  */
8300
8300
  'unicorn/no-selector-as-dom-name'?: Linter.RuleEntry<[]>;
8301
8301
  /**
8302
8302
  * Disallow shorthand properties that override related longhand properties.
8303
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-shorthand-property-overrides.md
8303
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-shorthand-property-overrides.md
8304
8304
  */
8305
8305
  'unicorn/no-shorthand-property-overrides'?: Linter.RuleEntry<[]>;
8306
8306
  /**
8307
8307
  * Disallow passing single-element arrays to `Promise` methods.
8308
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-single-promise-in-promise-methods.md
8308
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-single-promise-in-promise-methods.md
8309
8309
  */
8310
8310
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
8311
8311
  /**
8312
8312
  * Disallow classes that only have static members.
8313
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-static-only-class.md
8313
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-static-only-class.md
8314
8314
  */
8315
8315
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
8316
8316
  /**
8317
8317
  * Prefer comparing values directly over subtracting and comparing to `0`.
8318
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-subtraction-comparison.md
8318
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-subtraction-comparison.md
8319
8319
  */
8320
8320
  'unicorn/no-subtraction-comparison'?: Linter.RuleEntry<[]>;
8321
8321
  /**
8322
8322
  * Disallow `then` property.
8323
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-thenable.md
8323
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-thenable.md
8324
8324
  */
8325
8325
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
8326
8326
  /**
8327
8327
  * Disallow assigning `this` to a variable.
8328
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-this-assignment.md
8328
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-this-assignment.md
8329
8329
  */
8330
8330
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
8331
8331
  /**
8332
8332
  * Disallow `this` outside of classes.
8333
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-this-outside-of-class.md
8333
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-this-outside-of-class.md
8334
8334
  */
8335
8335
  'unicorn/no-this-outside-of-class'?: Linter.RuleEntry<[]>;
8336
8336
  /**
8337
8337
  * Disallow assigning to top-level variables from inside functions.
8338
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-top-level-assignment-in-function.md
8338
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-top-level-assignment-in-function.md
8339
8339
  */
8340
8340
  'unicorn/no-top-level-assignment-in-function'?: Linter.RuleEntry<[]>;
8341
8341
  /**
8342
8342
  * Disallow top-level side effects in exported modules.
8343
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-top-level-side-effects.md
8343
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-top-level-side-effects.md
8344
8344
  */
8345
8345
  'unicorn/no-top-level-side-effects'?: Linter.RuleEntry<UnicornNoTopLevelSideEffects>;
8346
8346
  /**
8347
8347
  * Disallow `all` as a transition property.
8348
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-transition-all.md
8348
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-transition-all.md
8349
8349
  */
8350
8350
  'unicorn/no-transition-all'?: Linter.RuleEntry<[]>;
8351
8351
  /**
8352
8352
  * Disallow comparing `undefined` using `typeof`.
8353
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-typeof-undefined.md
8353
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-typeof-undefined.md
8354
8354
  */
8355
8355
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
8356
8356
  /**
8357
8357
  * Disallow referencing methods without calling them.
8358
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-uncalled-method.md
8358
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-uncalled-method.md
8359
8359
  */
8360
8360
  'unicorn/no-uncalled-method'?: Linter.RuleEntry<[]>;
8361
8361
  /**
8362
8362
  * Require class members to be declared.
8363
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-undeclared-class-members.md
8363
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-undeclared-class-members.md
8364
8364
  */
8365
8365
  'unicorn/no-undeclared-class-members'?: Linter.RuleEntry<[]>;
8366
8366
  /**
8367
8367
  * Moved to `eslint-cssicorn` as `cssicorn/no-unknown-annotations`.
8368
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/deleted-and-deprecated-rules.md#no-unknown-css-annotations
8368
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/deleted-and-deprecated-rules.md#no-unknown-css-annotations
8369
8369
  * @deprecated
8370
8370
  */
8371
8371
  'unicorn/no-unknown-css-annotations'?: Linter.RuleEntry<[]>;
8372
8372
  /**
8373
8373
  * Moved to `eslint-cssicorn` as `cssicorn/no-unknown-pseudo-selectors`.
8374
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/deleted-and-deprecated-rules.md#no-unknown-pseudo-selectors
8374
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/deleted-and-deprecated-rules.md#no-unknown-pseudo-selectors
8375
8375
  * @deprecated
8376
8376
  */
8377
8377
  'unicorn/no-unknown-pseudo-selectors'?: Linter.RuleEntry<[]>;
8378
8378
  /**
8379
8379
  * Disallow using `1` as the `depth` argument of `Array#flat()`.
8380
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-unnecessary-array-flat-depth.md
8380
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unnecessary-array-flat-depth.md
8381
8381
  */
8382
8382
  'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
8383
8383
  /**
8384
8384
  * Disallow unnecessary use of `Array#flatMap()`.
8385
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-unnecessary-array-flat-map.md
8385
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unnecessary-array-flat-map.md
8386
8386
  */
8387
8387
  'unicorn/no-unnecessary-array-flat-map'?: Linter.RuleEntry<[]>;
8388
8388
  /**
8389
8389
  * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
8390
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-unnecessary-array-splice-count.md
8390
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unnecessary-array-splice-count.md
8391
8391
  */
8392
8392
  'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
8393
8393
  /**
8394
8394
  * Disallow awaiting non-promise values.
8395
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-unnecessary-await.md
8395
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unnecessary-await.md
8396
8396
  */
8397
8397
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
8398
8398
  /**
8399
8399
  * Disallow unnecessary comparisons against boolean literals.
8400
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-unnecessary-boolean-comparison.md
8400
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unnecessary-boolean-comparison.md
8401
8401
  */
8402
8402
  'unicorn/no-unnecessary-boolean-comparison'?: Linter.RuleEntry<[]>;
8403
8403
  /**
8404
8404
  * Disallow arguments that match their parameter defaults.
8405
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-unnecessary-default-arguments.md
8405
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unnecessary-default-arguments.md
8406
8406
  */
8407
8407
  'unicorn/no-unnecessary-default-arguments'?: Linter.RuleEntry<[]>;
8408
8408
  /**
8409
8409
  * Disallow unnecessary options in `fetch()` and `new Request()`.
8410
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-unnecessary-fetch-options.md
8410
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unnecessary-fetch-options.md
8411
8411
  */
8412
8412
  'unicorn/no-unnecessary-fetch-options'?: Linter.RuleEntry<[]>;
8413
8413
  /**
8414
8414
  * Disallow unnecessary `globalThis` references.
8415
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-unnecessary-global-this.md
8415
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unnecessary-global-this.md
8416
8416
  */
8417
8417
  'unicorn/no-unnecessary-global-this'?: Linter.RuleEntry<[]>;
8418
8418
  /**
8419
8419
  * Disallow unnecessary nested ternary expressions.
8420
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-unnecessary-nested-ternary.md
8420
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unnecessary-nested-ternary.md
8421
8421
  */
8422
8422
  'unicorn/no-unnecessary-nested-ternary'?: Linter.RuleEntry<[]>;
8423
8423
  /**
8424
8424
  * Disallow parameters that receive the same value at every call.
8425
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-unnecessary-parameters.md
8425
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unnecessary-parameters.md
8426
8426
  */
8427
8427
  'unicorn/no-unnecessary-parameters'?: Linter.RuleEntry<UnicornNoUnnecessaryParameters>;
8428
8428
  /**
8429
8429
  * Enforce the use of built-in methods instead of unnecessary polyfills.
8430
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-unnecessary-polyfills.md
8430
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unnecessary-polyfills.md
8431
8431
  */
8432
8432
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
8433
8433
  /**
8434
8434
  * Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
8435
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-unnecessary-slice-end.md
8435
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unnecessary-slice-end.md
8436
8436
  */
8437
8437
  'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
8438
8438
  /**
8439
8439
  * Disallow `Array#splice()` when simpler alternatives exist.
8440
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-unnecessary-splice.md
8440
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unnecessary-splice.md
8441
8441
  */
8442
8442
  'unicorn/no-unnecessary-splice'?: Linter.RuleEntry<[]>;
8443
8443
  /**
8444
8444
  * Disallow `String#trim()` before `String#startsWith()` or `String#endsWith()`.
8445
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-unnecessary-string-trim.md
8445
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unnecessary-string-trim.md
8446
8446
  */
8447
8447
  'unicorn/no-unnecessary-string-trim'?: Linter.RuleEntry<[]>;
8448
8448
  /**
8449
8449
  * Disallow unreadable array destructuring.
8450
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-unreadable-array-destructuring.md
8450
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unreadable-array-destructuring.md
8451
8451
  */
8452
8452
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<UnicornNoUnreadableArrayDestructuring>;
8453
8453
  /**
8454
8454
  * Disallow unreadable iterable expressions in `for…of` and `for await…of` loop headers.
8455
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-unreadable-for-of-expression.md
8455
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unreadable-for-of-expression.md
8456
8456
  */
8457
8457
  'unicorn/no-unreadable-for-of-expression'?: Linter.RuleEntry<[]>;
8458
8458
  /**
8459
8459
  * Disallow unreadable IIFEs.
8460
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-unreadable-iife.md
8460
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unreadable-iife.md
8461
8461
  */
8462
8462
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
8463
8463
  /**
8464
8464
  * Disallow unreadable `new` expressions.
8465
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-unreadable-new-expression.md
8465
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unreadable-new-expression.md
8466
8466
  */
8467
8467
  'unicorn/no-unreadable-new-expression'?: Linter.RuleEntry<[]>;
8468
8468
  /**
8469
8469
  * Disallow unreadable object destructuring.
8470
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-unreadable-object-destructuring.md
8470
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unreadable-object-destructuring.md
8471
8471
  */
8472
8472
  'unicorn/no-unreadable-object-destructuring'?: Linter.RuleEntry<[]>;
8473
8473
  /**
8474
8474
  * Prevent unsafe use of ArrayBuffer view `.buffer`.
8475
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-unsafe-buffer-conversion.md
8475
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unsafe-buffer-conversion.md
8476
8476
  */
8477
8477
  'unicorn/no-unsafe-buffer-conversion'?: Linter.RuleEntry<[]>;
8478
8478
  /**
8479
8479
  * Disallow unsafe DOM HTML APIs.
8480
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-unsafe-dom-html.md
8480
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unsafe-dom-html.md
8481
8481
  */
8482
8482
  'unicorn/no-unsafe-dom-html'?: Linter.RuleEntry<[]>;
8483
8483
  /**
8484
8484
  * Disallow known values that JSON serialization cannot represent faithfully.
8485
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-unsafe-json-serialization.md
8485
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unsafe-json-serialization.md
8486
8486
  */
8487
8487
  'unicorn/no-unsafe-json-serialization'?: Linter.RuleEntry<[]>;
8488
8488
  /**
8489
8489
  * Disallow reading `.value` from `Promise.allSettled()` results without a fulfilled status guard.
8490
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-unsafe-promise-all-settled-values.md
8490
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unsafe-promise-all-settled-values.md
8491
8491
  */
8492
8492
  'unicorn/no-unsafe-promise-all-settled-values'?: Linter.RuleEntry<[]>;
8493
8493
  /**
8494
8494
  * Disallow unsafe values as property keys.
8495
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-unsafe-property-key.md
8495
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unsafe-property-key.md
8496
8496
  */
8497
8497
  'unicorn/no-unsafe-property-key'?: Linter.RuleEntry<[]>;
8498
8498
  /**
8499
8499
  * Disallow interpolation into SQL strings passed to Node’s `node:sqlite` APIs.
8500
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-unsafe-sqlite-interpolation.md
8500
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unsafe-sqlite-interpolation.md
8501
8501
  */
8502
8502
  'unicorn/no-unsafe-sqlite-interpolation'?: Linter.RuleEntry<[]>;
8503
8503
  /**
8504
8504
  * Disallow non-literal replacement values in `String#replace()` and `String#replaceAll()`.
8505
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-unsafe-string-replacement.md
8505
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unsafe-string-replacement.md
8506
8506
  */
8507
8507
  'unicorn/no-unsafe-string-replacement'?: Linter.RuleEntry<[]>;
8508
8508
  /**
8509
8509
  * Moved to `eslint-cssicorn` as `cssicorn/no-unscoped-nesting-selector`.
8510
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/deleted-and-deprecated-rules.md#no-unscoped-css-nesting-selector
8510
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/deleted-and-deprecated-rules.md#no-unscoped-css-nesting-selector
8511
8511
  * @deprecated
8512
8512
  */
8513
8513
  'unicorn/no-unscoped-css-nesting-selector'?: Linter.RuleEntry<[]>;
8514
8514
  /**
8515
8515
  * Replaced by `unicorn/no-unused-builtin-method-return` which covers more cases.
8516
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/deleted-and-deprecated-rules.md#no-unused-array-method-return
8516
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/deleted-and-deprecated-rules.md#no-unused-array-method-return
8517
8517
  * @deprecated
8518
8518
  */
8519
8519
  'unicorn/no-unused-array-method-return'?: Linter.RuleEntry<[]>;
8520
8520
  /**
8521
8521
  * Disallow ignoring the return value of selected built-in methods.
8522
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-unused-builtin-method-return.md
8522
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unused-builtin-method-return.md
8523
8523
  */
8524
8524
  'unicorn/no-unused-builtin-method-return'?: Linter.RuleEntry<[]>;
8525
8525
  /**
8526
8526
  * Disallow discarding lazy iterator helpers.
8527
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-unused-iterator-helper.md
8527
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unused-iterator-helper.md
8528
8528
  */
8529
8529
  'unicorn/no-unused-iterator-helper'?: Linter.RuleEntry<[]>;
8530
8530
  /**
8531
8531
  * Disallow unused object properties.
8532
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-unused-properties.md
8532
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unused-properties.md
8533
8533
  */
8534
8534
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
8535
8535
  /**
8536
8536
  * Disallow passing full URLs to `URLSearchParams`.
8537
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-url-in-search-params.md
8537
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-url-in-search-params.md
8538
8538
  */
8539
8539
  'unicorn/no-url-in-search-params'?: Linter.RuleEntry<[]>;
8540
8540
  /**
8541
8541
  * Disallow unnecessary `Boolean()` casts in array predicate callbacks.
8542
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-useless-boolean-cast.md
8542
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-useless-boolean-cast.md
8543
8543
  */
8544
8544
  'unicorn/no-useless-boolean-cast'?: Linter.RuleEntry<[]>;
8545
8545
  /**
8546
8546
  * Disallow useless type coercions of values that are already of the target type.
8547
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-useless-coercion.md
8547
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-useless-coercion.md
8548
8548
  */
8549
8549
  'unicorn/no-useless-coercion'?: Linter.RuleEntry<[]>;
8550
8550
  /**
8551
8551
  * Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
8552
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-useless-collection-argument.md
8552
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-useless-collection-argument.md
8553
8553
  */
8554
8554
  'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>;
8555
8555
  /**
8556
8556
  * Disallow useless compound assignments such as `x += 0`.
8557
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-useless-compound-assignment.md
8557
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-useless-compound-assignment.md
8558
8558
  */
8559
8559
  'unicorn/no-useless-compound-assignment'?: Linter.RuleEntry<[]>;
8560
8560
  /**
8561
8561
  * Disallow useless concatenation of literals.
8562
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-useless-concat.md
8562
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-useless-concat.md
8563
8563
  */
8564
8564
  'unicorn/no-useless-concat'?: Linter.RuleEntry<[]>;
8565
8565
  /**
8566
8566
  * Disallow useless `continue` statements.
8567
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-useless-continue.md
8567
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-useless-continue.md
8568
8568
  */
8569
8569
  'unicorn/no-useless-continue'?: Linter.RuleEntry<[]>;
8570
8570
  /**
8571
8571
  * Disallow unnecessary existence checks before deletion.
8572
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-useless-delete-check.md
8572
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-useless-delete-check.md
8573
8573
  */
8574
8574
  'unicorn/no-useless-delete-check'?: Linter.RuleEntry<[]>;
8575
8575
  /**
8576
8576
  * Disallow `else` after a statement that exits.
8577
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-useless-else.md
8577
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-useless-else.md
8578
8578
  */
8579
8579
  'unicorn/no-useless-else'?: Linter.RuleEntry<[]>;
8580
8580
  /**
8581
8581
  * Disallow unnecessary `Error.captureStackTrace(…)`.
8582
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-useless-error-capture-stack-trace.md
8582
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-useless-error-capture-stack-trace.md
8583
8583
  */
8584
8584
  'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
8585
8585
  /**
8586
8586
  * Disallow useless fallback when spreading in object literals.
8587
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-useless-fallback-in-spread.md
8587
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-useless-fallback-in-spread.md
8588
8588
  */
8589
8589
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
8590
8590
  /**
8591
8591
  * Disallow unnecessary `.toArray()` on iterators.
8592
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-useless-iterator-to-array.md
8592
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-useless-iterator-to-array.md
8593
8593
  */
8594
8594
  'unicorn/no-useless-iterator-to-array'?: Linter.RuleEntry<[]>;
8595
8595
  /**
8596
8596
  * Disallow useless array length check.
8597
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-useless-length-check.md
8597
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-useless-length-check.md
8598
8598
  */
8599
8599
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
8600
8600
  /**
8601
8601
  * Disallow unnecessary operands in logical expressions involving boolean literals.
8602
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-useless-logical-operand.md
8602
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-useless-logical-operand.md
8603
8603
  */
8604
8604
  'unicorn/no-useless-logical-operand'?: Linter.RuleEntry<[]>;
8605
8605
  /**
8606
8606
  * Disallow useless overrides of class methods.
8607
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-useless-override.md
8607
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-useless-override.md
8608
8608
  */
8609
8609
  'unicorn/no-useless-override'?: Linter.RuleEntry<[]>;
8610
8610
  /**
8611
8611
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
8612
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-useless-promise-resolve-reject.md
8612
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-useless-promise-resolve-reject.md
8613
8613
  */
8614
8614
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
8615
8615
  /**
8616
8616
  * Disallow redundant re-exports.
8617
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-useless-re-export.md
8617
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-useless-re-export.md
8618
8618
  */
8619
8619
  'unicorn/no-useless-re-export'?: Linter.RuleEntry<[]>;
8620
8620
  /**
8621
8621
  * Disallow simple recursive function calls that can be replaced with a loop.
8622
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-useless-recursion.md
8622
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-useless-recursion.md
8623
8623
  */
8624
8624
  'unicorn/no-useless-recursion'?: Linter.RuleEntry<[]>;
8625
8625
  /**
8626
8626
  * Disallow unnecessary `Set` construction around `Set` methods.
8627
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-useless-set-construction.md
8627
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-useless-set-construction.md
8628
8628
  */
8629
8629
  'unicorn/no-useless-set-construction'?: Linter.RuleEntry<[]>;
8630
8630
  /**
8631
8631
  * Disallow unnecessary spread.
8632
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-useless-spread.md
8632
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-useless-spread.md
8633
8633
  */
8634
8634
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
8635
8635
  /**
8636
8636
  * Disallow useless case in switch statements.
8637
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-useless-switch-case.md
8637
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-useless-switch-case.md
8638
8638
  */
8639
8639
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
8640
8640
  /**
8641
8641
  * Disallow useless template literal expressions.
8642
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-useless-template-literals.md
8642
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-useless-template-literals.md
8643
8643
  */
8644
8644
  'unicorn/no-useless-template-literals'?: Linter.RuleEntry<[]>;
8645
8645
  /**
8646
8646
  * Disallow useless `undefined`.
8647
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-useless-undefined.md
8647
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-useless-undefined.md
8648
8648
  */
8649
8649
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
8650
8650
  /**
8651
8651
  * Disallow returning or exporting resources declared with `using`, including through capturing functions.
8652
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-using-resource-escape.md
8652
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-using-resource-escape.md
8653
8653
  */
8654
8654
  'unicorn/no-using-resource-escape'?: Linter.RuleEntry<[]>;
8655
8655
  /**
8656
8656
  * Disallow the bitwise XOR operator where exponentiation was likely intended.
8657
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-xor-as-exponentiation.md
8657
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-xor-as-exponentiation.md
8658
8658
  */
8659
8659
  'unicorn/no-xor-as-exponentiation'?: Linter.RuleEntry<[]>;
8660
8660
  /**
8661
8661
  * Require consistent decimal numbers without redundant zeros.
8662
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-zero-fractions.md
8662
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-zero-fractions.md
8663
8663
  */
8664
8664
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
8665
8665
  /**
8666
8666
  * Enforce proper case for numeric literals.
8667
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/number-literal-case.md
8667
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/number-literal-case.md
8668
8668
  */
8669
8669
  'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
8670
8670
  /**
8671
8671
  * Enforce the style of numeric separators by correctly grouping digits.
8672
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/numeric-separators-style.md
8672
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/numeric-separators-style.md
8673
8673
  */
8674
8674
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
8675
8675
  /**
8676
8676
  * Require assignment operator shorthand where possible.
8677
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/operator-assignment.md
8677
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/operator-assignment.md
8678
8678
  */
8679
8679
  'unicorn/operator-assignment'?: Linter.RuleEntry<UnicornOperatorAssignment>;
8680
8680
  /**
8681
8681
  * Prefer `AbortSignal.any()` over manually forwarding abort events between signals.
8682
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-abort-signal-any.md
8682
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-abort-signal-any.md
8683
8683
  */
8684
8684
  'unicorn/prefer-abort-signal-any'?: Linter.RuleEntry<[]>;
8685
8685
  /**
8686
8686
  * Prefer `AbortSignal.timeout()` over manually aborting an `AbortController` with `setTimeout()`.
8687
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-abort-signal-timeout.md
8687
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-abort-signal-timeout.md
8688
8688
  */
8689
8689
  'unicorn/prefer-abort-signal-timeout'?: Linter.RuleEntry<[]>;
8690
8690
  /**
8691
8691
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
8692
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-add-event-listener.md
8692
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-add-event-listener.md
8693
8693
  */
8694
8694
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
8695
8695
  /**
8696
8696
  * Prefer an options object over a boolean in `.addEventListener()`.
8697
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-add-event-listener-options.md
8697
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-add-event-listener-options.md
8698
8698
  */
8699
8699
  'unicorn/prefer-add-event-listener-options'?: Linter.RuleEntry<[]>;
8700
8700
  /**
8701
8701
  * Prefer `AggregateError` when throwing collected errors.
8702
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-aggregate-error.md
8702
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-aggregate-error.md
8703
8703
  */
8704
8704
  'unicorn/prefer-aggregate-error'?: Linter.RuleEntry<[]>;
8705
8705
  /**
8706
8706
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
8707
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-array-find.md
8707
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-array-find.md
8708
8708
  */
8709
8709
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
8710
8710
  /**
8711
8711
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
8712
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-array-flat.md
8712
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-array-flat.md
8713
8713
  */
8714
8714
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
8715
8715
  /**
8716
8716
  * Prefer `.flatMap(…)` over `.map(…).flat()` and `.filter(…).flatMap(…)`.
8717
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-array-flat-map.md
8717
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-array-flat-map.md
8718
8718
  */
8719
8719
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
8720
8720
  /**
8721
8721
  * Prefer `Array.fromAsync()` over array accumulation loops.
8722
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-array-from-async.md
8722
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-array-from-async.md
8723
8723
  */
8724
8724
  'unicorn/prefer-array-from-async'?: Linter.RuleEntry<[]>;
8725
8725
  /**
8726
8726
  * Prefer using the `Array.from()` mapping function argument.
8727
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-array-from-map.md
8727
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-array-from-map.md
8728
8728
  */
8729
8729
  'unicorn/prefer-array-from-map'?: Linter.RuleEntry<[]>;
8730
8730
  /**
8731
8731
  * Prefer `Array.from({length}, …)` when creating range arrays.
8732
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-array-from-range.md
8732
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-array-from-range.md
8733
8733
  */
8734
8734
  'unicorn/prefer-array-from-range'?: Linter.RuleEntry<[]>;
8735
8735
  /**
8736
8736
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
8737
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-array-index-of.md
8737
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-array-index-of.md
8738
8738
  */
8739
8739
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
8740
8740
  /**
8741
8741
  * Prefer iterating an array directly or with `Array#keys()` over `Array#entries()` when the index or value is unused.
8742
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-array-iterable-methods.md
8742
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-array-iterable-methods.md
8743
8743
  */
8744
8744
  'unicorn/prefer-array-iterable-methods'?: Linter.RuleEntry<[]>;
8745
8745
  /**
8746
8746
  * Prefer last-oriented array methods over `Array#reverse()` or `Array#toReversed()` followed by a method.
8747
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-array-last-methods.md
8747
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-array-last-methods.md
8748
8748
  */
8749
8749
  'unicorn/prefer-array-last-methods'?: Linter.RuleEntry<[]>;
8750
8750
  /**
8751
8751
  * Prefer `Array#slice()` over `Array#splice()` when reading from the returned array.
8752
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-array-slice.md
8752
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-array-slice.md
8753
8753
  */
8754
8754
  'unicorn/prefer-array-slice'?: Linter.RuleEntry<[]>;
8755
8755
  /**
8756
8756
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
8757
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-array-some.md
8757
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-array-some.md
8758
8758
  */
8759
8759
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
8760
8760
  /**
8761
8761
  * Prefer `.at()` method for index access and `String#charAt()`.
8762
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-at.md
8762
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-at.md
8763
8763
  */
8764
8764
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
8765
8765
  /**
8766
8766
  * Prefer `await` over promise chaining.
8767
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-await.md
8767
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-await.md
8768
8768
  */
8769
8769
  'unicorn/prefer-await'?: Linter.RuleEntry<[]>;
8770
8770
  /**
8771
8771
  * Prefer `BigInt` literals over the constructor.
8772
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-bigint-literals.md
8772
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-bigint-literals.md
8773
8773
  */
8774
8774
  'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>;
8775
8775
  /**
8776
8776
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
8777
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-blob-reading-methods.md
8777
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-blob-reading-methods.md
8778
8778
  */
8779
8779
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
8780
8780
  /**
8781
8781
  * Prefer block statements over IIFEs used only for scoping.
8782
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-block-statement-over-iife.md
8782
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-block-statement-over-iife.md
8783
8783
  */
8784
8784
  'unicorn/prefer-block-statement-over-iife'?: Linter.RuleEntry<[]>;
8785
8785
  /**
8786
8786
  * Prefer directly returning boolean expressions over `if` statements.
8787
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-boolean-return.md
8787
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-boolean-return.md
8788
8788
  */
8789
8789
  'unicorn/prefer-boolean-return'?: Linter.RuleEntry<[]>;
8790
8790
  /**
8791
8791
  * Prefer class field declarations over `this` assignments in constructors.
8792
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-class-fields.md
8792
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-class-fields.md
8793
8793
  */
8794
8794
  'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
8795
8795
  /**
8796
8796
  * Prefer using `Element#classList.toggle()` to toggle class names.
8797
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-classlist-toggle.md
8797
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-classlist-toggle.md
8798
8798
  */
8799
8799
  'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>;
8800
8800
  /**
8801
8801
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
8802
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-code-point.md
8802
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-code-point.md
8803
8803
  */
8804
8804
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
8805
8805
  /**
8806
8806
  * Prefer combining consecutive guards with identical exit statements.
8807
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-combined-guards.md
8807
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-combined-guards.md
8808
8808
  */
8809
8809
  'unicorn/prefer-combined-guards'?: Linter.RuleEntry<UnicornPreferCombinedGuards>;
8810
8810
  /**
8811
8811
  * Prefer early continues over conditionals wrapping the remainder of the loop body.
8812
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-continue.md
8812
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-continue.md
8813
8813
  */
8814
8814
  'unicorn/prefer-continue'?: Linter.RuleEntry<UnicornPreferContinue>;
8815
8815
  /**
8816
8816
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
8817
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-date-now.md
8817
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-date-now.md
8818
8818
  */
8819
8819
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
8820
8820
  /**
8821
8821
  * Prefer default parameters and destructuring defaults over reassignment and fallback expressions.
8822
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-default-parameters.md
8822
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-default-parameters.md
8823
8823
  */
8824
8824
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<UnicornPreferDefaultParameters>;
8825
8825
  /**
8826
8826
  * Prefer direct iteration over default iterator method calls.
8827
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-direct-iteration.md
8827
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-direct-iteration.md
8828
8828
  */
8829
8829
  'unicorn/prefer-direct-iteration'?: Linter.RuleEntry<[]>;
8830
8830
  /**
8831
8831
  * Prefer using `using`/`await using` over manual `try`/`finally` resource disposal.
8832
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-dispose.md
8832
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-dispose.md
8833
8833
  */
8834
8834
  'unicorn/prefer-dispose'?: Linter.RuleEntry<[]>;
8835
8835
  /**
8836
8836
  * Prefer `Element#append()` over `Node#appendChild()`.
8837
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-dom-node-append.md
8837
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-dom-node-append.md
8838
8838
  */
8839
8839
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
8840
8840
  /**
8841
8841
  * Renamed to `unicorn/dom-node-dataset`.
8842
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
8842
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
8843
8843
  * @deprecated
8844
8844
  */
8845
8845
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
8846
8846
  /**
8847
8847
  * Prefer `.getHTML()` and `.setHTML()` over `.innerHTML`.
8848
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-dom-node-html-methods.md
8848
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-dom-node-html-methods.md
8849
8849
  */
8850
8850
  'unicorn/prefer-dom-node-html-methods'?: Linter.RuleEntry<UnicornPreferDomNodeHtmlMethods>;
8851
8851
  /**
8852
8852
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
8853
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-dom-node-remove.md
8853
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-dom-node-remove.md
8854
8854
  */
8855
8855
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
8856
8856
  /**
8857
8857
  * Prefer `.replaceChildren()` when replacing DOM children.
8858
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-dom-node-replace-children.md
8858
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-dom-node-replace-children.md
8859
8859
  */
8860
8860
  'unicorn/prefer-dom-node-replace-children'?: Linter.RuleEntry<[]>;
8861
8861
  /**
8862
8862
  * Prefer `.textContent` over `.innerText`.
8863
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-dom-node-text-content.md
8863
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-dom-node-text-content.md
8864
8864
  */
8865
8865
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
8866
8866
  /**
8867
8867
  * Prefer early returns over conditionals wrapping the remainder of the function body.
8868
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-early-return.md
8868
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-early-return.md
8869
8869
  */
8870
8870
  'unicorn/prefer-early-return'?: Linter.RuleEntry<UnicornPreferEarlyReturn>;
8871
8871
  /**
8872
8872
  * Prefer `else if` over adjacent `if` statements with related conditions.
8873
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-else-if.md
8873
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-else-if.md
8874
8874
  */
8875
8875
  'unicorn/prefer-else-if'?: Linter.RuleEntry<[]>;
8876
8876
  /**
8877
8877
  * Prefer `Error.isError()` when checking for errors.
8878
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-error-is-error.md
8878
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-error-is-error.md
8879
8879
  */
8880
8880
  'unicorn/prefer-error-is-error'?: Linter.RuleEntry<[]>;
8881
8881
  /**
8882
8882
  * Prefer escape sequences for irregular whitespace characters.
8883
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-escaped-irregular-whitespace.md
8883
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-escaped-irregular-whitespace.md
8884
8884
  */
8885
8885
  'unicorn/prefer-escaped-irregular-whitespace'?: Linter.RuleEntry<[]>;
8886
8886
  /**
8887
8887
  * Prefer `EventTarget` over `EventEmitter`.
8888
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-event-target.md
8888
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-event-target.md
8889
8889
  */
8890
8890
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
8891
8891
  /**
8892
8892
  * Moved to `eslint-cssicorn` as `cssicorn/prefer-explicit-viewport-units`.
8893
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/deleted-and-deprecated-rules.md#prefer-explicit-viewport-units
8893
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/deleted-and-deprecated-rules.md#prefer-explicit-viewport-units
8894
8894
  * @deprecated
8895
8895
  */
8896
8896
  'unicorn/prefer-explicit-viewport-units'?: Linter.RuleEntry<[]>;
8897
8897
  /**
8898
8898
  * Prefer `export…from` when re-exporting.
8899
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-export-from.md
8899
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-export-from.md
8900
8900
  */
8901
8901
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
8902
8902
  /**
8903
8903
  * Prefer flat `Math.min()` and `Math.max()` calls over nested calls.
8904
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-flat-math-min-max.md
8904
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-flat-math-min-max.md
8905
8905
  */
8906
8906
  'unicorn/prefer-flat-math-min-max'?: Linter.RuleEntry<[]>;
8907
8907
  /**
8908
8908
  * Prefer `.getOrInsertComputed()` when the default value has side effects.
8909
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-get-or-insert-computed.md
8909
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-get-or-insert-computed.md
8910
8910
  */
8911
8911
  'unicorn/prefer-get-or-insert-computed'?: Linter.RuleEntry<[]>;
8912
8912
  /**
8913
8913
  * Prefer global numeric constants over `Number` static properties.
8914
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-global-number-constants.md
8914
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-global-number-constants.md
8915
8915
  */
8916
8916
  'unicorn/prefer-global-number-constants'?: Linter.RuleEntry<[]>;
8917
8917
  /**
8918
8918
  * Prefer `globalThis` over `window`, `self`, and `global`.
8919
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-global-this.md
8919
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-global-this.md
8920
8920
  */
8921
8921
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
8922
8922
  /**
8923
8923
  * Prefer `Object.groupBy()` or `Map.groupBy()` over manual grouping.
8924
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-group-by.md
8924
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-group-by.md
8925
8925
  */
8926
8926
  'unicorn/prefer-group-by'?: Linter.RuleEntry<[]>;
8927
8927
  /**
8928
8928
  * Prefer `.has()` when checking existence.
8929
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-has-check.md
8929
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-has-check.md
8930
8930
  */
8931
8931
  'unicorn/prefer-has-check'?: Linter.RuleEntry<[]>;
8932
8932
  /**
8933
8933
  * Prefer moving code shared by all branches of an `if` statement out of the branches.
8934
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-hoisting-branch-code.md
8934
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-hoisting-branch-code.md
8935
8935
  */
8936
8936
  'unicorn/prefer-hoisting-branch-code'?: Linter.RuleEntry<[]>;
8937
8937
  /**
8938
8938
  * Prefer HTTPS over HTTP.
8939
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-https.md
8939
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-https.md
8940
8940
  */
8941
8941
  'unicorn/prefer-https'?: Linter.RuleEntry<UnicornPreferHttps>;
8942
8942
  /**
8943
8943
  * Prefer identifiers over string literals in import and export specifiers.
8944
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
8944
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
8945
8945
  */
8946
8946
  'unicorn/prefer-identifier-import-export-specifiers'?: Linter.RuleEntry<[]>;
8947
8947
  /**
8948
8948
  * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
8949
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-import-meta-properties.md
8949
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-import-meta-properties.md
8950
8950
  */
8951
8951
  'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
8952
8952
  /**
8953
8953
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
8954
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-includes.md
8954
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-includes.md
8955
8955
  */
8956
8956
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
8957
8957
  /**
8958
8958
  * Prefer `.includes()` over repeated equality comparisons.
8959
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
8959
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
8960
8960
  */
8961
8961
  'unicorn/prefer-includes-over-repeated-comparisons'?: Linter.RuleEntry<UnicornPreferIncludesOverRepeatedComparisons>;
8962
8962
  /**
8963
8963
  * Prefer passing iterables directly to constructors instead of filling empty collections.
8964
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-iterable-in-constructor.md
8964
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-iterable-in-constructor.md
8965
8965
  */
8966
8966
  'unicorn/prefer-iterable-in-constructor'?: Linter.RuleEntry<[]>;
8967
8967
  /**
8968
8968
  * Prefer `Iterator.concat(…)` over temporary spread arrays.
8969
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-iterator-concat.md
8969
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-iterator-concat.md
8970
8970
  */
8971
8971
  'unicorn/prefer-iterator-concat'?: Linter.RuleEntry<[]>;
8972
8972
  /**
8973
8973
  * Prefer iterator helpers over temporary arrays from iterators.
8974
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-iterator-helpers.md
8974
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-iterator-helpers.md
8975
8975
  */
8976
8976
  'unicorn/prefer-iterator-helpers'?: Linter.RuleEntry<[]>;
8977
8977
  /**
8978
8978
  * Prefer `Iterator#toArray()` over temporary arrays from iterator spreads.
8979
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-iterator-to-array.md
8979
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-iterator-to-array.md
8980
8980
  */
8981
8981
  'unicorn/prefer-iterator-to-array'?: Linter.RuleEntry<[]>;
8982
8982
  /**
8983
8983
  * Prefer moving `.toArray()` to the end of iterator helper chains.
8984
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-iterator-to-array-at-end.md
8984
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-iterator-to-array-at-end.md
8985
8985
  */
8986
8986
  'unicorn/prefer-iterator-to-array-at-end'?: Linter.RuleEntry<[]>;
8987
8987
  /**
8988
8988
  * Prefer `Iterator.zip()` over parallel-array indexing.
8989
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-iterator-zip.md
8989
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-iterator-zip.md
8990
8990
  */
8991
8991
  'unicorn/prefer-iterator-zip'?: Linter.RuleEntry<[]>;
8992
8992
  /**
8993
8993
  * Prefer JSON imports over reading and parsing JSON files.
8994
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-json-import.md
8994
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-json-import.md
8995
8995
  */
8996
8996
  'unicorn/prefer-json-import'?: Linter.RuleEntry<[]>;
8997
8997
  /**
8998
8998
  * Renamed to `unicorn/consistent-json-file-read`.
8999
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
8999
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
9000
9000
  * @deprecated
9001
9001
  */
9002
9002
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
9003
9003
  /**
9004
9004
  * Prefer `KeyboardEvent#key` over deprecated keyboard event properties.
9005
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-keyboard-event-key.md
9005
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-keyboard-event-key.md
9006
9006
  */
9007
9007
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
9008
9008
  /**
9009
9009
  * Prefer literal printable ASCII characters over escape sequences.
9010
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-literal-ascii.md
9010
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-literal-ascii.md
9011
9011
  */
9012
9012
  'unicorn/prefer-literal-ascii'?: Linter.RuleEntry<[]>;
9013
9013
  /**
9014
9014
  * Prefer `location.assign()` over assigning to `location.href`.
9015
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-location-assign.md
9015
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-location-assign.md
9016
9016
  */
9017
9017
  'unicorn/prefer-location-assign'?: Linter.RuleEntry<[]>;
9018
9018
  /**
9019
9019
  * Prefer using a logical operator over a ternary.
9020
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-logical-operator-over-ternary.md
9020
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-logical-operator-over-ternary.md
9021
9021
  */
9022
9022
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
9023
9023
  /**
9024
9024
  * Prefer `new Map()` over `Object.fromEntries()` when using the result as a map.
9025
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-map-from-entries.md
9025
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-map-from-entries.md
9026
9026
  */
9027
9027
  'unicorn/prefer-map-from-entries'?: Linter.RuleEntry<[]>;
9028
9028
  /**
9029
9029
  * Prefer `Math.abs()` over manual absolute value expressions and symmetric range checks.
9030
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-math-abs.md
9030
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-math-abs.md
9031
9031
  */
9032
9032
  'unicorn/prefer-math-abs'?: Linter.RuleEntry<[]>;
9033
9033
  /**
9034
9034
  * Prefer `Math` constants over their approximate numeric values.
9035
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-math-constants.md
9035
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-math-constants.md
9036
9036
  */
9037
9037
  'unicorn/prefer-math-constants'?: Linter.RuleEntry<[]>;
9038
9038
  /**
9039
9039
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
9040
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-math-min-max.md
9040
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-math-min-max.md
9041
9041
  */
9042
9042
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
9043
9043
  /**
9044
9044
  * Prefer `Math.trunc()` for truncating numbers.
9045
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-math-trunc.md
9045
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-math-trunc.md
9046
9046
  */
9047
9047
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
9048
9048
  /**
9049
9049
  * Moved to `eslint-cssicorn` as `cssicorn/prefer-media-feature-range-syntax`.
9050
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/deleted-and-deprecated-rules.md#prefer-media-feature-range-syntax
9050
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/deleted-and-deprecated-rules.md#prefer-media-feature-range-syntax
9051
9051
  * @deprecated
9052
9052
  */
9053
9053
  'unicorn/prefer-media-feature-range-syntax'?: Linter.RuleEntry<[]>;
9054
9054
  /**
9055
9055
  * Prefer moving ternaries into the minimal varying part of an expression.
9056
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-minimal-ternary.md
9056
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-minimal-ternary.md
9057
9057
  */
9058
9058
  'unicorn/prefer-minimal-ternary'?: Linter.RuleEntry<UnicornPreferMinimalTernary>;
9059
9059
  /**
9060
9060
  * Prefer modern DOM APIs.
9061
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-modern-dom-apis.md
9061
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-modern-dom-apis.md
9062
9062
  */
9063
9063
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
9064
9064
  /**
9065
9065
  * Prefer modern `Math` APIs over legacy patterns.
9066
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-modern-math-apis.md
9066
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-modern-math-apis.md
9067
9067
  */
9068
9068
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
9069
9069
  /**
9070
9070
  * Prefer JavaScript modules (ESM) over CommonJS.
9071
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-module.md
9071
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-module.md
9072
9072
  */
9073
9073
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
9074
9074
  /**
9075
9075
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
9076
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-native-coercion-functions.md
9076
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-native-coercion-functions.md
9077
9077
  */
9078
9078
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
9079
9079
  /**
9080
9080
  * Prefer negative index over `.length - index` when possible.
9081
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-negative-index.md
9081
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-negative-index.md
9082
9082
  */
9083
9083
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
9084
9084
  /**
9085
9085
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
9086
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-node-protocol.md
9086
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-node-protocol.md
9087
9087
  */
9088
9088
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
9089
9089
  /**
9090
9090
  * Prefer `Number()` over `parseFloat()` and base-10 `parseInt()`.
9091
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-number-coercion.md
9091
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-number-coercion.md
9092
9092
  */
9093
9093
  'unicorn/prefer-number-coercion'?: Linter.RuleEntry<[]>;
9094
9094
  /**
9095
9095
  * Prefer `Number.isSafeInteger()` over integer checks.
9096
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-number-is-safe-integer.md
9096
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-number-is-safe-integer.md
9097
9097
  */
9098
9098
  'unicorn/prefer-number-is-safe-integer'?: Linter.RuleEntry<[]>;
9099
9099
  /**
9100
9100
  * Prefer `Number` static methods over global functions and optionally static properties over global constants.
9101
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-number-properties.md
9101
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-number-properties.md
9102
9102
  */
9103
9103
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
9104
9104
  /**
9105
9105
  * Prefer `Object.defineProperties()` over multiple `Object.defineProperty()` calls.
9106
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-object-define-properties.md
9106
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-object-define-properties.md
9107
9107
  */
9108
9108
  'unicorn/prefer-object-define-properties'?: Linter.RuleEntry<[]>;
9109
9109
  /**
9110
9110
  * Prefer object destructuring defaults over default object literals with spread.
9111
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-object-destructuring-defaults.md
9111
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-object-destructuring-defaults.md
9112
9112
  */
9113
9113
  'unicorn/prefer-object-destructuring-defaults'?: Linter.RuleEntry<[]>;
9114
9114
  /**
9115
9115
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
9116
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-object-from-entries.md
9116
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-object-from-entries.md
9117
9117
  */
9118
9118
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
9119
9119
  /**
9120
9120
  * Prefer the most specific `Object` iterable method.
9121
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-object-iterable-methods.md
9121
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-object-iterable-methods.md
9122
9122
  */
9123
9123
  'unicorn/prefer-object-iterable-methods'?: Linter.RuleEntry<[]>;
9124
9124
  /**
9125
9125
  * Prefer observer APIs over resize and scroll listeners with layout reads.
9126
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-observer-apis.md
9126
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-observer-apis.md
9127
9127
  */
9128
9128
  'unicorn/prefer-observer-apis'?: Linter.RuleEntry<[]>;
9129
9129
  /**
9130
9130
  * Prefer omitting the `catch` binding parameter.
9131
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-optional-catch-binding.md
9131
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-optional-catch-binding.md
9132
9132
  */
9133
9133
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
9134
+ /**
9135
+ * Prefer an options object over optional positional parameters.
9136
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-options-parameter.md
9137
+ */
9138
+ 'unicorn/prefer-options-parameter'?: Linter.RuleEntry<UnicornPreferOptionsParameter>;
9134
9139
  /**
9135
9140
  * Prefer `Path2D` for repeatedly drawn canvas paths.
9136
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-path2d.md
9141
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-path2d.md
9137
9142
  */
9138
9143
  'unicorn/prefer-path2d'?: Linter.RuleEntry<[]>;
9139
9144
  /**
9140
9145
  * Prefer private class fields over the underscore-prefix convention.
9141
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-private-class-fields.md
9146
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-private-class-fields.md
9142
9147
  */
9143
9148
  'unicorn/prefer-private-class-fields'?: Linter.RuleEntry<[]>;
9144
9149
  /**
9145
9150
  * Prefer `Promise.resolve()` and `Promise.reject()` over trivial `new Promise()` calls.
9146
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-promise-static-methods.md
9151
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-promise-static-methods.md
9147
9152
  */
9148
9153
  'unicorn/prefer-promise-static-methods'?: Linter.RuleEntry<[]>;
9149
9154
  /**
9150
9155
  * Prefer `Promise.try()` over promise-wrapping boilerplate.
9151
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-promise-try.md
9156
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-promise-try.md
9152
9157
  */
9153
9158
  'unicorn/prefer-promise-try'?: Linter.RuleEntry<[]>;
9154
9159
  /**
9155
9160
  * Prefer `Promise.withResolvers()` when extracting resolver functions from `new Promise()`.
9156
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-promise-with-resolvers.md
9161
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-promise-with-resolvers.md
9157
9162
  */
9158
9163
  'unicorn/prefer-promise-with-resolvers'?: Linter.RuleEntry<[]>;
9159
9164
  /**
9160
9165
  * Prefer borrowing methods from the prototype instead of the instance.
9161
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-prototype-methods.md
9166
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-prototype-methods.md
9162
9167
  */
9163
9168
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
9164
9169
  /**
9165
9170
  * Prefer `.querySelector()` and `.querySelectorAll()` over older DOM query methods.
9166
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-query-selector.md
9171
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-query-selector.md
9167
9172
  */
9168
9173
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<UnicornPreferQuerySelector>;
9169
9174
  /**
9170
9175
  * Prefer `queueMicrotask()` over `process.nextTick()`, `setImmediate()`, and `setTimeout(…, 0)`.
9171
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-queue-microtask.md
9176
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-queue-microtask.md
9172
9177
  */
9173
9178
  'unicorn/prefer-queue-microtask'?: Linter.RuleEntry<UnicornPreferQueueMicrotask>;
9174
9179
  /**
9175
9180
  * Prefer `Reflect.apply()` over `Function#apply()`.
9176
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-reflect-apply.md
9181
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-reflect-apply.md
9177
9182
  */
9178
9183
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
9179
9184
  /**
9180
9185
  * Prefer `RegExp.escape()` for escaping strings to use in regular expressions.
9181
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-regexp-escape.md
9186
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-regexp-escape.md
9182
9187
  */
9183
9188
  'unicorn/prefer-regexp-escape'?: Linter.RuleEntry<[]>;
9189
+ /**
9190
+ * Prefer `RegExp#exec()` over `String#match()` for non-global regular expressions.
9191
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-regexp-exec.md
9192
+ */
9193
+ 'unicorn/prefer-regexp-exec'?: Linter.RuleEntry<[]>;
9184
9194
  /**
9185
9195
  * Prefer `RegExp#test()` over `String#match()`, `String#search()`, and `RegExp#exec()`.
9186
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-regexp-test.md
9196
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-regexp-test.md
9187
9197
  */
9188
9198
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
9189
9199
  /**
9190
9200
  * Prefer `Response.json()` over `new Response(JSON.stringify())`.
9191
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-response-static-json.md
9201
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-response-static-json.md
9192
9202
  */
9193
9203
  'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>;
9194
9204
  /**
9195
9205
  * Prefer `:scope` when using element query selector methods.
9196
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-scoped-selector.md
9206
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-scoped-selector.md
9197
9207
  */
9198
9208
  'unicorn/prefer-scoped-selector'?: Linter.RuleEntry<[]>;
9199
9209
  /**
9200
9210
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
9201
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-set-has.md
9211
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-set-has.md
9202
9212
  */
9203
9213
  'unicorn/prefer-set-has'?: Linter.RuleEntry<UnicornPreferSetHas>;
9204
9214
  /**
9205
9215
  * Prefer `Set` methods for Set operations.
9206
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-set-methods.md
9216
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-set-methods.md
9207
9217
  */
9208
9218
  'unicorn/prefer-set-methods'?: Linter.RuleEntry<[]>;
9209
9219
  /**
9210
9220
  * Prefer using `Set#size` instead of `Array#length`.
9211
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-set-size.md
9221
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-set-size.md
9212
9222
  */
9213
9223
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
9214
9224
  /**
9215
9225
  * Prefer arrow function properties over methods with a single return.
9216
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-short-arrow-method.md
9226
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-short-arrow-method.md
9217
9227
  */
9218
9228
  'unicorn/prefer-short-arrow-method'?: Linter.RuleEntry<UnicornPreferShortArrowMethod>;
9219
9229
  /**
9220
9230
  * Prefer shorter alternatives to Unicode escape sequences.
9221
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-short-escape-sequences.md
9231
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-short-escape-sequences.md
9222
9232
  */
9223
9233
  'unicorn/prefer-short-escape-sequences'?: Linter.RuleEntry<[]>;
9224
9234
  /**
9225
9235
  * Prefer simple conditions first in logical expressions.
9226
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-simple-condition-first.md
9236
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-simple-condition-first.md
9227
9237
  */
9228
9238
  'unicorn/prefer-simple-condition-first'?: Linter.RuleEntry<[]>;
9229
9239
  /**
9230
9240
  * Prefer a simple comparison function for `Array#sort()`.
9231
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-simple-sort-comparator.md
9241
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-simple-sort-comparator.md
9232
9242
  */
9233
9243
  'unicorn/prefer-simple-sort-comparator'?: Linter.RuleEntry<[]>;
9234
9244
  /**
9235
9245
  * Prefer simplified conditions.
9236
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-simplified-conditions.md
9246
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-simplified-conditions.md
9237
9247
  */
9238
9248
  'unicorn/prefer-simplified-conditions'?: Linter.RuleEntry<UnicornPreferSimplifiedConditions>;
9239
9249
  /**
9240
9250
  * Prefer a single `Array#some()` or `Array#every()` with a combined predicate.
9241
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-single-array-predicate.md
9251
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-single-array-predicate.md
9242
9252
  */
9243
9253
  'unicorn/prefer-single-array-predicate'?: Linter.RuleEntry<[]>;
9244
9254
  /**
9245
9255
  * Enforce combining multiple `Array#{push,unshift}()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
9246
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-single-call.md
9256
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-single-call.md
9247
9257
  */
9248
9258
  'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
9249
9259
  /**
9250
9260
  * Prefer a single object destructuring declaration per local const source.
9251
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-single-object-destructuring.md
9261
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-single-object-destructuring.md
9252
9262
  */
9253
9263
  'unicorn/prefer-single-object-destructuring'?: Linter.RuleEntry<[]>;
9254
9264
  /**
9255
9265
  * Enforce combining multiple single-character replacements into a single `String#replaceAll()` with a regular expression.
9256
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-single-replace.md
9266
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-single-replace.md
9257
9267
  */
9258
9268
  'unicorn/prefer-single-replace'?: Linter.RuleEntry<[]>;
9259
9269
  /**
9260
9270
  * Prefer declaring variables and type aliases in the smallest possible scope.
9261
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-smaller-scope.md
9271
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-smaller-scope.md
9262
9272
  */
9263
- 'unicorn/prefer-smaller-scope'?: Linter.RuleEntry<[]>;
9273
+ 'unicorn/prefer-smaller-scope'?: Linter.RuleEntry<UnicornPreferSmallerScope>;
9264
9274
  /**
9265
9275
  * Prefer `String#split()` with a limit.
9266
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-split-limit.md
9276
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-split-limit.md
9267
9277
  */
9268
9278
  'unicorn/prefer-split-limit'?: Linter.RuleEntry<[]>;
9269
9279
  /**
9270
9280
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()`, and trivial `for…of` copies.
9271
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-spread.md
9281
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-spread.md
9272
9282
  */
9273
9283
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
9274
9284
  /**
9275
9285
  * Prefer `String#matchAll()` over `RegExp#exec()` loops.
9276
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-string-match-all.md
9286
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-string-match-all.md
9277
9287
  */
9278
9288
  'unicorn/prefer-string-match-all'?: Linter.RuleEntry<[]>;
9279
9289
  /**
9280
9290
  * Prefer `String#padStart()` and `String#padEnd()` over manual string padding.
9281
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-string-pad-start-end.md
9291
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-string-pad-start-end.md
9282
9292
  */
9283
9293
  'unicorn/prefer-string-pad-start-end'?: Linter.RuleEntry<[]>;
9284
9294
  /**
9285
9295
  * Prefer using the `String.raw` tag to avoid escaping `\`.
9286
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-string-raw.md
9296
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-string-raw.md
9287
9297
  */
9288
9298
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
9289
9299
  /**
9290
9300
  * Prefer `String#repeat()` for repeated whitespace.
9291
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-string-repeat.md
9301
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-string-repeat.md
9292
9302
  */
9293
9303
  'unicorn/prefer-string-repeat'?: Linter.RuleEntry<UnicornPreferStringRepeat>;
9294
9304
  /**
9295
9305
  * Prefer `String#replaceAll()` over regex searches with the global flag and `String#split().join()`.
9296
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-string-replace-all.md
9306
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-string-replace-all.md
9297
9307
  */
9298
9308
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
9299
9309
  /**
9300
9310
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
9301
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-string-slice.md
9311
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-string-slice.md
9302
9312
  */
9303
9313
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
9304
9314
  /**
9305
9315
  * Prefer `String#startsWith()` & `String#endsWith()` over regexes, `String#indexOf() === 0`, and slice checks.
9306
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-string-starts-ends-with.md
9316
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-string-starts-ends-with.md
9307
9317
  */
9308
9318
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
9309
9319
  /**
9310
9320
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
9311
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-string-trim-start-end.md
9321
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-string-trim-start-end.md
9312
9322
  */
9313
9323
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
9314
9324
  /**
9315
9325
  * Prefer using `structuredClone` to create a deep clone.
9316
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-structured-clone.md
9326
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-structured-clone.md
9317
9327
  */
9318
9328
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
9319
9329
  /**
9320
9330
  * Prefer `switch` over multiple `else-if`.
9321
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-switch.md
9331
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-switch.md
9322
9332
  */
9323
9333
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
9324
9334
  /**
9325
9335
  * Prefer `Temporal` over `Date`.
9326
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-temporal.md
9336
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-temporal.md
9327
9337
  */
9328
9338
  'unicorn/prefer-temporal'?: Linter.RuleEntry<UnicornPreferTemporal>;
9329
9339
  /**
9330
9340
  * Prefer direct Temporal conversion methods.
9331
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-temporal-conversion.md
9341
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-temporal-conversion.md
9332
9342
  */
9333
9343
  'unicorn/prefer-temporal-conversion'?: Linter.RuleEntry<[]>;
9334
9344
  /**
9335
9345
  * Prefer ternary expressions over simple `if` statements.
9336
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-ternary.md
9346
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-ternary.md
9337
9347
  */
9338
9348
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
9339
9349
  /**
9340
9350
  * Prefer `.then().catch()` over `.then(…, …)` for error handling.
9341
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-then-catch.md
9351
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-then-catch.md
9342
9352
  */
9343
9353
  'unicorn/prefer-then-catch'?: Linter.RuleEntry<[]>;
9344
9354
  /**
9345
9355
  * Prefer using `Element#toggleAttribute()` to toggle attributes.
9346
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-toggle-attribute.md
9356
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-toggle-attribute.md
9347
9357
  */
9348
9358
  'unicorn/prefer-toggle-attribute'?: Linter.RuleEntry<[]>;
9349
9359
  /**
9350
9360
  * Prefer top-level await over top-level promises and async function calls.
9351
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-top-level-await.md
9361
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-top-level-await.md
9352
9362
  */
9353
9363
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
9354
9364
  /**
9355
9365
  * Enforce throwing `TypeError` in type checking conditions.
9356
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-type-error.md
9366
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-type-error.md
9357
9367
  */
9358
9368
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
9359
9369
  /**
9360
9370
  * Require type literals to be last in union types.
9361
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-type-literal-last.md
9371
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-type-literal-last.md
9362
9372
  */
9363
9373
  'unicorn/prefer-type-literal-last'?: Linter.RuleEntry<[]>;
9364
9374
  /**
9365
9375
  * Prefer `Uint8Array#toBase64()` and `Uint8Array.fromBase64()` over legacy base64 conversions and manual postprocessing.
9366
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-uint8array-base64.md
9376
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-uint8array-base64.md
9367
9377
  */
9368
- 'unicorn/prefer-uint8array-base64'?: Linter.RuleEntry<[]>;
9378
+ 'unicorn/prefer-uint8array-base64'?: Linter.RuleEntry<UnicornPreferUint8ArrayBase64>;
9369
9379
  /**
9370
9380
  * Prefer `Uint8Array#toHex()` and `Uint8Array.fromHex()` over manual and Buffer hex conversions.
9371
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-uint8array-hex.md
9381
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-uint8array-hex.md
9372
9382
  */
9373
- 'unicorn/prefer-uint8array-hex'?: Linter.RuleEntry<[]>;
9383
+ 'unicorn/prefer-uint8array-hex'?: Linter.RuleEntry<UnicornPreferUint8ArrayHex>;
9374
9384
  /**
9375
9385
  * Prefer the unary minus operator over multiplying or dividing by `-1`.
9376
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-unary-minus.md
9386
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-unary-minus.md
9377
9387
  */
9378
9388
  'unicorn/prefer-unary-minus'?: Linter.RuleEntry<[]>;
9379
9389
  /**
9380
9390
  * Prefer Unicode code point escapes over legacy escape sequences.
9381
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-unicode-code-point-escapes.md
9391
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-unicode-code-point-escapes.md
9382
9392
  */
9383
9393
  'unicorn/prefer-unicode-code-point-escapes'?: Linter.RuleEntry<[]>;
9384
9394
  /**
9385
9395
  * Prefer `URL.canParse()` over constructing a `URL` in a try/catch for validation.
9386
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-url-can-parse.md
9396
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-url-can-parse.md
9387
9397
  */
9388
9398
  'unicorn/prefer-url-can-parse'?: Linter.RuleEntry<[]>;
9389
9399
  /**
9390
9400
  * Prefer `URL#href` over stringifying a `URL`.
9391
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-url-href.md
9401
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-url-href.md
9392
9402
  */
9393
9403
  'unicorn/prefer-url-href'?: Linter.RuleEntry<[]>;
9394
9404
  /**
9395
9405
  * Prefer `URLSearchParams` over manually splitting query strings.
9396
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-url-search-parameters.md
9406
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-url-search-parameters.md
9397
9407
  */
9398
9408
  'unicorn/prefer-url-search-parameters'?: Linter.RuleEntry<[]>;
9399
9409
  /**
9400
9410
  * Prefer putting the condition in the while statement.
9401
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-while-loop-condition.md
9411
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-while-loop-condition.md
9402
9412
  */
9403
9413
  'unicorn/prefer-while-loop-condition'?: Linter.RuleEntry<[]>;
9404
9414
  /**
9405
9415
  * Renamed to `unicorn/name-replacements`.
9406
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
9416
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
9407
9417
  * @deprecated
9408
9418
  */
9409
9419
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<[]>;
9410
9420
  /**
9411
9421
  * Enforce consistent relative URL style.
9412
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/relative-url-style.md
9422
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/relative-url-style.md
9413
9423
  */
9414
9424
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
9415
9425
  /**
9416
9426
  * Enforce using the separator argument with `Array#join()`.
9417
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/require-array-join-separator.md
9427
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/require-array-join-separator.md
9418
9428
  */
9419
9429
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
9420
9430
  /**
9421
9431
  * Require a compare function when calling `Array#sort()` or `Array#toSorted()`.
9422
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/require-array-sort-compare.md
9432
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/require-array-sort-compare.md
9423
9433
  */
9424
9434
  'unicorn/require-array-sort-compare'?: Linter.RuleEntry<[]>;
9425
9435
  /**
9426
9436
  * Require `CSS.escape()` for interpolated values in CSS selectors.
9427
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/require-css-escape.md
9437
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/require-css-escape.md
9428
9438
  */
9429
9439
  'unicorn/require-css-escape'?: Linter.RuleEntry<UnicornRequireCssEscape>;
9430
9440
  /**
9431
9441
  * Require configured YAML frontmatter fields.
9432
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/require-frontmatter-fields.md
9442
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/require-frontmatter-fields.md
9433
9443
  */
9434
9444
  'unicorn/require-frontmatter-fields'?: Linter.RuleEntry<UnicornRequireFrontmatterFields>;
9435
9445
  /**
9436
9446
  * Require non-empty module attributes for imports and exports
9437
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/require-module-attributes.md
9447
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/require-module-attributes.md
9438
9448
  */
9439
9449
  'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>;
9440
9450
  /**
9441
9451
  * Require non-empty specifier list in import and export statements.
9442
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/require-module-specifiers.md
9452
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/require-module-specifiers.md
9443
9453
  */
9444
9454
  'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
9445
9455
  /**
9446
9456
  * Enforce using the digits argument with `Number#toFixed()`.
9447
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/require-number-to-fixed-digits-argument.md
9457
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/require-number-to-fixed-digits-argument.md
9448
9458
  */
9449
9459
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
9450
9460
  /**
9451
9461
  * Require passive event listeners for high-frequency events.
9452
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/require-passive-events.md
9462
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/require-passive-events.md
9453
9463
  */
9454
9464
  'unicorn/require-passive-events'?: Linter.RuleEntry<[]>;
9455
9465
  /**
9456
9466
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
9457
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/require-post-message-target-origin.md
9467
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/require-post-message-target-origin.md
9458
9468
  */
9459
9469
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
9460
9470
  /**
9461
9471
  * Require boolean-returning Proxy traps to return booleans.
9462
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/require-proxy-trap-boolean-return.md
9472
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/require-proxy-trap-boolean-return.md
9463
9473
  */
9464
9474
  'unicorn/require-proxy-trap-boolean-return'?: Linter.RuleEntry<[]>;
9475
+ /**
9476
+ * Require parentheses around complex spread arguments.
9477
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/require-spread-parentheses.md
9478
+ */
9479
+ 'unicorn/require-spread-parentheses'?: Linter.RuleEntry<[]>;
9465
9480
  /**
9466
9481
  * Require streaming decoding of fetch-body chunks with `TextDecoder`.
9467
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/require-text-decoder-streaming.md
9482
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/require-text-decoder-streaming.md
9468
9483
  */
9469
9484
  'unicorn/require-text-decoder-streaming'?: Linter.RuleEntry<[]>;
9470
9485
  /**
9471
9486
  * Enforce a consistent style for single-line block comments.
9472
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/single-line-block-comment-style.md
9487
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/single-line-block-comment-style.md
9473
9488
  */
9474
9489
  'unicorn/single-line-block-comment-style'?: Linter.RuleEntry<UnicornSingleLineBlockCommentStyle>;
9475
9490
  /**
9476
9491
  * Enforce better string content.
9477
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/string-content.md
9492
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/string-content.md
9478
9493
  */
9479
9494
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
9480
9495
  /**
9481
9496
  * Enforce consistent brace style for `case` clauses.
9482
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/switch-case-braces.md
9497
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/switch-case-braces.md
9483
9498
  */
9484
9499
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
9485
9500
  /**
9486
9501
  * Enforce consistent `break`/`return`/`continue`/`throw` position in `case` clauses.
9487
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/switch-case-break-position.md
9502
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/switch-case-break-position.md
9488
9503
  */
9489
9504
  'unicorn/switch-case-break-position'?: Linter.RuleEntry<[]>;
9490
9505
  /**
9491
9506
  * Fix whitespace-insensitive template indentation.
9492
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/template-indent.md
9507
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/template-indent.md
9493
9508
  */
9494
9509
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
9495
9510
  /**
9496
9511
  * Enforce consistent case for text encoding identifiers.
9497
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/text-encoding-identifier-case.md
9512
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/text-encoding-identifier-case.md
9498
9513
  */
9499
9514
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
9500
9515
  /**
9501
9516
  * Require `new` when creating an error.
9502
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/throw-new-error.md
9517
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/throw-new-error.md
9503
9518
  */
9504
9519
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
9505
9520
  /**
9506
9521
  * Limit the complexity of `try` blocks.
9507
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/try-complexity.md
9522
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/try-complexity.md
9508
9523
  */
9509
9524
  'unicorn/try-complexity'?: Linter.RuleEntry<UnicornTryComplexity>;
9510
9525
  /**
@@ -10126,6 +10141,11 @@ Backward pagination arguments
10126
10141
  * @see https://github.com/marcalexiei/eslint-zod/blob/HEAD/plugins/eslint-plugin-zod/docs/rules/consistent-import-source.md
10127
10142
  */
10128
10143
  'zod/consistent-import-source'?: Linter.RuleEntry<ZodConsistentImportSource>;
10144
+ /**
10145
+ * Enforce consistent Zod object property key style
10146
+ * @see https://github.com/marcalexiei/eslint-zod/blob/HEAD/plugins/eslint-plugin-zod/docs/rules/consistent-object-property-key-style.md
10147
+ */
10148
+ 'zod/consistent-object-property-key-style'?: Linter.RuleEntry<ZodConsistentObjectPropertyKeyStyle>;
10129
10149
  /**
10130
10150
  * Enforce consistent usage of Zod schema methods
10131
10151
  * @see https://github.com/marcalexiei/eslint-zod/blob/HEAD/plugins/eslint-plugin-zod/docs/rules/consistent-object-schema-type.md
@@ -10221,6 +10241,11 @@ Backward pagination arguments
10221
10241
  * @see https://github.com/marcalexiei/eslint-zod/blob/HEAD/plugins/eslint-plugin-zod/docs/rules/no-promise-schema.md
10222
10242
  */
10223
10243
  'zod/no-promise-schema'?: Linter.RuleEntry<[]>;
10244
+ /**
10245
+ * Disallow reshaping an object schema after a refinement, which throws at runtime
10246
+ * @see https://github.com/marcalexiei/eslint-zod/blob/HEAD/plugins/eslint-plugin-zod/docs/rules/no-reshape-on-refined-object.md
10247
+ */
10248
+ 'zod/no-reshape-on-refined-object'?: Linter.RuleEntry<[]>;
10224
10249
  /**
10225
10250
  * Disallow deprecated `.isNullable()` on a Zod schema; use `safeParse(null).success` instead.
10226
10251
  * @see https://github.com/marcalexiei/eslint-zod/blob/HEAD/plugins/eslint-plugin-zod/docs/rules/no-schema-with-is-nullable.md
@@ -14398,7 +14423,7 @@ type StylisticCurlyNewline = [] | [(("always" | "never") | {
14398
14423
  // ----- stylistic/dot-location -----
14399
14424
  type StylisticDotLocation = [] | [("object" | "property")];
14400
14425
  // ----- stylistic/eol-last -----
14401
- type StylisticEolLast = [] | [("always" | "never" | "unix" | "windows")];
14426
+ type StylisticEolLast = [] | [("always" | "never")];
14402
14427
  // ----- stylistic/exp-jsx-props-style -----
14403
14428
  type StylisticExpJsxPropsStyle = [] | [{
14404
14429
  singleLine?: {
@@ -14409,51 +14434,6 @@ type StylisticExpJsxPropsStyle = [] | [{
14409
14434
  maxItemsPerLine?: number;
14410
14435
  };
14411
14436
  }];
14412
- // ----- stylistic/exp-list-style -----
14413
- type StylisticExpListStyle = [] | [{
14414
- singleLine?: _StylisticExpListStyle_SingleLineConfig;
14415
- multiLine?: _StylisticExpListStyle_MultiLineConfig;
14416
- overrides?: {
14417
- "()"?: (_StylisticExpListStyle_BaseConfig | "off");
14418
- "[]"?: (_StylisticExpListStyle_BaseConfig | "off");
14419
- "{}"?: (_StylisticExpListStyle_BaseConfig | "off");
14420
- "<>"?: (_StylisticExpListStyle_BaseConfig | "off");
14421
- ArrayExpression?: (_StylisticExpListStyle_BaseConfig | "off");
14422
- ArrayPattern?: (_StylisticExpListStyle_BaseConfig | "off");
14423
- ArrowFunctionExpression?: (_StylisticExpListStyle_BaseConfig | "off");
14424
- CallExpression?: (_StylisticExpListStyle_BaseConfig | "off");
14425
- ExportNamedDeclaration?: (_StylisticExpListStyle_BaseConfig | "off");
14426
- FunctionDeclaration?: (_StylisticExpListStyle_BaseConfig | "off");
14427
- FunctionExpression?: (_StylisticExpListStyle_BaseConfig | "off");
14428
- IfStatement?: (_StylisticExpListStyle_BaseConfig | "off");
14429
- ImportAttributes?: (_StylisticExpListStyle_BaseConfig | "off");
14430
- ImportDeclaration?: (_StylisticExpListStyle_BaseConfig | "off");
14431
- JSONArrayExpression?: (_StylisticExpListStyle_BaseConfig | "off");
14432
- JSONObjectExpression?: (_StylisticExpListStyle_BaseConfig | "off");
14433
- NewExpression?: (_StylisticExpListStyle_BaseConfig | "off");
14434
- ObjectExpression?: (_StylisticExpListStyle_BaseConfig | "off");
14435
- ObjectPattern?: (_StylisticExpListStyle_BaseConfig | "off");
14436
- TSDeclareFunction?: (_StylisticExpListStyle_BaseConfig | "off");
14437
- TSEnumBody?: (_StylisticExpListStyle_BaseConfig | "off");
14438
- TSFunctionType?: (_StylisticExpListStyle_BaseConfig | "off");
14439
- TSInterfaceBody?: (_StylisticExpListStyle_BaseConfig | "off");
14440
- TSTupleType?: (_StylisticExpListStyle_BaseConfig | "off");
14441
- TSTypeLiteral?: (_StylisticExpListStyle_BaseConfig | "off");
14442
- TSTypeParameterDeclaration?: (_StylisticExpListStyle_BaseConfig | "off");
14443
- TSTypeParameterInstantiation?: (_StylisticExpListStyle_BaseConfig | "off");
14444
- };
14445
- }];
14446
- interface _StylisticExpListStyle_SingleLineConfig {
14447
- spacing?: ("always" | "never");
14448
- maxItems?: number;
14449
- }
14450
- interface _StylisticExpListStyle_MultiLineConfig {
14451
- minItems?: number;
14452
- }
14453
- interface _StylisticExpListStyle_BaseConfig {
14454
- singleLine?: _StylisticExpListStyle_SingleLineConfig;
14455
- multiline?: _StylisticExpListStyle_MultiLineConfig;
14456
- }
14457
14437
  // ----- stylistic/function-call-argument-newline -----
14458
14438
  type StylisticFunctionCallArgumentNewline = [] | [("always" | "never" | "consistent")];
14459
14439
  // ----- stylistic/function-call-spacing -----
@@ -14528,10 +14508,10 @@ type StylisticIndent = [] | [("tab" | number)] | [("tab" | number), {
14528
14508
  AwaitExpression?: boolean;
14529
14509
  NewExpression?: boolean;
14530
14510
  });
14531
- offsetTernaryExpressionsOffsetCallExpressions?: boolean;
14532
14511
  ignoredNodes?: string[];
14533
14512
  ignoreComments?: boolean;
14534
14513
  tabLength?: number;
14514
+ jsx?: (number | "half");
14535
14515
  }];
14536
14516
  // ----- stylistic/indent-binary-ops -----
14537
14517
  type StylisticIndentBinaryOps = [] | [(number | "tab")];
@@ -14608,11 +14588,6 @@ type StylisticJsxEqualsSpacing = [] | [("always" | "never")];
14608
14588
  type StylisticJsxFirstPropNewLine = [] | [("always" | "never" | "multiline" | "multiline-multiprop" | "multiprop")];
14609
14589
  // ----- stylistic/jsx-function-call-newline -----
14610
14590
  type StylisticJsxFunctionCallNewline = [] | [("always" | "multiline")];
14611
- // ----- stylistic/jsx-indent -----
14612
- type StylisticJsxIndent = [] | [("tab" | number)] | [("tab" | number), {
14613
- checkAttributes?: boolean;
14614
- indentLogicalExpressions?: boolean;
14615
- }];
14616
14591
  // ----- stylistic/jsx-indent-props -----
14617
14592
  type StylisticJsxIndentProps = [] | [(("tab" | "first") | number | {
14618
14593
  indentMode?: (("tab" | "first") | number);
@@ -14651,18 +14626,6 @@ type StylisticJsxSelfClosingComp = [] | [{
14651
14626
  component?: boolean;
14652
14627
  html?: boolean;
14653
14628
  }];
14654
- // ----- stylistic/jsx-sort-props -----
14655
- type StylisticJsxSortProps = [] | [{
14656
- callbacksLast?: boolean;
14657
- shorthandFirst?: boolean;
14658
- shorthandLast?: boolean;
14659
- multiline?: ("ignore" | "first" | "last");
14660
- ignoreCase?: boolean;
14661
- noSortAlphabetically?: boolean;
14662
- reservedFirst?: (string[] | boolean);
14663
- reservedLast?: string[];
14664
- locale?: string;
14665
- }];
14666
14629
  // ----- stylistic/jsx-tag-spacing -----
14667
14630
  type StylisticJsxTagSpacing = [] | [{
14668
14631
  closingSlash?: ("always" | "never" | "allow");
@@ -15035,7 +14998,6 @@ type StylisticKeywordSpacing = [] | [{
15035
14998
  type StylisticLineCommentPosition = [] | [(("above" | "beside") | {
15036
14999
  position?: ("above" | "beside");
15037
15000
  ignorePattern?: string;
15038
- applyDefaultPatterns?: boolean;
15039
15001
  applyDefaultIgnorePatterns?: boolean;
15040
15002
  })];
15041
15003
  // ----- stylistic/linebreak-style -----
@@ -15091,6 +15053,53 @@ type StylisticLinesBetweenClassMembers = [] | [({
15091
15053
  exceptAfterSingleLine?: boolean;
15092
15054
  exceptAfterOverload?: boolean;
15093
15055
  }];
15056
+ // ----- stylistic/list-style -----
15057
+ type StylisticListStyle = [] | [{
15058
+ empty?: ("ignore" | "always" | "never");
15059
+ singleLine?: _StylisticListStyle_SingleLineConfig;
15060
+ multiLine?: _StylisticListStyle_MultiLineConfig;
15061
+ overrides?: {
15062
+ "()"?: (_StylisticListStyle_BaseConfig | "off");
15063
+ "[]"?: (_StylisticListStyle_BaseConfig | "off");
15064
+ "{}"?: (_StylisticListStyle_BaseConfig | "off");
15065
+ "<>"?: (_StylisticListStyle_BaseConfig | "off");
15066
+ ArrayExpression?: (_StylisticListStyle_BaseConfig | "off");
15067
+ ArrayPattern?: (_StylisticListStyle_BaseConfig | "off");
15068
+ ArrowFunctionExpression?: (_StylisticListStyle_BaseConfig | "off");
15069
+ CallExpression?: (_StylisticListStyle_BaseConfig | "off");
15070
+ ExportNamedDeclaration?: (_StylisticListStyle_BaseConfig | "off");
15071
+ FunctionDeclaration?: (_StylisticListStyle_BaseConfig | "off");
15072
+ FunctionExpression?: (_StylisticListStyle_BaseConfig | "off");
15073
+ IfStatement?: (_StylisticListStyle_BaseConfig | "off");
15074
+ ImportAttributes?: (_StylisticListStyle_BaseConfig | "off");
15075
+ ImportDeclaration?: (_StylisticListStyle_BaseConfig | "off");
15076
+ JSONArrayExpression?: (_StylisticListStyle_BaseConfig | "off");
15077
+ JSONObjectExpression?: (_StylisticListStyle_BaseConfig | "off");
15078
+ NewExpression?: (_StylisticListStyle_BaseConfig | "off");
15079
+ ObjectExpression?: (_StylisticListStyle_BaseConfig | "off");
15080
+ ObjectPattern?: (_StylisticListStyle_BaseConfig | "off");
15081
+ TSDeclareFunction?: (_StylisticListStyle_BaseConfig | "off");
15082
+ TSEnumBody?: (_StylisticListStyle_BaseConfig | "off");
15083
+ TSFunctionType?: (_StylisticListStyle_BaseConfig | "off");
15084
+ TSInterfaceBody?: (_StylisticListStyle_BaseConfig | "off");
15085
+ TSTupleType?: (_StylisticListStyle_BaseConfig | "off");
15086
+ TSTypeLiteral?: (_StylisticListStyle_BaseConfig | "off");
15087
+ TSTypeParameterDeclaration?: (_StylisticListStyle_BaseConfig | "off");
15088
+ TSTypeParameterInstantiation?: (_StylisticListStyle_BaseConfig | "off");
15089
+ };
15090
+ }];
15091
+ interface _StylisticListStyle_SingleLineConfig {
15092
+ spacing?: ("always" | "never");
15093
+ maxItems?: number;
15094
+ }
15095
+ interface _StylisticListStyle_MultiLineConfig {
15096
+ minItems?: number;
15097
+ }
15098
+ interface _StylisticListStyle_BaseConfig {
15099
+ empty?: ("ignore" | "always" | "never");
15100
+ singleLine?: _StylisticListStyle_SingleLineConfig;
15101
+ multiLine?: _StylisticListStyle_MultiLineConfig;
15102
+ }
15094
15103
  // ----- stylistic/max-len -----
15095
15104
  type StylisticMaxLen = [] | [({
15096
15105
  code?: number;
@@ -15236,7 +15245,7 @@ type StylisticNoMixedOperators = [] | [{
15236
15245
  allowSamePrecedence?: boolean;
15237
15246
  }];
15238
15247
  // ----- stylistic/no-mixed-spaces-and-tabs -----
15239
- type StylisticNoMixedSpacesAndTabs = [] | [("smart-tabs" | boolean)];
15248
+ type StylisticNoMixedSpacesAndTabs = [] | ["smart-tabs"];
15240
15249
  // ----- stylistic/no-multi-spaces -----
15241
15250
  type StylisticNoMultiSpaces = [] | [{
15242
15251
  exceptions?: {
@@ -15375,11 +15384,11 @@ type StylisticQuoteProps = ([] | [("always" | "as-needed" | "consistent" | "cons
15375
15384
  numbers?: boolean;
15376
15385
  }]);
15377
15386
  // ----- stylistic/quotes -----
15378
- type StylisticQuotes = [] | [("single" | "double" | "backtick")] | [("single" | "double" | "backtick"), ("avoid-escape" | {
15387
+ type StylisticQuotes = [] | [("single" | "double" | "backtick")] | [("single" | "double" | "backtick"), {
15379
15388
  avoidEscape?: boolean;
15380
- allowTemplateLiterals?: (boolean | ("never" | "avoidEscape" | "always"));
15389
+ allowTemplateLiterals?: ("never" | "avoidEscape" | "always");
15381
15390
  ignoreStringLiterals?: boolean;
15382
- })];
15391
+ }];
15383
15392
  // ----- stylistic/rest-spread-spacing -----
15384
15393
  type StylisticRestSpreadSpacing = [] | [("always" | "never")];
15385
15394
  // ----- stylistic/semi -----
@@ -15417,6 +15426,7 @@ type StylisticSpaceInParens = [] | [("always" | "never")] | [("always" | "never"
15417
15426
  // ----- stylistic/space-infix-ops -----
15418
15427
  type StylisticSpaceInfixOps = [] | [{
15419
15428
  int32Hint?: boolean;
15429
+ ignoreOperators?: string[];
15420
15430
  ignoreTypes?: boolean;
15421
15431
  }];
15422
15432
  // ----- stylistic/space-unary-ops -----
@@ -15456,17 +15466,22 @@ type StylisticTypeAnnotationSpacing = [] | [{
15456
15466
  after?: boolean;
15457
15467
  overrides?: {
15458
15468
  colon?: _StylisticTypeAnnotationSpacing_SpacingConfig;
15459
- arrow?: ("ignore" | _StylisticTypeAnnotationSpacing_SpacingConfig);
15460
- variable?: _StylisticTypeAnnotationSpacing_SpacingConfig;
15461
- parameter?: _StylisticTypeAnnotationSpacing_SpacingConfig;
15462
- property?: _StylisticTypeAnnotationSpacing_SpacingConfig;
15463
- returnType?: _StylisticTypeAnnotationSpacing_SpacingConfig;
15469
+ variable?: ("ignore" | _StylisticTypeAnnotationSpacing_SpacingConfig);
15470
+ parameter?: ("ignore" | _StylisticTypeAnnotationSpacing_SpacingConfig);
15471
+ property?: ("ignore" | _StylisticTypeAnnotationSpacing_SpacingConfig);
15472
+ returnType?: ("ignore" | _StylisticTypeAnnotationSpacing_SpacingConfig);
15473
+ questionMark?: ("ignore" | _StylisticTypeAnnotationSpacing_SpacingConfig);
15464
15474
  };
15465
15475
  }];
15466
15476
  interface _StylisticTypeAnnotationSpacing_SpacingConfig {
15467
15477
  before?: boolean;
15468
15478
  after?: boolean;
15469
15479
  }
15480
+ // ----- stylistic/type-generic-spacing -----
15481
+ type StylisticTypeGenericSpacing = [] | [{
15482
+ before?: boolean;
15483
+ after?: boolean;
15484
+ }];
15470
15485
  // ----- stylistic/wrap-iife -----
15471
15486
  type StylisticWrapIife = [] | [("outside" | "inside" | "any")] | [("outside" | "inside" | "any"), {
15472
15487
  functionPrototypeMethods?: boolean;
@@ -16881,6 +16896,7 @@ type UnicornNoEmptyFile = [] | [{
16881
16896
  }];
16882
16897
  // ----- unicorn/no-immediate-mutation -----
16883
16898
  type UnicornNoImmediateMutation = [] | [{
16899
+ checkCollections?: boolean;
16884
16900
  checkConditionals?: boolean;
16885
16901
  }];
16886
16902
  // ----- unicorn/no-instanceof-builtins -----
@@ -17049,6 +17065,10 @@ type UnicornPreferNumberProperties = [] | [{
17049
17065
  type UnicornPreferObjectFromEntries = [] | [{
17050
17066
  functions?: string[];
17051
17067
  }];
17068
+ // ----- unicorn/prefer-options-parameter -----
17069
+ type UnicornPreferOptionsParameter = [] | [{
17070
+ checkWithoutOptionsObject?: boolean;
17071
+ }];
17052
17072
  // ----- unicorn/prefer-query-selector -----
17053
17073
  type UnicornPreferQuerySelector = [] | [{
17054
17074
  allowWithVariables?: boolean;
@@ -17072,6 +17092,10 @@ type UnicornPreferSimplifiedConditions = [] | [{
17072
17092
  type UnicornPreferSingleCall = [] | [{
17073
17093
  ignore?: string[];
17074
17094
  }];
17095
+ // ----- unicorn/prefer-smaller-scope -----
17096
+ type UnicornPreferSmallerScope = [] | [{
17097
+ checkTypeAliases?: boolean;
17098
+ }];
17075
17099
  // ----- unicorn/prefer-string-repeat -----
17076
17100
  type UnicornPreferStringRepeat = [] | [{
17077
17101
  minimumRepetitions?: number;
@@ -17095,6 +17119,15 @@ type UnicornPreferTemporal = [] | [{
17095
17119
  type UnicornPreferTernary = [] | [("always" | "only-single-line")] | [("always" | "only-single-line"), {
17096
17120
  checkVaryingBase?: boolean;
17097
17121
  checkComputedMemberAccess?: boolean;
17122
+ checkNestedTernaries?: boolean;
17123
+ }];
17124
+ // ----- unicorn/prefer-uint8array-base64 -----
17125
+ type UnicornPreferUint8ArrayBase64 = [] | [{
17126
+ checkBufferDecoding?: boolean;
17127
+ }];
17128
+ // ----- unicorn/prefer-uint8array-hex -----
17129
+ type UnicornPreferUint8ArrayHex = [] | [{
17130
+ checkBufferDecoding?: boolean;
17098
17131
  }];
17099
17132
  // ----- unicorn/relative-url-style -----
17100
17133
  type UnicornRelativeUrlStyle = [] | [("never" | "always")];
@@ -17532,6 +17565,11 @@ type ZodConsistentImport = [] | [{
17532
17565
  type ZodConsistentImportSource = [] | [{
17533
17566
  sources?: [("zod" | "zod/v4" | "zod/v3"), ...(("zod" | "zod/v4" | "zod/v3"))[]];
17534
17567
  }];
17568
+ // ----- zod/consistent-object-property-key-style -----
17569
+ type ZodConsistentObjectPropertyKeyStyle = [] | [{
17570
+ style?: ("camelCase" | "snake_case");
17571
+ allow?: [("object" | "looseObject" | "strictObject"), ...(("object" | "looseObject" | "strictObject"))[]];
17572
+ }];
17535
17573
  // ----- zod/consistent-object-schema-type -----
17536
17574
  type ZodConsistentObjectSchemaType = [] | [{
17537
17575
  allow?: [("object" | "looseObject" | "strictObject"), ...(("object" | "looseObject" | "strictObject"))[]];