@ntnyq/eslint-config 5.6.0 → 5.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -494,8 +494,11 @@ declare const configCommand: (options?: ConfigCommandOptions) => TypedConfigItem
494
494
  //#region src/configs/ignores.d.ts
495
495
  /**
496
496
  * Options type for {@link configIgnores}
497
+ *
498
+ * Passing an array to extend the built-in ignores
499
+ * Passing a function to modify the built-in ignores
497
500
  */
498
- type ConfigIgnoresOptions = string[];
501
+ type ConfigIgnoresOptions = string[] | ((ignores: string[]) => string[]);
499
502
  /**
500
503
  * Config for ignore files from linting
501
504
  *
@@ -694,6 +697,11 @@ type ConfigJavaScriptOptions = OptionsOverrides & {
694
697
  * @default false
695
698
  */
696
699
  strict?: boolean;
700
+ /**
701
+ * The ECMAScript version of the code being linted
702
+ * @default 'latest'
703
+ */
704
+ ecmaVersion?: OptionsShareable['ecmaVersion'];
697
705
  };
698
706
  /**
699
707
  * Config for JavaScript
@@ -710,7 +718,7 @@ declare const configJSX: () => TypedConfigItem[];
710
718
  /**
711
719
  * Options type of {@link configTypeScript}
712
720
  */
