@2digits/eslint-config 5.12.3 → 5.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/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
@@ -7218,6 +7218,11 @@ Backward pagination arguments
7218
7218
  * @see https://typescript-eslint.io/rules/no-unsafe-call
7219
7219
  */
7220
7220
  'ts/no-unsafe-call'?: Linter.RuleEntry<[]>;
7221
+ /**
7222
+ * Disallow assigning non-instance values to class instance typed locations
7223
+ * @see https://typescript-eslint.io/rules/no-unsafe-class-instance-assignment
7224
+ */
7225
+ 'ts/no-unsafe-class-instance-assignment'?: Linter.RuleEntry<[]>;
7221
7226
  /**
7222
7227
  * Disallow unsafe declaration merging
7223
7228
  * @see https://typescript-eslint.io/rules/no-unsafe-declaration-merging
@@ -7509,2002 +7514,2017 @@ Backward pagination arguments
7509
7514
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>;
7510
7515
  /**
7511
7516
  * Prefer better DOM traversal APIs.
7512
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/better-dom-traversing.md
7517
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/better-dom-traversing.md
7513
7518
  */
7514
7519
  'unicorn/better-dom-traversing'?: Linter.RuleEntry<[]>;
7515
7520
  /**
7516
7521
  * 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
7522
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/deleted-and-deprecated-rules.md#better-regex
7518
7523
  * @deprecated
7519
7524
  */
7520
7525
  'unicorn/better-regex'?: Linter.RuleEntry<[]>;
7521
7526
  /**
7522
7527
  * 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
7528
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/catch-error-name.md
7524
7529
  */
7525
7530
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
7526
7531
  /**
7527
7532
  * 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
7533
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/class-reference-in-static-methods.md
7529
7534
  */
7530
7535
  'unicorn/class-reference-in-static-methods'?: Linter.RuleEntry<UnicornClassReferenceInStaticMethods>;
7531
7536
  /**
7532
7537
  * 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
7538
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/comma-spacing.md
7534
7539
  */
7535
7540
  'unicorn/comma-spacing'?: Linter.RuleEntry<[]>;
7536
7541
  /**
7537
7542
  * Enforce better comment content.
7538
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/comment-content.md
7543
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/comment-content.md
7539
7544
  */
7540
7545
  'unicorn/comment-content'?: Linter.RuleEntry<UnicornCommentContent>;
7541
7546
  /**
7542
7547
  * 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
7548
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/consistent-arrow-return-style.md
7544
7549
  */
7545
7550
  'unicorn/consistent-arrow-return-style'?: Linter.RuleEntry<[]>;
7546
7551
  /**
7547
7552
  * 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
7553
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/consistent-assert.md
7549
7554
  */
7550
7555
  'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
7551
7556
  /**
7552
7557
  * 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
7558
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/consistent-boolean-name.md
7554
7559
  */
7555
7560
  'unicorn/consistent-boolean-name'?: Linter.RuleEntry<UnicornConsistentBooleanName>;
7556
7561
  /**
7557
7562
  * 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
7563
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/consistent-class-member-order.md
7559
7564
  */
7560
7565
  'unicorn/consistent-class-member-order'?: Linter.RuleEntry<UnicornConsistentClassMemberOrder>;
7561
7566
  /**
7562
7567
  * 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
7568
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/consistent-compound-words.md
7564
7569
  */
7565
7570
  'unicorn/consistent-compound-words'?: Linter.RuleEntry<UnicornConsistentCompoundWords>;
7566
7571
  /**
7567
7572
  * 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
7573
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/consistent-conditional-object-spread.md
7569
7574
  */
7570
7575
  'unicorn/consistent-conditional-object-spread'?: Linter.RuleEntry<UnicornConsistentConditionalObjectSpread>;
7571
7576
  /**
7572
7577
  * 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
7578
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/consistent-date-clone.md
7574
7579
  */
7575
7580
  'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
7576
7581
  /**
7577
7582
  * Use destructured variables over properties.
7578
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/consistent-destructuring.md
7583
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/consistent-destructuring.md
7579
7584
  */
7580
7585
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
7581
7586
  /**
7582
7587
  * 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
7588
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/consistent-empty-array-spread.md
7584
7589
  */
7585
7590
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
7586
7591
  /**
7587
7592
  * 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
7593
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/consistent-existence-index-check.md
7589
7594
  */
7590
7595
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
7591
7596
  /**
7592
7597
  * 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
7598
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/consistent-export-decorator-position.md
7594
7599
  */
7595
7600
  'unicorn/consistent-export-decorator-position'?: Linter.RuleEntry<UnicornConsistentExportDecoratorPosition>;
7596
7601
  /**
7597
7602
  * 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
7603
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/consistent-function-scoping.md
7599
7604
  */
7600
7605
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
7601
7606
  /**
7602
7607
  * Enforce function syntax by role.
7603
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/consistent-function-style.md
7608
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/consistent-function-style.md
7604
7609
  */
7605
7610
  'unicorn/consistent-function-style'?: Linter.RuleEntry<UnicornConsistentFunctionStyle>;
7606
7611
  /**
7607
7612
  * 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
7613
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/consistent-json-file-read.md
7609
7614
  */
7610
7615
  'unicorn/consistent-json-file-read'?: Linter.RuleEntry<UnicornConsistentJsonFileRead>;
7611
7616
  /**
7612
7617
  * 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
7618
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/consistent-optional-chaining.md
7614
7619
  */
7615
7620
  'unicorn/consistent-optional-chaining'?: Linter.RuleEntry<[]>;
7616
7621
  /**
7617
7622
  * 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
7623
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/consistent-template-literal-escape.md
7619
7624
  */
7620
7625
  'unicorn/consistent-template-literal-escape'?: Linter.RuleEntry<[]>;
7621
7626
  /**
7622
7627
  * 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
7628
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/consistent-tuple-labels.md
7624
7629
  */
7625
7630
  'unicorn/consistent-tuple-labels'?: Linter.RuleEntry<[]>;
7626
7631
  /**
7627
7632
  * Enforce correct `Error` subclassing.
7628
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/custom-error-definition.md
7633
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/custom-error-definition.md
7629
7634
  */
7630
7635
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
7631
7636
  /**
7632
7637
  * Enforce consistent default export declarations.
7633
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/default-export-style.md
7638
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/default-export-style.md
7634
7639
  */
7635
7640
  'unicorn/default-export-style'?: Linter.RuleEntry<UnicornDefaultExportStyle>;
7636
7641
  /**
7637
7642
  * 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
7643
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/dom-node-dataset.md
7639
7644
  */
7640
7645
  'unicorn/dom-node-dataset'?: Linter.RuleEntry<UnicornDomNodeDataset>;
7641
7646
  /**
7642
7647
  * Enforce no spaces between braces.
7643
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/empty-brace-spaces.md
7648
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/empty-brace-spaces.md
7644
7649
  */
7645
7650
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
7646
7651
  /**
7647
7652
  * 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
7653
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/error-message.md
7649
7654
  */
7650
7655
  'unicorn/error-message'?: Linter.RuleEntry<[]>;
7651
7656
  /**
7652
7657
  * 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
7658
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/escape-case.md
7654
7659
  */
7655
7660
  'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
7656
7661
  /**
7657
7662
  * 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
7663
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/expiring-todo-comments.md
7659
7664
  */
7660
7665
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
7661
7666
  /**
7662
7667
  * 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
7668
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/explicit-length-check.md
7664
7669
  */
7665
7670
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
7666
7671
  /**
7667
7672
  * 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
7673
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/explicit-timer-delay.md
7669
7674
  */
7670
7675
  'unicorn/explicit-timer-delay'?: Linter.RuleEntry<UnicornExplicitTimerDelay>;
7671
7676
  /**
7672
7677
  * 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
7678
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/filename-case.md
7674
7679
  */
7675
7680
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
7676
7681
  /**
7677
7682
  * 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
7683
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/id-match.md
7679
7684
  */
7680
7685
  'unicorn/id-match'?: Linter.RuleEntry<UnicornIdMatch>;
7681
7686
  /**
7682
7687
  * Enforce specific import styles per module.
7683
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/import-style.md
7688
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/import-style.md
7684
7689
  */
7685
7690
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
7686
7691
  /**
7687
7692
  * Enforce consistent indentation in JSON and CSS.
7688
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/indent.md
7693
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/indent.md
7689
7694
  */
7690
7695
  'unicorn/indent'?: Linter.RuleEntry<UnicornIndent>;
7691
7696
  /**
7692
7697
  * 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
7698
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/isolated-functions.md
7694
7699
  */
7695
7700
  'unicorn/isolated-functions'?: Linter.RuleEntry<UnicornIsolatedFunctions>;
7696
7701
  /**
7697
7702
  * 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
7703
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/iteration-fallback-style.md
7699
7704
  */
7700
7705
  'unicorn/iteration-fallback-style'?: Linter.RuleEntry<UnicornIterationFallbackStyle>;
7701
7706
  /**
7702
7707
  * 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
7708
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/key-name-casing.md
7704
7709
  */
7705
7710
  'unicorn/key-name-casing'?: Linter.RuleEntry<UnicornKeyNameCasing>;
7706
7711
  /**
7707
7712
  * 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
7713
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/logical-assignment-operators.md
7709
7714
  */
7710
7715
  'unicorn/logical-assignment-operators'?: Linter.RuleEntry<UnicornLogicalAssignmentOperators>;
7711
7716
  /**
7712
7717
  * 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
7718
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/max-nested-calls.md
7714
7719
  */
7715
7720
  'unicorn/max-nested-calls'?: Linter.RuleEntry<UnicornMaxNestedCalls>;
7716
7721
  /**
7717
7722
  * 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
7723
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/name-replacements.md
7719
7724
  */
7720
7725
  'unicorn/name-replacements'?: Linter.RuleEntry<UnicornNameReplacements>;
7721
7726
  /**
7722
7727
  * 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
7728
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/new-for-builtins.md
7724
7729
  */
7725
7730
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
7726
7731
  /**
7727
7732
  * 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
7733
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-abusive-eslint-disable.md
7729
7734
  */
7730
7735
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
7731
7736
  /**
7732
7737
  * 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
7738
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-accessor-recursion.md
7734
7739
  */
7735
7740
  'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
7736
7741
  /**
7737
7742
  * 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
7743
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-accidental-bitwise-operator.md
7739
7744
  */
7740
7745
  'unicorn/no-accidental-bitwise-operator'?: Linter.RuleEntry<[]>;
7741
7746
  /**
7742
7747
  * 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
7748
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-anonymous-default-export.md
7744
7749
  */
7745
7750
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
7746
7751
  /**
7747
7752
  * 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
7753
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-array-callback-reference.md
7749
7754
  */
7750
7755
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<UnicornNoArrayCallbackReference>;
7751
7756
  /**
7752
7757
  * 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
7758
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-array-concat-in-loop.md
7754
7759
  */
7755
7760
  'unicorn/no-array-concat-in-loop'?: Linter.RuleEntry<[]>;
7756
7761
  /**
7757
7762
  * 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
7763
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-array-fill-with-reference-type.md
7759
7764
  */
7760
7765
  'unicorn/no-array-fill-with-reference-type'?: Linter.RuleEntry<[]>;
7761
7766
  /**
7762
7767
  * 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
7768
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-array-from-fill.md
7764
7769
  */
7765
7770
  'unicorn/no-array-from-fill'?: Linter.RuleEntry<[]>;
7766
7771
  /**
7767
7772
  * 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
7773
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-array-front-mutation.md
7769
7774
  */
7770
7775
  'unicorn/no-array-front-mutation'?: Linter.RuleEntry<[]>;
7771
7776
  /**
7772
7777
  * 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
7778
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-array-method-this-argument.md
7774
7779
  */
7775
7780
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
7776
7781
  /**
7777
7782
  * 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
7783
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
7779
7784
  * @deprecated
7780
7785
  */
7781
7786
  'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
7782
7787
  /**
7783
7788
  * 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
7789
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-array-reduce.md
7785
7790
  */
7786
7791
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
7787
7792
  /**
7788
7793
  * 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
7794
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-array-reverse.md
7790
7795
  */
7791
7796
  'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
7792
7797
  /**
7793
7798
  * 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
7799
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-array-sort.md
7795
7800
  */
7796
7801
  'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>;
