@jimmy.codes/eslint-config 7.5.1 → 7.5.3
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 +206 -84
- package/dist/index.mjs +1 -1
- package/dist/{nextjs-DheaBY3h.mjs → nextjs-Buyxv06i.mjs} +1 -1
- package/package.json +14 -14
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
|
|
@@ -2239,357 +2239,357 @@ interface RuleOptions {
|
|
|
2239
2239
|
'jest-dom/prefer-to-have-value'?: Linter.RuleEntry<[]>;
|
|
2240
2240
|
/**
|
|
2241
2241
|
* Enforce `test` and `it` usage conventions
|
|
2242
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
2242
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/consistent-test-it.md
|
|
2243
2243
|
*/
|
|
2244
2244
|
'jest/consistent-test-it'?: Linter.RuleEntry<JestConsistentTestIt>;
|
|
2245
2245
|
/**
|
|
2246
2246
|
* Enforce assertion to be made in a test body
|
|
2247
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
2247
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/expect-expect.md
|
|
2248
2248
|
*/
|
|
2249
2249
|
'jest/expect-expect'?: Linter.RuleEntry<JestExpectExpect>;
|
|
2250
2250
|
/**
|
|
2251
2251
|
* Enforces a maximum number assertion calls in a test body
|
|
2252
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
2252
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/max-expects.md
|
|
2253
2253
|
*/
|
|
2254
2254
|
'jest/max-expects'?: Linter.RuleEntry<JestMaxExpects>;
|
|
2255
2255
|
/**
|
|
2256
2256
|
* Enforces a maximum depth to nested describe calls
|
|
2257
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
2257
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/max-nested-describe.md
|
|
2258
2258
|
*/
|
|
2259
2259
|
'jest/max-nested-describe'?: Linter.RuleEntry<JestMaxNestedDescribe>;
|
|
2260
2260
|
/**
|
|
2261
2261
|
* Disallow alias methods
|
|
2262
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
2262
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/no-alias-methods.md
|
|
2263
2263
|
*/
|
|
2264
2264
|
'jest/no-alias-methods'?: Linter.RuleEntry<[]>;
|
|
2265
2265
|
/**
|
|
2266
2266
|
* Disallow commented out tests
|
|
2267
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
2267
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/no-commented-out-tests.md
|
|
2268
2268
|
*/
|
|
2269
2269
|
'jest/no-commented-out-tests'?: Linter.RuleEntry<[]>;
|
|
2270
2270
|
/**
|
|
2271
2271
|
* Disallow calling `expect` conditionally
|
|
2272
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
2272
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/no-conditional-expect.md
|
|
2273
2273
|
*/
|
|
2274
2274
|
'jest/no-conditional-expect'?: Linter.RuleEntry<[]>;
|
|
2275
2275
|
/**
|
|
2276
2276
|
* Disallow conditional logic in tests
|
|
2277
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
2277
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/no-conditional-in-test.md
|
|
2278
2278
|
*/
|
|
2279
2279
|
'jest/no-conditional-in-test'?: Linter.RuleEntry<JestNoConditionalInTest>;
|
|
2280
2280
|
/**
|
|
2281
2281
|
* Disallow confusing usages of jest.setTimeout
|
|
2282
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
2282
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/no-confusing-set-timeout.md
|
|
2283
2283
|
*/
|
|
2284
2284
|
'jest/no-confusing-set-timeout'?: Linter.RuleEntry<[]>;
|
|
2285
2285
|
/**
|
|
2286
2286
|
* Disallow use of deprecated functions
|
|
2287
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
2287
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/no-deprecated-functions.md
|
|
2288
2288
|
*/
|
|
2289
2289
|
'jest/no-deprecated-functions'?: Linter.RuleEntry<[]>;
|
|
2290
2290
|
/**
|
|
2291
2291
|
* Disallow disabled tests
|
|
2292
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
2292
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/no-disabled-tests.md
|
|
2293
2293
|
*/
|
|
2294
2294
|
'jest/no-disabled-tests'?: Linter.RuleEntry<[]>;
|
|
2295
2295
|
/**
|
|
2296
2296
|
* Disallow using a callback in asynchronous tests and hooks
|
|
2297
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
2297
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/no-done-callback.md
|
|
2298
2298
|
*/
|
|
2299
2299
|
'jest/no-done-callback'?: Linter.RuleEntry<[]>;
|
|
2300
2300
|
/**
|
|
2301
2301
|
* Disallow duplicate setup and teardown hooks
|
|
2302
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
2302
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/no-duplicate-hooks.md
|
|
2303
2303
|
*/
|
|
2304
2304
|
'jest/no-duplicate-hooks'?: Linter.RuleEntry<[]>;
|
|
2305
2305
|
/**
|
|
2306
2306
|
* Disallow using equality matchers on error types
|
|
2307
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
2307
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/no-error-equal.md
|
|
2308
2308
|
*/
|
|
2309
2309
|
'jest/no-error-equal'?: Linter.RuleEntry<[]>;
|
|
2310
2310
|
/**
|
|
2311
2311
|
* Disallow using `exports` in files containing tests
|
|
2312
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
2312
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/no-export.md
|
|
2313
2313
|
*/
|
|
2314
2314
|
'jest/no-export'?: Linter.RuleEntry<[]>;
|
|
2315
2315
|
/**
|
|
2316
2316
|
* Disallow focused tests
|
|
2317
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
2317
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/no-focused-tests.md
|
|
2318
2318
|
*/
|
|
2319
2319
|
'jest/no-focused-tests'?: Linter.RuleEntry<[]>;
|
|
2320
2320
|
/**
|
|
2321
2321
|
* Disallow setup and teardown hooks
|
|
2322
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
2322
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/no-hooks.md
|
|
2323
2323
|
*/
|
|
2324
2324
|
'jest/no-hooks'?: Linter.RuleEntry<JestNoHooks>;
|
|
2325
2325
|
/**
|
|
2326
2326
|
* Disallow identical titles
|
|
2327
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
2327
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/no-identical-title.md
|
|
2328
2328
|
*/
|
|
2329
2329
|
'jest/no-identical-title'?: Linter.RuleEntry<[]>;
|
|
2330
2330
|
/**
|
|
2331
2331
|
* Disallow string interpolation inside snapshots
|
|
2332
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
2332
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/no-interpolation-in-snapshots.md
|
|
2333
2333
|
*/
|
|
2334
2334
|
'jest/no-interpolation-in-snapshots'?: Linter.RuleEntry<[]>;
|
|
2335
2335
|
/**
|
|
2336
2336
|
* Disallow Jasmine globals
|
|
2337
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
2337
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/no-jasmine-globals.md
|
|
2338
2338
|
*/
|
|
2339
2339
|
'jest/no-jasmine-globals'?: Linter.RuleEntry<[]>;
|
|
2340
2340
|
/**
|
|
2341
2341
|
* Disallow large snapshots
|
|
2342
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
2342
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/no-large-snapshots.md
|
|
2343
2343
|
*/
|
|
2344
2344
|
'jest/no-large-snapshots'?: Linter.RuleEntry<JestNoLargeSnapshots>;
|
|
2345
2345
|
/**
|
|
2346
2346
|
* Disallow manually importing from `__mocks__`
|
|
2347
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
2347
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/no-mocks-import.md
|
|
2348
2348
|
*/
|
|
2349
2349
|
'jest/no-mocks-import'?: Linter.RuleEntry<[]>;
|
|
2350
2350
|
/**
|
|
2351
2351
|
* Disallow specific `jest.` methods
|
|
2352
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
2352
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/no-restricted-jest-methods.md
|
|
2353
2353
|
*/
|
|
2354
2354
|
'jest/no-restricted-jest-methods'?: Linter.RuleEntry<JestNoRestrictedJestMethods>;
|
|
2355
2355
|
/**
|
|
2356
2356
|
* Disallow specific matchers & modifiers
|
|
2357
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
2357
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/no-restricted-matchers.md
|
|
2358
2358
|
*/
|
|
2359
2359
|
'jest/no-restricted-matchers'?: Linter.RuleEntry<JestNoRestrictedMatchers>;
|
|
2360
2360
|
/**
|
|
2361
2361
|
* Disallow using `expect` outside of `it` or `test` blocks
|
|
2362
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
2362
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/no-standalone-expect.md
|
|
2363
2363
|
*/
|
|
2364
2364
|
'jest/no-standalone-expect'?: Linter.RuleEntry<JestNoStandaloneExpect>;
|
|
2365
2365
|
/**
|
|
2366
2366
|
* Require using `.only` and `.skip` over `f` and `x`
|
|
2367
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
2367
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/no-test-prefixes.md
|
|
2368
2368
|
*/
|
|
2369
2369
|
'jest/no-test-prefixes'?: Linter.RuleEntry<[]>;
|
|
2370
2370
|
/**
|
|
2371
2371
|
* Disallow explicitly returning from tests
|
|
2372
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
2372
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/no-test-return-statement.md
|
|
2373
2373
|
*/
|
|
2374
2374
|
'jest/no-test-return-statement'?: Linter.RuleEntry<[]>;
|
|
2375
2375
|
/**
|
|
2376
2376
|
* Disallow unnecessary assertions based on types
|
|
2377
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
2377
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/no-unnecessary-assertion.md
|
|
2378
2378
|
*/
|
|
2379
2379
|
'jest/no-unnecessary-assertion'?: Linter.RuleEntry<[]>;
|
|
2380
2380
|
/**
|
|
2381
2381
|
* Disallow unnecessary async function wrapper for expected promises
|
|
2382
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
2382
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/no-unneeded-async-expect-function.md
|
|
2383
2383
|
*/
|
|
2384
2384
|
'jest/no-unneeded-async-expect-function'?: Linter.RuleEntry<[]>;
|
|
2385
2385
|
/**
|
|
2386
2386
|
* Disallow using `jest.mock()` factories without an explicit type parameter
|
|
2387
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
2387
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/no-untyped-mock-factory.md
|
|
2388
2388
|
*/
|
|
2389
2389
|
'jest/no-untyped-mock-factory'?: Linter.RuleEntry<[]>;
|
|
2390
2390
|
/**
|
|
2391
2391
|
* Enforce padding around `afterAll` blocks
|
|
2392
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
2392
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/padding-around-after-all-blocks.md
|
|
2393
2393
|
*/
|
|
2394
2394
|
'jest/padding-around-after-all-blocks'?: Linter.RuleEntry<[]>;
|
|
2395
2395
|
/**
|
|
2396
2396
|
* Enforce padding around `afterEach` blocks
|
|
2397
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
2397
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/padding-around-after-each-blocks.md
|
|
2398
2398
|
*/
|
|
2399
2399
|
'jest/padding-around-after-each-blocks'?: Linter.RuleEntry<[]>;
|
|
2400
2400
|
/**
|
|
2401
2401
|
* Enforce padding around Jest functions
|
|
2402
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
2402
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/padding-around-all.md
|
|
2403
2403
|
*/
|
|
2404
2404
|
'jest/padding-around-all'?: Linter.RuleEntry<[]>;
|
|
2405
2405
|
/**
|
|
2406
2406
|
* Enforce padding around `beforeAll` blocks
|
|
2407
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
2407
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/padding-around-before-all-blocks.md
|
|
2408
2408
|
*/
|
|
2409
2409
|
'jest/padding-around-before-all-blocks'?: Linter.RuleEntry<[]>;
|
|
2410
2410
|
/**
|
|
2411
2411
|
* Enforce padding around `beforeEach` blocks
|
|
2412
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
2412
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/padding-around-before-each-blocks.md
|
|
2413
2413
|
*/
|
|
2414
2414
|
'jest/padding-around-before-each-blocks'?: Linter.RuleEntry<[]>;
|
|
2415
2415
|
/**
|
|
2416
2416
|
* Enforce padding around `describe` blocks
|
|
2417
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
2417
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/padding-around-describe-blocks.md
|
|
2418
2418
|
*/
|
|
2419
2419
|
'jest/padding-around-describe-blocks'?: Linter.RuleEntry<[]>;
|
|
2420
2420
|
/**
|
|
2421
2421
|
* Enforce padding around `expect` groups
|
|
2422
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
2422
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/padding-around-expect-groups.md
|
|
2423
2423
|
*/
|
|
2424
2424
|
'jest/padding-around-expect-groups'?: Linter.RuleEntry<[]>;
|
|
2425
2425
|
/**
|
|
2426
2426
|
* Enforce padding around `test` and `it` blocks
|
|
2427
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
2427
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/padding-around-test-blocks.md
|
|
2428
2428
|
*/
|
|
2429
2429
|
'jest/padding-around-test-blocks'?: Linter.RuleEntry<[]>;
|
|
2430
2430
|
/**
|
|
2431
2431
|
* Suggest using `toHaveBeenCalledWith()`
|
|
2432
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
2432
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/prefer-called-with.md
|
|
2433
2433
|
*/
|
|
2434
2434
|
'jest/prefer-called-with'?: Linter.RuleEntry<[]>;
|
|
2435
2435
|
/**
|
|
2436
2436
|
* Suggest using the built-in comparison matchers
|
|
2437
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
2437
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/prefer-comparison-matcher.md
|
|
2438
2438
|
*/
|
|
2439
2439
|
'jest/prefer-comparison-matcher'?: Linter.RuleEntry<[]>;
|
|
2440
2440
|
/**
|
|
2441
2441
|
* Prefer using `.each` rather than manual loops
|
|
2442
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
2442
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/prefer-each.md
|
|
2443
2443
|
*/
|
|
2444
2444
|
'jest/prefer-each'?: Linter.RuleEntry<[]>;
|
|
2445
2445
|
/**
|
|
2446
2446
|
* Prefer having the last statement in a test be an assertion
|
|
2447
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
2447
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/prefer-ending-with-an-expect.md
|
|
2448
2448
|
*/
|
|
2449
2449
|
'jest/prefer-ending-with-an-expect'?: Linter.RuleEntry<JestPreferEndingWithAnExpect>;
|
|
2450
2450
|
/**
|
|
2451
2451
|
* Suggest using the built-in equality matchers
|
|
2452
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
2452
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/prefer-equality-matcher.md
|
|
2453
2453
|
*/
|
|
2454
2454
|
'jest/prefer-equality-matcher'?: Linter.RuleEntry<[]>;
|
|
2455
2455
|
/**
|
|
2456
2456
|
* Suggest using `expect.assertions()` OR `expect.hasAssertions()`
|
|
2457
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
2457
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/prefer-expect-assertions.md
|
|
2458
2458
|
*/
|
|
2459
2459
|
'jest/prefer-expect-assertions'?: Linter.RuleEntry<JestPreferExpectAssertions>;
|
|
2460
2460
|
/**
|
|
2461
2461
|
* Prefer `await expect(...).resolves` over `expect(await ...)` syntax
|
|
2462
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
2462
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/prefer-expect-resolves.md
|
|
2463
2463
|
*/
|
|
2464
2464
|
'jest/prefer-expect-resolves'?: Linter.RuleEntry<[]>;
|
|
2465
2465
|
/**
|
|
2466
2466
|
* Prefer having hooks in a consistent order
|
|
2467
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
2467
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/prefer-hooks-in-order.md
|
|
2468
2468
|
*/
|
|
2469
2469
|
'jest/prefer-hooks-in-order'?: Linter.RuleEntry<[]>;
|
|
2470
2470
|
/**
|
|
2471
2471
|
* Suggest having hooks before any test cases
|
|
2472
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
2472
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/prefer-hooks-on-top.md
|
|
2473
2473
|
*/
|
|
2474
2474
|
'jest/prefer-hooks-on-top'?: Linter.RuleEntry<[]>;
|
|
2475
2475
|
/**
|
|
2476
2476
|
* Prefer importing Jest globals
|
|
2477
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
2477
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/prefer-importing-jest-globals.md
|
|
2478
2478
|
*/
|
|
2479
2479
|
'jest/prefer-importing-jest-globals'?: Linter.RuleEntry<JestPreferImportingJestGlobals>;
|
|
2480
2480
|
/**
|
|
2481
2481
|
* Prefer `jest.mocked()` over `fn as jest.Mock`
|
|
2482
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
2482
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/prefer-jest-mocked.md
|
|
2483
2483
|
*/
|
|
2484
2484
|
'jest/prefer-jest-mocked'?: Linter.RuleEntry<[]>;
|
|
2485
2485
|
/**
|
|
2486
2486
|
* Enforce lowercase test names
|
|
2487
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
2487
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/prefer-lowercase-title.md
|
|
2488
2488
|
*/
|
|
2489
2489
|
'jest/prefer-lowercase-title'?: Linter.RuleEntry<JestPreferLowercaseTitle>;
|
|
2490
2490
|
/**
|
|
2491
2491
|
* Prefer mock resolved/rejected shorthands for promises
|
|
2492
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
2492
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/prefer-mock-promise-shorthand.md
|
|
2493
2493
|
*/
|
|
2494
2494
|
'jest/prefer-mock-promise-shorthand'?: Linter.RuleEntry<[]>;
|
|
2495
2495
|
/**
|
|
2496
2496
|
* Prefer mock return shorthands
|
|
2497
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
2497
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/prefer-mock-return-shorthand.md
|
|
2498
2498
|
*/
|
|
2499
2499
|
'jest/prefer-mock-return-shorthand'?: Linter.RuleEntry<[]>;
|
|
2500
2500
|
/**
|
|
2501
2501
|
* Prefer including a hint with external snapshots
|
|
2502
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
2502
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/prefer-snapshot-hint.md
|
|
2503
2503
|
*/
|
|
2504
2504
|
'jest/prefer-snapshot-hint'?: Linter.RuleEntry<JestPreferSnapshotHint>;
|
|
2505
2505
|
/**
|
|
2506
2506
|
* Suggest using `jest.spyOn()`
|
|
2507
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
2507
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/prefer-spy-on.md
|
|
2508
2508
|
*/
|
|
2509
2509
|
'jest/prefer-spy-on'?: Linter.RuleEntry<[]>;
|
|
2510
2510
|
/**
|
|
2511
2511
|
* Suggest using `toStrictEqual()`
|
|
2512
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
2512
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/prefer-strict-equal.md
|
|
2513
2513
|
*/
|
|
2514
2514
|
'jest/prefer-strict-equal'?: Linter.RuleEntry<[]>;
|
|
2515
2515
|
/**
|
|
2516
2516
|
* Suggest using `toBe()` for primitive literals
|
|
2517
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
2517
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/prefer-to-be.md
|
|
2518
2518
|
*/
|
|
2519
2519
|
'jest/prefer-to-be'?: Linter.RuleEntry<[]>;
|
|
2520
2520
|
/**
|
|
2521
2521
|
* Suggest using `toContain()`
|
|
2522
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
2522
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/prefer-to-contain.md
|
|
2523
2523
|
*/
|
|
2524
2524
|
'jest/prefer-to-contain'?: Linter.RuleEntry<[]>;
|
|
2525
2525
|
/**
|
|
2526
2526
|
* Suggest using `toHaveBeenCalled`
|
|
2527
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
2527
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/prefer-to-have-been-called.md
|
|
2528
2528
|
*/
|
|
2529
2529
|
'jest/prefer-to-have-been-called'?: Linter.RuleEntry<[]>;
|
|
2530
2530
|
/**
|
|
2531
2531
|
* Suggest using `toHaveBeenCalledTimes()`
|
|
2532
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
2532
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/prefer-to-have-been-called-times.md
|
|
2533
2533
|
*/
|
|
2534
2534
|
'jest/prefer-to-have-been-called-times'?: Linter.RuleEntry<[]>;
|
|
2535
2535
|
/**
|
|
2536
2536
|
* Suggest using `toHaveLength()`
|
|
2537
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
2537
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/prefer-to-have-length.md
|
|
2538
2538
|
*/
|
|
2539
2539
|
'jest/prefer-to-have-length'?: Linter.RuleEntry<[]>;
|
|
2540
2540
|
/**
|
|
2541
2541
|
* Suggest using `test.todo`
|
|
2542
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
2542
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/prefer-todo.md
|
|
2543
2543
|
*/
|
|
2544
2544
|
'jest/prefer-todo'?: Linter.RuleEntry<[]>;
|
|
2545
2545
|
/**
|
|
2546
2546
|
* Require setup and teardown code to be within a hook
|
|
2547
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
2547
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/require-hook.md
|
|
2548
2548
|
*/
|
|
2549
2549
|
'jest/require-hook'?: Linter.RuleEntry<JestRequireHook>;
|
|
2550
2550
|
/**
|
|
2551
2551
|
* Require a message for `toThrow()`
|
|
2552
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
2552
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/require-to-throw-message.md
|
|
2553
2553
|
*/
|
|
2554
2554
|
'jest/require-to-throw-message'?: Linter.RuleEntry<[]>;
|
|
2555
2555
|
/**
|
|
2556
2556
|
* Require test cases and hooks to be inside a `describe` block
|
|
2557
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
2557
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/require-top-level-describe.md
|
|
2558
2558
|
*/
|
|
2559
2559
|
'jest/require-top-level-describe'?: Linter.RuleEntry<JestRequireTopLevelDescribe>;
|
|
2560
2560
|
/**
|
|
2561
2561
|
* Enforce unbound methods are called with their expected scope
|
|
2562
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
2562
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/unbound-method.md
|
|
2563
2563
|
*/
|
|
2564
2564
|
'jest/unbound-method'?: Linter.RuleEntry<JestUnboundMethod>;
|
|
2565
2565
|
/**
|
|
2566
2566
|
* Enforce valid `describe()` callback
|
|
2567
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
2567
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/valid-describe-callback.md
|
|
2568
2568
|
*/
|
|
2569
2569
|
'jest/valid-describe-callback'?: Linter.RuleEntry<[]>;
|
|
2570
2570
|
/**
|
|
2571
2571
|
* Enforce valid `expect()` usage
|
|
2572
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
2572
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/valid-expect.md
|
|
2573
2573
|
*/
|
|
2574
2574
|
'jest/valid-expect'?: Linter.RuleEntry<JestValidExpect>;
|
|
2575
2575
|
/**
|
|
2576
2576
|
* Require promises that have expectations in their chain to be valid
|
|
2577
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
2577
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/valid-expect-in-promise.md
|
|
2578
2578
|
*/
|
|
2579
2579
|
'jest/valid-expect-in-promise'?: Linter.RuleEntry<[]>;
|
|
2580
2580
|
/**
|
|
2581
2581
|
* 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.
|
|
2582
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/valid-expect-with-promise.md
|
|
2583
2583
|
*/
|
|
2584
2584
|
'jest/valid-expect-with-promise'?: Linter.RuleEntry<[]>;
|
|
2585
2585
|
/**
|
|
2586
2586
|
* Disallow mocking of non-existing module paths
|
|
2587
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
2587
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/valid-mock-module-path.md
|
|
2588
2588
|
*/
|
|
2589
2589
|
'jest/valid-mock-module-path'?: Linter.RuleEntry<JestValidMockModulePath>;
|
|
2590
2590
|
/**
|
|
2591
2591
|
* Enforce valid titles
|
|
2592
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
2592
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.1/docs/rules/valid-title.md
|
|
2593
2593
|
*/
|
|
2594
2594
|
'jest/valid-title'?: Linter.RuleEntry<JestValidTitle>;
|
|
2595
2595
|
/**
|
|
@@ -7366,6 +7366,11 @@ interface RuleOptions {
|
|
|
7366
7366
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-top-level-describe.md
|
|
7367
7367
|
*/
|
|
7368
7368
|
'vitest/require-top-level-describe'?: Linter.RuleEntry<VitestRequireTopLevelDescribe>;
|
|
7369
|
+
/**
|
|
7370
|
+
* enforce unbound methods are called with their expected scope
|
|
7371
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/unbound-method.md
|
|
7372
|
+
*/
|
|
7373
|
+
'vitest/unbound-method'?: Linter.RuleEntry<VitestUnboundMethod>;
|
|
7369
7374
|
/**
|
|
7370
7375
|
* enforce valid describe callback
|
|
7371
7376
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/valid-describe-callback.md
|
|
@@ -8596,7 +8601,13 @@ type StylisticWrapIife = [] | [("outside" | "inside" | "any")] | [("outside" | "
|
|
|
8596
8601
|
type StylisticYieldStarSpacing = [] | [(("before" | "after" | "both" | "neither") | {
|
|
8597
8602
|
before?: boolean;
|
|
8598
8603
|
after?: boolean;
|
|
8599
|
-
})]; // ----- @
|
|
8604
|
+
})]; // ----- @tanstack/query/exhaustive-deps -----
|
|
8605
|
+
type TanstackQueryExhaustiveDeps = [] | [{
|
|
8606
|
+
allowlist?: {
|
|
8607
|
+
variables?: string[];
|
|
8608
|
+
types?: string[];
|
|
8609
|
+
};
|
|
8610
|
+
}]; // ----- @typescript-eslint/array-type -----
|
|
8600
8611
|
type TypescriptEslintArrayType = [] | [{
|
|
8601
8612
|
default?: ("array" | "generic" | "array-simple");
|
|
8602
8613
|
readonly?: ("array" | "generic" | "array-simple");
|
|
@@ -12088,6 +12099,7 @@ type PerfectionistSortArrayIncludes = {
|
|
|
12088
12099
|
pattern: string;
|
|
12089
12100
|
flags?: string;
|
|
12090
12101
|
} | string));
|
|
12102
|
+
matchesAstSelector?: string;
|
|
12091
12103
|
};
|
|
12092
12104
|
partitionByComment?: (boolean | (({
|
|
12093
12105
|
pattern: string;
|
|
@@ -12113,7 +12125,7 @@ type PerfectionistSortArrayIncludes = {
|
|
|
12113
12125
|
});
|
|
12114
12126
|
partitionByNewLine?: boolean;
|
|
12115
12127
|
}[]; // ----- perfectionist/sort-classes -----
|
|
12116
|
-
type PerfectionistSortClasses =
|
|
12128
|
+
type PerfectionistSortClasses = {
|
|
12117
12129
|
fallbackSort?: {
|
|
12118
12130
|
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12119
12131
|
order?: ("asc" | "desc");
|
|
@@ -12230,6 +12242,16 @@ type PerfectionistSortClasses = [] | [{
|
|
|
12230
12242
|
order?: ("asc" | "desc");
|
|
12231
12243
|
})[];
|
|
12232
12244
|
newlinesBetween?: ("ignore" | number);
|
|
12245
|
+
useConfigurationIf?: {
|
|
12246
|
+
allNamesMatchPattern?: (({
|
|
12247
|
+
pattern: string;
|
|
12248
|
+
flags?: string;
|
|
12249
|
+
} | string)[] | ({
|
|
12250
|
+
pattern: string;
|
|
12251
|
+
flags?: string;
|
|
12252
|
+
} | string));
|
|
12253
|
+
matchesAstSelector?: string;
|
|
12254
|
+
};
|
|
12233
12255
|
useExperimentalDependencyDetection?: boolean;
|
|
12234
12256
|
ignoreCallbackDependenciesPatterns?: (({
|
|
12235
12257
|
pattern: string;
|
|
@@ -12261,7 +12283,7 @@ type PerfectionistSortClasses = [] | [{
|
|
|
12261
12283
|
} | string)));
|
|
12262
12284
|
});
|
|
12263
12285
|
partitionByNewLine?: boolean;
|
|
12264
|
-
}]; // ----- perfectionist/sort-decorators -----
|
|
12286
|
+
}[]; // ----- perfectionist/sort-decorators -----
|
|
12265
12287
|
type PerfectionistSortDecorators = {
|
|
12266
12288
|
fallbackSort?: {
|
|
12267
12289
|
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
@@ -12360,7 +12382,7 @@ type PerfectionistSortDecorators = {
|
|
|
12360
12382
|
});
|
|
12361
12383
|
partitionByNewLine?: boolean;
|
|
12362
12384
|
}[]; // ----- perfectionist/sort-enums -----
|
|
12363
|
-
type PerfectionistSortEnums =
|
|
12385
|
+
type PerfectionistSortEnums = {
|
|
12364
12386
|
fallbackSort?: {
|
|
12365
12387
|
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12366
12388
|
order?: ("asc" | "desc");
|
|
@@ -12450,6 +12472,16 @@ type PerfectionistSortEnums = [] | [{
|
|
|
12450
12472
|
order?: ("asc" | "desc");
|
|
12451
12473
|
})[];
|
|
12452
12474
|
newlinesBetween?: ("ignore" | number);
|
|
12475
|
+
useConfigurationIf?: {
|
|
12476
|
+
allNamesMatchPattern?: (({
|
|
12477
|
+
pattern: string;
|
|
12478
|
+
flags?: string;
|
|
12479
|
+
} | string)[] | ({
|
|
12480
|
+
pattern: string;
|
|
12481
|
+
flags?: string;
|
|
12482
|
+
} | string));
|
|
12483
|
+
matchesAstSelector?: string;
|
|
12484
|
+
};
|
|
12453
12485
|
sortByValue?: ("always" | "ifNumericEnum" | "never");
|
|
12454
12486
|
useExperimentalDependencyDetection?: boolean;
|
|
12455
12487
|
partitionByComment?: (boolean | (({
|
|
@@ -12475,7 +12507,7 @@ type PerfectionistSortEnums = [] | [{
|
|
|
12475
12507
|
} | string)));
|
|
12476
12508
|
});
|
|
12477
12509
|
partitionByNewLine?: boolean;
|
|
12478
|
-
}]; // ----- perfectionist/sort-export-attributes -----
|
|
12510
|
+
}[]; // ----- perfectionist/sort-export-attributes -----
|
|
12479
12511
|
type PerfectionistSortExportAttributes = {
|
|
12480
12512
|
fallbackSort?: {
|
|
12481
12513
|
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
@@ -12545,6 +12577,16 @@ type PerfectionistSortExportAttributes = {
|
|
|
12545
12577
|
order?: ("asc" | "desc");
|
|
12546
12578
|
})[];
|
|
12547
12579
|
newlinesBetween?: ("ignore" | number);
|
|
12580
|
+
useConfigurationIf?: {
|
|
12581
|
+
allNamesMatchPattern?: (({
|
|
12582
|
+
pattern: string;
|
|
12583
|
+
flags?: string;
|
|
12584
|
+
} | string)[] | ({
|
|
12585
|
+
pattern: string;
|
|
12586
|
+
flags?: string;
|
|
12587
|
+
} | string));
|
|
12588
|
+
matchesAstSelector?: string;
|
|
12589
|
+
};
|
|
12548
12590
|
partitionByComment?: (boolean | (({
|
|
12549
12591
|
pattern: string;
|
|
12550
12592
|
flags?: string;
|
|
@@ -12737,6 +12779,16 @@ type PerfectionistSortHeritageClauses = {
|
|
|
12737
12779
|
order?: ("asc" | "desc");
|
|
12738
12780
|
})[];
|
|
12739
12781
|
newlinesBetween?: ("ignore" | number);
|
|
12782
|
+
useConfigurationIf?: {
|
|
12783
|
+
allNamesMatchPattern?: (({
|
|
12784
|
+
pattern: string;
|
|
12785
|
+
flags?: string;
|
|
12786
|
+
} | string)[] | ({
|
|
12787
|
+
pattern: string;
|
|
12788
|
+
flags?: string;
|
|
12789
|
+
} | string));
|
|
12790
|
+
matchesAstSelector?: string;
|
|
12791
|
+
};
|
|
12740
12792
|
partitionByNewLine?: boolean;
|
|
12741
12793
|
partitionByComment?: (boolean | (({
|
|
12742
12794
|
pattern: string;
|
|
@@ -12830,6 +12882,16 @@ type PerfectionistSortImportAttributes = {
|
|
|
12830
12882
|
order?: ("asc" | "desc");
|
|
12831
12883
|
})[];
|
|
12832
12884
|
newlinesBetween?: ("ignore" | number);
|
|
12885
|
+
useConfigurationIf?: {
|
|
12886
|
+
allNamesMatchPattern?: (({
|
|
12887
|
+
pattern: string;
|
|
12888
|
+
flags?: string;
|
|
12889
|
+
} | string)[] | ({
|
|
12890
|
+
pattern: string;
|
|
12891
|
+
flags?: string;
|
|
12892
|
+
} | string));
|
|
12893
|
+
matchesAstSelector?: string;
|
|
12894
|
+
};
|
|
12833
12895
|
partitionByComment?: (boolean | (({
|
|
12834
12896
|
pattern: string;
|
|
12835
12897
|
flags?: string;
|
|
@@ -13098,6 +13160,7 @@ type PerfectionistSortInterfaces = {
|
|
|
13098
13160
|
pattern: string;
|
|
13099
13161
|
flags?: string;
|
|
13100
13162
|
} | string));
|
|
13163
|
+
matchesAstSelector?: string;
|
|
13101
13164
|
declarationMatchesPattern?: (({
|
|
13102
13165
|
scope?: ("shallow" | "deep");
|
|
13103
13166
|
pattern: string;
|
|
@@ -13204,6 +13267,16 @@ type PerfectionistSortIntersectionTypes = {
|
|
|
13204
13267
|
order?: ("asc" | "desc");
|
|
13205
13268
|
})[];
|
|
13206
13269
|
newlinesBetween?: ("ignore" | number);
|
|
13270
|
+
useConfigurationIf?: {
|
|
13271
|
+
allNamesMatchPattern?: (({
|
|
13272
|
+
pattern: string;
|
|
13273
|
+
flags?: string;
|
|
13274
|
+
} | string)[] | ({
|
|
13275
|
+
pattern: string;
|
|
13276
|
+
flags?: string;
|
|
13277
|
+
} | string));
|
|
13278
|
+
matchesAstSelector?: string;
|
|
13279
|
+
};
|
|
13207
13280
|
partitionByComment?: (boolean | (({
|
|
13208
13281
|
pattern: string;
|
|
13209
13282
|
flags?: string;
|
|
@@ -13332,6 +13405,7 @@ type PerfectionistSortJsxProps = {
|
|
|
13332
13405
|
pattern: string;
|
|
13333
13406
|
flags?: string;
|
|
13334
13407
|
} | string));
|
|
13408
|
+
matchesAstSelector?: string;
|
|
13335
13409
|
tagMatchesPattern?: (({
|
|
13336
13410
|
pattern: string;
|
|
13337
13411
|
flags?: string;
|
|
@@ -13419,6 +13493,7 @@ type PerfectionistSortMaps = {
|
|
|
13419
13493
|
pattern: string;
|
|
13420
13494
|
flags?: string;
|
|
13421
13495
|
} | string));
|
|
13496
|
+
matchesAstSelector?: string;
|
|
13422
13497
|
};
|
|
13423
13498
|
partitionByComment?: (boolean | (({
|
|
13424
13499
|
pattern: string;
|
|
@@ -13640,6 +13715,16 @@ type PerfectionistSortNamedExports = {
|
|
|
13640
13715
|
order?: ("asc" | "desc");
|
|
13641
13716
|
})[];
|
|
13642
13717
|
newlinesBetween?: ("ignore" | number);
|
|
13718
|
+
useConfigurationIf?: {
|
|
13719
|
+
allNamesMatchPattern?: (({
|
|
13720
|
+
pattern: string;
|
|
13721
|
+
flags?: string;
|
|
13722
|
+
} | string)[] | ({
|
|
13723
|
+
pattern: string;
|
|
13724
|
+
flags?: string;
|
|
13725
|
+
} | string));
|
|
13726
|
+
matchesAstSelector?: string;
|
|
13727
|
+
};
|
|
13643
13728
|
ignoreAlias?: boolean;
|
|
13644
13729
|
partitionByComment?: (boolean | (({
|
|
13645
13730
|
pattern: string;
|
|
@@ -13740,6 +13825,16 @@ type PerfectionistSortNamedImports = {
|
|
|
13740
13825
|
order?: ("asc" | "desc");
|
|
13741
13826
|
})[];
|
|
13742
13827
|
newlinesBetween?: ("ignore" | number);
|
|
13828
|
+
useConfigurationIf?: {
|
|
13829
|
+
allNamesMatchPattern?: (({
|
|
13830
|
+
pattern: string;
|
|
13831
|
+
flags?: string;
|
|
13832
|
+
} | string)[] | ({
|
|
13833
|
+
pattern: string;
|
|
13834
|
+
flags?: string;
|
|
13835
|
+
} | string));
|
|
13836
|
+
matchesAstSelector?: string;
|
|
13837
|
+
};
|
|
13743
13838
|
ignoreAlias?: boolean;
|
|
13744
13839
|
partitionByComment?: (boolean | (({
|
|
13745
13840
|
pattern: string;
|
|
@@ -13887,6 +13982,7 @@ type PerfectionistSortObjectTypes = {
|
|
|
13887
13982
|
pattern: string;
|
|
13888
13983
|
flags?: string;
|
|
13889
13984
|
} | string));
|
|
13985
|
+
matchesAstSelector?: string;
|
|
13890
13986
|
declarationMatchesPattern?: (({
|
|
13891
13987
|
scope?: ("shallow" | "deep");
|
|
13892
13988
|
pattern: string;
|
|
@@ -14053,6 +14149,7 @@ type PerfectionistSortObjects = {
|
|
|
14053
14149
|
pattern: string;
|
|
14054
14150
|
flags?: string;
|
|
14055
14151
|
} | string));
|
|
14152
|
+
matchesAstSelector?: string;
|
|
14056
14153
|
declarationMatchesPattern?: (({
|
|
14057
14154
|
scope?: ("shallow" | "deep");
|
|
14058
14155
|
pattern: string;
|
|
@@ -14063,6 +14160,7 @@ type PerfectionistSortObjects = {
|
|
|
14063
14160
|
flags?: string;
|
|
14064
14161
|
} | string));
|
|
14065
14162
|
};
|
|
14163
|
+
partitionByComputedKey?: boolean;
|
|
14066
14164
|
styledComponents?: boolean;
|
|
14067
14165
|
useExperimentalDependencyDetection?: boolean;
|
|
14068
14166
|
partitionByComment?: (boolean | (({
|
|
@@ -14169,6 +14267,7 @@ type PerfectionistSortSets = {
|
|
|
14169
14267
|
pattern: string;
|
|
14170
14268
|
flags?: string;
|
|
14171
14269
|
} | string));
|
|
14270
|
+
matchesAstSelector?: string;
|
|
14172
14271
|
};
|
|
14173
14272
|
partitionByComment?: (boolean | (({
|
|
14174
14273
|
pattern: string;
|
|
@@ -14278,6 +14377,16 @@ type PerfectionistSortUnionTypes = {
|
|
|
14278
14377
|
order?: ("asc" | "desc");
|
|
14279
14378
|
})[];
|
|
14280
14379
|
newlinesBetween?: ("ignore" | number);
|
|
14380
|
+
useConfigurationIf?: {
|
|
14381
|
+
allNamesMatchPattern?: (({
|
|
14382
|
+
pattern: string;
|
|
14383
|
+
flags?: string;
|
|
14384
|
+
} | string)[] | ({
|
|
14385
|
+
pattern: string;
|
|
14386
|
+
flags?: string;
|
|
14387
|
+
} | string));
|
|
14388
|
+
matchesAstSelector?: string;
|
|
14389
|
+
};
|
|
14281
14390
|
partitionByComment?: (boolean | (({
|
|
14282
14391
|
pattern: string;
|
|
14283
14392
|
flags?: string;
|
|
@@ -14302,7 +14411,7 @@ type PerfectionistSortUnionTypes = {
|
|
|
14302
14411
|
});
|
|
14303
14412
|
partitionByNewLine?: boolean;
|
|
14304
14413
|
}[]; // ----- perfectionist/sort-variable-declarations -----
|
|
14305
|
-
type PerfectionistSortVariableDeclarations =
|
|
14414
|
+
type PerfectionistSortVariableDeclarations = {
|
|
14306
14415
|
fallbackSort?: {
|
|
14307
14416
|
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
14308
14417
|
order?: ("asc" | "desc");
|
|
@@ -14374,6 +14483,16 @@ type PerfectionistSortVariableDeclarations = [] | [{
|
|
|
14374
14483
|
order?: ("asc" | "desc");
|
|
14375
14484
|
})[];
|
|
14376
14485
|
newlinesBetween?: ("ignore" | number);
|
|
14486
|
+
useConfigurationIf?: {
|
|
14487
|
+
allNamesMatchPattern?: (({
|
|
14488
|
+
pattern: string;
|
|
14489
|
+
flags?: string;
|
|
14490
|
+
} | string)[] | ({
|
|
14491
|
+
pattern: string;
|
|
14492
|
+
flags?: string;
|
|
14493
|
+
} | string));
|
|
14494
|
+
matchesAstSelector?: string;
|
|
14495
|
+
};
|
|
14377
14496
|
useExperimentalDependencyDetection?: boolean;
|
|
14378
14497
|
partitionByComment?: (boolean | (({
|
|
14379
14498
|
pattern: string;
|
|
@@ -14398,7 +14517,7 @@ type PerfectionistSortVariableDeclarations = [] | [{
|
|
|
14398
14517
|
} | string)));
|
|
14399
14518
|
});
|
|
14400
14519
|
partitionByNewLine?: boolean;
|
|
14401
|
-
}]; // ----- playwright/expect-expect -----
|
|
14520
|
+
}[]; // ----- playwright/expect-expect -----
|
|
14402
14521
|
type PlaywrightExpectExpect = [] | [{
|
|
14403
14522
|
assertFunctionNames?: [] | [string];
|
|
14404
14523
|
assertFunctionPatterns?: [] | [string];
|
|
@@ -14411,6 +14530,7 @@ type PlaywrightMaxNestedDescribe = [] | [{
|
|
|
14411
14530
|
}]; // ----- playwright/missing-playwright-await -----
|
|
14412
14531
|
type PlaywrightMissingPlaywrightAwait = [] | [{
|
|
14413
14532
|
customMatchers?: string[];
|
|
14533
|
+
includePageLocatorMethods?: boolean;
|
|
14414
14534
|
}]; // ----- playwright/no-hooks -----
|
|
14415
14535
|
type PlaywrightNoHooks = [] | [{
|
|
14416
14536
|
allow?: unknown[];
|
|
@@ -14431,6 +14551,7 @@ type PlaywrightNoRestrictedRoles = [] | [(string | {
|
|
|
14431
14551
|
})[]]; // ----- playwright/no-skipped-test -----
|
|
14432
14552
|
type PlaywrightNoSkippedTest = [] | [{
|
|
14433
14553
|
allowConditional?: boolean;
|
|
14554
|
+
disallowFixme?: boolean;
|
|
14434
14555
|
}]; // ----- playwright/no-slowed-test -----
|
|
14435
14556
|
type PlaywrightNoSlowedTest = [] | [{
|
|
14436
14557
|
allowConditional?: boolean;
|
|
@@ -15173,6 +15294,9 @@ type VitestRequireMockTypeParameters = [] | [{
|
|
|
15173
15294
|
}]; // ----- vitest/require-top-level-describe -----
|
|
15174
15295
|
type VitestRequireTopLevelDescribe = [] | [{
|
|
15175
15296
|
maxNumberOfTopLevelDescribes?: number;
|
|
15297
|
+
}]; // ----- vitest/unbound-method -----
|
|
15298
|
+
type VitestUnboundMethod = [] | [{
|
|
15299
|
+
ignoreStatic?: boolean;
|
|
15176
15300
|
}]; // ----- vitest/valid-expect -----
|
|
15177
15301
|
type VitestValidExpect = [] | [{
|
|
15178
15302
|
alwaysAwait?: boolean;
|
|
@@ -15201,7 +15325,6 @@ type Yoda = [] | [("always" | "never")] | [("always" | "never"), {
|
|
|
15201
15325
|
}];
|
|
15202
15326
|
//#endregion
|
|
15203
15327
|
//#region src/types.d.ts
|
|
15204
|
-
type Base = Linter.Config<Linter.RulesRecord & Rules>;
|
|
15205
15328
|
type ExtractPrefix<T> = T extends `${infer Prefix}/${infer Rest}` ? Rest extends `${string}/${string}` ? `${Prefix}/${ExtractPrefix<Rest>}` : Prefix : never;
|
|
15206
15329
|
type MaybeReadonly<T> = Readonly<T> | T;
|
|
15207
15330
|
type Override<T, R> = Omit<T, keyof R> & R;
|
|
@@ -15209,12 +15332,11 @@ type Prettify<T> = { [K in keyof T]: T[K] } & {};
|
|
|
15209
15332
|
type RulesWithPrefix<T, Prefix extends ValidPrefixes<T>> = { [K in keyof T as K extends `${Prefix}${string}` ? K : never]: T[K] };
|
|
15210
15333
|
type ValidPrefixes<T> = ExtractPrefix<keyof T>;
|
|
15211
15334
|
interface LinterConfigOverrides {
|
|
15212
|
-
files?: MaybeReadonly<
|
|
15213
|
-
ignores?: MaybeReadonly<
|
|
15335
|
+
files?: MaybeReadonly<Linter.Config["files"]>;
|
|
15336
|
+
ignores?: MaybeReadonly<Linter.Config["ignores"]>;
|
|
15214
15337
|
plugins?: Record<string, unknown>;
|
|
15215
15338
|
}
|
|
15216
|
-
type
|
|
15217
|
-
type TypedConfigItem = Prettify<Override<Base, LinterConfigOverrides>>;
|
|
15339
|
+
type TypedConfigItem = Prettify<Override<Linter.Config, LinterConfigOverrides>>;
|
|
15218
15340
|
interface VitestOptions {
|
|
15219
15341
|
/**
|
|
15220
15342
|
* How to handle [Vitest global APIs](https://vitest.dev/config/globals.html).
|
package/dist/index.mjs
CHANGED
|
@@ -565,7 +565,7 @@ const defineConfig = async ({ astro = false, autoDetect = true, gitignore = fals
|
|
|
565
565
|
isTestingLibraryEnabled && unwrap(import("./testing-library-B1I63Phd.mjs"), testingLibrary),
|
|
566
566
|
isPlaywrightEnabled && unwrap(import("./playwright-hse_Mk2B.mjs"), playwright),
|
|
567
567
|
isStorybookEnabled && unwrap(import("./storybook-Cmw5qksj.mjs"), storybook),
|
|
568
|
-
isNextjsEnabled && unwrap(import("./nextjs-
|
|
568
|
+
isNextjsEnabled && unwrap(import("./nextjs-Buyxv06i.mjs"), nextjs)
|
|
569
569
|
]);
|
|
570
570
|
return [
|
|
571
571
|
...gitignore ? [gitignoreConfig({ strict: false })] : [],
|
|
@@ -12,7 +12,7 @@ const nextjsRules = async (options) => {
|
|
|
12
12
|
//#region src/configs/nextjs.ts
|
|
13
13
|
async function nextjsConfig(options) {
|
|
14
14
|
const extractedOptions = extractOptions(options);
|
|
15
|
-
const nextjsPlugin = await import("@next/eslint-plugin-next");
|
|
15
|
+
const nextjsPlugin = await unwrapDefault(import("@next/eslint-plugin-next"));
|
|
16
16
|
return [{
|
|
17
17
|
files: GLOB_NEXTJS,
|
|
18
18
|
name: "jimmy.codes/nextjs",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jimmy.codes/eslint-config",
|
|
3
|
-
"version": "7.5.
|
|
3
|
+
"version": "7.5.3",
|
|
4
4
|
"description": "A simple, modern ESLint config that covers most use cases.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -41,15 +41,15 @@
|
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.7.1",
|
|
43
43
|
"@eslint/js": "^9.39.4",
|
|
44
|
-
"@next/eslint-plugin-next": "^16.1
|
|
44
|
+
"@next/eslint-plugin-next": "^16.2.1",
|
|
45
45
|
"@stylistic/eslint-plugin": "^5.10.0",
|
|
46
|
-
"@tanstack/eslint-plugin-query": "^5.
|
|
46
|
+
"@tanstack/eslint-plugin-query": "^5.95.2",
|
|
47
47
|
"@types/eslint": "9.6.1",
|
|
48
|
-
"@typescript-eslint/parser": "^8.57.
|
|
49
|
-
"@typescript-eslint/utils": "^8.57.
|
|
50
|
-
"@vitest/eslint-plugin": "^1.6.
|
|
51
|
-
"astro-eslint-parser": "^1.
|
|
52
|
-
"eslint-config-flat-gitignore": "^2.
|
|
48
|
+
"@typescript-eslint/parser": "^8.57.2",
|
|
49
|
+
"@typescript-eslint/utils": "^8.57.2",
|
|
50
|
+
"@vitest/eslint-plugin": "^1.6.13",
|
|
51
|
+
"astro-eslint-parser": "^1.4.0",
|
|
52
|
+
"eslint-config-flat-gitignore": "^2.3.0",
|
|
53
53
|
"eslint-config-prettier": "^10.1.8",
|
|
54
54
|
"eslint-import-resolver-typescript": "^4.4.4",
|
|
55
55
|
"eslint-plugin-arrow-return-style-x": "^1.2.6",
|
|
@@ -57,13 +57,13 @@
|
|
|
57
57
|
"eslint-plugin-de-morgan": "^2.1.1",
|
|
58
58
|
"eslint-plugin-erasable-syntax-only": "0.4.0",
|
|
59
59
|
"eslint-plugin-import-x": "^4.16.2",
|
|
60
|
-
"eslint-plugin-jest": "^29.15.
|
|
60
|
+
"eslint-plugin-jest": "^29.15.1",
|
|
61
61
|
"eslint-plugin-jest-dom": "^5.5.0",
|
|
62
|
-
"eslint-plugin-jsdoc": "^62.
|
|
62
|
+
"eslint-plugin-jsdoc": "^62.8.1",
|
|
63
63
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
64
64
|
"eslint-plugin-n": "^17.24.0",
|
|
65
|
-
"eslint-plugin-perfectionist": "^5.
|
|
66
|
-
"eslint-plugin-playwright": "^2.
|
|
65
|
+
"eslint-plugin-perfectionist": "^5.7.0",
|
|
66
|
+
"eslint-plugin-playwright": "^2.10.1",
|
|
67
67
|
"eslint-plugin-react-compiler": "19.1.0-rc.2",
|
|
68
68
|
"eslint-plugin-react-dom": "^2.13.0",
|
|
69
69
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
@@ -75,11 +75,11 @@
|
|
|
75
75
|
"eslint-plugin-react-x": "^2.13.0",
|
|
76
76
|
"eslint-plugin-regexp": "^3.1.0",
|
|
77
77
|
"eslint-plugin-storybook": "0.12.0",
|
|
78
|
-
"eslint-plugin-testing-library": "^7.16.
|
|
78
|
+
"eslint-plugin-testing-library": "^7.16.2",
|
|
79
79
|
"eslint-plugin-unicorn": "^63.0.0",
|
|
80
80
|
"globals": "^17.4.0",
|
|
81
81
|
"local-pkg": "^1.1.2",
|
|
82
|
-
"typescript-eslint": "^8.57.
|
|
82
|
+
"typescript-eslint": "^8.57.2"
|
|
83
83
|
},
|
|
84
84
|
"peerDependencies": {
|
|
85
85
|
"eslint": ">=9.38.0"
|