713
- type ConfigTypeScriptOptions = OptionsFiles & OptionsOverrides & Pick<OptionsShareable, 'extraFileExtensions'> & {
721
+ type ConfigTypeScriptOptions = OptionsFiles & OptionsOverrides & Pick<OptionsShareable, 'extraFileExtensions' | 'ecmaVersion'> & {
714
722
  /**
715
723
  * Glob patterns for files that should be type aware.
716
724
  * @default ['**\/*.{ts,tsx}']
@@ -1084,6 +1092,11 @@ interface RuleOptions {
1084
1092
  * @see https://html-eslint.org/docs/rules/no-restricted-attrs
1085
1093
  */
1086
1094
  '@html-eslint/no-restricted-attrs'?: Linter.RuleEntry<HtmlEslintNoRestrictedAttrs>;
1095
+ /**
1096
+ * Disallow specified tags
1097
+ * @see https://html-eslint.org/docs/rules/no-restricted-tags
1098
+ */
1099
+ '@html-eslint/no-restricted-tags'?: Linter.RuleEntry<HtmlEslintNoRestrictedTags>;
1087
1100
  /**
1088
1101
  * Enforce to omit type attributes for style sheets and scripts
1089
1102
  * @see https://html-eslint.org/docs/rules/no-script-style-type
@@ -1626,7 +1639,7 @@ interface RuleOptions {
1626
1639
  * Disallow member access on a value with type `any`
1627
1640
  * @see https://typescript-eslint.io/rules/no-unsafe-member-access
1628
1641
  */
1629
- '@typescript-eslint/no-unsafe-member-access'?: Linter.RuleEntry<[]>;
1642
+ '@typescript-eslint/no-unsafe-member-access'?: Linter.RuleEntry<TypescriptEslintNoUnsafeMemberAccess>;
1630
1643
  /**
1631
1644
  * Disallow returning a value with type `any` from a function
1632
1645
  * @see https://typescript-eslint.io/rules/no-unsafe-return
@@ -2191,6 +2204,11 @@ interface RuleOptions {
2191
2204
  * @see https://ota-meshi.github.io/eslint-plugin-astro/rules/no-set-text-directive/
2192
2205
  */
2193
2206
  'astro/no-set-text-directive'?: Linter.RuleEntry<[]>;
2207
+ /**
2208
+ * disallow inline `<script>` without `src` to encourage CSP-safe patterns
2209
+ * @see https://ota-meshi.github.io/eslint-plugin-astro/rules/no-unsafe-inline-scripts/
2210
+ */
2211
+ 'astro/no-unsafe-inline-scripts'?: Linter.RuleEntry<AstroNoUnsafeInlineScripts>;
2194
2212
  /**
2195
2213
  * disallow selectors defined in `style` tag that don't use in HTML
2196
2214
  * @see https://ota-meshi.github.io/eslint-plugin-astro/rules/no-unused-css-selector/
@@ -2525,6 +2543,11 @@ interface RuleOptions {
2525
2543
  * @see https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/require-meta-type.md
2526
2544
  */
2527
2545
  'eslint-plugin/require-meta-type'?: Linter.RuleEntry<[]>;
2546
+ /**
2547
+ * require test cases to have a `name` property under certain conditions
2548
+ * @see https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/require-test-case-name.md
2549
+ */
2550
+ 'eslint-plugin/require-test-case-name'?: Linter.RuleEntry<EslintPluginRequireTestCaseName>;
2528
2551
  /**
2529
2552
  * require the properties of a test case to be placed in a consistent order
2530
2553
  * @see https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/test-case-property-ordering.md
@@ -2535,19 +2558,16 @@ interface RuleOptions {
2535
2558
  * @see https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/test-case-shorthand-strings.md
2536
2559
  */
2537
2560
  'eslint-plugin/test-case-shorthand-strings'?: Linter.RuleEntry<EslintPluginTestCaseShorthandStrings>;
2561
+ /**
2562
+ * enforce that all test cases with names have unique names
2563
+ * @see https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/unique-test-case-names.md
2564
+ */
2565
+ 'eslint-plugin/unique-test-case-names'?: Linter.RuleEntry<[]>;
2538
2566
  /**
2539
2567
  * Enforce `for` loop update clause moving the counter in the right direction
2540
2568
  * @see https://eslint.org/docs/latest/rules/for-direction
2541
2569
  */
2542
2570
  'for-direction'?: Linter.RuleEntry<[]>;
2543
- /**
2544
- * Use dprint to format code
2545
- */
2546
- 'format/dprint'?: Linter.RuleEntry<FormatDprint>;
2547
- /**
2548
- * Use Prettier to format code
2549
- */
2550
- 'format/prettier'?: Linter.RuleEntry<FormatPrettier>;
2551
2571
  /**
2552
2572
  * Require or disallow spacing between function identifiers and their invocations
2553
2573
  * @see https://eslint.org/docs/latest/rules/func-call-spacing
@@ -3039,6 +3059,11 @@ interface RuleOptions {
3039
3059
  * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/empty-tags.md#repos-sticky-header
3040
3060
  */
3041
3061
  'jsdoc/empty-tags'?: Linter.RuleEntry<JsdocEmptyTags>;
3062
+ /**
3063
+ * Reports use of JSDoc tags in non-tag positions (in the default "typescript" mode).
3064
+ * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/escape-inline-tags.md#repos-sticky-header
3065
+ */
3066
+ 'jsdoc/escape-inline-tags'?: Linter.RuleEntry<JsdocEscapeInlineTags>;
3042
3067
  /**
3043
3068
  * Prohibits use of `@implements` on non-constructor functions (to enforce the tag only being used on classes/constructors).
3044
3069
  * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/implements-on-classes.md#repos-sticky-header
@@ -3119,6 +3144,11 @@ interface RuleOptions {
3119
3144
  * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/no-undefined-types.md#repos-sticky-header
3120
3145
  */
3121
3146
  'jsdoc/no-undefined-types'?: Linter.RuleEntry<JsdocNoUndefinedTypes>;
3147
+ /**
3148
+ * Prefer `@import` tags to inline `import()` statements.
3149
+ * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/prefer-import-tag.md#repos-sticky-header
3150
+ */
3151
+ 'jsdoc/prefer-import-tag'?: Linter.RuleEntry<JsdocPreferImportTag>;
3122
3152
  /**
3123
3153
  * Reports use of `any` or `*` type
3124
3154
  * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/reject-any-type.md#repos-sticky-header
@@ -3244,6 +3274,11 @@ interface RuleOptions {
3244
3274
  * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-template.md#repos-sticky-header
3245
3275
  */
3246
3276
  'jsdoc/require-template'?: Linter.RuleEntry<JsdocRequireTemplate>;
3277
+ /**
3278
+ * Requires a description for `@template` tags
3279
+ * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-template-description.md#repos-sticky-header
3280
+ */
3281
+ 'jsdoc/require-template-description'?: Linter.RuleEntry<[]>;
3247
3282
  /**
3248
3283
  * Requires that throw statements are documented with `@throws` tags.
3249
3284
  * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-throws.md#repos-sticky-header
@@ -3294,6 +3329,26 @@ interface RuleOptions {
3294
3329
  * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/text-escaping.md#repos-sticky-header
3295
3330
  */
3296
3331
  'jsdoc/text-escaping'?: Linter.RuleEntry<JsdocTextEscaping>;
3332
+ /**
3333
+ * Prefers either function properties or method signatures
3334
+ * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/ts-method-signature-style.md#repos-sticky-header
3335
+ */
3336
+ 'jsdoc/ts-method-signature-style'?: Linter.RuleEntry<JsdocTsMethodSignatureStyle>;
3337
+ /**
3338
+ * Warns against use of the empty object type
3339
+ * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/ts-no-empty-object-type.md#repos-sticky-header
3340
+ */
3341
+ 'jsdoc/ts-no-empty-object-type'?: Linter.RuleEntry<[]>;
3342
+ /**
3343
+ * Catches unnecessary template expressions such as string expressions within a template literal.
3344
+ * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/ts-no-unnecessary-template-expression.md#repos-sticky-header
3345
+ */
3346
+ 'jsdoc/ts-no-unnecessary-template-expression'?: Linter.RuleEntry<JsdocTsNoUnnecessaryTemplateExpression>;
3347
+ /**
3348
+ * Prefers function types over call signatures when there are no other properties.
3349
+ * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/ts-prefer-function-type.md#repos-sticky-header
3350
+ */
3351
+ 'jsdoc/ts-prefer-function-type'?: Linter.RuleEntry<JsdocTsPreferFunctionType>;
3297
3352
  /**
3298
3353
  * Formats JSDoc type values.
3299
3354
  * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/type-formatting.md#repos-sticky-header
@@ -5021,6 +5076,11 @@ interface RuleOptions {
5021
5076
  * @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/yaml/yaml-no-unused-catalog-item.test.ts
5022
5077
  */
5023
5078
  'pnpm/yaml-no-unused-catalog-item'?: Linter.RuleEntry<[]>;
5079
+ /**
5080
+ * Ensure all package patterns in `pnpm-workspace.yaml` match at least one directory
5081
+ * @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/yaml/yaml-valid-packages.test.ts
5082
+ */
5083
+ 'pnpm/yaml-valid-packages'?: Linter.RuleEntry<[]>;
5024
5084
  /**
5025
5085
  * Require using arrow functions for callbacks
5026
5086
  * @see https://eslint.org/docs/latest/rules/prefer-arrow-callback
@@ -6173,710 +6233,725 @@ interface RuleOptions {
6173
6233
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>;
6174
6234
  /**
6175
6235
  * Improve regexes by making them shorter, consistent, and safer.
6176
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/better-regex.md
6236
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/better-regex.md
6177
6237
  */
6178
6238
  'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>;
6179
6239
  /**
6180
6240
  * Enforce a specific parameter name in catch clauses.
6181
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/catch-error-name.md
6241
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/catch-error-name.md
6182
6242
  */
6183
6243
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
6184
6244
  /**
6185
6245
  * Enforce consistent assertion style with `node:assert`.
6186
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/consistent-assert.md
6246
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-assert.md
6187
6247
  */
6188
6248
  'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
6189
6249
  /**
6190
6250
  * Prefer passing `Date` directly to the constructor when cloning.
6191
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/consistent-date-clone.md
6251
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-date-clone.md
6192
6252
  */
6193
6253
  'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
6194
6254
  /**
6195
6255
  * Use destructured variables over properties.
6196
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/consistent-destructuring.md
6256
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-destructuring.md
6197
6257
  */
6198
6258
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
6199
6259
  /**
6200
6260
  * Prefer consistent types when spreading a ternary in an array literal.
6201
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/consistent-empty-array-spread.md
6261
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-empty-array-spread.md
6202
6262
  */
6203
6263
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
6204
6264
  /**
6205
6265
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
6206
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/consistent-existence-index-check.md
6266
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-existence-index-check.md
6207
6267
  */
6208
6268
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
6209
6269
  /**
6210
6270
  * Move function definitions to the highest possible scope.
6211
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/consistent-function-scoping.md
6271
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-function-scoping.md
6212
6272
  */
6213
6273
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
6214
6274
  /**
6215
6275
  * Enforce correct `Error` subclassing.
6216
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/custom-error-definition.md
6276
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/custom-error-definition.md
6217
6277
  */
6218
6278
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
6219
6279
  /**
6220
6280
  * Enforce no spaces between braces.
6221
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/empty-brace-spaces.md
6281
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/empty-brace-spaces.md
6222
6282
  */
6223
6283
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
6224
6284
  /**
6225
6285
  * Enforce passing a `message` value when creating a built-in error.
6226
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/error-message.md
6286
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/error-message.md
6227
6287
  */
6228
6288
  'unicorn/error-message'?: Linter.RuleEntry<[]>;
6229
6289
  /**
6230
6290
  * Require escape sequences to use uppercase or lowercase values.
6231
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/escape-case.md
6291
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/escape-case.md
6232
6292
  */
6233
6293
  'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
6234
6294
  /**
6235
6295
  * Add expiration conditions to TODO comments.
6236
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/expiring-todo-comments.md
6296
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/expiring-todo-comments.md
6237
6297
  */
6238
6298
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
6239
6299
  /**
6240
6300
  * Enforce explicitly comparing the `length` or `size` property of a value.
6241
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/explicit-length-check.md
6301
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/explicit-length-check.md
6242
6302
  */
6243
6303
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
6244
6304
  /**
6245
6305
  * Enforce a case style for filenames.
6246
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/filename-case.md
6306
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/filename-case.md
6247
6307
  */
6248
6308
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
6249
6309
  /**
6250
6310
  * Enforce specific import styles per module.
6251
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/import-style.md
6311
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/import-style.md
6252
6312
  */
6253
6313
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
6254
6314
  /**
6255
6315
  * Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
6256
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/new-for-builtins.md
6316
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/new-for-builtins.md
6257
6317
  */
6258
6318
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
6259
6319
  /**
6260
6320
  * Enforce specifying rules to disable in `eslint-disable` comments.
6261
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-abusive-eslint-disable.md
6321
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-abusive-eslint-disable.md
6262
6322
  */
6263
6323
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
6264
6324
  /**
6265
6325
  * Disallow recursive access to `this` within getters and setters.
6266
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-accessor-recursion.md
6326
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-accessor-recursion.md
6267
6327
  */
6268
6328
  'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
6269
6329
  /**
6270
6330
  * Disallow anonymous functions and classes as the default export.
6271
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-anonymous-default-export.md
6331
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-anonymous-default-export.md
6272
6332
  */
6273
6333
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
6274
6334
  /**
6275
6335
  * Prevent passing a function reference directly to iterator methods.
6276
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-array-callback-reference.md
6336
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-callback-reference.md
6277
6337
  */
6278
6338
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>;
6279
6339
  /**
6280
6340
  * Prefer `for…of` over the `forEach` method.
6281
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-array-for-each.md
6341
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-for-each.md
6282
6342
  */
6283
6343
  'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>;
6284
6344
  /**
6285
6345
  * Disallow using the `this` argument in array methods.
6286
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-array-method-this-argument.md
6346
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-method-this-argument.md
6287
6347
  */
6288
6348
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
6289
6349
  /**
6290
6350
  * Replaced by `unicorn/prefer-single-call` which covers more cases.
6291
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/deprecated-rules.md#no-array-push-push
6351
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/deprecated-rules.md#no-array-push-push
6292
6352
  * @deprecated
6293
6353
  */
6294
6354
  'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
6295
6355
  /**
6296
6356
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
6297
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-array-reduce.md
6357
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-reduce.md
6298
6358
  */
6299
6359
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
6300
6360
  /**
6301
6361
  * Prefer `Array#toReversed()` over `Array#reverse()`.
6302
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-array-reverse.md
6362
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-reverse.md
6303
6363
  */
6304
6364
  'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
6305
6365
  /**
6306
6366
  * Prefer `Array#toSorted()` over `Array#sort()`.
6307
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-array-sort.md
6367
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-sort.md
6308
6368
  */
6309
6369
  'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>;
6310
6370
  /**
6311
6371
  * Disallow member access from await expression.
6312
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-await-expression-member.md
6372
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-await-expression-member.md
6313
6373
  */
6314
6374
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
6315
6375
  /**
6316
6376
  * Disallow using `await` in `Promise` method parameters.
6317
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-await-in-promise-methods.md
6377
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-await-in-promise-methods.md
6318
6378
  */
6319
6379
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
6320
6380
  /**
6321
6381
  * Do not use leading/trailing space between `console.log` parameters.
6322
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-console-spaces.md
6382
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-console-spaces.md
6323
6383
  */
6324
6384
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
6325
6385
  /**
6326
6386
  * Do not use `document.cookie` directly.
6327
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-document-cookie.md
6387
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-document-cookie.md
6328
6388
  */
6329
6389
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
6330
6390
  /**
6331
6391
  * Disallow empty files.
6332
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-empty-file.md
6392
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-empty-file.md
6333
6393
  */
6334
6394
  'unicorn/no-empty-file'?: Linter.RuleEntry<[]>;
6335
6395
  /**
6336
6396
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
6337
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-for-loop.md
6397
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-for-loop.md
6338
6398
  */
6339
6399
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
6340
6400
  /**
6341
6401
  * Enforce the use of Unicode escapes instead of hexadecimal escapes.
6342
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-hex-escape.md
6402
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-hex-escape.md
6343
6403
  */
6344
6404
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
6405
+ /**
6406
+ * Disallow immediate mutation after variable assignment.
6407
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-immediate-mutation.md
6408
+ */
6409
+ 'unicorn/no-immediate-mutation'?: Linter.RuleEntry<[]>;
6345
6410
  /**
6346
6411
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
6347
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/deprecated-rules.md#no-instanceof-array
6412
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/deprecated-rules.md#no-instanceof-array
6348
6413
  * @deprecated
6349
6414
  */
6350
6415
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
6351
6416
  /**
6352
6417
  * Disallow `instanceof` with built-in objects
6353
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-instanceof-builtins.md
6418
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-instanceof-builtins.md
6354
6419
  */
6355
6420
  'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
6356
6421
  /**
6357
6422
  * Disallow invalid options in `fetch()` and `new Request()`.
6358
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-invalid-fetch-options.md
6423
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-invalid-fetch-options.md
6359
6424
  */
6360
6425
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
6361
6426
  /**
6362
6427
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
6363
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-invalid-remove-event-listener.md
6428
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-invalid-remove-event-listener.md
6364
6429
  */
6365
6430
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
6366
6431
  /**
6367
6432
  * Disallow identifiers starting with `new` or `class`.
6368
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-keyword-prefix.md
6433
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-keyword-prefix.md
6369
6434
  */
6370
6435
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
6371
6436
  /**
6372
6437
  * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
6373
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/deprecated-rules.md#no-length-as-slice-end
6438
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/deprecated-rules.md#no-length-as-slice-end
6374
6439
  * @deprecated
6375
6440
  */
6376
6441
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
6377
6442
  /**
6378
6443
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
6379
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-lonely-if.md
6444
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-lonely-if.md
6380
6445
  */
6381
6446
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
6382
6447
  /**
6383
6448
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
6384
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-magic-array-flat-depth.md
6449
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-magic-array-flat-depth.md
6385
6450
  */
6386
6451
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
6387
6452
  /**
6388
6453
  * Disallow named usage of default import and export.
6389
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-named-default.md
6454
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-named-default.md
6390
6455
  */
6391
6456
  'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
6392
6457
  /**
6393
6458
  * Disallow negated conditions.
6394
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-negated-condition.md
6459
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-negated-condition.md
6395
6460
  */
6396
6461
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
6397
6462
  /**
6398
6463
  * Disallow negated expression in equality check.
6399
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-negation-in-equality-check.md
6464
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-negation-in-equality-check.md
6400
6465
  */
6401
6466
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
6402
6467
  /**
6403
6468
  * Disallow nested ternary expressions.
6404
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-nested-ternary.md
6469
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-nested-ternary.md
6405
6470
  */
6406
6471
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
6407
6472
  /**
6408
6473
  * Disallow `new Array()`.
6409
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-new-array.md
6474
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-new-array.md
6410
6475
  */
6411
6476
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
6412
6477
  /**
6413
6478
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
6414
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-new-buffer.md
6479
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-new-buffer.md
6415
6480
  */
6416
6481
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
6417
6482
  /**
6418
6483
  * Disallow the use of the `null` literal.
6419
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-null.md
6484
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-null.md
6420
6485
  */
6421
6486
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
6422
6487
  /**
6423
6488
  * Disallow the use of objects as default parameters.
6424
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-object-as-default-parameter.md
6489
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-object-as-default-parameter.md
6425
6490
  */
6426
6491
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
6427
6492
  /**
6428
6493
  * Disallow `process.exit()`.
6429
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-process-exit.md
6494
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-process-exit.md
6430
6495
  */
6431
6496
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
6432
6497
  /**
6433
6498
  * Disallow passing single-element arrays to `Promise` methods.
6434
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-single-promise-in-promise-methods.md
6499
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-single-promise-in-promise-methods.md
6435
6500
  */
6436
6501
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
6437
6502
  /**
6438
6503
  * Disallow classes that only have static members.
6439
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-static-only-class.md
6504
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-static-only-class.md
6440
6505
  */
6441
6506
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
6442
6507
  /**
6443
6508
  * Disallow `then` property.
6444
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-thenable.md
6509
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-thenable.md
6445
6510
  */
6446
6511
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
6447
6512
  /**
6448
6513
  * Disallow assigning `this` to a variable.
6449
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-this-assignment.md
6514
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-this-assignment.md
6450
6515
  */
6451
6516
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
6452
6517
  /**
6453
6518
  * Disallow comparing `undefined` using `typeof`.
6454
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-typeof-undefined.md
6519
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-typeof-undefined.md
6455
6520
  */
6456
6521
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
6457
6522
  /**
6458
6523
  * Disallow using `1` as the `depth` argument of `Array#flat()`.
6459
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unnecessary-array-flat-depth.md
6524
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-array-flat-depth.md
6460
6525
  */
6461
6526
  'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
6462
6527
  /**
6463
6528
  * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
6464
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unnecessary-array-splice-count.md
6529
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-array-splice-count.md
6465
6530
  */
6466
6531
  'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
6467
6532
  /**
6468
6533
  * Disallow awaiting non-promise values.
6469
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unnecessary-await.md
6534
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-await.md
6470
6535
  */
6471
6536
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
6472
6537
  /**
6473
6538
  * Enforce the use of built-in methods instead of unnecessary polyfills.
6474
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unnecessary-polyfills.md
6539
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-polyfills.md
6475
6540
  */
6476
6541
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
6477
6542
  /**
6478
6543
  * Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
6479
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unnecessary-slice-end.md
6544
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-slice-end.md
6480
6545
  */
6481
6546
  'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
6482
6547
  /**
6483
6548
  * Disallow unreadable array destructuring.
6484
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unreadable-array-destructuring.md
6549
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unreadable-array-destructuring.md
6485
6550
  */
6486
6551
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>;
6487
6552
  /**
6488
6553
  * Disallow unreadable IIFEs.
6489
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unreadable-iife.md
6554
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unreadable-iife.md
6490
6555
  */
6491
6556
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
6492
6557
  /**
6493
6558
  * Disallow unused object properties.
6494
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unused-properties.md
6559
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unused-properties.md
6495
6560
  */
6496
6561
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
6562
+ /**
6563
+ * Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
6564
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-collection-argument.md
6565
+ */
6566
+ 'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>;
6497
6567
  /**
6498
6568
  * Disallow unnecessary `Error.captureStackTrace(…)`.
6499
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-error-capture-stack-trace.md
6569
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-error-capture-stack-trace.md
6500
6570
  */
6501
6571
  'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
6502
6572
  /**
6503
6573
  * Disallow useless fallback when spreading in object literals.
6504
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-fallback-in-spread.md
6574
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-fallback-in-spread.md
6505
6575
  */
6506
6576
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
6507
6577
  /**
6508
6578
  * Disallow useless array length check.
6509
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-length-check.md
6579
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-length-check.md
6510
6580
  */
6511
6581
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
6512
6582
  /**
6513
6583
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
6514
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-promise-resolve-reject.md
6584
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-promise-resolve-reject.md
6515
6585
  */
6516
6586
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
6517
6587
  /**
6518
6588
  * Disallow unnecessary spread.
6519
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-spread.md
6589
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-spread.md
6520
6590
  */
6521
6591
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
6522
6592
  /**
6523
6593
  * Disallow useless case in switch statements.
6524
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-switch-case.md
6594
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-switch-case.md
6525
6595
  */
6526
6596
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
6527
6597
  /**
6528
6598
  * Disallow useless `undefined`.
6529
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-undefined.md
6599
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-undefined.md
6530
6600
  */
6531
6601
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
6532
6602
  /**
6533
6603
  * Disallow number literals with zero fractions or dangling dots.
6534
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-zero-fractions.md
6604
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-zero-fractions.md
6535
6605
  */
6536
6606
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
6537
6607
  /**
6538
6608
  * Enforce proper case for numeric literals.
6539
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/number-literal-case.md
6609
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/number-literal-case.md
6540
6610
  */
6541
6611
  'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
6542
6612
  /**
6543
6613
  * Enforce the style of numeric separators by correctly grouping digits.
6544
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/numeric-separators-style.md
6614
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/numeric-separators-style.md
6545
6615
  */
6546
6616
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
6547
6617
  /**
6548
6618
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
6549
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-add-event-listener.md
6619
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-add-event-listener.md
6550
6620
  */
6551
6621
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
6552
6622
  /**
6553
6623
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
6554
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-array-find.md
6624
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-find.md
6555
6625
  */
6556
6626
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
6557
6627
  /**
6558
6628
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
6559
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-array-flat.md
6629
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-flat.md
6560
6630
  */
6561
6631
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
6562
6632
  /**
6563
6633
  * Prefer `.flatMap(…)` over `.map(…).flat()`.
6564
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-array-flat-map.md
6634
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-flat-map.md
6565
6635
  */
6566
6636
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
6567
6637
  /**
6568
6638
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
6569
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-array-index-of.md
6639
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-index-of.md
6570
6640
  */
6571
6641
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
6572
6642
  /**
6573
6643
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
6574
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-array-some.md
6644
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-some.md
6575
6645
  */
6576
6646
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
6577
6647
  /**
6578
6648
  * Prefer `.at()` method for index access and `String#charAt()`.
6579
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-at.md
6649
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-at.md
6580
6650
  */
6581
6651
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
6582
6652
  /**
6583
6653
  * Prefer `BigInt` literals over the constructor.
6584
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-bigint-literals.md
6654
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-bigint-literals.md
6585
6655
  */
6586
6656
  'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>;
6587
6657
  /**
6588
6658
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
6589
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-blob-reading-methods.md
6659
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-blob-reading-methods.md
6590
6660
  */
6591
6661
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
6592
6662
  /**
6593
6663
  * Prefer class field declarations over `this` assignments in constructors.
6594
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-class-fields.md
6664
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-class-fields.md
6595
6665
  */
6596
6666
  'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
6597
6667
  /**
6598
6668
  * Prefer using `Element#classList.toggle()` to toggle class names.
6599
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-classlist-toggle.md
6669
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-classlist-toggle.md
6600
6670
  */
6601
6671
  'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>;
6602
6672
  /**
6603
6673
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
6604
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-code-point.md
6674
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-code-point.md
6605
6675
  */
6606
6676
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
6607
6677
  /**
6608
6678
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
6609
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-date-now.md
6679
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-date-now.md
6610
6680
  */
6611
6681
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
6612
6682
  /**
6613
6683
  * Prefer default parameters over reassignment.
6614
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-default-parameters.md
6684
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-default-parameters.md
6615
6685
  */
6616
6686
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
6617
6687
  /**
6618
6688
  * Prefer `Node#append()` over `Node#appendChild()`.
6619
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-dom-node-append.md
6689
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-append.md
6620
6690
  */
6621
6691
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
6622
6692
  /**
6623
6693
  * Prefer using `.dataset` on DOM elements over calling attribute methods.
6624
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-dom-node-dataset.md
6694
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-dataset.md
6625
6695
  */
6626
6696
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
6627
6697
  /**
6628
6698
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
6629
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-dom-node-remove.md
6699
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-remove.md
6630
6700
  */
6631
6701
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
6632
6702
  /**
6633
6703
  * Prefer `.textContent` over `.innerText`.
6634
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-dom-node-text-content.md
6704
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-text-content.md
6635
6705
  */
6636
6706
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
6637
6707
  /**
6638
6708
  * Prefer `EventTarget` over `EventEmitter`.
6639
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-event-target.md
6709
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-event-target.md
6640
6710
  */
6641
6711
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
6642
6712
  /**
6643
6713
  * Prefer `export…from` when re-exporting.
6644
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-export-from.md
6714
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-export-from.md
6645
6715
  */
6646
6716
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
6647
6717
  /**
6648
6718
  * Prefer `globalThis` over `window`, `self`, and `global`.
6649
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-global-this.md
6719
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-global-this.md
6650
6720
  */
6651
6721
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
6652
6722
  /**
6653
6723
  * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
6654
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-import-meta-properties.md
6724
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-import-meta-properties.md
6655
6725
  */
6656
6726
  'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
6657
6727
  /**
6658
6728
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
6659
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-includes.md
6729
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-includes.md
6660
6730
  */
6661
6731
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
6662
6732
  /**
6663
6733
  * Prefer reading a JSON file as a buffer.
6664
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-json-parse-buffer.md
6734
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-json-parse-buffer.md
6665
6735
  */
6666
6736
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
6667
6737
  /**
6668
6738
  * Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
6669
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-keyboard-event-key.md
6739
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-keyboard-event-key.md
6670
6740
  */
6671
6741
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
6672
6742
  /**
6673
6743
  * Prefer using a logical operator over a ternary.
6674
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-logical-operator-over-ternary.md
6744
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-logical-operator-over-ternary.md
6675
6745
  */
6676
6746
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
6677
6747
  /**
6678
6748
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
6679
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-math-min-max.md
6749
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-math-min-max.md
6680
6750
  */
6681
6751
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
6682
6752
  /**
6683
6753
  * Enforce the use of `Math.trunc` instead of bitwise operators.
6684
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-math-trunc.md
6754
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-math-trunc.md
6685
6755
  */
6686
6756
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
6687
6757
  /**
6688
6758
  * Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
6689
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-modern-dom-apis.md
6759
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-modern-dom-apis.md
6690
6760
  */
6691
6761
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
6692
6762
  /**
6693
6763
  * Prefer modern `Math` APIs over legacy patterns.
6694
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-modern-math-apis.md
6764
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-modern-math-apis.md
6695
6765
  */
6696
6766
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
6697
6767
  /**
6698
6768
  * Prefer JavaScript modules (ESM) over CommonJS.
6699
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-module.md
6769
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-module.md
6700
6770
  */
6701
6771
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
6702
6772
  /**
6703
6773
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
6704
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-native-coercion-functions.md
6774
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-native-coercion-functions.md
6705
6775
  */
6706
6776
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
6707
6777
  /**
6708
6778
  * Prefer negative index over `.length - index` when possible.
6709
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-negative-index.md
6779
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-negative-index.md
6710
6780
  */
6711
6781
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
6712
6782
  /**
6713
6783
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
6714
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-node-protocol.md
6784
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-node-protocol.md
6715
6785
  */
6716
6786
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
6717
6787
  /**
6718
6788
  * Prefer `Number` static properties over global ones.
6719
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-number-properties.md
6789
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-number-properties.md
6720
6790
  */
6721
6791
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
6722
6792
  /**
6723
6793
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
6724
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-object-from-entries.md
6794
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-object-from-entries.md
6725
6795
  */
6726
6796
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
6727
6797
  /**
6728
6798
  * Prefer omitting the `catch` binding parameter.
6729
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-optional-catch-binding.md
6799
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-optional-catch-binding.md
6730
6800
  */
6731
6801
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
6732
6802
  /**
6733
6803
  * Prefer borrowing methods from the prototype instead of the instance.
6734
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-prototype-methods.md
6804
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-prototype-methods.md
6735
6805
  */
6736
6806
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
6737
6807
  /**
6738
6808
  * Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
6739
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-query-selector.md
6809
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-query-selector.md
6740
6810
  */
6741
6811
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>;
6742
6812
  /**
6743
6813
  * Prefer `Reflect.apply()` over `Function#apply()`.
6744
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-reflect-apply.md
6814
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-reflect-apply.md
6745
6815
  */
6746
6816
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
6747
6817
  /**
6748
6818
  * Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
6749
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-regexp-test.md
6819
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-regexp-test.md
6750
6820
  */
6751
6821
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
6822
+ /**
6823
+ * Prefer `Response.json()` over `new Response(JSON.stringify())`.
6824
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-response-static-json.md
6825
+ */
6826
+ 'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>;
6752
6827
  /**
6753
6828
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
6754
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-set-has.md
6829
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-set-has.md
6755
6830
  */
6756
6831
  'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>;
6757
6832
  /**
6758
6833
  * Prefer using `Set#size` instead of `Array#length`.
6759
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-set-size.md
6834
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-set-size.md
6760
6835
  */
6761
6836
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
6762
6837
  /**
6763
6838
  * Enforce combining multiple `Array#push()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
6764
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-single-call.md
6839
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-single-call.md
6765
6840
  */
6766
6841
  'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
6767
6842
  /**
6768
6843
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
6769
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-spread.md
6844
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-spread.md
6770
6845
  */
6771
6846
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
6772
6847
  /**
6773
6848
  * Prefer using the `String.raw` tag to avoid escaping `\`.
6774
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-string-raw.md
6849
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-raw.md
6775
6850
  */
6776
6851
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
6777
6852
  /**
6778
6853
  * Prefer `String#replaceAll()` over regex searches with the global flag.
6779
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-string-replace-all.md
6854
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-replace-all.md
6780
6855
  */
6781
6856
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
6782
6857
  /**
6783
6858
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
6784
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-string-slice.md
6859
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-slice.md
6785
6860
  */
6786
6861
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
6787
6862
  /**
6788
6863
  * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
6789
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-string-starts-ends-with.md
6864
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-starts-ends-with.md
6790
6865
  */
6791
6866
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
6792
6867
  /**
6793
6868
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
6794
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-string-trim-start-end.md
6869
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-trim-start-end.md
6795
6870
  */
6796
6871
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
6797
6872
  /**
6798
6873
  * Prefer using `structuredClone` to create a deep clone.
6799
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-structured-clone.md
6874
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-structured-clone.md
6800
6875
  */
6801
6876
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
6802
6877
  /**
6803
6878
  * Prefer `switch` over multiple `else-if`.
6804
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-switch.md
6879
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-switch.md
6805
6880
  */
6806
6881
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
6807
6882
  /**
6808
6883
  * Prefer ternary expressions over simple `if-else` statements.
6809
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-ternary.md
6884
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-ternary.md
6810
6885
  */
6811
6886
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
6812
6887
  /**
6813
6888
  * Prefer top-level await over top-level promises and async function calls.
6814
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-top-level-await.md
6889
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-top-level-await.md
6815
6890
  */
6816
6891
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
6817
6892
  /**
6818
6893
  * Enforce throwing `TypeError` in type checking conditions.
6819
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-type-error.md
6894
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-type-error.md
6820
6895
  */
6821
6896
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
6822
6897
  /**
6823
6898
  * Prevent abbreviations.
6824
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prevent-abbreviations.md
6899
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prevent-abbreviations.md
6825
6900
  */
6826
6901
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>;
6827
6902
  /**
6828
6903
  * Enforce consistent relative URL style.
6829
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/relative-url-style.md
6904
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/relative-url-style.md
6830
6905
  */
6831
6906
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
6832
6907
  /**
6833
6908
  * Enforce using the separator argument with `Array#join()`.
6834
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/require-array-join-separator.md
6909
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-array-join-separator.md
6835
6910
  */
6836
6911
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
6837
6912
  /**
6838
6913
  * Require non-empty module attributes for imports and exports
6839
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/require-module-attributes.md
6914
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-module-attributes.md
6840
6915
  */
6841
6916
  'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>;
6842
6917
  /**
6843
6918
  * Require non-empty specifier list in import and export statements.
6844
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/require-module-specifiers.md
6919
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-module-specifiers.md
6845
6920
  */
6846
6921
  'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
6847
6922
  /**
6848
6923
  * Enforce using the digits argument with `Number#toFixed()`.
6849
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/require-number-to-fixed-digits-argument.md
6924
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-number-to-fixed-digits-argument.md
6850
6925
  */
6851
6926
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
6852
6927
  /**
6853
6928
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
6854
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/require-post-message-target-origin.md
6929
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-post-message-target-origin.md
6855
6930
  */
6856
6931
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
6857
6932
  /**
6858
6933
  * Enforce better string content.
6859
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/string-content.md
6934
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/string-content.md
6860
6935
  */
6861
6936
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
6862
6937
  /**
6863
6938
  * Enforce consistent brace style for `case` clauses.
6864
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/switch-case-braces.md
6939
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/switch-case-braces.md
6865
6940
  */
6866
6941
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
6867
6942
  /**
6868
6943
  * Fix whitespace-insensitive template indentation.
6869
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/template-indent.md
6944
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/template-indent.md
6870
6945
  */
6871
6946
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
6872
6947
  /**
6873
6948
  * Enforce consistent case for text encoding identifiers.
6874
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/text-encoding-identifier-case.md
6949
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/text-encoding-identifier-case.md
6875
6950
  */
6876
- 'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<[]>;
6951
+ 'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
6877
6952
  /**
6878
6953
  * Require `new` when creating an error.
6879
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/throw-new-error.md
6954
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/throw-new-error.md
6880
6955
  */
6881
6956
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
6882
6957
  /**
@@ -6899,16 +6974,6 @@ interface RuleOptions {
6899
6974
  * @see https://unocss.dev/integrations/eslint#rules
6900
6975
  */
6901
6976
  'unocss/order-attributify'?: Linter.RuleEntry<[]>;
6902
- /**
6903
- * Disallow unused variables
6904
- * @see https://github.com/sweepline/eslint-plugin-unused-imports/blob/master/docs/rules/no-unused-imports.md
6905
- */
6906
- 'unused-imports/no-unused-imports'?: Linter.RuleEntry<UnusedImportsNoUnusedImports>;
6907
- /**
6908
- * Disallow unused variables
6909
- * @see https://github.com/sweepline/eslint-plugin-unused-imports/blob/master/docs/rules/no-unused-vars.md
6910
- */
6911
- 'unused-imports/no-unused-vars'?: Linter.RuleEntry<UnusedImportsNoUnusedVars>;
6912
6977
  /**
6913
6978
  * Require calls to `isNaN()` when checking for `NaN`
6914
6979
  * @see https://eslint.org/docs/latest/rules/use-isnan
@@ -6925,7 +6990,7 @@ interface RuleOptions {
6925
6990
  */
6926
6991
  'vars-on-top'?: Linter.RuleEntry<[]>;
6927
6992
  /**
6928
- * require .spec test file pattern
6993
+ * require test file pattern
6929
6994
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/consistent-test-filename.md
6930
6995
  */
6931
6996
  'vitest/consistent-test-filename'?: Linter.RuleEntry<VitestConsistentTestFilename>;
@@ -7105,6 +7170,11 @@ interface RuleOptions {
7105
7170
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/padding-around-test-blocks.md
7106
7171
  */
7107
7172
  'vitest/padding-around-test-blocks'?: Linter.RuleEntry<[]>;
7173
+ /**
7174
+ * Prefer `toHaveBeenCalledExactlyOnceWith` over `toHaveBeenCalledOnce` and `toHaveBeenCalledWith`
7175
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-called-exactly-once-with.md
7176
+ */
7177
+ 'vitest/prefer-called-exactly-once-with'?: Linter.RuleEntry<[]>;
7108
7178
  /**
7109
7179
  * enforce using `toBeCalledOnce()` or `toHaveBeenCalledOnce()`
7110
7180
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-called-once.md
@@ -7165,6 +7235,11 @@ interface RuleOptions {
7165
7235
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-hooks-on-top.md
7166
7236
  */
7167
7237
  'vitest/prefer-hooks-on-top'?: Linter.RuleEntry<[]>;
7238
+ /**
7239
+ * prefer dynamic import in mock
7240
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-import-in-mock.md
7241
+ */
7242
+ 'vitest/prefer-import-in-mock'?: Linter.RuleEntry<[]>;
7168
7243
  /**
7169
7244
  * enforce importing Vitest globals
7170
7245
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-importing-vitest-globals.md
@@ -7240,6 +7315,11 @@ interface RuleOptions {
7240
7315
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-vi-mocked.md
7241
7316
  */
7242
7317
  'vitest/prefer-vi-mocked'?: Linter.RuleEntry<[]>;
7318
+ /**
7319
+ * ensure that every `expect.poll` call is awaited
7320
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-awaited-expect-poll.md
7321
+ */
7322
+ 'vitest/require-awaited-expect-poll'?: Linter.RuleEntry<[]>;
7243
7323
  /**
7244
7324
  * require setup and teardown to be within a hook
7245
7325
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-hook.md
@@ -8761,6 +8841,11 @@ type HtmlEslintNoRestrictedAttrs = {
8761
8841
  attrPatterns: string[];
8762
8842
  message?: string;
8763
8843
  }[];
8844
+ // ----- @html-eslint/no-restricted-tags -----
8845
+ type HtmlEslintNoRestrictedTags = {
8846
+ tagPatterns: string[];
8847
+ message?: string;
8848
+ }[];
8764
8849
  // ----- @html-eslint/quotes -----
8765
8850
  type HtmlEslintQuotes = [] | [("single" | "double")] | [("single" | "double"), {
8766
8851
  enforceTemplatedAttrValue?: boolean;
@@ -9495,6 +9580,10 @@ type TypescriptEslintNoUnnecessaryTypeAssertion = [] | [{
9495
9580
  checkLiteralConstAssertions?: boolean;
9496
9581
  typesToIgnore?: string[];
9497
9582
  }];
9583
+ // ----- @typescript-eslint/no-unsafe-member-access -----
9584
+ type TypescriptEslintNoUnsafeMemberAccess = [] | [{
9585
+ allowOptionalChaining?: boolean;
9586
+ }];
9498
9587
  // ----- @typescript-eslint/no-unused-expressions -----
9499
9588
  type TypescriptEslintNoUnusedExpressions = [] | [{
9500
9589
  allowShortCircuit?: boolean;
@@ -9512,6 +9601,7 @@ type TypescriptEslintNoUnusedVars = [] | [(("all" | "local") | {
9512
9601
  destructuredArrayIgnorePattern?: string;
9513
9602
  ignoreClassWithStaticInitBlock?: boolean;
9514
9603
  ignoreRestSiblings?: boolean;
9604
+ ignoreUsingDeclarations?: boolean;
9515
9605
  reportUsedIgnorePattern?: boolean;
9516
9606
  vars?: ("all" | "local");
9517
9607
  varsIgnorePattern?: string;
@@ -9820,6 +9910,13 @@ type ArrowSpacing = [] | [{
9820
9910
  before?: boolean;
9821
9911
  after?: boolean;
9822
9912
  }];
9913
+ // ----- astro/no-unsafe-inline-scripts -----
9914
+ type AstroNoUnsafeInlineScripts = [] | [{
9915
+ allowDefineVars?: boolean;
9916
+ allowModuleScripts?: boolean;
9917
+ allowNonExecutingTypes?: string[];
9918
+ allowNonce?: boolean;
9919
+ }];
9823
9920
  // ----- astro/prefer-split-class-list -----
9824
9921
  type AstroPreferSplitClassList = [] | [{
9825
9922
  splitLiteral?: boolean;
@@ -9969,23 +10066,14 @@ type EslintPluginRequireMetaFixable = [] | [{
9969
10066
  type EslintPluginRequireMetaSchema = [] | [{
9970
10067
  requireSchemaPropertyWhenOptionless?: boolean;
9971
10068
  }];
10069
+ // ----- eslint-plugin/require-test-case-name -----
10070
+ type EslintPluginRequireTestCaseName = [] | [{
10071
+ require?: ("always" | "objects" | "objects-with-config");
10072
+ }];
9972
10073
  // ----- eslint-plugin/test-case-property-ordering -----
9973
10074
  type EslintPluginTestCasePropertyOrdering = [] | [unknown[]];
9974
10075
  // ----- eslint-plugin/test-case-shorthand-strings -----
9975
10076
  type EslintPluginTestCaseShorthandStrings = [] | [("as-needed" | "never" | "consistent" | "consistent-as-needed")];
9976
- // ----- format/dprint -----
9977
- type FormatDprint = [] | [{
9978
- language?: string;
9979
- languageOptions?: {
9980
- [k: string]: unknown | undefined;
9981
- };
9982
- [k: string]: unknown | undefined;
9983
- }];
9984
- // ----- format/prettier -----
9985
- type FormatPrettier = [] | [{
9986
- parser?: string;
9987
- [k: string]: unknown | undefined;
9988
- }];
9989
10077
  // ----- func-call-spacing -----
9990
10078
  type FuncCallSpacing = ([] | ["never"] | [] | ["always"] | ["always", {
9991
10079
  allowNewlines?: boolean;
@@ -10488,6 +10576,7 @@ type JsdocCheckPropertyNames = [] | [{
10488
10576
  type JsdocCheckTagNames = [] | [{
10489
10577
  definedTags?: string[];
10490
10578
  enableFixer?: boolean;
10579
+ inlineTags?: string[];
10491
10580
  jsxTags?: boolean;
10492
10581
  typed?: boolean;
10493
10582
  }];
@@ -10530,6 +10619,12 @@ type JsdocConvertToJsdocComments = [] | [{
10530
10619
  type JsdocEmptyTags = [] | [{
10531
10620
  tags?: string[];
10532
10621
  }];
10622
+ // ----- jsdoc/escape-inline-tags -----
10623
+ type JsdocEscapeInlineTags = [] | [{
10624
+ allowedInlineTags?: string[];
10625
+ enableFixer?: boolean;
10626
+ fixType?: ("backticks" | "backslash");
10627
+ }];
10533
10628
  // ----- jsdoc/implements-on-classes -----
10534
10629
  type JsdocImplementsOnClasses = [] | [{
10535
10630
  contexts?: (string | {
@@ -10646,10 +10741,17 @@ type JsdocNoTypes = [] | [{
10646
10741
  }];
10647
10742
  // ----- jsdoc/no-undefined-types -----
10648
10743
  type JsdocNoUndefinedTypes = [] | [{
10744
+ checkUsedTypedefs?: boolean;
10649
10745
  definedTypes?: string[];
10650
10746
  disableReporting?: boolean;
10651
10747
  markVariablesAsUsed?: boolean;
10652
10748
  }];
10749
+ // ----- jsdoc/prefer-import-tag -----
10750
+ type JsdocPreferImportTag = [] | [{
10751
+ enableFixer?: boolean;
10752
+ exemptTypedefs?: boolean;
10753
+ outputType?: ("named-import" | "namespaced-import");
10754
+ }];
10653
10755
  // ----- jsdoc/require-asterisk-prefix -----
10654
10756
  type JsdocRequireAsteriskPrefix = [] | [("always" | "never" | "any")] | [("always" | "never" | "any"), {
10655
10757
  tags?: {
@@ -10809,6 +10911,7 @@ type JsdocRequireReturns = [] | [{
10809
10911
  type JsdocRequireReturnsCheck = [] | [{
10810
10912
  exemptAsync?: boolean;
10811
10913
  exemptGenerators?: boolean;
10914
+ noNativeTypes?: boolean;
10812
10915
  reportMissingReturnForUndefinedTypes?: boolean;
10813
10916
  }];
10814
10917
  // ----- jsdoc/require-returns-description -----
@@ -10874,6 +10977,9 @@ type JsdocSortTags = [] | [{
10874
10977
  linesBetween?: number;
10875
10978
  reportIntraTagGroupSpacing?: boolean;
10876
10979
  reportTagGroupSpacing?: boolean;
10980
+ tagExceptions?: {
10981
+ [k: string]: number;
10982
+ };
10877
10983
  tagSequence?: {
10878
10984
  tags?: string[];
10879
10985
  }[];
@@ -10897,16 +11003,44 @@ type JsdocTextEscaping = [] | [{
10897
11003
  escapeHTML?: boolean;
10898
11004
  escapeMarkdown?: boolean;
10899
11005
  }];
11006
+ // ----- jsdoc/ts-method-signature-style -----
11007
+ type JsdocTsMethodSignatureStyle = [] | [("method" | "property")] | [("method" | "property"), {
11008
+ enableFixer?: boolean;
11009
+ }];
11010
+ // ----- jsdoc/ts-no-unnecessary-template-expression -----
11011
+ type JsdocTsNoUnnecessaryTemplateExpression = [] | [{
11012
+ enableFixer?: boolean;
11013
+ }];
11014
+ // ----- jsdoc/ts-prefer-function-type -----
11015
+ type JsdocTsPreferFunctionType = [] | [{
11016
+ enableFixer?: boolean;
11017
+ }];
10900
11018
  // ----- jsdoc/type-formatting -----
10901
11019
  type JsdocTypeFormatting = [] | [{
10902
11020
  arrayBrackets?: ("angle" | "square");
11021
+ arrowFunctionPostReturnMarkerSpacing?: string;
11022
+ arrowFunctionPreReturnMarkerSpacing?: string;
10903
11023
  enableFixer?: boolean;
11024
+ functionOrClassParameterSpacing?: string;
11025
+ functionOrClassPostGenericSpacing?: string;
11026
+ functionOrClassPostReturnMarkerSpacing?: string;
11027
+ functionOrClassPreReturnMarkerSpacing?: string;
11028
+ functionOrClassTypeParameterSpacing?: string;
11029
+ genericAndTupleElementSpacing?: string;
10904
11030
  genericDot?: boolean;
11031
+ keyValuePostColonSpacing?: string;
11032
+ keyValuePostKeySpacing?: string;
11033
+ keyValuePostOptionalSpacing?: string;
11034
+ keyValuePostVariadicSpacing?: string;
11035
+ methodQuotes?: ("double" | "single");
10905
11036
  objectFieldIndent?: string;
10906
11037
  objectFieldQuote?: ("double" | "single" | null);
10907
11038
  objectFieldSeparator?: ("comma" | "comma-and-linebreak" | "linebreak" | "semicolon" | "semicolon-and-linebreak");
10908
11039
  objectFieldSeparatorOptionalLinebreak?: boolean;
10909
11040
  objectFieldSeparatorTrailingPunctuation?: boolean;
11041
+ parameterDefaultValueSpacing?: string;
11042
+ postMethodNameSpacing?: string;
11043
+ postNewSpacing?: string;
10910
11044
  separatorForSingleObjectField?: boolean;
10911
11045
  stringQuotes?: ("double" | "single");
10912
11046
  typeBracketSpacing?: string;
@@ -11995,12 +12129,14 @@ type NoRestrictedImports = ((string | {
11995
12129
  message?: string;
11996
12130
  importNames?: string[];
11997
12131
  allowImportNames?: string[];
12132
+ allowTypeImports?: boolean;
11998
12133
  })[] | [] | [{
11999
12134
  paths?: (string | {
12000
12135
  name: string;
12001
12136
  message?: string;
12002
12137
  importNames?: string[];
12003
12138
  allowImportNames?: string[];
12139
+ allowTypeImports?: boolean;
12004
12140
  })[];
12005
12141
  patterns?: (string[] | ({
12006
12142
  [k: string]: unknown | undefined;
@@ -14254,6 +14390,7 @@ type PnpmJsonEnforceCatalog = [] | [{
14254
14390
  reuseExistingCatalog?: boolean;
14255
14391
  conflicts?: ("new-catalog" | "overrides" | "error");
14256
14392
  fields?: string[];
14393
+ ignores?: string[];
14257
14394
  }];
14258
14395
  // ----- pnpm/json-prefer-workspace-settings -----
14259
14396
  type PnpmJsonPreferWorkspaceSettings = [] | [{
@@ -14270,6 +14407,7 @@ type PnpmJsonValidCatalog = [] | [{
14270
14407
  // ----- pnpm/yaml-no-duplicate-catalog-item -----
14271
14408
  type PnpmYamlNoDuplicateCatalogItem = [] | [{
14272
14409
  allow?: string[];
14410
+ checkDuplicates?: ("name-only" | "exact-version");
14273
14411
  }];
14274
14412
  // ----- prefer-arrow-callback -----
14275
14413
  type PreferArrowCallback = [] | [{
@@ -15605,6 +15743,10 @@ type UnicornTemplateIndent = [] | [{
15605
15743
  selectors?: string[];
15606
15744
  comments?: string[];
15607
15745
  }];
15746
+ // ----- unicorn/text-encoding-identifier-case -----
15747
+ type UnicornTextEncodingIdentifierCase = [] | [{
15748
+ withDash?: boolean;
15749
+ }];
15608
15750
  // ----- unocss/enforce-class-compile -----
15609
15751
  type UnocssEnforceClassCompile = [] | [{
15610
15752
  prefix?: string;
@@ -15615,32 +15757,6 @@ type UnocssOrder = [] | [{
15615
15757
  unoFunctions?: string[];
15616
15758
  unoVariables?: string[];
15617
15759
  }];
15618
- // ----- unused-imports/no-unused-imports -----
15619
- type UnusedImportsNoUnusedImports = [] | [(("all" | "local") | {
15620
- args?: ("all" | "after-used" | "none");
15621
- argsIgnorePattern?: string;
15622
- caughtErrors?: ("all" | "none");
15623
- caughtErrorsIgnorePattern?: string;
15624
- destructuredArrayIgnorePattern?: string;
15625
- ignoreClassWithStaticInitBlock?: boolean;
15626
- ignoreRestSiblings?: boolean;
15627
- reportUsedIgnorePattern?: boolean;
15628
- vars?: ("all" | "local");
15629
- varsIgnorePattern?: string;
15630
- })];
15631
- // ----- unused-imports/no-unused-vars -----
15632
- type UnusedImportsNoUnusedVars = [] | [(("all" | "local") | {
15633
- args?: ("all" | "after-used" | "none");
15634
- argsIgnorePattern?: string;
15635
- caughtErrors?: ("all" | "none");
15636
- caughtErrorsIgnorePattern?: string;
15637
- destructuredArrayIgnorePattern?: string;
15638
- ignoreClassWithStaticInitBlock?: boolean;
15639
- ignoreRestSiblings?: boolean;
15640
- reportUsedIgnorePattern?: boolean;
15641
- vars?: ("all" | "local");
15642
- varsIgnorePattern?: string;
15643
- })];
15644
15760
  // ----- use-isnan -----
15645
15761
  type UseIsnan = [] | [{
15646
15762
  enforceForSwitchCase?: boolean;
@@ -15683,7 +15799,7 @@ type VitestNoFocusedTests = [] | [{
15683
15799
  }];
15684
15800
  // ----- vitest/no-hooks -----
15685
15801
  type VitestNoHooks = [] | [{
15686
- allow?: unknown[];
15802
+ allow?: ("beforeAll" | "beforeEach" | "afterAll" | "afterEach")[];
15687
15803
  }];
15688
15804
  // ----- vitest/no-large-snapshots -----
15689
15805
  type VitestNoLargeSnapshots = [] | [{
@@ -17157,7 +17273,7 @@ type Yoda = [] | [("always" | "never")] | [("always" | "never"), {
17157
17273
  onlyEquality?: boolean;
17158
17274
  }];
17159
17275
  // Names of all the configs
17160
- type ConfigNames = 'ntnyq/antfu' | 'ntnyq/astro' | 'ntnyq/command' | 'ntnyq/de-morgan' | 'ntnyq/eslint-comments' | 'ntnyq/depend' | 'ntnyq/depend/package-json' | 'ntnyq/eslint-plugin' | 'ntnyq/format/setup' | 'ntnyq/format/css' | 'ntnyq/format/scss' | 'ntnyq/format/less' | 'ntnyq/format/html' | 'ntnyq/github-action' | 'ntnyq/gitignore' | 'ntnyq/html' | 'ntnyq/ignores' | 'ntnyq/import-x' | 'ntnyq/js/recommended' | 'ntnyq/js/core' | 'ntnyq/jsdoc' | 'ntnyq/jsonc' | 'ntnyq/jsx' | 'ntnyq/markdown/recommended/plugin' | 'ntnyq/markdown/recommended/processor' | 'ntnyq/markdown/recommended/code-blocks' | 'ntnyq/markdown/processor' | 'ntnyq/markdown/parser' | 'ntnyq/markdown/disabled' | 'ntnyq/node' | 'ntnyq/ntnyq' | 'ntnyq/pinia' | 'ntnyq/pnpm/package-json' | 'ntnyq/pnpm/pnpm-workspace-yaml' | 'ntnyq/prettier' | 'ntnyq/prettier/disabled' | 'ntnyq/perfectionist/common' | 'ntnyq/perfectionist/enums' | 'ntnyq/perfectionist/types' | 'ntnyq/perfectionist/constants' | 'ntnyq/regexp' | 'ntnyq/sort/tsconfig' | 'ntnyq/sort/package-json' | 'ntnyq/sort/i18n-locale/json' | 'ntnyq/sort/i18n-locale/yaml' | 'ntnyq/sort/json-schema' | 'ntnyq/sort/pnpm-workspace' | 'ntnyq/specials/scripts' | 'ntnyq/specials/cli' | 'ntnyq/specials/bin' | 'ntnyq/specials/userscript' | 'ntnyq/specials/config-file' | 'ntnyq/svelte' | 'ntnyq/svgo' | 'ntnyq/test/setup' | 'ntnyq/test/base' | 'ntnyq/test/vitest' | 'ntnyq/toml' | 'ntnyq/ts/setup' | 'ntnyq/ts/parser' | 'ntnyq/ts/rules' | 'ntnyq/ts/types' | 'ntnyq/unused-imports' | 'ntnyq/unicorn' | 'ntnyq/unocss' | 'ntnyq/vue/setup' | 'ntnyq/vue/rules' | 'ntnyq/yml';
17276
+ type ConfigNames = 'ntnyq/gitignore' | 'ntnyq/ignores' | 'ntnyq/jsx' | 'ntnyq/node' | 'ntnyq/command' | 'ntnyq/eslint-comments' | 'ntnyq/js/recommended' | 'ntnyq/js/core' | 'ntnyq/import-x' | 'ntnyq/jsdoc' | 'ntnyq/perfectionist/common' | 'ntnyq/perfectionist/enums' | 'ntnyq/perfectionist/types' | 'ntnyq/perfectionist/constants' | 'ntnyq/unicorn' | 'ntnyq/pinia' | 'ntnyq/de-morgan' | 'ntnyq/regexp' | 'ntnyq/ts/setup' | 'ntnyq/ts/parser' | 'ntnyq/ts/parser-type-aware' | 'ntnyq/ts/rules' | 'ntnyq/ts/rules/type-aware' | 'ntnyq/ts/types' | 'ntnyq/vue/setup' | 'ntnyq/vue/rules' | 'ntnyq/yml' | 'ntnyq/toml' | 'ntnyq/jsonc' | 'ntnyq/astro' | 'ntnyq/svelte' | 'ntnyq/sort/tsconfig' | 'ntnyq/sort/package-json' | 'ntnyq/sort/i18n-locale/json' | 'ntnyq/sort/i18n-locale/yaml' | 'ntnyq/sort/json-schema' | 'ntnyq/sort/pnpm-workspace' | 'ntnyq/test/setup' | 'ntnyq/test/base' | 'ntnyq/test/vitest' | 'ntnyq/unocss' | 'ntnyq/markdown/recommended/plugin' | 'ntnyq/markdown/recommended/processor' | 'ntnyq/markdown/recommended/code-blocks' | 'ntnyq/markdown/processor' | 'ntnyq/markdown/parser' | 'ntnyq/markdown/disabled' | 'ntnyq/antfu' | 'ntnyq/depend' | 'ntnyq/depend/package-json' | 'ntnyq/ntnyq' | 'ntnyq/github-action' | 'ntnyq/eslint-plugin' | 'ntnyq/pnpm/package-json' | 'ntnyq/pnpm/pnpm-workspace-yaml' | 'ntnyq/svgo' | 'ntnyq/html' | 'ntnyq/specials/scripts' | 'ntnyq/specials/cli' | 'ntnyq/specials/bin' | 'ntnyq/specials/userscript' | 'ntnyq/specials/config-file' | 'ntnyq/specials/shadcn-vue' | 'ntnyq/prettier' | 'ntnyq/prettier/disabled';
17161
17277
  //#endregion
17162
17278
  //#region src/types/eslint.d.ts
17163
17279
  /**
@@ -17223,6 +17339,11 @@ interface OptionsOverrides<Rules extends TypedConfigItem['rules'] = TypedConfigI
17223
17339
  * Options for shareable cross plugins
17224
17340
  */
17225
17341
  interface OptionsShareable {
17342
+ /**
17343
+ * The ECMAScript version of the code being linted
17344
+ * @default 'latest'
17345
+ */
17346
+ ecmaVersion?: Linter.EcmaVersion;
17226
17347
  /**
17227
17348
  * @see {@link https://typescript-eslint.io/packages/parser/#extrafileextensions}
17228
17349
  */
@@ -17367,9 +17488,6 @@ declare const hasVue: ExistChecker;
17367
17488
  //#region src/utils/getOverrides.d.ts
17368
17489
  declare function getOverrides<K extends keyof ConfigOptions>(options: ConfigOptions, key: K): Partial<TypedConfigItem['rules'] & RuleOptions>;
17369
17490
  //#endregion
17370
- //#region src/utils/combineConfigs.d.ts
17371
- declare function combineConfigs(...configs: Awaitable<TypedConfigItem | TypedConfigItem[]>[]): Promise<TypedConfigItem[]>;
17372
- //#endregion
17373
17491
  //#region src/utils/ensurePackages.d.ts
17374
17492
  /**
17375
17493
  * @copyright {@link https://github.com/antfu/eslint-config}
@@ -17431,4 +17549,4 @@ declare const PERFECTIONIST: Readonly<{
17431
17549
  sortObjectsGroups: string[];
17432
17550
  }>;
17433
17551
  //#endregion
17434
- export { Arrayable, Awaitable, ConfigAntfuOptions, ConfigAstroOptions, ConfigCommandOptions, ConfigDeMorganOptions, ConfigDependOptions, ConfigESLintCommentsOptions, ConfigESLintPluginOptions, ConfigFormatOptions, ConfigGitHubActionOptions, ConfigGitIgnoreOptions, ConfigHtmlOptions, ConfigIgnoresOptions, ConfigImportXOptions, ConfigJavaScriptOptions, ConfigJsdocOptions, ConfigJsoncOptions, ConfigMarkdownOptions, ConfigNames, ConfigNodeOptions, ConfigNtnyqOptions, ConfigOptions, ConfigOptionsInternal, ConfigPerfectionistOptions, ConfigPiniaOptions, ConfigPnpmOptions, ConfigPrettierOptions, ConfigRegexpOptions, ConfigSVGOOptions, ConfigSortOptions, ConfigSpecialsOptions, ConfigSvelteOptions, ConfigTestOptions, ConfigTomlOptions, ConfigTypeScriptOptions, ConfigUnicornOptions, ConfigUnoCSSOptions, ConfigUnusedImportsOptions, ConfigVueOptions, ConfigYmlOptions, ESLintConfig, ESLintParser, ESLintParserOptions, ESLintProcessor, ESLintRuleSeverity, ESLintRulesRecord, GLOB_ALL_SRC, GLOB_ASTRO, GLOB_ASTRO_TS, GLOB_CSS, GLOB_DIST, GLOB_DTS, GLOB_EXCLUDE, GLOB_GITHUB_ACTION, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSON_SCHEMA, GLOB_JSX, GLOB_JSX_ONLY, GLOB_LESS, GLOB_LOCKFILE, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_NESTED, GLOB_NODE_MODULES, GLOB_PACKAGE_JSON, GLOB_PINIA_STORE, GLOB_PNPM_WORKSPACE_YAML, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_SVELTE, GLOB_SVG, GLOB_TEST, GLOB_TOML, GLOB_TS, GLOB_TSCONFIG_JSON, GLOB_TSX, GLOB_TSX_ONLY, GLOB_TYPES, GLOB_TYPE_TEST, GLOB_VUE, GLOB_YAML, InteropModuleDefault, OptionsFiles, OptionsIgnores, OptionsOverrides, OptionsShareable, PERFECTIONIST, PRETTIER_DEFAULT_OPTIONS, PerfectionistPartitionByComment, PrettierOptions, Pretty, ResolvedOptions, RuleOptions, TSESLintParserOptions, TypedConfigItem, combineConfigs, configAntfu, configAstro, configCommand, configDeMorgan, configDepend, configESLintComments, configESLintPlugin, configFormat, configGitHubAction, configGitIgnore, configHtml, configIgnores, configImportX, configJSX, configJavaScript, configJsdoc, configJsonc, configMarkdown, configNode, configNtnyq, configPerfectionist, configPinia, configPnpm, configPrettier, configRegexp, configSVGO, configSort, configSpecials, configSvelte, configTest, configToml, configTypeScript, configUnicorn, configUnoCSS, configUnusedImports, configVue, configYml, configsTypeScript, defineESLintConfig, ensurePackages, getOverrides, hasPinia, hasShadcnVue, hasTypeScript, hasUnoCSS, hasVitest, hasVue, interopDefault, isInGitHooksOrRunBySpecifyPackages, mergePrettierOptions, mergeProcessors, parserJsonc, parserPlain, parserToml, parserTypeScript, parserVue, parserYaml, pluginAntfu, pluginComments, pluginDeMorgan, pluginDepend, pluginGitHubAction, pluginImportX, pluginJsdoc, pluginJsonc, pluginMarkdown, pluginNoOnlyTests, pluginNode, pluginNtnyq, pluginPerfectionist, pluginPinia, pluginPrettier, pluginRegexp, pluginSvgo, pluginToml, pluginTypeScript, pluginUnicorn, pluginUnoCSS, pluginVitest, pluginVue, pluginYml, processorPassThrough, processorVueBlocks, resolveSubOptions };
17552
+ export { Arrayable, Awaitable, ConfigAntfuOptions, ConfigAstroOptions, ConfigCommandOptions, ConfigDeMorganOptions, ConfigDependOptions, ConfigESLintCommentsOptions, ConfigESLintPluginOptions, ConfigFormatOptions, ConfigGitHubActionOptions, ConfigGitIgnoreOptions, ConfigHtmlOptions, ConfigIgnoresOptions, ConfigImportXOptions, ConfigJavaScriptOptions, ConfigJsdocOptions, ConfigJsoncOptions, ConfigMarkdownOptions, ConfigNames, ConfigNodeOptions, ConfigNtnyqOptions, ConfigOptions, ConfigOptionsInternal, ConfigPerfectionistOptions, ConfigPiniaOptions, ConfigPnpmOptions, ConfigPrettierOptions, ConfigRegexpOptions, ConfigSVGOOptions, ConfigSortOptions, ConfigSpecialsOptions, ConfigSvelteOptions, ConfigTestOptions, ConfigTomlOptions, ConfigTypeScriptOptions, ConfigUnicornOptions, ConfigUnoCSSOptions, ConfigUnusedImportsOptions, ConfigVueOptions, ConfigYmlOptions, ESLintConfig, ESLintParser, ESLintParserOptions, ESLintProcessor, ESLintRuleSeverity, ESLintRulesRecord, GLOB_ALL_SRC, GLOB_ASTRO, GLOB_ASTRO_TS, GLOB_CSS, GLOB_DIST, GLOB_DTS, GLOB_EXCLUDE, GLOB_GITHUB_ACTION, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSON_SCHEMA, GLOB_JSX, GLOB_JSX_ONLY, GLOB_LESS, GLOB_LOCKFILE, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_NESTED, GLOB_NODE_MODULES, GLOB_PACKAGE_JSON, GLOB_PINIA_STORE, GLOB_PNPM_WORKSPACE_YAML, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_SVELTE, GLOB_SVG, GLOB_TEST, GLOB_TOML, GLOB_TS, GLOB_TSCONFIG_JSON, GLOB_TSX, GLOB_TSX_ONLY, GLOB_TYPES, GLOB_TYPE_TEST, GLOB_VUE, GLOB_YAML, InteropModuleDefault, OptionsFiles, OptionsIgnores, OptionsOverrides, OptionsShareable, PERFECTIONIST, PRETTIER_DEFAULT_OPTIONS, PerfectionistPartitionByComment, PrettierOptions, Pretty, ResolvedOptions, RuleOptions, TSESLintParserOptions, TypedConfigItem, configAntfu, configAstro, configCommand, configDeMorgan, configDepend, configESLintComments, configESLintPlugin, configFormat, configGitHubAction, configGitIgnore, configHtml, configIgnores, configImportX, configJSX, configJavaScript, configJsdoc, configJsonc, configMarkdown, configNode, configNtnyq, configPerfectionist, configPinia, configPnpm, configPrettier, configRegexp, configSVGO, configSort, configSpecials, configSvelte, configTest, configToml, configTypeScript, configUnicorn, configUnoCSS, configUnusedImports, configVue, configYml, configsTypeScript, defineESLintConfig, ensurePackages, getOverrides, hasPinia, hasShadcnVue, hasTypeScript, hasUnoCSS, hasVitest, hasVue, interopDefault, isInGitHooksOrRunBySpecifyPackages, mergePrettierOptions, mergeProcessors, parserJsonc, parserPlain, parserToml, parserTypeScript, parserVue, parserYaml, pluginAntfu, pluginComments, pluginDeMorgan, pluginDepend, pluginGitHubAction, pluginImportX, pluginJsdoc, pluginJsonc, pluginMarkdown, pluginNoOnlyTests, pluginNode, pluginNtnyq, pluginPerfectionist, pluginPinia, pluginPrettier, pluginRegexp, pluginSvgo, pluginToml, pluginTypeScript, pluginUnicorn, pluginUnoCSS, pluginVitest, pluginVue, pluginYml, processorPassThrough, processorVueBlocks, resolveSubOptions };