7797
7802
  /**
7798
7803
  * 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
7804
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-array-sort-for-min-max.md
7800
7805
  */
7801
7806
  'unicorn/no-array-sort-for-min-max'?: Linter.RuleEntry<[]>;
7802
7807
  /**
7803
7808
  * 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
7809
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-array-splice.md
7805
7810
  */
7806
7811
  'unicorn/no-array-splice'?: Linter.RuleEntry<[]>;
7807
7812
  /**
7808
7813
  * 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
7814
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
7810
7815
  */
7811
7816
  'unicorn/no-asterisk-prefix-in-documentation-comments'?: Linter.RuleEntry<[]>;
7812
7817
  /**
7813
7818
  * 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
7819
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-async-iterator-callback.md
7815
7820
  */
7816
7821
  'unicorn/no-async-iterator-callback'?: Linter.RuleEntry<[]>;
7817
7822
  /**
7818
7823
  * 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
7824
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-async-promise-finally.md
7820
7825
  */
7821
7826
  'unicorn/no-async-promise-finally'?: Linter.RuleEntry<[]>;
7822
7827
  /**
7823
7828
  * 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
7829
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-await-expression-member.md
7825
7830
  */
7826
7831
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
7827
7832
  /**
7828
7833
  * 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
7834
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-await-in-promise-methods.md
7830
7835
  */
7831
7836
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
7832
7837
  /**
7833
7838
  * Disallow barrel files.
7834
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-barrel-files.md
7839
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-barrel-files.md
7835
7840
  */
7836
7841
  'unicorn/no-barrel-files'?: Linter.RuleEntry<[]>;
7837
7842
  /**
7838
7843
  * 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
7844
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-blob-to-file.md
7840
7845
  */
7841
7846
  'unicorn/no-blob-to-file'?: Linter.RuleEntry<[]>;
7842
7847
  /**
7843
7848
  * 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
7849
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-boolean-sort-comparator.md
7845
7850
  */
7846
7851
  'unicorn/no-boolean-sort-comparator'?: Linter.RuleEntry<[]>;
7847
7852
  /**
7848
7853
  * 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
7854
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-break-in-nested-loop.md
7850
7855
  */
7851
7856
  'unicorn/no-break-in-nested-loop'?: Linter.RuleEntry<UnicornNoBreakInNestedLoop>;
7852
7857
  /**
7853
7858
  * 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
7859
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-canvas-to-image.md
7855
7860
  */
7856
7861
  'unicorn/no-canvas-to-image'?: Linter.RuleEntry<[]>;
7857
7862
  /**
7858
7863
  * 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
7864
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-chained-comparison.md
7860
7865
  */
7861
7866
  'unicorn/no-chained-comparison'?: Linter.RuleEntry<[]>;
7862
7867
  /**
7863
7868
  * 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
7869
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-collection-bracket-access.md
7865
7870
  */
7866
7871
  'unicorn/no-collection-bracket-access'?: Linter.RuleEntry<[]>;
7867
7872
  /**
7868
7873
  * 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
7874
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-computed-property-existence-check.md
7870
7875
  */
7871
7876
  'unicorn/no-computed-property-existence-check'?: Linter.RuleEntry<[]>;
7872
7877
  /**
7873
7878
  * 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
7879
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-conflicting-constraints.md
7875
7880
  */
7876
7881
  'unicorn/no-conflicting-constraints'?: Linter.RuleEntry<[]>;
7877
7882
  /**
7878
7883
  * 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
7884
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-confusing-array-splice.md
7880
7885
  */
7881
7886
  'unicorn/no-confusing-array-splice'?: Linter.RuleEntry<[]>;
7882
7887
  /**
7883
7888
  * 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
7889
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-confusing-array-with.md
7885
7890
  */
7886
7891
  'unicorn/no-confusing-array-with'?: Linter.RuleEntry<[]>;
7887
7892
  /**
7888
7893
  * 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
7894
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-console-spaces.md
7890
7895
  */
7891
7896
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
7892
7897
  /**
7893
7898
  * 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
7899
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-constant-zero-expression.md
7895
7900
  */
7896
7901
  'unicorn/no-constant-zero-expression'?: Linter.RuleEntry<[]>;
7897
7902
  /**
7898
7903
  * 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
7904
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-declarations-before-early-exit.md
7900
7905
  */
7901
7906
  'unicorn/no-declarations-before-early-exit'?: Linter.RuleEntry<[]>;
7902
7907
  /**
7903
7908
  * 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
7909
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/deleted-and-deprecated-rules.md#no-deprecated-css-features
7905
7910
  * @deprecated
7906
7911
  */
7907
7912
  'unicorn/no-deprecated-css-features'?: Linter.RuleEntry<[]>;
7908
7913
  /**
7909
7914
  * 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
7915
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-document-cookie.md
7911
7916
  */
7912
7917
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
7913
7918
  /**
7914
7919
  * 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
7920
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-double-comparison.md
7916
7921
  */
7917
7922
  'unicorn/no-double-comparison'?: Linter.RuleEntry<[]>;
7918
7923
  /**
7919
7924
  * 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
7925
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/deleted-and-deprecated-rules.md#no-duplicate-css-selectors
7921
7926
  * @deprecated
7922
7927
  */
7923
7928
  'unicorn/no-duplicate-css-selectors'?: Linter.RuleEntry<[]>;
7924
7929
  /**
7925
7930
  * 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
7931
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/deleted-and-deprecated-rules.md#no-duplicate-font-family-names
7927
7932
  * @deprecated
7928
7933
  */
7929
7934
  'unicorn/no-duplicate-font-family-names'?: Linter.RuleEntry<[]>;
7930
7935
  /**
7931
7936
  * 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
7937
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-duplicate-if-branches.md
7933
7938
  */
7934
7939
  'unicorn/no-duplicate-if-branches'?: Linter.RuleEntry<[]>;
7935
7940
  /**
7936
7941
  * 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
7942
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-duplicate-logical-operands.md
7938
7943
  */
7939
7944
  'unicorn/no-duplicate-logical-operands'?: Linter.RuleEntry<[]>;
7940
7945
  /**
7941
7946
  * 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
7947
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-duplicate-loops.md
7943
7948
  */
7944
7949
  'unicorn/no-duplicate-loops'?: Linter.RuleEntry<[]>;
7945
7950
  /**
7946
7951
  * 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
7952
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-duplicate-set-values.md
7948
7953
  */
7949
7954
  'unicorn/no-duplicate-set-values'?: Linter.RuleEntry<[]>;
7950
7955
  /**
7951
7956
  * Disallow empty files.
7952
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-empty-file.md
7957
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-empty-file.md
7953
7958
  */
7954
7959
  'unicorn/no-empty-file'?: Linter.RuleEntry<UnicornNoEmptyFile>;
7955
7960
  /**
7956
7961
  * 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
7962
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-empty-link-text.md
7958
7963
  */
7959
7964
  'unicorn/no-empty-link-text'?: Linter.RuleEntry<[]>;
7960
7965
  /**
7961
7966
  * 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
7967
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-error-property-assignment.md
7963
7968
  */
7964
7969
  'unicorn/no-error-property-assignment'?: Linter.RuleEntry<[]>;
7965
7970
  /**
7966
7971
  * Disallow exports in scripts.
7967
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-exports-in-scripts.md
7972
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-exports-in-scripts.md
7968
7973
  */
7969
7974
  'unicorn/no-exports-in-scripts'?: Linter.RuleEntry<[]>;
7970
7975
  /**
7971
7976
  * 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
7977
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-for-each.md
7973
7978
  */
7974
7979
  'unicorn/no-for-each'?: Linter.RuleEntry<[]>;
7975
7980
  /**
7976
7981
  * 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
7982
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-for-loop.md
7978
7983
  */
7979
7984
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
7980
7985
  /**
7981
7986
  * 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
7987
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-global-object-property-assignment.md
7983
7988
  */
7984
7989
  'unicorn/no-global-object-property-assignment'?: Linter.RuleEntry<[]>;
7985
7990
  /**
7986
7991
  * 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
7992
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
7988
7993
  * @deprecated
7989
7994
  */
7990
7995
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
7991
7996
  /**
7992
7997
  * 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
7998
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-immediate-mutation.md
7994
7999
  */
7995
8000
  'unicorn/no-immediate-mutation'?: Linter.RuleEntry<UnicornNoImmediateMutation>;
7996
8001
  /**
7997
8002
  * 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
8003
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-impossible-length-comparison.md
7999
8004
  */
8000
8005
  'unicorn/no-impossible-length-comparison'?: Linter.RuleEntry<[]>;
8001
8006
  /**
8002
8007
  * 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
8008
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-incomplete-accessor-override.md
8004
8009
  */
8005
8010
  'unicorn/no-incomplete-accessor-override'?: Linter.RuleEntry<[]>;
8006
8011
  /**
8007
8012
  * 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
8013
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-incorrect-query-selector.md
8009
8014
  */
8010
8015
  'unicorn/no-incorrect-query-selector'?: Linter.RuleEntry<[]>;
8011
8016
  /**
8012
8017
  * 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
8018
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-incorrect-template-string-interpolation.md
8014
8019
  */
8015
8020
  'unicorn/no-incorrect-template-string-interpolation'?: Linter.RuleEntry<[]>;
8016
8021
  /**
8017
8022
  * 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
8023
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-ineffective-csp-directives.md
8019
8024
  */
8020
8025
  'unicorn/no-ineffective-csp-directives'?: Linter.RuleEntry<[]>;
8021
8026
  /**
8022
8027
  * 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
8028
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
8024
8029
  * @deprecated
8025
8030
  */
8026
8031
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
8027
8032
  /**
8028
8033
  * 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
8034
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-instanceof-builtins.md
8030
8035
  */
8031
8036
  'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
8032
8037
  /**
8033
8038
  * 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
8039
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-invalid-argument-count.md
8035
8040
  */
8036
8041
  'unicorn/no-invalid-argument-count'?: Linter.RuleEntry<UnicornNoInvalidArgumentCount>;
8037
8042
  /**
8038
8043
  * 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
8044
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-invalid-boolean-attribute-value.md
8040
8045
  */
8041
8046
  'unicorn/no-invalid-boolean-attribute-value'?: Linter.RuleEntry<[]>;
8042
8047
  /**
8043
8048
  * 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
8049
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-invalid-character-comparison.md
8045
8050
  */
8046
8051
  'unicorn/no-invalid-character-comparison'?: Linter.RuleEntry<[]>;
8047
8052
  /**
8048
8053
  * Disallow invalid DOM tokens.
8049
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-invalid-dom-token.md
8054
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-invalid-dom-token.md
8050
8055
  */
8051
8056
  'unicorn/no-invalid-dom-token'?: Linter.RuleEntry<[]>;
8052
8057
  /**
8053
8058
  * 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
8059
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-invalid-fetch-options.md
8055
8060
  */
8056
8061
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
8057
8062
  /**
8058
8063
  * 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
8064
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-invalid-file-input-accept.md
8060
8065
  */
8061
8066
  'unicorn/no-invalid-file-input-accept'?: Linter.RuleEntry<[]>;
8062
8067
  /**
8063
8068
  * Disallow invalid subresource integrity metadata.
8064
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-invalid-integrity.md
8069
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-invalid-integrity.md
8065
8070
  */
8066
8071
  'unicorn/no-invalid-integrity'?: Linter.RuleEntry<[]>;
8067
8072
  /**
8068
8073
  * 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
8074
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-invalid-intl-options.md
8070
8075
  */
8071
8076
  'unicorn/no-invalid-intl-options'?: Linter.RuleEntry<[]>;
8072
8077
  /**
8073
8078
  * 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
8079
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/deleted-and-deprecated-rules.md#no-invalid-media-features
8075
8080
  * @deprecated
8076
8081
  */
8077
8082
  'unicorn/no-invalid-media-features'?: Linter.RuleEntry<[]>;
8078
8083
  /**
8079
8084
  * Disallow invalid property descriptors.
8080
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-invalid-property-descriptor.md
8085
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-invalid-property-descriptor.md
8081
8086
  */
8082
8087
  'unicorn/no-invalid-property-descriptor'?: Linter.RuleEntry<[]>;
8083
8088
  /**
8084
8089
  * 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
8090
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-invalid-remove-event-listener.md
8086
8091
  */
8087
8092
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
8088
8093
  /**
8089
8094
  * 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
8095
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-invalid-response-options.md
8091
8096
  */
