@jsse/eslint-config 0.3.5 → 0.3.7

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
@@ -1046,7 +1046,7 @@ interface BuiltinsRuleOptions {
1046
1046
  * Disallow identifiers from shadowing restricted names
1047
1047
  * @see https://eslint.org/docs/latest/rules/no-shadow-restricted-names
1048
1048
  */
1049
- "no-shadow-restricted-names"?: Linter.RuleEntry<[]>;
1049
+ "no-shadow-restricted-names"?: Linter.RuleEntry<NoShadowRestrictedNames>;
1050
1050
  /**
1051
1051
  * Disallow spacing between function identifiers and their applications (deprecated)
1052
1052
  * @see https://eslint.org/docs/latest/rules/no-spaced-func
@@ -3323,6 +3323,14 @@ type NoShadow =
3323
3323
  ignoreOnInitialization?: boolean;
3324
3324
  },
3325
3325
  ];
3326
+ // ----- no-shadow-restricted-names -----
3327
+ type NoShadowRestrictedNames =
3328
+ | []
3329
+ | [
3330
+ {
3331
+ reportGlobalThis?: boolean;
3332
+ },
3333
+ ];
3326
3334
  // ----- no-sync -----
3327
3335
  type NoSync =
3328
3336
  | []
@@ -3419,6 +3427,7 @@ type NoUnusedExpressions =
3419
3427
  allowTernary?: boolean;
3420
3428
  allowTaggedTemplates?: boolean;
3421
3429
  enforceForJSX?: boolean;
3430
+ ignoreDirectives?: boolean;
3422
3431
  },
3423
3432
  ];
3424
3433
  // ----- no-unused-vars -----
@@ -17522,7 +17531,7 @@ interface VitestRuleOptions {
17522
17531
  */
17523
17532
  "vitest/no-standalone-expect"?: Linter.RuleEntry<VitestNoStandaloneExpect>;
17524
17533
  /**
17525
- * disallow using `test` as a prefix
17534
+ * Disallow using the `f` and `x` prefixes in favour of `.only` and `.skip`
17526
17535
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-test-prefixes.md
17527
17536
  */
17528
17537
  "vitest/no-test-prefixes"?: Linter.RuleEntry<[]>;
@@ -18504,6 +18513,11 @@ interface TypescriptRuleOptions {
18504
18513
  * @see https://typescript-eslint.io/rules/no-unnecessary-type-constraint
18505
18514
  */
18506
18515
  "@typescript-eslint/no-unnecessary-type-constraint"?: Linter.RuleEntry<[]>;
18516
+ /**
18517
+ * Disallow conversion idioms when they do not change the type or value of the expression
18518
+ * @see https://typescript-eslint.io/rules/no-unnecessary-type-conversion
18519
+ */
18520
+ "@typescript-eslint/no-unnecessary-type-conversion"?: Linter.RuleEntry<[]>;
18507
18521
  /**
18508
18522
  * Disallow type parameters that aren't used multiple times
18509
18523
  * @see https://typescript-eslint.io/rules/no-unnecessary-type-parameters
@@ -22248,6 +22262,7 @@ type TypescriptEslintNoUnusedExpressions =
22248
22262
  allowTernary?: boolean;
22249
22263
  allowTaggedTemplates?: boolean;
22250
22264
  enforceForJSX?: boolean;
22265
+ ignoreDirectives?: boolean;
22251
22266
  },
22252
22267
  ];
22253
22268
  // ----- @typescript-eslint/no-unused-vars -----
@@ -22329,6 +22344,8 @@ type TypescriptEslintOnlyThrowError =
22329
22344
  }
22330
22345
  )[];
22331
22346
 
22347
+ allowRethrowing?: boolean;
22348
+
22332
22349
  allowThrowingAny?: boolean;
22333
22350
 
22334
22351
  allowThrowingUnknown?: boolean;
@@ -23127,643 +23144,670 @@ type ImportPreferDefaultExport =
23127
23144
  interface UnicornRuleOptions {
23128
23145
  /**
23129
23146
  * Improve regexes by making them shorter, consistent, and safer.
23130
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/better-regex.md
23147
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/better-regex.md
23131
23148
  */
23132
23149
  "unicorn/better-regex"?: Linter.RuleEntry<UnicornBetterRegex>;
23133
23150
  /**
23134
23151
  * Enforce a specific parameter name in catch clauses.
23135
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/catch-error-name.md
23152
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/catch-error-name.md
23136
23153
  */
23137
23154
  "unicorn/catch-error-name"?: Linter.RuleEntry<UnicornCatchErrorName>;
23138
23155
  /**
23139
23156
  * Enforce consistent assertion style with `node:assert`.
23140
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/consistent-assert.md
23157
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-assert.md
23141
23158
  */
23142
23159
  "unicorn/consistent-assert"?: Linter.RuleEntry<[]>;
23143
23160
  /**
23144
23161
  * Prefer passing `Date` directly to the constructor when cloning.
23145
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/consistent-date-clone.md
23162
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-date-clone.md
23146
23163
  */
23147
23164
  "unicorn/consistent-date-clone"?: Linter.RuleEntry<[]>;
23148
23165
  /**
23149
23166
  * Use destructured variables over properties.
23150
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/consistent-destructuring.md
23167
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-destructuring.md
23151
23168
  */
23152
23169
  "unicorn/consistent-destructuring"?: Linter.RuleEntry<[]>;
23153
23170
  /**
23154
23171
  * Prefer consistent types when spreading a ternary in an array literal.
23155
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/consistent-empty-array-spread.md
23172
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-empty-array-spread.md
23156
23173
  */
23157
23174
  "unicorn/consistent-empty-array-spread"?: Linter.RuleEntry<[]>;
23158
23175
  /**
23159
23176
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
23160
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/consistent-existence-index-check.md
23177
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-existence-index-check.md
23161
23178
  */
23162
23179
  "unicorn/consistent-existence-index-check"?: Linter.RuleEntry<[]>;
23163
23180
  /**
23164
23181
  * Move function definitions to the highest possible scope.
23165
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/consistent-function-scoping.md
23182
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-function-scoping.md
23166
23183
  */
23167
23184
  "unicorn/consistent-function-scoping"?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
23168
23185
  /**
23169
23186
  * Enforce correct `Error` subclassing.
23170
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/custom-error-definition.md
23187
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/custom-error-definition.md
23171
23188
  */
23172
23189
  "unicorn/custom-error-definition"?: Linter.RuleEntry<[]>;
23173
23190
  /**
23174
23191
  * Enforce no spaces between braces.
23175
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/empty-brace-spaces.md
23192
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/empty-brace-spaces.md
23176
23193
  */
23177
23194
  "unicorn/empty-brace-spaces"?: Linter.RuleEntry<[]>;
23178
23195
  /**
23179
23196
  * Enforce passing a `message` value when creating a built-in error.
23180
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/error-message.md
23197
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/error-message.md
23181
23198
  */
23182
23199
  "unicorn/error-message"?: Linter.RuleEntry<[]>;
23183
23200
  /**
23184
23201
  * Require escape sequences to use uppercase or lowercase values.
23185
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/escape-case.md
23202
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/escape-case.md
23186
23203
  */
23187
23204
  "unicorn/escape-case"?: Linter.RuleEntry<UnicornEscapeCase>;
23188
23205
  /**
23189
23206
  * Add expiration conditions to TODO comments.
23190
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/expiring-todo-comments.md
23207
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/expiring-todo-comments.md
23191
23208
  */
23192
23209
  "unicorn/expiring-todo-comments"?: Linter.RuleEntry<UnicornExpiringTodoComments>;
23193
23210
  /**
23194
23211
  * Enforce explicitly comparing the `length` or `size` property of a value.
23195
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/explicit-length-check.md
23212
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/explicit-length-check.md
23196
23213
  */
23197
23214
  "unicorn/explicit-length-check"?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
23198
23215
  /**
23199
23216
  * Enforce a case style for filenames.
23200
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/filename-case.md
23217
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/filename-case.md
23201
23218
  */
23202
23219
  "unicorn/filename-case"?: Linter.RuleEntry<UnicornFilenameCase>;
23203
23220
  /**
23204
23221
  * Enforce specific import styles per module.
23205
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/import-style.md
23222
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/import-style.md
23206
23223
  */
23207
23224
  "unicorn/import-style"?: Linter.RuleEntry<UnicornImportStyle>;
23208
23225
  /**
23209
23226
  * Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
23210
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/new-for-builtins.md
23227
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/new-for-builtins.md
23211
23228
  */
23212
23229
  "unicorn/new-for-builtins"?: Linter.RuleEntry<[]>;
23213
23230
  /**
23214
23231
  * Enforce specifying rules to disable in `eslint-disable` comments.
23215
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-abusive-eslint-disable.md
23232
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-abusive-eslint-disable.md
23216
23233
  */
23217
23234
  "unicorn/no-abusive-eslint-disable"?: Linter.RuleEntry<[]>;
23218
23235
  /**
23219
23236
  * Disallow recursive access to `this` within getters and setters.
23220
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-accessor-recursion.md
23237
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-accessor-recursion.md
23221
23238
  */
23222
23239
  "unicorn/no-accessor-recursion"?: Linter.RuleEntry<[]>;
23223
23240
  /**
23224
23241
  * Disallow anonymous functions and classes as the default export.
23225
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-anonymous-default-export.md
23242
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-anonymous-default-export.md
23226
23243
  */
23227
23244
  "unicorn/no-anonymous-default-export"?: Linter.RuleEntry<[]>;
23228
23245
  /**
23229
23246
  * Prevent passing a function reference directly to iterator methods.
23230
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-array-callback-reference.md
23247
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-array-callback-reference.md
23231
23248
  */
23232
23249
  "unicorn/no-array-callback-reference"?: Linter.RuleEntry<[]>;
23233
23250
  /**
23234
23251
  * Prefer `for…of` over the `forEach` method.
23235
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-array-for-each.md
23252
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-array-for-each.md
23236
23253
  */
23237
23254
  "unicorn/no-array-for-each"?: Linter.RuleEntry<[]>;
23238
23255
  /**
23239
23256
  * Disallow using the `this` argument in array methods.
23240
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-array-method-this-argument.md
23257
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-array-method-this-argument.md
23241
23258
  */
23242
23259
  "unicorn/no-array-method-this-argument"?: Linter.RuleEntry<[]>;
23243
23260
  /**
23244
- * Enforce combining multiple `Array#push()` into one call.
23245
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-array-push-push.md
23261
+ * Replaced by `unicorn/prefer-single-call` which covers more cases.
23262
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/deprecated-rules.md#no-array-push-push
23263
+ * @deprecated
23246
23264
  */
23247
- "unicorn/no-array-push-push"?: Linter.RuleEntry<UnicornNoArrayPushPush>;
23265
+ "unicorn/no-array-push-push"?: Linter.RuleEntry<[]>;
23248
23266
  /**
23249
23267
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
23250
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-array-reduce.md
23268
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-array-reduce.md
23251
23269
  */
23252
23270
  "unicorn/no-array-reduce"?: Linter.RuleEntry<UnicornNoArrayReduce>;
23253
23271
  /**
23254
23272
  * Disallow member access from await expression.
23255
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-await-expression-member.md
23273
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-await-expression-member.md
23256
23274
  */
23257
23275
  "unicorn/no-await-expression-member"?: Linter.RuleEntry<[]>;
23258
23276
  /**
23259
23277
  * Disallow using `await` in `Promise` method parameters.
23260
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-await-in-promise-methods.md
23278
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-await-in-promise-methods.md
23261
23279
  */
23262
23280
  "unicorn/no-await-in-promise-methods"?: Linter.RuleEntry<[]>;
23263
23281
  /**
23264
23282
  * Do not use leading/trailing space between `console.log` parameters.
23265
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-console-spaces.md
23283
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-console-spaces.md
23266
23284
  */
23267
23285
  "unicorn/no-console-spaces"?: Linter.RuleEntry<[]>;
23268
23286
  /**
23269
23287
  * Do not use `document.cookie` directly.
23270
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-document-cookie.md
23288
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-document-cookie.md
23271
23289
  */
23272
23290
  "unicorn/no-document-cookie"?: Linter.RuleEntry<[]>;
23273
23291
  /**
23274
23292
  * Disallow empty files.
23275
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-empty-file.md
23293
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-empty-file.md
23276
23294
  */
23277
23295
  "unicorn/no-empty-file"?: Linter.RuleEntry<[]>;
23278
23296
  /**
23279
23297
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
23280
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-for-loop.md
23298
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-for-loop.md
23281
23299
  */
23282
23300
  "unicorn/no-for-loop"?: Linter.RuleEntry<[]>;
23283
23301
  /**
23284
23302
  * Enforce the use of Unicode escapes instead of hexadecimal escapes.
23285
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-hex-escape.md
23303
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-hex-escape.md
23286
23304
  */
23287
23305
  "unicorn/no-hex-escape"?: Linter.RuleEntry<[]>;
23288
23306
  /**
23289
23307
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
23290
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/deprecated-rules.md#no-instanceof-array
23308
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/deprecated-rules.md#no-instanceof-array
23291
23309
  * @deprecated
23292
23310
  */
23293
23311
  "unicorn/no-instanceof-array"?: Linter.RuleEntry<[]>;
23294
23312
  /**
23295
23313
  * Disallow `instanceof` with built-in objects
23296
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-instanceof-builtins.md
23314
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-instanceof-builtins.md
23297
23315
  */
23298
23316
  "unicorn/no-instanceof-builtins"?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
23299
23317
  /**
23300
23318
  * Disallow invalid options in `fetch()` and `new Request()`.
23301
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-invalid-fetch-options.md
23319
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-invalid-fetch-options.md
23302
23320
  */
23303
23321
  "unicorn/no-invalid-fetch-options"?: Linter.RuleEntry<[]>;
23304
23322
  /**
23305
23323
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
23306
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-invalid-remove-event-listener.md
23324
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-invalid-remove-event-listener.md
23307
23325
  */
23308
23326
  "unicorn/no-invalid-remove-event-listener"?: Linter.RuleEntry<[]>;
23309
23327
  /**
23310
23328
  * Disallow identifiers starting with `new` or `class`.
23311
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-keyword-prefix.md
23329
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-keyword-prefix.md
23312
23330
  */
23313
23331
  "unicorn/no-keyword-prefix"?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
23314
23332
  /**
23315
- * Disallow using `.length` as the `end` argument of `{Array,String,TypedArray}#slice()`.
23316
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-length-as-slice-end.md
23333
+ * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
23334
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/deprecated-rules.md#no-length-as-slice-end
23335
+ * @deprecated
23317
23336
  */
23318
23337
  "unicorn/no-length-as-slice-end"?: Linter.RuleEntry<[]>;
23319
23338
  /**
23320
23339
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
23321
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-lonely-if.md
23340
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-lonely-if.md
23322
23341
  */
23323
23342
  "unicorn/no-lonely-if"?: Linter.RuleEntry<[]>;
23324
23343
  /**
23325
23344
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
23326
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-magic-array-flat-depth.md
23345
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-magic-array-flat-depth.md
23327
23346
  */
23328
23347
  "unicorn/no-magic-array-flat-depth"?: Linter.RuleEntry<[]>;
23329
23348
  /**
23330
23349
  * Disallow named usage of default import and export.
23331
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-named-default.md
23350
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-named-default.md
23332
23351
  */
23333
23352
  "unicorn/no-named-default"?: Linter.RuleEntry<[]>;
23334
23353
  /**
23335
23354
  * Disallow negated conditions.
23336
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-negated-condition.md
23355
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-negated-condition.md
23337
23356
  */
23338
23357
  "unicorn/no-negated-condition"?: Linter.RuleEntry<[]>;
23339
23358
  /**
23340
23359
  * Disallow negated expression in equality check.
23341
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-negation-in-equality-check.md
23360
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-negation-in-equality-check.md
23342
23361
  */
23343
23362
  "unicorn/no-negation-in-equality-check"?: Linter.RuleEntry<[]>;
23344
23363
  /**
23345
23364
  * Disallow nested ternary expressions.
23346
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-nested-ternary.md
23365
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-nested-ternary.md
23347
23366
  */
23348
23367
  "unicorn/no-nested-ternary"?: Linter.RuleEntry<[]>;
23349
23368
  /**
23350
23369
  * Disallow `new Array()`.
23351
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-new-array.md
23370
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-new-array.md
23352
23371
  */
23353
23372
  "unicorn/no-new-array"?: Linter.RuleEntry<[]>;
23354
23373
  /**
23355
23374
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
23356
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-new-buffer.md
23375
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-new-buffer.md
23357
23376
  */
23358
23377
  "unicorn/no-new-buffer"?: Linter.RuleEntry<[]>;
23359
23378
  /**
23360
23379
  * Disallow the use of the `null` literal.
23361
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-null.md
23380
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-null.md
23362
23381
  */
23363
23382
  "unicorn/no-null"?: Linter.RuleEntry<UnicornNoNull>;
23364
23383
  /**
23365
23384
  * Disallow the use of objects as default parameters.
23366
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-object-as-default-parameter.md
23385
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-object-as-default-parameter.md
23367
23386
  */
23368
23387
  "unicorn/no-object-as-default-parameter"?: Linter.RuleEntry<[]>;
23369
23388
  /**
23370
23389
  * Disallow `process.exit()`.
23371
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-process-exit.md
23390
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-process-exit.md
23372
23391
  */
23373
23392
  "unicorn/no-process-exit"?: Linter.RuleEntry<[]>;
23374
23393
  /**
23375
23394
  * Disallow passing single-element arrays to `Promise` methods.
23376
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-single-promise-in-promise-methods.md
23395
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-single-promise-in-promise-methods.md
23377
23396
  */
23378
23397
  "unicorn/no-single-promise-in-promise-methods"?: Linter.RuleEntry<[]>;
23379
23398
  /**
23380
23399
  * Disallow classes that only have static members.
23381
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-static-only-class.md
23400
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-static-only-class.md
23382
23401
  */
23383
23402
  "unicorn/no-static-only-class"?: Linter.RuleEntry<[]>;
23384
23403
  /**
23385
23404
  * Disallow `then` property.
23386
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-thenable.md
23405
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-thenable.md
23387
23406
  */
23388
23407
  "unicorn/no-thenable"?: Linter.RuleEntry<[]>;
23389
23408
  /**
23390
23409
  * Disallow assigning `this` to a variable.
23391
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-this-assignment.md
23410
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-this-assignment.md
23392
23411
  */
23393
23412
  "unicorn/no-this-assignment"?: Linter.RuleEntry<[]>;
23394
23413
  /**
23395
23414
  * Disallow comparing `undefined` using `typeof`.
23396
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-typeof-undefined.md
23415
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-typeof-undefined.md
23397
23416
  */
23398
23417
  "unicorn/no-typeof-undefined"?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
23418
+ /**
23419
+ * Disallow using `1` as the `depth` argument of `Array#flat()`.
23420
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unnecessary-array-flat-depth.md
23421
+ */
23422
+ "unicorn/no-unnecessary-array-flat-depth"?: Linter.RuleEntry<[]>;
23423
+ /**
23424
+ * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
23425
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unnecessary-array-splice-count.md
23426
+ */
23427
+ "unicorn/no-unnecessary-array-splice-count"?: Linter.RuleEntry<[]>;
23399
23428
  /**
23400
23429
  * Disallow awaiting non-promise values.
23401
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-unnecessary-await.md
23430
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unnecessary-await.md
23402
23431
  */
23403
23432
  "unicorn/no-unnecessary-await"?: Linter.RuleEntry<[]>;
23404
23433
  /**
23405
23434
  * Enforce the use of built-in methods instead of unnecessary polyfills.
23406
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-unnecessary-polyfills.md
23435
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unnecessary-polyfills.md
23407
23436
  */
23408
23437
  "unicorn/no-unnecessary-polyfills"?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
23438
+ /**
23439
+ * Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
23440
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unnecessary-slice-end.md
23441
+ */
23442
+ "unicorn/no-unnecessary-slice-end"?: Linter.RuleEntry<[]>;
23409
23443
  /**
23410
23444
  * Disallow unreadable array destructuring.
23411
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-unreadable-array-destructuring.md
23445
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unreadable-array-destructuring.md
23412
23446
  */
23413
23447
  "unicorn/no-unreadable-array-destructuring"?: Linter.RuleEntry<[]>;
23414
23448
  /**
23415
23449
  * Disallow unreadable IIFEs.
23416
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-unreadable-iife.md
23450
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unreadable-iife.md
23417
23451
  */
23418
23452
  "unicorn/no-unreadable-iife"?: Linter.RuleEntry<[]>;
23419
23453
  /**
23420
23454
  * Disallow unused object properties.
23421
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-unused-properties.md
23455
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unused-properties.md
23422
23456
  */
23423
23457
  "unicorn/no-unused-properties"?: Linter.RuleEntry<[]>;
23424
23458
  /**
23425
23459
  * Disallow useless fallback when spreading in object literals.
23426
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-useless-fallback-in-spread.md
23460
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-fallback-in-spread.md
23427
23461
  */
23428
23462
  "unicorn/no-useless-fallback-in-spread"?: Linter.RuleEntry<[]>;
23429
23463
  /**
23430
23464
  * Disallow useless array length check.
23431
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-useless-length-check.md
23465
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-length-check.md
23432
23466
  */
23433
23467
  "unicorn/no-useless-length-check"?: Linter.RuleEntry<[]>;
23434
23468
  /**
23435
23469
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
23436
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-useless-promise-resolve-reject.md
23470
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-promise-resolve-reject.md
23437
23471
  */
23438
23472
  "unicorn/no-useless-promise-resolve-reject"?: Linter.RuleEntry<[]>;
23439
23473
  /**
23440
23474
  * Disallow unnecessary spread.
23441
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-useless-spread.md
23475
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-spread.md
23442
23476
  */
23443
23477
  "unicorn/no-useless-spread"?: Linter.RuleEntry<[]>;
23444
23478
  /**
23445
23479
  * Disallow useless case in switch statements.
23446
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-useless-switch-case.md
23480
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-switch-case.md
23447
23481
  */
23448
23482
  "unicorn/no-useless-switch-case"?: Linter.RuleEntry<[]>;
23449
23483
  /**
23450
23484
  * Disallow useless `undefined`.
23451
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-useless-undefined.md
23485
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-undefined.md
23452
23486
  */
23453
23487
  "unicorn/no-useless-undefined"?: Linter.RuleEntry<UnicornNoUselessUndefined>;
23454
23488
  /**
23455
23489
  * Disallow number literals with zero fractions or dangling dots.
23456
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-zero-fractions.md
23490
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-zero-fractions.md
23457
23491
  */
23458
23492
  "unicorn/no-zero-fractions"?: Linter.RuleEntry<[]>;
23459
23493
  /**
23460
23494
  * Enforce proper case for numeric literals.
23461
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/number-literal-case.md
23495
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/number-literal-case.md
23462
23496
  */
23463
23497
  "unicorn/number-literal-case"?: Linter.RuleEntry<UnicornNumberLiteralCase>;
23464
23498
  /**
23465
23499
  * Enforce the style of numeric separators by correctly grouping digits.
23466
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/numeric-separators-style.md
23500
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/numeric-separators-style.md
23467
23501
  */
23468
23502
  "unicorn/numeric-separators-style"?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
23469
23503
  /**
23470
23504
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
23471
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-add-event-listener.md
23505
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-add-event-listener.md
23472
23506
  */
23473
23507
  "unicorn/prefer-add-event-listener"?: Linter.RuleEntry<UnicornPreferAddEventListener>;
23474
23508
  /**
23475
23509
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
23476
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-array-find.md
23510
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-array-find.md
23477
23511
  */
23478
23512
  "unicorn/prefer-array-find"?: Linter.RuleEntry<UnicornPreferArrayFind>;
23479
23513
  /**
23480
23514
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
23481
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-array-flat.md
23515
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-array-flat.md
23482
23516
  */
23483
23517
  "unicorn/prefer-array-flat"?: Linter.RuleEntry<UnicornPreferArrayFlat>;
23484
23518
  /**
23485
23519
  * Prefer `.flatMap(…)` over `.map(…).flat()`.
23486
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-array-flat-map.md
23520
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-array-flat-map.md
23487
23521
  */
23488
23522
  "unicorn/prefer-array-flat-map"?: Linter.RuleEntry<[]>;
23489
23523
  /**
23490
23524
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
23491
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-array-index-of.md
23525
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-array-index-of.md
23492
23526
  */
23493
23527
  "unicorn/prefer-array-index-of"?: Linter.RuleEntry<[]>;
23494
23528
  /**
23495
23529
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
23496
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-array-some.md
23530
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-array-some.md
23497
23531
  */
23498
23532
  "unicorn/prefer-array-some"?: Linter.RuleEntry<[]>;
23499
23533
  /**
23500
23534
  * Prefer `.at()` method for index access and `String#charAt()`.
23501
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-at.md
23535
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-at.md
23502
23536
  */
23503
23537
  "unicorn/prefer-at"?: Linter.RuleEntry<UnicornPreferAt>;
23504
23538
  /**
23505
23539
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
23506
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-blob-reading-methods.md
23540
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-blob-reading-methods.md
23507
23541
  */
23508
23542
  "unicorn/prefer-blob-reading-methods"?: Linter.RuleEntry<[]>;
23509
23543
  /**
23510
23544
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
23511
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-code-point.md
23545
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-code-point.md
23512
23546
  */
23513
23547
  "unicorn/prefer-code-point"?: Linter.RuleEntry<[]>;
23514
23548
  /**
23515
23549
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
23516
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-date-now.md
23550
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-date-now.md
23517
23551
  */
23518
23552
  "unicorn/prefer-date-now"?: Linter.RuleEntry<[]>;
23519
23553
  /**
23520
23554
  * Prefer default parameters over reassignment.
23521
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-default-parameters.md
23555
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-default-parameters.md
23522
23556
  */
23523
23557
  "unicorn/prefer-default-parameters"?: Linter.RuleEntry<[]>;
23524
23558
  /**
23525
23559
  * Prefer `Node#append()` over `Node#appendChild()`.
23526
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-dom-node-append.md
23560
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-dom-node-append.md
23527
23561
  */
23528
23562
  "unicorn/prefer-dom-node-append"?: Linter.RuleEntry<[]>;
23529
23563
  /**
23530
23564
  * Prefer using `.dataset` on DOM elements over calling attribute methods.
23531
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-dom-node-dataset.md
23565
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-dom-node-dataset.md
23532
23566
  */
23533
23567
  "unicorn/prefer-dom-node-dataset"?: Linter.RuleEntry<[]>;
23534
23568
  /**
23535
23569
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
23536
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-dom-node-remove.md
23570
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-dom-node-remove.md
23537
23571
  */
23538
23572
  "unicorn/prefer-dom-node-remove"?: Linter.RuleEntry<[]>;
23539
23573
  /**
23540
23574
  * Prefer `.textContent` over `.innerText`.
23541
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-dom-node-text-content.md
23575
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-dom-node-text-content.md
23542
23576
  */
23543
23577
  "unicorn/prefer-dom-node-text-content"?: Linter.RuleEntry<[]>;
23544
23578
  /**
23545
23579
  * Prefer `EventTarget` over `EventEmitter`.
23546
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-event-target.md
23580
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-event-target.md
23547
23581
  */
23548
23582
  "unicorn/prefer-event-target"?: Linter.RuleEntry<[]>;
23549
23583
  /**
23550
23584
  * Prefer `export…from` when re-exporting.
23551
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-export-from.md
23585
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-export-from.md
23552
23586
  */
23553
23587
  "unicorn/prefer-export-from"?: Linter.RuleEntry<UnicornPreferExportFrom>;
23554
23588
  /**
23555
23589
  * Prefer `globalThis` over `window`, `self`, and `global`.
23556
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-global-this.md
23590
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-global-this.md
23557
23591
  */
23558
23592
  "unicorn/prefer-global-this"?: Linter.RuleEntry<[]>;
23593
+ /**
23594
+ * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
23595
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-import-meta-properties.md
23596
+ */
23597
+ "unicorn/prefer-import-meta-properties"?: Linter.RuleEntry<[]>;
23559
23598
  /**
23560
23599
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
23561
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-includes.md
23600
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-includes.md
23562
23601
  */
23563
23602
  "unicorn/prefer-includes"?: Linter.RuleEntry<[]>;
23564
23603
  /**
23565
23604
  * Prefer reading a JSON file as a buffer.
23566
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-json-parse-buffer.md
23605
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-json-parse-buffer.md
23567
23606
  */
23568
23607
  "unicorn/prefer-json-parse-buffer"?: Linter.RuleEntry<[]>;
23569
23608
  /**
23570
23609
  * Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
23571
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-keyboard-event-key.md
23610
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-keyboard-event-key.md
23572
23611
  */
23573
23612
  "unicorn/prefer-keyboard-event-key"?: Linter.RuleEntry<[]>;
23574
23613
  /**
23575
23614
  * Prefer using a logical operator over a ternary.
23576
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-logical-operator-over-ternary.md
23615
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-logical-operator-over-ternary.md
23577
23616
  */
23578
23617
  "unicorn/prefer-logical-operator-over-ternary"?: Linter.RuleEntry<[]>;
23579
23618
  /**
23580
23619
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
23581
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-math-min-max.md
23620
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-math-min-max.md
23582
23621
  */
23583
23622
  "unicorn/prefer-math-min-max"?: Linter.RuleEntry<[]>;
23584
23623
  /**
23585
23624
  * Enforce the use of `Math.trunc` instead of bitwise operators.
23586
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-math-trunc.md
23625
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-math-trunc.md
23587
23626
  */
23588
23627
  "unicorn/prefer-math-trunc"?: Linter.RuleEntry<[]>;
23589
23628
  /**
23590
23629
  * Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
23591
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-modern-dom-apis.md
23630
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-modern-dom-apis.md
23592
23631
  */
23593
23632
  "unicorn/prefer-modern-dom-apis"?: Linter.RuleEntry<[]>;
23594
23633
  /**
23595
23634
  * Prefer modern `Math` APIs over legacy patterns.
23596
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-modern-math-apis.md
23635
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-modern-math-apis.md
23597
23636
  */
23598
23637
  "unicorn/prefer-modern-math-apis"?: Linter.RuleEntry<[]>;
23599
23638
  /**
23600
23639
  * Prefer JavaScript modules (ESM) over CommonJS.
23601
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-module.md
23640
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-module.md
23602
23641
  */
23603
23642
  "unicorn/prefer-module"?: Linter.RuleEntry<[]>;
23604
23643
  /**
23605
23644
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
23606
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-native-coercion-functions.md
23645
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-native-coercion-functions.md
23607
23646
  */
23608
23647
  "unicorn/prefer-native-coercion-functions"?: Linter.RuleEntry<[]>;
23609
23648
  /**
23610
23649
  * Prefer negative index over `.length - index` when possible.
23611
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-negative-index.md
23650
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-negative-index.md
23612
23651
  */
23613
23652
  "unicorn/prefer-negative-index"?: Linter.RuleEntry<[]>;
23614
23653
  /**
23615
23654
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
23616
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-node-protocol.md
23655
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-node-protocol.md
23617
23656
  */
23618
23657
  "unicorn/prefer-node-protocol"?: Linter.RuleEntry<[]>;
23619
23658
  /**
23620
23659
  * Prefer `Number` static properties over global ones.
23621
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-number-properties.md
23660
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-number-properties.md
23622
23661
  */
23623
23662
  "unicorn/prefer-number-properties"?: Linter.RuleEntry<UnicornPreferNumberProperties>;
23624
23663
  /**
23625
23664
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
23626
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-object-from-entries.md
23665
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-object-from-entries.md
23627
23666
  */
23628
23667
  "unicorn/prefer-object-from-entries"?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
23629
23668
  /**
23630
23669
  * Prefer omitting the `catch` binding parameter.
23631
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-optional-catch-binding.md
23670
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-optional-catch-binding.md
23632
23671
  */
23633
23672
  "unicorn/prefer-optional-catch-binding"?: Linter.RuleEntry<[]>;
23634
23673
  /**
23635
23674
  * Prefer borrowing methods from the prototype instead of the instance.
23636
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-prototype-methods.md
23675
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-prototype-methods.md
23637
23676
  */
23638
23677
  "unicorn/prefer-prototype-methods"?: Linter.RuleEntry<[]>;
23639
23678
  /**
23640
23679
  * Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
23641
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-query-selector.md
23680
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-query-selector.md
23642
23681
  */
23643
23682
  "unicorn/prefer-query-selector"?: Linter.RuleEntry<[]>;
23644
23683
  /**
23645
23684
  * Prefer `Reflect.apply()` over `Function#apply()`.
23646
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-reflect-apply.md
23685
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-reflect-apply.md
23647
23686
  */
23648
23687
  "unicorn/prefer-reflect-apply"?: Linter.RuleEntry<[]>;
23649
23688
  /**
23650
23689
  * Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
23651
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-regexp-test.md
23690
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-regexp-test.md
23652
23691
  */
23653
23692
  "unicorn/prefer-regexp-test"?: Linter.RuleEntry<[]>;
23654
23693
  /**
23655
23694
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
23656
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-set-has.md
23695
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-set-has.md
23657
23696
  */
23658
23697
  "unicorn/prefer-set-has"?: Linter.RuleEntry<[]>;
23659
23698
  /**
23660
23699
  * Prefer using `Set#size` instead of `Array#length`.
23661
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-set-size.md
23700
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-set-size.md
23662
23701
  */
23663
23702
  "unicorn/prefer-set-size"?: Linter.RuleEntry<[]>;
23703
+ /**
23704
+ * Enforce combining multiple `Array#push()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
23705
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-single-call.md
23706
+ */
23707
+ "unicorn/prefer-single-call"?: Linter.RuleEntry<UnicornPreferSingleCall>;
23664
23708
  /**
23665
23709
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
23666
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-spread.md
23710
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-spread.md
23667
23711
  */
23668
23712
  "unicorn/prefer-spread"?: Linter.RuleEntry<[]>;
23669
23713
  /**
23670
23714
  * Prefer using the `String.raw` tag to avoid escaping `\`.
23671
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-string-raw.md
23715
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-string-raw.md
23672
23716
  */
23673
23717
  "unicorn/prefer-string-raw"?: Linter.RuleEntry<[]>;
23674
23718
  /**
23675
23719
  * Prefer `String#replaceAll()` over regex searches with the global flag.
23676
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-string-replace-all.md
23720
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-string-replace-all.md
23677
23721
  */
23678
23722
  "unicorn/prefer-string-replace-all"?: Linter.RuleEntry<[]>;
23679
23723
  /**
23680
23724
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
23681
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-string-slice.md
23725
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-string-slice.md
23682
23726
  */
23683
23727
  "unicorn/prefer-string-slice"?: Linter.RuleEntry<[]>;
23684
23728
  /**
23685
23729
  * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
23686
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-string-starts-ends-with.md
23730
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-string-starts-ends-with.md
23687
23731
  */
23688
23732
  "unicorn/prefer-string-starts-ends-with"?: Linter.RuleEntry<[]>;
23689
23733
  /**
23690
23734
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
23691
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-string-trim-start-end.md
23735
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-string-trim-start-end.md
23692
23736
  */
23693
23737
  "unicorn/prefer-string-trim-start-end"?: Linter.RuleEntry<[]>;
23694
23738
  /**
23695
23739
  * Prefer using `structuredClone` to create a deep clone.
23696
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-structured-clone.md
23740
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-structured-clone.md
23697
23741
  */
23698
23742
  "unicorn/prefer-structured-clone"?: Linter.RuleEntry<UnicornPreferStructuredClone>;
23699
23743
  /**
23700
23744
  * Prefer `switch` over multiple `else-if`.
23701
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-switch.md
23745
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-switch.md
23702
23746
  */
23703
23747
  "unicorn/prefer-switch"?: Linter.RuleEntry<UnicornPreferSwitch>;
23704
23748
  /**
23705
23749
  * Prefer ternary expressions over simple `if-else` statements.
23706
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-ternary.md
23750
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-ternary.md
23707
23751
  */
23708
23752
  "unicorn/prefer-ternary"?: Linter.RuleEntry<UnicornPreferTernary>;
23709
23753
  /**
23710
23754
  * Prefer top-level await over top-level promises and async function calls.
23711
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-top-level-await.md
23755
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-top-level-await.md
23712
23756
  */
23713
23757
  "unicorn/prefer-top-level-await"?: Linter.RuleEntry<[]>;
23714
23758
  /**
23715
23759
  * Enforce throwing `TypeError` in type checking conditions.
23716
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-type-error.md
23760
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-type-error.md
23717
23761
  */
23718
23762
  "unicorn/prefer-type-error"?: Linter.RuleEntry<[]>;
23719
23763
  /**
23720
23764
  * Prevent abbreviations.
23721
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prevent-abbreviations.md
23765
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prevent-abbreviations.md
23722
23766
  */
23723
23767
  "unicorn/prevent-abbreviations"?: Linter.RuleEntry<UnicornPreventAbbreviations>;
23724
23768
  /**
23725
23769
  * Enforce consistent relative URL style.
23726
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/relative-url-style.md
23770
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/relative-url-style.md
23727
23771
  */
23728
23772
  "unicorn/relative-url-style"?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
23729
23773
  /**
23730
23774
  * Enforce using the separator argument with `Array#join()`.
23731
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/require-array-join-separator.md
23775
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/require-array-join-separator.md
23732
23776
  */
23733
23777
  "unicorn/require-array-join-separator"?: Linter.RuleEntry<[]>;
23734
23778
  /**
23735
23779
  * Enforce using the digits argument with `Number#toFixed()`.
23736
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/require-number-to-fixed-digits-argument.md
23780
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/require-number-to-fixed-digits-argument.md
23737
23781
  */
23738
23782
  "unicorn/require-number-to-fixed-digits-argument"?: Linter.RuleEntry<[]>;
23739
23783
  /**
23740
23784
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
23741
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/require-post-message-target-origin.md
23785
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/require-post-message-target-origin.md
23742
23786
  */
23743
23787
  "unicorn/require-post-message-target-origin"?: Linter.RuleEntry<[]>;
23744
23788
  /**
23745
23789
  * Enforce better string content.
23746
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/string-content.md
23790
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/string-content.md
23747
23791
  */
23748
23792
  "unicorn/string-content"?: Linter.RuleEntry<UnicornStringContent>;
23749
23793
  /**
23750
23794
  * Enforce consistent brace style for `case` clauses.
23751
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/switch-case-braces.md
23795
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/switch-case-braces.md
23752
23796
  */
23753
23797
  "unicorn/switch-case-braces"?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
23754
23798
  /**
23755
23799
  * Fix whitespace-insensitive template indentation.
23756
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/template-indent.md
23800
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/template-indent.md
23757
23801
  */
23758
23802
  "unicorn/template-indent"?: Linter.RuleEntry<UnicornTemplateIndent>;
23759
23803
  /**
23760
23804
  * Enforce consistent case for text encoding identifiers.
23761
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/text-encoding-identifier-case.md
23805
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/text-encoding-identifier-case.md
23762
23806
  */
23763
23807
  "unicorn/text-encoding-identifier-case"?: Linter.RuleEntry<[]>;
23764
23808
  /**
23765
23809
  * Require `new` when creating an error.
23766
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/throw-new-error.md
23810
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/throw-new-error.md
23767
23811
  */
23768
23812
  "unicorn/throw-new-error"?: Linter.RuleEntry<[]>;
23769
23813
  }
@@ -23858,14 +23902,6 @@ interface _UnicornImportStyle_ModuleStyles {
23858
23902
  interface _UnicornImportStyle_BooleanObject {
23859
23903
  [k: string]: boolean | undefined;
23860
23904
  }
23861
- // ----- unicorn/no-array-push-push -----
23862
- type UnicornNoArrayPushPush =
23863
- | []
23864
- | [
23865
- {
23866
- ignore?: unknown[];
23867
- },
23868
- ];
23869
23905
  // ----- unicorn/no-array-reduce -----
23870
23906
  type UnicornNoArrayReduce =
23871
23907
  | []
@@ -24027,6 +24063,14 @@ type UnicornPreferObjectFromEntries =
24027
24063
  functions?: unknown[];
24028
24064
  },
24029
24065
  ];
24066
+ // ----- unicorn/prefer-single-call -----
24067
+ type UnicornPreferSingleCall =
24068
+ | []
24069
+ | [
24070
+ {
24071
+ ignore?: unknown[];
24072
+ },
24073
+ ];
24030
24074
  // ----- unicorn/prefer-structured-clone -----
24031
24075
  type UnicornPreferStructuredClone =
24032
24076
  | []
@@ -24889,7 +24933,7 @@ declare function jsse(options?: OptionsConfig & TypedFlatConfigItem, ...userConf
24889
24933
  declare function defineConfig(options?: OptionsConfig & TypedFlatConfigItem, ...userConfigs: (TypedFlatConfigItem | TypedFlatConfigItem[])[]): Promise<TypedFlatConfigItem[]>;
24890
24934
  type DefineConfig = typeof defineConfig;
24891
24935
 
24892
- declare const VERSION = "0.3.5";
24936
+ declare const VERSION = "0.3.7";
24893
24937
 
24894
24938
  declare const GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
24895
24939
  declare const GLOB_JS_SRC_EXT = "?([cm])js?(x)";