@infernodesign/eslint-config 2.9.0 → 2.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -6993,1620 +6993,1670 @@ interface RuleOptions {
6993
6993
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>;
6994
6994
  /**
6995
6995
  * Prefer better DOM traversal APIs.
6996
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/better-dom-traversing.md
6996
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/better-dom-traversing.md
6997
6997
  */
6998
6998
  'unicorn/better-dom-traversing'?: Linter.RuleEntry<[]>;
6999
6999
  /**
7000
7000
  * Removed. Prefer `eslint-plugin-regexp`
7001
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/deleted-and-deprecated-rules.md#better-regex
7001
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/deleted-and-deprecated-rules.md#better-regex
7002
7002
  * @deprecated
7003
7003
  */
7004
7004
  'unicorn/better-regex'?: Linter.RuleEntry<[]>;
7005
7005
  /**
7006
7006
  * Enforce a specific parameter name in catch clauses.
7007
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/catch-error-name.md
7007
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/catch-error-name.md
7008
7008
  */
7009
7009
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
7010
7010
  /**
7011
7011
  * Enforce consistent class references in static methods.
7012
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/class-reference-in-static-methods.md
7012
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/class-reference-in-static-methods.md
7013
7013
  */
7014
7014
  'unicorn/class-reference-in-static-methods'?: Linter.RuleEntry<UnicornClassReferenceInStaticMethods>;
7015
7015
  /**
7016
7016
  * Enforce better comment content.
7017
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/comment-content.md
7017
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/comment-content.md
7018
7018
  */
7019
7019
  'unicorn/comment-content'?: Linter.RuleEntry<UnicornCommentContent>;
7020
7020
  /**
7021
7021
  * Enforce consistent assertion style with `node:assert`.
7022
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-assert.md
7022
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/consistent-assert.md
7023
7023
  */
7024
7024
  'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
7025
7025
  /**
7026
7026
  * Enforce consistent naming for boolean names.
7027
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-boolean-name.md
7027
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/consistent-boolean-name.md
7028
7028
  */
7029
7029
  'unicorn/consistent-boolean-name'?: Linter.RuleEntry<UnicornConsistentBooleanName>;
7030
7030
  /**
7031
7031
  * Enforce consistent class member order.
7032
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-class-member-order.md
7032
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/consistent-class-member-order.md
7033
7033
  */
7034
7034
  'unicorn/consistent-class-member-order'?: Linter.RuleEntry<UnicornConsistentClassMemberOrder>;
7035
7035
  /**
7036
7036
  * Enforce consistent spelling of compound words in identifiers.
7037
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-compound-words.md
7037
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/consistent-compound-words.md
7038
7038
  */
7039
7039
  'unicorn/consistent-compound-words'?: Linter.RuleEntry<UnicornConsistentCompoundWords>;
7040
7040
  /**
7041
7041
  * Enforce consistent conditional object spread style.
7042
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-conditional-object-spread.md
7042
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/consistent-conditional-object-spread.md
7043
7043
  */
7044
7044
  'unicorn/consistent-conditional-object-spread'?: Linter.RuleEntry<UnicornConsistentConditionalObjectSpread>;
7045
7045
  /**
7046
7046
  * Prefer passing `Date` directly to the constructor when cloning.
7047
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-date-clone.md
7047
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/consistent-date-clone.md
7048
7048
  */
7049
7049
  'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
7050
7050
  /**
7051
7051
  * Use destructured variables over properties.
7052
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-destructuring.md
7052
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/consistent-destructuring.md
7053
7053
  */
7054
7054
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
7055
7055
  /**
7056
7056
  * Prefer consistent types when spreading a ternary in an array literal.
7057
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-empty-array-spread.md
7057
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/consistent-empty-array-spread.md
7058
7058
  */
7059
7059
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
7060
7060
  /**
7061
7061
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
7062
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-existence-index-check.md
7062
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/consistent-existence-index-check.md
7063
7063
  */
7064
7064
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
7065
7065
  /**
7066
7066
  * Enforce consistent decorator position on exported classes.
7067
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-export-decorator-position.md
7067
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/consistent-export-decorator-position.md
7068
7068
  */
7069
7069
  'unicorn/consistent-export-decorator-position'?: Linter.RuleEntry<UnicornConsistentExportDecoratorPosition>;
7070
7070
  /**
7071
7071
  * Move function definitions to the highest possible scope.
7072
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-function-scoping.md
7072
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/consistent-function-scoping.md
7073
7073
  */
7074
7074
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
7075
7075
  /**
7076
7076
  * Enforce function syntax by role.
7077
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-function-style.md
7077
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/consistent-function-style.md
7078
7078
  */
7079
7079
  'unicorn/consistent-function-style'?: Linter.RuleEntry<UnicornConsistentFunctionStyle>;
7080
7080
  /**
7081
7081
  * Enforce consistent JSON file reads before `JSON.parse()`.
7082
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-json-file-read.md
7082
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/consistent-json-file-read.md
7083
7083
  */
7084
7084
  'unicorn/consistent-json-file-read'?: Linter.RuleEntry<UnicornConsistentJsonFileRead>;
7085
7085
  /**
7086
7086
  * Enforce consistent optional chaining for same-base member access.
7087
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-optional-chaining.md
7087
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/consistent-optional-chaining.md
7088
7088
  */
7089
7089
  'unicorn/consistent-optional-chaining'?: Linter.RuleEntry<[]>;
7090
7090
  /**
7091
7091
  * Enforce consistent style for escaping `${` in template literals.
7092
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-template-literal-escape.md
7092
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/consistent-template-literal-escape.md
7093
7093
  */
7094
7094
  'unicorn/consistent-template-literal-escape'?: Linter.RuleEntry<[]>;
7095
7095
  /**
7096
7096
  * Enforce consistent labels on tuple type elements.
7097
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-tuple-labels.md
7097
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/consistent-tuple-labels.md
7098
7098
  */
7099
7099
  'unicorn/consistent-tuple-labels'?: Linter.RuleEntry<[]>;
7100
7100
  /**
7101
7101
  * Enforce correct `Error` subclassing.
7102
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/custom-error-definition.md
7102
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/custom-error-definition.md
7103
7103
  */
7104
7104
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
7105
7105
  /**
7106
7106
  * Enforce consistent default export declarations.
7107
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/default-export-style.md
7107
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/default-export-style.md
7108
7108
  */
7109
7109
  'unicorn/default-export-style'?: Linter.RuleEntry<UnicornDefaultExportStyle>;
7110
7110
  /**
7111
7111
  * Enforce consistent style for DOM element dataset access.
7112
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/dom-node-dataset.md
7112
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/dom-node-dataset.md
7113
7113
  */
7114
7114
  'unicorn/dom-node-dataset'?: Linter.RuleEntry<UnicornDomNodeDataset>;
7115
7115
  /**
7116
7116
  * Enforce no spaces between braces.
7117
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/empty-brace-spaces.md
7117
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/empty-brace-spaces.md
7118
7118
  */
7119
7119
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
7120
7120
  /**
7121
7121
  * Enforce passing a `message` value when creating a built-in error.
7122
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/error-message.md
7122
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/error-message.md
7123
7123
  */
7124
7124
  'unicorn/error-message'?: Linter.RuleEntry<[]>;
7125
7125
  /**
7126
7126
  * Require escape sequences to use uppercase or lowercase values.
7127
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/escape-case.md
7127
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/escape-case.md
7128
7128
  */
7129
7129
  'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
7130
7130
  /**
7131
7131
  * Add expiration conditions to TODO comments.
7132
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/expiring-todo-comments.md
7132
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/expiring-todo-comments.md
7133
7133
  */
7134
7134
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
7135
7135
  /**
7136
7136
  * Enforce explicitly comparing the `length` or `size` property of a value.
7137
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/explicit-length-check.md
7137
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/explicit-length-check.md
7138
7138
  */
7139
7139
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
7140
7140
  /**
7141
7141
  * Enforce or disallow explicit `delay` argument for `setTimeout()` and `setInterval()`.
7142
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/explicit-timer-delay.md
7142
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/explicit-timer-delay.md
7143
7143
  */
7144
7144
  'unicorn/explicit-timer-delay'?: Linter.RuleEntry<UnicornExplicitTimerDelay>;
7145
7145
  /**
7146
7146
  * Enforce a case style for filenames and directory names.
7147
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/filename-case.md
7147
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/filename-case.md
7148
7148
  */
7149
7149
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
7150
7150
  /**
7151
7151
  * Require identifiers to match a specified regular expression.
7152
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/id-match.md
7152
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/id-match.md
7153
7153
  */
7154
7154
  'unicorn/id-match'?: Linter.RuleEntry<UnicornIdMatch>;
7155
7155
  /**
7156
7156
  * Enforce specific import styles per module.
7157
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/import-style.md
7157
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/import-style.md
7158
7158
  */
7159
7159
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
7160
7160
  /**
7161
7161
  * Prevent usage of variables from outside the scope of isolated functions.
7162
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/isolated-functions.md
7162
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/isolated-functions.md
7163
7163
  */
7164
7164
  'unicorn/isolated-functions'?: Linter.RuleEntry<UnicornIsolatedFunctions>;
7165
7165
  /**
7166
7166
  * Require or disallow logical assignment operator shorthand
7167
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/logical-assignment-operators.md
7167
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/logical-assignment-operators.md
7168
7168
  */
7169
7169
  'unicorn/logical-assignment-operators'?: Linter.RuleEntry<UnicornLogicalAssignmentOperators>;
7170
7170
  /**
7171
7171
  * Limit the depth of nested calls.
7172
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/max-nested-calls.md
7172
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/max-nested-calls.md
7173
7173
  */
7174
7174
  'unicorn/max-nested-calls'?: Linter.RuleEntry<UnicornMaxNestedCalls>;
7175
7175
  /**
7176
7176
  * Enforce replacements for variable, property, and filenames.
7177
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/name-replacements.md
7177
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/name-replacements.md
7178
7178
  */
7179
7179
  'unicorn/name-replacements'?: Linter.RuleEntry<UnicornNameReplacements>;
7180
7180
  /**
7181
7181
  * Enforce correct use of `new` for builtin constructors.
7182
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/new-for-builtins.md
7182
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/new-for-builtins.md
7183
7183
  */
7184
7184
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
7185
7185
  /**
7186
7186
  * Enforce specifying rules to disable in `eslint-disable` comments.
7187
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-abusive-eslint-disable.md
7187
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-abusive-eslint-disable.md
7188
7188
  */
7189
7189
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
7190
7190
  /**
7191
7191
  * Disallow recursive access to `this` within getters and setters.
7192
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-accessor-recursion.md
7192
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-accessor-recursion.md
7193
7193
  */
7194
7194
  'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
7195
7195
  /**
7196
7196
  * Disallow bitwise operators where a logical operator was likely intended.
7197
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-accidental-bitwise-operator.md
7197
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-accidental-bitwise-operator.md
7198
7198
  */
7199
7199
  'unicorn/no-accidental-bitwise-operator'?: Linter.RuleEntry<[]>;
7200
7200
  /**
7201
7201
  * Disallow anonymous functions and classes as the default export.
7202
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-anonymous-default-export.md
7202
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-anonymous-default-export.md
7203
7203
  */
7204
7204
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
7205
7205
  /**
7206
7206
  * Prevent passing a function reference directly to iterator methods.
7207
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-callback-reference.md
7207
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-array-callback-reference.md
7208
7208
  */
7209
7209
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<UnicornNoArrayCallbackReference>;
7210
7210
  /**
7211
7211
  * Disallow array accumulation with `Array#concat()` in loops.
7212
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-concat-in-loop.md
7212
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-array-concat-in-loop.md
7213
7213
  */
7214
7214
  'unicorn/no-array-concat-in-loop'?: Linter.RuleEntry<[]>;
7215
7215
  /**
7216
7216
  * Disallow using reference values as `Array#fill()` values.
7217
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-fill-with-reference-type.md
7217
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-array-fill-with-reference-type.md
7218
7218
  */
7219
7219
  'unicorn/no-array-fill-with-reference-type'?: Linter.RuleEntry<[]>;
7220
7220
  /**
7221
7221
  * Disallow `.fill()` after `Array.from({length: …})`.
7222
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-from-fill.md
7222
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-array-from-fill.md
7223
7223
  */
7224
7224
  'unicorn/no-array-from-fill'?: Linter.RuleEntry<[]>;
7225
7225
  /**
7226
7226
  * Disallow front-of-array mutation.
7227
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-front-mutation.md
7227
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-array-front-mutation.md
7228
7228
  */
7229
7229
  'unicorn/no-array-front-mutation'?: Linter.RuleEntry<[]>;
7230
7230
  /**
7231
7231
  * Disallow using the `this` argument in array methods.
7232
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-method-this-argument.md
7232
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-array-method-this-argument.md
7233
7233
  */
7234
7234
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
7235
7235
  /**
7236
7236
  * Replaced by `unicorn/prefer-single-call` which covers more cases.
7237
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
7237
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
7238
7238
  * @deprecated
7239
7239
  */
7240
7240
  'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
7241
7241
  /**
7242
7242
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
7243
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-reduce.md
7243
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-array-reduce.md
7244
7244
  */
7245
7245
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
7246
7246
  /**
7247
7247
  * Prefer `Array#toReversed()` over `Array#reverse()`.
7248
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-reverse.md
7248
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-array-reverse.md
7249
7249
  */
7250
7250
  'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
7251
7251
  /**
7252
7252
  * Prefer `Array#toSorted()` over `Array#sort()`.
7253
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-sort.md
7253
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-array-sort.md
7254
7254
  */
7255
7255
  'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>;
7256
7256
  /**
7257
7257
  * Disallow sorting arrays to get the minimum or maximum value.
7258
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-sort-for-min-max.md
7258
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-array-sort-for-min-max.md
7259
7259
  */
7260
7260
  'unicorn/no-array-sort-for-min-max'?: Linter.RuleEntry<[]>;
7261
7261
  /**
7262
7262
  * Prefer `Array#toSpliced()` over `Array#splice()`.
7263
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-splice.md
7263
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-array-splice.md
7264
7264
  */
7265
7265
  'unicorn/no-array-splice'?: Linter.RuleEntry<[]>;
7266
7266
  /**
7267
7267
  * Disallow asterisk prefixes in documentation comments.
7268
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
7268
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
7269
7269
  */
7270
7270
  'unicorn/no-asterisk-prefix-in-documentation-comments'?: Linter.RuleEntry<[]>;
7271
+ /**
7272
+ * Disallow async functions as `Promise#finally()` callbacks.
7273
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-async-promise-finally.md
7274
+ */
7275
+ 'unicorn/no-async-promise-finally'?: Linter.RuleEntry<[]>;
7271
7276
  /**
7272
7277
  * Disallow member access from await expression.
7273
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-await-expression-member.md
7278
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-await-expression-member.md
7274
7279
  */
7275
7280
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
7276
7281
  /**
7277
7282
  * Disallow using `await` in `Promise` method parameters.
7278
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-await-in-promise-methods.md
7283
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-await-in-promise-methods.md
7279
7284
  */
7280
7285
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
7281
7286
  /**
7282
7287
  * Disallow unnecessary `Blob` to `File` conversion.
7283
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-blob-to-file.md
7288
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-blob-to-file.md
7284
7289
  */
7285
7290
  'unicorn/no-blob-to-file'?: Linter.RuleEntry<[]>;
7286
7291
  /**
7287
7292
  * Disallow boolean-returning sort comparators.
7288
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-boolean-sort-comparator.md
7293
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-boolean-sort-comparator.md
7289
7294
  */
7290
7295
  'unicorn/no-boolean-sort-comparator'?: Linter.RuleEntry<[]>;
7291
7296
  /**
7292
7297
  * Disallow `break` and `continue` in nested loops and switches inside loops.
7293
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-break-in-nested-loop.md
7298
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-break-in-nested-loop.md
7294
7299
  */
7295
7300
  'unicorn/no-break-in-nested-loop'?: Linter.RuleEntry<[]>;
7296
7301
  /**
7297
7302
  * Prefer drawing canvases directly instead of converting them to images.
7298
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-canvas-to-image.md
7303
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-canvas-to-image.md
7299
7304
  */
7300
7305
  'unicorn/no-canvas-to-image'?: Linter.RuleEntry<[]>;
7301
7306
  /**
7302
7307
  * Disallow chained comparisons such as `a < b < c`.
7303
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-chained-comparison.md
7308
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-chained-comparison.md
7304
7309
  */
7305
7310
  'unicorn/no-chained-comparison'?: Linter.RuleEntry<[]>;
7306
7311
  /**
7307
7312
  * Disallow accessing `Map`, `Set`, `WeakMap`, and `WeakSet` entries with bracket notation.
7308
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-collection-bracket-access.md
7313
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-collection-bracket-access.md
7309
7314
  */
7310
7315
  'unicorn/no-collection-bracket-access'?: Linter.RuleEntry<[]>;
7311
7316
  /**
7312
7317
  * Disallow dynamic object property existence checks.
7313
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-computed-property-existence-check.md
7318
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-computed-property-existence-check.md
7314
7319
  */
7315
7320
  'unicorn/no-computed-property-existence-check'?: Linter.RuleEntry<[]>;
7316
7321
  /**
7317
7322
  * Disallow confusing uses of `Array#{splice,toSpliced}()`.
7318
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-confusing-array-splice.md
7323
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-confusing-array-splice.md
7319
7324
  */
7320
7325
  'unicorn/no-confusing-array-splice'?: Linter.RuleEntry<[]>;
7321
7326
  /**
7322
7327
  * Disallow confusing uses of `Array#with()`.
7323
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-confusing-array-with.md
7328
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-confusing-array-with.md
7324
7329
  */
7325
7330
  'unicorn/no-confusing-array-with'?: Linter.RuleEntry<[]>;
7326
7331
  /**
7327
7332
  * Do not use leading/trailing space between `console.log` parameters.
7328
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-console-spaces.md
7333
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-console-spaces.md
7329
7334
  */
7330
7335
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
7331
7336
  /**
7332
7337
  * Disallow arithmetic and bitwise operations that always evaluate to `0`.
7333
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-constant-zero-expression.md
7338
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-constant-zero-expression.md
7334
7339
  */
7335
7340
  'unicorn/no-constant-zero-expression'?: Linter.RuleEntry<[]>;
7336
7341
  /**
7337
7342
  * Disallow declarations before conditional early exits when they are only used after the exit.
7338
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-declarations-before-early-exit.md
7343
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-declarations-before-early-exit.md
7339
7344
  */
7340
7345
  'unicorn/no-declarations-before-early-exit'?: Linter.RuleEntry<[]>;
7341
7346
  /**
7342
7347
  * Do not use `document.cookie` directly.
7343
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-document-cookie.md
7348
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-document-cookie.md
7344
7349
  */
7345
7350
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
7346
7351
  /**
7347
7352
  * Disallow two comparisons of the same operands that can be combined into one.
7348
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-double-comparison.md
7353
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-double-comparison.md
7349
7354
  */
7350
7355
  'unicorn/no-double-comparison'?: Linter.RuleEntry<[]>;
7351
7356
  /**
7352
7357
  * Disallow duplicate adjacent branches in if chains.
7353
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-duplicate-if-branches.md
7358
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-duplicate-if-branches.md
7354
7359
  */
7355
7360
  'unicorn/no-duplicate-if-branches'?: Linter.RuleEntry<[]>;
7356
7361
  /**
7357
7362
  * Disallow adjacent duplicate operands in logical expressions.
7358
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-duplicate-logical-operands.md
7363
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-duplicate-logical-operands.md
7359
7364
  */
7360
7365
  'unicorn/no-duplicate-logical-operands'?: Linter.RuleEntry<[]>;
7361
7366
  /**
7362
7367
  * Disallow `.map()` and `.filter()` in `for…of` and `for await…of` loop headers.
7363
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-duplicate-loops.md
7368
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-duplicate-loops.md
7364
7369
  */
7365
7370
  'unicorn/no-duplicate-loops'?: Linter.RuleEntry<[]>;
7366
7371
  /**
7367
7372
  * Disallow duplicate values in `Set` constructor array literals.
7368
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-duplicate-set-values.md
7373
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-duplicate-set-values.md
7369
7374
  */
7370
7375
  'unicorn/no-duplicate-set-values'?: Linter.RuleEntry<[]>;
7371
7376
  /**
7372
7377
  * Disallow empty files.
7373
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-empty-file.md
7378
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-empty-file.md
7374
7379
  */
7375
7380
  'unicorn/no-empty-file'?: Linter.RuleEntry<UnicornNoEmptyFile>;
7376
7381
  /**
7377
7382
  * Disallow assigning to built-in error properties.
7378
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-error-property-assignment.md
7383
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-error-property-assignment.md
7379
7384
  */
7380
7385
  'unicorn/no-error-property-assignment'?: Linter.RuleEntry<[]>;
7381
7386
  /**
7382
7387
  * Disallow exports in scripts.
7383
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-exports-in-scripts.md
7388
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-exports-in-scripts.md
7384
7389
  */
7385
7390
  'unicorn/no-exports-in-scripts'?: Linter.RuleEntry<[]>;
7386
7391
  /**
7387
7392
  * Prefer `for…of` over the `forEach` method.
7388
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-for-each.md
7393
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-for-each.md
7389
7394
  */
7390
7395
  'unicorn/no-for-each'?: Linter.RuleEntry<[]>;
7391
7396
  /**
7392
7397
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
7393
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-for-loop.md
7398
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-for-loop.md
7394
7399
  */
7395
7400
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
7396
7401
  /**
7397
7402
  * Disallow assigning properties on the global object.
7398
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-global-object-property-assignment.md
7403
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-global-object-property-assignment.md
7399
7404
  */
7400
7405
  'unicorn/no-global-object-property-assignment'?: Linter.RuleEntry<[]>;
7401
7406
  /**
7402
7407
  * Replaced by `unicorn/prefer-unicode-code-point-escapes` which covers more cases.
7403
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
7408
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
7404
7409
  * @deprecated
7405
7410
  */
7406
7411
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
7407
7412
  /**
7408
7413
  * Disallow immediate mutation after variable assignment.
7409
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-immediate-mutation.md
7414
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-immediate-mutation.md
7410
7415
  */
7411
7416
  'unicorn/no-immediate-mutation'?: Linter.RuleEntry<[]>;
7412
7417
  /**
7413
7418
  * Disallow impossible comparisons against `.length` or `.size`.
7414
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-impossible-length-comparison.md
7419
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-impossible-length-comparison.md
7415
7420
  */
7416
7421
  'unicorn/no-impossible-length-comparison'?: Linter.RuleEntry<[]>;
7417
7422
  /**
7418
7423
  * Disallow incorrect `querySelector()` and `querySelectorAll()` usage.
7419
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-incorrect-query-selector.md
7424
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-incorrect-query-selector.md
7420
7425
  */
7421
7426
  'unicorn/no-incorrect-query-selector'?: Linter.RuleEntry<[]>;
7422
7427
  /**
7423
7428
  * Disallow incorrect template literal interpolation syntax.
7424
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-incorrect-template-string-interpolation.md
7429
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-incorrect-template-string-interpolation.md
7425
7430
  */
7426
7431
  'unicorn/no-incorrect-template-string-interpolation'?: Linter.RuleEntry<[]>;
7427
7432
  /**
7428
7433
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
7429
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
7434
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
7430
7435
  * @deprecated
7431
7436
  */
7432
7437
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
7433
7438
  /**
7434
7439
  * Disallow `instanceof` with built-in objects
7435
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-instanceof-builtins.md
7440
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-instanceof-builtins.md
7436
7441
  */
7437
7442
  'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
7438
7443
  /**
7439
7444
  * Disallow calling functions and constructors with an invalid number of arguments.
7440
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-invalid-argument-count.md
7445
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-invalid-argument-count.md
7441
7446
  */
7442
7447
  'unicorn/no-invalid-argument-count'?: Linter.RuleEntry<UnicornNoInvalidArgumentCount>;
7443
7448
  /**
7444
7449
  * Disallow comparing a single character from a string to a multi-character string.
7445
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-invalid-character-comparison.md
7450
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-invalid-character-comparison.md
7446
7451
  */
7447
7452
  'unicorn/no-invalid-character-comparison'?: Linter.RuleEntry<[]>;
7448
7453
  /**
7449
7454
  * Disallow invalid options in `fetch()` and `new Request()`.
7450
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-invalid-fetch-options.md
7455
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-invalid-fetch-options.md
7451
7456
  */
7452
7457
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
7453
7458
  /**
7454
7459
  * Disallow invalid `accept` values on file inputs.
7455
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-invalid-file-input-accept.md
7460
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-invalid-file-input-accept.md
7456
7461
  */
7457
7462
  'unicorn/no-invalid-file-input-accept'?: Linter.RuleEntry<[]>;
7458
7463
  /**
7459
7464
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
7460
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-invalid-remove-event-listener.md
7465
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-invalid-remove-event-listener.md
7461
7466
  */
7462
7467
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
7463
7468
  /**
7464
7469
  * Disallow invalid implementations of well-known symbol methods.
7465
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
7470
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
7466
7471
  */
7467
7472
  'unicorn/no-invalid-well-known-symbol-methods'?: Linter.RuleEntry<[]>;
7468
7473
  /**
7469
7474
  * Disallow identifiers starting with `new` or `class`.
7470
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-keyword-prefix.md
7475
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-keyword-prefix.md
7471
7476
  */
7472
7477
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
7473
7478
  /**
7474
7479
  * Disallow accessing `event.currentTarget` after the synchronous event dispatch has finished.
7475
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-late-current-target-access.md
7480
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-late-current-target-access.md
7476
7481
  */
7477
7482
  'unicorn/no-late-current-target-access'?: Linter.RuleEntry<[]>;
7478
7483
  /**
7479
7484
  * Disallow event-control method calls after the synchronous event dispatch has finished.
7480
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-late-event-control.md
7485
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-late-event-control.md
7481
7486
  */
7482
7487
  'unicorn/no-late-event-control'?: Linter.RuleEntry<[]>;
7483
7488
  /**
7484
7489
  * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
7485
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
7490
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
7486
7491
  * @deprecated
7487
7492
  */
7488
7493
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
7489
7494
  /**
7490
7495
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
7491
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-lonely-if.md
7496
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-lonely-if.md
7492
7497
  */
7493
7498
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
7494
7499
  /**
7495
7500
  * Disallow mutating a loop iterable during iteration.
7496
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-loop-iterable-mutation.md
7501
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-loop-iterable-mutation.md
7497
7502
  */
7498
7503
  'unicorn/no-loop-iterable-mutation'?: Linter.RuleEntry<[]>;
7499
7504
  /**
7500
7505
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
7501
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-magic-array-flat-depth.md
7506
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-magic-array-flat-depth.md
7502
7507
  */
7503
7508
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
7504
7509
  /**
7505
7510
  * Disallow manually wrapped comments.
7506
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-manually-wrapped-comments.md
7511
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-manually-wrapped-comments.md
7507
7512
  */
7508
7513
  'unicorn/no-manually-wrapped-comments'?: Linter.RuleEntry<[]>;
7509
7514
  /**
7510
7515
  * Disallow checking a Map key before accessing a different key.
7511
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-mismatched-map-key.md
7516
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-mismatched-map-key.md
7512
7517
  */
7513
7518
  'unicorn/no-mismatched-map-key'?: Linter.RuleEntry<[]>;
7514
7519
  /**
7515
7520
  * Disallow misrefactored compound assignments where the target is duplicated in the right-hand side.
7516
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-misrefactored-assignment.md
7521
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-misrefactored-assignment.md
7517
7522
  */
7518
7523
  'unicorn/no-misrefactored-assignment'?: Linter.RuleEntry<[]>;
7519
7524
  /**
7520
7525
  * Disallow named usage of default import and export.
7521
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-named-default.md
7526
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-named-default.md
7522
7527
  */
7523
7528
  'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
7524
7529
  /**
7525
7530
  * Disallow negated array predicate calls.
7526
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-negated-array-predicate.md
7531
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-negated-array-predicate.md
7527
7532
  */
7528
7533
  'unicorn/no-negated-array-predicate'?: Linter.RuleEntry<[]>;
7529
7534
  /**
7530
7535
  * Disallow negated comparisons.
7531
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-negated-comparison.md
7536
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-negated-comparison.md
7532
7537
  */
7533
7538
  'unicorn/no-negated-comparison'?: Linter.RuleEntry<UnicornNoNegatedComparison>;
7534
7539
  /**
7535
7540
  * Disallow negated conditions.
7536
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-negated-condition.md
7541
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-negated-condition.md
7537
7542
  */
7538
7543
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
7539
7544
  /**
7540
7545
  * Disallow negated expression in equality check.
7541
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-negation-in-equality-check.md
7546
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-negation-in-equality-check.md
7542
7547
  */
7543
7548
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
7544
7549
  /**
7545
7550
  * Disallow nested ternary expressions.
7546
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-nested-ternary.md
7551
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-nested-ternary.md
7547
7552
  */
7548
7553
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
7549
7554
  /**
7550
7555
  * Disallow `new Array()`.
7551
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-new-array.md
7556
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-new-array.md
7552
7557
  */
7553
7558
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
7554
7559
  /**
7555
7560
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
7556
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-new-buffer.md
7561
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-new-buffer.md
7557
7562
  */
7558
7563
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
7559
7564
  /**
7560
7565
  * Disallow non-function values with function-style verb prefixes.
7561
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-non-function-verb-prefix.md
7566
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-non-function-verb-prefix.md
7562
7567
  */
7563
7568
  'unicorn/no-non-function-verb-prefix'?: Linter.RuleEntry<UnicornNoNonFunctionVerbPrefix>;
7564
7569
  /**
7565
7570
  * Disallow non-standard properties on built-in objects.
7566
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-nonstandard-builtin-properties.md
7571
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-nonstandard-builtin-properties.md
7567
7572
  */
7568
7573
  'unicorn/no-nonstandard-builtin-properties'?: Linter.RuleEntry<[]>;
7569
7574
  /**
7570
7575
  * Disallow the use of the `null` literal.
7571
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-null.md
7576
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-null.md
7572
7577
  */
7573
7578
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
7574
7579
  /**
7575
7580
  * Disallow the use of objects as default parameters.
7576
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-object-as-default-parameter.md
7581
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-object-as-default-parameter.md
7577
7582
  */
7578
7583
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
7579
7584
  /**
7580
7585
  * Disallow `Object` methods with `Map` or `Set`.
7581
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-object-methods-with-collections.md
7586
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-object-methods-with-collections.md
7582
7587
  */
7583
7588
  'unicorn/no-object-methods-with-collections'?: Linter.RuleEntry<[]>;
7584
7589
  /**
7585
7590
  * Disallow optional chaining on undeclared variables.
7586
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
7591
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
7587
7592
  */
7588
7593
  'unicorn/no-optional-chaining-on-undeclared-variable'?: Linter.RuleEntry<[]>;
7589
7594
  /**
7590
7595
  * Disallow `process.exit()`.
7591
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-process-exit.md
7596
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-process-exit.md
7592
7597
  */
7593
7598
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
7594
7599
  /**
7595
7600
  * Disallow comparisons made redundant by an equality check in the same logical AND.
7596
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-redundant-comparison.md
7601
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-redundant-comparison.md
7597
7602
  */
7598
7603
  'unicorn/no-redundant-comparison'?: Linter.RuleEntry<[]>;
7599
7604
  /**
7600
7605
  * Disallow using the return value of `Array#push()` and `Array#unshift()`.
7601
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-return-array-push.md
7606
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-return-array-push.md
7602
7607
  */
7603
7608
  'unicorn/no-return-array-push'?: Linter.RuleEntry<[]>;
7604
7609
  /**
7605
7610
  * Disallow selector syntax in DOM names.
7606
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-selector-as-dom-name.md
7611
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-selector-as-dom-name.md
7607
7612
  */
7608
7613
  'unicorn/no-selector-as-dom-name'?: Linter.RuleEntry<[]>;
7609
7614
  /**
7610
7615
  * Disallow passing single-element arrays to `Promise` methods.
7611
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-single-promise-in-promise-methods.md
7616
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-single-promise-in-promise-methods.md
7612
7617
  */
7613
7618
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
7614
7619
  /**
7615
7620
  * Disallow classes that only have static members.
7616
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-static-only-class.md
7621
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-static-only-class.md
7617
7622
  */
7618
7623
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
7619
7624
  /**
7620
7625
  * Prefer comparing values directly over subtracting and comparing to `0`.
7621
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-subtraction-comparison.md
7626
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-subtraction-comparison.md
7622
7627
  */
7623
7628
  'unicorn/no-subtraction-comparison'?: Linter.RuleEntry<[]>;
7624
7629
  /**
7625
7630
  * Disallow `then` property.
7626
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-thenable.md
7631
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-thenable.md
7627
7632
  */
7628
7633
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
7629
7634
  /**
7630
7635
  * Disallow assigning `this` to a variable.
7631
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-this-assignment.md
7636
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-this-assignment.md
7632
7637
  */
7633
7638
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
7634
7639
  /**
7635
7640
  * Disallow `this` outside of classes.
7636
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-this-outside-of-class.md
7641
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-this-outside-of-class.md
7637
7642
  */
7638
7643
  'unicorn/no-this-outside-of-class'?: Linter.RuleEntry<[]>;
7639
7644
  /**
7640
7645
  * Disallow assigning to top-level variables from inside functions.
7641
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-top-level-assignment-in-function.md
7646
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-top-level-assignment-in-function.md
7642
7647
  */
7643
7648
  'unicorn/no-top-level-assignment-in-function'?: Linter.RuleEntry<[]>;
7644
7649
  /**
7645
7650
  * Disallow top-level side effects in exported modules.
7646
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-top-level-side-effects.md
7651
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-top-level-side-effects.md
7647
7652
  */
7648
7653
  'unicorn/no-top-level-side-effects'?: Linter.RuleEntry<[]>;
7649
7654
  /**
7650
7655
  * Disallow comparing `undefined` using `typeof`.
7651
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-typeof-undefined.md
7656
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-typeof-undefined.md
7652
7657
  */
7653
7658
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
7654
7659
  /**
7655
7660
  * Disallow referencing methods without calling them.
7656
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-uncalled-method.md
7661
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-uncalled-method.md
7657
7662
  */
7658
7663
  'unicorn/no-uncalled-method'?: Linter.RuleEntry<[]>;
7659
7664
  /**
7660
7665
  * Require class members to be declared.
7661
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-undeclared-class-members.md
7666
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-undeclared-class-members.md
7662
7667
  */
7663
7668
  'unicorn/no-undeclared-class-members'?: Linter.RuleEntry<[]>;
7664
7669
  /**
7665
7670
  * Disallow using `1` as the `depth` argument of `Array#flat()`.
7666
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unnecessary-array-flat-depth.md
7671
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unnecessary-array-flat-depth.md
7667
7672
  */
7668
7673
  'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
7674
+ /**
7675
+ * Disallow `Array#flatMap()` callbacks that only wrap a single item.
7676
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unnecessary-array-flat-map.md
7677
+ */
7678
+ 'unicorn/no-unnecessary-array-flat-map'?: Linter.RuleEntry<[]>;
7669
7679
  /**
7670
7680
  * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
7671
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unnecessary-array-splice-count.md
7681
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unnecessary-array-splice-count.md
7672
7682
  */
7673
7683
  'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
7674
7684
  /**
7675
7685
  * Disallow awaiting non-promise values.
7676
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unnecessary-await.md
7686
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unnecessary-await.md
7677
7687
  */
7678
7688
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
7679
7689
  /**
7680
7690
  * Disallow unnecessary comparisons against boolean literals.
7681
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unnecessary-boolean-comparison.md
7691
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unnecessary-boolean-comparison.md
7682
7692
  */
7683
7693
  'unicorn/no-unnecessary-boolean-comparison'?: Linter.RuleEntry<[]>;
7694
+ /**
7695
+ * Disallow unnecessary options in `fetch()` and `new Request()`.
7696
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unnecessary-fetch-options.md
7697
+ */
7698
+ 'unicorn/no-unnecessary-fetch-options'?: Linter.RuleEntry<[]>;
7684
7699
  /**
7685
7700
  * Disallow unnecessary `globalThis` references.
7686
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unnecessary-global-this.md
7701
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unnecessary-global-this.md
7687
7702
  */
7688
7703
  'unicorn/no-unnecessary-global-this'?: Linter.RuleEntry<[]>;
7689
7704
  /**
7690
7705
  * Disallow unnecessary nested ternary expressions.
7691
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unnecessary-nested-ternary.md
7706
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unnecessary-nested-ternary.md
7692
7707
  */
7693
7708
  'unicorn/no-unnecessary-nested-ternary'?: Linter.RuleEntry<[]>;
7694
7709
  /**
7695
7710
  * Enforce the use of built-in methods instead of unnecessary polyfills.
7696
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unnecessary-polyfills.md
7711
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unnecessary-polyfills.md
7697
7712
  */
7698
7713
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
7699
7714
  /**
7700
7715
  * Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
7701
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unnecessary-slice-end.md
7716
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unnecessary-slice-end.md
7702
7717
  */
7703
7718
  'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
7704
7719
  /**
7705
7720
  * Disallow `Array#splice()` when simpler alternatives exist.
7706
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unnecessary-splice.md
7721
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unnecessary-splice.md
7707
7722
  */
7708
7723
  'unicorn/no-unnecessary-splice'?: Linter.RuleEntry<[]>;
7709
7724
  /**
7710
7725
  * Disallow unreadable array destructuring.
7711
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unreadable-array-destructuring.md
7726
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unreadable-array-destructuring.md
7712
7727
  */
7713
7728
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<UnicornNoUnreadableArrayDestructuring>;
7714
7729
  /**
7715
7730
  * Disallow unreadable iterable expressions in `for…of` and `for await…of` loop headers.
7716
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unreadable-for-of-expression.md
7731
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unreadable-for-of-expression.md
7717
7732
  */
7718
7733
  'unicorn/no-unreadable-for-of-expression'?: Linter.RuleEntry<[]>;
7719
7734
  /**
7720
7735
  * Disallow unreadable IIFEs.
7721
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unreadable-iife.md
7736
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unreadable-iife.md
7722
7737
  */
7723
7738
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
7724
7739
  /**
7725
7740
  * Disallow unreadable `new` expressions.
7726
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unreadable-new-expression.md
7741
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unreadable-new-expression.md
7727
7742
  */
7728
7743
  'unicorn/no-unreadable-new-expression'?: Linter.RuleEntry<[]>;
7729
7744
  /**
7730
7745
  * Disallow unreadable object destructuring.
7731
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unreadable-object-destructuring.md
7746
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unreadable-object-destructuring.md
7732
7747
  */
7733
7748
  'unicorn/no-unreadable-object-destructuring'?: Linter.RuleEntry<[]>;
7734
7749
  /**
7735
7750
  * Prevent unsafe use of ArrayBuffer view `.buffer`.
7736
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unsafe-buffer-conversion.md
7751
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unsafe-buffer-conversion.md
7737
7752
  */
7738
7753
  'unicorn/no-unsafe-buffer-conversion'?: Linter.RuleEntry<[]>;
7739
7754
  /**
7740
7755
  * Disallow unsafe DOM HTML APIs.
7741
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unsafe-dom-html.md
7756
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unsafe-dom-html.md
7742
7757
  */
7743
7758
  'unicorn/no-unsafe-dom-html'?: Linter.RuleEntry<[]>;
7759
+ /**
7760
+ * Disallow reading `.value` from `Promise.allSettled()` results without a fulfilled status guard.
7761
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unsafe-promise-all-settled-values.md
7762
+ */
7763
+ 'unicorn/no-unsafe-promise-all-settled-values'?: Linter.RuleEntry<[]>;
7744
7764
  /**
7745
7765
  * Disallow unsafe values as property keys.
7746
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unsafe-property-key.md
7766
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unsafe-property-key.md
7747
7767
  */
7748
7768
  'unicorn/no-unsafe-property-key'?: Linter.RuleEntry<[]>;
7749
7769
  /**
7750
7770
  * Disallow non-literal replacement values in `String#replace()` and `String#replaceAll()`.
7751
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unsafe-string-replacement.md
7771
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unsafe-string-replacement.md
7752
7772
  */
7753
7773
  'unicorn/no-unsafe-string-replacement'?: Linter.RuleEntry<[]>;
7754
7774
  /**
7755
7775
  * Disallow ignoring the return value of selected array methods.
7756
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unused-array-method-return.md
7776
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unused-array-method-return.md
7757
7777
  */
7758
7778
  'unicorn/no-unused-array-method-return'?: Linter.RuleEntry<[]>;
7759
7779
  /**
7760
7780
  * Disallow unused object properties.
7761
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unused-properties.md
7781
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unused-properties.md
7762
7782
  */
7763
7783
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
7764
7784
  /**
7765
7785
  * Disallow unnecessary `Boolean()` casts in array predicate callbacks.
7766
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-boolean-cast.md
7786
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-boolean-cast.md
7767
7787
  */
7768
7788
  'unicorn/no-useless-boolean-cast'?: Linter.RuleEntry<[]>;
7769
7789
  /**
7770
7790
  * Disallow useless type coercions of values that are already of the target type.
7771
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-coercion.md
7791
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-coercion.md
7772
7792
  */
7773
7793
  'unicorn/no-useless-coercion'?: Linter.RuleEntry<[]>;
7774
7794
  /**
7775
7795
  * Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
7776
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-collection-argument.md
7796
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-collection-argument.md
7777
7797
  */
7778
7798
  'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>;
7779
7799
  /**
7780
7800
  * Disallow useless compound assignments such as `x += 0`.
7781
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-compound-assignment.md
7801
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-compound-assignment.md
7782
7802
  */
7783
7803
  'unicorn/no-useless-compound-assignment'?: Linter.RuleEntry<[]>;
7784
7804
  /**
7785
7805
  * Disallow useless concatenation of literals.
7786
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-concat.md
7806
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-concat.md
7787
7807
  */
7788
7808
  'unicorn/no-useless-concat'?: Linter.RuleEntry<[]>;
7789
7809
  /**
7790
7810
  * Disallow useless `continue` statements.
7791
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-continue.md
7811
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-continue.md
7792
7812
  */
7793
7813
  'unicorn/no-useless-continue'?: Linter.RuleEntry<[]>;
7794
7814
  /**
7795
7815
  * Disallow unnecessary existence checks before deletion.
7796
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-delete-check.md
7816
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-delete-check.md
7797
7817
  */
7798
7818
  'unicorn/no-useless-delete-check'?: Linter.RuleEntry<[]>;
7799
7819
  /**
7800
7820
  * Disallow `else` after a statement that exits.
7801
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-else.md
7821
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-else.md
7802
7822
  */
7803
7823
  'unicorn/no-useless-else'?: Linter.RuleEntry<[]>;
7804
7824
  /**
7805
7825
  * Disallow unnecessary `Error.captureStackTrace(…)`.
7806
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-error-capture-stack-trace.md
7826
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-error-capture-stack-trace.md
7807
7827
  */
7808
7828
  'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
7809
7829
  /**
7810
7830
  * Disallow useless fallback when spreading in object literals.
7811
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-fallback-in-spread.md
7831
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-fallback-in-spread.md
7812
7832
  */
7813
7833
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
7814
7834
  /**
7815
7835
  * Disallow unnecessary `.toArray()` on iterators.
7816
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-iterator-to-array.md
7836
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-iterator-to-array.md
7817
7837
  */
7818
7838
  'unicorn/no-useless-iterator-to-array'?: Linter.RuleEntry<[]>;
7819
7839
  /**
7820
7840
  * Disallow useless array length check.
7821
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-length-check.md
7841
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-length-check.md
7822
7842
  */
7823
7843
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
7824
7844
  /**
7825
7845
  * Disallow unnecessary operands in logical expressions involving boolean literals.
7826
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-logical-operand.md
7846
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-logical-operand.md
7827
7847
  */
7828
7848
  'unicorn/no-useless-logical-operand'?: Linter.RuleEntry<[]>;
7829
7849
  /**
7830
7850
  * Disallow useless overrides of class methods.
7831
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-override.md
7851
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-override.md
7832
7852
  */
7833
7853
  'unicorn/no-useless-override'?: Linter.RuleEntry<[]>;
7834
7854
  /**
7835
7855
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
7836
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-promise-resolve-reject.md
7856
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-promise-resolve-reject.md
7837
7857
  */
7838
7858
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
7839
7859
  /**
7840
7860
  * Disallow simple recursive function calls that can be replaced with a loop.
7841
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-recursion.md
7861
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-recursion.md
7842
7862
  */
7843
7863
  'unicorn/no-useless-recursion'?: Linter.RuleEntry<[]>;
7844
7864
  /**
7845
7865
  * Disallow unnecessary spread.
7846
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-spread.md
7866
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-spread.md
7847
7867
  */
7848
7868
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
7849
7869
  /**
7850
7870
  * Disallow useless case in switch statements.
7851
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-switch-case.md
7871
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-switch-case.md
7852
7872
  */
7853
7873
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
7854
7874
  /**
7855
7875
  * Disallow useless template literal expressions.
7856
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-template-literals.md
7876
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-template-literals.md
7857
7877
  */
7858
7878
  'unicorn/no-useless-template-literals'?: Linter.RuleEntry<[]>;
7859
7879
  /**
7860
7880
  * Disallow useless `undefined`.
7861
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-undefined.md
7881
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-undefined.md
7862
7882
  */
7863
7883
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
7864
7884
  /**
7865
7885
  * Disallow the bitwise XOR operator where exponentiation was likely intended.
7866
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-xor-as-exponentiation.md
7886
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-xor-as-exponentiation.md
7867
7887
  */
7868
7888
  'unicorn/no-xor-as-exponentiation'?: Linter.RuleEntry<[]>;
7869
7889
  /**
7870
7890
  * Disallow number literals with zero fractions or dangling dots.
7871
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-zero-fractions.md
7891
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-zero-fractions.md
7872
7892
  */
7873
7893
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
7874
7894
  /**
7875
7895
  * Enforce proper case for numeric literals.
7876
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/number-literal-case.md
7896
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/number-literal-case.md
7877
7897
  */
7878
7898
  'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
7879
7899
  /**
7880
7900
  * Enforce the style of numeric separators by correctly grouping digits.
7881
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/numeric-separators-style.md
7901
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/numeric-separators-style.md
7882
7902
  */
7883
7903
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
7884
7904
  /**
7885
7905
  * Require assignment operator shorthand where possible.
7886
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/operator-assignment.md
7906
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/operator-assignment.md
7887
7907
  */
7888
7908
  'unicorn/operator-assignment'?: Linter.RuleEntry<UnicornOperatorAssignment>;
7909
+ /**
7910
+ * Prefer `AbortSignal.any()` over manually forwarding abort events between signals.
7911
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-abort-signal-any.md
7912
+ */
7913
+ 'unicorn/prefer-abort-signal-any'?: Linter.RuleEntry<[]>;
7889
7914
  /**
7890
7915
  * Prefer `AbortSignal.timeout()` over manually aborting an `AbortController` with `setTimeout()`.
7891
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-abort-signal-timeout.md
7916
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-abort-signal-timeout.md
7892
7917
  */
7893
7918
  'unicorn/prefer-abort-signal-timeout'?: Linter.RuleEntry<[]>;
7894
7919
  /**
7895
7920
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
7896
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-add-event-listener.md
7921
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-add-event-listener.md
7897
7922
  */
7898
7923
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
7899
7924
  /**
7900
7925
  * Prefer an options object over a boolean in `.addEventListener()`.
7901
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-add-event-listener-options.md
7926
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-add-event-listener-options.md
7902
7927
  */
7903
7928
  'unicorn/prefer-add-event-listener-options'?: Linter.RuleEntry<[]>;
7904
7929
  /**
7905
7930
  * Prefer `AggregateError` when throwing collected errors.
7906
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-aggregate-error.md
7931
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-aggregate-error.md
7907
7932
  */
7908
7933
  'unicorn/prefer-aggregate-error'?: Linter.RuleEntry<[]>;
7909
7934
  /**
7910
7935
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
7911
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-array-find.md
7936
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-array-find.md
7912
7937
  */
7913
7938
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
7914
7939
  /**
7915
7940
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
7916
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-array-flat.md
7941
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-array-flat.md
7917
7942
  */
7918
7943
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
7919
7944
  /**
7920
7945
  * Prefer `.flatMap(…)` over `.map(…).flat()` and `.filter(…).flatMap(…)`.
7921
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-array-flat-map.md
7946
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-array-flat-map.md
7922
7947
  */
7923
7948
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
7924
7949
  /**
7925
7950
  * Prefer `Array.fromAsync()` over `for await…of` array accumulation.
7926
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-array-from-async.md
7951
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-array-from-async.md
7927
7952
  */
7928
7953
  'unicorn/prefer-array-from-async'?: Linter.RuleEntry<[]>;
7929
7954
  /**
7930
7955
  * Prefer using the `Array.from()` mapping function argument.
7931
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-array-from-map.md
7956
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-array-from-map.md
7932
7957
  */
7933
7958
  'unicorn/prefer-array-from-map'?: Linter.RuleEntry<[]>;
7959
+ /**
7960
+ * Prefer `Array.from({length}, …)` when creating range arrays.
7961
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-array-from-range.md
7962
+ */
7963
+ 'unicorn/prefer-array-from-range'?: Linter.RuleEntry<[]>;
7934
7964
  /**
7935
7965
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
7936
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-array-index-of.md
7966
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-array-index-of.md
7937
7967
  */
7938
7968
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
7939
7969
  /**
7940
7970
  * Prefer iterating an array directly or with `Array#keys()` over `Array#entries()` when the index or value is unused.
7941
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-array-iterable-methods.md
7971
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-array-iterable-methods.md
7942
7972
  */
7943
7973
  'unicorn/prefer-array-iterable-methods'?: Linter.RuleEntry<[]>;
7944
7974
  /**
7945
7975
  * Prefer last-oriented array methods over `Array#reverse()` or `Array#toReversed()` followed by a method.
7946
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-array-last-methods.md
7976
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-array-last-methods.md
7947
7977
  */
7948
7978
  'unicorn/prefer-array-last-methods'?: Linter.RuleEntry<[]>;
7949
7979
  /**
7950
7980
  * Prefer `Array#slice()` over `Array#splice()` when reading from the returned array.
7951
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-array-slice.md
7981
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-array-slice.md
7952
7982
  */
7953
7983
  'unicorn/prefer-array-slice'?: Linter.RuleEntry<[]>;
7954
7984
  /**
7955
7985
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
7956
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-array-some.md
7986
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-array-some.md
7957
7987
  */
7958
7988
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
7959
7989
  /**
7960
7990
  * Prefer `.at()` method for index access and `String#charAt()`.
7961
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-at.md
7991
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-at.md
7962
7992
  */
7963
7993
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
7964
7994
  /**
7965
7995
  * Prefer `await` over promise chaining.
7966
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-await.md
7996
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-await.md
7967
7997
  */
7968
7998
  'unicorn/prefer-await'?: Linter.RuleEntry<[]>;
7969
7999
  /**
7970
8000
  * Prefer `BigInt` literals over the constructor.
7971
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-bigint-literals.md
8001
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-bigint-literals.md
7972
8002
  */
7973
8003
  'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>;
7974
8004
  /**
7975
8005
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
7976
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-blob-reading-methods.md
8006
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-blob-reading-methods.md
7977
8007
  */
7978
8008
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
8009
+ /**
8010
+ * Prefer block statements over IIFEs used only for scoping.
8011
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-block-statement-over-iife.md
8012
+ */
8013
+ 'unicorn/prefer-block-statement-over-iife'?: Linter.RuleEntry<[]>;
7979
8014
  /**
7980
8015
  * Prefer directly returning boolean expressions over `if` statements.
7981
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-boolean-return.md
8016
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-boolean-return.md
7982
8017
  */
7983
8018
  'unicorn/prefer-boolean-return'?: Linter.RuleEntry<[]>;
7984
8019
  /**
7985
8020
  * Prefer class field declarations over `this` assignments in constructors.
7986
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-class-fields.md
8021
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-class-fields.md
7987
8022
  */
7988
8023
  'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
7989
8024
  /**
7990
8025
  * Prefer using `Element#classList.toggle()` to toggle class names.
7991
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-classlist-toggle.md
8026
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-classlist-toggle.md
7992
8027
  */
7993
8028
  'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>;
7994
8029
  /**
7995
8030
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
7996
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-code-point.md
8031
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-code-point.md
7997
8032
  */
7998
8033
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
7999
8034
  /**
8000
8035
  * Prefer early continues over whole-loop conditional wrapping.
8001
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-continue.md
8036
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-continue.md
8002
8037
  */
8003
8038
  'unicorn/prefer-continue'?: Linter.RuleEntry<UnicornPreferContinue>;
8004
8039
  /**
8005
8040
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
8006
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-date-now.md
8041
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-date-now.md
8007
8042
  */
8008
8043
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
8009
8044
  /**
8010
8045
  * Prefer default parameters over reassignment.
8011
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-default-parameters.md
8046
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-default-parameters.md
8012
8047
  */
8013
8048
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
8014
8049
  /**
8015
8050
  * Prefer direct iteration over default iterator method calls.
8016
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-direct-iteration.md
8051
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-direct-iteration.md
8017
8052
  */
8018
8053
  'unicorn/prefer-direct-iteration'?: Linter.RuleEntry<[]>;
8019
8054
  /**
8020
8055
  * Prefer using `using`/`await using` over manual `try`/`finally` resource disposal.
8021
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-dispose.md
8056
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-dispose.md
8022
8057
  */
8023
8058
  'unicorn/prefer-dispose'?: Linter.RuleEntry<[]>;
8024
8059
  /**
8025
8060
  * Prefer `Element#append()` over `Node#appendChild()`.
8026
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-dom-node-append.md
8061
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-dom-node-append.md
8027
8062
  */
8028
8063
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
8029
8064
  /**
8030
8065
  * Renamed to `unicorn/dom-node-dataset`.
8031
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
8066
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
8032
8067
  * @deprecated
8033
8068
  */
8034
8069
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
8035
8070
  /**
8036
8071
  * Prefer `.getHTML()` and `.setHTML()` over `.innerHTML`.
8037
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-dom-node-html-methods.md
8072
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-dom-node-html-methods.md
8038
8073
  */
8039
8074
  'unicorn/prefer-dom-node-html-methods'?: Linter.RuleEntry<[]>;
8040
8075
  /**
8041
8076
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
8042
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-dom-node-remove.md
8077
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-dom-node-remove.md
8043
8078
  */
8044
8079
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
8045
8080
  /**
8046
8081
  * Prefer `.replaceChildren()` when emptying DOM children.
8047
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-dom-node-replace-children.md
8082
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-dom-node-replace-children.md
8048
8083
  */
8049
8084
  'unicorn/prefer-dom-node-replace-children'?: Linter.RuleEntry<[]>;
8050
8085
  /**
8051
8086
  * Prefer `.textContent` over `.innerText`.
8052
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-dom-node-text-content.md
8087
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-dom-node-text-content.md
8053
8088
  */
8054
8089
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
8055
8090
  /**
8056
8091
  * Prefer early returns over full-function conditional wrapping.
8057
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-early-return.md
8092
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-early-return.md
8058
8093
  */
8059
8094
  'unicorn/prefer-early-return'?: Linter.RuleEntry<UnicornPreferEarlyReturn>;
8060
8095
  /**
8061
8096
  * Prefer `else if` over adjacent `if` statements with related conditions.
8062
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-else-if.md
8097
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-else-if.md
8063
8098
  */
8064
8099
  'unicorn/prefer-else-if'?: Linter.RuleEntry<[]>;
8065
8100
  /**
8066
8101
  * Prefer `Error.isError()` when checking for errors.
8067
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-error-is-error.md
8102
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-error-is-error.md
8068
8103
  */
8069
8104
  'unicorn/prefer-error-is-error'?: Linter.RuleEntry<[]>;
8070
8105
  /**
8071
8106
  * Prefer `EventTarget` over `EventEmitter`.
8072
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-event-target.md
8107
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-event-target.md
8073
8108
  */
8074
8109
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
8075
8110
  /**
8076
8111
  * Prefer `export…from` when re-exporting.
8077
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-export-from.md
8112
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-export-from.md
8078
8113
  */
8079
8114
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
8080
8115
  /**
8081
8116
  * Prefer flat `Math.min()` and `Math.max()` calls over nested calls.
8082
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-flat-math-min-max.md
8117
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-flat-math-min-max.md
8083
8118
  */
8084
8119
  'unicorn/prefer-flat-math-min-max'?: Linter.RuleEntry<[]>;
8085
8120
  /**
8086
8121
  * Prefer `.getOrInsertComputed()` when the default value has side effects.
8087
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-get-or-insert-computed.md
8122
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-get-or-insert-computed.md
8088
8123
  */
8089
8124
  'unicorn/prefer-get-or-insert-computed'?: Linter.RuleEntry<[]>;
8090
8125
  /**
8091
8126
  * Prefer global numeric constants over `Number` static properties.
8092
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-global-number-constants.md
8127
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-global-number-constants.md
8093
8128
  */
8094
8129
  'unicorn/prefer-global-number-constants'?: Linter.RuleEntry<[]>;
8095
8130
  /**
8096
8131
  * Prefer `globalThis` over `window`, `self`, and `global`.
8097
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-global-this.md
8132
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-global-this.md
8098
8133
  */
8099
8134
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
8135
+ /**
8136
+ * Prefer `Object.groupBy()` or `Map.groupBy()` over reduce-based grouping.
8137
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-group-by.md
8138
+ */
8139
+ 'unicorn/prefer-group-by'?: Linter.RuleEntry<[]>;
8100
8140
  /**
8101
8141
  * Prefer `.has()` when checking existence.
8102
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-has-check.md
8142
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-has-check.md
8103
8143
  */
8104
8144
  'unicorn/prefer-has-check'?: Linter.RuleEntry<[]>;
8105
8145
  /**
8106
8146
  * Prefer moving code shared by all branches of an `if` statement out of the branches.
8107
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-hoisting-branch-code.md
8147
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-hoisting-branch-code.md
8108
8148
  */
8109
8149
  'unicorn/prefer-hoisting-branch-code'?: Linter.RuleEntry<[]>;
8110
8150
  /**
8111
8151
  * Prefer HTTPS over HTTP.
8112
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-https.md
8152
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-https.md
8113
8153
  */
8114
8154
  'unicorn/prefer-https'?: Linter.RuleEntry<[]>;
8115
8155
  /**
8116
8156
  * Prefer identifiers over string literals in import and export specifiers.
8117
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
8157
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
8118
8158
  */
8119
8159
  'unicorn/prefer-identifier-import-export-specifiers'?: Linter.RuleEntry<[]>;
8120
8160
  /**
8121
8161
  * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
8122
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-import-meta-properties.md
8162
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-import-meta-properties.md
8123
8163
  */
8124
8164
  'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
8125
8165
  /**
8126
8166
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
8127
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-includes.md
8167
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-includes.md
8128
8168
  */
8129
8169
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
8130
8170
  /**
8131
8171
  * Prefer `.includes()` over repeated equality comparisons.
8132
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
8172
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
8133
8173
  */
8134
8174
  'unicorn/prefer-includes-over-repeated-comparisons'?: Linter.RuleEntry<UnicornPreferIncludesOverRepeatedComparisons>;
8135
8175
  /**
8136
8176
  * Prefer passing iterables directly to constructors instead of filling empty collections.
8137
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-iterable-in-constructor.md
8177
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-iterable-in-constructor.md
8138
8178
  */
8139
8179
  'unicorn/prefer-iterable-in-constructor'?: Linter.RuleEntry<[]>;
8140
8180
  /**
8141
8181
  * Prefer `Iterator.concat(…)` over temporary spread arrays.
8142
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-iterator-concat.md
8182
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-iterator-concat.md
8143
8183
  */
8144
8184
  'unicorn/prefer-iterator-concat'?: Linter.RuleEntry<[]>;
8185
+ /**
8186
+ * Prefer iterator helpers over temporary arrays from iterators.
8187
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-iterator-helpers.md
8188
+ */
8189
+ 'unicorn/prefer-iterator-helpers'?: Linter.RuleEntry<[]>;
8145
8190
  /**
8146
8191
  * Prefer `Iterator#toArray()` over temporary arrays from iterator spreads.
8147
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-iterator-to-array.md
8192
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-iterator-to-array.md
8148
8193
  */
8149
8194
  'unicorn/prefer-iterator-to-array'?: Linter.RuleEntry<[]>;
8150
8195
  /**
8151
8196
  * Prefer moving `.toArray()` to the end of iterator helper chains.
8152
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-iterator-to-array-at-end.md
8197
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-iterator-to-array-at-end.md
8153
8198
  */
8154
8199
  'unicorn/prefer-iterator-to-array-at-end'?: Linter.RuleEntry<[]>;
8155
8200
  /**
8156
8201
  * Renamed to `unicorn/consistent-json-file-read`.
8157
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
8202
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
8158
8203
  * @deprecated
8159
8204
  */
8160
8205
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
8161
8206
  /**
8162
8207
  * Prefer `KeyboardEvent#key` over deprecated keyboard event properties.
8163
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-keyboard-event-key.md
8208
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-keyboard-event-key.md
8164
8209
  */
8165
8210
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
8166
8211
  /**
8167
8212
  * Prefer `location.assign()` over assigning to `location.href`.
8168
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-location-assign.md
8213
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-location-assign.md
8169
8214
  */
8170
8215
  'unicorn/prefer-location-assign'?: Linter.RuleEntry<[]>;
8171
8216
  /**
8172
8217
  * Prefer using a logical operator over a ternary.
8173
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-logical-operator-over-ternary.md
8218
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-logical-operator-over-ternary.md
8174
8219
  */
8175
8220
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
8176
8221
  /**
8177
8222
  * Prefer `new Map()` over `Object.fromEntries()` when using the result as a map.
8178
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-map-from-entries.md
8223
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-map-from-entries.md
8179
8224
  */
8180
8225
  'unicorn/prefer-map-from-entries'?: Linter.RuleEntry<[]>;
8181
8226
  /**
8182
8227
  * Prefer `Math.abs()` over manual absolute value expressions and symmetric range checks.
8183
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-math-abs.md
8228
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-math-abs.md
8184
8229
  */
8185
8230
  'unicorn/prefer-math-abs'?: Linter.RuleEntry<[]>;
8186
8231
  /**
8187
8232
  * Prefer `Math` constants over their approximate numeric values.
8188
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-math-constants.md
8233
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-math-constants.md
8189
8234
  */
8190
8235
  'unicorn/prefer-math-constants'?: Linter.RuleEntry<[]>;
8191
8236
  /**
8192
8237
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
8193
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-math-min-max.md
8238
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-math-min-max.md
8194
8239
  */
8195
8240
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
8196
8241
  /**
8197
8242
  * Prefer `Math.trunc()` for truncating numbers.
8198
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-math-trunc.md
8243
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-math-trunc.md
8199
8244
  */
8200
8245
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
8201
8246
  /**
8202
8247
  * Prefer moving ternaries into the minimal varying part of an expression.
8203
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-minimal-ternary.md
8248
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-minimal-ternary.md
8204
8249
  */
8205
8250
  'unicorn/prefer-minimal-ternary'?: Linter.RuleEntry<UnicornPreferMinimalTernary>;
8206
8251
  /**
8207
8252
  * Prefer modern DOM APIs.
8208
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-modern-dom-apis.md
8253
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-modern-dom-apis.md
8209
8254
  */
8210
8255
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
8211
8256
  /**
8212
8257
  * Prefer modern `Math` APIs over legacy patterns.
8213
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-modern-math-apis.md
8258
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-modern-math-apis.md
8214
8259
  */
8215
8260
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
8216
8261
  /**
8217
8262
  * Prefer JavaScript modules (ESM) over CommonJS.
8218
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-module.md
8263
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-module.md
8219
8264
  */
8220
8265
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
8221
8266
  /**
8222
8267
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
8223
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-native-coercion-functions.md
8268
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-native-coercion-functions.md
8224
8269
  */
8225
8270
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
8226
8271
  /**
8227
8272
  * Prefer negative index over `.length - index` when possible.
8228
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-negative-index.md
8273
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-negative-index.md
8229
8274
  */
8230
8275
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
8231
8276
  /**
8232
8277
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
8233
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-node-protocol.md
8278
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-node-protocol.md
8234
8279
  */
8235
8280
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
8236
8281
  /**
8237
8282
  * Prefer `Number()` over `parseFloat()` and base-10 `parseInt()`.
8238
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-number-coercion.md
8283
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-number-coercion.md
8239
8284
  */
8240
8285
  'unicorn/prefer-number-coercion'?: Linter.RuleEntry<[]>;
8241
8286
  /**
8242
8287
  * Prefer `Number.isSafeInteger()` over integer checks.
8243
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-number-is-safe-integer.md
8288
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-number-is-safe-integer.md
8244
8289
  */
8245
8290
  'unicorn/prefer-number-is-safe-integer'?: Linter.RuleEntry<[]>;
8246
8291
  /**
8247
8292
  * Prefer `Number` static methods over global functions and optionally static properties over global constants.
8248
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-number-properties.md
8293
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-number-properties.md
8249
8294
  */
8250
8295
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
8251
8296
  /**
8252
8297
  * Prefer `Object.defineProperties()` over multiple `Object.defineProperty()` calls.
8253
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-object-define-properties.md
8298
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-object-define-properties.md
8254
8299
  */
8255
8300
  'unicorn/prefer-object-define-properties'?: Linter.RuleEntry<[]>;
8256
8301
  /**
8257
8302
  * Prefer object destructuring defaults over default object literals with spread.
8258
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-object-destructuring-defaults.md
8303
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-object-destructuring-defaults.md
8259
8304
  */
8260
8305
  'unicorn/prefer-object-destructuring-defaults'?: Linter.RuleEntry<[]>;
8261
8306
  /**
8262
8307
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
8263
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-object-from-entries.md
8308
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-object-from-entries.md
8264
8309
  */
8265
8310
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
8266
8311
  /**
8267
8312
  * Prefer the most specific `Object` iterable method.
8268
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-object-iterable-methods.md
8313
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-object-iterable-methods.md
8269
8314
  */
8270
8315
  'unicorn/prefer-object-iterable-methods'?: Linter.RuleEntry<[]>;
8271
8316
  /**
8272
8317
  * Prefer observer APIs over resize and scroll listeners with layout reads.
8273
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-observer-apis.md
8318
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-observer-apis.md
8274
8319
  */
8275
8320
  'unicorn/prefer-observer-apis'?: Linter.RuleEntry<[]>;
8276
8321
  /**
8277
8322
  * Prefer omitting the `catch` binding parameter.
8278
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-optional-catch-binding.md
8323
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-optional-catch-binding.md
8279
8324
  */
8280
8325
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
8281
8326
  /**
8282
8327
  * Prefer `Path2D` for repeatedly drawn canvas paths.
8283
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-path2d.md
8328
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-path2d.md
8284
8329
  */
8285
8330
  'unicorn/prefer-path2d'?: Linter.RuleEntry<[]>;
8286
8331
  /**
8287
8332
  * Prefer private class fields over the underscore-prefix convention.
8288
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-private-class-fields.md
8333
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-private-class-fields.md
8289
8334
  */
8290
8335
  'unicorn/prefer-private-class-fields'?: Linter.RuleEntry<[]>;
8291
8336
  /**
8292
8337
  * Prefer `Promise.try()` over promise-wrapping boilerplate.
8293
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-promise-try.md
8338
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-promise-try.md
8294
8339
  */
8295
8340
  'unicorn/prefer-promise-try'?: Linter.RuleEntry<[]>;
8296
8341
  /**
8297
8342
  * Prefer `Promise.withResolvers()` when extracting resolver functions from `new Promise()`.
8298
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-promise-with-resolvers.md
8343
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-promise-with-resolvers.md
8299
8344
  */
8300
8345
  'unicorn/prefer-promise-with-resolvers'?: Linter.RuleEntry<[]>;
8301
8346
  /**
8302
8347
  * Prefer borrowing methods from the prototype instead of the instance.
8303
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-prototype-methods.md
8348
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-prototype-methods.md
8304
8349
  */
8305
8350
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
8306
8351
  /**
8307
8352
  * Prefer `.querySelector()` and `.querySelectorAll()` over older DOM query methods.
8308
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-query-selector.md
8353
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-query-selector.md
8309
8354
  */
8310
8355
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<UnicornPreferQuerySelector>;
8311
8356
  /**
8312
8357
  * Prefer `queueMicrotask()` over `process.nextTick()`, `setImmediate()`, and `setTimeout(…, 0)`.
8313
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-queue-microtask.md
8358
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-queue-microtask.md
8314
8359
  */
8315
8360
  'unicorn/prefer-queue-microtask'?: Linter.RuleEntry<UnicornPreferQueueMicrotask>;
8316
8361
  /**
8317
8362
  * Prefer `Reflect.apply()` over `Function#apply()`.
8318
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-reflect-apply.md
8363
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-reflect-apply.md
8319
8364
  */
8320
8365
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
8321
8366
  /**
8322
8367
  * Prefer `RegExp.escape()` for escaping strings to use in regular expressions.
8323
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-regexp-escape.md
8368
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-regexp-escape.md
8324
8369
  */
8325
8370
  'unicorn/prefer-regexp-escape'?: Linter.RuleEntry<[]>;
8326
8371
  /**
8327
8372
  * Prefer `RegExp#test()` over `String#match()`, `String#search()`, and `RegExp#exec()`.
8328
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-regexp-test.md
8373
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-regexp-test.md
8329
8374
  */
8330
8375
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
8331
8376
  /**
8332
8377
  * Prefer `Response.json()` over `new Response(JSON.stringify())`.
8333
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-response-static-json.md
8378
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-response-static-json.md
8334
8379
  */
8335
8380
  'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>;
8336
8381
  /**
8337
8382
  * Prefer `:scope` when using element query selector methods.
8338
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-scoped-selector.md
8383
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-scoped-selector.md
8339
8384
  */
8340
8385
  'unicorn/prefer-scoped-selector'?: Linter.RuleEntry<[]>;
8341
8386
  /**
8342
8387
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
8343
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-set-has.md
8388
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-set-has.md
8344
8389
  */
8345
8390
  'unicorn/prefer-set-has'?: Linter.RuleEntry<UnicornPreferSetHas>;
8346
8391
  /**
8347
8392
  * Prefer `Set` methods for Set operations.
8348
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-set-methods.md
8393
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-set-methods.md
8349
8394
  */
8350
8395
  'unicorn/prefer-set-methods'?: Linter.RuleEntry<[]>;
8351
8396
  /**
8352
8397
  * Prefer using `Set#size` instead of `Array#length`.
8353
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-set-size.md
8398
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-set-size.md
8354
8399
  */
8355
8400
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
8356
8401
  /**
8357
8402
  * Prefer arrow function properties over methods with a single return.
8358
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-short-arrow-method.md
8403
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-short-arrow-method.md
8359
8404
  */
8360
8405
  'unicorn/prefer-short-arrow-method'?: Linter.RuleEntry<[]>;
8361
8406
  /**
8362
8407
  * Prefer simple conditions first in logical expressions.
8363
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-simple-condition-first.md
8408
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-simple-condition-first.md
8364
8409
  */
8365
8410
  'unicorn/prefer-simple-condition-first'?: Linter.RuleEntry<[]>;
8366
8411
  /**
8367
8412
  * Prefer a simple comparison function for `Array#sort()`.
8368
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-simple-sort-comparator.md
8413
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-simple-sort-comparator.md
8369
8414
  */
8370
8415
  'unicorn/prefer-simple-sort-comparator'?: Linter.RuleEntry<[]>;
8416
+ /**
8417
+ * Prefer simplified conditions.
8418
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-simplified-conditions.md
8419
+ */
8420
+ 'unicorn/prefer-simplified-conditions'?: Linter.RuleEntry<[]>;
8371
8421
  /**
8372
8422
  * Prefer a single `Array#some()` or `Array#every()` with a combined predicate.
8373
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-single-array-predicate.md
8423
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-single-array-predicate.md
8374
8424
  */
8375
8425
  'unicorn/prefer-single-array-predicate'?: Linter.RuleEntry<[]>;
8376
8426
  /**
8377
8427
  * Enforce combining multiple `Array#{push,unshift}()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
8378
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-single-call.md
8428
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-single-call.md
8379
8429
  */
8380
8430
  'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
8381
8431
  /**
8382
8432
  * Prefer a single object destructuring declaration per local const source.
8383
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-single-object-destructuring.md
8433
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-single-object-destructuring.md
8384
8434
  */
8385
8435
  'unicorn/prefer-single-object-destructuring'?: Linter.RuleEntry<[]>;
8386
8436
  /**
8387
8437
  * Enforce combining multiple single-character replacements into a single `String#replaceAll()` with a regular expression.
8388
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-single-replace.md
8438
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-single-replace.md
8389
8439
  */
8390
8440
  'unicorn/prefer-single-replace'?: Linter.RuleEntry<[]>;
8391
8441
  /**
8392
8442
  * Prefer declaring variables in the smallest possible scope.
8393
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-smaller-scope.md
8443
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-smaller-scope.md
8394
8444
  */
8395
8445
  'unicorn/prefer-smaller-scope'?: Linter.RuleEntry<[]>;
8396
8446
  /**
8397
8447
  * Prefer `String#split()` with a limit.
8398
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-split-limit.md
8448
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-split-limit.md
8399
8449
  */
8400
8450
  'unicorn/prefer-split-limit'?: Linter.RuleEntry<[]>;
8401
8451
  /**
8402
8452
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()`, and trivial `for…of` copies.
8403
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-spread.md
8453
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-spread.md
8404
8454
  */
8405
8455
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
8406
8456
  /**
8407
8457
  * Prefer `String#matchAll()` over `RegExp#exec()` loops.
8408
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-string-match-all.md
8458
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-string-match-all.md
8409
8459
  */
8410
8460
  'unicorn/prefer-string-match-all'?: Linter.RuleEntry<[]>;
8411
8461
  /**
8412
8462
  * Prefer `String#padStart()` and `String#padEnd()` over manual string padding.
8413
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-string-pad-start-end.md
8463
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-string-pad-start-end.md
8414
8464
  */
8415
8465
  'unicorn/prefer-string-pad-start-end'?: Linter.RuleEntry<[]>;
8416
8466
  /**
8417
8467
  * Prefer using the `String.raw` tag to avoid escaping `\`.
8418
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-string-raw.md
8468
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-string-raw.md
8419
8469
  */
8420
8470
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
8421
8471
  /**
8422
8472
  * Prefer `String#repeat()` for repeated whitespace.
8423
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-string-repeat.md
8473
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-string-repeat.md
8424
8474
  */
8425
8475
  'unicorn/prefer-string-repeat'?: Linter.RuleEntry<UnicornPreferStringRepeat>;
8426
8476
  /**
8427
8477
  * Prefer `String#replaceAll()` over regex searches with the global flag and `String#split().join()`.
8428
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-string-replace-all.md
8478
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-string-replace-all.md
8429
8479
  */
8430
8480
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
8431
8481
  /**
8432
8482
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
8433
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-string-slice.md
8483
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-string-slice.md
8434
8484
  */
8435
8485
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
8436
8486
  /**
8437
8487
  * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()` and `String#indexOf() === 0`.
8438
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-string-starts-ends-with.md
8488
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-string-starts-ends-with.md
8439
8489
  */
8440
8490
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
8441
8491
  /**
8442
8492
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
8443
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-string-trim-start-end.md
8493
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-string-trim-start-end.md
8444
8494
  */
8445
8495
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
8446
8496
  /**
8447
8497
  * Prefer using `structuredClone` to create a deep clone.
8448
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-structured-clone.md
8498
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-structured-clone.md
8449
8499
  */
8450
8500
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
8451
8501
  /**
8452
8502
  * Prefer `switch` over multiple `else-if`.
8453
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-switch.md
8503
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-switch.md
8454
8504
  */
8455
8505
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
8456
8506
  /**
8457
8507
  * Prefer `Temporal` over `Date`.
8458
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-temporal.md
8508
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-temporal.md
8459
8509
  */
8460
8510
  'unicorn/prefer-temporal'?: Linter.RuleEntry<UnicornPreferTemporal>;
8461
8511
  /**
8462
8512
  * Prefer ternary expressions over simple `if` statements that return or assign values.
8463
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-ternary.md
8513
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-ternary.md
8464
8514
  */
8465
8515
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
8466
8516
  /**
8467
8517
  * Prefer using `Element#toggleAttribute()` to toggle attributes.
8468
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-toggle-attribute.md
8518
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-toggle-attribute.md
8469
8519
  */
8470
8520
  'unicorn/prefer-toggle-attribute'?: Linter.RuleEntry<[]>;
8471
8521
  /**
8472
8522
  * Prefer top-level await over top-level promises and async function calls.
8473
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-top-level-await.md
8523
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-top-level-await.md
8474
8524
  */
8475
8525
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
8476
8526
  /**
8477
8527
  * Enforce throwing `TypeError` in type checking conditions.
8478
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-type-error.md
8528
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-type-error.md
8479
8529
  */
8480
8530
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
8481
8531
  /**
8482
8532
  * Require type literals to be last in union types.
8483
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-type-literal-last.md
8533
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-type-literal-last.md
8484
8534
  */
8485
8535
  'unicorn/prefer-type-literal-last'?: Linter.RuleEntry<[]>;
8486
8536
  /**
8487
8537
  * Prefer `Uint8Array#toBase64()` and `Uint8Array.fromBase64()` over `atob()`, `btoa()`, and `Buffer` base64 conversions.
8488
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-uint8array-base64.md
8538
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-uint8array-base64.md
8489
8539
  */
8490
8540
  'unicorn/prefer-uint8array-base64'?: Linter.RuleEntry<[]>;
8491
8541
  /**
8492
8542
  * Prefer the unary minus operator over multiplying or dividing by `-1`.
8493
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-unary-minus.md
8543
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-unary-minus.md
8494
8544
  */
8495
8545
  'unicorn/prefer-unary-minus'?: Linter.RuleEntry<[]>;
8496
8546
  /**
8497
8547
  * Prefer Unicode code point escapes over legacy escape sequences.
8498
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-unicode-code-point-escapes.md
8548
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-unicode-code-point-escapes.md
8499
8549
  */
8500
8550
  'unicorn/prefer-unicode-code-point-escapes'?: Linter.RuleEntry<[]>;
8501
8551
  /**
8502
8552
  * Prefer `URL.canParse()` over constructing a `URL` in a try/catch for validation.
8503
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-url-can-parse.md
8553
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-url-can-parse.md
8504
8554
  */
8505
8555
  'unicorn/prefer-url-can-parse'?: Linter.RuleEntry<[]>;
8506
8556
  /**
8507
8557
  * Prefer `URL#href` over stringifying a `URL`.
8508
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-url-href.md
8558
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-url-href.md
8509
8559
  */
8510
8560
  'unicorn/prefer-url-href'?: Linter.RuleEntry<[]>;
8511
8561
  /**
8512
8562
  * Prefer `URLSearchParams` over manually splitting query strings.
8513
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-url-search-parameters.md
8563
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-url-search-parameters.md
8514
8564
  */
8515
8565
  'unicorn/prefer-url-search-parameters'?: Linter.RuleEntry<[]>;
8516
8566
  /**
8517
8567
  * Prefer putting the condition in the while statement.
8518
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-while-loop-condition.md
8568
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-while-loop-condition.md
8519
8569
  */
8520
8570
  'unicorn/prefer-while-loop-condition'?: Linter.RuleEntry<[]>;
8521
8571
  /**
8522
8572
  * Renamed to `unicorn/name-replacements`.
8523
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
8573
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
8524
8574
  * @deprecated
8525
8575
  */
8526
8576
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<[]>;
8527
8577
  /**
8528
8578
  * Enforce consistent relative URL style.
8529
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/relative-url-style.md
8579
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/relative-url-style.md
8530
8580
  */
8531
8581
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
8532
8582
  /**
8533
8583
  * Enforce using the separator argument with `Array#join()`.
8534
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/require-array-join-separator.md
8584
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/require-array-join-separator.md
8535
8585
  */
8536
8586
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
8537
8587
  /**
8538
8588
  * Require a compare function when calling `Array#sort()` or `Array#toSorted()`.
8539
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/require-array-sort-compare.md
8589
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/require-array-sort-compare.md
8540
8590
  */
8541
8591
  'unicorn/require-array-sort-compare'?: Linter.RuleEntry<[]>;
8542
8592
  /**
8543
8593
  * Require `CSS.escape()` for interpolated values in CSS selectors.
8544
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/require-css-escape.md
8594
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/require-css-escape.md
8545
8595
  */
8546
8596
  'unicorn/require-css-escape'?: Linter.RuleEntry<UnicornRequireCssEscape>;
8547
8597
  /**
8548
8598
  * Require non-empty module attributes for imports and exports
8549
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/require-module-attributes.md
8599
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/require-module-attributes.md
8550
8600
  */
8551
8601
  'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>;
8552
8602
  /**
8553
8603
  * Require non-empty specifier list in import and export statements.
8554
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/require-module-specifiers.md
8604
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/require-module-specifiers.md
8555
8605
  */
8556
8606
  'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
8557
8607
  /**
8558
8608
  * Enforce using the digits argument with `Number#toFixed()`.
8559
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/require-number-to-fixed-digits-argument.md
8609
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/require-number-to-fixed-digits-argument.md
8560
8610
  */
8561
8611
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
8562
8612
  /**
8563
8613
  * Require passive event listeners for high-frequency events.
8564
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/require-passive-events.md
8614
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/require-passive-events.md
8565
8615
  */
8566
8616
  'unicorn/require-passive-events'?: Linter.RuleEntry<[]>;
8567
8617
  /**
8568
8618
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
8569
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/require-post-message-target-origin.md
8619
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/require-post-message-target-origin.md
8570
8620
  */
8571
8621
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
8572
8622
  /**
8573
8623
  * Require boolean-returning Proxy traps to return booleans.
8574
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/require-proxy-trap-boolean-return.md
8624
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/require-proxy-trap-boolean-return.md
8575
8625
  */
8576
8626
  'unicorn/require-proxy-trap-boolean-return'?: Linter.RuleEntry<[]>;
8577
8627
  /**
8578
8628
  * Enforce better string content.
8579
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/string-content.md
8629
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/string-content.md
8580
8630
  */
8581
8631
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
8582
8632
  /**
8583
8633
  * Enforce consistent brace style for `case` clauses.
8584
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/switch-case-braces.md
8634
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/switch-case-braces.md
8585
8635
  */
8586
8636
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
8587
8637
  /**
8588
8638
  * Enforce consistent `break`/`return`/`continue`/`throw` position in `case` clauses.
8589
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/switch-case-break-position.md
8639
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/switch-case-break-position.md
8590
8640
  */
8591
8641
  'unicorn/switch-case-break-position'?: Linter.RuleEntry<[]>;
8592
8642
  /**
8593
8643
  * Fix whitespace-insensitive template indentation.
8594
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/template-indent.md
8644
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/template-indent.md
8595
8645
  */
8596
8646
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
8597
8647
  /**
8598
8648
  * Enforce consistent case for text encoding identifiers.
8599
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/text-encoding-identifier-case.md
8649
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/text-encoding-identifier-case.md
8600
8650
  */
8601
8651
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
8602
8652
  /**
8603
8653
  * Require `new` when creating an error.
8604
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/throw-new-error.md
8654
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/throw-new-error.md
8605
8655
  */
8606
8656
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
8607
8657
  /**
8608
8658
  * Limit the complexity of `try` blocks.
8609
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/try-complexity.md
8659
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/try-complexity.md
8610
8660
  */
8611
8661
  'unicorn/try-complexity'?: Linter.RuleEntry<UnicornTryComplexity>;
8612
8662
  /**
@@ -17090,7 +17140,7 @@ type TestNoFocusedTests = [] | [{
17090
17140
  fixable?: boolean;
17091
17141
  }]; // ----- test/no-hooks -----
17092
17142
  type TestNoHooks = [] | [{
17093
- allow?: ("beforeAll" | "beforeEach" | "afterAll" | "afterEach")[];
17143
+ allow?: ("beforeAll" | "beforeEach" | "afterAll" | "afterEach" | "aroundAll" | "aroundEach")[];
17094
17144
  }]; // ----- test/no-large-snapshots -----
17095
17145
  type TestNoLargeSnapshots = [] | [{
17096
17146
  maxSize?: number;
@@ -18362,6 +18412,7 @@ type UnicornNoNegatedComparison = [] | [{
18362
18412
  }]; // ----- unicorn/no-non-function-verb-prefix -----
18363
18413
  type UnicornNoNonFunctionVerbPrefix = [] | [{
18364
18414
  verbs?: string[];
18415
+ ignore?: unknown[];
18365
18416
  }]; // ----- unicorn/no-null -----
18366
18417
  type UnicornNoNull = [] | [{
18367
18418
  checkArguments?: boolean;
@@ -21014,6 +21065,7 @@ declare const GLOB_ASTRO_TS = "**/*.astro/*.ts";
21014
21065
  declare const GLOB_GRAPHQL = "**/*.{g,graph}ql";
21015
21066
  declare const GLOB_MARKDOWN_CODE = "**/*.md/**/*.?([cm])[jt]s?(x)";
21016
21067
  declare const GLOB_STORYBOOK: string[];
21068
+ declare const GLOB_SANITY: string[];
21017
21069
  declare const GLOB_TESTS: string[];
21018
21070
  declare const GLOB_ALL_SRC: string[];
21019
21071
  declare const GLOB_EXCLUDE: string[];
@@ -21136,4 +21188,4 @@ declare function renameRules(rules: Record<string, any>, map: Record<string, str
21136
21188
  */
21137
21189
  declare function toArray<T>(value: T | T[]): T[];
21138
21190
  //#endregion
21139
- export { Awaitable, CONFIG_PRESET_FULL_OFF, CONFIG_PRESET_FULL_ON, type ConfigNames, GLOB_ALL_SRC, GLOB_ASTRO, GLOB_ASTRO_TS, GLOB_CSS, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_POSTCSS, GLOB_SCSS, GLOB_SEARCH_EXCLUDE, GLOB_SRC, GLOB_SRC_EXT, GLOB_STORYBOOK, GLOB_STYLE, GLOB_SVELTE, GLOB_SVG, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_XML, GLOB_YAML, OptionsComponentExts, OptionsConfig, OptionsE18e, OptionsFiles, OptionsFormatters, OptionsHasTypeScript, OptionsIsInEditor, OptionsJSX, OptionsJSXA11y, OptionsNextjs, OptionsOverrides, OptionsPnpm, OptionsProjectType, OptionsReact, OptionsRegExp, OptionsSanity, OptionsStylistic, OptionsTailwindcss, OptionsTypeScriptErasableOnly, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, OptionsTypescript, OptionsUnicorn, OptionsUnoCSS, OptionsVue, PACKAGE_NAME, ResolvedOptions, Rules, StylisticConfig, StylisticConfigDefaults, StylisticOptions, TypedFlatConfigItem, astro, combine, command, comments, config, config as inferno, defaultPluginRenaming, disables, e18e, ensurePackages, formatters, getOverrides, ignores, imports, interopDefault, isInCursorAgent, isInEditorEnv, isInGitHooksOrLintStaged, isInVSCodeESLintExtension, isPackageInScope, javascript, jsdoc, jsonc, jsx, markdown, nextjs, node, normalizeRules, packageExportsSortOrder, packageSortOrder, parserPlain, perfectionist, pnpm, react, regexp, renamePluginInConfigs, renameRules, resolveSubOptions, sanity, solid, sortPackageJson, sortTsconfig, storybook, stylistic, svelte, tailwindcss, test, toArray, toml, typescript, unicorn, unocss, vue, yaml };
21191
+ export { Awaitable, CONFIG_PRESET_FULL_OFF, CONFIG_PRESET_FULL_ON, type ConfigNames, GLOB_ALL_SRC, GLOB_ASTRO, GLOB_ASTRO_TS, GLOB_CSS, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_POSTCSS, GLOB_SANITY, GLOB_SCSS, GLOB_SEARCH_EXCLUDE, GLOB_SRC, GLOB_SRC_EXT, GLOB_STORYBOOK, GLOB_STYLE, GLOB_SVELTE, GLOB_SVG, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_XML, GLOB_YAML, OptionsComponentExts, OptionsConfig, OptionsE18e, OptionsFiles, OptionsFormatters, OptionsHasTypeScript, OptionsIsInEditor, OptionsJSX, OptionsJSXA11y, OptionsNextjs, OptionsOverrides, OptionsPnpm, OptionsProjectType, OptionsReact, OptionsRegExp, OptionsSanity, OptionsStylistic, OptionsTailwindcss, OptionsTypeScriptErasableOnly, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, OptionsTypescript, OptionsUnicorn, OptionsUnoCSS, OptionsVue, PACKAGE_NAME, ResolvedOptions, Rules, StylisticConfig, StylisticConfigDefaults, StylisticOptions, TypedFlatConfigItem, astro, combine, command, comments, config, config as inferno, defaultPluginRenaming, disables, e18e, ensurePackages, formatters, getOverrides, ignores, imports, interopDefault, isInCursorAgent, isInEditorEnv, isInGitHooksOrLintStaged, isInVSCodeESLintExtension, isPackageInScope, javascript, jsdoc, jsonc, jsx, markdown, nextjs, node, normalizeRules, packageExportsSortOrder, packageSortOrder, parserPlain, perfectionist, pnpm, react, regexp, renamePluginInConfigs, renameRules, resolveSubOptions, sanity, solid, sortPackageJson, sortTsconfig, storybook, stylistic, svelte, tailwindcss, test, toArray, toml, typescript, unicorn, unocss, vue, yaml };