8092
8097
  'unicorn/no-invalid-response-options'?: Linter.RuleEntry<[]>;
8093
8098
  /**
8094
8099
  * 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
8100
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-invalid-style-set-property.md
8096
8101
  */
8097
8102
  'unicorn/no-invalid-style-set-property'?: Linter.RuleEntry<[]>;
8098
8103
  /**
8099
8104
  * 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
8105
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-invalid-temporal-arithmetic.md
8101
8106
  */
8102
8107
  'unicorn/no-invalid-temporal-arithmetic'?: Linter.RuleEntry<[]>;
8103
8108
  /**
8104
8109
  * 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
8110
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-invalid-url-protocol-comparison.md
8106
8111
  */
8107
8112
  'unicorn/no-invalid-url-protocol-comparison'?: Linter.RuleEntry<[]>;
8108
8113
  /**
8109
8114
  * 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
8115
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
8111
8116
  */
8112
8117
  'unicorn/no-invalid-well-known-symbol-methods'?: Linter.RuleEntry<[]>;
8113
8118
  /**
8114
8119
  * Disallow `javascript:` URLs in Markdown.
8115
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-javascript-url.md
8120
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-javascript-url.md
8116
8121
  */
8117
8122
  'unicorn/no-javascript-url'?: Linter.RuleEntry<[]>;
8118
8123
  /**
8119
8124
  * 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
8125
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-keyword-prefix.md
8121
8126
  */
8122
8127
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
8123
8128
  /**
8124
8129
  * 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
8130
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-late-current-target-access.md
8126
8131
  */
8127
8132
  'unicorn/no-late-current-target-access'?: Linter.RuleEntry<[]>;
8128
8133
  /**
8129
8134
  * 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
8135
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-late-event-control.md
8131
8136
  */
8132
8137
  'unicorn/no-late-event-control'?: Linter.RuleEntry<[]>;
8133
8138
  /**
8134
8139
  * 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
8140
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-leading-empty-lines.md
8136
8141
  */
8137
8142
  'unicorn/no-leading-empty-lines'?: Linter.RuleEntry<[]>;
8138
8143
  /**
8139
8144
  * 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
8145
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
8141
8146
  * @deprecated
8142
8147
  */
8143
8148
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
8144
8149
  /**
8145
8150
  * 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
8151
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-lonely-if.md
8147
8152
  */
8148
8153
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
8149
8154
  /**
8150
8155
  * 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
8156
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-loop-iterable-mutation.md
8152
8157
  */
8153
8158
  'unicorn/no-loop-iterable-mutation'?: Linter.RuleEntry<[]>;
8154
8159
  /**
8155
8160
  * 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
8161
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-loss-of-precision.md
8157
8162
  */
8158
8163
  'unicorn/no-loss-of-precision'?: Linter.RuleEntry<[]>;
8159
8164
  /**
8160
8165
  * 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
8166
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-magic-array-flat-depth.md
8162
8167
  */
8163
8168
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
8164
8169
  /**
8165
8170
  * Disallow manually wrapped comments.
8166
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-manually-wrapped-comments.md
8171
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-manually-wrapped-comments.md
8167
8172
  */
8168
8173
  'unicorn/no-manually-wrapped-comments'?: Linter.RuleEntry<[]>;
8169
8174
  /**
8170
8175
  * 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
8176
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-mismatched-map-key.md
8172
8177
  */
8173
8178
  'unicorn/no-mismatched-map-key'?: Linter.RuleEntry<[]>;
8174
8179
  /**
8175
8180
  * 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
8181
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-misrefactored-assignment.md
8177
8182
  */
8178
8183
  'unicorn/no-misrefactored-assignment'?: Linter.RuleEntry<[]>;
8179
8184
  /**
8180
8185
  * 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
8186
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-missing-local-resource.md
8182
8187
  */
8183
8188
  'unicorn/no-missing-local-resource'?: Linter.RuleEntry<[]>;
8184
8189
  /**
8185
8190
  * 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
8191
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-multiple-promise-resolver-calls.md
8187
8192
  */
8188
8193
  'unicorn/no-multiple-promise-resolver-calls'?: Linter.RuleEntry<[]>;
8189
8194
  /**
8190
8195
  * 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
8196
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-named-default.md
8192
8197
  */
8193
8198
  'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
8194
8199
  /**
8195
8200
  * 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
8201
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-negated-array-predicate.md
8197
8202
  */
8198
8203
  'unicorn/no-negated-array-predicate'?: Linter.RuleEntry<[]>;
8199
8204
  /**
8200
8205
  * Disallow negated comparisons.
8201
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-negated-comparison.md
8206
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-negated-comparison.md
8202
8207
  */
8203
8208
  'unicorn/no-negated-comparison'?: Linter.RuleEntry<UnicornNoNegatedComparison>;
8204
8209
  /**
8205
8210
  * Disallow negated conditions.
8206
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-negated-condition.md
8211
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-negated-condition.md
8207
8212
  */
8208
8213
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
8209
8214
  /**
8210
8215
  * 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
8216
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-negation-in-equality-check.md
8212
8217
  */
8213
8218
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
8214
8219
  /**
8215
8220
  * Disallow nested ternary expressions.
8216
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-nested-ternary.md
8221
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-nested-ternary.md
8217
8222
  */
8218
8223
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
8219
8224
  /**
8220
8225
  * 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
8226
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/deleted-and-deprecated-rules.md#no-nesting-with-mixed-specificity
8222
8227
  * @deprecated
8223
8228
  */
8224
8229
  'unicorn/no-nesting-with-mixed-specificity'?: Linter.RuleEntry<[]>;
8225
8230
  /**
8226
8231
  * Disallow `new Array()`.
8227
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-new-array.md
8232
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-new-array.md
8228
8233
  */
8229
8234
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
8230
8235
  /**
8231
8236
  * 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
8237
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-new-buffer.md
8233
8238
  */
8234
8239
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
8235
8240
  /**
8236
8241
  * 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
8242
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-non-function-verb-prefix.md
8238
8243
  */
8239
8244
  'unicorn/no-non-function-verb-prefix'?: Linter.RuleEntry<UnicornNoNonFunctionVerbPrefix>;
8240
8245
  /**
8241
8246
  * 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
8247
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-nonstandard-builtin-properties.md
8243
8248
  */
8244
8249
  'unicorn/no-nonstandard-builtin-properties'?: Linter.RuleEntry<[]>;
8245
8250
  /**
8246
8251
  * 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
8252
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-null.md
8248
8253
  */
8249
8254
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
8250
8255
  /**
8251
8256
  * 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
8257
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-object-as-default-parameter.md
8253
8258
  */
8254
8259
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
8255
8260
  /**
8256
8261
  * 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
8262
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-object-methods-with-collections.md
8258
8263
  */
8259
8264
  'unicorn/no-object-methods-with-collections'?: Linter.RuleEntry<[]>;
8260
8265
  /**
8261
8266
  * 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
8267
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
8263
8268
  */
8264
8269
  'unicorn/no-optional-chaining-on-undeclared-variable'?: Linter.RuleEntry<[]>;
8265
8270
  /**
8266
8271
  * 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
8272
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-prevent-default-in-passive-listener.md
8268
8273
  */
8269
8274
  'unicorn/no-prevent-default-in-passive-listener'?: Linter.RuleEntry<[]>;
8270
8275
  /**
8271
8276
  * Disallow `process.exit()`.
8272
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-process-exit.md
8277
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-process-exit.md
8273
8278
  */
8274
8279
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
8275
8280
  /**
8276
8281
  * 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
8282
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-redundant-comparison.md
8278
8283
  */
8279
8284
  'unicorn/no-redundant-comparison'?: Linter.RuleEntry<[]>;
8280
8285
  /**
8281
8286
  * 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
8287
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/deleted-and-deprecated-rules.md#no-redundant-nested-style-rules
8283
8288
  * @deprecated
8284
8289
  */
8285
8290
  'unicorn/no-redundant-nested-style-rules'?: Linter.RuleEntry<[]>;
8286
8291
  /**
8287
8292
  * 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
8293
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-repeated-call-wrappers.md
8289
8294
  */
8290
8295
  'unicorn/no-repeated-call-wrappers'?: Linter.RuleEntry<[]>;
8291
8296
  /**
8292
8297
  * 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
8298
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-return-array-push.md
8294
8299
  */
8295
8300
  'unicorn/no-return-array-push'?: Linter.RuleEntry<[]>;
8296
8301
  /**
8297
8302
  * 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
8303
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-selector-as-dom-name.md
8299
8304
  */
8300
8305
  'unicorn/no-selector-as-dom-name'?: Linter.RuleEntry<[]>;
8301
8306
  /**
8302
8307
  * 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
8308
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-shorthand-property-overrides.md
8304
8309
  */
8305
8310
  'unicorn/no-shorthand-property-overrides'?: Linter.RuleEntry<[]>;
8306
8311
  /**
8307
8312
  * 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
8313
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-single-promise-in-promise-methods.md
8309
8314
  */
8310
8315
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
8311
8316
  /**
8312
8317
  * 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
8318
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-static-only-class.md
8314
8319
  */
8315
8320
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
8316
8321
  /**
8317
8322
  * 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
8323
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-subtraction-comparison.md
8319
8324
  */
8320
8325
  'unicorn/no-subtraction-comparison'?: Linter.RuleEntry<[]>;
8321
8326
  /**
8322
8327
  * Disallow `then` property.
8323
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-thenable.md
8328
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-thenable.md
8324
8329
  */
8325
8330
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
8326
8331
  /**
8327
8332
  * 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
8333
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-this-assignment.md
8329
8334
  */
8330
8335
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
8331
8336
  /**
8332
8337
  * 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
8338
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-this-outside-of-class.md
8334
8339
  */
8335
8340
  'unicorn/no-this-outside-of-class'?: Linter.RuleEntry<[]>;
8336
8341
  /**
8337
8342
  * 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
8343
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-top-level-assignment-in-function.md
8339
8344
  */
8340
8345
  'unicorn/no-top-level-assignment-in-function'?: Linter.RuleEntry<[]>;
8341
8346
  /**
8342
8347
  * 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
8348
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-top-level-side-effects.md
8344
8349
  */
8345
8350
  'unicorn/no-top-level-side-effects'?: Linter.RuleEntry<UnicornNoTopLevelSideEffects>;
8346
8351
  /**
8347
8352
  * 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
8353
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-transition-all.md
8349
8354
  */
8350
8355
  'unicorn/no-transition-all'?: Linter.RuleEntry<[]>;
8351
8356
  /**
8352
8357
  * Disallow comparing `undefined` using `typeof`.
8353
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-typeof-undefined.md
8358
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-typeof-undefined.md
8354
8359
  */
8355
8360
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
8356
8361
  /**
8357
8362
  * 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
8363
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-uncalled-method.md
8359
8364
  */
8360
8365
  'unicorn/no-uncalled-method'?: Linter.RuleEntry<[]>;
8361
8366
  /**
8362
8367
  * 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
8368
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-undeclared-class-members.md
8364
8369
  */
8365
8370
  'unicorn/no-undeclared-class-members'?: Linter.RuleEntry<[]>;
8366
8371
  /**
8367
8372
  * 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
8373
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/deleted-and-deprecated-rules.md#no-unknown-css-annotations
8369
8374
  * @deprecated
8370
8375
  */
8371
8376
  'unicorn/no-unknown-css-annotations'?: Linter.RuleEntry<[]>;
8372
8377
  /**
8373
8378
  * 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
8379
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/deleted-and-deprecated-rules.md#no-unknown-pseudo-selectors
8375
8380
  * @deprecated
8376
8381
  */
8377
8382
  'unicorn/no-unknown-pseudo-selectors'?: Linter.RuleEntry<[]>;
8378
8383
  /**
8379
8384
  * 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
8385
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unnecessary-array-flat-depth.md
8381
8386
  */
8382
8387
  'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
8383
8388
  /**
8384
8389
  * 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
8390
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unnecessary-array-flat-map.md
8386
8391
  */
8387
8392
  'unicorn/no-unnecessary-array-flat-map'?: Linter.RuleEntry<[]>;
8388
8393
  /**
8389
8394
  * 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
8395
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unnecessary-array-splice-count.md
8391
8396
  */
8392
8397
  'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
