@jimmy.codes/eslint-config 7.5.2 → 7.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -644,7 +644,7 @@ interface RuleOptions {
644
644
  * Exhaustive deps rule for useQuery
645
645
  * @see https://tanstack.com/query/latest/docs/eslint/exhaustive-deps
646
646
  */
647
- '@tanstack/query/exhaustive-deps'?: Linter.RuleEntry<[]>;
647
+ '@tanstack/query/exhaustive-deps'?: Linter.RuleEntry<TanstackQueryExhaustiveDeps>;
648
648
  /**
649
649
  * Ensure correct order of inference sensitive properties for infinite queries
650
650
  * @see https://tanstack.com/query/latest/docs/eslint/infinite-query-property-order
@@ -670,6 +670,11 @@ interface RuleOptions {
670
670
  * @see https://tanstack.com/query/latest/docs/eslint/no-void-query-fn
671
671
  */
672
672
  '@tanstack/query/no-void-query-fn'?: Linter.RuleEntry<[]>;
673
+ /**
674
+ * Prefer using queryOptions() to co-locate queryKey and queryFn
675
+ * @see https://tanstack.com/query/latest/docs/eslint/prefer-query-options
676
+ */
677
+ '@tanstack/query/prefer-query-options'?: Linter.RuleEntry<[]>;
673
678
  /**
674
679
  * Makes sure that QueryClient is stable
675
680
  * @see https://tanstack.com/query/latest/docs/eslint/stable-query-client
@@ -2239,357 +2244,357 @@ interface RuleOptions {
2239
2244
  'jest-dom/prefer-to-have-value'?: Linter.RuleEntry<[]>;
2240
2245
  /**
2241
2246
  * Enforce `test` and `it` usage conventions
2242
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.0/docs/rules/consistent-test-it.md
2247
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/consistent-test-it.md
2243
2248
  */
2244
2249
  'jest/consistent-test-it'?: Linter.RuleEntry<JestConsistentTestIt>;
2245
2250
  /**
2246
2251
  * Enforce assertion to be made in a test body
2247
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.0/docs/rules/expect-expect.md
2252
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/expect-expect.md
2248
2253
  */
2249
2254
  'jest/expect-expect'?: Linter.RuleEntry<JestExpectExpect>;
2250
2255
  /**
2251
2256
  * Enforces a maximum number assertion calls in a test body
2252
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.0/docs/rules/max-expects.md
2257
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/max-expects.md
2253
2258
  */
2254
2259
  'jest/max-expects'?: Linter.RuleEntry<JestMaxExpects>;
2255
2260
  /**
2256
2261
  * Enforces a maximum depth to nested describe calls
2257
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.0/docs/rules/max-nested-describe.md
2262
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/max-nested-describe.md
2258
2263
  */
2259
2264
  'jest/max-nested-describe'?: Linter.RuleEntry<JestMaxNestedDescribe>;
2260
2265
  /**
2261
2266
  * Disallow alias methods
2262
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.0/docs/rules/no-alias-methods.md
2267
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/no-alias-methods.md
2263
2268
  */
2264
2269
  'jest/no-alias-methods'?: Linter.RuleEntry<[]>;
2265
2270
  /**
2266
2271
  * Disallow commented out tests
2267
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.0/docs/rules/no-commented-out-tests.md
2272
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/no-commented-out-tests.md
2268
2273
  */
2269
2274
  'jest/no-commented-out-tests'?: Linter.RuleEntry<[]>;
2270
2275
  /**
2271
2276
  * Disallow calling `expect` conditionally
2272
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.0/docs/rules/no-conditional-expect.md
2277
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/no-conditional-expect.md
2273
2278
  */
2274
2279
  'jest/no-conditional-expect'?: Linter.RuleEntry<[]>;
2275
2280
  /**
2276
2281
  * Disallow conditional logic in tests
2277
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.0/docs/rules/no-conditional-in-test.md
2282
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/no-conditional-in-test.md
2278
2283
  */
2279
2284
  'jest/no-conditional-in-test'?: Linter.RuleEntry<JestNoConditionalInTest>;
2280
2285
  /**
2281
2286
  * Disallow confusing usages of jest.setTimeout
2282
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.0/docs/rules/no-confusing-set-timeout.md
2287
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/no-confusing-set-timeout.md
2283
2288
  */
2284
2289
  'jest/no-confusing-set-timeout'?: Linter.RuleEntry<[]>;
2285
2290
  /**
2286
2291
  * Disallow use of deprecated functions
2287
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.0/docs/rules/no-deprecated-functions.md
2292
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/no-deprecated-functions.md
2288
2293
  */
2289
2294
  'jest/no-deprecated-functions'?: Linter.RuleEntry<[]>;
2290
2295
  /**
2291
2296
  * Disallow disabled tests
2292
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.0/docs/rules/no-disabled-tests.md
2297
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/no-disabled-tests.md
2293
2298
  */
2294
2299
  'jest/no-disabled-tests'?: Linter.RuleEntry<[]>;
2295
2300
  /**
2296
2301
  * Disallow using a callback in asynchronous tests and hooks
2297
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.0/docs/rules/no-done-callback.md
2302
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/no-done-callback.md
2298
2303
  */
2299
2304
  'jest/no-done-callback'?: Linter.RuleEntry<[]>;
2300
2305
  /**
2301
2306
  * Disallow duplicate setup and teardown hooks
2302
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.0/docs/rules/no-duplicate-hooks.md
2307
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/no-duplicate-hooks.md
2303
2308
  */
2304
2309
  'jest/no-duplicate-hooks'?: Linter.RuleEntry<[]>;
2305
2310
  /**
2306
2311
  * Disallow using equality matchers on error types
2307
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.0/docs/rules/no-error-equal.md
2312
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/no-error-equal.md
2308
2313
  */
2309
2314
  'jest/no-error-equal'?: Linter.RuleEntry<[]>;
2310
2315
  /**
2311
2316
  * Disallow using `exports` in files containing tests
2312
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.0/docs/rules/no-export.md
2317
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/no-export.md
2313
2318
  */
2314
2319
  'jest/no-export'?: Linter.RuleEntry<[]>;
2315
2320
  /**
2316
2321
  * Disallow focused tests
2317
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.0/docs/rules/no-focused-tests.md
2322
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/no-focused-tests.md
2318
2323
  */
2319
2324
  'jest/no-focused-tests'?: Linter.RuleEntry<[]>;
2320
2325
  /**
2321
2326
  * Disallow setup and teardown hooks
2322
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.0/docs/rules/no-hooks.md
2327
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/no-hooks.md
2323
2328
  */
2324
2329
  'jest/no-hooks'?: Linter.RuleEntry<JestNoHooks>;
2325
2330
  /**
2326
2331
  * Disallow identical titles
2327
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.0/docs/rules/no-identical-title.md
2332
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/no-identical-title.md
2328
2333
  */
2329
2334
  'jest/no-identical-title'?: Linter.RuleEntry<[]>;
2330
2335
  /**
2331
2336
  * Disallow string interpolation inside snapshots
2332
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.0/docs/rules/no-interpolation-in-snapshots.md
2337
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/no-interpolation-in-snapshots.md
2333
2338
  */
2334
2339
  'jest/no-interpolation-in-snapshots'?: Linter.RuleEntry<[]>;
2335
2340
  /**
2336
2341
  * Disallow Jasmine globals
2337
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.0/docs/rules/no-jasmine-globals.md
2342
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/no-jasmine-globals.md
2338
2343
  */
2339
2344
  'jest/no-jasmine-globals'?: Linter.RuleEntry<[]>;
2340
2345
  /**
2341
2346
  * Disallow large snapshots
2342
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.0/docs/rules/no-large-snapshots.md
2347
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/no-large-snapshots.md
2343
2348
  */
2344
2349
  'jest/no-large-snapshots'?: Linter.RuleEntry<JestNoLargeSnapshots>;
2345
2350
  /**
2346
2351
  * Disallow manually importing from `__mocks__`
2347
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.0/docs/rules/no-mocks-import.md
2352
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/no-mocks-import.md
2348
2353
  */
2349
2354
  'jest/no-mocks-import'?: Linter.RuleEntry<[]>;
2350
2355
  /**
2351
2356
  * Disallow specific `jest.` methods
2352
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.0/docs/rules/no-restricted-jest-methods.md
2357
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/no-restricted-jest-methods.md
2353
2358
  */
2354
2359
  'jest/no-restricted-jest-methods'?: Linter.RuleEntry<JestNoRestrictedJestMethods>;
2355
2360
  /**
2356
2361
  * Disallow specific matchers & modifiers
2357
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.0/docs/rules/no-restricted-matchers.md
2362
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/no-restricted-matchers.md
2358
2363
  */
2359
2364
  'jest/no-restricted-matchers'?: Linter.RuleEntry<JestNoRestrictedMatchers>;
2360
2365
  /**
2361
2366
  * Disallow using `expect` outside of `it` or `test` blocks
2362
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.0/docs/rules/no-standalone-expect.md
2367
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/no-standalone-expect.md
2363
2368
  */
2364
2369
  'jest/no-standalone-expect'?: Linter.RuleEntry<JestNoStandaloneExpect>;
2365
2370
  /**
2366
2371
  * Require using `.only` and `.skip` over `f` and `x`
2367
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.0/docs/rules/no-test-prefixes.md
2372
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/no-test-prefixes.md
2368
2373
  */
2369
2374
  'jest/no-test-prefixes'?: Linter.RuleEntry<[]>;
2370
2375
  /**
2371
2376
  * Disallow explicitly returning from tests
2372
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.0/docs/rules/no-test-return-statement.md
2377
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/no-test-return-statement.md
2373
2378
  */
2374
2379
  'jest/no-test-return-statement'?: Linter.RuleEntry<[]>;
2375
2380
  /**
2376
2381
  * Disallow unnecessary assertions based on types
2377
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.0/docs/rules/no-unnecessary-assertion.md
2382
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/no-unnecessary-assertion.md
2378
2383
  */
2379
2384
  'jest/no-unnecessary-assertion'?: Linter.RuleEntry<[]>;
2380
2385
  /**
2381
2386
  * Disallow unnecessary async function wrapper for expected promises
2382
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.0/docs/rules/no-unneeded-async-expect-function.md
2387
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/no-unneeded-async-expect-function.md
2383
2388
  */
2384
2389
  'jest/no-unneeded-async-expect-function'?: Linter.RuleEntry<[]>;
2385
2390
  /**
2386
2391
  * Disallow using `jest.mock()` factories without an explicit type parameter
2387
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.0/docs/rules/no-untyped-mock-factory.md
2392
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/no-untyped-mock-factory.md
2388
2393
  */
2389
2394
  'jest/no-untyped-mock-factory'?: Linter.RuleEntry<[]>;
2390
2395
  /**
2391
2396
  * Enforce padding around `afterAll` blocks
2392
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.0/docs/rules/padding-around-after-all-blocks.md
2397
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/padding-around-after-all-blocks.md
2393
2398
  */
2394
2399
  'jest/padding-around-after-all-blocks'?: Linter.RuleEntry<[]>;
2395
2400
  /**
2396
2401
  * Enforce padding around `afterEach` blocks
2397
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.0/docs/rules/padding-around-after-each-blocks.md
2402
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/padding-around-after-each-blocks.md
2398
2403
  */
2399
2404
  'jest/padding-around-after-each-blocks'?: Linter.RuleEntry<[]>;
2400
2405
  /**
2401
2406
  * Enforce padding around Jest functions
2402
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.0/docs/rules/padding-around-all.md
2407
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/padding-around-all.md
2403
2408
  */
2404
2409
  'jest/padding-around-all'?: Linter.RuleEntry<[]>;
2405
2410
  /**
2406
2411
  * Enforce padding around `beforeAll` blocks
2407
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.0/docs/rules/padding-around-before-all-blocks.md
2412
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/padding-around-before-all-blocks.md
2408
2413
  */
2409
2414
  'jest/padding-around-before-all-blocks'?: Linter.RuleEntry<[]>;
2410
2415
  /**
2411
2416
  * Enforce padding around `beforeEach` blocks
2412
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.0/docs/rules/padding-around-before-each-blocks.md
2417
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/padding-around-before-each-blocks.md
2413
2418
  */
2414
2419
  'jest/padding-around-before-each-blocks'?: Linter.RuleEntry<[]>;
2415
2420
  /**
2416
2421
  * Enforce padding around `describe` blocks
2417
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.0/docs/rules/padding-around-describe-blocks.md
2422
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/padding-around-describe-blocks.md
2418
2423
  */
2419
2424
  'jest/padding-around-describe-blocks'?: Linter.RuleEntry<[]>;
2420
2425
  /**
2421
2426
  * Enforce padding around `expect` groups
2422
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.0/docs/rules/padding-around-expect-groups.md
2427
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/padding-around-expect-groups.md
2423
2428
  */
2424
2429
  'jest/padding-around-expect-groups'?: Linter.RuleEntry<[]>;
2425
2430
  /**
2426
2431
  * Enforce padding around `test` and `it` blocks
2427
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.0/docs/rules/padding-around-test-blocks.md
2432
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/padding-around-test-blocks.md
2428
2433
  */
2429
2434
  'jest/padding-around-test-blocks'?: Linter.RuleEntry<[]>;
2430
2435
  /**
2431
2436
  * Suggest using `toHaveBeenCalledWith()`
2432
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.0/docs/rules/prefer-called-with.md
2437
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/prefer-called-with.md
2433
2438
  */
2434
2439
  'jest/prefer-called-with'?: Linter.RuleEntry<[]>;
2435
2440
  /**
2436
2441
  * Suggest using the built-in comparison matchers
2437
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.0/docs/rules/prefer-comparison-matcher.md
2442
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/prefer-comparison-matcher.md
2438
2443
  */
2439
2444
  'jest/prefer-comparison-matcher'?: Linter.RuleEntry<[]>;
2440
2445
  /**
2441
2446
  * Prefer using `.each` rather than manual loops
2442
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.0/docs/rules/prefer-each.md
2447
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/prefer-each.md
2443
2448
  */
2444
2449
  'jest/prefer-each'?: Linter.RuleEntry<[]>;
2445
2450
  /**
2446
2451
  * Prefer having the last statement in a test be an assertion
2447
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.0/docs/rules/prefer-ending-with-an-expect.md
2452
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/prefer-ending-with-an-expect.md
2448
2453
  */
2449
2454
  'jest/prefer-ending-with-an-expect'?: Linter.RuleEntry<JestPreferEndingWithAnExpect>;
2450
2455
  /**
2451
2456
  * Suggest using the built-in equality matchers
2452
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.0/docs/rules/prefer-equality-matcher.md
2457
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/prefer-equality-matcher.md
2453
2458
  */
2454
2459
  'jest/prefer-equality-matcher'?: Linter.RuleEntry<[]>;
2455
2460
  /**
2456
2461
  * Suggest using `expect.assertions()` OR `expect.hasAssertions()`
2457
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.0/docs/rules/prefer-expect-assertions.md
2462
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/prefer-expect-assertions.md
2458
2463
  */
2459
2464
  'jest/prefer-expect-assertions'?: Linter.RuleEntry<JestPreferExpectAssertions>;
2460
2465
  /**
2461
2466
  * Prefer `await expect(...).resolves` over `expect(await ...)` syntax
2462
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.0/docs/rules/prefer-expect-resolves.md
2467
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/prefer-expect-resolves.md
2463
2468
  */
2464
2469
  'jest/prefer-expect-resolves'?: Linter.RuleEntry<[]>;
2465
2470
  /**
2466
2471
  * Prefer having hooks in a consistent order
2467
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.0/docs/rules/prefer-hooks-in-order.md
2472
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/prefer-hooks-in-order.md
2468
2473
  */
2469
2474
  'jest/prefer-hooks-in-order'?: Linter.RuleEntry<[]>;
2470
2475
  /**
2471
2476
  * Suggest having hooks before any test cases
2472
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.0/docs/rules/prefer-hooks-on-top.md
2477
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/prefer-hooks-on-top.md
2473
2478
  */
2474
2479
  'jest/prefer-hooks-on-top'?: Linter.RuleEntry<[]>;
2475
2480
  /**
2476
2481
  * Prefer importing Jest globals
2477
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.0/docs/rules/prefer-importing-jest-globals.md
2482
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/prefer-importing-jest-globals.md
2478
2483
  */
2479
2484
  'jest/prefer-importing-jest-globals'?: Linter.RuleEntry<JestPreferImportingJestGlobals>;
2480
2485
  /**
2481
2486
  * Prefer `jest.mocked()` over `fn as jest.Mock`
2482
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.0/docs/rules/prefer-jest-mocked.md
2487
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/prefer-jest-mocked.md
2483
2488
  */
2484
2489
  'jest/prefer-jest-mocked'?: Linter.RuleEntry<[]>;
2485
2490
  /**
2486
2491
  * Enforce lowercase test names
2487
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.0/docs/rules/prefer-lowercase-title.md
2492
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/prefer-lowercase-title.md
2488
2493
  */
2489
2494
  'jest/prefer-lowercase-title'?: Linter.RuleEntry<JestPreferLowercaseTitle>;
2490
2495
  /**
2491
2496
  * Prefer mock resolved/rejected shorthands for promises
2492
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.0/docs/rules/prefer-mock-promise-shorthand.md
2497
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/prefer-mock-promise-shorthand.md
2493
2498
  */
2494
2499
  'jest/prefer-mock-promise-shorthand'?: Linter.RuleEntry<[]>;
2495
2500
  /**
2496
2501
  * Prefer mock return shorthands
2497
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.0/docs/rules/prefer-mock-return-shorthand.md
2502
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/prefer-mock-return-shorthand.md
2498
2503
  */
2499
2504
  'jest/prefer-mock-return-shorthand'?: Linter.RuleEntry<[]>;
2500
2505
  /**
2501
2506
  * Prefer including a hint with external snapshots
2502
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.0/docs/rules/prefer-snapshot-hint.md
2507
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/prefer-snapshot-hint.md
2503
2508
  */
2504
2509
  'jest/prefer-snapshot-hint'?: Linter.RuleEntry<JestPreferSnapshotHint>;
2505
2510
  /**
2506
2511
  * Suggest using `jest.spyOn()`
2507
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.0/docs/rules/prefer-spy-on.md
2512
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/prefer-spy-on.md
2508
2513
  */
2509
2514
  'jest/prefer-spy-on'?: Linter.RuleEntry<[]>;
2510
2515
  /**
2511
2516
  * Suggest using `toStrictEqual()`
2512
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.0/docs/rules/prefer-strict-equal.md
2517
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/prefer-strict-equal.md
2513
2518
  */
2514
2519
  'jest/prefer-strict-equal'?: Linter.RuleEntry<[]>;
2515
2520
  /**
2516
2521
  * Suggest using `toBe()` for primitive literals
2517
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.0/docs/rules/prefer-to-be.md
2522
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/prefer-to-be.md
2518
2523
  */
2519
2524
  'jest/prefer-to-be'?: Linter.RuleEntry<[]>;
2520
2525
  /**
2521
2526
  * Suggest using `toContain()`
2522
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.0/docs/rules/prefer-to-contain.md
2527
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/prefer-to-contain.md
2523
2528
  */
2524
2529
  'jest/prefer-to-contain'?: Linter.RuleEntry<[]>;
2525
2530
  /**
2526
2531
  * Suggest using `toHaveBeenCalled`
2527
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.0/docs/rules/prefer-to-have-been-called.md
2532
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/prefer-to-have-been-called.md
2528
2533
  */
2529
2534
  'jest/prefer-to-have-been-called'?: Linter.RuleEntry<[]>;
2530
2535
  /**
2531
2536
  * Suggest using `toHaveBeenCalledTimes()`
2532
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.0/docs/rules/prefer-to-have-been-called-times.md
2537
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/prefer-to-have-been-called-times.md
2533
2538
  */
2534
2539
  'jest/prefer-to-have-been-called-times'?: Linter.RuleEntry<[]>;
2535
2540
  /**
2536
2541
  * Suggest using `toHaveLength()`
2537
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.0/docs/rules/prefer-to-have-length.md
2542
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/prefer-to-have-length.md
2538
2543
  */
2539
2544
  'jest/prefer-to-have-length'?: Linter.RuleEntry<[]>;
2540
2545
  /**
2541
2546
  * Suggest using `test.todo`
2542
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.0/docs/rules/prefer-todo.md
2547
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/prefer-todo.md
2543
2548
  */
2544
2549
  'jest/prefer-todo'?: Linter.RuleEntry<[]>;
2545
2550
  /**
2546
2551
  * Require setup and teardown code to be within a hook
2547
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.0/docs/rules/require-hook.md
2552
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/require-hook.md
2548
2553
  */
2549
2554
  'jest/require-hook'?: Linter.RuleEntry<JestRequireHook>;
2550
2555
  /**
2551
2556
  * Require a message for `toThrow()`
2552
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.0/docs/rules/require-to-throw-message.md
2557
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/require-to-throw-message.md
2553
2558
  */
2554
2559
  'jest/require-to-throw-message'?: Linter.RuleEntry<[]>;
2555
2560
  /**
2556
2561
  * Require test cases and hooks to be inside a `describe` block
2557
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.0/docs/rules/require-top-level-describe.md
2562
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/require-top-level-describe.md
2558
2563
  */
2559
2564
  'jest/require-top-level-describe'?: Linter.RuleEntry<JestRequireTopLevelDescribe>;
2560
2565
  /**
2561
2566
  * Enforce unbound methods are called with their expected scope
2562
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.0/docs/rules/unbound-method.md
2567
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/unbound-method.md
2563
2568
  */
2564
2569
  'jest/unbound-method'?: Linter.RuleEntry<JestUnboundMethod>;
2565
2570
  /**
2566
2571
  * Enforce valid `describe()` callback
2567
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.0/docs/rules/valid-describe-callback.md
2572
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/valid-describe-callback.md
2568
2573
  */
2569
2574
  'jest/valid-describe-callback'?: Linter.RuleEntry<[]>;
2570
2575
  /**
2571
2576
  * Enforce valid `expect()` usage
2572
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.0/docs/rules/valid-expect.md
2577
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/valid-expect.md
2573
2578
  */
2574
2579
  'jest/valid-expect'?: Linter.RuleEntry<JestValidExpect>;
2575
2580
  /**
2576
2581
  * Require promises that have expectations in their chain to be valid
2577
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.0/docs/rules/valid-expect-in-promise.md
2582
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/valid-expect-in-promise.md
2578
2583
  */
2579
2584
  'jest/valid-expect-in-promise'?: Linter.RuleEntry<[]>;
2580
2585
  /**
2581
2586
  * Require that `resolve` and `reject` modifiers are present (and only) for promise-like types
2582
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.0/docs/rules/valid-expect-with-promise.md
2587
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/valid-expect-with-promise.md
2583
2588
  */
2584
2589
  'jest/valid-expect-with-promise'?: Linter.RuleEntry<[]>;
2585
2590
  /**
2586
2591
  * Disallow mocking of non-existing module paths
2587
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.0/docs/rules/valid-mock-module-path.md
2592
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/valid-mock-module-path.md
2588
2593
  */
2589
2594
  'jest/valid-mock-module-path'?: Linter.RuleEntry<JestValidMockModulePath>;
2590
2595
  /**
2591
2596
  * Enforce valid titles
2592
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.0/docs/rules/valid-title.md
2597
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/valid-title.md
2593
2598
  */
2594
2599
  'jest/valid-title'?: Linter.RuleEntry<JestValidTitle>;
2595
2600
  /**
@@ -6244,730 +6249,750 @@ interface RuleOptions {
6244
6249
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>;
6245
6250
  /**
6246
6251
  * Improve regexes by making them shorter, consistent, and safer.
6247
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/better-regex.md
6252
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/better-regex.md
6248
6253
  */
6249
6254
  'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>;
6250
6255
  /**
6251
6256
  * Enforce a specific parameter name in catch clauses.
6252
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/catch-error-name.md
6257
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/catch-error-name.md
6253
6258
  */
6254
6259
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
6255
6260
  /**
6256
6261
  * Enforce consistent assertion style with `node:assert`.
6257
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-assert.md
6262
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-assert.md
6258
6263
  */
6259
6264
  'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
6260
6265
  /**
6261
6266
  * Prefer passing `Date` directly to the constructor when cloning.
6262
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-date-clone.md
6267
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-date-clone.md
6263
6268
  */
6264
6269
  'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
6265
6270
  /**
6266
6271
  * Use destructured variables over properties.
6267
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-destructuring.md
6272
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-destructuring.md
6268
6273
  */
6269
6274
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
6270
6275
  /**
6271
6276
  * Prefer consistent types when spreading a ternary in an array literal.
6272
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-empty-array-spread.md
6277
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-empty-array-spread.md
6273
6278
  */
6274
6279
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
6275
6280
  /**
6276
6281
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
6277
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-existence-index-check.md
6282
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-existence-index-check.md
6278
6283
  */
6279
6284
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
6280
6285
  /**
6281
6286
  * Move function definitions to the highest possible scope.
6282
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-function-scoping.md
6287
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-function-scoping.md
6283
6288
  */
6284
6289
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
6290
+ /**
6291
+ * Enforce consistent style for escaping `${` in template literals.
6292
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-template-literal-escape.md
6293
+ */
6294
+ 'unicorn/consistent-template-literal-escape'?: Linter.RuleEntry<[]>;
6285
6295
  /**
6286
6296
  * Enforce correct `Error` subclassing.
6287
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/custom-error-definition.md
6297
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/custom-error-definition.md
6288
6298
  */
6289
6299
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
6290
6300
  /**
6291
6301
  * Enforce no spaces between braces.
6292
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/empty-brace-spaces.md
6302
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/empty-brace-spaces.md
6293
6303
  */
6294
6304
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
6295
6305
  /**
6296
6306
  * Enforce passing a `message` value when creating a built-in error.
6297
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/error-message.md
6307
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/error-message.md
6298
6308
  */
6299
6309
  'unicorn/error-message'?: Linter.RuleEntry<[]>;
6300
6310
  /**
6301
6311
  * Require escape sequences to use uppercase or lowercase values.
6302
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/escape-case.md
6312
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/escape-case.md
6303
6313
  */
6304
6314
  'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
6305
6315
  /**
6306
6316
  * Add expiration conditions to TODO comments.
6307
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/expiring-todo-comments.md
6317
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/expiring-todo-comments.md
6308
6318
  */
6309
6319
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
6310
6320
  /**
6311
6321
  * Enforce explicitly comparing the `length` or `size` property of a value.
6312
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/explicit-length-check.md
6322
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/explicit-length-check.md
6313
6323
  */
6314
6324
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
6315
6325
  /**
6316
6326
  * Enforce a case style for filenames.
6317
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/filename-case.md
6327
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/filename-case.md
6318
6328
  */
6319
6329
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
6320
6330
  /**
6321
6331
  * Enforce specific import styles per module.
6322
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/import-style.md
6332
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/import-style.md
6323
6333
  */
6324
6334
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
6325
6335
  /**
6326
6336
  * Prevent usage of variables from outside the scope of isolated functions.
6327
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/isolated-functions.md
6337
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/isolated-functions.md
6328
6338
  */
6329
6339
  'unicorn/isolated-functions'?: Linter.RuleEntry<UnicornIsolatedFunctions>;
6330
6340
  /**
6331
6341
  * Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
6332
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/new-for-builtins.md
6342
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/new-for-builtins.md
6333
6343
  */
6334
6344
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
6335
6345
  /**
6336
6346
  * Enforce specifying rules to disable in `eslint-disable` comments.
6337
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-abusive-eslint-disable.md
6347
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-abusive-eslint-disable.md
6338
6348
  */
6339
6349
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
6340
6350
  /**
6341
6351
  * Disallow recursive access to `this` within getters and setters.
6342
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-accessor-recursion.md
6352
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-accessor-recursion.md
6343
6353
  */
6344
6354
  'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
6345
6355
  /**
6346
6356
  * Disallow anonymous functions and classes as the default export.
6347
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-anonymous-default-export.md
6357
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-anonymous-default-export.md
6348
6358
  */
6349
6359
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
6350
6360
  /**
6351
6361
  * Prevent passing a function reference directly to iterator methods.
6352
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-callback-reference.md
6362
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-callback-reference.md
6353
6363
  */
6354
6364
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>;
6355
6365
  /**
6356
6366
  * Prefer `for…of` over the `forEach` method.
6357
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-for-each.md
6367
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-for-each.md
6358
6368
  */
6359
6369
  'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>;
6360
6370
  /**
6361
6371
  * Disallow using the `this` argument in array methods.
6362
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-method-this-argument.md
6372
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-method-this-argument.md
6363
6373
  */
6364
6374
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
6365
6375
  /**
6366
6376
  * Replaced by `unicorn/prefer-single-call` which covers more cases.
6367
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
6377
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
6368
6378
  * @deprecated
6369
6379
  */
6370
6380
  'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
6371
6381
  /**
6372
6382
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
6373
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-reduce.md
6383
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-reduce.md
6374
6384
  */
6375
6385
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
6376
6386
  /**
6377
6387
  * Prefer `Array#toReversed()` over `Array#reverse()`.
6378
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-reverse.md
6388
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-reverse.md
6379
6389
  */
6380
6390
  'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
6381
6391
  /**
6382
6392
  * Prefer `Array#toSorted()` over `Array#sort()`.
6383
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-sort.md
6393
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-sort.md
6384
6394
  */
6385
6395
  'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>;
6386
6396
  /**
6387
6397
  * Disallow member access from await expression.
6388
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-await-expression-member.md
6398
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-await-expression-member.md
6389
6399
  */
6390
6400
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
6391
6401
  /**
6392
6402
  * Disallow using `await` in `Promise` method parameters.
6393
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-await-in-promise-methods.md
6403
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-await-in-promise-methods.md
6394
6404
  */
6395
6405
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
6396
6406
  /**
6397
6407
  * Do not use leading/trailing space between `console.log` parameters.
6398
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-console-spaces.md
6408
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-console-spaces.md
6399
6409
  */
6400
6410
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
6401
6411
  /**
6402
6412
  * Do not use `document.cookie` directly.
6403
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-document-cookie.md
6413
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-document-cookie.md
6404
6414
  */
6405
6415
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
6406
6416
  /**
6407
6417
  * Disallow empty files.
6408
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-empty-file.md
6418
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-empty-file.md
6409
6419
  */
6410
6420
  'unicorn/no-empty-file'?: Linter.RuleEntry<[]>;
6411
6421
  /**
6412
6422
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
6413
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-for-loop.md
6423
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-for-loop.md
6414
6424
  */
6415
6425
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
6416
6426
  /**
6417
6427
  * Enforce the use of Unicode escapes instead of hexadecimal escapes.
6418
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-hex-escape.md
6428
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-hex-escape.md
6419
6429
  */
6420
6430
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
6421
6431
  /**
6422
6432
  * Disallow immediate mutation after variable assignment.
6423
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-immediate-mutation.md
6433
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-immediate-mutation.md
6424
6434
  */
6425
6435
  'unicorn/no-immediate-mutation'?: Linter.RuleEntry<[]>;
6426
6436
  /**
6427
6437
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
6428
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
6438
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
6429
6439
  * @deprecated
6430
6440
  */
6431
6441
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
6432
6442
  /**
6433
6443
  * Disallow `instanceof` with built-in objects
6434
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-instanceof-builtins.md
6444
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-instanceof-builtins.md
6435
6445
  */
6436
6446
  'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
6437
6447
  /**
6438
6448
  * Disallow invalid options in `fetch()` and `new Request()`.
6439
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-invalid-fetch-options.md
6449
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-invalid-fetch-options.md
6440
6450
  */
6441
6451
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
6442
6452
  /**
6443
6453
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
6444
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-invalid-remove-event-listener.md
6454
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-invalid-remove-event-listener.md
6445
6455
  */
6446
6456
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
6447
6457
  /**
6448
6458
  * Disallow identifiers starting with `new` or `class`.
6449
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-keyword-prefix.md
6459
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-keyword-prefix.md
6450
6460
  */
6451
6461
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
6452
6462
  /**
6453
6463
  * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
6454
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
6464
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
6455
6465
  * @deprecated
6456
6466
  */
6457
6467
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
6458
6468
  /**
6459
6469
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
6460
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-lonely-if.md
6470
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-lonely-if.md
6461
6471
  */
6462
6472
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
6463
6473
  /**
6464
6474
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
6465
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-magic-array-flat-depth.md
6475
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-magic-array-flat-depth.md
6466
6476
  */
6467
6477
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
6468
6478
  /**
6469
6479
  * Disallow named usage of default import and export.
6470
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-named-default.md
6480
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-named-default.md
6471
6481
  */
6472
6482
  'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
6473
6483
  /**
6474
6484
  * Disallow negated conditions.
6475
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-negated-condition.md
6485
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-negated-condition.md
6476
6486
  */
6477
6487
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
6478
6488
  /**
6479
6489
  * Disallow negated expression in equality check.
6480
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-negation-in-equality-check.md
6490
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-negation-in-equality-check.md
6481
6491
  */
6482
6492
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
6483
6493
  /**
6484
6494
  * Disallow nested ternary expressions.
6485
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-nested-ternary.md
6495
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-nested-ternary.md
6486
6496
  */
6487
6497
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
6488
6498
  /**
6489
6499
  * Disallow `new Array()`.
6490
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-new-array.md
6500
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-new-array.md
6491
6501
  */
6492
6502
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
6493
6503
  /**
6494
6504
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
6495
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-new-buffer.md
6505
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-new-buffer.md
6496
6506
  */
6497
6507
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
6498
6508
  /**
6499
6509
  * Disallow the use of the `null` literal.
6500
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-null.md
6510
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-null.md
6501
6511
  */
6502
6512
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
6503
6513
  /**
6504
6514
  * Disallow the use of objects as default parameters.
6505
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-object-as-default-parameter.md
6515
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-object-as-default-parameter.md
6506
6516
  */
6507
6517
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
6508
6518
  /**
6509
6519
  * Disallow `process.exit()`.
6510
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-process-exit.md
6520
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-process-exit.md
6511
6521
  */
6512
6522
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
6513
6523
  /**
6514
6524
  * Disallow passing single-element arrays to `Promise` methods.
6515
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-single-promise-in-promise-methods.md
6525
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-single-promise-in-promise-methods.md
6516
6526
  */
6517
6527
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
6518
6528
  /**
6519
6529
  * Disallow classes that only have static members.
6520
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-static-only-class.md
6530
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-static-only-class.md
6521
6531
  */
6522
6532
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
6523
6533
  /**
6524
6534
  * Disallow `then` property.
6525
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-thenable.md
6535
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-thenable.md
6526
6536
  */
6527
6537
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
6528
6538
  /**
6529
6539
  * Disallow assigning `this` to a variable.
6530
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-this-assignment.md
6540
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-this-assignment.md
6531
6541
  */
6532
6542
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
6533
6543
  /**
6534
6544
  * Disallow comparing `undefined` using `typeof`.
6535
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-typeof-undefined.md
6545
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-typeof-undefined.md
6536
6546
  */
6537
6547
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
6538
6548
  /**
6539
6549
  * Disallow using `1` as the `depth` argument of `Array#flat()`.
6540
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-array-flat-depth.md
6550
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-array-flat-depth.md
6541
6551
  */
6542
6552
  'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
6543
6553
  /**
6544
6554
  * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
6545
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-array-splice-count.md
6555
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-array-splice-count.md
6546
6556
  */
6547
6557
  'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
6548
6558
  /**
6549
6559
  * Disallow awaiting non-promise values.
6550
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-await.md
6560
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-await.md
6551
6561
  */
6552
6562
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
6553
6563
  /**
6554
6564
  * Enforce the use of built-in methods instead of unnecessary polyfills.
6555
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-polyfills.md
6565
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-polyfills.md
6556
6566
  */
6557
6567
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
6558
6568
  /**
6559
6569
  * Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
6560
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-slice-end.md
6570
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-slice-end.md
6561
6571
  */
6562
6572
  'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
6563
6573
  /**
6564
6574
  * Disallow unreadable array destructuring.
6565
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unreadable-array-destructuring.md
6575
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unreadable-array-destructuring.md
6566
6576
  */
6567
6577
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>;
6568
6578
  /**
6569
6579
  * Disallow unreadable IIFEs.
6570
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unreadable-iife.md
6580
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unreadable-iife.md
6571
6581
  */
6572
6582
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
6573
6583
  /**
6574
6584
  * Disallow unused object properties.
6575
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unused-properties.md
6585
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unused-properties.md
6576
6586
  */
6577
6587
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
6578
6588
  /**
6579
6589
  * Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
6580
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-collection-argument.md
6590
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-collection-argument.md
6581
6591
  */
6582
6592
  'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>;
6583
6593
  /**
6584
6594
  * Disallow unnecessary `Error.captureStackTrace(…)`.
6585
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-error-capture-stack-trace.md
6595
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-error-capture-stack-trace.md
6586
6596
  */
6587
6597
  'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
6588
6598
  /**
6589
6599
  * Disallow useless fallback when spreading in object literals.
6590
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-fallback-in-spread.md
6600
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-fallback-in-spread.md
6591
6601
  */
6592
6602
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
6603
+ /**
6604
+ * Disallow unnecessary `.toArray()` on iterators.
6605
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-iterator-to-array.md
6606
+ */
6607
+ 'unicorn/no-useless-iterator-to-array'?: Linter.RuleEntry<[]>;
6593
6608
  /**
6594
6609
  * Disallow useless array length check.
6595
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-length-check.md
6610
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-length-check.md
6596
6611
  */
6597
6612
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
6598
6613
  /**
6599
6614
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
6600
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-promise-resolve-reject.md
6615
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-promise-resolve-reject.md
6601
6616
  */
6602
6617
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
6603
6618
  /**
6604
6619
  * Disallow unnecessary spread.
6605
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-spread.md
6620
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-spread.md
6606
6621
  */
6607
6622
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
6608
6623
  /**
6609
6624
  * Disallow useless case in switch statements.
6610
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-switch-case.md
6625
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-switch-case.md
6611
6626
  */
6612
6627
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
6613
6628
  /**
6614
6629
  * Disallow useless `undefined`.
6615
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-undefined.md
6630
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-undefined.md
6616
6631
  */
6617
6632
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
6618
6633
  /**
6619
6634
  * Disallow number literals with zero fractions or dangling dots.
6620
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-zero-fractions.md
6635
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-zero-fractions.md
6621
6636
  */
6622
6637
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
6623
6638
  /**
6624
6639
  * Enforce proper case for numeric literals.
6625
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/number-literal-case.md
6640
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/number-literal-case.md
6626
6641
  */
6627
6642
  'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
6628
6643
  /**
6629
6644
  * Enforce the style of numeric separators by correctly grouping digits.
6630
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/numeric-separators-style.md
6645
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/numeric-separators-style.md
6631
6646
  */
6632
6647
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
6633
6648
  /**
6634
6649
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
6635
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-add-event-listener.md
6650
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-add-event-listener.md
6636
6651
  */
6637
6652
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
6638
6653
  /**
6639
6654
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
6640
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-find.md
6655
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-find.md
6641
6656
  */
6642
6657
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
6643
6658
  /**
6644
6659
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
6645
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-flat.md
6660
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-flat.md
6646
6661
  */
6647
6662
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
6648
6663
  /**
6649
6664
  * Prefer `.flatMap(…)` over `.map(…).flat()`.
6650
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-flat-map.md
6665
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-flat-map.md
6651
6666
  */
6652
6667
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
6653
6668
  /**
6654
6669
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
6655
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-index-of.md
6670
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-index-of.md
6656
6671
  */
6657
6672
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
6658
6673
  /**
6659
6674
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
6660
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-some.md
6675
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-some.md
6661
6676
  */
6662
6677
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
6663
6678
  /**
6664
6679
  * Prefer `.at()` method for index access and `String#charAt()`.
6665
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-at.md
6680
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-at.md
6666
6681
  */
6667
6682
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
6668
6683
  /**
6669
6684
  * Prefer `BigInt` literals over the constructor.
6670
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-bigint-literals.md
6685
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-bigint-literals.md
6671
6686
  */
6672
6687
  'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>;
6673
6688
  /**
6674
6689
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
6675
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-blob-reading-methods.md
6690
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-blob-reading-methods.md
6676
6691
  */
6677
6692
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
6678
6693
  /**
6679
6694
  * Prefer class field declarations over `this` assignments in constructors.
6680
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-class-fields.md
6695
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-class-fields.md
6681
6696
  */
6682
6697
  'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
6683
6698
  /**
6684
6699
  * Prefer using `Element#classList.toggle()` to toggle class names.
6685
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-classlist-toggle.md
6700
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-classlist-toggle.md
6686
6701
  */
6687
6702
  'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>;
6688
6703
  /**
6689
6704
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
6690
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-code-point.md
6705
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-code-point.md
6691
6706
  */
6692
6707
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
6693
6708
  /**
6694
6709
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
6695
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-date-now.md
6710
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-date-now.md
6696
6711
  */
6697
6712
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
6698
6713
  /**
6699
6714
  * Prefer default parameters over reassignment.
6700
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-default-parameters.md
6715
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-default-parameters.md
6701
6716
  */
6702
6717
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
6703
6718
  /**
6704
6719
  * Prefer `Node#append()` over `Node#appendChild()`.
6705
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-dom-node-append.md
6720
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-dom-node-append.md
6706
6721
  */
6707
6722
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
6708
6723
  /**
6709
6724
  * Prefer using `.dataset` on DOM elements over calling attribute methods.
6710
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-dom-node-dataset.md
6725
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-dom-node-dataset.md
6711
6726
  */
6712
6727
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
6713
6728
  /**
6714
6729
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
6715
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-dom-node-remove.md
6730
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-dom-node-remove.md
6716
6731
  */
6717
6732
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
6718
6733
  /**
6719
6734
  * Prefer `.textContent` over `.innerText`.
6720
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-dom-node-text-content.md
6735
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-dom-node-text-content.md
6721
6736
  */
6722
6737
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
6723
6738
  /**
6724
6739
  * Prefer `EventTarget` over `EventEmitter`.
6725
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-event-target.md
6740
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-event-target.md
6726
6741
  */
6727
6742
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
6728
6743
  /**
6729
6744
  * Prefer `export…from` when re-exporting.
6730
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-export-from.md
6745
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-export-from.md
6731
6746
  */
6732
6747
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
6733
6748
  /**
6734
6749
  * Prefer `globalThis` over `window`, `self`, and `global`.
6735
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-global-this.md
6750
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-global-this.md
6736
6751
  */
6737
6752
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
6738
6753
  /**
6739
6754
  * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
6740
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-import-meta-properties.md
6755
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-import-meta-properties.md
6741
6756
  */
6742
6757
  'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
6743
6758
  /**
6744
6759
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
6745
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-includes.md
6760
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-includes.md
6746
6761
  */
6747
6762
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
6748
6763
  /**
6749
6764
  * Prefer reading a JSON file as a buffer.
6750
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-json-parse-buffer.md
6765
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-json-parse-buffer.md
6751
6766
  */
6752
6767
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
6753
6768
  /**
6754
6769
  * Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
6755
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-keyboard-event-key.md
6770
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-keyboard-event-key.md
6756
6771
  */
6757
6772
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
6758
6773
  /**
6759
6774
  * Prefer using a logical operator over a ternary.
6760
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-logical-operator-over-ternary.md
6775
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-logical-operator-over-ternary.md
6761
6776
  */
6762
6777
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
6763
6778
  /**
6764
6779
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
6765
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-math-min-max.md
6780
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-math-min-max.md
6766
6781
  */
6767
6782
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
6768
6783
  /**
6769
6784
  * Enforce the use of `Math.trunc` instead of bitwise operators.
6770
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-math-trunc.md
6785
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-math-trunc.md
6771
6786
  */
6772
6787
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
6773
6788
  /**
6774
6789
  * Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
6775
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-modern-dom-apis.md
6790
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-modern-dom-apis.md
6776
6791
  */
6777
6792
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
6778
6793
  /**
6779
6794
  * Prefer modern `Math` APIs over legacy patterns.
6780
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-modern-math-apis.md
6795
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-modern-math-apis.md
6781
6796
  */
6782
6797
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
6783
6798
  /**
6784
6799
  * Prefer JavaScript modules (ESM) over CommonJS.
6785
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-module.md
6800
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-module.md
6786
6801
  */
6787
6802
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
6788
6803
  /**
6789
6804
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
6790
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-native-coercion-functions.md
6805
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-native-coercion-functions.md
6791
6806
  */
6792
6807
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
6793
6808
  /**
6794
6809
  * Prefer negative index over `.length - index` when possible.
6795
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-negative-index.md
6810
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-negative-index.md
6796
6811
  */
6797
6812
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
6798
6813
  /**
6799
6814
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
6800
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-node-protocol.md
6815
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-node-protocol.md
6801
6816
  */
6802
6817
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
6803
6818
  /**
6804
6819
  * Prefer `Number` static properties over global ones.
6805
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-number-properties.md
6820
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-number-properties.md
6806
6821
  */
6807
6822
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
6808
6823
  /**
6809
6824
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
6810
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-object-from-entries.md
6825
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-object-from-entries.md
6811
6826
  */
6812
6827
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
6813
6828
  /**
6814
6829
  * Prefer omitting the `catch` binding parameter.
6815
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-optional-catch-binding.md
6830
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-optional-catch-binding.md
6816
6831
  */
6817
6832
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
6818
6833
  /**
6819
6834
  * Prefer borrowing methods from the prototype instead of the instance.
6820
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-prototype-methods.md
6835
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-prototype-methods.md
6821
6836
  */
6822
6837
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
6823
6838
  /**
6824
6839
  * Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
6825
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-query-selector.md
6840
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-query-selector.md
6826
6841
  */
6827
6842
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>;
6828
6843
  /**
6829
6844
  * Prefer `Reflect.apply()` over `Function#apply()`.
6830
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-reflect-apply.md
6845
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-reflect-apply.md
6831
6846
  */
6832
6847
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
6833
6848
  /**
6834
6849
  * Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
6835
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-regexp-test.md
6850
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-regexp-test.md
6836
6851
  */
6837
6852
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
6838
6853
  /**
6839
6854
  * Prefer `Response.json()` over `new Response(JSON.stringify())`.
6840
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-response-static-json.md
6855
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-response-static-json.md
6841
6856
  */
6842
6857
  'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>;
6843
6858
  /**
6844
6859
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
6845
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-set-has.md
6860
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-set-has.md
6846
6861
  */
6847
6862
  'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>;
6848
6863
  /**
6849
6864
  * Prefer using `Set#size` instead of `Array#length`.
6850
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-set-size.md
6865
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-set-size.md
6851
6866
  */
6852
6867
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
6868
+ /**
6869
+ * Prefer simple conditions first in logical expressions.
6870
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-simple-condition-first.md
6871
+ */
6872
+ 'unicorn/prefer-simple-condition-first'?: Linter.RuleEntry<[]>;
6853
6873
  /**
6854
6874
  * Enforce combining multiple `Array#push()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
6855
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-single-call.md
6875
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-single-call.md
6856
6876
  */
6857
6877
  'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
6858
6878
  /**
6859
6879
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
6860
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-spread.md
6880
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-spread.md
6861
6881
  */
6862
6882
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
6863
6883
  /**
6864
6884
  * Prefer using the `String.raw` tag to avoid escaping `\`.
6865
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-raw.md
6885
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-raw.md
6866
6886
  */
6867
6887
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
6868
6888
  /**
6869
6889
  * Prefer `String#replaceAll()` over regex searches with the global flag.
6870
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-replace-all.md
6890
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-replace-all.md
6871
6891
  */
6872
6892
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
6873
6893
  /**
6874
6894
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
6875
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-slice.md
6895
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-slice.md
6876
6896
  */
6877
6897
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
6878
6898
  /**
6879
6899
  * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
6880
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-starts-ends-with.md
6900
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-starts-ends-with.md
6881
6901
  */
6882
6902
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
6883
6903
  /**
6884
6904
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
6885
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-trim-start-end.md
6905
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-trim-start-end.md
6886
6906
  */
6887
6907
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
6888
6908
  /**
6889
6909
  * Prefer using `structuredClone` to create a deep clone.
6890
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-structured-clone.md
6910
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-structured-clone.md
6891
6911
  */
6892
6912
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
6893
6913
  /**
6894
6914
  * Prefer `switch` over multiple `else-if`.
6895
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-switch.md
6915
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-switch.md
6896
6916
  */
6897
6917
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
6898
6918
  /**
6899
6919
  * Prefer ternary expressions over simple `if-else` statements.
6900
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-ternary.md
6920
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-ternary.md
6901
6921
  */
6902
6922
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
6903
6923
  /**
6904
6924
  * Prefer top-level await over top-level promises and async function calls.
6905
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-top-level-await.md
6925
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-top-level-await.md
6906
6926
  */
6907
6927
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
6908
6928
  /**
6909
6929
  * Enforce throwing `TypeError` in type checking conditions.
6910
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-type-error.md
6930
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-type-error.md
6911
6931
  */
6912
6932
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
6913
6933
  /**
6914
6934
  * Prevent abbreviations.
6915
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prevent-abbreviations.md
6935
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prevent-abbreviations.md
6916
6936
  */
6917
6937
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>;
6918
6938
  /**
6919
6939
  * Enforce consistent relative URL style.
6920
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/relative-url-style.md
6940
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/relative-url-style.md
6921
6941
  */
6922
6942
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
6923
6943
  /**
6924
6944
  * Enforce using the separator argument with `Array#join()`.
6925
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-array-join-separator.md
6945
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-array-join-separator.md
6926
6946
  */
6927
6947
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
6928
6948
  /**
6929
6949
  * Require non-empty module attributes for imports and exports
6930
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-module-attributes.md
6950
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-module-attributes.md
6931
6951
  */
6932
6952
  'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>;
6933
6953
  /**
6934
6954
  * Require non-empty specifier list in import and export statements.
6935
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-module-specifiers.md
6955
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-module-specifiers.md
6936
6956
  */
6937
6957
  'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
6938
6958
  /**
6939
6959
  * Enforce using the digits argument with `Number#toFixed()`.
6940
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-number-to-fixed-digits-argument.md
6960
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-number-to-fixed-digits-argument.md
6941
6961
  */
6942
6962
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
6943
6963
  /**
6944
6964
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
6945
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-post-message-target-origin.md
6965
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-post-message-target-origin.md
6946
6966
  */
6947
6967
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
6948
6968
  /**
6949
6969
  * Enforce better string content.
6950
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/string-content.md
6970
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/string-content.md
6951
6971
  */
6952
6972
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
6953
6973
  /**
6954
6974
  * Enforce consistent brace style for `case` clauses.
6955
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/switch-case-braces.md
6975
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/switch-case-braces.md
6956
6976
  */
6957
6977
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
6978
+ /**
6979
+ * Enforce consistent `break`/`return`/`continue`/`throw` position in `case` clauses.
6980
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/switch-case-break-position.md
6981
+ */
6982
+ 'unicorn/switch-case-break-position'?: Linter.RuleEntry<[]>;
6958
6983
  /**
6959
6984
  * Fix whitespace-insensitive template indentation.
6960
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/template-indent.md
6985
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/template-indent.md
6961
6986
  */
6962
6987
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
6963
6988
  /**
6964
6989
  * Enforce consistent case for text encoding identifiers.
6965
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/text-encoding-identifier-case.md
6990
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/text-encoding-identifier-case.md
6966
6991
  */
6967
6992
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
6968
6993
  /**
6969
6994
  * Require `new` when creating an error.
6970
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/throw-new-error.md
6995
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/throw-new-error.md
6971
6996
  */
6972
6997
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
6973
6998
  /**
@@ -7366,6 +7391,11 @@ interface RuleOptions {
7366
7391
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-top-level-describe.md
7367
7392
  */
7368
7393
  'vitest/require-top-level-describe'?: Linter.RuleEntry<VitestRequireTopLevelDescribe>;
7394
+ /**
7395
+ * enforce unbound methods are called with their expected scope
7396
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/unbound-method.md
7397
+ */
7398
+ 'vitest/unbound-method'?: Linter.RuleEntry<VitestUnboundMethod>;
7369
7399
  /**
7370
7400
  * enforce valid describe callback
7371
7401
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/valid-describe-callback.md
@@ -8596,7 +8626,13 @@ type StylisticWrapIife = [] | [("outside" | "inside" | "any")] | [("outside" | "
8596
8626
  type StylisticYieldStarSpacing = [] | [(("before" | "after" | "both" | "neither") | {
8597
8627
  before?: boolean;
8598
8628
  after?: boolean;
8599
- })]; // ----- @typescript-eslint/array-type -----
8629
+ })]; // ----- @tanstack/query/exhaustive-deps -----
8630
+ type TanstackQueryExhaustiveDeps = [] | [{
8631
+ allowlist?: {
8632
+ variables?: string[];
8633
+ types?: string[];
8634
+ };
8635
+ }]; // ----- @typescript-eslint/array-type -----
8600
8636
  type TypescriptEslintArrayType = [] | [{
8601
8637
  default?: ("array" | "generic" | "array-simple");
8602
8638
  readonly?: ("array" | "generic" | "array-simple");
@@ -12088,6 +12124,7 @@ type PerfectionistSortArrayIncludes = {
12088
12124
  pattern: string;
12089
12125
  flags?: string;
12090
12126
  } | string));
12127
+ matchesAstSelector?: string;
12091
12128
  };
12092
12129
  partitionByComment?: (boolean | (({
12093
12130
  pattern: string;
@@ -12113,7 +12150,7 @@ type PerfectionistSortArrayIncludes = {
12113
12150
  });
12114
12151
  partitionByNewLine?: boolean;
12115
12152
  }[]; // ----- perfectionist/sort-classes -----
12116
- type PerfectionistSortClasses = [] | [{
12153
+ type PerfectionistSortClasses = {
12117
12154
  fallbackSort?: {
12118
12155
  type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
12119
12156
  order?: ("asc" | "desc");
@@ -12230,6 +12267,16 @@ type PerfectionistSortClasses = [] | [{
12230
12267
  order?: ("asc" | "desc");
12231
12268
  })[];
12232
12269
  newlinesBetween?: ("ignore" | number);
12270
+ useConfigurationIf?: {
12271
+ allNamesMatchPattern?: (({
12272
+ pattern: string;
12273
+ flags?: string;
12274
+ } | string)[] | ({
12275
+ pattern: string;
12276
+ flags?: string;
12277
+ } | string));
12278
+ matchesAstSelector?: string;
12279
+ };
12233
12280
  useExperimentalDependencyDetection?: boolean;
12234
12281
  ignoreCallbackDependenciesPatterns?: (({
12235
12282
  pattern: string;
@@ -12261,7 +12308,7 @@ type PerfectionistSortClasses = [] | [{
12261
12308
  } | string)));
12262
12309
  });
12263
12310
  partitionByNewLine?: boolean;
12264
- }]; // ----- perfectionist/sort-decorators -----
12311
+ }[]; // ----- perfectionist/sort-decorators -----
12265
12312
  type PerfectionistSortDecorators = {
12266
12313
  fallbackSort?: {
12267
12314
  type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
@@ -12360,7 +12407,7 @@ type PerfectionistSortDecorators = {
12360
12407
  });
12361
12408
  partitionByNewLine?: boolean;
12362
12409
  }[]; // ----- perfectionist/sort-enums -----
12363
- type PerfectionistSortEnums = [] | [{
12410
+ type PerfectionistSortEnums = {
12364
12411
  fallbackSort?: {
12365
12412
  type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
12366
12413
  order?: ("asc" | "desc");
@@ -12450,6 +12497,16 @@ type PerfectionistSortEnums = [] | [{
12450
12497
  order?: ("asc" | "desc");
12451
12498
  })[];
12452
12499
  newlinesBetween?: ("ignore" | number);
12500
+ useConfigurationIf?: {
12501
+ allNamesMatchPattern?: (({
12502
+ pattern: string;
12503
+ flags?: string;
12504
+ } | string)[] | ({
12505
+ pattern: string;
12506
+ flags?: string;
12507
+ } | string));
12508
+ matchesAstSelector?: string;
12509
+ };
12453
12510
  sortByValue?: ("always" | "ifNumericEnum" | "never");
12454
12511
  useExperimentalDependencyDetection?: boolean;
12455
12512
  partitionByComment?: (boolean | (({
@@ -12475,7 +12532,7 @@ type PerfectionistSortEnums = [] | [{
12475
12532
  } | string)));
12476
12533
  });
12477
12534
  partitionByNewLine?: boolean;
12478
- }]; // ----- perfectionist/sort-export-attributes -----
12535
+ }[]; // ----- perfectionist/sort-export-attributes -----
12479
12536
  type PerfectionistSortExportAttributes = {
12480
12537
  fallbackSort?: {
12481
12538
  type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
@@ -12545,6 +12602,16 @@ type PerfectionistSortExportAttributes = {
12545
12602
  order?: ("asc" | "desc");
12546
12603
  })[];
12547
12604
  newlinesBetween?: ("ignore" | number);
12605
+ useConfigurationIf?: {
12606
+ allNamesMatchPattern?: (({
12607
+ pattern: string;
12608
+ flags?: string;
12609
+ } | string)[] | ({
12610
+ pattern: string;
12611
+ flags?: string;
12612
+ } | string));
12613
+ matchesAstSelector?: string;
12614
+ };
12548
12615
  partitionByComment?: (boolean | (({
12549
12616
  pattern: string;
12550
12617
  flags?: string;
@@ -12737,6 +12804,16 @@ type PerfectionistSortHeritageClauses = {
12737
12804
  order?: ("asc" | "desc");
12738
12805
  })[];
12739
12806
  newlinesBetween?: ("ignore" | number);
12807
+ useConfigurationIf?: {
12808
+ allNamesMatchPattern?: (({
12809
+ pattern: string;
12810
+ flags?: string;
12811
+ } | string)[] | ({
12812
+ pattern: string;
12813
+ flags?: string;
12814
+ } | string));
12815
+ matchesAstSelector?: string;
12816
+ };
12740
12817
  partitionByNewLine?: boolean;
12741
12818
  partitionByComment?: (boolean | (({
12742
12819
  pattern: string;
@@ -12830,6 +12907,16 @@ type PerfectionistSortImportAttributes = {
12830
12907
  order?: ("asc" | "desc");
12831
12908
  })[];
12832
12909
  newlinesBetween?: ("ignore" | number);
12910
+ useConfigurationIf?: {
12911
+ allNamesMatchPattern?: (({
12912
+ pattern: string;
12913
+ flags?: string;
12914
+ } | string)[] | ({
12915
+ pattern: string;
12916
+ flags?: string;
12917
+ } | string));
12918
+ matchesAstSelector?: string;
12919
+ };
12833
12920
  partitionByComment?: (boolean | (({
12834
12921
  pattern: string;
12835
12922
  flags?: string;
@@ -13098,6 +13185,7 @@ type PerfectionistSortInterfaces = {
13098
13185
  pattern: string;
13099
13186
  flags?: string;
13100
13187
  } | string));
13188
+ matchesAstSelector?: string;
13101
13189
  declarationMatchesPattern?: (({
13102
13190
  scope?: ("shallow" | "deep");
13103
13191
  pattern: string;
@@ -13204,6 +13292,16 @@ type PerfectionistSortIntersectionTypes = {
13204
13292
  order?: ("asc" | "desc");
13205
13293
  })[];
13206
13294
  newlinesBetween?: ("ignore" | number);
13295
+ useConfigurationIf?: {
13296
+ allNamesMatchPattern?: (({
13297
+ pattern: string;
13298
+ flags?: string;
13299
+ } | string)[] | ({
13300
+ pattern: string;
13301
+ flags?: string;
13302
+ } | string));
13303
+ matchesAstSelector?: string;
13304
+ };
13207
13305
  partitionByComment?: (boolean | (({
13208
13306
  pattern: string;
13209
13307
  flags?: string;
@@ -13332,6 +13430,7 @@ type PerfectionistSortJsxProps = {
13332
13430
  pattern: string;
13333
13431
  flags?: string;
13334
13432
  } | string));
13433
+ matchesAstSelector?: string;
13335
13434
  tagMatchesPattern?: (({
13336
13435
  pattern: string;
13337
13436
  flags?: string;
@@ -13419,6 +13518,7 @@ type PerfectionistSortMaps = {
13419
13518
  pattern: string;
13420
13519
  flags?: string;
13421
13520
  } | string));
13521
+ matchesAstSelector?: string;
13422
13522
  };
13423
13523
  partitionByComment?: (boolean | (({
13424
13524
  pattern: string;
@@ -13640,6 +13740,16 @@ type PerfectionistSortNamedExports = {
13640
13740
  order?: ("asc" | "desc");
13641
13741
  })[];
13642
13742
  newlinesBetween?: ("ignore" | number);
13743
+ useConfigurationIf?: {
13744
+ allNamesMatchPattern?: (({
13745
+ pattern: string;
13746
+ flags?: string;
13747
+ } | string)[] | ({
13748
+ pattern: string;
13749
+ flags?: string;
13750
+ } | string));
13751
+ matchesAstSelector?: string;
13752
+ };
13643
13753
  ignoreAlias?: boolean;
13644
13754
  partitionByComment?: (boolean | (({
13645
13755
  pattern: string;
@@ -13740,6 +13850,16 @@ type PerfectionistSortNamedImports = {
13740
13850
  order?: ("asc" | "desc");
13741
13851
  })[];
13742
13852
  newlinesBetween?: ("ignore" | number);
13853
+ useConfigurationIf?: {
13854
+ allNamesMatchPattern?: (({
13855
+ pattern: string;
13856
+ flags?: string;
13857
+ } | string)[] | ({
13858
+ pattern: string;
13859
+ flags?: string;
13860
+ } | string));
13861
+ matchesAstSelector?: string;
13862
+ };
13743
13863
  ignoreAlias?: boolean;
13744
13864
  partitionByComment?: (boolean | (({
13745
13865
  pattern: string;
@@ -13887,6 +14007,7 @@ type PerfectionistSortObjectTypes = {
13887
14007
  pattern: string;
13888
14008
  flags?: string;
13889
14009
  } | string));
14010
+ matchesAstSelector?: string;
13890
14011
  declarationMatchesPattern?: (({
13891
14012
  scope?: ("shallow" | "deep");
13892
14013
  pattern: string;
@@ -14053,6 +14174,7 @@ type PerfectionistSortObjects = {
14053
14174
  pattern: string;
14054
14175
  flags?: string;
14055
14176
  } | string));
14177
+ matchesAstSelector?: string;
14056
14178
  declarationMatchesPattern?: (({
14057
14179
  scope?: ("shallow" | "deep");
14058
14180
  pattern: string;
@@ -14063,6 +14185,7 @@ type PerfectionistSortObjects = {
14063
14185
  flags?: string;
14064
14186
  } | string));
14065
14187
  };
14188
+ partitionByComputedKey?: boolean;
14066
14189
  styledComponents?: boolean;
14067
14190
  useExperimentalDependencyDetection?: boolean;
14068
14191
  partitionByComment?: (boolean | (({
@@ -14169,6 +14292,7 @@ type PerfectionistSortSets = {
14169
14292
  pattern: string;
14170
14293
  flags?: string;
14171
14294
  } | string));
14295
+ matchesAstSelector?: string;
14172
14296
  };
14173
14297
  partitionByComment?: (boolean | (({
14174
14298
  pattern: string;
@@ -14278,6 +14402,16 @@ type PerfectionistSortUnionTypes = {
14278
14402
  order?: ("asc" | "desc");
14279
14403
  })[];
14280
14404
  newlinesBetween?: ("ignore" | number);
14405
+ useConfigurationIf?: {
14406
+ allNamesMatchPattern?: (({
14407
+ pattern: string;
14408
+ flags?: string;
14409
+ } | string)[] | ({
14410
+ pattern: string;
14411
+ flags?: string;
14412
+ } | string));
14413
+ matchesAstSelector?: string;
14414
+ };
14281
14415
  partitionByComment?: (boolean | (({
14282
14416
  pattern: string;
14283
14417
  flags?: string;
@@ -14302,7 +14436,7 @@ type PerfectionistSortUnionTypes = {
14302
14436
  });
14303
14437
  partitionByNewLine?: boolean;
14304
14438
  }[]; // ----- perfectionist/sort-variable-declarations -----
14305
- type PerfectionistSortVariableDeclarations = [] | [{
14439
+ type PerfectionistSortVariableDeclarations = {
14306
14440
  fallbackSort?: {
14307
14441
  type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
14308
14442
  order?: ("asc" | "desc");
@@ -14374,6 +14508,16 @@ type PerfectionistSortVariableDeclarations = [] | [{
14374
14508
  order?: ("asc" | "desc");
14375
14509
  })[];
14376
14510
  newlinesBetween?: ("ignore" | number);
14511
+ useConfigurationIf?: {
14512
+ allNamesMatchPattern?: (({
14513
+ pattern: string;
14514
+ flags?: string;
14515
+ } | string)[] | ({
14516
+ pattern: string;
14517
+ flags?: string;
14518
+ } | string));
14519
+ matchesAstSelector?: string;
14520
+ };
14377
14521
  useExperimentalDependencyDetection?: boolean;
14378
14522
  partitionByComment?: (boolean | (({
14379
14523
  pattern: string;
@@ -14398,7 +14542,7 @@ type PerfectionistSortVariableDeclarations = [] | [{
14398
14542
  } | string)));
14399
14543
  });
14400
14544
  partitionByNewLine?: boolean;
14401
- }]; // ----- playwright/expect-expect -----
14545
+ }[]; // ----- playwright/expect-expect -----
14402
14546
  type PlaywrightExpectExpect = [] | [{
14403
14547
  assertFunctionNames?: [] | [string];
14404
14548
  assertFunctionPatterns?: [] | [string];
@@ -14913,6 +15057,7 @@ type UnicornEscapeCase = [] | [("uppercase" | "lowercase")]; // ----- unicorn/ex
14913
15057
  type UnicornExpiringTodoComments = [] | [{
14914
15058
  terms?: string[];
14915
15059
  ignore?: unknown[];
15060
+ ignoreDates?: boolean;
14916
15061
  ignoreDatesOnPullRequests?: boolean;
14917
15062
  allowWarningComments?: boolean;
14918
15063
  date?: string;
@@ -15069,6 +15214,9 @@ type _UnicornPreventAbbreviationsReplacements = (false | _UnicornPreventAbbrevia
15069
15214
  interface _UnicornPreventAbbreviations_Abbreviations {
15070
15215
  [k: string]: _UnicornPreventAbbreviationsReplacements | undefined;
15071
15216
  }
15217
+ interface _UnicornPreventAbbreviations_BooleanObject {
15218
+ [k: string]: boolean | undefined;
15219
+ }
15072
15220
  interface _UnicornPreventAbbreviations_BooleanObject {
15073
15221
  [k: string]: boolean | undefined;
15074
15222
  } // ----- unicorn/relative-url-style -----
@@ -15175,6 +15323,9 @@ type VitestRequireMockTypeParameters = [] | [{
15175
15323
  }]; // ----- vitest/require-top-level-describe -----
15176
15324
  type VitestRequireTopLevelDescribe = [] | [{
15177
15325
  maxNumberOfTopLevelDescribes?: number;
15326
+ }]; // ----- vitest/unbound-method -----
15327
+ type VitestUnboundMethod = [] | [{
15328
+ ignoreStatic?: boolean;
15178
15329
  }]; // ----- vitest/valid-expect -----
15179
15330
  type VitestValidExpect = [] | [{
15180
15331
  alwaysAwait?: boolean;
@@ -15203,7 +15354,6 @@ type Yoda = [] | [("always" | "never")] | [("always" | "never"), {
15203
15354
  }];
15204
15355
  //#endregion
15205
15356
  //#region src/types.d.ts
15206
- type Base = Linter.Config<Linter.RulesRecord & Rules>;
15207
15357
  type ExtractPrefix<T> = T extends `${infer Prefix}/${infer Rest}` ? Rest extends `${string}/${string}` ? `${Prefix}/${ExtractPrefix<Rest>}` : Prefix : never;
15208
15358
  type MaybeReadonly<T> = Readonly<T> | T;
15209
15359
  type Override<T, R> = Omit<T, keyof R> & R;
@@ -15211,12 +15361,11 @@ type Prettify<T> = { [K in keyof T]: T[K] } & {};
15211
15361
  type RulesWithPrefix<T, Prefix extends ValidPrefixes<T>> = { [K in keyof T as K extends `${Prefix}${string}` ? K : never]: T[K] };
15212
15362
  type ValidPrefixes<T> = ExtractPrefix<keyof T>;
15213
15363
  interface LinterConfigOverrides {
15214
- files?: MaybeReadonly<Base["files"]>;
15215
- ignores?: MaybeReadonly<Base["ignores"]>;
15364
+ files?: MaybeReadonly<Linter.Config["files"]>;
15365
+ ignores?: MaybeReadonly<Linter.Config["ignores"]>;
15216
15366
  plugins?: Record<string, unknown>;
15217
15367
  }
15218
- type Rules = RuleOptions;
15219
- type TypedConfigItem = Prettify<Override<Base, LinterConfigOverrides>>;
15368
+ type TypedConfigItem = Prettify<Override<Linter.Config, LinterConfigOverrides>>;
15220
15369
  interface VitestOptions {
15221
15370
  /**
15222
15371
  * How to handle [Vitest global APIs](https://vitest.dev/config/globals.html).