@jimmy.codes/eslint-config 6.26.0 → 6.28.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
@@ -64,7 +64,7 @@ interface RuleOptions {
64
64
  */
65
65
  '@next/next/inline-script-id'?: Linter.RuleEntry<[]>;
66
66
  /**
67
- * Prefer `next/script` component when using the inline script for Google Analytics.
67
+ * Prefer `@next/third-parties/google` when using the inline script for Google Analytics and Tag Manager.
68
68
  * @see https://nextjs.org/docs/messages/next-script-for-ga
69
69
  */
70
70
  '@next/next/next-script-for-ga'?: Linter.RuleEntry<[]>;
@@ -1132,6 +1132,11 @@ interface RuleOptions {
1132
1132
  * @see https://typescript-eslint.io/rules/no-useless-constructor
1133
1133
  */
1134
1134
  '@typescript-eslint/no-useless-constructor'?: Linter.RuleEntry<[]>;
1135
+ /**
1136
+ * Disallow default values that will never be used
1137
+ * @see https://typescript-eslint.io/rules/no-useless-default-assignment
1138
+ */
1139
+ '@typescript-eslint/no-useless-default-assignment'?: Linter.RuleEntry<[]>;
1135
1140
  /**
1136
1141
  * Disallow empty exports that don't change anything in a module file
1137
1142
  * @see https://typescript-eslint.io/rules/no-useless-empty-export
@@ -1748,6 +1753,16 @@ interface RuleOptions {
1748
1753
  * @see https://eslint.org/docs/latest/rules/curly
1749
1754
  */
1750
1755
  'curly'?: Linter.RuleEntry<Curly>;
1756
+ /**
1757
+ * Transforms the negation of a conjunction !(A && B) into the equivalent !A || !B according to De Morgan’s law
1758
+ * @see https://github.com/azat-io/eslint-plugin-de-morgan/blob/main/docs/no-negated-conjunction.md
1759
+ */
1760
+ 'de-morgan/no-negated-conjunction'?: Linter.RuleEntry<[]>;
1761
+ /**
1762
+ * Transforms the negation of a disjunction !(A || B) into the equivalent !A && !B according to De Morgan’s law
1763
+ * @see https://github.com/azat-io/eslint-plugin-de-morgan/blob/main/docs/no-negated-disjunction.md
1764
+ */
1765
+ 'de-morgan/no-negated-disjunction'?: Linter.RuleEntry<[]>;
1751
1766
  /**
1752
1767
  * Require `default` cases in `switch` statements
1753
1768
  * @see https://eslint.org/docs/latest/rules/default-case
@@ -2213,322 +2228,337 @@ interface RuleOptions {
2213
2228
  'jest-dom/prefer-to-have-value'?: Linter.RuleEntry<[]>;
2214
2229
  /**
2215
2230
  * Enforce `test` and `it` usage conventions
2216
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/consistent-test-it.md
2231
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/consistent-test-it.md
2217
2232
  */
2218
2233
  'jest/consistent-test-it'?: Linter.RuleEntry<JestConsistentTestIt>;
2219
2234
  /**
2220
2235
  * Enforce assertion to be made in a test body
2221
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/expect-expect.md
2236
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/expect-expect.md
2222
2237
  */
2223
2238
  'jest/expect-expect'?: Linter.RuleEntry<JestExpectExpect>;
2224
2239
  /**
2225
2240
  * Enforces a maximum number assertion calls in a test body
2226
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/max-expects.md
2241
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/max-expects.md
2227
2242
  */
2228
2243
  'jest/max-expects'?: Linter.RuleEntry<JestMaxExpects>;
2229
2244
  /**
2230
2245
  * Enforces a maximum depth to nested describe calls
2231
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/max-nested-describe.md
2246
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/max-nested-describe.md
2232
2247
  */
2233
2248
  'jest/max-nested-describe'?: Linter.RuleEntry<JestMaxNestedDescribe>;
2234
2249
  /**
2235
2250
  * Disallow alias methods
2236
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-alias-methods.md
2251
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/no-alias-methods.md
2237
2252
  */
2238
2253
  'jest/no-alias-methods'?: Linter.RuleEntry<[]>;
2239
2254
  /**
2240
2255
  * Disallow commented out tests
2241
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-commented-out-tests.md
2256
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/no-commented-out-tests.md
2242
2257
  */
2243
2258
  'jest/no-commented-out-tests'?: Linter.RuleEntry<[]>;
2244
2259
  /**
2245
2260
  * Disallow calling `expect` conditionally
2246
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-conditional-expect.md
2261
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/no-conditional-expect.md
2247
2262
  */
2248
2263
  'jest/no-conditional-expect'?: Linter.RuleEntry<[]>;
2249
2264
  /**
2250
2265
  * Disallow conditional logic in tests
2251
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-conditional-in-test.md
2266
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/no-conditional-in-test.md
2252
2267
  */
2253
2268
  'jest/no-conditional-in-test'?: Linter.RuleEntry<[]>;
2254
2269
  /**
2255
2270
  * Disallow confusing usages of jest.setTimeout
2256
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-confusing-set-timeout.md
2271
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/no-confusing-set-timeout.md
2257
2272
  */
2258
2273
  'jest/no-confusing-set-timeout'?: Linter.RuleEntry<[]>;
2259
2274
  /**
2260
2275
  * Disallow use of deprecated functions
2261
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-deprecated-functions.md
2276
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/no-deprecated-functions.md
2262
2277
  */
2263
2278
  'jest/no-deprecated-functions'?: Linter.RuleEntry<[]>;
2264
2279
  /**
2265
2280
  * Disallow disabled tests
2266
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-disabled-tests.md
2281
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/no-disabled-tests.md
2267
2282
  */
2268
2283
  'jest/no-disabled-tests'?: Linter.RuleEntry<[]>;
2269
2284
  /**
2270
2285
  * Disallow using a callback in asynchronous tests and hooks
2271
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-done-callback.md
2286
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/no-done-callback.md
2272
2287
  */
2273
2288
  'jest/no-done-callback'?: Linter.RuleEntry<[]>;
2274
2289
  /**
2275
2290
  * Disallow duplicate setup and teardown hooks
2276
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-duplicate-hooks.md
2291
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/no-duplicate-hooks.md
2277
2292
  */
2278
2293
  'jest/no-duplicate-hooks'?: Linter.RuleEntry<[]>;
2279
2294
  /**
2280
2295
  * Disallow using `exports` in files containing tests
2281
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-export.md
2296
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/no-export.md
2282
2297
  */
2283
2298
  'jest/no-export'?: Linter.RuleEntry<[]>;
2284
2299
  /**
2285
2300
  * Disallow focused tests
2286
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-focused-tests.md
2301
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/no-focused-tests.md
2287
2302
  */
2288
2303
  'jest/no-focused-tests'?: Linter.RuleEntry<[]>;
2289
2304
  /**
2290
2305
  * Disallow setup and teardown hooks
2291
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-hooks.md
2306
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/no-hooks.md
2292
2307
  */
2293
2308
  'jest/no-hooks'?: Linter.RuleEntry<JestNoHooks>;
2294
2309
  /**
2295
2310
  * Disallow identical titles
2296
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-identical-title.md
2311
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/no-identical-title.md
2297
2312
  */
2298
2313
  'jest/no-identical-title'?: Linter.RuleEntry<[]>;
2299
2314
  /**
2300
2315
  * Disallow string interpolation inside snapshots
2301
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-interpolation-in-snapshots.md
2316
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/no-interpolation-in-snapshots.md
2302
2317
  */
2303
2318
  'jest/no-interpolation-in-snapshots'?: Linter.RuleEntry<[]>;
2304
2319
  /**
2305
2320
  * Disallow Jasmine globals
2306
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-jasmine-globals.md
2321
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/no-jasmine-globals.md
2307
2322
  */
2308
2323
  'jest/no-jasmine-globals'?: Linter.RuleEntry<[]>;
2309
2324
  /**
2310
2325
  * Disallow large snapshots
2311
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-large-snapshots.md
2326
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/no-large-snapshots.md
2312
2327
  */
2313
2328
  'jest/no-large-snapshots'?: Linter.RuleEntry<JestNoLargeSnapshots>;
2314
2329
  /**
2315
2330
  * Disallow manually importing from `__mocks__`
2316
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-mocks-import.md
2331
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/no-mocks-import.md
2317
2332
  */
2318
2333
  'jest/no-mocks-import'?: Linter.RuleEntry<[]>;
2319
2334
  /**
2320
2335
  * Disallow specific `jest.` methods
2321
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-restricted-jest-methods.md
2336
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/no-restricted-jest-methods.md
2322
2337
  */
2323
2338
  'jest/no-restricted-jest-methods'?: Linter.RuleEntry<JestNoRestrictedJestMethods>;
2324
2339
  /**
2325
2340
  * Disallow specific matchers & modifiers
2326
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-restricted-matchers.md
2341
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/no-restricted-matchers.md
2327
2342
  */
2328
2343
  'jest/no-restricted-matchers'?: Linter.RuleEntry<JestNoRestrictedMatchers>;
2329
2344
  /**
2330
2345
  * Disallow using `expect` outside of `it` or `test` blocks
2331
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-standalone-expect.md
2346
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/no-standalone-expect.md
2332
2347
  */
2333
2348
  'jest/no-standalone-expect'?: Linter.RuleEntry<JestNoStandaloneExpect>;
2334
2349
  /**
2335
2350
  * Require using `.only` and `.skip` over `f` and `x`
2336
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-test-prefixes.md
2351
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/no-test-prefixes.md
2337
2352
  */
2338
2353
  'jest/no-test-prefixes'?: Linter.RuleEntry<[]>;
2339
2354
  /**
2340
2355
  * Disallow explicitly returning from tests
2341
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-test-return-statement.md
2356
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/no-test-return-statement.md
2342
2357
  */
2343
2358
  'jest/no-test-return-statement'?: Linter.RuleEntry<[]>;
2359
+ /**
2360
+ * Disallow unnecessary async function wrapper for expected promises
2361
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/no-unneeded-async-expect-function.md
2362
+ */
2363
+ 'jest/no-unneeded-async-expect-function'?: Linter.RuleEntry<[]>;
2344
2364
  /**
2345
2365
  * Disallow using `jest.mock()` factories without an explicit type parameter
2346
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-untyped-mock-factory.md
2366
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/no-untyped-mock-factory.md
2347
2367
  */
2348
2368
  'jest/no-untyped-mock-factory'?: Linter.RuleEntry<[]>;
2349
2369
  /**
2350
2370
  * Enforce padding around `afterAll` blocks
2351
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/padding-around-after-all-blocks.md
2371
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/padding-around-after-all-blocks.md
2352
2372
  */
2353
2373
  'jest/padding-around-after-all-blocks'?: Linter.RuleEntry<[]>;
2354
2374
  /**
2355
2375
  * Enforce padding around `afterEach` blocks
2356
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/padding-around-after-each-blocks.md
2376
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/padding-around-after-each-blocks.md
2357
2377
  */
2358
2378
  'jest/padding-around-after-each-blocks'?: Linter.RuleEntry<[]>;
2359
2379
  /**
2360
2380
  * Enforce padding around Jest functions
2361
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/padding-around-all.md
2381
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/padding-around-all.md
2362
2382
  */
2363
2383
  'jest/padding-around-all'?: Linter.RuleEntry<[]>;
2364
2384
  /**
2365
2385
  * Enforce padding around `beforeAll` blocks
2366
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/padding-around-before-all-blocks.md
2386
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/padding-around-before-all-blocks.md
2367
2387
  */
2368
2388
  'jest/padding-around-before-all-blocks'?: Linter.RuleEntry<[]>;
2369
2389
  /**
2370
2390
  * Enforce padding around `beforeEach` blocks
2371
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/padding-around-before-each-blocks.md
2391
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/padding-around-before-each-blocks.md
2372
2392
  */
2373
2393
  'jest/padding-around-before-each-blocks'?: Linter.RuleEntry<[]>;
2374
2394
  /**
2375
2395
  * Enforce padding around `describe` blocks
2376
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/padding-around-describe-blocks.md
2396
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/padding-around-describe-blocks.md
2377
2397
  */
2378
2398
  'jest/padding-around-describe-blocks'?: Linter.RuleEntry<[]>;
2379
2399
  /**
2380
2400
  * Enforce padding around `expect` groups
2381
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/padding-around-expect-groups.md
2401
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/padding-around-expect-groups.md
2382
2402
  */
2383
2403
  'jest/padding-around-expect-groups'?: Linter.RuleEntry<[]>;
2384
2404
  /**
2385
2405
  * Enforce padding around `test` and `it` blocks
2386
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/padding-around-test-blocks.md
2406
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/padding-around-test-blocks.md
2387
2407
  */
2388
2408
  'jest/padding-around-test-blocks'?: Linter.RuleEntry<[]>;
2389
2409
  /**
2390
- * Suggest using `toBeCalledWith()` or `toHaveBeenCalledWith()`
2391
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/prefer-called-with.md
2410
+ * Suggest using `toHaveBeenCalledWith()`
2411
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/prefer-called-with.md
2392
2412
  */
2393
2413
  'jest/prefer-called-with'?: Linter.RuleEntry<[]>;
2394
2414
  /**
2395
2415
  * Suggest using the built-in comparison matchers
2396
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/prefer-comparison-matcher.md
2416
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/prefer-comparison-matcher.md
2397
2417
  */
2398
2418
  'jest/prefer-comparison-matcher'?: Linter.RuleEntry<[]>;
2399
2419
  /**
2400
2420
  * Prefer using `.each` rather than manual loops
2401
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/prefer-each.md
2421
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/prefer-each.md
2402
2422
  */
2403
2423
  'jest/prefer-each'?: Linter.RuleEntry<[]>;
2404
2424
  /**
2405
2425
  * Prefer having the last statement in a test be an assertion
2406
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/prefer-ending-with-an-expect.md
2426
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/prefer-ending-with-an-expect.md
2407
2427
  */
2408
2428
  'jest/prefer-ending-with-an-expect'?: Linter.RuleEntry<JestPreferEndingWithAnExpect>;
2409
2429
  /**
2410
2430
  * Suggest using the built-in equality matchers
2411
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/prefer-equality-matcher.md
2431
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/prefer-equality-matcher.md
2412
2432
  */
2413
2433
  'jest/prefer-equality-matcher'?: Linter.RuleEntry<[]>;
2414
2434
  /**
2415
2435
  * Suggest using `expect.assertions()` OR `expect.hasAssertions()`
2416
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/prefer-expect-assertions.md
2436
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/prefer-expect-assertions.md
2417
2437
  */
2418
2438
  'jest/prefer-expect-assertions'?: Linter.RuleEntry<JestPreferExpectAssertions>;
2419
2439
  /**
2420
2440
  * Prefer `await expect(...).resolves` over `expect(await ...)` syntax
2421
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/prefer-expect-resolves.md
2441
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/prefer-expect-resolves.md
2422
2442
  */
2423
2443
  'jest/prefer-expect-resolves'?: Linter.RuleEntry<[]>;
2424
2444
  /**
2425
2445
  * Prefer having hooks in a consistent order
2426
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/prefer-hooks-in-order.md
2446
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/prefer-hooks-in-order.md
2427
2447
  */
2428
2448
  'jest/prefer-hooks-in-order'?: Linter.RuleEntry<[]>;
2429
2449
  /**
2430
2450
  * Suggest having hooks before any test cases
2431
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/prefer-hooks-on-top.md
2451
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/prefer-hooks-on-top.md
2432
2452
  */
2433
2453
  'jest/prefer-hooks-on-top'?: Linter.RuleEntry<[]>;
2434
2454
  /**
2435
2455
  * Prefer importing Jest globals
2436
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/prefer-importing-jest-globals.md
2456
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/prefer-importing-jest-globals.md
2437
2457
  */
2438
2458
  'jest/prefer-importing-jest-globals'?: Linter.RuleEntry<JestPreferImportingJestGlobals>;
2439
2459
  /**
2440
2460
  * Prefer `jest.mocked()` over `fn as jest.Mock`
2441
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/prefer-jest-mocked.md
2461
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/prefer-jest-mocked.md
2442
2462
  */
2443
2463
  'jest/prefer-jest-mocked'?: Linter.RuleEntry<[]>;
2444
2464
  /**
2445
2465
  * Enforce lowercase test names
2446
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/prefer-lowercase-title.md
2466
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/prefer-lowercase-title.md
2447
2467
  */
2448
2468
  'jest/prefer-lowercase-title'?: Linter.RuleEntry<JestPreferLowercaseTitle>;
2449
2469
  /**
2450
2470
  * Prefer mock resolved/rejected shorthands for promises
2451
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/prefer-mock-promise-shorthand.md
2471
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/prefer-mock-promise-shorthand.md
2452
2472
  */
2453
2473
  'jest/prefer-mock-promise-shorthand'?: Linter.RuleEntry<[]>;
2454
2474
  /**
2455
2475
  * Prefer including a hint with external snapshots
2456
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/prefer-snapshot-hint.md
2476
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/prefer-snapshot-hint.md
2457
2477
  */
2458
2478
  'jest/prefer-snapshot-hint'?: Linter.RuleEntry<JestPreferSnapshotHint>;
2459
2479
  /**
2460
2480
  * Suggest using `jest.spyOn()`
2461
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/prefer-spy-on.md
2481
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/prefer-spy-on.md
2462
2482
  */
2463
2483
  'jest/prefer-spy-on'?: Linter.RuleEntry<[]>;
2464
2484
  /**
2465
2485
  * Suggest using `toStrictEqual()`
2466
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/prefer-strict-equal.md
2486
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/prefer-strict-equal.md
2467
2487
  */
2468
2488
  'jest/prefer-strict-equal'?: Linter.RuleEntry<[]>;
2469
2489
  /**
2470
2490
  * Suggest using `toBe()` for primitive literals
2471
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/prefer-to-be.md
2491
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/prefer-to-be.md
2472
2492
  */
2473
2493
  'jest/prefer-to-be'?: Linter.RuleEntry<[]>;
2474
2494
  /**
2475
2495
  * Suggest using `toContain()`
2476
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/prefer-to-contain.md
2496
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/prefer-to-contain.md
2477
2497
  */
2478
2498
  'jest/prefer-to-contain'?: Linter.RuleEntry<[]>;
2499
+ /**
2500
+ * Suggest using `toHaveBeenCalled`
2501
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/prefer-to-have-been-called.md
2502
+ */
2503
+ 'jest/prefer-to-have-been-called'?: Linter.RuleEntry<[]>;
2504
+ /**
2505
+ * Suggest using `toHaveBeenCalledTimes()`
2506
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/prefer-to-have-been-called-times.md
2507
+ */
2508
+ 'jest/prefer-to-have-been-called-times'?: Linter.RuleEntry<[]>;
2479
2509
  /**
2480
2510
  * Suggest using `toHaveLength()`
2481
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/prefer-to-have-length.md
2511
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/prefer-to-have-length.md
2482
2512
  */
2483
2513
  'jest/prefer-to-have-length'?: Linter.RuleEntry<[]>;
2484
2514
  /**
2485
2515
  * Suggest using `test.todo`
2486
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/prefer-todo.md
2516
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/prefer-todo.md
2487
2517
  */
2488
2518
  'jest/prefer-todo'?: Linter.RuleEntry<[]>;
2489
2519
  /**
2490
2520
  * Require setup and teardown code to be within a hook
2491
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/require-hook.md
2521
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/require-hook.md
2492
2522
  */
2493
2523
  'jest/require-hook'?: Linter.RuleEntry<JestRequireHook>;
2494
2524
  /**
2495
2525
  * Require a message for `toThrow()`
2496
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/require-to-throw-message.md
2526
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/require-to-throw-message.md
2497
2527
  */
2498
2528
  'jest/require-to-throw-message'?: Linter.RuleEntry<[]>;
2499
2529
  /**
2500
2530
  * Require test cases and hooks to be inside a `describe` block
2501
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/require-top-level-describe.md
2531
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/require-top-level-describe.md
2502
2532
  */
2503
2533
  'jest/require-top-level-describe'?: Linter.RuleEntry<JestRequireTopLevelDescribe>;
2504
2534
  /**
2505
2535
  * Enforce unbound methods are called with their expected scope
2506
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/unbound-method.md
2536
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/unbound-method.md
2507
2537
  */
2508
2538
  'jest/unbound-method'?: Linter.RuleEntry<JestUnboundMethod>;
2509
2539
  /**
2510
2540
  * Enforce valid `describe()` callback
2511
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/valid-describe-callback.md
2541
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/valid-describe-callback.md
2512
2542
  */
2513
2543
  'jest/valid-describe-callback'?: Linter.RuleEntry<[]>;
2514
2544
  /**
2515
2545
  * Enforce valid `expect()` usage
2516
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/valid-expect.md
2546
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/valid-expect.md
2517
2547
  */
2518
2548
  'jest/valid-expect'?: Linter.RuleEntry<JestValidExpect>;
2519
2549
  /**
2520
2550
  * Require promises that have expectations in their chain to be valid
2521
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/valid-expect-in-promise.md
2551
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/valid-expect-in-promise.md
2522
2552
  */
2523
2553
  'jest/valid-expect-in-promise'?: Linter.RuleEntry<[]>;
2524
2554
  /**
2525
2555
  * Disallow mocking of non-existing module paths
2526
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/valid-mock-module-path.md
2556
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/valid-mock-module-path.md
2527
2557
  */
2528
2558
  'jest/valid-mock-module-path'?: Linter.RuleEntry<JestValidMockModulePath>;
2529
2559
  /**
2530
2560
  * Enforce valid titles
2531
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/valid-title.md
2561
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/valid-title.md
2532
2562
  */
2533
2563
  'jest/valid-title'?: Linter.RuleEntry<JestValidTitle>;
2534
2564
  /**
@@ -4341,6 +4371,11 @@ interface RuleOptions {
4341
4371
  * @see https://perfectionist.dev/rules/sort-enums
4342
4372
  */
4343
4373
  'perfectionist/sort-enums'?: Linter.RuleEntry<PerfectionistSortEnums>;
4374
+ /**
4375
+ * Enforce sorted export attributes.
4376
+ * @see https://perfectionist.dev/rules/sort-export-attributes
4377
+ */
4378
+ 'perfectionist/sort-export-attributes'?: Linter.RuleEntry<PerfectionistSortExportAttributes>;
4344
4379
  /**
4345
4380
  * Enforce sorted exports.
4346
4381
  * @see https://perfectionist.dev/rules/sort-exports
@@ -4351,6 +4386,11 @@ interface RuleOptions {
4351
4386
  * @see https://perfectionist.dev/rules/sort-heritage-clauses
4352
4387
  */
4353
4388
  'perfectionist/sort-heritage-clauses'?: Linter.RuleEntry<PerfectionistSortHeritageClauses>;
4389
+ /**
4390
+ * Enforce sorted import attributes.
4391
+ * @see https://perfectionist.dev/rules/sort-import-attributes
4392
+ */
4393
+ 'perfectionist/sort-import-attributes'?: Linter.RuleEntry<PerfectionistSortImportAttributes>;
4354
4394
  /**
4355
4395
  * Enforce sorted imports.
4356
4396
  * @see https://perfectionist.dev/rules/sort-imports
@@ -6095,6 +6135,11 @@ interface RuleOptions {
6095
6135
  * @see https://github.com/testing-library/eslint-plugin-testing-library/tree/main/docs/rules/prefer-user-event.md
6096
6136
  */
6097
6137
  'testing-library/prefer-user-event'?: Linter.RuleEntry<TestingLibraryPreferUserEvent>;
6138
+ /**
6139
+ * Suggest using userEvent with setup() instead of direct methods
6140
+ * @see https://github.com/testing-library/eslint-plugin-testing-library/tree/main/docs/rules/prefer-user-event-setup.md
6141
+ */
6142
+ 'testing-library/prefer-user-event-setup'?: Linter.RuleEntry<[]>;
6098
6143
  /**
6099
6144
  * Enforce a valid naming for return value from `render`
6100
6145
  * @see https://github.com/testing-library/eslint-plugin-testing-library/tree/main/docs/rules/render-result-naming-convention.md
@@ -6989,6 +7034,11 @@ interface RuleOptions {
6989
7034
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-test-return-statement.md
6990
7035
  */
6991
7036
  'vitest/no-test-return-statement'?: Linter.RuleEntry<[]>;
7037
+ /**
7038
+ * Disallow unnecessary async function wrapper for expected promises
7039
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-unneeded-async-expect-function.md
7040
+ */
7041
+ 'vitest/no-unneeded-async-expect-function'?: Linter.RuleEntry<[]>;
6992
7042
  /**
6993
7043
  * Enforce padding around `afterAll` blocks
6994
7044
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/padding-around-after-all-blocks.md
@@ -12340,27 +12390,25 @@ type PaddingLineBetweenStatements = {
12340
12390
  // ----- perfectionist/sort-array-includes -----
12341
12391
  type PerfectionistSortArrayIncludes = {
12342
12392
  fallbackSort?: {
12393
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12343
12394
  order?: ("asc" | "desc");
12344
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12345
12395
  };
12396
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12346
12397
  specialCharacters?: ("remove" | "trim" | "keep");
12347
12398
  ignoreCase?: boolean;
12348
12399
  alphabet?: string;
12349
12400
  locales?: (string | string[]);
12350
12401
  order?: ("asc" | "desc");
12351
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12352
- groupKind?: ("mixed" | "literals-first" | "spreads-first");
12353
12402
  customGroups?: ({
12354
- newlinesInside?: (("always" | "never") | number);
12355
12403
  fallbackSort?: {
12404
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12356
12405
  order?: ("asc" | "desc");
12357
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12358
12406
  };
12407
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12359
12408
  groupName: string;
12409
+ newlinesInside?: number;
12360
12410
  order?: ("asc" | "desc");
12361
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12362
- anyOf?: {
12363
- selector?: ("literal" | "spread");
12411
+ anyOf: {
12364
12412
  elementNamePattern?: (({
12365
12413
  pattern: string;
12366
12414
  flags?: string;
@@ -12368,17 +12416,17 @@ type PerfectionistSortArrayIncludes = {
12368
12416
  pattern: string;
12369
12417
  flags?: string;
12370
12418
  } | string));
12419
+ selector?: ("literal" | "spread");
12371
12420
  }[];
12372
12421
  } | {
12373
- newlinesInside?: (("always" | "never") | number);
12374
12422
  fallbackSort?: {
12423
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12375
12424
  order?: ("asc" | "desc");
12376
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12377
12425
  };
12426
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12378
12427
  groupName: string;
12428
+ newlinesInside?: number;
12379
12429
  order?: ("asc" | "desc");
12380
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12381
- selector?: ("literal" | "spread");
12382
12430
  elementNamePattern?: (({
12383
12431
  pattern: string;
12384
12432
  flags?: string;
@@ -12386,7 +12434,18 @@ type PerfectionistSortArrayIncludes = {
12386
12434
  pattern: string;
12387
12435
  flags?: string;
12388
12436
  } | string));
12437
+ selector?: ("literal" | "spread");
12438
+ })[];
12439
+ groups?: (string | [string, ...(string)[]] | {
12440
+ newlinesBetween: ("ignore" | number);
12441
+ } | {
12442
+ group: (string | [string, ...(string)[]]);
12443
+ commentAbove?: string;
12444
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12445
+ newlinesInside?: number;
12446
+ order?: ("asc" | "desc");
12389
12447
  })[];
12448
+ newlinesBetween?: ("ignore" | number);
12390
12449
  useConfigurationIf?: {
12391
12450
  allNamesMatchPattern?: (({
12392
12451
  pattern: string;
@@ -12419,51 +12478,46 @@ type PerfectionistSortArrayIncludes = {
12419
12478
  } | string)));
12420
12479
  });
12421
12480
  partitionByNewLine?: boolean;
12422
- newlinesBetween?: (("ignore" | "always" | "never") | number);
12423
- groups?: (string | string[] | {
12424
- newlinesBetween?: (("ignore" | "always" | "never") | number);
12425
- commentAbove?: string;
12426
- })[];
12427
12481
  }[];
12428
12482
  // ----- perfectionist/sort-classes -----
12429
12483
  type PerfectionistSortClasses = [] | [{
12430
12484
  fallbackSort?: {
12485
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12431
12486
  order?: ("asc" | "desc");
12432
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12433
12487
  };
12488
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12434
12489
  specialCharacters?: ("remove" | "trim" | "keep");
12435
12490
  ignoreCase?: boolean;
12436
12491
  alphabet?: string;
12437
12492
  locales?: (string | string[]);
12438
12493
  order?: ("asc" | "desc");
12439
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12440
12494
  customGroups?: ({
12441
- newlinesInside?: (("always" | "never") | number);
12442
12495
  fallbackSort?: {
12496
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12443
12497
  order?: ("asc" | "desc");
12444
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12445
12498
  };
12499
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12446
12500
  groupName: string;
12501
+ newlinesInside?: number;
12447
12502
  order?: ("asc" | "desc");
12448
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12449
- anyOf?: {
12450
- modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[];
12451
- selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method");
12452
- decoratorNamePattern?: (({
12503
+ anyOf: {
12504
+ elementNamePattern?: (({
12453
12505
  pattern: string;
12454
12506
  flags?: string;
12455
12507
  } | string)[] | ({
12456
12508
  pattern: string;
12457
12509
  flags?: string;
12458
12510
  } | string));
12459
- elementValuePattern?: (({
12511
+ modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[];
12512
+ selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method");
12513
+ decoratorNamePattern?: (({
12460
12514
  pattern: string;
12461
12515
  flags?: string;
12462
12516
  } | string)[] | ({
12463
12517
  pattern: string;
12464
12518
  flags?: string;
12465
12519
  } | string));
12466
- elementNamePattern?: (({
12520
+ elementValuePattern?: (({
12467
12521
  pattern: string;
12468
12522
  flags?: string;
12469
12523
  } | string)[] | ({
@@ -12472,31 +12526,31 @@ type PerfectionistSortClasses = [] | [{
12472
12526
  } | string));
12473
12527
  }[];
12474
12528
  } | {
12475
- newlinesInside?: (("always" | "never") | number);
12476
12529
  fallbackSort?: {
12530
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12477
12531
  order?: ("asc" | "desc");
12478
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12479
12532
  };
12533
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12480
12534
  groupName: string;
12535
+ newlinesInside?: number;
12481
12536
  order?: ("asc" | "desc");
12482
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12483
- modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[];
12484
- selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method");
12485
- decoratorNamePattern?: (({
12537
+ elementNamePattern?: (({
12486
12538
  pattern: string;
12487
12539
  flags?: string;
12488
12540
  } | string)[] | ({
12489
12541
  pattern: string;
12490
12542
  flags?: string;
12491
12543
  } | string));
12492
- elementValuePattern?: (({
12544
+ modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[];
12545
+ selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method");
12546
+ decoratorNamePattern?: (({
12493
12547
  pattern: string;
12494
12548
  flags?: string;
12495
12549
  } | string)[] | ({
12496
12550
  pattern: string;
12497
12551
  flags?: string;
12498
12552
  } | string));
12499
- elementNamePattern?: (({
12553
+ elementValuePattern?: (({
12500
12554
  pattern: string;
12501
12555
  flags?: string;
12502
12556
  } | string)[] | ({
@@ -12504,6 +12558,16 @@ type PerfectionistSortClasses = [] | [{
12504
12558
  flags?: string;
12505
12559
  } | string));
12506
12560
  })[];
12561
+ groups?: (string | [string, ...(string)[]] | {
12562
+ newlinesBetween: ("ignore" | number);
12563
+ } | {
12564
+ group: (string | [string, ...(string)[]]);
12565
+ commentAbove?: string;
12566
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12567
+ newlinesInside?: number;
12568
+ order?: ("asc" | "desc");
12569
+ })[];
12570
+ newlinesBetween?: ("ignore" | number);
12507
12571
  ignoreCallbackDependenciesPatterns?: (({
12508
12572
  pattern: string;
12509
12573
  flags?: string;
@@ -12534,24 +12598,64 @@ type PerfectionistSortClasses = [] | [{
12534
12598
  } | string)));
12535
12599
  });
12536
12600
  partitionByNewLine?: boolean;
12537
- newlinesBetween?: (("ignore" | "always" | "never") | number);
12538
- groups?: (string | string[] | {
12539
- newlinesBetween?: (("ignore" | "always" | "never") | number);
12540
- commentAbove?: string;
12541
- })[];
12542
12601
  }];
12543
12602
  // ----- perfectionist/sort-decorators -----
12544
- type PerfectionistSortDecorators = [] | [{
12603
+ type PerfectionistSortDecorators = {
12545
12604
  fallbackSort?: {
12605
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12546
12606
  order?: ("asc" | "desc");
12547
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12548
12607
  };
12608
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12549
12609
  specialCharacters?: ("remove" | "trim" | "keep");
12550
12610
  ignoreCase?: boolean;
12551
12611
  alphabet?: string;
12552
12612
  locales?: (string | string[]);
12553
12613
  order?: ("asc" | "desc");
12554
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12614
+ customGroups?: ({
12615
+ fallbackSort?: {
12616
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12617
+ order?: ("asc" | "desc");
12618
+ };
12619
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12620
+ groupName: string;
12621
+ newlinesInside?: number;
12622
+ order?: ("asc" | "desc");
12623
+ anyOf: {
12624
+ elementNamePattern?: (({
12625
+ pattern: string;
12626
+ flags?: string;
12627
+ } | string)[] | ({
12628
+ pattern: string;
12629
+ flags?: string;
12630
+ } | string));
12631
+ }[];
12632
+ } | {
12633
+ fallbackSort?: {
12634
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12635
+ order?: ("asc" | "desc");
12636
+ };
12637
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12638
+ groupName: string;
12639
+ newlinesInside?: number;
12640
+ order?: ("asc" | "desc");
12641
+ elementNamePattern?: (({
12642
+ pattern: string;
12643
+ flags?: string;
12644
+ } | string)[] | ({
12645
+ pattern: string;
12646
+ flags?: string;
12647
+ } | string));
12648
+ })[];
12649
+ groups?: (string | [string, ...(string)[]] | {
12650
+ newlinesBetween: ("ignore" | number);
12651
+ } | {
12652
+ group: (string | [string, ...(string)[]]);
12653
+ commentAbove?: string;
12654
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12655
+ newlinesInside?: number;
12656
+ order?: ("asc" | "desc");
12657
+ })[];
12658
+ newlinesBetween?: ("ignore" | number);
12555
12659
  sortOnParameters?: boolean;
12556
12660
  sortOnProperties?: boolean;
12557
12661
  sortOnAccessors?: boolean;
@@ -12579,46 +12683,38 @@ type PerfectionistSortDecorators = [] | [{
12579
12683
  flags?: string;
12580
12684
  } | string)));
12581
12685
  });
12582
- customGroups?: {
12583
- [k: string]: (string | string[]) | undefined;
12584
- };
12585
- groups?: (string | string[] | {
12586
- newlinesBetween?: (("ignore" | "always" | "never") | number);
12587
- commentAbove?: string;
12588
- })[];
12589
- }];
12686
+ partitionByNewLine?: boolean;
12687
+ }[];
12590
12688
  // ----- perfectionist/sort-enums -----
12591
12689
  type PerfectionistSortEnums = [] | [{
12592
12690
  fallbackSort?: {
12691
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12593
12692
  order?: ("asc" | "desc");
12594
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12595
12693
  };
12694
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12596
12695
  specialCharacters?: ("remove" | "trim" | "keep");
12597
12696
  ignoreCase?: boolean;
12598
12697
  alphabet?: string;
12599
12698
  locales?: (string | string[]);
12600
12699
  order?: ("asc" | "desc");
12601
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12602
12700
  customGroups?: ({
12603
- [k: string]: (string | string[]) | undefined;
12604
- } | ({
12605
- newlinesInside?: (("always" | "never") | number);
12606
12701
  fallbackSort?: {
12702
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12607
12703
  order?: ("asc" | "desc");
12608
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12609
12704
  };
12705
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12610
12706
  groupName: string;
12707
+ newlinesInside?: number;
12611
12708
  order?: ("asc" | "desc");
12612
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12613
- anyOf?: {
12614
- elementValuePattern?: (({
12709
+ anyOf: {
12710
+ elementNamePattern?: (({
12615
12711
  pattern: string;
12616
12712
  flags?: string;
12617
12713
  } | string)[] | ({
12618
12714
  pattern: string;
12619
12715
  flags?: string;
12620
12716
  } | string));
12621
- elementNamePattern?: (({
12717
+ elementValuePattern?: (({
12622
12718
  pattern: string;
12623
12719
  flags?: string;
12624
12720
  } | string)[] | ({
@@ -12627,31 +12723,40 @@ type PerfectionistSortEnums = [] | [{
12627
12723
  } | string));
12628
12724
  }[];
12629
12725
  } | {
12630
- newlinesInside?: (("always" | "never") | number);
12631
12726
  fallbackSort?: {
12727
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12632
12728
  order?: ("asc" | "desc");
12633
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12634
12729
  };
12730
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12635
12731
  groupName: string;
12732
+ newlinesInside?: number;
12636
12733
  order?: ("asc" | "desc");
12637
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12638
- elementValuePattern?: (({
12734
+ elementNamePattern?: (({
12639
12735
  pattern: string;
12640
12736
  flags?: string;
12641
12737
  } | string)[] | ({
12642
12738
  pattern: string;
12643
12739
  flags?: string;
12644
12740
  } | string));
12645
- elementNamePattern?: (({
12741
+ elementValuePattern?: (({
12646
12742
  pattern: string;
12647
12743
  flags?: string;
12648
12744
  } | string)[] | ({
12649
12745
  pattern: string;
12650
12746
  flags?: string;
12651
12747
  } | string));
12652
- })[]);
12653
- forceNumericSort?: boolean;
12654
- sortByValue?: boolean;
12748
+ })[];
12749
+ groups?: (string | [string, ...(string)[]] | {
12750
+ newlinesBetween: ("ignore" | number);
12751
+ } | {
12752
+ group: (string | [string, ...(string)[]]);
12753
+ commentAbove?: string;
12754
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12755
+ newlinesInside?: number;
12756
+ order?: ("asc" | "desc");
12757
+ })[];
12758
+ newlinesBetween?: ("ignore" | number);
12759
+ sortByValue?: ("always" | "ifNumericEnum" | "never");
12655
12760
  partitionByComment?: (boolean | (({
12656
12761
  pattern: string;
12657
12762
  flags?: string;
@@ -12675,37 +12780,29 @@ type PerfectionistSortEnums = [] | [{
12675
12780
  } | string)));
12676
12781
  });
12677
12782
  partitionByNewLine?: boolean;
12678
- newlinesBetween?: (("ignore" | "always" | "never") | number);
12679
- groups?: (string | string[] | {
12680
- newlinesBetween?: (("ignore" | "always" | "never") | number);
12681
- commentAbove?: string;
12682
- })[];
12683
12783
  }];
12684
- // ----- perfectionist/sort-exports -----
12685
- type PerfectionistSortExports = {
12784
+ // ----- perfectionist/sort-export-attributes -----
12785
+ type PerfectionistSortExportAttributes = {
12686
12786
  fallbackSort?: {
12787
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12687
12788
  order?: ("asc" | "desc");
12688
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12689
12789
  };
12790
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12690
12791
  specialCharacters?: ("remove" | "trim" | "keep");
12691
12792
  ignoreCase?: boolean;
12692
12793
  alphabet?: string;
12693
12794
  locales?: (string | string[]);
12694
12795
  order?: ("asc" | "desc");
12695
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12696
- groupKind?: ("mixed" | "values-first" | "types-first");
12697
12796
  customGroups?: ({
12698
- newlinesInside?: (("always" | "never") | number);
12699
12797
  fallbackSort?: {
12798
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12700
12799
  order?: ("asc" | "desc");
12701
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12702
12800
  };
12801
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12703
12802
  groupName: string;
12803
+ newlinesInside?: number;
12704
12804
  order?: ("asc" | "desc");
12705
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12706
- anyOf?: {
12707
- modifiers?: ("value" | "type")[];
12708
- selector?: "export";
12805
+ anyOf: {
12709
12806
  elementNamePattern?: (({
12710
12807
  pattern: string;
12711
12808
  flags?: string;
@@ -12715,16 +12812,14 @@ type PerfectionistSortExports = {
12715
12812
  } | string));
12716
12813
  }[];
12717
12814
  } | {
12718
- newlinesInside?: (("always" | "never") | number);
12719
12815
  fallbackSort?: {
12816
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12720
12817
  order?: ("asc" | "desc");
12721
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12722
12818
  };
12819
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12723
12820
  groupName: string;
12821
+ newlinesInside?: number;
12724
12822
  order?: ("asc" | "desc");
12725
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12726
- modifiers?: ("value" | "type")[];
12727
- selector?: "export";
12728
12823
  elementNamePattern?: (({
12729
12824
  pattern: string;
12730
12825
  flags?: string;
@@ -12733,6 +12828,16 @@ type PerfectionistSortExports = {
12733
12828
  flags?: string;
12734
12829
  } | string));
12735
12830
  })[];
12831
+ groups?: (string | [string, ...(string)[]] | {
12832
+ newlinesBetween: ("ignore" | number);
12833
+ } | {
12834
+ group: (string | [string, ...(string)[]]);
12835
+ commentAbove?: string;
12836
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12837
+ newlinesInside?: number;
12838
+ order?: ("asc" | "desc");
12839
+ })[];
12840
+ newlinesBetween?: ("ignore" | number);
12736
12841
  partitionByComment?: (boolean | (({
12737
12842
  pattern: string;
12738
12843
  flags?: string;
@@ -12756,70 +12861,29 @@ type PerfectionistSortExports = {
12756
12861
  } | string)));
12757
12862
  });
12758
12863
  partitionByNewLine?: boolean;
12759
- newlinesBetween?: (("ignore" | "always" | "never") | number);
12760
- groups?: (string | string[] | {
12761
- newlinesBetween?: (("ignore" | "always" | "never") | number);
12762
- commentAbove?: string;
12763
- })[];
12764
12864
  }[];
12765
- // ----- perfectionist/sort-heritage-clauses -----
12766
- type PerfectionistSortHeritageClauses = [] | [{
12865
+ // ----- perfectionist/sort-exports -----
12866
+ type PerfectionistSortExports = {
12767
12867
  fallbackSort?: {
12868
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12768
12869
  order?: ("asc" | "desc");
12769
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12770
12870
  };
12771
- specialCharacters?: ("remove" | "trim" | "keep");
12772
- ignoreCase?: boolean;
12773
- alphabet?: string;
12774
- locales?: (string | string[]);
12775
- order?: ("asc" | "desc");
12776
12871
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12777
- customGroups?: {
12778
- [k: string]: (string | string[]) | undefined;
12779
- };
12780
- groups?: (string | string[] | {
12781
- newlinesBetween?: (("ignore" | "always" | "never") | number);
12782
- commentAbove?: string;
12783
- })[];
12784
- }];
12785
- // ----- perfectionist/sort-imports -----
12786
- type PerfectionistSortImports = {
12787
- fallbackSort?: {
12788
- order?: ("asc" | "desc");
12789
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12790
- };
12791
12872
  specialCharacters?: ("remove" | "trim" | "keep");
12792
12873
  ignoreCase?: boolean;
12793
12874
  alphabet?: string;
12794
12875
  locales?: (string | string[]);
12795
12876
  order?: ("asc" | "desc");
12796
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12797
12877
  customGroups?: ({
12798
- value?: {
12799
- [k: string]: (string | string[]) | undefined;
12800
- };
12801
- type?: {
12802
- [k: string]: (string | string[]) | undefined;
12803
- };
12804
- } | ({
12805
- newlinesInside?: (("always" | "never") | number);
12806
12878
  fallbackSort?: {
12879
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12807
12880
  order?: ("asc" | "desc");
12808
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12809
12881
  };
12882
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12810
12883
  groupName: string;
12884
+ newlinesInside?: number;
12811
12885
  order?: ("asc" | "desc");
12812
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12813
- anyOf?: {
12814
- modifiers?: ("default" | "named" | "require" | "side-effect" | "ts-equals" | "type" | "value" | "wildcard")[];
12815
- selector?: ("side-effect-style" | "tsconfig-path" | "side-effect" | "external" | "internal" | "builtin" | "sibling" | "subpath" | "import" | "parent" | "index" | "style" | "type");
12816
- elementValuePattern?: (({
12817
- pattern: string;
12818
- flags?: string;
12819
- } | string)[] | ({
12820
- pattern: string;
12821
- flags?: string;
12822
- } | string));
12886
+ anyOf: {
12823
12887
  elementNamePattern?: (({
12824
12888
  pattern: string;
12825
12889
  flags?: string;
@@ -12827,25 +12891,18 @@ type PerfectionistSortImports = {
12827
12891
  pattern: string;
12828
12892
  flags?: string;
12829
12893
  } | string));
12894
+ modifiers?: ("value" | "type" | "named" | "wildcard" | "multiline" | "singleline")[];
12895
+ selector?: "export";
12830
12896
  }[];
12831
12897
  } | {
12832
- newlinesInside?: (("always" | "never") | number);
12833
12898
  fallbackSort?: {
12899
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12834
12900
  order?: ("asc" | "desc");
12835
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12836
12901
  };
12902
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12837
12903
  groupName: string;
12904
+ newlinesInside?: number;
12838
12905
  order?: ("asc" | "desc");
12839
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12840
- modifiers?: ("default" | "named" | "require" | "side-effect" | "ts-equals" | "type" | "value" | "wildcard")[];
12841
- selector?: ("side-effect-style" | "tsconfig-path" | "side-effect" | "external" | "internal" | "builtin" | "sibling" | "subpath" | "import" | "parent" | "index" | "style" | "type");
12842
- elementValuePattern?: (({
12843
- pattern: string;
12844
- flags?: string;
12845
- } | string)[] | ({
12846
- pattern: string;
12847
- flags?: string;
12848
- } | string));
12849
12906
  elementNamePattern?: (({
12850
12907
  pattern: string;
12851
12908
  flags?: string;
@@ -12853,15 +12910,19 @@ type PerfectionistSortImports = {
12853
12910
  pattern: string;
12854
12911
  flags?: string;
12855
12912
  } | string));
12856
- })[]);
12857
- tsconfig?: {
12858
- rootDir: string;
12859
- filename?: string;
12860
- };
12861
- maxLineLength?: number;
12862
- sortSideEffects?: boolean;
12863
- environment?: ("node" | "bun");
12864
- tsconfigRootDir?: string;
12913
+ modifiers?: ("value" | "type" | "named" | "wildcard" | "multiline" | "singleline")[];
12914
+ selector?: "export";
12915
+ })[];
12916
+ groups?: (string | [string, ...(string)[]] | {
12917
+ newlinesBetween: ("ignore" | number);
12918
+ } | {
12919
+ group: (string | [string, ...(string)[]]);
12920
+ commentAbove?: string;
12921
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12922
+ newlinesInside?: number;
12923
+ order?: ("asc" | "desc");
12924
+ })[];
12925
+ newlinesBetween?: ("ignore" | number);
12865
12926
  partitionByComment?: (boolean | (({
12866
12927
  pattern: string;
12867
12928
  flags?: string;
@@ -12885,54 +12946,29 @@ type PerfectionistSortImports = {
12885
12946
  } | string)));
12886
12947
  });
12887
12948
  partitionByNewLine?: boolean;
12888
- newlinesBetween?: (("ignore" | "always" | "never") | number);
12889
- internalPattern?: (({
12890
- pattern: string;
12891
- flags?: string;
12892
- } | string)[] | ({
12893
- pattern: string;
12894
- flags?: string;
12895
- } | string));
12896
- groups?: (string | string[] | {
12897
- newlinesBetween?: (("ignore" | "always" | "never") | number);
12898
- commentAbove?: string;
12899
- })[];
12900
12949
  }[];
12901
- // ----- perfectionist/sort-interfaces -----
12902
- type PerfectionistSortInterfaces = {
12950
+ // ----- perfectionist/sort-heritage-clauses -----
12951
+ type PerfectionistSortHeritageClauses = {
12903
12952
  fallbackSort?: {
12953
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12904
12954
  order?: ("asc" | "desc");
12905
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12906
- sortBy?: ("name" | "value");
12907
12955
  };
12956
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12908
12957
  specialCharacters?: ("remove" | "trim" | "keep");
12909
12958
  ignoreCase?: boolean;
12910
12959
  alphabet?: string;
12911
12960
  locales?: (string | string[]);
12912
12961
  order?: ("asc" | "desc");
12913
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12914
12962
  customGroups?: ({
12915
- [k: string]: (string | string[]) | undefined;
12916
- } | ({
12917
- newlinesInside?: (("always" | "never") | number);
12918
12963
  fallbackSort?: {
12964
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12919
12965
  order?: ("asc" | "desc");
12920
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12921
- sortBy?: ("name" | "value");
12922
12966
  };
12967
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12923
12968
  groupName: string;
12969
+ newlinesInside?: number;
12924
12970
  order?: ("asc" | "desc");
12925
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12926
- anyOf?: {
12927
- modifiers?: ("optional" | "required" | "multiline")[];
12928
- selector?: ("index-signature" | "member" | "method" | "multiline" | "property");
12929
- elementValuePattern?: (({
12930
- pattern: string;
12931
- flags?: string;
12932
- } | string)[] | ({
12933
- pattern: string;
12934
- flags?: string;
12935
- } | string));
12971
+ anyOf: {
12936
12972
  elementNamePattern?: (({
12937
12973
  pattern: string;
12938
12974
  flags?: string;
@@ -12940,53 +12976,207 @@ type PerfectionistSortInterfaces = {
12940
12976
  pattern: string;
12941
12977
  flags?: string;
12942
12978
  } | string));
12943
- sortBy?: ("name" | "value");
12944
12979
  }[];
12945
12980
  } | {
12946
- newlinesInside?: (("always" | "never") | number);
12947
12981
  fallbackSort?: {
12982
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12948
12983
  order?: ("asc" | "desc");
12949
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12950
- sortBy?: ("name" | "value");
12951
12984
  };
12985
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12952
12986
  groupName: string;
12987
+ newlinesInside?: number;
12953
12988
  order?: ("asc" | "desc");
12954
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12955
- modifiers?: ("optional" | "required" | "multiline")[];
12956
- selector?: ("index-signature" | "member" | "method" | "multiline" | "property");
12957
- elementValuePattern?: (({
12989
+ elementNamePattern?: (({
12958
12990
  pattern: string;
12959
12991
  flags?: string;
12960
12992
  } | string)[] | ({
12961
12993
  pattern: string;
12962
12994
  flags?: string;
12963
12995
  } | string));
12964
- elementNamePattern?: (({
12965
- pattern: string;
12966
- flags?: string;
12996
+ })[];
12997
+ groups?: (string | [string, ...(string)[]] | {
12998
+ newlinesBetween: ("ignore" | number);
12999
+ } | {
13000
+ group: (string | [string, ...(string)[]]);
13001
+ commentAbove?: string;
13002
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13003
+ newlinesInside?: number;
13004
+ order?: ("asc" | "desc");
13005
+ })[];
13006
+ newlinesBetween?: ("ignore" | number);
13007
+ partitionByNewLine?: boolean;
13008
+ partitionByComment?: (boolean | (({
13009
+ pattern: string;
13010
+ flags?: string;
13011
+ } | string)[] | ({
13012
+ pattern: string;
13013
+ flags?: string;
13014
+ } | string)) | {
13015
+ block?: (boolean | (({
13016
+ pattern: string;
13017
+ flags?: string;
12967
13018
  } | string)[] | ({
12968
13019
  pattern: string;
12969
13020
  flags?: string;
12970
- } | string));
12971
- sortBy?: ("name" | "value");
12972
- })[]);
12973
- groupKind?: ("mixed" | "required-first" | "optional-first");
12974
- useConfigurationIf?: {
12975
- allNamesMatchPattern?: (({
13021
+ } | string)));
13022
+ line?: (boolean | (({
13023
+ pattern: string;
13024
+ flags?: string;
13025
+ } | string)[] | ({
13026
+ pattern: string;
13027
+ flags?: string;
13028
+ } | string)));
13029
+ });
13030
+ }[];
13031
+ // ----- perfectionist/sort-import-attributes -----
13032
+ type PerfectionistSortImportAttributes = {
13033
+ fallbackSort?: {
13034
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13035
+ order?: ("asc" | "desc");
13036
+ };
13037
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13038
+ specialCharacters?: ("remove" | "trim" | "keep");
13039
+ ignoreCase?: boolean;
13040
+ alphabet?: string;
13041
+ locales?: (string | string[]);
13042
+ order?: ("asc" | "desc");
13043
+ customGroups?: ({
13044
+ fallbackSort?: {
13045
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13046
+ order?: ("asc" | "desc");
13047
+ };
13048
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13049
+ groupName: string;
13050
+ newlinesInside?: number;
13051
+ order?: ("asc" | "desc");
13052
+ anyOf: {
13053
+ elementNamePattern?: (({
13054
+ pattern: string;
13055
+ flags?: string;
13056
+ } | string)[] | ({
13057
+ pattern: string;
13058
+ flags?: string;
13059
+ } | string));
13060
+ }[];
13061
+ } | {
13062
+ fallbackSort?: {
13063
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13064
+ order?: ("asc" | "desc");
13065
+ };
13066
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13067
+ groupName: string;
13068
+ newlinesInside?: number;
13069
+ order?: ("asc" | "desc");
13070
+ elementNamePattern?: (({
12976
13071
  pattern: string;
12977
13072
  flags?: string;
12978
13073
  } | string)[] | ({
12979
13074
  pattern: string;
12980
13075
  flags?: string;
12981
13076
  } | string));
12982
- declarationMatchesPattern?: (({
13077
+ })[];
13078
+ groups?: (string | [string, ...(string)[]] | {
13079
+ newlinesBetween: ("ignore" | number);
13080
+ } | {
13081
+ group: (string | [string, ...(string)[]]);
13082
+ commentAbove?: string;
13083
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13084
+ newlinesInside?: number;
13085
+ order?: ("asc" | "desc");
13086
+ })[];
13087
+ newlinesBetween?: ("ignore" | number);
13088
+ partitionByComment?: (boolean | (({
13089
+ pattern: string;
13090
+ flags?: string;
13091
+ } | string)[] | ({
13092
+ pattern: string;
13093
+ flags?: string;
13094
+ } | string)) | {
13095
+ block?: (boolean | (({
13096
+ pattern: string;
13097
+ flags?: string;
13098
+ } | string)[] | ({
13099
+ pattern: string;
13100
+ flags?: string;
13101
+ } | string)));
13102
+ line?: (boolean | (({
13103
+ pattern: string;
13104
+ flags?: string;
13105
+ } | string)[] | ({
13106
+ pattern: string;
13107
+ flags?: string;
13108
+ } | string)));
13109
+ });
13110
+ partitionByNewLine?: boolean;
13111
+ }[];
13112
+ // ----- perfectionist/sort-imports -----
13113
+ type PerfectionistSortImports = {
13114
+ fallbackSort?: {
13115
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
13116
+ order?: ("asc" | "desc");
13117
+ };
13118
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
13119
+ specialCharacters?: ("remove" | "trim" | "keep");
13120
+ ignoreCase?: boolean;
13121
+ alphabet?: string;
13122
+ locales?: (string | string[]);
13123
+ order?: ("asc" | "desc");
13124
+ customGroups?: ({
13125
+ fallbackSort?: {
13126
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
13127
+ order?: ("asc" | "desc");
13128
+ };
13129
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
13130
+ groupName: string;
13131
+ newlinesInside?: number;
13132
+ order?: ("asc" | "desc");
13133
+ anyOf: {
13134
+ elementNamePattern?: (({
13135
+ pattern: string;
13136
+ flags?: string;
13137
+ } | string)[] | ({
13138
+ pattern: string;
13139
+ flags?: string;
13140
+ } | string));
13141
+ modifiers?: ("default" | "multiline" | "named" | "require" | "side-effect" | "singleline" | "ts-equals" | "type" | "value" | "wildcard")[];
13142
+ selector?: ("side-effect-style" | "tsconfig-path" | "side-effect" | "external" | "internal" | "builtin" | "sibling" | "subpath" | "import" | "parent" | "index" | "style" | "type");
13143
+ }[];
13144
+ } | {
13145
+ fallbackSort?: {
13146
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
13147
+ order?: ("asc" | "desc");
13148
+ };
13149
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
13150
+ groupName: string;
13151
+ newlinesInside?: number;
13152
+ order?: ("asc" | "desc");
13153
+ elementNamePattern?: (({
12983
13154
  pattern: string;
12984
13155
  flags?: string;
12985
13156
  } | string)[] | ({
12986
13157
  pattern: string;
12987
13158
  flags?: string;
12988
13159
  } | string));
13160
+ modifiers?: ("default" | "multiline" | "named" | "require" | "side-effect" | "singleline" | "ts-equals" | "type" | "value" | "wildcard")[];
13161
+ selector?: ("side-effect-style" | "tsconfig-path" | "side-effect" | "external" | "internal" | "builtin" | "sibling" | "subpath" | "import" | "parent" | "index" | "style" | "type");
13162
+ })[];
13163
+ groups?: (string | [string, ...(string)[]] | {
13164
+ newlinesBetween: ("ignore" | number);
13165
+ } | {
13166
+ group: (string | [string, ...(string)[]]);
13167
+ commentAbove?: string;
13168
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
13169
+ newlinesInside?: number;
13170
+ order?: ("asc" | "desc");
13171
+ })[];
13172
+ newlinesBetween?: ("ignore" | number);
13173
+ tsconfig?: {
13174
+ rootDir: string;
13175
+ filename?: string;
12989
13176
  };
13177
+ maxLineLength?: number;
13178
+ sortSideEffects?: boolean;
13179
+ environment?: ("node" | "bun");
12990
13180
  partitionByComment?: (boolean | (({
12991
13181
  pattern: string;
12992
13182
  flags?: string;
@@ -13010,43 +13200,169 @@ type PerfectionistSortInterfaces = {
13010
13200
  } | string)));
13011
13201
  });
13012
13202
  partitionByNewLine?: boolean;
13013
- newlinesBetween?: (("ignore" | "always" | "never") | number);
13014
- ignorePattern?: (({
13203
+ internalPattern?: (({
13015
13204
  pattern: string;
13016
13205
  flags?: string;
13017
13206
  } | string)[] | ({
13018
13207
  pattern: string;
13019
13208
  flags?: string;
13020
13209
  } | string));
13021
- sortBy?: ("name" | "value");
13022
- groups?: (string | string[] | {
13023
- newlinesBetween?: (("ignore" | "always" | "never") | number);
13210
+ }[];
13211
+ // ----- perfectionist/sort-interfaces -----
13212
+ type PerfectionistSortInterfaces = {
13213
+ fallbackSort?: {
13214
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13215
+ order?: ("asc" | "desc");
13216
+ sortBy?: ("name" | "value");
13217
+ };
13218
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13219
+ specialCharacters?: ("remove" | "trim" | "keep");
13220
+ ignoreCase?: boolean;
13221
+ alphabet?: string;
13222
+ locales?: (string | string[]);
13223
+ order?: ("asc" | "desc");
13224
+ customGroups?: ({
13225
+ fallbackSort?: {
13226
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13227
+ order?: ("asc" | "desc");
13228
+ sortBy?: ("name" | "value");
13229
+ };
13230
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13231
+ groupName: string;
13232
+ newlinesInside?: number;
13233
+ order?: ("asc" | "desc");
13234
+ anyOf: {
13235
+ elementNamePattern?: (({
13236
+ pattern: string;
13237
+ flags?: string;
13238
+ } | string)[] | ({
13239
+ pattern: string;
13240
+ flags?: string;
13241
+ } | string));
13242
+ modifiers?: ("optional" | "required" | "multiline")[];
13243
+ selector?: ("index-signature" | "member" | "method" | "property");
13244
+ elementValuePattern?: (({
13245
+ pattern: string;
13246
+ flags?: string;
13247
+ } | string)[] | ({
13248
+ pattern: string;
13249
+ flags?: string;
13250
+ } | string));
13251
+ sortBy?: ("name" | "value");
13252
+ }[];
13253
+ } | {
13254
+ fallbackSort?: {
13255
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13256
+ order?: ("asc" | "desc");
13257
+ sortBy?: ("name" | "value");
13258
+ };
13259
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13260
+ groupName: string;
13261
+ newlinesInside?: number;
13262
+ order?: ("asc" | "desc");
13263
+ elementNamePattern?: (({
13264
+ pattern: string;
13265
+ flags?: string;
13266
+ } | string)[] | ({
13267
+ pattern: string;
13268
+ flags?: string;
13269
+ } | string));
13270
+ modifiers?: ("optional" | "required" | "multiline")[];
13271
+ selector?: ("index-signature" | "member" | "method" | "property");
13272
+ elementValuePattern?: (({
13273
+ pattern: string;
13274
+ flags?: string;
13275
+ } | string)[] | ({
13276
+ pattern: string;
13277
+ flags?: string;
13278
+ } | string));
13279
+ sortBy?: ("name" | "value");
13280
+ })[];
13281
+ groups?: (string | [string, ...(string)[]] | {
13282
+ newlinesBetween: ("ignore" | number);
13283
+ } | {
13284
+ group: (string | [string, ...(string)[]]);
13024
13285
  commentAbove?: string;
13286
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13287
+ newlinesInside?: number;
13288
+ order?: ("asc" | "desc");
13025
13289
  })[];
13290
+ newlinesBetween?: ("ignore" | number);
13291
+ useConfigurationIf?: {
13292
+ allNamesMatchPattern?: (({
13293
+ pattern: string;
13294
+ flags?: string;
13295
+ } | string)[] | ({
13296
+ pattern: string;
13297
+ flags?: string;
13298
+ } | string));
13299
+ hasNumericKeysOnly?: boolean;
13300
+ declarationCommentMatchesPattern?: (({
13301
+ scope?: ("shallow" | "deep");
13302
+ pattern: string;
13303
+ flags?: string;
13304
+ } | string)[] | ({
13305
+ scope?: ("shallow" | "deep");
13306
+ pattern: string;
13307
+ flags?: string;
13308
+ } | string));
13309
+ declarationMatchesPattern?: (({
13310
+ scope?: ("shallow" | "deep");
13311
+ pattern: string;
13312
+ flags?: string;
13313
+ } | string)[] | ({
13314
+ scope?: ("shallow" | "deep");
13315
+ pattern: string;
13316
+ flags?: string;
13317
+ } | string));
13318
+ };
13319
+ partitionByComment?: (boolean | (({
13320
+ pattern: string;
13321
+ flags?: string;
13322
+ } | string)[] | ({
13323
+ pattern: string;
13324
+ flags?: string;
13325
+ } | string)) | {
13326
+ block?: (boolean | (({
13327
+ pattern: string;
13328
+ flags?: string;
13329
+ } | string)[] | ({
13330
+ pattern: string;
13331
+ flags?: string;
13332
+ } | string)));
13333
+ line?: (boolean | (({
13334
+ pattern: string;
13335
+ flags?: string;
13336
+ } | string)[] | ({
13337
+ pattern: string;
13338
+ flags?: string;
13339
+ } | string)));
13340
+ });
13341
+ partitionByNewLine?: boolean;
13342
+ sortBy?: ("name" | "value");
13026
13343
  }[];
13027
13344
  // ----- perfectionist/sort-intersection-types -----
13028
13345
  type PerfectionistSortIntersectionTypes = {
13029
13346
  fallbackSort?: {
13347
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13030
13348
  order?: ("asc" | "desc");
13031
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13032
13349
  };
13350
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13033
13351
  specialCharacters?: ("remove" | "trim" | "keep");
13034
13352
  ignoreCase?: boolean;
13035
13353
  alphabet?: string;
13036
13354
  locales?: (string | string[]);
13037
13355
  order?: ("asc" | "desc");
13038
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13039
13356
  customGroups?: ({
13040
- newlinesInside?: (("always" | "never") | number);
13041
13357
  fallbackSort?: {
13358
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13042
13359
  order?: ("asc" | "desc");
13043
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13044
13360
  };
13361
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13045
13362
  groupName: string;
13363
+ newlinesInside?: number;
13046
13364
  order?: ("asc" | "desc");
13047
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13048
- anyOf?: {
13049
- selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
13365
+ anyOf: {
13050
13366
  elementNamePattern?: (({
13051
13367
  pattern: string;
13052
13368
  flags?: string;
@@ -13054,17 +13370,17 @@ type PerfectionistSortIntersectionTypes = {
13054
13370
  pattern: string;
13055
13371
  flags?: string;
13056
13372
  } | string));
13373
+ selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
13057
13374
  }[];
13058
13375
  } | {
13059
- newlinesInside?: (("always" | "never") | number);
13060
13376
  fallbackSort?: {
13377
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13061
13378
  order?: ("asc" | "desc");
13062
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13063
13379
  };
13380
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13064
13381
  groupName: string;
13382
+ newlinesInside?: number;
13065
13383
  order?: ("asc" | "desc");
13066
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13067
- selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
13068
13384
  elementNamePattern?: (({
13069
13385
  pattern: string;
13070
13386
  flags?: string;
@@ -13072,7 +13388,18 @@ type PerfectionistSortIntersectionTypes = {
13072
13388
  pattern: string;
13073
13389
  flags?: string;
13074
13390
  } | string));
13391
+ selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
13392
+ })[];
13393
+ groups?: (string | [string, ...(string)[]] | {
13394
+ newlinesBetween: ("ignore" | number);
13395
+ } | {
13396
+ group: (string | [string, ...(string)[]]);
13397
+ commentAbove?: string;
13398
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13399
+ newlinesInside?: number;
13400
+ order?: ("asc" | "desc");
13075
13401
  })[];
13402
+ newlinesBetween?: ("ignore" | number);
13076
13403
  partitionByComment?: (boolean | (({
13077
13404
  pattern: string;
13078
13405
  flags?: string;
@@ -13096,46 +13423,39 @@ type PerfectionistSortIntersectionTypes = {
13096
13423
  } | string)));
13097
13424
  });
13098
13425
  partitionByNewLine?: boolean;
13099
- newlinesBetween?: (("ignore" | "always" | "never") | number);
13100
- groups?: (string | string[] | {
13101
- newlinesBetween?: (("ignore" | "always" | "never") | number);
13102
- commentAbove?: string;
13103
- })[];
13104
13426
  }[];
13105
13427
  // ----- perfectionist/sort-jsx-props -----
13106
13428
  type PerfectionistSortJsxProps = {
13107
13429
  fallbackSort?: {
13430
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13108
13431
  order?: ("asc" | "desc");
13109
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13110
13432
  };
13433
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13111
13434
  specialCharacters?: ("remove" | "trim" | "keep");
13112
13435
  ignoreCase?: boolean;
13113
13436
  alphabet?: string;
13114
13437
  locales?: (string | string[]);
13115
13438
  order?: ("asc" | "desc");
13116
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13117
13439
  customGroups?: ({
13118
- [k: string]: (string | string[]) | undefined;
13119
- } | ({
13120
- newlinesInside?: (("always" | "never") | number);
13121
13440
  fallbackSort?: {
13441
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13122
13442
  order?: ("asc" | "desc");
13123
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13124
13443
  };
13444
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13125
13445
  groupName: string;
13446
+ newlinesInside?: number;
13126
13447
  order?: ("asc" | "desc");
13127
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13128
- anyOf?: {
13129
- modifiers?: ("shorthand" | "multiline")[];
13130
- selector?: ("multiline" | "prop" | "shorthand");
13131
- elementValuePattern?: (({
13448
+ anyOf: {
13449
+ elementNamePattern?: (({
13132
13450
  pattern: string;
13133
13451
  flags?: string;
13134
13452
  } | string)[] | ({
13135
13453
  pattern: string;
13136
13454
  flags?: string;
13137
13455
  } | string));
13138
- elementNamePattern?: (({
13456
+ modifiers?: ("shorthand" | "multiline")[];
13457
+ selector?: "prop";
13458
+ elementValuePattern?: (({
13139
13459
  pattern: string;
13140
13460
  flags?: string;
13141
13461
  } | string)[] | ({
@@ -13144,31 +13464,41 @@ type PerfectionistSortJsxProps = {
13144
13464
  } | string));
13145
13465
  }[];
13146
13466
  } | {
13147
- newlinesInside?: (("always" | "never") | number);
13148
13467
  fallbackSort?: {
13468
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13149
13469
  order?: ("asc" | "desc");
13150
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13151
13470
  };
13471
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13152
13472
  groupName: string;
13473
+ newlinesInside?: number;
13153
13474
  order?: ("asc" | "desc");
13154
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13155
- modifiers?: ("shorthand" | "multiline")[];
13156
- selector?: ("multiline" | "prop" | "shorthand");
13157
- elementValuePattern?: (({
13475
+ elementNamePattern?: (({
13158
13476
  pattern: string;
13159
13477
  flags?: string;
13160
13478
  } | string)[] | ({
13161
13479
  pattern: string;
13162
13480
  flags?: string;
13163
13481
  } | string));
13164
- elementNamePattern?: (({
13482
+ modifiers?: ("shorthand" | "multiline")[];
13483
+ selector?: "prop";
13484
+ elementValuePattern?: (({
13165
13485
  pattern: string;
13166
13486
  flags?: string;
13167
13487
  } | string)[] | ({
13168
13488
  pattern: string;
13169
13489
  flags?: string;
13170
13490
  } | string));
13171
- })[]);
13491
+ })[];
13492
+ groups?: (string | [string, ...(string)[]] | {
13493
+ newlinesBetween: ("ignore" | number);
13494
+ } | {
13495
+ group: (string | [string, ...(string)[]]);
13496
+ commentAbove?: string;
13497
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13498
+ newlinesInside?: number;
13499
+ order?: ("asc" | "desc");
13500
+ })[];
13501
+ newlinesBetween?: ("ignore" | number);
13172
13502
  useConfigurationIf?: {
13173
13503
  allNamesMatchPattern?: (({
13174
13504
  pattern: string;
@@ -13186,41 +13516,29 @@ type PerfectionistSortJsxProps = {
13186
13516
  } | string));
13187
13517
  };
13188
13518
  partitionByNewLine?: boolean;
13189
- newlinesBetween?: (("ignore" | "always" | "never") | number);
13190
- ignorePattern?: (({
13191
- pattern: string;
13192
- flags?: string;
13193
- } | string)[] | ({
13194
- pattern: string;
13195
- flags?: string;
13196
- } | string));
13197
- groups?: (string | string[] | {
13198
- newlinesBetween?: (("ignore" | "always" | "never") | number);
13199
- commentAbove?: string;
13200
- })[];
13201
13519
  }[];
13202
13520
  // ----- perfectionist/sort-maps -----
13203
13521
  type PerfectionistSortMaps = {
13204
13522
  fallbackSort?: {
13523
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13205
13524
  order?: ("asc" | "desc");
13206
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13207
13525
  };
13526
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13208
13527
  specialCharacters?: ("remove" | "trim" | "keep");
13209
13528
  ignoreCase?: boolean;
13210
13529
  alphabet?: string;
13211
13530
  locales?: (string | string[]);
13212
13531
  order?: ("asc" | "desc");
13213
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13214
13532
  customGroups?: ({
13215
- newlinesInside?: (("always" | "never") | number);
13216
13533
  fallbackSort?: {
13534
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13217
13535
  order?: ("asc" | "desc");
13218
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13219
13536
  };
13537
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13220
13538
  groupName: string;
13539
+ newlinesInside?: number;
13221
13540
  order?: ("asc" | "desc");
13222
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13223
- anyOf?: {
13541
+ anyOf: {
13224
13542
  elementNamePattern?: (({
13225
13543
  pattern: string;
13226
13544
  flags?: string;
@@ -13230,14 +13548,14 @@ type PerfectionistSortMaps = {
13230
13548
  } | string));
13231
13549
  }[];
13232
13550
  } | {
13233
- newlinesInside?: (("always" | "never") | number);
13234
13551
  fallbackSort?: {
13552
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13235
13553
  order?: ("asc" | "desc");
13236
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13237
13554
  };
13555
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13238
13556
  groupName: string;
13557
+ newlinesInside?: number;
13239
13558
  order?: ("asc" | "desc");
13240
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13241
13559
  elementNamePattern?: (({
13242
13560
  pattern: string;
13243
13561
  flags?: string;
@@ -13246,6 +13564,16 @@ type PerfectionistSortMaps = {
13246
13564
  flags?: string;
13247
13565
  } | string));
13248
13566
  })[];
13567
+ groups?: (string | [string, ...(string)[]] | {
13568
+ newlinesBetween: ("ignore" | number);
13569
+ } | {
13570
+ group: (string | [string, ...(string)[]]);
13571
+ commentAbove?: string;
13572
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13573
+ newlinesInside?: number;
13574
+ order?: ("asc" | "desc");
13575
+ })[];
13576
+ newlinesBetween?: ("ignore" | number);
13249
13577
  useConfigurationIf?: {
13250
13578
  allNamesMatchPattern?: (({
13251
13579
  pattern: string;
@@ -13278,44 +13606,39 @@ type PerfectionistSortMaps = {
13278
13606
  } | string)));
13279
13607
  });
13280
13608
  partitionByNewLine?: boolean;
13281
- newlinesBetween?: (("ignore" | "always" | "never") | number);
13282
- groups?: (string | string[] | {
13283
- newlinesBetween?: (("ignore" | "always" | "never") | number);
13284
- commentAbove?: string;
13285
- })[];
13286
13609
  }[];
13287
13610
  // ----- perfectionist/sort-modules -----
13288
13611
  type PerfectionistSortModules = [] | [{
13289
13612
  fallbackSort?: {
13613
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13290
13614
  order?: ("asc" | "desc");
13291
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13292
13615
  };
13616
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13293
13617
  specialCharacters?: ("remove" | "trim" | "keep");
13294
13618
  ignoreCase?: boolean;
13295
13619
  alphabet?: string;
13296
13620
  locales?: (string | string[]);
13297
13621
  order?: ("asc" | "desc");
13298
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13299
13622
  customGroups?: ({
13300
- newlinesInside?: (("always" | "never") | number);
13301
13623
  fallbackSort?: {
13624
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13302
13625
  order?: ("asc" | "desc");
13303
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13304
13626
  };
13627
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13305
13628
  groupName: string;
13629
+ newlinesInside?: number;
13306
13630
  order?: ("asc" | "desc");
13307
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13308
- anyOf?: {
13309
- modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[];
13310
- selector?: ("enum" | "function" | "interface" | "type" | "class");
13311
- decoratorNamePattern?: (({
13631
+ anyOf: {
13632
+ elementNamePattern?: (({
13312
13633
  pattern: string;
13313
13634
  flags?: string;
13314
13635
  } | string)[] | ({
13315
13636
  pattern: string;
13316
13637
  flags?: string;
13317
13638
  } | string));
13318
- elementNamePattern?: (({
13639
+ modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[];
13640
+ selector?: ("enum" | "function" | "interface" | "type" | "class");
13641
+ decoratorNamePattern?: (({
13319
13642
  pattern: string;
13320
13643
  flags?: string;
13321
13644
  } | string)[] | ({
@@ -13324,24 +13647,24 @@ type PerfectionistSortModules = [] | [{
13324
13647
  } | string));
13325
13648
  }[];
13326
13649
  } | {
13327
- newlinesInside?: (("always" | "never") | number);
13328
13650
  fallbackSort?: {
13651
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13329
13652
  order?: ("asc" | "desc");
13330
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13331
13653
  };
13654
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13332
13655
  groupName: string;
13656
+ newlinesInside?: number;
13333
13657
  order?: ("asc" | "desc");
13334
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13335
- modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[];
13336
- selector?: ("enum" | "function" | "interface" | "type" | "class");
13337
- decoratorNamePattern?: (({
13658
+ elementNamePattern?: (({
13338
13659
  pattern: string;
13339
13660
  flags?: string;
13340
13661
  } | string)[] | ({
13341
13662
  pattern: string;
13342
13663
  flags?: string;
13343
13664
  } | string));
13344
- elementNamePattern?: (({
13665
+ modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[];
13666
+ selector?: ("enum" | "function" | "interface" | "type" | "class");
13667
+ decoratorNamePattern?: (({
13345
13668
  pattern: string;
13346
13669
  flags?: string;
13347
13670
  } | string)[] | ({
@@ -13349,6 +13672,16 @@ type PerfectionistSortModules = [] | [{
13349
13672
  flags?: string;
13350
13673
  } | string));
13351
13674
  })[];
13675
+ groups?: (string | [string, ...(string)[]] | {
13676
+ newlinesBetween: ("ignore" | number);
13677
+ } | {
13678
+ group: (string | [string, ...(string)[]]);
13679
+ commentAbove?: string;
13680
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13681
+ newlinesInside?: number;
13682
+ order?: ("asc" | "desc");
13683
+ })[];
13684
+ newlinesBetween?: ("ignore" | number);
13352
13685
  partitionByComment?: (boolean | (({
13353
13686
  pattern: string;
13354
13687
  flags?: string;
@@ -13372,38 +13705,29 @@ type PerfectionistSortModules = [] | [{
13372
13705
  } | string)));
13373
13706
  });
13374
13707
  partitionByNewLine?: boolean;
13375
- newlinesBetween?: (("ignore" | "always" | "never") | number);
13376
- groups?: (string | string[] | {
13377
- newlinesBetween?: (("ignore" | "always" | "never") | number);
13378
- commentAbove?: string;
13379
- })[];
13380
13708
  }];
13381
13709
  // ----- perfectionist/sort-named-exports -----
13382
13710
  type PerfectionistSortNamedExports = {
13383
13711
  fallbackSort?: {
13712
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13384
13713
  order?: ("asc" | "desc");
13385
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13386
13714
  };
13715
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13387
13716
  specialCharacters?: ("remove" | "trim" | "keep");
13388
13717
  ignoreCase?: boolean;
13389
13718
  alphabet?: string;
13390
13719
  locales?: (string | string[]);
13391
13720
  order?: ("asc" | "desc");
13392
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13393
- groupKind?: ("mixed" | "values-first" | "types-first");
13394
- ignoreAlias?: boolean;
13395
13721
  customGroups?: ({
13396
- newlinesInside?: (("always" | "never") | number);
13397
13722
  fallbackSort?: {
13723
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13398
13724
  order?: ("asc" | "desc");
13399
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13400
13725
  };
13726
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13401
13727
  groupName: string;
13728
+ newlinesInside?: number;
13402
13729
  order?: ("asc" | "desc");
13403
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13404
- anyOf?: {
13405
- modifiers?: ("value" | "type")[];
13406
- selector?: "export";
13730
+ anyOf: {
13407
13731
  elementNamePattern?: (({
13408
13732
  pattern: string;
13409
13733
  flags?: string;
@@ -13411,18 +13735,18 @@ type PerfectionistSortNamedExports = {
13411
13735
  pattern: string;
13412
13736
  flags?: string;
13413
13737
  } | string));
13738
+ modifiers?: ("value" | "type")[];
13739
+ selector?: "export";
13414
13740
  }[];
13415
13741
  } | {
13416
- newlinesInside?: (("always" | "never") | number);
13417
13742
  fallbackSort?: {
13743
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13418
13744
  order?: ("asc" | "desc");
13419
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13420
13745
  };
13746
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13421
13747
  groupName: string;
13748
+ newlinesInside?: number;
13422
13749
  order?: ("asc" | "desc");
13423
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13424
- modifiers?: ("value" | "type")[];
13425
- selector?: "export";
13426
13750
  elementNamePattern?: (({
13427
13751
  pattern: string;
13428
13752
  flags?: string;
@@ -13430,7 +13754,20 @@ type PerfectionistSortNamedExports = {
13430
13754
  pattern: string;
13431
13755
  flags?: string;
13432
13756
  } | string));
13757
+ modifiers?: ("value" | "type")[];
13758
+ selector?: "export";
13759
+ })[];
13760
+ groups?: (string | [string, ...(string)[]] | {
13761
+ newlinesBetween: ("ignore" | number);
13762
+ } | {
13763
+ group: (string | [string, ...(string)[]]);
13764
+ commentAbove?: string;
13765
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13766
+ newlinesInside?: number;
13767
+ order?: ("asc" | "desc");
13433
13768
  })[];
13769
+ newlinesBetween?: ("ignore" | number);
13770
+ ignoreAlias?: boolean;
13434
13771
  partitionByComment?: (boolean | (({
13435
13772
  pattern: string;
13436
13773
  flags?: string;
@@ -13454,38 +13791,29 @@ type PerfectionistSortNamedExports = {
13454
13791
  } | string)));
13455
13792
  });
13456
13793
  partitionByNewLine?: boolean;
13457
- newlinesBetween?: (("ignore" | "always" | "never") | number);
13458
- groups?: (string | string[] | {
13459
- newlinesBetween?: (("ignore" | "always" | "never") | number);
13460
- commentAbove?: string;
13461
- })[];
13462
13794
  }[];
13463
13795
  // ----- perfectionist/sort-named-imports -----
13464
13796
  type PerfectionistSortNamedImports = {
13465
13797
  fallbackSort?: {
13798
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13466
13799
  order?: ("asc" | "desc");
13467
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13468
13800
  };
13801
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13469
13802
  specialCharacters?: ("remove" | "trim" | "keep");
13470
13803
  ignoreCase?: boolean;
13471
13804
  alphabet?: string;
13472
13805
  locales?: (string | string[]);
13473
13806
  order?: ("asc" | "desc");
13474
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13475
- groupKind?: ("mixed" | "values-first" | "types-first");
13476
- ignoreAlias?: boolean;
13477
13807
  customGroups?: ({
13478
- newlinesInside?: (("always" | "never") | number);
13479
13808
  fallbackSort?: {
13809
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13480
13810
  order?: ("asc" | "desc");
13481
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13482
13811
  };
13812
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13483
13813
  groupName: string;
13814
+ newlinesInside?: number;
13484
13815
  order?: ("asc" | "desc");
13485
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13486
- anyOf?: {
13487
- modifiers?: ("value" | "type")[];
13488
- selector?: "import";
13816
+ anyOf: {
13489
13817
  elementNamePattern?: (({
13490
13818
  pattern: string;
13491
13819
  flags?: string;
@@ -13493,18 +13821,18 @@ type PerfectionistSortNamedImports = {
13493
13821
  pattern: string;
13494
13822
  flags?: string;
13495
13823
  } | string));
13824
+ modifiers?: ("value" | "type")[];
13825
+ selector?: "import";
13496
13826
  }[];
13497
13827
  } | {
13498
- newlinesInside?: (("always" | "never") | number);
13499
13828
  fallbackSort?: {
13829
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13500
13830
  order?: ("asc" | "desc");
13501
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13502
13831
  };
13832
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13503
13833
  groupName: string;
13834
+ newlinesInside?: number;
13504
13835
  order?: ("asc" | "desc");
13505
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13506
- modifiers?: ("value" | "type")[];
13507
- selector?: "import";
13508
13836
  elementNamePattern?: (({
13509
13837
  pattern: string;
13510
13838
  flags?: string;
@@ -13512,7 +13840,20 @@ type PerfectionistSortNamedImports = {
13512
13840
  pattern: string;
13513
13841
  flags?: string;
13514
13842
  } | string));
13843
+ modifiers?: ("value" | "type")[];
13844
+ selector?: "import";
13845
+ })[];
13846
+ groups?: (string | [string, ...(string)[]] | {
13847
+ newlinesBetween: ("ignore" | number);
13848
+ } | {
13849
+ group: (string | [string, ...(string)[]]);
13850
+ commentAbove?: string;
13851
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13852
+ newlinesInside?: number;
13853
+ order?: ("asc" | "desc");
13515
13854
  })[];
13855
+ newlinesBetween?: ("ignore" | number);
13856
+ ignoreAlias?: boolean;
13516
13857
  partitionByComment?: (boolean | (({
13517
13858
  pattern: string;
13518
13859
  flags?: string;
@@ -13536,48 +13877,41 @@ type PerfectionistSortNamedImports = {
13536
13877
  } | string)));
13537
13878
  });
13538
13879
  partitionByNewLine?: boolean;
13539
- newlinesBetween?: (("ignore" | "always" | "never") | number);
13540
- groups?: (string | string[] | {
13541
- newlinesBetween?: (("ignore" | "always" | "never") | number);
13542
- commentAbove?: string;
13543
- })[];
13544
13880
  }[];
13545
13881
  // ----- perfectionist/sort-object-types -----
13546
13882
  type PerfectionistSortObjectTypes = {
13547
13883
  fallbackSort?: {
13884
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13548
13885
  order?: ("asc" | "desc");
13549
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13550
13886
  sortBy?: ("name" | "value");
13551
13887
  };
13888
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13552
13889
  specialCharacters?: ("remove" | "trim" | "keep");
13553
13890
  ignoreCase?: boolean;
13554
13891
  alphabet?: string;
13555
13892
  locales?: (string | string[]);
13556
13893
  order?: ("asc" | "desc");
13557
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13558
13894
  customGroups?: ({
13559
- [k: string]: (string | string[]) | undefined;
13560
- } | ({
13561
- newlinesInside?: (("always" | "never") | number);
13562
13895
  fallbackSort?: {
13896
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13563
13897
  order?: ("asc" | "desc");
13564
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13565
13898
  sortBy?: ("name" | "value");
13566
13899
  };
13900
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13567
13901
  groupName: string;
13902
+ newlinesInside?: number;
13568
13903
  order?: ("asc" | "desc");
13569
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13570
- anyOf?: {
13571
- modifiers?: ("optional" | "required" | "multiline")[];
13572
- selector?: ("index-signature" | "member" | "method" | "multiline" | "property");
13573
- elementValuePattern?: (({
13904
+ anyOf: {
13905
+ elementNamePattern?: (({
13574
13906
  pattern: string;
13575
13907
  flags?: string;
13576
13908
  } | string)[] | ({
13577
13909
  pattern: string;
13578
13910
  flags?: string;
13579
13911
  } | string));
13580
- elementNamePattern?: (({
13912
+ modifiers?: ("optional" | "required" | "multiline")[];
13913
+ selector?: ("index-signature" | "member" | "method" | "property");
13914
+ elementValuePattern?: (({
13581
13915
  pattern: string;
13582
13916
  flags?: string;
13583
13917
  } | string)[] | ({
@@ -13587,25 +13921,25 @@ type PerfectionistSortObjectTypes = {
13587
13921
  sortBy?: ("name" | "value");
13588
13922
  }[];
13589
13923
  } | {
13590
- newlinesInside?: (("always" | "never") | number);
13591
13924
  fallbackSort?: {
13925
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13592
13926
  order?: ("asc" | "desc");
13593
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13594
13927
  sortBy?: ("name" | "value");
13595
13928
  };
13929
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13596
13930
  groupName: string;
13931
+ newlinesInside?: number;
13597
13932
  order?: ("asc" | "desc");
13598
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13599
- modifiers?: ("optional" | "required" | "multiline")[];
13600
- selector?: ("index-signature" | "member" | "method" | "multiline" | "property");
13601
- elementValuePattern?: (({
13933
+ elementNamePattern?: (({
13602
13934
  pattern: string;
13603
13935
  flags?: string;
13604
13936
  } | string)[] | ({
13605
13937
  pattern: string;
13606
13938
  flags?: string;
13607
13939
  } | string));
13608
- elementNamePattern?: (({
13940
+ modifiers?: ("optional" | "required" | "multiline")[];
13941
+ selector?: ("index-signature" | "member" | "method" | "property");
13942
+ elementValuePattern?: (({
13609
13943
  pattern: string;
13610
13944
  flags?: string;
13611
13945
  } | string)[] | ({
@@ -13613,8 +13947,17 @@ type PerfectionistSortObjectTypes = {
13613
13947
  flags?: string;
13614
13948
  } | string));
13615
13949
  sortBy?: ("name" | "value");
13616
- })[]);
13617
- groupKind?: ("mixed" | "required-first" | "optional-first");
13950
+ })[];
13951
+ groups?: (string | [string, ...(string)[]] | {
13952
+ newlinesBetween: ("ignore" | number);
13953
+ } | {
13954
+ group: (string | [string, ...(string)[]]);
13955
+ commentAbove?: string;
13956
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13957
+ newlinesInside?: number;
13958
+ order?: ("asc" | "desc");
13959
+ })[];
13960
+ newlinesBetween?: ("ignore" | number);
13618
13961
  useConfigurationIf?: {
13619
13962
  allNamesMatchPattern?: (({
13620
13963
  pattern: string;
@@ -13623,10 +13966,22 @@ type PerfectionistSortObjectTypes = {
13623
13966
  pattern: string;
13624
13967
  flags?: string;
13625
13968
  } | string));
13969
+ hasNumericKeysOnly?: boolean;
13970
+ declarationCommentMatchesPattern?: (({
13971
+ scope?: ("shallow" | "deep");
13972
+ pattern: string;
13973
+ flags?: string;
13974
+ } | string)[] | ({
13975
+ scope?: ("shallow" | "deep");
13976
+ pattern: string;
13977
+ flags?: string;
13978
+ } | string));
13626
13979
  declarationMatchesPattern?: (({
13980
+ scope?: ("shallow" | "deep");
13627
13981
  pattern: string;
13628
13982
  flags?: string;
13629
13983
  } | string)[] | ({
13984
+ scope?: ("shallow" | "deep");
13630
13985
  pattern: string;
13631
13986
  flags?: string;
13632
13987
  } | string));
@@ -13654,57 +14009,40 @@ type PerfectionistSortObjectTypes = {
13654
14009
  } | string)));
13655
14010
  });
13656
14011
  partitionByNewLine?: boolean;
13657
- newlinesBetween?: (("ignore" | "always" | "never") | number);
13658
- ignorePattern?: (({
13659
- pattern: string;
13660
- flags?: string;
13661
- } | string)[] | ({
13662
- pattern: string;
13663
- flags?: string;
13664
- } | string));
13665
14012
  sortBy?: ("name" | "value");
13666
- groups?: (string | string[] | {
13667
- newlinesBetween?: (("ignore" | "always" | "never") | number);
13668
- commentAbove?: string;
13669
- })[];
13670
14013
  }[];
13671
14014
  // ----- perfectionist/sort-objects -----
13672
14015
  type PerfectionistSortObjects = {
13673
14016
  fallbackSort?: {
14017
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13674
14018
  order?: ("asc" | "desc");
13675
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13676
14019
  };
14020
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13677
14021
  specialCharacters?: ("remove" | "trim" | "keep");
13678
14022
  ignoreCase?: boolean;
13679
14023
  alphabet?: string;
13680
14024
  locales?: (string | string[]);
13681
14025
  order?: ("asc" | "desc");
13682
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13683
- destructuredObjects?: (boolean | {
13684
- groups?: boolean;
13685
- });
13686
14026
  customGroups?: ({
13687
- [k: string]: (string | string[]) | undefined;
13688
- } | ({
13689
- newlinesInside?: (("always" | "never") | number);
13690
14027
  fallbackSort?: {
14028
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13691
14029
  order?: ("asc" | "desc");
13692
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13693
14030
  };
14031
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13694
14032
  groupName: string;
14033
+ newlinesInside?: number;
13695
14034
  order?: ("asc" | "desc");
13696
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13697
- anyOf?: {
13698
- modifiers?: ("optional" | "required" | "multiline")[];
13699
- selector?: ("member" | "method" | "multiline" | "property");
13700
- elementValuePattern?: (({
14035
+ anyOf: {
14036
+ elementNamePattern?: (({
13701
14037
  pattern: string;
13702
14038
  flags?: string;
13703
14039
  } | string)[] | ({
13704
14040
  pattern: string;
13705
14041
  flags?: string;
13706
14042
  } | string));
13707
- elementNamePattern?: (({
14043
+ modifiers?: ("optional" | "required" | "multiline")[];
14044
+ selector?: ("member" | "method" | "property");
14045
+ elementValuePattern?: (({
13708
14046
  pattern: string;
13709
14047
  flags?: string;
13710
14048
  } | string)[] | ({
@@ -13713,31 +14051,41 @@ type PerfectionistSortObjects = {
13713
14051
  } | string));
13714
14052
  }[];
13715
14053
  } | {
13716
- newlinesInside?: (("always" | "never") | number);
13717
14054
  fallbackSort?: {
14055
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13718
14056
  order?: ("asc" | "desc");
13719
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13720
14057
  };
14058
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13721
14059
  groupName: string;
14060
+ newlinesInside?: number;
13722
14061
  order?: ("asc" | "desc");
13723
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13724
- modifiers?: ("optional" | "required" | "multiline")[];
13725
- selector?: ("member" | "method" | "multiline" | "property");
13726
- elementValuePattern?: (({
14062
+ elementNamePattern?: (({
13727
14063
  pattern: string;
13728
14064
  flags?: string;
13729
14065
  } | string)[] | ({
13730
14066
  pattern: string;
13731
14067
  flags?: string;
13732
14068
  } | string));
13733
- elementNamePattern?: (({
14069
+ modifiers?: ("optional" | "required" | "multiline")[];
14070
+ selector?: ("member" | "method" | "property");
14071
+ elementValuePattern?: (({
13734
14072
  pattern: string;
13735
14073
  flags?: string;
13736
14074
  } | string)[] | ({
13737
14075
  pattern: string;
13738
14076
  flags?: string;
13739
14077
  } | string));
13740
- })[]);
14078
+ })[];
14079
+ groups?: (string | [string, ...(string)[]] | {
14080
+ newlinesBetween: ("ignore" | number);
14081
+ } | {
14082
+ group: (string | [string, ...(string)[]]);
14083
+ commentAbove?: string;
14084
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
14085
+ newlinesInside?: number;
14086
+ order?: ("asc" | "desc");
14087
+ })[];
14088
+ newlinesBetween?: ("ignore" | number);
13741
14089
  useConfigurationIf?: {
13742
14090
  allNamesMatchPattern?: (({
13743
14091
  pattern: string;
@@ -13746,16 +14094,36 @@ type PerfectionistSortObjects = {
13746
14094
  pattern: string;
13747
14095
  flags?: string;
13748
14096
  } | string));
14097
+ objectType?: ("destructured" | "non-destructured");
14098
+ hasNumericKeysOnly?: boolean;
14099
+ declarationCommentMatchesPattern?: (({
14100
+ scope?: ("shallow" | "deep");
14101
+ pattern: string;
14102
+ flags?: string;
14103
+ } | string)[] | ({
14104
+ scope?: ("shallow" | "deep");
14105
+ pattern: string;
14106
+ flags?: string;
14107
+ } | string));
13749
14108
  callingFunctionNamePattern?: (({
14109
+ scope?: ("shallow" | "deep");
14110
+ pattern: string;
14111
+ flags?: string;
14112
+ } | string)[] | ({
14113
+ scope?: ("shallow" | "deep");
14114
+ pattern: string;
14115
+ flags?: string;
14116
+ } | string));
14117
+ declarationMatchesPattern?: (({
14118
+ scope?: ("shallow" | "deep");
13750
14119
  pattern: string;
13751
14120
  flags?: string;
13752
14121
  } | string)[] | ({
14122
+ scope?: ("shallow" | "deep");
13753
14123
  pattern: string;
13754
14124
  flags?: string;
13755
14125
  } | string));
13756
14126
  };
13757
- destructureOnly?: boolean;
13758
- objectDeclarations?: boolean;
13759
14127
  styledComponents?: boolean;
13760
14128
  partitionByComment?: (boolean | (({
13761
14129
  pattern: string;
@@ -13780,43 +14148,29 @@ type PerfectionistSortObjects = {
13780
14148
  } | string)));
13781
14149
  });
13782
14150
  partitionByNewLine?: boolean;
13783
- newlinesBetween?: (("ignore" | "always" | "never") | number);
13784
- ignorePattern?: (({
13785
- pattern: string;
13786
- flags?: string;
13787
- } | string)[] | ({
13788
- pattern: string;
13789
- flags?: string;
13790
- } | string));
13791
- groups?: (string | string[] | {
13792
- newlinesBetween?: (("ignore" | "always" | "never") | number);
13793
- commentAbove?: string;
13794
- })[];
13795
14151
  }[];
13796
14152
  // ----- perfectionist/sort-sets -----
13797
14153
  type PerfectionistSortSets = {
13798
14154
  fallbackSort?: {
14155
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13799
14156
  order?: ("asc" | "desc");
13800
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13801
14157
  };
14158
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13802
14159
  specialCharacters?: ("remove" | "trim" | "keep");
13803
14160
  ignoreCase?: boolean;
13804
14161
  alphabet?: string;
13805
14162
  locales?: (string | string[]);
13806
14163
  order?: ("asc" | "desc");
13807
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13808
- groupKind?: ("mixed" | "literals-first" | "spreads-first");
13809
14164
  customGroups?: ({
13810
- newlinesInside?: (("always" | "never") | number);
13811
14165
  fallbackSort?: {
14166
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13812
14167
  order?: ("asc" | "desc");
13813
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13814
14168
  };
14169
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13815
14170
  groupName: string;
14171
+ newlinesInside?: number;
13816
14172
  order?: ("asc" | "desc");
13817
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13818
- anyOf?: {
13819
- selector?: ("literal" | "spread");
14173
+ anyOf: {
13820
14174
  elementNamePattern?: (({
13821
14175
  pattern: string;
13822
14176
  flags?: string;
@@ -13824,17 +14178,17 @@ type PerfectionistSortSets = {
13824
14178
  pattern: string;
13825
14179
  flags?: string;
13826
14180
  } | string));
14181
+ selector?: ("literal" | "spread");
13827
14182
  }[];
13828
14183
  } | {
13829
- newlinesInside?: (("always" | "never") | number);
13830
14184
  fallbackSort?: {
14185
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13831
14186
  order?: ("asc" | "desc");
13832
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13833
14187
  };
14188
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13834
14189
  groupName: string;
14190
+ newlinesInside?: number;
13835
14191
  order?: ("asc" | "desc");
13836
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13837
- selector?: ("literal" | "spread");
13838
14192
  elementNamePattern?: (({
13839
14193
  pattern: string;
13840
14194
  flags?: string;
@@ -13842,7 +14196,18 @@ type PerfectionistSortSets = {
13842
14196
  pattern: string;
13843
14197
  flags?: string;
13844
14198
  } | string));
14199
+ selector?: ("literal" | "spread");
14200
+ })[];
14201
+ groups?: (string | [string, ...(string)[]] | {
14202
+ newlinesBetween: ("ignore" | number);
14203
+ } | {
14204
+ group: (string | [string, ...(string)[]]);
14205
+ commentAbove?: string;
14206
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
14207
+ newlinesInside?: number;
14208
+ order?: ("asc" | "desc");
13845
14209
  })[];
14210
+ newlinesBetween?: ("ignore" | number);
13846
14211
  useConfigurationIf?: {
13847
14212
  allNamesMatchPattern?: (({
13848
14213
  pattern: string;
@@ -13875,48 +14240,42 @@ type PerfectionistSortSets = {
13875
14240
  } | string)));
13876
14241
  });
13877
14242
  partitionByNewLine?: boolean;
13878
- newlinesBetween?: (("ignore" | "always" | "never") | number);
13879
- groups?: (string | string[] | {
13880
- newlinesBetween?: (("ignore" | "always" | "never") | number);
13881
- commentAbove?: string;
13882
- })[];
13883
14243
  }[];
13884
14244
  // ----- perfectionist/sort-switch-case -----
13885
14245
  type PerfectionistSortSwitchCase = [] | [{
13886
14246
  fallbackSort?: {
14247
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13887
14248
  order?: ("asc" | "desc");
13888
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13889
14249
  };
14250
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13890
14251
  specialCharacters?: ("remove" | "trim" | "keep");
13891
14252
  ignoreCase?: boolean;
13892
14253
  alphabet?: string;
13893
14254
  locales?: (string | string[]);
13894
14255
  order?: ("asc" | "desc");
13895
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13896
14256
  }];
13897
14257
  // ----- perfectionist/sort-union-types -----
13898
14258
  type PerfectionistSortUnionTypes = {
13899
14259
  fallbackSort?: {
14260
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13900
14261
  order?: ("asc" | "desc");
13901
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13902
14262
  };
14263
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13903
14264
  specialCharacters?: ("remove" | "trim" | "keep");
13904
14265
  ignoreCase?: boolean;
13905
14266
  alphabet?: string;
13906
14267
  locales?: (string | string[]);
13907
14268
  order?: ("asc" | "desc");
13908
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13909
14269
  customGroups?: ({
13910
- newlinesInside?: (("always" | "never") | number);
13911
14270
  fallbackSort?: {
14271
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13912
14272
  order?: ("asc" | "desc");
13913
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13914
14273
  };
14274
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13915
14275
  groupName: string;
14276
+ newlinesInside?: number;
13916
14277
  order?: ("asc" | "desc");
13917
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13918
- anyOf?: {
13919
- selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
14278
+ anyOf: {
13920
14279
  elementNamePattern?: (({
13921
14280
  pattern: string;
13922
14281
  flags?: string;
@@ -13924,17 +14283,17 @@ type PerfectionistSortUnionTypes = {
13924
14283
  pattern: string;
13925
14284
  flags?: string;
13926
14285
  } | string));
14286
+ selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
13927
14287
  }[];
13928
14288
  } | {
13929
- newlinesInside?: (("always" | "never") | number);
13930
14289
  fallbackSort?: {
14290
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13931
14291
  order?: ("asc" | "desc");
13932
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13933
14292
  };
14293
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13934
14294
  groupName: string;
14295
+ newlinesInside?: number;
13935
14296
  order?: ("asc" | "desc");
13936
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13937
- selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
13938
14297
  elementNamePattern?: (({
13939
14298
  pattern: string;
13940
14299
  flags?: string;
@@ -13942,7 +14301,18 @@ type PerfectionistSortUnionTypes = {
13942
14301
  pattern: string;
13943
14302
  flags?: string;
13944
14303
  } | string));
14304
+ selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
14305
+ })[];
14306
+ groups?: (string | [string, ...(string)[]] | {
14307
+ newlinesBetween: ("ignore" | number);
14308
+ } | {
14309
+ group: (string | [string, ...(string)[]]);
14310
+ commentAbove?: string;
14311
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
14312
+ newlinesInside?: number;
14313
+ order?: ("asc" | "desc");
13945
14314
  })[];
14315
+ newlinesBetween?: ("ignore" | number);
13946
14316
  partitionByComment?: (boolean | (({
13947
14317
  pattern: string;
13948
14318
  flags?: string;
@@ -13966,35 +14336,29 @@ type PerfectionistSortUnionTypes = {
13966
14336
  } | string)));
13967
14337
  });
13968
14338
  partitionByNewLine?: boolean;
13969
- newlinesBetween?: (("ignore" | "always" | "never") | number);
13970
- groups?: (string | string[] | {
13971
- newlinesBetween?: (("ignore" | "always" | "never") | number);
13972
- commentAbove?: string;
13973
- })[];
13974
14339
  }[];
13975
14340
  // ----- perfectionist/sort-variable-declarations -----
13976
14341
  type PerfectionistSortVariableDeclarations = [] | [{
13977
14342
  fallbackSort?: {
14343
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13978
14344
  order?: ("asc" | "desc");
13979
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13980
14345
  };
14346
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13981
14347
  specialCharacters?: ("remove" | "trim" | "keep");
13982
14348
  ignoreCase?: boolean;
13983
14349
  alphabet?: string;
13984
14350
  locales?: (string | string[]);
13985
14351
  order?: ("asc" | "desc");
13986
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13987
14352
  customGroups?: ({
13988
- newlinesInside?: (("always" | "never") | number);
13989
14353
  fallbackSort?: {
14354
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13990
14355
  order?: ("asc" | "desc");
13991
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13992
14356
  };
14357
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13993
14358
  groupName: string;
14359
+ newlinesInside?: number;
13994
14360
  order?: ("asc" | "desc");
13995
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13996
- anyOf?: {
13997
- selector?: ("initialized" | "uninitialized");
14361
+ anyOf: {
13998
14362
  elementNamePattern?: (({
13999
14363
  pattern: string;
14000
14364
  flags?: string;
@@ -14002,17 +14366,17 @@ type PerfectionistSortVariableDeclarations = [] | [{
14002
14366
  pattern: string;
14003
14367
  flags?: string;
14004
14368
  } | string));
14369
+ selector?: ("initialized" | "uninitialized");
14005
14370
  }[];
14006
14371
  } | {
14007
- newlinesInside?: (("always" | "never") | number);
14008
14372
  fallbackSort?: {
14373
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
14009
14374
  order?: ("asc" | "desc");
14010
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
14011
14375
  };
14376
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
14012
14377
  groupName: string;
14378
+ newlinesInside?: number;
14013
14379
  order?: ("asc" | "desc");
14014
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
14015
- selector?: ("initialized" | "uninitialized");
14016
14380
  elementNamePattern?: (({
14017
14381
  pattern: string;
14018
14382
  flags?: string;
@@ -14020,7 +14384,18 @@ type PerfectionistSortVariableDeclarations = [] | [{
14020
14384
  pattern: string;
14021
14385
  flags?: string;
14022
14386
  } | string));
14387
+ selector?: ("initialized" | "uninitialized");
14388
+ })[];
14389
+ groups?: (string | [string, ...(string)[]] | {
14390
+ newlinesBetween: ("ignore" | number);
14391
+ } | {
14392
+ group: (string | [string, ...(string)[]]);
14393
+ commentAbove?: string;
14394
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
14395
+ newlinesInside?: number;
14396
+ order?: ("asc" | "desc");
14023
14397
  })[];
14398
+ newlinesBetween?: ("ignore" | number);
14024
14399
  partitionByComment?: (boolean | (({
14025
14400
  pattern: string;
14026
14401
  flags?: string;
@@ -14044,11 +14419,6 @@ type PerfectionistSortVariableDeclarations = [] | [{
14044
14419
  } | string)));
14045
14420
  });
14046
14421
  partitionByNewLine?: boolean;
14047
- newlinesBetween?: (("ignore" | "always" | "never") | number);
14048
- groups?: (string | string[] | {
14049
- newlinesBetween?: (("ignore" | "always" | "never") | number);
14050
- commentAbove?: string;
14051
- })[];
14052
14422
  }];
14053
14423
  // ----- playwright/expect-expect -----
14054
14424
  type PlaywrightExpectExpect = [] | [{
@@ -15015,19 +15385,19 @@ type Yoda = [] | [("always" | "never")] | [("always" | "never"), {
15015
15385
  }];
15016
15386
  //#endregion
15017
15387
  //#region src/types.d.ts
15018
- type Rules = RuleOptions;
15019
15388
  type Base = Linter.Config<Linter.RulesRecord & Rules>;
15389
+ type ExtractPrefix<T> = T extends `${infer Prefix}/${infer Rest}` ? Rest extends `${string}/${string}` ? `${Prefix}/${ExtractPrefix<Rest>}` : Prefix : never;
15020
15390
  type MaybeReadonly<T> = Readonly<T> | T;
15021
15391
  type Override<T, R> = Omit<T, keyof R> & R;
15022
15392
  type Prettify<T> = { [K in keyof T]: T[K] } & {};
15023
- type ExtractPrefix<T> = T extends `${infer Prefix}/${infer Rest}` ? Rest extends `${string}/${string}` ? `${Prefix}/${ExtractPrefix<Rest>}` : Prefix : never;
15024
- type ValidPrefixes<T> = ExtractPrefix<keyof T>;
15025
15393
  type RulesWithPrefix<T, Prefix$1 extends ValidPrefixes<T>> = { [K in keyof T as K extends `${Prefix$1}${string}` ? K : never]: T[K] };
15394
+ type ValidPrefixes<T> = ExtractPrefix<keyof T>;
15026
15395
  interface LinterConfigOverrides {
15027
15396
  files?: MaybeReadonly<Base["files"]>;
15028
15397
  ignores?: MaybeReadonly<Base["ignores"]>;
15029
15398
  plugins?: Record<string, unknown>;
15030
15399
  }
15400
+ type Rules = RuleOptions;
15031
15401
  type TypedConfigItem = Prettify<Override<Base, LinterConfigOverrides>>;
15032
15402
  interface VitestOptions {
15033
15403
  /**