8393
8398
  /**
8394
8399
  * Disallow awaiting non-promise values.
8395
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-unnecessary-await.md
8400
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unnecessary-await.md
8396
8401
  */
8397
8402
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
8398
8403
  /**
8399
8404
  * 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
8405
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unnecessary-boolean-comparison.md
8401
8406
  */
8402
8407
  'unicorn/no-unnecessary-boolean-comparison'?: Linter.RuleEntry<[]>;
8403
8408
  /**
8404
8409
  * 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
8410
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unnecessary-default-arguments.md
8406
8411
  */
8407
8412
  'unicorn/no-unnecessary-default-arguments'?: Linter.RuleEntry<[]>;
8408
8413
  /**
8409
8414
  * 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
8415
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unnecessary-fetch-options.md
8411
8416
  */
8412
8417
  'unicorn/no-unnecessary-fetch-options'?: Linter.RuleEntry<[]>;
8413
8418
  /**
8414
8419
  * Disallow unnecessary `globalThis` references.
8415
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-unnecessary-global-this.md
8420
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unnecessary-global-this.md
8416
8421
  */
8417
8422
  'unicorn/no-unnecessary-global-this'?: Linter.RuleEntry<[]>;
8418
8423
  /**
8419
8424
  * 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
8425
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unnecessary-nested-ternary.md
8421
8426
  */
8422
8427
  'unicorn/no-unnecessary-nested-ternary'?: Linter.RuleEntry<[]>;
8423
8428
  /**
8424
8429
  * 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
8430
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unnecessary-parameters.md
8426
8431
  */
8427
8432
  'unicorn/no-unnecessary-parameters'?: Linter.RuleEntry<UnicornNoUnnecessaryParameters>;
8428
8433
  /**
8429
8434
  * 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
8435
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unnecessary-polyfills.md
8431
8436
  */
8432
8437
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
8433
8438
  /**
8434
8439
  * 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
8440
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unnecessary-slice-end.md
8436
8441
  */
8437
8442
  'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
8438
8443
  /**
8439
8444
  * 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
8445
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unnecessary-splice.md
8441
8446
  */
8442
8447
  'unicorn/no-unnecessary-splice'?: Linter.RuleEntry<[]>;
8443
8448
  /**
8444
8449
  * 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
8450
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unnecessary-string-trim.md
8446
8451
  */
8447
8452
  'unicorn/no-unnecessary-string-trim'?: Linter.RuleEntry<[]>;
8448
8453
  /**
8449
8454
  * Disallow unreadable array destructuring.
8450
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-unreadable-array-destructuring.md
8455
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unreadable-array-destructuring.md
8451
8456
  */
8452
8457
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<UnicornNoUnreadableArrayDestructuring>;
8453
8458
  /**
8454
8459
  * 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
8460
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unreadable-for-of-expression.md
8456
8461
  */
8457
8462
  'unicorn/no-unreadable-for-of-expression'?: Linter.RuleEntry<[]>;
8458
8463
  /**
8459
8464
  * Disallow unreadable IIFEs.
8460
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-unreadable-iife.md
8465
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unreadable-iife.md
8461
8466
  */
8462
8467
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
8463
8468
  /**
8464
8469
  * Disallow unreadable `new` expressions.
8465
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-unreadable-new-expression.md
8470
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unreadable-new-expression.md
8466
8471
  */
8467
8472
  'unicorn/no-unreadable-new-expression'?: Linter.RuleEntry<[]>;
8468
8473
  /**
8469
8474
  * Disallow unreadable object destructuring.
8470
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-unreadable-object-destructuring.md
8475
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unreadable-object-destructuring.md
8471
8476
  */
8472
8477
  'unicorn/no-unreadable-object-destructuring'?: Linter.RuleEntry<[]>;
8473
8478
  /**
8474
8479
  * 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
8480
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unsafe-buffer-conversion.md
8476
8481
  */
8477
8482
  'unicorn/no-unsafe-buffer-conversion'?: Linter.RuleEntry<[]>;
8478
8483
  /**
8479
8484
  * 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
8485
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unsafe-dom-html.md
8481
8486
  */
8482
8487
  'unicorn/no-unsafe-dom-html'?: Linter.RuleEntry<[]>;
8483
8488
  /**
8484
8489
  * 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
8490
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unsafe-json-serialization.md
8486
8491
  */
8487
8492
  'unicorn/no-unsafe-json-serialization'?: Linter.RuleEntry<[]>;
8488
8493
  /**
8489
8494
  * 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
8495
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unsafe-promise-all-settled-values.md
8491
8496
  */
8492
8497
  'unicorn/no-unsafe-promise-all-settled-values'?: Linter.RuleEntry<[]>;
8493
8498
  /**
8494
8499
  * 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
8500
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unsafe-property-key.md
8496
8501
  */
8497
8502
  'unicorn/no-unsafe-property-key'?: Linter.RuleEntry<[]>;
8498
8503
  /**
8499
8504
  * 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
8505
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unsafe-sqlite-interpolation.md
8501
8506
  */
8502
8507
  'unicorn/no-unsafe-sqlite-interpolation'?: Linter.RuleEntry<[]>;
8503
8508
  /**
8504
8509
  * 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
8510
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unsafe-string-replacement.md
8506
8511
  */
8507
8512
  'unicorn/no-unsafe-string-replacement'?: Linter.RuleEntry<[]>;
8508
8513
  /**
8509
8514
  * 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
8515
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/deleted-and-deprecated-rules.md#no-unscoped-css-nesting-selector
8511
8516
  * @deprecated
8512
8517
  */
8513
8518
  'unicorn/no-unscoped-css-nesting-selector'?: Linter.RuleEntry<[]>;
8514
8519
  /**
8515
8520
  * 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
8521
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/deleted-and-deprecated-rules.md#no-unused-array-method-return
8517
8522
  * @deprecated
8518
8523
  */
8519
8524
  'unicorn/no-unused-array-method-return'?: Linter.RuleEntry<[]>;
8520
8525
  /**
8521
8526
  * 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
8527
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unused-builtin-method-return.md
8523
8528
  */
8524
8529
  'unicorn/no-unused-builtin-method-return'?: Linter.RuleEntry<[]>;
8525
8530
  /**
8526
8531
  * 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
8532
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unused-iterator-helper.md
8528
8533
  */
8529
8534
  'unicorn/no-unused-iterator-helper'?: Linter.RuleEntry<[]>;
8530
8535
  /**
8531
8536
  * Disallow unused object properties.
8532
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-unused-properties.md
8537
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unused-properties.md
8533
8538
  */
8534
8539
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
8535
8540
  /**
8536
8541
  * 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
8542
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-url-in-search-params.md
8538
8543
  */
8539
8544
  'unicorn/no-url-in-search-params'?: Linter.RuleEntry<[]>;
8540
8545
  /**
8541
8546
  * 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
8547
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-useless-boolean-cast.md
8543
8548
  */
8544
8549
  'unicorn/no-useless-boolean-cast'?: Linter.RuleEntry<[]>;
8545
8550
  /**
8546
8551
  * 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
8552
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-useless-coercion.md
8548
8553
  */
8549
8554
  'unicorn/no-useless-coercion'?: Linter.RuleEntry<[]>;
8550
8555
  /**
8551
8556
  * 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
8557
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-useless-collection-argument.md
8553
8558
  */
8554
8559
  'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>;
8555
8560
  /**
8556
8561
  * 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
8562
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-useless-compound-assignment.md
8558
8563
  */
8559
8564
  'unicorn/no-useless-compound-assignment'?: Linter.RuleEntry<[]>;
8560
8565
  /**
8561
8566
  * Disallow useless concatenation of literals.
8562
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-useless-concat.md
8567
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-useless-concat.md
8563
8568
  */
8564
8569
  'unicorn/no-useless-concat'?: Linter.RuleEntry<[]>;
8565
8570
  /**
8566
8571
  * Disallow useless `continue` statements.
8567
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-useless-continue.md
8572
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-useless-continue.md
8568
8573
  */
8569
8574
  'unicorn/no-useless-continue'?: Linter.RuleEntry<[]>;
8570
8575
  /**
8571
8576
  * 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
8577
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-useless-delete-check.md
8573
8578
  */
8574
8579
  'unicorn/no-useless-delete-check'?: Linter.RuleEntry<[]>;
8575
8580
  /**
8576
8581
  * 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
8582
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-useless-else.md
8578
8583
  */
8579
8584
  'unicorn/no-useless-else'?: Linter.RuleEntry<[]>;
8580
8585
  /**
8581
8586
  * 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
8587
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-useless-error-capture-stack-trace.md
8583
8588
  */
8584
8589
  'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
8585
8590
  /**
8586
8591
  * 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
8592
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-useless-fallback-in-spread.md
8588
8593
  */
8589
8594
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
8590
8595
  /**
8591
8596
  * 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
8597
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-useless-iterator-to-array.md
8593
8598
  */
8594
8599
  'unicorn/no-useless-iterator-to-array'?: Linter.RuleEntry<[]>;
8595
8600
  /**
8596
8601
  * 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
8602
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-useless-length-check.md
8598
8603
  */
8599
8604
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
8600
8605
  /**
8601
8606
  * 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
8607
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-useless-logical-operand.md
8603
8608
  */
8604
8609
  'unicorn/no-useless-logical-operand'?: Linter.RuleEntry<[]>;
8605
8610
  /**
8606
8611
  * 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
8612
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-useless-override.md
8608
8613
  */
8609
8614
  'unicorn/no-useless-override'?: Linter.RuleEntry<[]>;
8610
8615
  /**
8611
8616
  * 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
8617
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-useless-promise-resolve-reject.md
8613
8618
  */
8614
8619
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
8615
8620
  /**
8616
8621
  * Disallow redundant re-exports.
8617
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-useless-re-export.md
8622
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-useless-re-export.md
8618
8623
  */
8619
8624
  'unicorn/no-useless-re-export'?: Linter.RuleEntry<[]>;
8620
8625
  /**
8621
8626
  * 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
8627
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-useless-recursion.md
8623
8628
  */
8624
8629
  'unicorn/no-useless-recursion'?: Linter.RuleEntry<[]>;
8625
8630
  /**
8626
8631
  * 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
8632
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-useless-set-construction.md
8628
8633
  */
8629
8634
  'unicorn/no-useless-set-construction'?: Linter.RuleEntry<[]>;
8630
8635
  /**
8631
8636
  * Disallow unnecessary spread.
8632
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-useless-spread.md
8637
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-useless-spread.md
8633
8638
  */
8634
8639
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
8635
8640
  /**
8636
8641
  * 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
8642
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-useless-switch-case.md
8638
8643
  */
8639
8644
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
8640
8645
  /**
8641
8646
  * 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
8647
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-useless-template-literals.md
8643
8648
  */
8644
8649
  'unicorn/no-useless-template-literals'?: Linter.RuleEntry<[]>;
8645
8650
  /**
8646
8651
  * Disallow useless `undefined`.
8647
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-useless-undefined.md
8652
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-useless-undefined.md
8648
8653
  */
8649
8654
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
8650
8655
  /**
8651
8656
  * 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
8657
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-using-resource-escape.md
8653
8658
  */
8654
8659
  'unicorn/no-using-resource-escape'?: Linter.RuleEntry<[]>;
8655
8660
  /**
8656
8661
  * 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
8662
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-xor-as-exponentiation.md
8658
8663
  */
8659
8664
  'unicorn/no-xor-as-exponentiation'?: Linter.RuleEntry<[]>;
8660
8665
  /**
8661
8666
  * 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
8667
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-zero-fractions.md
8663
8668
  */
8664
8669
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
8665
8670
  /**
8666
8671
  * 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
8672
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/number-literal-case.md
8668
8673
  */
8669
8674
  'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
8670
8675
  /**
8671
8676
  * 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
8677
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/numeric-separators-style.md
8673
8678
  */
8674
8679
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
8675
8680
  /**
8676
8681
  * Require assignment operator shorthand where possible.
8677
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/operator-assignment.md
8682
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/operator-assignment.md
8678
8683
  */
8679
8684
  'unicorn/operator-assignment'?: Linter.RuleEntry<UnicornOperatorAssignment>;
8680
8685
  /**
8681
8686
  * 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
8687
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-abort-signal-any.md
8683
8688
  */
8684
8689
  'unicorn/prefer-abort-signal-any'?: Linter.RuleEntry<[]>;
8685
8690
  /**
8686
8691
  * 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
8692
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-abort-signal-timeout.md
8688
8693
  */
8689
8694
  'unicorn/prefer-abort-signal-timeout'?: Linter.RuleEntry<[]>;
8690
8695
  /**
8691
8696
  * 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
8697
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-add-event-listener.md
8693
8698
  */
8694
8699
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
8695
8700
  /**
8696
8701
  * 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
8702
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-add-event-listener-options.md
8698
8703
  */
8699
8704
  'unicorn/prefer-add-event-listener-options'?: Linter.RuleEntry<[]>;
8700
8705
  /**
8701
8706
  * 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
8707
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-aggregate-error.md
8703
8708
  */
8704
8709
  'unicorn/prefer-aggregate-error'?: Linter.RuleEntry<[]>;
8705
8710
  /**
8706
8711
  * 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
8712
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-array-find.md
8708
8713
  */
8709
8714
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
8710
8715
  /**
8711
8716
  * 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
8717
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-array-flat.md
8713
8718
  */
8714
8719
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
8715
8720
  /**
8716
8721
  * 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
8722
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-array-flat-map.md
8718
8723
  */
8719
8724
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
8720
8725
  /**
8721
8726
  * 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
8727
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-array-from-async.md
8723
8728
  */
8724
8729
  'unicorn/prefer-array-from-async'?: Linter.RuleEntry<[]>;
8725
8730
  /**
8726
8731
  * 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
8732
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-array-from-map.md
8728
8733
  */
8729
8734
  'unicorn/prefer-array-from-map'?: Linter.RuleEntry<[]>;
8730
8735
  /**
8731
8736
  * 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
8737
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-array-from-range.md
8733
8738
  */
8734
8739
  'unicorn/prefer-array-from-range'?: Linter.RuleEntry<[]>;
8735
8740
  /**
8736
8741
  * 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
8742
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-array-index-of.md
8738
8743
  */
8739
8744
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
8740
8745
  /**
8741
8746
  * 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
8747
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-array-iterable-methods.md
8743
8748
  */
8744
8749
  'unicorn/prefer-array-iterable-methods'?: Linter.RuleEntry<[]>;
8745
8750
  /**
8746
8751
  * 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
8752
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-array-last-methods.md
8748
8753
  */
8749
8754
  'unicorn/prefer-array-last-methods'?: Linter.RuleEntry<[]>;
8750
8755
  /**
8751
8756
  * 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
8757
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-array-slice.md
8753
8758
  */
8754
8759
  'unicorn/prefer-array-slice'?: Linter.RuleEntry<[]>;
8755
8760
  /**
8756
8761
  * 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
8762
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-array-some.md
8758
8763
  */
8759
8764
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
8760
8765
  /**
8761
8766
  * 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
8767
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-at.md
8763
8768
  */
8764
8769
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
8765
8770
  /**
8766
8771
  * Prefer `await` over promise chaining.
8767
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-await.md
8772
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-await.md
8768
8773
  */
8769
8774
  'unicorn/prefer-await'?: Linter.RuleEntry<[]>;
8770
8775
  /**
8771
8776
  * 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
8777
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-bigint-literals.md
8773
8778
  */
8774
8779
  'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>;
8775
8780
  /**
8776
8781
  * 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
8782
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-blob-reading-methods.md
8778
8783
  */
8779
8784
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
8780
8785
  /**
8781
8786
  * 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
8787
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-block-statement-over-iife.md
8783
8788
  */
8784
8789
  'unicorn/prefer-block-statement-over-iife'?: Linter.RuleEntry<[]>;
8785
8790
  /**
8786
8791
  * 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
8792
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-boolean-return.md
8788
8793
  */
8789
8794
  'unicorn/prefer-boolean-return'?: Linter.RuleEntry<[]>;
8790
8795
  /**
8791
8796
  * 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
8797
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-class-fields.md
8793
8798
  */
8794
8799
  'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
8795
8800
  /**
8796
8801
  * 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
8802
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-classlist-toggle.md
8798
8803
  */
8799
8804
  'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>;
8800
8805
  /**
8801
8806
  * 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
8807
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-code-point.md
8803
8808
  */
8804
8809
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
8805
8810
  /**
8806
8811
  * 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
8812
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-combined-guards.md
8808
8813
  */
8809
8814
  'unicorn/prefer-combined-guards'?: Linter.RuleEntry<UnicornPreferCombinedGuards>;
8810
8815
  /**
8811
8816
  * 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
8817
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-continue.md
8813
8818
  */
8814
8819
  'unicorn/prefer-continue'?: Linter.RuleEntry<UnicornPreferContinue>;
8815
8820
  /**
8816
8821
  * 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
8822
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-date-now.md
8818
8823
  */
8819
8824
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
8820
8825
  /**
8821
8826
  * 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
8827
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-default-parameters.md
8823
8828
  */
8824
8829
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<UnicornPreferDefaultParameters>;
8825
8830
  /**
8826
8831
  * 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
8832
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-direct-iteration.md
8828
8833
  */
8829
8834
  'unicorn/prefer-direct-iteration'?: Linter.RuleEntry<[]>;
8830
8835
  /**
8831
8836
  * 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
8837
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-dispose.md
8833
8838
  */
8834
8839
  'unicorn/prefer-dispose'?: Linter.RuleEntry<[]>;
8835
8840
  /**
8836
8841
  * 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
8842
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-dom-node-append.md
8838
8843
  */
8839
8844
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
8840
8845
  /**
8841
8846
  * 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
8847
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
8843
8848
  * @deprecated
8844
8849
  */
8845
8850
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
8846
8851
  /**
8847
8852
  * 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
8853
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-dom-node-html-methods.md
8849
8854
  */
8850
8855
  'unicorn/prefer-dom-node-html-methods'?: Linter.RuleEntry<UnicornPreferDomNodeHtmlMethods>;
8851
8856
  /**
8852
8857
  * 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
8858
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-dom-node-remove.md
8854
8859
  */
8855
8860
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
8856
8861
  /**
8857
8862
  * 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
8863
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-dom-node-replace-children.md
8859
8864
  */
8860
8865
  'unicorn/prefer-dom-node-replace-children'?: Linter.RuleEntry<[]>;
8861
8866
  /**
8862
8867
  * 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
8868
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-dom-node-text-content.md
8864
8869
  */
8865
8870
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
8866
8871
  /**
8867
8872
  * 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
8873
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-early-return.md
8869
8874
  */
8870
8875
  'unicorn/prefer-early-return'?: Linter.RuleEntry<UnicornPreferEarlyReturn>;
8871
8876
  /**
8872
8877
  * 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
8878
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-else-if.md
8874
8879
  */
8875
8880
  'unicorn/prefer-else-if'?: Linter.RuleEntry<[]>;
8876
8881
  /**
8877
8882
  * 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
8883
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-error-is-error.md
8879
8884
  */
8880
8885
  'unicorn/prefer-error-is-error'?: Linter.RuleEntry<[]>;
8881
8886
  /**
8882
8887
  * 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
8888
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-escaped-irregular-whitespace.md
8884
8889
  */
8885
8890
  'unicorn/prefer-escaped-irregular-whitespace'?: Linter.RuleEntry<[]>;
8886
8891
  /**
8887
8892
  * Prefer `EventTarget` over `EventEmitter`.
8888
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-event-target.md
8893
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-event-target.md
8889
8894
  */
8890
8895
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
8891
8896
  /**
8892
8897
  * 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
8898
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/deleted-and-deprecated-rules.md#prefer-explicit-viewport-units
8894
8899
  * @deprecated
8895
8900
  */
8896
8901
  'unicorn/prefer-explicit-viewport-units'?: Linter.RuleEntry<[]>;
8897
8902
  /**
8898
8903
  * 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
8904
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-export-from.md
8900
8905
  */
8901
8906
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
8902
8907
  /**
8903
8908
  * 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
8909
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-flat-math-min-max.md
8905
8910
  */
8906
8911
  'unicorn/prefer-flat-math-min-max'?: Linter.RuleEntry<[]>;
8907
8912
  /**
8908
8913
  * 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
8914
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-get-or-insert-computed.md
8910
8915
  */
8911
8916
  'unicorn/prefer-get-or-insert-computed'?: Linter.RuleEntry<[]>;
8912
8917
  /**
8913
8918
  * 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
8919
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-global-number-constants.md
8915
8920
  */
8916
8921
  'unicorn/prefer-global-number-constants'?: Linter.RuleEntry<[]>;
8917
8922
  /**
8918
8923
  * 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
8924
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-global-this.md
8920
8925
  */
8921
8926
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
8922
8927
  /**
8923
8928
  * 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
8929
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-group-by.md
8925
8930
  */
8926
8931
  'unicorn/prefer-group-by'?: Linter.RuleEntry<[]>;
8927
8932
  /**
8928
8933
  * Prefer `.has()` when checking existence.
8929
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-has-check.md
8934
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-has-check.md
8930
8935
  */
8931
8936
  'unicorn/prefer-has-check'?: Linter.RuleEntry<[]>;
8932
8937
  /**
8933
8938
  * 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
8939
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-hoisting-branch-code.md
8935
8940
  */
8936
8941
  'unicorn/prefer-hoisting-branch-code'?: Linter.RuleEntry<[]>;
8937
8942
  /**
8938
8943
  * Prefer HTTPS over HTTP.
8939
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-https.md
8944
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-https.md
8940
8945
  */
8941
8946
  'unicorn/prefer-https'?: Linter.RuleEntry<UnicornPreferHttps>;
8942
8947
  /**
8943
8948
  * 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
8949
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
8945
8950
  */
8946
8951
  'unicorn/prefer-identifier-import-export-specifiers'?: Linter.RuleEntry<[]>;
8947
8952
  /**
8948
8953
  * 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
8954
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-import-meta-properties.md
8950
8955
  */
8951
8956
  'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
8952
8957
  /**
8953
8958
  * 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
8959
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-includes.md
8955
8960
  */
8956
8961
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
8957
8962
  /**
8958
8963
  * 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
8964
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
8960
8965
  */
8961
8966
  'unicorn/prefer-includes-over-repeated-comparisons'?: Linter.RuleEntry<UnicornPreferIncludesOverRepeatedComparisons>;
8962
8967
  /**
8963
8968
  * 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
8969
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-iterable-in-constructor.md
8965
8970
  */
8966
8971
  'unicorn/prefer-iterable-in-constructor'?: Linter.RuleEntry<[]>;
8967
8972
  /**
8968
8973
  * 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
8974
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-iterator-concat.md
8970
8975
  */
8971
8976
  'unicorn/prefer-iterator-concat'?: Linter.RuleEntry<[]>;
8972
8977
  /**
8973
8978
  * 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
8979
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-iterator-helpers.md
8975
8980
  */
8976
8981
  'unicorn/prefer-iterator-helpers'?: Linter.RuleEntry<[]>;
8977
8982
  /**
8978
8983
  * 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
8984
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-iterator-to-array.md
8980
8985
  */
8981
8986
  'unicorn/prefer-iterator-to-array'?: Linter.RuleEntry<[]>;
8982
8987
  /**
8983
8988
  * 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
8989
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-iterator-to-array-at-end.md
8985
8990
  */
8986
8991
  'unicorn/prefer-iterator-to-array-at-end'?: Linter.RuleEntry<[]>;
8987
8992
  /**
8988
8993
  * 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
8994
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-iterator-zip.md
8990
8995
  */
8991
8996
  'unicorn/prefer-iterator-zip'?: Linter.RuleEntry<[]>;
8992
8997
  /**
8993
8998
  * 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
8999
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-json-import.md
8995
9000
  */
8996
9001
  'unicorn/prefer-json-import'?: Linter.RuleEntry<[]>;
8997
9002
  /**
8998
9003
  * 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
9004
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
9000
9005
  * @deprecated
9001
9006
  */
9002
9007
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
9003
9008
  /**
9004
9009
  * 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
9010
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-keyboard-event-key.md
9006
9011
  */
9007
9012
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
9008
9013
  /**
9009
9014
  * 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
9015
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-literal-ascii.md
9011
9016
  */
9012
9017
  'unicorn/prefer-literal-ascii'?: Linter.RuleEntry<[]>;
9013
9018
  /**
9014
9019
  * 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
9020
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-location-assign.md
9016
9021
  */
9017
9022
  'unicorn/prefer-location-assign'?: Linter.RuleEntry<[]>;
9018
9023
  /**
9019
9024
  * 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
9025
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-logical-operator-over-ternary.md
9021
9026
  */
9022
9027
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
9023
9028
  /**
9024
9029
  * 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
9030
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-map-from-entries.md
9026
9031
  */
9027
9032
  'unicorn/prefer-map-from-entries'?: Linter.RuleEntry<[]>;
9028
9033
  /**
9029
9034
  * 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
9035
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-math-abs.md
9031
9036
  */
9032
9037
  'unicorn/prefer-math-abs'?: Linter.RuleEntry<[]>;
9033
9038
  /**
9034
9039
  * 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
9040
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-math-constants.md
9036
9041
  */
9037
9042
  'unicorn/prefer-math-constants'?: Linter.RuleEntry<[]>;
9038
9043
  /**
9039
9044
  * 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
9045
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-math-min-max.md
9041
9046
  */
9042
9047
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
9043
9048
  /**
9044
9049
  * 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
9050
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-math-trunc.md
9046
9051
  */
9047
9052
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
9048
9053
  /**
9049
9054
  * 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
9055
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/deleted-and-deprecated-rules.md#prefer-media-feature-range-syntax
9051
9056
  * @deprecated
9052
9057
  */
9053
9058
  'unicorn/prefer-media-feature-range-syntax'?: Linter.RuleEntry<[]>;
9054
9059
  /**
9055
9060
  * 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
9061
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-minimal-ternary.md
9057
9062
  */
9058
9063
  'unicorn/prefer-minimal-ternary'?: Linter.RuleEntry<UnicornPreferMinimalTernary>;
9059
9064
  /**
9060
9065
  * Prefer modern DOM APIs.
9061
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-modern-dom-apis.md
9066
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-modern-dom-apis.md
9062
9067
  */
9063
9068
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
9064
9069
  /**
9065
9070
  * 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
9071
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-modern-math-apis.md
9067
9072
  */
9068
9073
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
9069
9074
  /**
9070
9075
  * Prefer JavaScript modules (ESM) over CommonJS.
9071
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-module.md
9076
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-module.md
9072
9077
  */
9073
9078
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
9074
9079
  /**
9075
9080
  * 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
9081
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-native-coercion-functions.md
9077
9082
  */
9078
9083
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
9079
9084
  /**
9080
9085
  * 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
9086
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-negative-index.md
9082
9087
  */
9083
9088
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
9084
9089
  /**
9085
9090
  * 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
9091
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-node-protocol.md
9087
9092
  */
9088
9093
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
9089
9094
  /**
9090
9095
  * 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
9096
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-number-coercion.md
9092
9097
  */
9093
9098
  'unicorn/prefer-number-coercion'?: Linter.RuleEntry<[]>;
9094
9099
  /**
9095
9100
  * 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
9101
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-number-is-safe-integer.md
9097
9102
  */
9098
9103
  'unicorn/prefer-number-is-safe-integer'?: Linter.RuleEntry<[]>;
9099
9104
  /**
9100
9105
  * 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
9106
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-number-properties.md
9102
9107
  */
9103
9108
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
9104
9109
  /**
9105
9110
  * 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
9111
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-object-define-properties.md
9107
9112
  */
9108
9113
  'unicorn/prefer-object-define-properties'?: Linter.RuleEntry<[]>;
9109
9114
  /**
9110
9115
  * 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
9116
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-object-destructuring-defaults.md
9112
9117
  */
9113
9118
  'unicorn/prefer-object-destructuring-defaults'?: Linter.RuleEntry<[]>;
9114
9119
  /**
9115
9120
  * 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
9121
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-object-from-entries.md
9117
9122
  */
9118
9123
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
9119
9124
  /**
9120
9125
  * 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
9126
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-object-iterable-methods.md
9122
9127
  */
9123
9128
  'unicorn/prefer-object-iterable-methods'?: Linter.RuleEntry<[]>;
9124
9129
  /**
9125
9130
  * 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
9131
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-observer-apis.md
9127
9132
  */
9128
9133
  'unicorn/prefer-observer-apis'?: Linter.RuleEntry<[]>;
9129
9134
  /**
9130
9135
  * 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
9136
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-optional-catch-binding.md
9132
9137
  */
9133
9138
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
9139
+ /**
9140
+ * Prefer an options object over optional positional parameters.
9141
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-options-parameter.md
9142
+ */
9143
+ 'unicorn/prefer-options-parameter'?: Linter.RuleEntry<UnicornPreferOptionsParameter>;
9134
9144
  /**
9135
9145
  * 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
9146
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-path2d.md
9137
9147
  */
9138
9148
  'unicorn/prefer-path2d'?: Linter.RuleEntry<[]>;
9139
9149
  /**
9140
9150
  * 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
9151
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-private-class-fields.md
9142
9152
  */
9143
9153
  'unicorn/prefer-private-class-fields'?: Linter.RuleEntry<[]>;
9144
9154
  /**
9145
9155
  * 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
9156
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-promise-static-methods.md
9147
9157
  */
9148
9158
  'unicorn/prefer-promise-static-methods'?: Linter.RuleEntry<[]>;
9149
9159
  /**
9150
9160
  * 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
9161
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-promise-try.md
9152
9162
  */
9153
9163
  'unicorn/prefer-promise-try'?: Linter.RuleEntry<[]>;
9154
9164
  /**
9155
9165
  * 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
9166
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-promise-with-resolvers.md
9157
9167
  */
9158
9168
  'unicorn/prefer-promise-with-resolvers'?: Linter.RuleEntry<[]>;
9159
9169
  /**
9160
9170
  * 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
9171
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-prototype-methods.md
9162
9172
  */
9163
9173
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
9164
9174
  /**
9165
9175
  * 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
9176
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-query-selector.md
9167
9177
  */
9168
9178
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<UnicornPreferQuerySelector>;
9169
9179
  /**
9170
9180
  * 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
9181
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-queue-microtask.md
9172
9182
  */
9173
9183
  'unicorn/prefer-queue-microtask'?: Linter.RuleEntry<UnicornPreferQueueMicrotask>;
9174
9184
  /**
9175
9185
  * 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
9186
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-reflect-apply.md
9177
9187
  */
9178
9188
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
9179
9189
  /**
9180
9190
  * 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
9191
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-regexp-escape.md
9182
9192
  */
9183
9193
  'unicorn/prefer-regexp-escape'?: Linter.RuleEntry<[]>;
9194
+ /**
9195
+ * Prefer `RegExp#exec()` over `String#match()` for non-global regular expressions.
9196
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-regexp-exec.md
9197
+ */
9198
+ 'unicorn/prefer-regexp-exec'?: Linter.RuleEntry<[]>;
9184
9199
  /**
9185
9200
  * 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
9201
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-regexp-test.md
9187
9202
  */
9188
9203
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
9189
9204
  /**
9190
9205
  * 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
9206
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-response-static-json.md
9192
9207
  */
9193
9208
  'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>;
9194
9209
  /**
9195
9210
  * 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
9211
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-scoped-selector.md
9197
9212
  */
9198
9213
  'unicorn/prefer-scoped-selector'?: Linter.RuleEntry<[]>;
9199
9214
  /**
9200
9215
  * 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
9216
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-set-has.md
9202
9217
  */
9203
9218
  'unicorn/prefer-set-has'?: Linter.RuleEntry<UnicornPreferSetHas>;
9204
9219
  /**
9205
9220
  * 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
9221
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-set-methods.md
9207
9222
  */
9208
9223
  'unicorn/prefer-set-methods'?: Linter.RuleEntry<[]>;
9209
9224
  /**
9210
9225
  * 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
9226
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-set-size.md
9212
9227
  */
9213
9228
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
9214
9229
  /**
9215
9230
  * 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
9231
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-short-arrow-method.md
9217
9232
  */
9218
9233
  'unicorn/prefer-short-arrow-method'?: Linter.RuleEntry<UnicornPreferShortArrowMethod>;
9219
9234
  /**
9220
9235
  * 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
9236
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-short-escape-sequences.md
9222
9237
  */
9223
9238
  'unicorn/prefer-short-escape-sequences'?: Linter.RuleEntry<[]>;
9224
9239
  /**
9225
9240
  * 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
9241
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-simple-condition-first.md
9227
9242
  */
9228
9243
  'unicorn/prefer-simple-condition-first'?: Linter.RuleEntry<[]>;
9229
9244
  /**
9230
9245
  * 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
9246
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-simple-sort-comparator.md
9232
9247
  */
9233
9248
  'unicorn/prefer-simple-sort-comparator'?: Linter.RuleEntry<[]>;
9234
9249
  /**
9235
9250
  * Prefer simplified conditions.
9236
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-simplified-conditions.md
9251
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-simplified-conditions.md
9237
9252
  */
9238
9253
  'unicorn/prefer-simplified-conditions'?: Linter.RuleEntry<UnicornPreferSimplifiedConditions>;
9239
9254
  /**
9240
9255
  * 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
9256
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-single-array-predicate.md
9242
9257
  */
9243
9258
  'unicorn/prefer-single-array-predicate'?: Linter.RuleEntry<[]>;
9244
9259
  /**
9245
9260
  * 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
9261
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-single-call.md
9247
9262
  */
9248
9263
  'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
9249
9264
  /**
9250
9265
  * 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
9266
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-single-object-destructuring.md
9252
9267
  */
9253
9268
  'unicorn/prefer-single-object-destructuring'?: Linter.RuleEntry<[]>;
9254
9269
  /**
9255
9270
  * 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
9271
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-single-replace.md
9257
9272
  */
9258
9273
  'unicorn/prefer-single-replace'?: Linter.RuleEntry<[]>;
9259
9274
  /**
9260
9275
  * 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
9276
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-smaller-scope.md
9262
9277
  */
9263
- 'unicorn/prefer-smaller-scope'?: Linter.RuleEntry<[]>;
9278
+ 'unicorn/prefer-smaller-scope'?: Linter.RuleEntry<UnicornPreferSmallerScope>;
9264
9279
  /**
9265
9280
  * 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
9281
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-split-limit.md
9267
9282
  */
9268
9283
  'unicorn/prefer-split-limit'?: Linter.RuleEntry<[]>;
9269
9284
  /**
9270
9285
  * 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
9286
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-spread.md
9272
9287
  */
9273
9288
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
9274
9289
  /**
9275
9290
  * 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
9291
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-string-match-all.md
9277
9292
  */
9278
9293
  'unicorn/prefer-string-match-all'?: Linter.RuleEntry<[]>;
9279
9294
  /**
9280
9295
  * 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
9296
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-string-pad-start-end.md
9282
9297
  */
9283
9298
  'unicorn/prefer-string-pad-start-end'?: Linter.RuleEntry<[]>;
9284
9299
  /**
9285
9300
  * 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
9301
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-string-raw.md
9287
9302
  */
9288
9303
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
9289
9304
  /**
9290
9305
  * 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
9306
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-string-repeat.md
9292
9307
  */
9293
9308
  'unicorn/prefer-string-repeat'?: Linter.RuleEntry<UnicornPreferStringRepeat>;
9294
9309
  /**
9295
9310
  * 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
9311
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-string-replace-all.md
9297
9312
  */
9298
9313
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
9299
9314
  /**
9300
9315
  * 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
9316
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-string-slice.md
9302
9317
  */
9303
9318
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
9304
9319
  /**
9305
9320
  * 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
9321
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-string-starts-ends-with.md
9307
9322
  */
9308
9323
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
9309
9324
  /**
9310
9325
  * 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
9326
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-string-trim-start-end.md
9312
9327
  */
9313
9328
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
9314
9329
  /**
9315
9330
  * 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
9331
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-structured-clone.md
9317
9332
  */
9318
9333
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
9319
9334
  /**
9320
9335
  * Prefer `switch` over multiple `else-if`.
9321
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-switch.md
9336
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-switch.md
9322
9337
  */
9323
9338
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
9324
9339
  /**
9325
9340
  * Prefer `Temporal` over `Date`.
9326
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-temporal.md
9341
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-temporal.md
9327
9342
  */
9328
9343
  'unicorn/prefer-temporal'?: Linter.RuleEntry<UnicornPreferTemporal>;
9329
9344
  /**
9330
9345
  * Prefer direct Temporal conversion methods.
9331
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-temporal-conversion.md
9346
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-temporal-conversion.md
9332
9347
  */
9333
9348
  'unicorn/prefer-temporal-conversion'?: Linter.RuleEntry<[]>;
9334
9349
  /**
9335
9350
  * 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
9351
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-ternary.md
9337
9352
  */
9338
9353
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
9339
9354
  /**
9340
9355
  * 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
9356
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-then-catch.md
9342
9357
  */
9343
9358
  'unicorn/prefer-then-catch'?: Linter.RuleEntry<[]>;
9344
9359
  /**
9345
9360
  * 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
9361
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-toggle-attribute.md
9347
9362
  */
9348
9363
  'unicorn/prefer-toggle-attribute'?: Linter.RuleEntry<[]>;
9349
9364
  /**
9350
9365
  * 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
9366
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-top-level-await.md
9352
9367
  */
9353
9368
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
9354
9369
  /**
9355
9370
  * 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
9371
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-type-error.md
9357
9372
  */
9358
9373
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
9359
9374
  /**
9360
9375
  * 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
9376
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-type-literal-last.md
9362
9377
  */
9363
9378
  'unicorn/prefer-type-literal-last'?: Linter.RuleEntry<[]>;
9364
9379
  /**
9365
9380
  * 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
9381
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-uint8array-base64.md
9367
9382
  */
9368
- 'unicorn/prefer-uint8array-base64'?: Linter.RuleEntry<[]>;
9383
+ 'unicorn/prefer-uint8array-base64'?: Linter.RuleEntry<UnicornPreferUint8ArrayBase64>;
9369
9384
  /**
9370
9385
  * 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
9386
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-uint8array-hex.md
9372
9387
  */
9373
- 'unicorn/prefer-uint8array-hex'?: Linter.RuleEntry<[]>;
9388
+ 'unicorn/prefer-uint8array-hex'?: Linter.RuleEntry<UnicornPreferUint8ArrayHex>;
9374
9389
  /**
9375
9390
  * 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
9391
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-unary-minus.md
9377
9392
  */
9378
9393
  'unicorn/prefer-unary-minus'?: Linter.RuleEntry<[]>;
9379
9394
  /**
9380
9395
  * 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
9396
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-unicode-code-point-escapes.md
9382
9397
  */
9383
9398
  'unicorn/prefer-unicode-code-point-escapes'?: Linter.RuleEntry<[]>;
9384
9399
  /**
9385
9400
  * 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
9401
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-url-can-parse.md
9387
9402
  */
9388
9403
  'unicorn/prefer-url-can-parse'?: Linter.RuleEntry<[]>;
9389
9404
  /**
9390
9405
  * 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
9406
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-url-href.md
9392
9407
  */
9393
9408
  'unicorn/prefer-url-href'?: Linter.RuleEntry<[]>;
9394
9409
  /**
9395
9410
  * 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
9411
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-url-search-parameters.md
9397
9412
  */
9398
9413
  'unicorn/prefer-url-search-parameters'?: Linter.RuleEntry<[]>;
9399
9414
  /**
9400
9415
  * 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
9416
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-while-loop-condition.md
9402
9417
  */
9403
9418
  'unicorn/prefer-while-loop-condition'?: Linter.RuleEntry<[]>;
9404
9419
  /**
9405
9420
  * 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
9421
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
9407
9422
  * @deprecated
9408
9423
  */
9409
9424
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<[]>;
9410
9425
  /**
9411
9426
  * Enforce consistent relative URL style.
9412
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/relative-url-style.md
9427
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/relative-url-style.md
9413
9428
  */
9414
9429
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
9415
9430
  /**
9416
9431
  * 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
9432
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/require-array-join-separator.md
9418
9433
  */
9419
9434
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
9420
9435
  /**
9421
9436
  * 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
9437
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/require-array-sort-compare.md
9423
9438
  */
9424
9439
  'unicorn/require-array-sort-compare'?: Linter.RuleEntry<[]>;
9425
9440
  /**
9426
9441
  * 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
9442
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/require-css-escape.md
9428
9443
  */
9429
9444
  'unicorn/require-css-escape'?: Linter.RuleEntry<UnicornRequireCssEscape>;
9430
9445
  /**
9431
9446
  * Require configured YAML frontmatter fields.
9432
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/require-frontmatter-fields.md
9447
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/require-frontmatter-fields.md
9433
9448
  */
9434
9449
  'unicorn/require-frontmatter-fields'?: Linter.RuleEntry<UnicornRequireFrontmatterFields>;
9435
9450
  /**
9436
9451
  * 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
9452
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/require-module-attributes.md
9438
9453
  */
9439
9454
  'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>;
9440
9455
  /**
9441
9456
  * 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
9457
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/require-module-specifiers.md
9443
9458
  */
9444
9459
  'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
9445
9460
  /**
9446
9461
  * 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
9462
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/require-number-to-fixed-digits-argument.md
9448
9463
  */
9449
9464
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
9450
9465
  /**
9451
9466
  * 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
9467
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/require-passive-events.md
9453
9468
  */
9454
9469
  'unicorn/require-passive-events'?: Linter.RuleEntry<[]>;
9455
9470
  /**
9456
9471
  * 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
9472
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/require-post-message-target-origin.md
9458
9473
  */
9459
9474
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
9460
9475
  /**
9461
9476
  * 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
9477
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/require-proxy-trap-boolean-return.md
9463
9478
  */
9464
9479
  'unicorn/require-proxy-trap-boolean-return'?: Linter.RuleEntry<[]>;
9480
+ /**
9481
+ * Require parentheses around complex spread arguments.
9482
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/require-spread-parentheses.md
9483
+ */
9484
+ 'unicorn/require-spread-parentheses'?: Linter.RuleEntry<[]>;
9465
9485
  /**
9466
9486
  * 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
9487
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/require-text-decoder-streaming.md
9468
9488
  */
9469
9489
  'unicorn/require-text-decoder-streaming'?: Linter.RuleEntry<[]>;
9470
9490
  /**
9471
9491
  * 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
9492
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/single-line-block-comment-style.md
9473
9493
  */
9474
9494
  'unicorn/single-line-block-comment-style'?: Linter.RuleEntry<UnicornSingleLineBlockCommentStyle>;
9475
9495
  /**
9476
9496
  * Enforce better string content.
9477
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/string-content.md
9497
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/string-content.md
9478
9498
  */
9479
9499
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
9480
9500
  /**
9481
9501
  * 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
9502
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/switch-case-braces.md
9483
9503
  */
9484
9504
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
9485
9505
  /**
9486
9506
  * 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
9507
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/switch-case-break-position.md
9488
9508
  */
9489
9509
  'unicorn/switch-case-break-position'?: Linter.RuleEntry<[]>;
9490
9510
  /**
9491
9511
  * Fix whitespace-insensitive template indentation.
9492
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/template-indent.md
9512
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/template-indent.md
9493
9513
  */
9494
9514
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
9495
9515
  /**
9496
9516
  * 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
9517
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/text-encoding-identifier-case.md
9498
9518
  */
9499
9519
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
9500
9520
  /**
9501
9521
  * 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
9522
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/throw-new-error.md
9503
9523
  */
9504
9524
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
9505
9525
  /**
9506
9526
  * Limit the complexity of `try` blocks.
9507
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/try-complexity.md
9527
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/try-complexity.md
9508
9528
  */
9509
9529
  'unicorn/try-complexity'?: Linter.RuleEntry<UnicornTryComplexity>;
9510
9530
  /**
@@ -10126,6 +10146,11 @@ Backward pagination arguments
10126
10146
  * @see https://github.com/marcalexiei/eslint-zod/blob/HEAD/plugins/eslint-plugin-zod/docs/rules/consistent-import-source.md
10127
10147
  */
10128
10148
  'zod/consistent-import-source'?: Linter.RuleEntry<ZodConsistentImportSource>;
10149
+ /**
10150
+ * Enforce consistent Zod object property key style
10151
+ * @see https://github.com/marcalexiei/eslint-zod/blob/HEAD/plugins/eslint-plugin-zod/docs/rules/consistent-object-property-key-style.md
10152
+ */
10153
+ 'zod/consistent-object-property-key-style'?: Linter.RuleEntry<ZodConsistentObjectPropertyKeyStyle>;
10129
10154
  /**
10130
10155
  * Enforce consistent usage of Zod schema methods
10131
10156
  * @see https://github.com/marcalexiei/eslint-zod/blob/HEAD/plugins/eslint-plugin-zod/docs/rules/consistent-object-schema-type.md
@@ -10221,6 +10246,11 @@ Backward pagination arguments
10221
10246
  * @see https://github.com/marcalexiei/eslint-zod/blob/HEAD/plugins/eslint-plugin-zod/docs/rules/no-promise-schema.md
10222
10247
  */
10223
10248
  'zod/no-promise-schema'?: Linter.RuleEntry<[]>;
10249
+ /**
10250
+ * Disallow reshaping an object schema after a refinement, which throws at runtime
10251
+ * @see https://github.com/marcalexiei/eslint-zod/blob/HEAD/plugins/eslint-plugin-zod/docs/rules/no-reshape-on-refined-object.md
10252
+ */
10253
+ 'zod/no-reshape-on-refined-object'?: Linter.RuleEntry<[]>;
10224
10254
  /**
10225
10255
  * Disallow deprecated `.isNullable()` on a Zod schema; use `safeParse(null).success` instead.
10226
10256
  * @see https://github.com/marcalexiei/eslint-zod/blob/HEAD/plugins/eslint-plugin-zod/docs/rules/no-schema-with-is-nullable.md
@@ -14398,7 +14428,7 @@ type StylisticCurlyNewline = [] | [(("always" | "never") | {
14398
14428
  // ----- stylistic/dot-location -----
14399
14429
  type StylisticDotLocation = [] | [("object" | "property")];
14400
14430
  // ----- stylistic/eol-last -----
14401
- type StylisticEolLast = [] | [("always" | "never" | "unix" | "windows")];
14431
+ type StylisticEolLast = [] | [("always" | "never")];
14402
14432
  // ----- stylistic/exp-jsx-props-style -----
14403
14433
  type StylisticExpJsxPropsStyle = [] | [{
14404
14434
  singleLine?: {
@@ -14409,51 +14439,6 @@ type StylisticExpJsxPropsStyle = [] | [{
14409
14439
  maxItemsPerLine?: number;
14410
14440
  };
14411
14441
  }];
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
14442
  // ----- stylistic/function-call-argument-newline -----
14458
14443
  type StylisticFunctionCallArgumentNewline = [] | [("always" | "never" | "consistent")];
14459
14444
  // ----- stylistic/function-call-spacing -----
@@ -14528,10 +14513,10 @@ type StylisticIndent = [] | [("tab" | number)] | [("tab" | number), {
14528
14513
  AwaitExpression?: boolean;
14529
14514
  NewExpression?: boolean;
14530
14515
  });
14531
- offsetTernaryExpressionsOffsetCallExpressions?: boolean;
14532
14516
  ignoredNodes?: string[];
14533
14517
  ignoreComments?: boolean;
14534
14518
  tabLength?: number;
14519
+ jsx?: (number | "half");
14535
14520
  }];
14536
14521
  // ----- stylistic/indent-binary-ops -----
14537
14522
  type StylisticIndentBinaryOps = [] | [(number | "tab")];
@@ -14608,11 +14593,6 @@ type StylisticJsxEqualsSpacing = [] | [("always" | "never")];
14608
14593
  type StylisticJsxFirstPropNewLine = [] | [("always" | "never" | "multiline" | "multiline-multiprop" | "multiprop")];
14609
14594
  // ----- stylistic/jsx-function-call-newline -----
14610
14595
  type StylisticJsxFunctionCallNewline = [] | [("always" | "multiline")];
14611
- // ----- stylistic/jsx-indent -----
14612
- type StylisticJsxIndent = [] | [("tab" | number)] | [("tab" | number), {
14613
- checkAttributes?: boolean;
14614
- indentLogicalExpressions?: boolean;
14615
- }];
14616
14596
  // ----- stylistic/jsx-indent-props -----
14617
14597
  type StylisticJsxIndentProps = [] | [(("tab" | "first") | number | {
14618
14598
  indentMode?: (("tab" | "first") | number);
@@ -14651,18 +14631,6 @@ type StylisticJsxSelfClosingComp = [] | [{
14651
14631
  component?: boolean;
14652
14632
  html?: boolean;
14653
14633
  }];
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
14634
  // ----- stylistic/jsx-tag-spacing -----
14667
14635
  type StylisticJsxTagSpacing = [] | [{
14668
14636
  closingSlash?: ("always" | "never" | "allow");
@@ -15035,7 +15003,6 @@ type StylisticKeywordSpacing = [] | [{
15035
15003
  type StylisticLineCommentPosition = [] | [(("above" | "beside") | {
15036
15004
  position?: ("above" | "beside");
15037
15005
  ignorePattern?: string;
15038
- applyDefaultPatterns?: boolean;
15039
15006
  applyDefaultIgnorePatterns?: boolean;
15040
15007
  })];
15041
15008
  // ----- stylistic/linebreak-style -----
@@ -15091,6 +15058,53 @@ type StylisticLinesBetweenClassMembers = [] | [({
15091
15058
  exceptAfterSingleLine?: boolean;
15092
15059
  exceptAfterOverload?: boolean;
15093
15060
  }];
15061
+ // ----- stylistic/list-style -----
15062
+ type StylisticListStyle = [] | [{
15063
+ empty?: ("ignore" | "always" | "never");
15064
+ singleLine?: _StylisticListStyle_SingleLineConfig;
15065
+ multiLine?: _StylisticListStyle_MultiLineConfig;
15066
+ overrides?: {
15067
+ "()"?: (_StylisticListStyle_BaseConfig | "off");
15068
+ "[]"?: (_StylisticListStyle_BaseConfig | "off");
15069
+ "{}"?: (_StylisticListStyle_BaseConfig | "off");
15070
+ "<>"?: (_StylisticListStyle_BaseConfig | "off");
15071
+ ArrayExpression?: (_StylisticListStyle_BaseConfig | "off");
15072
+ ArrayPattern?: (_StylisticListStyle_BaseConfig | "off");
15073
+ ArrowFunctionExpression?: (_StylisticListStyle_BaseConfig | "off");
15074
+ CallExpression?: (_StylisticListStyle_BaseConfig | "off");
15075
+ ExportNamedDeclaration?: (_StylisticListStyle_BaseConfig | "off");
15076
+ FunctionDeclaration?: (_StylisticListStyle_BaseConfig | "off");
15077
+ FunctionExpression?: (_StylisticListStyle_BaseConfig | "off");
15078
+ IfStatement?: (_StylisticListStyle_BaseConfig | "off");
15079
+ ImportAttributes?: (_StylisticListStyle_BaseConfig | "off");
15080
+ ImportDeclaration?: (_StylisticListStyle_BaseConfig | "off");
15081
+ JSONArrayExpression?: (_StylisticListStyle_BaseConfig | "off");
15082
+ JSONObjectExpression?: (_StylisticListStyle_BaseConfig | "off");
15083
+ NewExpression?: (_StylisticListStyle_BaseConfig | "off");
15084
+ ObjectExpression?: (_StylisticListStyle_BaseConfig | "off");
15085
+ ObjectPattern?: (_StylisticListStyle_BaseConfig | "off");
15086
+ TSDeclareFunction?: (_StylisticListStyle_BaseConfig | "off");
15087
+ TSEnumBody?: (_StylisticListStyle_BaseConfig | "off");
15088
+ TSFunctionType?: (_StylisticListStyle_BaseConfig | "off");
15089
+ TSInterfaceBody?: (_StylisticListStyle_BaseConfig | "off");
15090
+ TSTupleType?: (_StylisticListStyle_BaseConfig | "off");
15091
+ TSTypeLiteral?: (_StylisticListStyle_BaseConfig | "off");
15092
+ TSTypeParameterDeclaration?: (_StylisticListStyle_BaseConfig | "off");
15093
+ TSTypeParameterInstantiation?: (_StylisticListStyle_BaseConfig | "off");
15094
+ };
15095
+ }];
15096
+ interface _StylisticListStyle_SingleLineConfig {
15097
+ spacing?: ("always" | "never");
15098
+ maxItems?: number;
15099
+ }
15100
+ interface _StylisticListStyle_MultiLineConfig {
15101
+ minItems?: number;
15102
+ }
15103
+ interface _StylisticListStyle_BaseConfig {
15104
+ empty?: ("ignore" | "always" | "never");
15105
+ singleLine?: _StylisticListStyle_SingleLineConfig;
15106
+ multiLine?: _StylisticListStyle_MultiLineConfig;
15107
+ }
15094
15108
  // ----- stylistic/max-len -----
15095
15109
  type StylisticMaxLen = [] | [({
15096
15110
  code?: number;
@@ -15236,7 +15250,7 @@ type StylisticNoMixedOperators = [] | [{
15236
15250
  allowSamePrecedence?: boolean;
15237
15251
  }];
15238
15252
  // ----- stylistic/no-mixed-spaces-and-tabs -----
15239
- type StylisticNoMixedSpacesAndTabs = [] | [("smart-tabs" | boolean)];
15253
+ type StylisticNoMixedSpacesAndTabs = [] | ["smart-tabs"];
15240
15254
  // ----- stylistic/no-multi-spaces -----
15241
15255
  type StylisticNoMultiSpaces = [] | [{
15242
15256
  exceptions?: {
@@ -15375,11 +15389,11 @@ type StylisticQuoteProps = ([] | [("always" | "as-needed" | "consistent" | "cons
15375
15389
  numbers?: boolean;
15376
15390
  }]);
15377
15391
  // ----- stylistic/quotes -----
15378
- type StylisticQuotes = [] | [("single" | "double" | "backtick")] | [("single" | "double" | "backtick"), ("avoid-escape" | {
15392
+ type StylisticQuotes = [] | [("single" | "double" | "backtick")] | [("single" | "double" | "backtick"), {
15379
15393
  avoidEscape?: boolean;
15380
- allowTemplateLiterals?: (boolean | ("never" | "avoidEscape" | "always"));
15394
+ allowTemplateLiterals?: ("never" | "avoidEscape" | "always");
15381
15395
  ignoreStringLiterals?: boolean;
15382
- })];
15396
+ }];
15383
15397
  // ----- stylistic/rest-spread-spacing -----
15384
15398
  type StylisticRestSpreadSpacing = [] | [("always" | "never")];
15385
15399
  // ----- stylistic/semi -----
@@ -15417,6 +15431,7 @@ type StylisticSpaceInParens = [] | [("always" | "never")] | [("always" | "never"
15417
15431
  // ----- stylistic/space-infix-ops -----
15418
15432
  type StylisticSpaceInfixOps = [] | [{
15419
15433
  int32Hint?: boolean;
15434
+ ignoreOperators?: string[];
15420
15435
  ignoreTypes?: boolean;
15421
15436
  }];
15422
15437
  // ----- stylistic/space-unary-ops -----
@@ -15456,17 +15471,22 @@ type StylisticTypeAnnotationSpacing = [] | [{
15456
15471
  after?: boolean;
15457
15472
  overrides?: {
15458
15473
  colon?: _StylisticTypeAnnotationSpacing_SpacingConfig;
15459
- arrow?: ("ignore" | _StylisticTypeAnnotationSpacing_SpacingConfig);
15460
- variable?: _StylisticTypeAnnotationSpacing_SpacingConfig;
15461
- parameter?: _StylisticTypeAnnotationSpacing_SpacingConfig;
15462
- property?: _StylisticTypeAnnotationSpacing_SpacingConfig;
15463
- returnType?: _StylisticTypeAnnotationSpacing_SpacingConfig;
15474
+ variable?: ("ignore" | _StylisticTypeAnnotationSpacing_SpacingConfig);
15475
+ parameter?: ("ignore" | _StylisticTypeAnnotationSpacing_SpacingConfig);
15476
+ property?: ("ignore" | _StylisticTypeAnnotationSpacing_SpacingConfig);
15477
+ returnType?: ("ignore" | _StylisticTypeAnnotationSpacing_SpacingConfig);
15478
+ questionMark?: ("ignore" | _StylisticTypeAnnotationSpacing_SpacingConfig);
15464
15479
  };
15465
15480
  }];
15466
15481
  interface _StylisticTypeAnnotationSpacing_SpacingConfig {
15467
15482
  before?: boolean;
15468
15483
  after?: boolean;
15469
15484
  }
15485
+ // ----- stylistic/type-generic-spacing -----
15486
+ type StylisticTypeGenericSpacing = [] | [{
15487
+ before?: boolean;
15488
+ after?: boolean;
15489
+ }];
15470
15490
  // ----- stylistic/wrap-iife -----
15471
15491
  type StylisticWrapIife = [] | [("outside" | "inside" | "any")] | [("outside" | "inside" | "any"), {
15472
15492
  functionPrototypeMethods?: boolean;
@@ -16881,6 +16901,7 @@ type UnicornNoEmptyFile = [] | [{
16881
16901
  }];
16882
16902
  // ----- unicorn/no-immediate-mutation -----
16883
16903
  type UnicornNoImmediateMutation = [] | [{
16904
+ checkCollections?: boolean;
16884
16905
  checkConditionals?: boolean;
16885
16906
  }];
16886
16907
  // ----- unicorn/no-instanceof-builtins -----
@@ -17049,6 +17070,10 @@ type UnicornPreferNumberProperties = [] | [{
17049
17070
  type UnicornPreferObjectFromEntries = [] | [{
17050
17071
  functions?: string[];
17051
17072
  }];
17073
+ // ----- unicorn/prefer-options-parameter -----
17074
+ type UnicornPreferOptionsParameter = [] | [{
17075
+ checkWithoutOptionsObject?: boolean;
17076
+ }];
17052
17077
  // ----- unicorn/prefer-query-selector -----
17053
17078
  type UnicornPreferQuerySelector = [] | [{
17054
17079
  allowWithVariables?: boolean;
@@ -17072,6 +17097,10 @@ type UnicornPreferSimplifiedConditions = [] | [{
17072
17097
  type UnicornPreferSingleCall = [] | [{
17073
17098
  ignore?: string[];
17074
17099
  }];
17100
+ // ----- unicorn/prefer-smaller-scope -----
17101
+ type UnicornPreferSmallerScope = [] | [{
17102
+ checkTypeAliases?: boolean;
17103
+ }];
17075
17104
  // ----- unicorn/prefer-string-repeat -----
17076
17105
  type UnicornPreferStringRepeat = [] | [{
17077
17106
  minimumRepetitions?: number;
@@ -17095,6 +17124,15 @@ type UnicornPreferTemporal = [] | [{
17095
17124
  type UnicornPreferTernary = [] | [("always" | "only-single-line")] | [("always" | "only-single-line"), {
17096
17125
  checkVaryingBase?: boolean;
17097
17126
  checkComputedMemberAccess?: boolean;
17127
+ checkNestedTernaries?: boolean;
17128
+ }];
17129
+ // ----- unicorn/prefer-uint8array-base64 -----
17130
+ type UnicornPreferUint8ArrayBase64 = [] | [{
17131
+ checkBufferDecoding?: boolean;
17132
+ }];
17133
+ // ----- unicorn/prefer-uint8array-hex -----
17134
+ type UnicornPreferUint8ArrayHex = [] | [{
17135
+ checkBufferDecoding?: boolean;
17098
17136
  }];
17099
17137
  // ----- unicorn/relative-url-style -----
17100
17138
  type UnicornRelativeUrlStyle = [] | [("never" | "always")];
@@ -17532,6 +17570,11 @@ type ZodConsistentImport = [] | [{
17532
17570
  type ZodConsistentImportSource = [] | [{
17533
17571
  sources?: [("zod" | "zod/v4" | "zod/v3"), ...(("zod" | "zod/v4" | "zod/v3"))[]];
17534
17572
  }];
17573
+ // ----- zod/consistent-object-property-key-style -----
17574
+ type ZodConsistentObjectPropertyKeyStyle = [] | [{
17575
+ style?: ("camelCase" | "snake_case");
17576
+ allow?: [("object" | "looseObject" | "strictObject"), ...(("object" | "looseObject" | "strictObject"))[]];
17577
+ }];
17535
17578
  // ----- zod/consistent-object-schema-type -----
17536
17579
  type ZodConsistentObjectSchemaType = [] | [{
17537
17580
  allow?: [("object" | "looseObject" | "strictObject"), ...(("object" | "looseObject" | "strictObject"))[]];