@jimmy.codes/eslint-config 6.30.0 → 6.31.1
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 +712 -353
- package/dist/index.mjs +35 -27
- package/package.json +14 -14
package/dist/index.d.mts
CHANGED
|
@@ -2228,357 +2228,357 @@ interface RuleOptions {
|
|
|
2228
2228
|
'jest-dom/prefer-to-have-value'?: Linter.RuleEntry<[]>;
|
|
2229
2229
|
/**
|
|
2230
2230
|
* Enforce `test` and `it` usage conventions
|
|
2231
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2231
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.12.1/docs/rules/consistent-test-it.md
|
|
2232
2232
|
*/
|
|
2233
2233
|
'jest/consistent-test-it'?: Linter.RuleEntry<JestConsistentTestIt>;
|
|
2234
2234
|
/**
|
|
2235
2235
|
* Enforce assertion to be made in a test body
|
|
2236
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2236
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.12.1/docs/rules/expect-expect.md
|
|
2237
2237
|
*/
|
|
2238
2238
|
'jest/expect-expect'?: Linter.RuleEntry<JestExpectExpect>;
|
|
2239
2239
|
/**
|
|
2240
2240
|
* Enforces a maximum number assertion calls in a test body
|
|
2241
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2241
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.12.1/docs/rules/max-expects.md
|
|
2242
2242
|
*/
|
|
2243
2243
|
'jest/max-expects'?: Linter.RuleEntry<JestMaxExpects>;
|
|
2244
2244
|
/**
|
|
2245
2245
|
* Enforces a maximum depth to nested describe calls
|
|
2246
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2246
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.12.1/docs/rules/max-nested-describe.md
|
|
2247
2247
|
*/
|
|
2248
2248
|
'jest/max-nested-describe'?: Linter.RuleEntry<JestMaxNestedDescribe>;
|
|
2249
2249
|
/**
|
|
2250
2250
|
* Disallow alias methods
|
|
2251
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2251
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.12.1/docs/rules/no-alias-methods.md
|
|
2252
2252
|
*/
|
|
2253
2253
|
'jest/no-alias-methods'?: Linter.RuleEntry<[]>;
|
|
2254
2254
|
/**
|
|
2255
2255
|
* Disallow commented out tests
|
|
2256
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2256
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.12.1/docs/rules/no-commented-out-tests.md
|
|
2257
2257
|
*/
|
|
2258
2258
|
'jest/no-commented-out-tests'?: Linter.RuleEntry<[]>;
|
|
2259
2259
|
/**
|
|
2260
2260
|
* Disallow calling `expect` conditionally
|
|
2261
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2261
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.12.1/docs/rules/no-conditional-expect.md
|
|
2262
2262
|
*/
|
|
2263
2263
|
'jest/no-conditional-expect'?: Linter.RuleEntry<[]>;
|
|
2264
2264
|
/**
|
|
2265
2265
|
* Disallow conditional logic in tests
|
|
2266
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2266
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.12.1/docs/rules/no-conditional-in-test.md
|
|
2267
2267
|
*/
|
|
2268
2268
|
'jest/no-conditional-in-test'?: Linter.RuleEntry<[]>;
|
|
2269
2269
|
/**
|
|
2270
2270
|
* Disallow confusing usages of jest.setTimeout
|
|
2271
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2271
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.12.1/docs/rules/no-confusing-set-timeout.md
|
|
2272
2272
|
*/
|
|
2273
2273
|
'jest/no-confusing-set-timeout'?: Linter.RuleEntry<[]>;
|
|
2274
2274
|
/**
|
|
2275
2275
|
* Disallow use of deprecated functions
|
|
2276
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2276
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.12.1/docs/rules/no-deprecated-functions.md
|
|
2277
2277
|
*/
|
|
2278
2278
|
'jest/no-deprecated-functions'?: Linter.RuleEntry<[]>;
|
|
2279
2279
|
/**
|
|
2280
2280
|
* Disallow disabled tests
|
|
2281
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2281
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.12.1/docs/rules/no-disabled-tests.md
|
|
2282
2282
|
*/
|
|
2283
2283
|
'jest/no-disabled-tests'?: Linter.RuleEntry<[]>;
|
|
2284
2284
|
/**
|
|
2285
2285
|
* Disallow using a callback in asynchronous tests and hooks
|
|
2286
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2286
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.12.1/docs/rules/no-done-callback.md
|
|
2287
2287
|
*/
|
|
2288
2288
|
'jest/no-done-callback'?: Linter.RuleEntry<[]>;
|
|
2289
2289
|
/**
|
|
2290
2290
|
* Disallow duplicate setup and teardown hooks
|
|
2291
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2291
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.12.1/docs/rules/no-duplicate-hooks.md
|
|
2292
2292
|
*/
|
|
2293
2293
|
'jest/no-duplicate-hooks'?: Linter.RuleEntry<[]>;
|
|
2294
2294
|
/**
|
|
2295
2295
|
* Disallow using equality matchers on error types
|
|
2296
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2296
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.12.1/docs/rules/no-error-equal.md
|
|
2297
2297
|
*/
|
|
2298
2298
|
'jest/no-error-equal'?: Linter.RuleEntry<[]>;
|
|
2299
2299
|
/**
|
|
2300
2300
|
* Disallow using `exports` in files containing tests
|
|
2301
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2301
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.12.1/docs/rules/no-export.md
|
|
2302
2302
|
*/
|
|
2303
2303
|
'jest/no-export'?: Linter.RuleEntry<[]>;
|
|
2304
2304
|
/**
|
|
2305
2305
|
* Disallow focused tests
|
|
2306
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2306
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.12.1/docs/rules/no-focused-tests.md
|
|
2307
2307
|
*/
|
|
2308
2308
|
'jest/no-focused-tests'?: Linter.RuleEntry<[]>;
|
|
2309
2309
|
/**
|
|
2310
2310
|
* Disallow setup and teardown hooks
|
|
2311
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2311
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.12.1/docs/rules/no-hooks.md
|
|
2312
2312
|
*/
|
|
2313
2313
|
'jest/no-hooks'?: Linter.RuleEntry<JestNoHooks>;
|
|
2314
2314
|
/**
|
|
2315
2315
|
* Disallow identical titles
|
|
2316
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2316
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.12.1/docs/rules/no-identical-title.md
|
|
2317
2317
|
*/
|
|
2318
2318
|
'jest/no-identical-title'?: Linter.RuleEntry<[]>;
|
|
2319
2319
|
/**
|
|
2320
2320
|
* Disallow string interpolation inside snapshots
|
|
2321
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2321
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.12.1/docs/rules/no-interpolation-in-snapshots.md
|
|
2322
2322
|
*/
|
|
2323
2323
|
'jest/no-interpolation-in-snapshots'?: Linter.RuleEntry<[]>;
|
|
2324
2324
|
/**
|
|
2325
2325
|
* Disallow Jasmine globals
|
|
2326
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2326
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.12.1/docs/rules/no-jasmine-globals.md
|
|
2327
2327
|
*/
|
|
2328
2328
|
'jest/no-jasmine-globals'?: Linter.RuleEntry<[]>;
|
|
2329
2329
|
/**
|
|
2330
2330
|
* Disallow large snapshots
|
|
2331
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2331
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.12.1/docs/rules/no-large-snapshots.md
|
|
2332
2332
|
*/
|
|
2333
2333
|
'jest/no-large-snapshots'?: Linter.RuleEntry<JestNoLargeSnapshots>;
|
|
2334
2334
|
/**
|
|
2335
2335
|
* Disallow manually importing from `__mocks__`
|
|
2336
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2336
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.12.1/docs/rules/no-mocks-import.md
|
|
2337
2337
|
*/
|
|
2338
2338
|
'jest/no-mocks-import'?: Linter.RuleEntry<[]>;
|
|
2339
2339
|
/**
|
|
2340
2340
|
* Disallow specific `jest.` methods
|
|
2341
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2341
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.12.1/docs/rules/no-restricted-jest-methods.md
|
|
2342
2342
|
*/
|
|
2343
2343
|
'jest/no-restricted-jest-methods'?: Linter.RuleEntry<JestNoRestrictedJestMethods>;
|
|
2344
2344
|
/**
|
|
2345
2345
|
* Disallow specific matchers & modifiers
|
|
2346
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2346
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.12.1/docs/rules/no-restricted-matchers.md
|
|
2347
2347
|
*/
|
|
2348
2348
|
'jest/no-restricted-matchers'?: Linter.RuleEntry<JestNoRestrictedMatchers>;
|
|
2349
2349
|
/**
|
|
2350
2350
|
* Disallow using `expect` outside of `it` or `test` blocks
|
|
2351
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2351
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.12.1/docs/rules/no-standalone-expect.md
|
|
2352
2352
|
*/
|
|
2353
2353
|
'jest/no-standalone-expect'?: Linter.RuleEntry<JestNoStandaloneExpect>;
|
|
2354
2354
|
/**
|
|
2355
2355
|
* Require using `.only` and `.skip` over `f` and `x`
|
|
2356
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2356
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.12.1/docs/rules/no-test-prefixes.md
|
|
2357
2357
|
*/
|
|
2358
2358
|
'jest/no-test-prefixes'?: Linter.RuleEntry<[]>;
|
|
2359
2359
|
/**
|
|
2360
2360
|
* Disallow explicitly returning from tests
|
|
2361
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2361
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.12.1/docs/rules/no-test-return-statement.md
|
|
2362
2362
|
*/
|
|
2363
2363
|
'jest/no-test-return-statement'?: Linter.RuleEntry<[]>;
|
|
2364
2364
|
/**
|
|
2365
2365
|
* Disallow unnecessary assertions based on types
|
|
2366
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2366
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.12.1/docs/rules/no-unnecessary-assertion.md
|
|
2367
2367
|
*/
|
|
2368
2368
|
'jest/no-unnecessary-assertion'?: Linter.RuleEntry<[]>;
|
|
2369
2369
|
/**
|
|
2370
2370
|
* Disallow unnecessary async function wrapper for expected promises
|
|
2371
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2371
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.12.1/docs/rules/no-unneeded-async-expect-function.md
|
|
2372
2372
|
*/
|
|
2373
2373
|
'jest/no-unneeded-async-expect-function'?: Linter.RuleEntry<[]>;
|
|
2374
2374
|
/**
|
|
2375
2375
|
* Disallow using `jest.mock()` factories without an explicit type parameter
|
|
2376
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2376
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.12.1/docs/rules/no-untyped-mock-factory.md
|
|
2377
2377
|
*/
|
|
2378
2378
|
'jest/no-untyped-mock-factory'?: Linter.RuleEntry<[]>;
|
|
2379
2379
|
/**
|
|
2380
2380
|
* Enforce padding around `afterAll` blocks
|
|
2381
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2381
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.12.1/docs/rules/padding-around-after-all-blocks.md
|
|
2382
2382
|
*/
|
|
2383
2383
|
'jest/padding-around-after-all-blocks'?: Linter.RuleEntry<[]>;
|
|
2384
2384
|
/**
|
|
2385
2385
|
* Enforce padding around `afterEach` blocks
|
|
2386
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2386
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.12.1/docs/rules/padding-around-after-each-blocks.md
|
|
2387
2387
|
*/
|
|
2388
2388
|
'jest/padding-around-after-each-blocks'?: Linter.RuleEntry<[]>;
|
|
2389
2389
|
/**
|
|
2390
2390
|
* Enforce padding around Jest functions
|
|
2391
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2391
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.12.1/docs/rules/padding-around-all.md
|
|
2392
2392
|
*/
|
|
2393
2393
|
'jest/padding-around-all'?: Linter.RuleEntry<[]>;
|
|
2394
2394
|
/**
|
|
2395
2395
|
* Enforce padding around `beforeAll` blocks
|
|
2396
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2396
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.12.1/docs/rules/padding-around-before-all-blocks.md
|
|
2397
2397
|
*/
|
|
2398
2398
|
'jest/padding-around-before-all-blocks'?: Linter.RuleEntry<[]>;
|
|
2399
2399
|
/**
|
|
2400
2400
|
* Enforce padding around `beforeEach` blocks
|
|
2401
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2401
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.12.1/docs/rules/padding-around-before-each-blocks.md
|
|
2402
2402
|
*/
|
|
2403
2403
|
'jest/padding-around-before-each-blocks'?: Linter.RuleEntry<[]>;
|
|
2404
2404
|
/**
|
|
2405
2405
|
* Enforce padding around `describe` blocks
|
|
2406
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2406
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.12.1/docs/rules/padding-around-describe-blocks.md
|
|
2407
2407
|
*/
|
|
2408
2408
|
'jest/padding-around-describe-blocks'?: Linter.RuleEntry<[]>;
|
|
2409
2409
|
/**
|
|
2410
2410
|
* Enforce padding around `expect` groups
|
|
2411
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2411
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.12.1/docs/rules/padding-around-expect-groups.md
|
|
2412
2412
|
*/
|
|
2413
2413
|
'jest/padding-around-expect-groups'?: Linter.RuleEntry<[]>;
|
|
2414
2414
|
/**
|
|
2415
2415
|
* Enforce padding around `test` and `it` blocks
|
|
2416
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2416
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.12.1/docs/rules/padding-around-test-blocks.md
|
|
2417
2417
|
*/
|
|
2418
2418
|
'jest/padding-around-test-blocks'?: Linter.RuleEntry<[]>;
|
|
2419
2419
|
/**
|
|
2420
2420
|
* Suggest using `toHaveBeenCalledWith()`
|
|
2421
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2421
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.12.1/docs/rules/prefer-called-with.md
|
|
2422
2422
|
*/
|
|
2423
2423
|
'jest/prefer-called-with'?: Linter.RuleEntry<[]>;
|
|
2424
2424
|
/**
|
|
2425
2425
|
* Suggest using the built-in comparison matchers
|
|
2426
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2426
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.12.1/docs/rules/prefer-comparison-matcher.md
|
|
2427
2427
|
*/
|
|
2428
2428
|
'jest/prefer-comparison-matcher'?: Linter.RuleEntry<[]>;
|
|
2429
2429
|
/**
|
|
2430
2430
|
* Prefer using `.each` rather than manual loops
|
|
2431
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2431
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.12.1/docs/rules/prefer-each.md
|
|
2432
2432
|
*/
|
|
2433
2433
|
'jest/prefer-each'?: Linter.RuleEntry<[]>;
|
|
2434
2434
|
/**
|
|
2435
2435
|
* Prefer having the last statement in a test be an assertion
|
|
2436
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2436
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.12.1/docs/rules/prefer-ending-with-an-expect.md
|
|
2437
2437
|
*/
|
|
2438
2438
|
'jest/prefer-ending-with-an-expect'?: Linter.RuleEntry<JestPreferEndingWithAnExpect>;
|
|
2439
2439
|
/**
|
|
2440
2440
|
* Suggest using the built-in equality matchers
|
|
2441
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2441
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.12.1/docs/rules/prefer-equality-matcher.md
|
|
2442
2442
|
*/
|
|
2443
2443
|
'jest/prefer-equality-matcher'?: Linter.RuleEntry<[]>;
|
|
2444
2444
|
/**
|
|
2445
2445
|
* Suggest using `expect.assertions()` OR `expect.hasAssertions()`
|
|
2446
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2446
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.12.1/docs/rules/prefer-expect-assertions.md
|
|
2447
2447
|
*/
|
|
2448
2448
|
'jest/prefer-expect-assertions'?: Linter.RuleEntry<JestPreferExpectAssertions>;
|
|
2449
2449
|
/**
|
|
2450
2450
|
* Prefer `await expect(...).resolves` over `expect(await ...)` syntax
|
|
2451
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2451
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.12.1/docs/rules/prefer-expect-resolves.md
|
|
2452
2452
|
*/
|
|
2453
2453
|
'jest/prefer-expect-resolves'?: Linter.RuleEntry<[]>;
|
|
2454
2454
|
/**
|
|
2455
2455
|
* Prefer having hooks in a consistent order
|
|
2456
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2456
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.12.1/docs/rules/prefer-hooks-in-order.md
|
|
2457
2457
|
*/
|
|
2458
2458
|
'jest/prefer-hooks-in-order'?: Linter.RuleEntry<[]>;
|
|
2459
2459
|
/**
|
|
2460
2460
|
* Suggest having hooks before any test cases
|
|
2461
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2461
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.12.1/docs/rules/prefer-hooks-on-top.md
|
|
2462
2462
|
*/
|
|
2463
2463
|
'jest/prefer-hooks-on-top'?: Linter.RuleEntry<[]>;
|
|
2464
2464
|
/**
|
|
2465
2465
|
* Prefer importing Jest globals
|
|
2466
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2466
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.12.1/docs/rules/prefer-importing-jest-globals.md
|
|
2467
2467
|
*/
|
|
2468
2468
|
'jest/prefer-importing-jest-globals'?: Linter.RuleEntry<JestPreferImportingJestGlobals>;
|
|
2469
2469
|
/**
|
|
2470
2470
|
* Prefer `jest.mocked()` over `fn as jest.Mock`
|
|
2471
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2471
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.12.1/docs/rules/prefer-jest-mocked.md
|
|
2472
2472
|
*/
|
|
2473
2473
|
'jest/prefer-jest-mocked'?: Linter.RuleEntry<[]>;
|
|
2474
2474
|
/**
|
|
2475
2475
|
* Enforce lowercase test names
|
|
2476
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2476
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.12.1/docs/rules/prefer-lowercase-title.md
|
|
2477
2477
|
*/
|
|
2478
2478
|
'jest/prefer-lowercase-title'?: Linter.RuleEntry<JestPreferLowercaseTitle>;
|
|
2479
2479
|
/**
|
|
2480
2480
|
* Prefer mock resolved/rejected shorthands for promises
|
|
2481
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2481
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.12.1/docs/rules/prefer-mock-promise-shorthand.md
|
|
2482
2482
|
*/
|
|
2483
2483
|
'jest/prefer-mock-promise-shorthand'?: Linter.RuleEntry<[]>;
|
|
2484
2484
|
/**
|
|
2485
2485
|
* Prefer mock return shorthands
|
|
2486
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2486
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.12.1/docs/rules/prefer-mock-return-shorthand.md
|
|
2487
2487
|
*/
|
|
2488
2488
|
'jest/prefer-mock-return-shorthand'?: Linter.RuleEntry<[]>;
|
|
2489
2489
|
/**
|
|
2490
2490
|
* Prefer including a hint with external snapshots
|
|
2491
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2491
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.12.1/docs/rules/prefer-snapshot-hint.md
|
|
2492
2492
|
*/
|
|
2493
2493
|
'jest/prefer-snapshot-hint'?: Linter.RuleEntry<JestPreferSnapshotHint>;
|
|
2494
2494
|
/**
|
|
2495
2495
|
* Suggest using `jest.spyOn()`
|
|
2496
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2496
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.12.1/docs/rules/prefer-spy-on.md
|
|
2497
2497
|
*/
|
|
2498
2498
|
'jest/prefer-spy-on'?: Linter.RuleEntry<[]>;
|
|
2499
2499
|
/**
|
|
2500
2500
|
* Suggest using `toStrictEqual()`
|
|
2501
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2501
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.12.1/docs/rules/prefer-strict-equal.md
|
|
2502
2502
|
*/
|
|
2503
2503
|
'jest/prefer-strict-equal'?: Linter.RuleEntry<[]>;
|
|
2504
2504
|
/**
|
|
2505
2505
|
* Suggest using `toBe()` for primitive literals
|
|
2506
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2506
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.12.1/docs/rules/prefer-to-be.md
|
|
2507
2507
|
*/
|
|
2508
2508
|
'jest/prefer-to-be'?: Linter.RuleEntry<[]>;
|
|
2509
2509
|
/**
|
|
2510
2510
|
* Suggest using `toContain()`
|
|
2511
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2511
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.12.1/docs/rules/prefer-to-contain.md
|
|
2512
2512
|
*/
|
|
2513
2513
|
'jest/prefer-to-contain'?: Linter.RuleEntry<[]>;
|
|
2514
2514
|
/**
|
|
2515
2515
|
* Suggest using `toHaveBeenCalled`
|
|
2516
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2516
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.12.1/docs/rules/prefer-to-have-been-called.md
|
|
2517
2517
|
*/
|
|
2518
2518
|
'jest/prefer-to-have-been-called'?: Linter.RuleEntry<[]>;
|
|
2519
2519
|
/**
|
|
2520
2520
|
* Suggest using `toHaveBeenCalledTimes()`
|
|
2521
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2521
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.12.1/docs/rules/prefer-to-have-been-called-times.md
|
|
2522
2522
|
*/
|
|
2523
2523
|
'jest/prefer-to-have-been-called-times'?: Linter.RuleEntry<[]>;
|
|
2524
2524
|
/**
|
|
2525
2525
|
* Suggest using `toHaveLength()`
|
|
2526
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2526
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.12.1/docs/rules/prefer-to-have-length.md
|
|
2527
2527
|
*/
|
|
2528
2528
|
'jest/prefer-to-have-length'?: Linter.RuleEntry<[]>;
|
|
2529
2529
|
/**
|
|
2530
2530
|
* Suggest using `test.todo`
|
|
2531
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2531
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.12.1/docs/rules/prefer-todo.md
|
|
2532
2532
|
*/
|
|
2533
2533
|
'jest/prefer-todo'?: Linter.RuleEntry<[]>;
|
|
2534
2534
|
/**
|
|
2535
2535
|
* Require setup and teardown code to be within a hook
|
|
2536
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2536
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.12.1/docs/rules/require-hook.md
|
|
2537
2537
|
*/
|
|
2538
2538
|
'jest/require-hook'?: Linter.RuleEntry<JestRequireHook>;
|
|
2539
2539
|
/**
|
|
2540
2540
|
* Require a message for `toThrow()`
|
|
2541
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2541
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.12.1/docs/rules/require-to-throw-message.md
|
|
2542
2542
|
*/
|
|
2543
2543
|
'jest/require-to-throw-message'?: Linter.RuleEntry<[]>;
|
|
2544
2544
|
/**
|
|
2545
2545
|
* Require test cases and hooks to be inside a `describe` block
|
|
2546
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2546
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.12.1/docs/rules/require-top-level-describe.md
|
|
2547
2547
|
*/
|
|
2548
2548
|
'jest/require-top-level-describe'?: Linter.RuleEntry<JestRequireTopLevelDescribe>;
|
|
2549
2549
|
/**
|
|
2550
2550
|
* Enforce unbound methods are called with their expected scope
|
|
2551
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2551
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.12.1/docs/rules/unbound-method.md
|
|
2552
2552
|
*/
|
|
2553
2553
|
'jest/unbound-method'?: Linter.RuleEntry<JestUnboundMethod>;
|
|
2554
2554
|
/**
|
|
2555
2555
|
* Enforce valid `describe()` callback
|
|
2556
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2556
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.12.1/docs/rules/valid-describe-callback.md
|
|
2557
2557
|
*/
|
|
2558
2558
|
'jest/valid-describe-callback'?: Linter.RuleEntry<[]>;
|
|
2559
2559
|
/**
|
|
2560
2560
|
* Enforce valid `expect()` usage
|
|
2561
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2561
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.12.1/docs/rules/valid-expect.md
|
|
2562
2562
|
*/
|
|
2563
2563
|
'jest/valid-expect'?: Linter.RuleEntry<JestValidExpect>;
|
|
2564
2564
|
/**
|
|
2565
2565
|
* Require promises that have expectations in their chain to be valid
|
|
2566
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2566
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.12.1/docs/rules/valid-expect-in-promise.md
|
|
2567
2567
|
*/
|
|
2568
2568
|
'jest/valid-expect-in-promise'?: Linter.RuleEntry<[]>;
|
|
2569
2569
|
/**
|
|
2570
2570
|
* Require that `resolve` and `reject` modifiers are present (and only) for promise-like types
|
|
2571
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2571
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.12.1/docs/rules/valid-expect-with-promise.md
|
|
2572
2572
|
*/
|
|
2573
2573
|
'jest/valid-expect-with-promise'?: Linter.RuleEntry<[]>;
|
|
2574
2574
|
/**
|
|
2575
2575
|
* Disallow mocking of non-existing module paths
|
|
2576
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2576
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.12.1/docs/rules/valid-mock-module-path.md
|
|
2577
2577
|
*/
|
|
2578
2578
|
'jest/valid-mock-module-path'?: Linter.RuleEntry<JestValidMockModulePath>;
|
|
2579
2579
|
/**
|
|
2580
2580
|
* Enforce valid titles
|
|
2581
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2581
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.12.1/docs/rules/valid-title.md
|
|
2582
2582
|
*/
|
|
2583
2583
|
'jest/valid-title'?: Linter.RuleEntry<JestValidTitle>;
|
|
2584
2584
|
/**
|
|
@@ -4838,97 +4838,97 @@ interface RuleOptions {
|
|
|
4838
4838
|
*/
|
|
4839
4839
|
'react-compiler/react-compiler'?: Linter.RuleEntry<ReactCompilerReactCompiler>;
|
|
4840
4840
|
/**
|
|
4841
|
-
*
|
|
4841
|
+
* Disallows 'dangerouslySetInnerHTML'.
|
|
4842
4842
|
* @see https://eslint-react.xyz/docs/rules/dom-no-dangerously-set-innerhtml
|
|
4843
4843
|
*/
|
|
4844
4844
|
'react-dom/no-dangerously-set-innerhtml'?: Linter.RuleEntry<[]>;
|
|
4845
4845
|
/**
|
|
4846
|
-
*
|
|
4846
|
+
* Disallows 'dangerouslySetInnerHTML' and 'children' at the same time.
|
|
4847
4847
|
* @see https://eslint-react.xyz/docs/rules/dom-no-dangerously-set-innerhtml-with-children
|
|
4848
4848
|
*/
|
|
4849
4849
|
'react-dom/no-dangerously-set-innerhtml-with-children'?: Linter.RuleEntry<[]>;
|
|
4850
4850
|
/**
|
|
4851
|
-
*
|
|
4851
|
+
* Disallows 'findDOMNode'.
|
|
4852
4852
|
* @see https://eslint-react.xyz/docs/rules/dom-no-find-dom-node
|
|
4853
4853
|
*/
|
|
4854
4854
|
'react-dom/no-find-dom-node'?: Linter.RuleEntry<[]>;
|
|
4855
4855
|
/**
|
|
4856
|
-
*
|
|
4856
|
+
* Disallows 'flushSync'.
|
|
4857
4857
|
* @see https://eslint-react.xyz/docs/rules/dom-no-flush-sync
|
|
4858
4858
|
*/
|
|
4859
4859
|
'react-dom/no-flush-sync'?: Linter.RuleEntry<[]>;
|
|
4860
4860
|
/**
|
|
4861
|
-
* Replaces
|
|
4861
|
+
* Replaces usage of 'ReactDom.hydrate()' with 'hydrateRoot()'.
|
|
4862
4862
|
* @see https://eslint-react.xyz/docs/rules/dom-no-hydrate
|
|
4863
4863
|
*/
|
|
4864
4864
|
'react-dom/no-hydrate'?: Linter.RuleEntry<[]>;
|
|
4865
4865
|
/**
|
|
4866
|
-
* Enforces explicit
|
|
4866
|
+
* Enforces explicit 'type' attribute for 'button' elements.
|
|
4867
4867
|
* @see https://eslint-react.xyz/docs/rules/dom-no-missing-button-type
|
|
4868
4868
|
*/
|
|
4869
4869
|
'react-dom/no-missing-button-type'?: Linter.RuleEntry<[]>;
|
|
4870
4870
|
/**
|
|
4871
|
-
* Enforces explicit
|
|
4871
|
+
* Enforces explicit 'sandbox' attribute for 'iframe' elements.
|
|
4872
4872
|
* @see https://eslint-react.xyz/docs/rules/dom-no-missing-iframe-sandbox
|
|
4873
4873
|
*/
|
|
4874
4874
|
'react-dom/no-missing-iframe-sandbox'?: Linter.RuleEntry<[]>;
|
|
4875
4875
|
/**
|
|
4876
|
-
* Enforces the absence of a
|
|
4876
|
+
* Enforces the absence of a 'namespace' in React elements.
|
|
4877
4877
|
* @see https://eslint-react.xyz/docs/rules/dom-no-namespace
|
|
4878
4878
|
*/
|
|
4879
4879
|
'react-dom/no-namespace'?: Linter.RuleEntry<[]>;
|
|
4880
4880
|
/**
|
|
4881
|
-
* Replaces
|
|
4881
|
+
* Replaces usage of 'ReactDom.render()' with 'createRoot(node).render()'.
|
|
4882
4882
|
* @see https://eslint-react.xyz/docs/rules/dom-no-render
|
|
4883
4883
|
*/
|
|
4884
4884
|
'react-dom/no-render'?: Linter.RuleEntry<[]>;
|
|
4885
4885
|
/**
|
|
4886
|
-
*
|
|
4886
|
+
* Disallows the return value of 'ReactDOM.render'.
|
|
4887
4887
|
* @see https://eslint-react.xyz/docs/rules/dom-no-render-return-value
|
|
4888
4888
|
*/
|
|
4889
4889
|
'react-dom/no-render-return-value'?: Linter.RuleEntry<[]>;
|
|
4890
4890
|
/**
|
|
4891
|
-
*
|
|
4891
|
+
* Disallows 'javascript:' URLs as attribute values.
|
|
4892
4892
|
* @see https://eslint-react.xyz/docs/rules/dom-no-script-url
|
|
4893
4893
|
*/
|
|
4894
4894
|
'react-dom/no-script-url'?: Linter.RuleEntry<[]>;
|
|
4895
4895
|
/**
|
|
4896
|
-
* Disallows the use of string style prop.
|
|
4896
|
+
* Disallows the use of string style prop in JSX. Use an object instead.
|
|
4897
4897
|
* @see https://eslint-react.xyz/docs/rules/dom-no-string-style-prop
|
|
4898
4898
|
*/
|
|
4899
4899
|
'react-dom/no-string-style-prop'?: Linter.RuleEntry<[]>;
|
|
4900
4900
|
/**
|
|
4901
|
-
*
|
|
4901
|
+
* Disallows unknown 'DOM' property.
|
|
4902
4902
|
* @see https://eslint-react.xyz/docs/rules/dom-no-unknown-property
|
|
4903
4903
|
*/
|
|
4904
4904
|
'react-dom/no-unknown-property'?: Linter.RuleEntry<ReactDomNoUnknownProperty>;
|
|
4905
4905
|
/**
|
|
4906
|
-
* Enforces
|
|
4906
|
+
* Enforces 'sandbox' attribute for 'iframe' elements is not set to unsafe combinations.
|
|
4907
4907
|
* @see https://eslint-react.xyz/docs/rules/dom-no-unsafe-iframe-sandbox
|
|
4908
4908
|
*/
|
|
4909
4909
|
'react-dom/no-unsafe-iframe-sandbox'?: Linter.RuleEntry<[]>;
|
|
4910
4910
|
/**
|
|
4911
|
-
*
|
|
4911
|
+
* Disallows 'target="_blank"' without 'rel="noreferrer noopener"'.
|
|
4912
4912
|
* @see https://eslint-react.xyz/docs/rules/dom-no-unsafe-target-blank
|
|
4913
4913
|
*/
|
|
4914
4914
|
'react-dom/no-unsafe-target-blank'?: Linter.RuleEntry<[]>;
|
|
4915
4915
|
/**
|
|
4916
|
-
* Replaces
|
|
4916
|
+
* Replaces usage of 'useFormState' with 'useActionState'.
|
|
4917
4917
|
* @see https://eslint-react.xyz/docs/rules/dom-no-use-form-state
|
|
4918
4918
|
*/
|
|
4919
4919
|
'react-dom/no-use-form-state'?: Linter.RuleEntry<[]>;
|
|
4920
4920
|
/**
|
|
4921
|
-
*
|
|
4921
|
+
* Disallows 'children' in void DOM elements.
|
|
4922
4922
|
* @see https://eslint-react.xyz/docs/rules/dom-no-void-elements-with-children
|
|
4923
4923
|
*/
|
|
4924
4924
|
'react-dom/no-void-elements-with-children'?: Linter.RuleEntry<[]>;
|
|
4925
4925
|
/**
|
|
4926
|
-
* Enforces React
|
|
4926
|
+
* Enforces React DOM is imported via a namespace import.
|
|
4927
4927
|
* @see https://eslint-react.xyz/docs/rules/dom-prefer-namespace-import
|
|
4928
4928
|
*/
|
|
4929
4929
|
'react-dom/prefer-namespace-import'?: Linter.RuleEntry<[]>;
|
|
4930
4930
|
/**
|
|
4931
|
-
*
|
|
4931
|
+
* Disallows **direct** calls to the 'set' function of 'useState' in 'useEffect'.
|
|
4932
4932
|
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-direct-set-state-in-use-effect
|
|
4933
4933
|
*/
|
|
4934
4934
|
'react-hooks-extra/no-direct-set-state-in-use-effect'?: Linter.RuleEntry<[]>;
|
|
@@ -5056,7 +5056,7 @@ interface RuleOptions {
|
|
|
5056
5056
|
*/
|
|
5057
5057
|
'react-naming-convention/component-name'?: Linter.RuleEntry<ReactNamingConventionComponentName>;
|
|
5058
5058
|
/**
|
|
5059
|
-
* Enforces context name to be a valid component name with the suffix
|
|
5059
|
+
* Enforces the context name to be a valid component name with the suffix 'Context'.
|
|
5060
5060
|
* @see https://eslint-react.xyz/docs/rules/naming-convention-context-name
|
|
5061
5061
|
*/
|
|
5062
5062
|
'react-naming-convention/context-name'?: Linter.RuleEntry<[]>;
|
|
@@ -5066,38 +5066,43 @@ interface RuleOptions {
|
|
|
5066
5066
|
*/
|
|
5067
5067
|
'react-naming-convention/filename'?: Linter.RuleEntry<ReactNamingConventionFilename>;
|
|
5068
5068
|
/**
|
|
5069
|
-
* Enforces consistent file
|
|
5069
|
+
* Enforces consistent use of the JSX file extension.
|
|
5070
5070
|
* @see https://eslint-react.xyz/docs/rules/naming-convention-filename-extension
|
|
5071
5071
|
*/
|
|
5072
5072
|
'react-naming-convention/filename-extension'?: Linter.RuleEntry<ReactNamingConventionFilenameExtension>;
|
|
5073
5073
|
/**
|
|
5074
|
-
* Enforces
|
|
5074
|
+
* Enforces that variables assigned from 'useRef' calls have names ending with 'Ref'.
|
|
5075
|
+
* @see https://eslint-react.xyz/docs/rules/naming-convention-ref-name
|
|
5076
|
+
*/
|
|
5077
|
+
'react-naming-convention/ref-name'?: Linter.RuleEntry<[]>;
|
|
5078
|
+
/**
|
|
5079
|
+
* Enforces destructuring and symmetric naming of the 'useState' hook value and setter.
|
|
5075
5080
|
* @see https://eslint-react.xyz/docs/rules/naming-convention-use-state
|
|
5076
5081
|
*/
|
|
5077
5082
|
'react-naming-convention/use-state'?: Linter.RuleEntry<ReactNamingConventionUseState>;
|
|
5078
5083
|
'react-refresh/only-export-components'?: Linter.RuleEntry<ReactRefreshOnlyExportComponents>;
|
|
5079
5084
|
/**
|
|
5080
|
-
*
|
|
5085
|
+
* Enforces that every 'addEventListener' in a component or custom hook has a corresponding 'removeEventListener'.
|
|
5081
5086
|
* @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-event-listener
|
|
5082
5087
|
*/
|
|
5083
5088
|
'react-web-api/no-leaked-event-listener'?: Linter.RuleEntry<[]>;
|
|
5084
5089
|
/**
|
|
5085
|
-
*
|
|
5090
|
+
* Enforces that every 'setInterval' in a component or custom hook has a corresponding 'clearInterval'.
|
|
5086
5091
|
* @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-interval
|
|
5087
5092
|
*/
|
|
5088
5093
|
'react-web-api/no-leaked-interval'?: Linter.RuleEntry<[]>;
|
|
5089
5094
|
/**
|
|
5090
|
-
*
|
|
5095
|
+
* Enforces that every 'ResizeObserver' created in a component or custom hook has a corresponding 'ResizeObserver.disconnect()'.
|
|
5091
5096
|
* @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-resize-observer
|
|
5092
5097
|
*/
|
|
5093
5098
|
'react-web-api/no-leaked-resize-observer'?: Linter.RuleEntry<[]>;
|
|
5094
5099
|
/**
|
|
5095
|
-
*
|
|
5100
|
+
* Enforces that every 'setTimeout' in a component or custom hook has a corresponding 'clearTimeout'.
|
|
5096
5101
|
* @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-timeout
|
|
5097
5102
|
*/
|
|
5098
5103
|
'react-web-api/no-leaked-timeout'?: Linter.RuleEntry<[]>;
|
|
5099
5104
|
/**
|
|
5100
|
-
* Prevents dollar signs from being inserted
|
|
5105
|
+
* Prevents unnecessary dollar signs ('$') from being inserted before an expression in JSX.
|
|
5101
5106
|
* @see https://eslint-react.xyz/docs/rules/jsx-dollar
|
|
5102
5107
|
*/
|
|
5103
5108
|
'react-x/jsx-dollar'?: Linter.RuleEntry<[]>;
|
|
@@ -5107,37 +5112,37 @@ interface RuleOptions {
|
|
|
5107
5112
|
*/
|
|
5108
5113
|
'react-x/jsx-key-before-spread'?: Linter.RuleEntry<[]>;
|
|
5109
5114
|
/**
|
|
5110
|
-
* Prevents
|
|
5115
|
+
* Prevents comment strings (e.g., beginning with '//' or '/*') from being accidentally inserted into a JSX element's text nodes.
|
|
5111
5116
|
* @see https://eslint-react.xyz/docs/rules/jsx-no-comment-textnodes
|
|
5112
5117
|
*/
|
|
5113
5118
|
'react-x/jsx-no-comment-textnodes'?: Linter.RuleEntry<[]>;
|
|
5114
5119
|
/**
|
|
5115
|
-
*
|
|
5120
|
+
* Disallows duplicate props in JSX elements.
|
|
5116
5121
|
* @see https://eslint-react.xyz/docs/rules/jsx-no-duplicate-props
|
|
5117
5122
|
*/
|
|
5118
5123
|
'react-x/jsx-no-duplicate-props'?: Linter.RuleEntry<[]>;
|
|
5119
5124
|
/**
|
|
5120
|
-
* Disallows 'IIFE' in JSX
|
|
5125
|
+
* Disallows 'IIFE' in JSX.
|
|
5121
5126
|
* @see https://eslint-react.xyz/docs/rules/jsx-no-iife
|
|
5122
5127
|
*/
|
|
5123
5128
|
'react-x/jsx-no-iife'?: Linter.RuleEntry<[]>;
|
|
5124
5129
|
/**
|
|
5125
|
-
*
|
|
5130
|
+
* Prevents using variables in JSX that are not defined in the scope.
|
|
5126
5131
|
* @see https://eslint-react.xyz/docs/rules/jsx-no-undef
|
|
5127
5132
|
*/
|
|
5128
5133
|
'react-x/jsx-no-undef'?: Linter.RuleEntry<[]>;
|
|
5129
5134
|
/**
|
|
5130
|
-
* Enforces shorthand syntax for boolean attributes.
|
|
5135
|
+
* Enforces the use of shorthand syntax for boolean attributes.
|
|
5131
5136
|
* @see https://eslint-react.xyz/docs/rules/jsx-shorthand-boolean
|
|
5132
5137
|
*/
|
|
5133
5138
|
'react-x/jsx-shorthand-boolean'?: Linter.RuleEntry<ReactXJsxShorthandBoolean>;
|
|
5134
5139
|
/**
|
|
5135
|
-
* Enforces shorthand syntax for fragments.
|
|
5140
|
+
* Enforces the use of shorthand syntax for fragments.
|
|
5136
5141
|
* @see https://eslint-react.xyz/docs/rules/jsx-shorthand-fragment
|
|
5137
5142
|
*/
|
|
5138
5143
|
'react-x/jsx-shorthand-fragment'?: Linter.RuleEntry<ReactXJsxShorthandFragment>;
|
|
5139
5144
|
/**
|
|
5140
|
-
* Marks React variables as used when JSX is
|
|
5145
|
+
* Marks React variables as used when JSX is present.
|
|
5141
5146
|
* @see https://eslint-react.xyz/docs/rules/jsx-uses-react
|
|
5142
5147
|
*/
|
|
5143
5148
|
'react-x/jsx-uses-react'?: Linter.RuleEntry<[]>;
|
|
@@ -5147,108 +5152,108 @@ interface RuleOptions {
|
|
|
5147
5152
|
*/
|
|
5148
5153
|
'react-x/jsx-uses-vars'?: Linter.RuleEntry<[]>;
|
|
5149
5154
|
/**
|
|
5150
|
-
*
|
|
5155
|
+
* Disallows accessing 'this.state' inside 'setState' calls.
|
|
5151
5156
|
* @see https://eslint-react.xyz/docs/rules/no-access-state-in-setstate
|
|
5152
5157
|
*/
|
|
5153
5158
|
'react-x/no-access-state-in-setstate'?: Linter.RuleEntry<[]>;
|
|
5154
5159
|
/**
|
|
5155
|
-
*
|
|
5160
|
+
* Disallows using an item's index in the array as its key.
|
|
5156
5161
|
* @see https://eslint-react.xyz/docs/rules/no-array-index-key
|
|
5157
5162
|
*/
|
|
5158
5163
|
'react-x/no-array-index-key'?: Linter.RuleEntry<[]>;
|
|
5159
5164
|
/**
|
|
5160
|
-
*
|
|
5165
|
+
* Disallows the use of 'Children.count' from the 'react' package.
|
|
5161
5166
|
* @see https://eslint-react.xyz/docs/rules/no-children-count
|
|
5162
5167
|
*/
|
|
5163
5168
|
'react-x/no-children-count'?: Linter.RuleEntry<[]>;
|
|
5164
5169
|
/**
|
|
5165
|
-
*
|
|
5170
|
+
* Disallows the use of 'Children.forEach' from the 'react' package.
|
|
5166
5171
|
* @see https://eslint-react.xyz/docs/rules/no-children-for-each
|
|
5167
5172
|
*/
|
|
5168
5173
|
'react-x/no-children-for-each'?: Linter.RuleEntry<[]>;
|
|
5169
5174
|
/**
|
|
5170
|
-
*
|
|
5175
|
+
* Disallows the use of 'Children.map' from the 'react' package.
|
|
5171
5176
|
* @see https://eslint-react.xyz/docs/rules/no-children-map
|
|
5172
5177
|
*/
|
|
5173
5178
|
'react-x/no-children-map'?: Linter.RuleEntry<[]>;
|
|
5174
5179
|
/**
|
|
5175
|
-
*
|
|
5180
|
+
* Disallows the use of 'Children.only' from the 'react' package.
|
|
5176
5181
|
* @see https://eslint-react.xyz/docs/rules/no-children-only
|
|
5177
5182
|
*/
|
|
5178
5183
|
'react-x/no-children-only'?: Linter.RuleEntry<[]>;
|
|
5179
5184
|
/**
|
|
5180
|
-
*
|
|
5185
|
+
* Disallows passing 'children' as a prop.
|
|
5181
5186
|
* @see https://eslint-react.xyz/docs/rules/no-children-prop
|
|
5182
5187
|
*/
|
|
5183
5188
|
'react-x/no-children-prop'?: Linter.RuleEntry<[]>;
|
|
5184
5189
|
/**
|
|
5185
|
-
*
|
|
5190
|
+
* Disallows the use of 'Children.toArray' from the 'react' package.
|
|
5186
5191
|
* @see https://eslint-react.xyz/docs/rules/no-children-to-array
|
|
5187
5192
|
*/
|
|
5188
5193
|
'react-x/no-children-to-array'?: Linter.RuleEntry<[]>;
|
|
5189
5194
|
/**
|
|
5190
|
-
*
|
|
5195
|
+
* Disallows class components except for error boundaries.
|
|
5191
5196
|
* @see https://eslint-react.xyz/docs/rules/no-class-component
|
|
5192
5197
|
*/
|
|
5193
5198
|
'react-x/no-class-component'?: Linter.RuleEntry<[]>;
|
|
5194
5199
|
/**
|
|
5195
|
-
*
|
|
5200
|
+
* Disallows 'cloneElement'.
|
|
5196
5201
|
* @see https://eslint-react.xyz/docs/rules/no-clone-element
|
|
5197
5202
|
*/
|
|
5198
5203
|
'react-x/no-clone-element'?: Linter.RuleEntry<[]>;
|
|
5199
5204
|
/**
|
|
5200
|
-
*
|
|
5205
|
+
* Replaces usage of 'componentWillMount' with 'UNSAFE_componentWillMount'.
|
|
5201
5206
|
* @see https://eslint-react.xyz/docs/rules/no-component-will-mount
|
|
5202
5207
|
*/
|
|
5203
5208
|
'react-x/no-component-will-mount'?: Linter.RuleEntry<[]>;
|
|
5204
5209
|
/**
|
|
5205
|
-
*
|
|
5210
|
+
* Replaces usage of 'componentWillReceiveProps' with 'UNSAFE_componentWillReceiveProps'.
|
|
5206
5211
|
* @see https://eslint-react.xyz/docs/rules/no-component-will-receive-props
|
|
5207
5212
|
*/
|
|
5208
5213
|
'react-x/no-component-will-receive-props'?: Linter.RuleEntry<[]>;
|
|
5209
5214
|
/**
|
|
5210
|
-
*
|
|
5215
|
+
* Replaces usage of 'componentWillUpdate' with 'UNSAFE_componentWillUpdate'.
|
|
5211
5216
|
* @see https://eslint-react.xyz/docs/rules/no-component-will-update
|
|
5212
5217
|
*/
|
|
5213
5218
|
'react-x/no-component-will-update'?: Linter.RuleEntry<[]>;
|
|
5214
5219
|
/**
|
|
5215
|
-
*
|
|
5220
|
+
* Replaces usage of '<Context.Provider>' with '<Context>'.
|
|
5216
5221
|
* @see https://eslint-react.xyz/docs/rules/no-context-provider
|
|
5217
5222
|
*/
|
|
5218
5223
|
'react-x/no-context-provider'?: Linter.RuleEntry<[]>;
|
|
5219
5224
|
/**
|
|
5220
|
-
*
|
|
5225
|
+
* Disallows 'createRef' in function components.
|
|
5221
5226
|
* @see https://eslint-react.xyz/docs/rules/no-create-ref
|
|
5222
5227
|
*/
|
|
5223
5228
|
'react-x/no-create-ref'?: Linter.RuleEntry<[]>;
|
|
5224
5229
|
/**
|
|
5225
|
-
*
|
|
5230
|
+
* Disallows the 'defaultProps' property in favor of ES6 default parameters.
|
|
5226
5231
|
* @see https://eslint-react.xyz/docs/rules/no-default-props
|
|
5227
5232
|
*/
|
|
5228
5233
|
'react-x/no-default-props'?: Linter.RuleEntry<[]>;
|
|
5229
5234
|
/**
|
|
5230
|
-
*
|
|
5235
|
+
* Disallows direct mutation of 'this.state'.
|
|
5231
5236
|
* @see https://eslint-react.xyz/docs/rules/no-direct-mutation-state
|
|
5232
5237
|
*/
|
|
5233
5238
|
'react-x/no-direct-mutation-state'?: Linter.RuleEntry<[]>;
|
|
5234
5239
|
/**
|
|
5235
|
-
*
|
|
5240
|
+
* Disallows duplicate 'key' on elements in the same array or a list of 'children'.
|
|
5236
5241
|
* @see https://eslint-react.xyz/docs/rules/no-duplicate-key
|
|
5237
5242
|
*/
|
|
5238
5243
|
'react-x/no-duplicate-key'?: Linter.RuleEntry<[]>;
|
|
5239
5244
|
/**
|
|
5240
|
-
*
|
|
5245
|
+
* Disallows certain props on components.
|
|
5241
5246
|
* @see https://eslint-react.xyz/docs/rules/no-forbidden-props
|
|
5242
5247
|
* @deprecated
|
|
5243
5248
|
*/
|
|
5244
5249
|
'react-x/no-forbidden-props'?: Linter.RuleEntry<ReactXNoForbiddenProps>;
|
|
5245
5250
|
/**
|
|
5246
|
-
* Replaces
|
|
5251
|
+
* Replaces usage of 'forwardRef' with passing 'ref' as a prop.
|
|
5247
5252
|
* @see https://eslint-react.xyz/docs/rules/no-forward-ref
|
|
5248
5253
|
*/
|
|
5249
5254
|
'react-x/no-forward-ref'?: Linter.RuleEntry<[]>;
|
|
5250
5255
|
/**
|
|
5251
|
-
* Prevents
|
|
5256
|
+
* Prevents 'key' from not being explicitly specified (e.g., spreading 'key' from objects).
|
|
5252
5257
|
* @see https://eslint-react.xyz/docs/rules/no-implicit-key
|
|
5253
5258
|
*/
|
|
5254
5259
|
'react-x/no-implicit-key'?: Linter.RuleEntry<[]>;
|
|
@@ -5258,57 +5263,57 @@ interface RuleOptions {
|
|
|
5258
5263
|
*/
|
|
5259
5264
|
'react-x/no-leaked-conditional-rendering'?: Linter.RuleEntry<[]>;
|
|
5260
5265
|
/**
|
|
5261
|
-
* Enforces that all components have a
|
|
5266
|
+
* Enforces that all components have a 'displayName' that can be used in devtools.
|
|
5262
5267
|
* @see https://eslint-react.xyz/docs/rules/no-missing-component-display-name
|
|
5263
5268
|
*/
|
|
5264
5269
|
'react-x/no-missing-component-display-name'?: Linter.RuleEntry<[]>;
|
|
5265
5270
|
/**
|
|
5266
|
-
* Enforces that all contexts have a
|
|
5271
|
+
* Enforces that all contexts have a 'displayName' that can be used in devtools.
|
|
5267
5272
|
* @see https://eslint-react.xyz/docs/rules/no-missing-context-display-name
|
|
5268
5273
|
*/
|
|
5269
5274
|
'react-x/no-missing-context-display-name'?: Linter.RuleEntry<[]>;
|
|
5270
5275
|
/**
|
|
5271
|
-
*
|
|
5276
|
+
* Disallows missing 'key' on items in list rendering.
|
|
5272
5277
|
* @see https://eslint-react.xyz/docs/rules/no-missing-key
|
|
5273
5278
|
*/
|
|
5274
5279
|
'react-x/no-missing-key'?: Linter.RuleEntry<[]>;
|
|
5275
5280
|
/**
|
|
5276
|
-
* Prevents incorrect usage of
|
|
5281
|
+
* Prevents incorrect usage of 'captureOwnerStack'.
|
|
5277
5282
|
* @see https://eslint-react.xyz/docs/rules/no-misused-capture-owner-stack
|
|
5278
5283
|
*/
|
|
5279
5284
|
'react-x/no-misused-capture-owner-stack'?: Linter.RuleEntry<[]>;
|
|
5280
5285
|
/**
|
|
5281
|
-
*
|
|
5286
|
+
* Disallows nesting component definitions inside other components.
|
|
5282
5287
|
* @see https://eslint-react.xyz/docs/rules/no-nested-component-definitions
|
|
5283
5288
|
*/
|
|
5284
5289
|
'react-x/no-nested-component-definitions'?: Linter.RuleEntry<[]>;
|
|
5285
5290
|
/**
|
|
5286
|
-
*
|
|
5291
|
+
* Disallows nesting lazy component declarations inside other components.
|
|
5287
5292
|
* @see https://eslint-react.xyz/docs/rules/no-nested-lazy-component-declarations
|
|
5288
5293
|
*/
|
|
5289
5294
|
'react-x/no-nested-lazy-component-declarations'?: Linter.RuleEntry<[]>;
|
|
5290
5295
|
/**
|
|
5291
|
-
*
|
|
5296
|
+
* Disallows 'propTypes' in favor of TypeScript or another type-checking solution.
|
|
5292
5297
|
* @see https://eslint-react.xyz/docs/rules/no-prop-types
|
|
5293
5298
|
*/
|
|
5294
5299
|
'react-x/no-prop-types'?: Linter.RuleEntry<[]>;
|
|
5295
5300
|
/**
|
|
5296
|
-
*
|
|
5301
|
+
* Disallows 'shouldComponentUpdate' when extending 'React.PureComponent'.
|
|
5297
5302
|
* @see https://eslint-react.xyz/docs/rules/no-redundant-should-component-update
|
|
5298
5303
|
*/
|
|
5299
5304
|
'react-x/no-redundant-should-component-update'?: Linter.RuleEntry<[]>;
|
|
5300
5305
|
/**
|
|
5301
|
-
*
|
|
5306
|
+
* Disallows calling 'this.setState' in 'componentDidMount' outside functions such as callbacks.
|
|
5302
5307
|
* @see https://eslint-react.xyz/docs/rules/no-set-state-in-component-did-mount
|
|
5303
5308
|
*/
|
|
5304
5309
|
'react-x/no-set-state-in-component-did-mount'?: Linter.RuleEntry<[]>;
|
|
5305
5310
|
/**
|
|
5306
|
-
*
|
|
5311
|
+
* Disallows calling 'this.setState' in 'componentDidUpdate' outside functions such as callbacks.
|
|
5307
5312
|
* @see https://eslint-react.xyz/docs/rules/no-set-state-in-component-did-update
|
|
5308
5313
|
*/
|
|
5309
5314
|
'react-x/no-set-state-in-component-did-update'?: Linter.RuleEntry<[]>;
|
|
5310
5315
|
/**
|
|
5311
|
-
*
|
|
5316
|
+
* Disallows calling 'this.setState' in 'componentWillUpdate' outside functions such as callbacks.
|
|
5312
5317
|
* @see https://eslint-react.xyz/docs/rules/no-set-state-in-component-will-update
|
|
5313
5318
|
*/
|
|
5314
5319
|
'react-x/no-set-state-in-component-will-update'?: Linter.RuleEntry<[]>;
|
|
@@ -5318,42 +5323,42 @@ interface RuleOptions {
|
|
|
5318
5323
|
*/
|
|
5319
5324
|
'react-x/no-string-refs'?: Linter.RuleEntry<[]>;
|
|
5320
5325
|
/**
|
|
5321
|
-
* Prevents
|
|
5326
|
+
* Prevents 'key' from being placed on non-top-level elements in list rendering.
|
|
5322
5327
|
* @see https://eslint-react.xyz/docs/rules/no-unnecessary-key
|
|
5323
5328
|
*/
|
|
5324
5329
|
'react-x/no-unnecessary-key'?: Linter.RuleEntry<[]>;
|
|
5325
5330
|
/**
|
|
5326
|
-
*
|
|
5331
|
+
* Disallows unnecessary usage of 'useCallback'.
|
|
5327
5332
|
* @see https://eslint-react.xyz/docs/rules/no-unnecessary-use-callback
|
|
5328
5333
|
*/
|
|
5329
5334
|
'react-x/no-unnecessary-use-callback'?: Linter.RuleEntry<[]>;
|
|
5330
5335
|
/**
|
|
5331
|
-
*
|
|
5336
|
+
* Disallows unnecessary usage of 'useMemo'.
|
|
5332
5337
|
* @see https://eslint-react.xyz/docs/rules/no-unnecessary-use-memo
|
|
5333
5338
|
*/
|
|
5334
5339
|
'react-x/no-unnecessary-use-memo'?: Linter.RuleEntry<[]>;
|
|
5335
5340
|
/**
|
|
5336
|
-
* Enforces that a function with the
|
|
5341
|
+
* Enforces that a function with the 'use' prefix uses at least one Hook inside it.
|
|
5337
5342
|
* @see https://eslint-react.xyz/docs/rules/no-unnecessary-use-prefix
|
|
5338
5343
|
*/
|
|
5339
5344
|
'react-x/no-unnecessary-use-prefix'?: Linter.RuleEntry<[]>;
|
|
5340
5345
|
/**
|
|
5341
|
-
* Warns the
|
|
5346
|
+
* Warns about the use of 'UNSAFE_componentWillMount' in class components.
|
|
5342
5347
|
* @see https://eslint-react.xyz/docs/rules/no-unsafe-component-will-mount
|
|
5343
5348
|
*/
|
|
5344
5349
|
'react-x/no-unsafe-component-will-mount'?: Linter.RuleEntry<[]>;
|
|
5345
5350
|
/**
|
|
5346
|
-
* Warns the
|
|
5351
|
+
* Warns about the use of 'UNSAFE_componentWillReceiveProps' in class components.
|
|
5347
5352
|
* @see https://eslint-react.xyz/docs/rules/no-unsafe-component-will-receive-props
|
|
5348
5353
|
*/
|
|
5349
5354
|
'react-x/no-unsafe-component-will-receive-props'?: Linter.RuleEntry<[]>;
|
|
5350
5355
|
/**
|
|
5351
|
-
* Warns the
|
|
5356
|
+
* Warns about the use of 'UNSAFE_componentWillUpdate' in class components.
|
|
5352
5357
|
* @see https://eslint-react.xyz/docs/rules/no-unsafe-component-will-update
|
|
5353
5358
|
*/
|
|
5354
5359
|
'react-x/no-unsafe-component-will-update'?: Linter.RuleEntry<[]>;
|
|
5355
5360
|
/**
|
|
5356
|
-
* Prevents non-stable values (i.e
|
|
5361
|
+
* Prevents non-stable values (i.e., object literals) from being used as a value for 'Context.Provider'.
|
|
5357
5362
|
* @see https://eslint-react.xyz/docs/rules/no-unstable-context-value
|
|
5358
5363
|
*/
|
|
5359
5364
|
'react-x/no-unstable-context-value'?: Linter.RuleEntry<[]>;
|
|
@@ -5363,32 +5368,32 @@ interface RuleOptions {
|
|
|
5363
5368
|
*/
|
|
5364
5369
|
'react-x/no-unstable-default-props'?: Linter.RuleEntry<ReactXNoUnstableDefaultProps>;
|
|
5365
5370
|
/**
|
|
5366
|
-
* Warns unused class component methods and properties.
|
|
5371
|
+
* Warns about unused class component methods and properties.
|
|
5367
5372
|
* @see https://eslint-react.xyz/docs/rules/no-unused-class-component-members
|
|
5368
5373
|
*/
|
|
5369
5374
|
'react-x/no-unused-class-component-members'?: Linter.RuleEntry<[]>;
|
|
5370
5375
|
/**
|
|
5371
|
-
* Warns component props that are defined but never used.
|
|
5376
|
+
* Warns about component props that are defined but never used.
|
|
5372
5377
|
* @see https://eslint-react.xyz/docs/rules/no-unused-props
|
|
5373
5378
|
*/
|
|
5374
5379
|
'react-x/no-unused-props'?: Linter.RuleEntry<[]>;
|
|
5375
5380
|
/**
|
|
5376
|
-
* Warns unused class component state.
|
|
5381
|
+
* Warns about unused class component state.
|
|
5377
5382
|
* @see https://eslint-react.xyz/docs/rules/no-unused-state
|
|
5378
5383
|
*/
|
|
5379
5384
|
'react-x/no-unused-state'?: Linter.RuleEntry<[]>;
|
|
5380
5385
|
/**
|
|
5381
|
-
* Replaces
|
|
5386
|
+
* Replaces usage of 'useContext' with 'use'.
|
|
5382
5387
|
* @see https://eslint-react.xyz/docs/rules/no-use-context
|
|
5383
5388
|
*/
|
|
5384
5389
|
'react-x/no-use-context'?: Linter.RuleEntry<[]>;
|
|
5385
5390
|
/**
|
|
5386
|
-
*
|
|
5391
|
+
* Disallows useless 'forwardRef' calls on components that don't use 'ref's.
|
|
5387
5392
|
* @see https://eslint-react.xyz/docs/rules/no-useless-forward-ref
|
|
5388
5393
|
*/
|
|
5389
5394
|
'react-x/no-useless-forward-ref'?: Linter.RuleEntry<[]>;
|
|
5390
5395
|
/**
|
|
5391
|
-
*
|
|
5396
|
+
* Disallows useless fragment elements.
|
|
5392
5397
|
* @see https://eslint-react.xyz/docs/rules/no-useless-fragment
|
|
5393
5398
|
*/
|
|
5394
5399
|
'react-x/no-useless-fragment'?: Linter.RuleEntry<ReactXNoUselessFragment>;
|
|
@@ -5398,7 +5403,7 @@ interface RuleOptions {
|
|
|
5398
5403
|
*/
|
|
5399
5404
|
'react-x/prefer-destructuring-assignment'?: Linter.RuleEntry<[]>;
|
|
5400
5405
|
/**
|
|
5401
|
-
* Enforces React
|
|
5406
|
+
* Enforces importing React via a namespace import.
|
|
5402
5407
|
* @see https://eslint-react.xyz/docs/rules/prefer-namespace-import
|
|
5403
5408
|
*/
|
|
5404
5409
|
'react-x/prefer-namespace-import'?: Linter.RuleEntry<[]>;
|
|
@@ -5408,7 +5413,7 @@ interface RuleOptions {
|
|
|
5408
5413
|
*/
|
|
5409
5414
|
'react-x/prefer-read-only-props'?: Linter.RuleEntry<[]>;
|
|
5410
5415
|
/**
|
|
5411
|
-
* Enforces function calls made inside
|
|
5416
|
+
* Enforces wrapping function calls made inside 'useState' in an 'initializer function'.
|
|
5412
5417
|
* @see https://eslint-react.xyz/docs/rules/prefer-use-state-lazy-initialization
|
|
5413
5418
|
*/
|
|
5414
5419
|
'react-x/prefer-use-state-lazy-initialization'?: Linter.RuleEntry<[]>;
|
|
@@ -6962,7 +6967,7 @@ interface RuleOptions {
|
|
|
6962
6967
|
* disallow conditional expects
|
|
6963
6968
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-conditional-expect.md
|
|
6964
6969
|
*/
|
|
6965
|
-
'vitest/no-conditional-expect'?: Linter.RuleEntry<
|
|
6970
|
+
'vitest/no-conditional-expect'?: Linter.RuleEntry<VitestNoConditionalExpect>;
|
|
6966
6971
|
/**
|
|
6967
6972
|
* disallow conditional tests
|
|
6968
6973
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-conditional-in-test.md
|
|
@@ -7274,6 +7279,11 @@ interface RuleOptions {
|
|
|
7274
7279
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-mock-type-parameters.md
|
|
7275
7280
|
*/
|
|
7276
7281
|
'vitest/require-mock-type-parameters'?: Linter.RuleEntry<VitestRequireMockTypeParameters>;
|
|
7282
|
+
/**
|
|
7283
|
+
* require tests to declare a timeout
|
|
7284
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-test-timeout.md
|
|
7285
|
+
*/
|
|
7286
|
+
'vitest/require-test-timeout'?: Linter.RuleEntry<[]>;
|
|
7277
7287
|
/**
|
|
7278
7288
|
* require toThrow() to be called with an error message
|
|
7279
7289
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-to-throw-message.md
|
|
@@ -12415,10 +12425,10 @@ type PaddingLineBetweenStatements = {
|
|
|
12415
12425
|
// ----- perfectionist/sort-array-includes -----
|
|
12416
12426
|
type PerfectionistSortArrayIncludes = {
|
|
12417
12427
|
fallbackSort?: {
|
|
12418
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12428
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12419
12429
|
order?: ("asc" | "desc");
|
|
12420
12430
|
};
|
|
12421
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12431
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12422
12432
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
12423
12433
|
ignoreCase?: boolean;
|
|
12424
12434
|
alphabet?: string;
|
|
@@ -12426,14 +12436,23 @@ type PerfectionistSortArrayIncludes = {
|
|
|
12426
12436
|
order?: ("asc" | "desc");
|
|
12427
12437
|
customGroups?: ({
|
|
12428
12438
|
fallbackSort?: {
|
|
12429
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12439
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12430
12440
|
order?: ("asc" | "desc");
|
|
12431
12441
|
};
|
|
12432
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12442
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12433
12443
|
groupName: string;
|
|
12434
12444
|
newlinesInside?: ("ignore" | number);
|
|
12435
12445
|
order?: ("asc" | "desc");
|
|
12436
|
-
anyOf: {
|
|
12446
|
+
anyOf: [{
|
|
12447
|
+
elementNamePattern?: (({
|
|
12448
|
+
pattern: string;
|
|
12449
|
+
flags?: string;
|
|
12450
|
+
} | string)[] | ({
|
|
12451
|
+
pattern: string;
|
|
12452
|
+
flags?: string;
|
|
12453
|
+
} | string));
|
|
12454
|
+
selector?: ("literal" | "spread");
|
|
12455
|
+
}, ...({
|
|
12437
12456
|
elementNamePattern?: (({
|
|
12438
12457
|
pattern: string;
|
|
12439
12458
|
flags?: string;
|
|
@@ -12442,13 +12461,13 @@ type PerfectionistSortArrayIncludes = {
|
|
|
12442
12461
|
flags?: string;
|
|
12443
12462
|
} | string));
|
|
12444
12463
|
selector?: ("literal" | "spread");
|
|
12445
|
-
}[];
|
|
12464
|
+
})[]];
|
|
12446
12465
|
} | {
|
|
12447
12466
|
fallbackSort?: {
|
|
12448
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12467
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12449
12468
|
order?: ("asc" | "desc");
|
|
12450
12469
|
};
|
|
12451
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12470
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12452
12471
|
groupName: string;
|
|
12453
12472
|
newlinesInside?: ("ignore" | number);
|
|
12454
12473
|
order?: ("asc" | "desc");
|
|
@@ -12466,8 +12485,12 @@ type PerfectionistSortArrayIncludes = {
|
|
|
12466
12485
|
newlinesBetween: ("ignore" | number);
|
|
12467
12486
|
} | {
|
|
12468
12487
|
group: (string | [string, ...(string)[]]);
|
|
12488
|
+
fallbackSort?: {
|
|
12489
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12490
|
+
order?: ("asc" | "desc");
|
|
12491
|
+
};
|
|
12469
12492
|
commentAbove?: string;
|
|
12470
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12493
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12471
12494
|
newlinesInside?: ("ignore" | number);
|
|
12472
12495
|
order?: ("asc" | "desc");
|
|
12473
12496
|
})[];
|
|
@@ -12508,10 +12531,10 @@ type PerfectionistSortArrayIncludes = {
|
|
|
12508
12531
|
// ----- perfectionist/sort-classes -----
|
|
12509
12532
|
type PerfectionistSortClasses = [] | [{
|
|
12510
12533
|
fallbackSort?: {
|
|
12511
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12534
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12512
12535
|
order?: ("asc" | "desc");
|
|
12513
12536
|
};
|
|
12514
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12537
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12515
12538
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
12516
12539
|
ignoreCase?: boolean;
|
|
12517
12540
|
alphabet?: string;
|
|
@@ -12519,14 +12542,38 @@ type PerfectionistSortClasses = [] | [{
|
|
|
12519
12542
|
order?: ("asc" | "desc");
|
|
12520
12543
|
customGroups?: ({
|
|
12521
12544
|
fallbackSort?: {
|
|
12522
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12545
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12523
12546
|
order?: ("asc" | "desc");
|
|
12524
12547
|
};
|
|
12525
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12548
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12526
12549
|
groupName: string;
|
|
12527
12550
|
newlinesInside?: ("ignore" | number);
|
|
12528
12551
|
order?: ("asc" | "desc");
|
|
12529
|
-
anyOf: {
|
|
12552
|
+
anyOf: [{
|
|
12553
|
+
elementNamePattern?: (({
|
|
12554
|
+
pattern: string;
|
|
12555
|
+
flags?: string;
|
|
12556
|
+
} | string)[] | ({
|
|
12557
|
+
pattern: string;
|
|
12558
|
+
flags?: string;
|
|
12559
|
+
} | string));
|
|
12560
|
+
modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[];
|
|
12561
|
+
selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method");
|
|
12562
|
+
decoratorNamePattern?: (({
|
|
12563
|
+
pattern: string;
|
|
12564
|
+
flags?: string;
|
|
12565
|
+
} | string)[] | ({
|
|
12566
|
+
pattern: string;
|
|
12567
|
+
flags?: string;
|
|
12568
|
+
} | string));
|
|
12569
|
+
elementValuePattern?: (({
|
|
12570
|
+
pattern: string;
|
|
12571
|
+
flags?: string;
|
|
12572
|
+
} | string)[] | ({
|
|
12573
|
+
pattern: string;
|
|
12574
|
+
flags?: string;
|
|
12575
|
+
} | string));
|
|
12576
|
+
}, ...({
|
|
12530
12577
|
elementNamePattern?: (({
|
|
12531
12578
|
pattern: string;
|
|
12532
12579
|
flags?: string;
|
|
@@ -12550,13 +12597,13 @@ type PerfectionistSortClasses = [] | [{
|
|
|
12550
12597
|
pattern: string;
|
|
12551
12598
|
flags?: string;
|
|
12552
12599
|
} | string));
|
|
12553
|
-
}[];
|
|
12600
|
+
})[]];
|
|
12554
12601
|
} | {
|
|
12555
12602
|
fallbackSort?: {
|
|
12556
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12603
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12557
12604
|
order?: ("asc" | "desc");
|
|
12558
12605
|
};
|
|
12559
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12606
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12560
12607
|
groupName: string;
|
|
12561
12608
|
newlinesInside?: ("ignore" | number);
|
|
12562
12609
|
order?: ("asc" | "desc");
|
|
@@ -12589,8 +12636,12 @@ type PerfectionistSortClasses = [] | [{
|
|
|
12589
12636
|
newlinesBetween: ("ignore" | number);
|
|
12590
12637
|
} | {
|
|
12591
12638
|
group: (string | [string, ...(string)[]]);
|
|
12639
|
+
fallbackSort?: {
|
|
12640
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12641
|
+
order?: ("asc" | "desc");
|
|
12642
|
+
};
|
|
12592
12643
|
commentAbove?: string;
|
|
12593
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12644
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12594
12645
|
newlinesInside?: ("ignore" | number);
|
|
12595
12646
|
order?: ("asc" | "desc");
|
|
12596
12647
|
})[];
|
|
@@ -12629,10 +12680,10 @@ type PerfectionistSortClasses = [] | [{
|
|
|
12629
12680
|
// ----- perfectionist/sort-decorators -----
|
|
12630
12681
|
type PerfectionistSortDecorators = {
|
|
12631
12682
|
fallbackSort?: {
|
|
12632
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12683
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12633
12684
|
order?: ("asc" | "desc");
|
|
12634
12685
|
};
|
|
12635
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12686
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12636
12687
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
12637
12688
|
ignoreCase?: boolean;
|
|
12638
12689
|
alphabet?: string;
|
|
@@ -12640,14 +12691,22 @@ type PerfectionistSortDecorators = {
|
|
|
12640
12691
|
order?: ("asc" | "desc");
|
|
12641
12692
|
customGroups?: ({
|
|
12642
12693
|
fallbackSort?: {
|
|
12643
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12694
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12644
12695
|
order?: ("asc" | "desc");
|
|
12645
12696
|
};
|
|
12646
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12697
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12647
12698
|
groupName: string;
|
|
12648
12699
|
newlinesInside?: ("ignore" | number);
|
|
12649
12700
|
order?: ("asc" | "desc");
|
|
12650
|
-
anyOf: {
|
|
12701
|
+
anyOf: [{
|
|
12702
|
+
elementNamePattern?: (({
|
|
12703
|
+
pattern: string;
|
|
12704
|
+
flags?: string;
|
|
12705
|
+
} | string)[] | ({
|
|
12706
|
+
pattern: string;
|
|
12707
|
+
flags?: string;
|
|
12708
|
+
} | string));
|
|
12709
|
+
}, ...({
|
|
12651
12710
|
elementNamePattern?: (({
|
|
12652
12711
|
pattern: string;
|
|
12653
12712
|
flags?: string;
|
|
@@ -12655,13 +12714,13 @@ type PerfectionistSortDecorators = {
|
|
|
12655
12714
|
pattern: string;
|
|
12656
12715
|
flags?: string;
|
|
12657
12716
|
} | string));
|
|
12658
|
-
}[];
|
|
12717
|
+
})[]];
|
|
12659
12718
|
} | {
|
|
12660
12719
|
fallbackSort?: {
|
|
12661
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12720
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12662
12721
|
order?: ("asc" | "desc");
|
|
12663
12722
|
};
|
|
12664
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12723
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12665
12724
|
groupName: string;
|
|
12666
12725
|
newlinesInside?: ("ignore" | number);
|
|
12667
12726
|
order?: ("asc" | "desc");
|
|
@@ -12678,8 +12737,12 @@ type PerfectionistSortDecorators = {
|
|
|
12678
12737
|
newlinesBetween: ("ignore" | number);
|
|
12679
12738
|
} | {
|
|
12680
12739
|
group: (string | [string, ...(string)[]]);
|
|
12740
|
+
fallbackSort?: {
|
|
12741
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12742
|
+
order?: ("asc" | "desc");
|
|
12743
|
+
};
|
|
12681
12744
|
commentAbove?: string;
|
|
12682
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12745
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12683
12746
|
newlinesInside?: ("ignore" | number);
|
|
12684
12747
|
order?: ("asc" | "desc");
|
|
12685
12748
|
})[];
|
|
@@ -12716,10 +12779,10 @@ type PerfectionistSortDecorators = {
|
|
|
12716
12779
|
// ----- perfectionist/sort-enums -----
|
|
12717
12780
|
type PerfectionistSortEnums = [] | [{
|
|
12718
12781
|
fallbackSort?: {
|
|
12719
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12782
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12720
12783
|
order?: ("asc" | "desc");
|
|
12721
12784
|
};
|
|
12722
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12785
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12723
12786
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
12724
12787
|
ignoreCase?: boolean;
|
|
12725
12788
|
alphabet?: string;
|
|
@@ -12727,14 +12790,14 @@ type PerfectionistSortEnums = [] | [{
|
|
|
12727
12790
|
order?: ("asc" | "desc");
|
|
12728
12791
|
customGroups?: ({
|
|
12729
12792
|
fallbackSort?: {
|
|
12730
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12793
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12731
12794
|
order?: ("asc" | "desc");
|
|
12732
12795
|
};
|
|
12733
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12796
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12734
12797
|
groupName: string;
|
|
12735
12798
|
newlinesInside?: ("ignore" | number);
|
|
12736
12799
|
order?: ("asc" | "desc");
|
|
12737
|
-
anyOf: {
|
|
12800
|
+
anyOf: [{
|
|
12738
12801
|
elementNamePattern?: (({
|
|
12739
12802
|
pattern: string;
|
|
12740
12803
|
flags?: string;
|
|
@@ -12749,13 +12812,28 @@ type PerfectionistSortEnums = [] | [{
|
|
|
12749
12812
|
pattern: string;
|
|
12750
12813
|
flags?: string;
|
|
12751
12814
|
} | string));
|
|
12752
|
-
}
|
|
12815
|
+
}, ...({
|
|
12816
|
+
elementNamePattern?: (({
|
|
12817
|
+
pattern: string;
|
|
12818
|
+
flags?: string;
|
|
12819
|
+
} | string)[] | ({
|
|
12820
|
+
pattern: string;
|
|
12821
|
+
flags?: string;
|
|
12822
|
+
} | string));
|
|
12823
|
+
elementValuePattern?: (({
|
|
12824
|
+
pattern: string;
|
|
12825
|
+
flags?: string;
|
|
12826
|
+
} | string)[] | ({
|
|
12827
|
+
pattern: string;
|
|
12828
|
+
flags?: string;
|
|
12829
|
+
} | string));
|
|
12830
|
+
})[]];
|
|
12753
12831
|
} | {
|
|
12754
12832
|
fallbackSort?: {
|
|
12755
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12833
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12756
12834
|
order?: ("asc" | "desc");
|
|
12757
12835
|
};
|
|
12758
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12836
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12759
12837
|
groupName: string;
|
|
12760
12838
|
newlinesInside?: ("ignore" | number);
|
|
12761
12839
|
order?: ("asc" | "desc");
|
|
@@ -12779,8 +12857,12 @@ type PerfectionistSortEnums = [] | [{
|
|
|
12779
12857
|
newlinesBetween: ("ignore" | number);
|
|
12780
12858
|
} | {
|
|
12781
12859
|
group: (string | [string, ...(string)[]]);
|
|
12860
|
+
fallbackSort?: {
|
|
12861
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12862
|
+
order?: ("asc" | "desc");
|
|
12863
|
+
};
|
|
12782
12864
|
commentAbove?: string;
|
|
12783
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12865
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12784
12866
|
newlinesInside?: ("ignore" | number);
|
|
12785
12867
|
order?: ("asc" | "desc");
|
|
12786
12868
|
})[];
|
|
@@ -12813,10 +12895,10 @@ type PerfectionistSortEnums = [] | [{
|
|
|
12813
12895
|
// ----- perfectionist/sort-export-attributes -----
|
|
12814
12896
|
type PerfectionistSortExportAttributes = {
|
|
12815
12897
|
fallbackSort?: {
|
|
12816
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12898
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12817
12899
|
order?: ("asc" | "desc");
|
|
12818
12900
|
};
|
|
12819
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12901
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12820
12902
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
12821
12903
|
ignoreCase?: boolean;
|
|
12822
12904
|
alphabet?: string;
|
|
@@ -12824,14 +12906,14 @@ type PerfectionistSortExportAttributes = {
|
|
|
12824
12906
|
order?: ("asc" | "desc");
|
|
12825
12907
|
customGroups?: ({
|
|
12826
12908
|
fallbackSort?: {
|
|
12827
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12909
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12828
12910
|
order?: ("asc" | "desc");
|
|
12829
12911
|
};
|
|
12830
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12912
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12831
12913
|
groupName: string;
|
|
12832
12914
|
newlinesInside?: ("ignore" | number);
|
|
12833
12915
|
order?: ("asc" | "desc");
|
|
12834
|
-
anyOf: {
|
|
12916
|
+
anyOf: [{
|
|
12835
12917
|
elementNamePattern?: (({
|
|
12836
12918
|
pattern: string;
|
|
12837
12919
|
flags?: string;
|
|
@@ -12839,13 +12921,21 @@ type PerfectionistSortExportAttributes = {
|
|
|
12839
12921
|
pattern: string;
|
|
12840
12922
|
flags?: string;
|
|
12841
12923
|
} | string));
|
|
12842
|
-
}
|
|
12924
|
+
}, ...({
|
|
12925
|
+
elementNamePattern?: (({
|
|
12926
|
+
pattern: string;
|
|
12927
|
+
flags?: string;
|
|
12928
|
+
} | string)[] | ({
|
|
12929
|
+
pattern: string;
|
|
12930
|
+
flags?: string;
|
|
12931
|
+
} | string));
|
|
12932
|
+
})[]];
|
|
12843
12933
|
} | {
|
|
12844
12934
|
fallbackSort?: {
|
|
12845
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12935
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12846
12936
|
order?: ("asc" | "desc");
|
|
12847
12937
|
};
|
|
12848
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12938
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12849
12939
|
groupName: string;
|
|
12850
12940
|
newlinesInside?: ("ignore" | number);
|
|
12851
12941
|
order?: ("asc" | "desc");
|
|
@@ -12862,8 +12952,12 @@ type PerfectionistSortExportAttributes = {
|
|
|
12862
12952
|
newlinesBetween: ("ignore" | number);
|
|
12863
12953
|
} | {
|
|
12864
12954
|
group: (string | [string, ...(string)[]]);
|
|
12955
|
+
fallbackSort?: {
|
|
12956
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12957
|
+
order?: ("asc" | "desc");
|
|
12958
|
+
};
|
|
12865
12959
|
commentAbove?: string;
|
|
12866
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12960
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12867
12961
|
newlinesInside?: ("ignore" | number);
|
|
12868
12962
|
order?: ("asc" | "desc");
|
|
12869
12963
|
})[];
|
|
@@ -12895,10 +12989,10 @@ type PerfectionistSortExportAttributes = {
|
|
|
12895
12989
|
// ----- perfectionist/sort-exports -----
|
|
12896
12990
|
type PerfectionistSortExports = {
|
|
12897
12991
|
fallbackSort?: {
|
|
12898
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12992
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12899
12993
|
order?: ("asc" | "desc");
|
|
12900
12994
|
};
|
|
12901
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12995
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12902
12996
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
12903
12997
|
ignoreCase?: boolean;
|
|
12904
12998
|
alphabet?: string;
|
|
@@ -12906,14 +13000,14 @@ type PerfectionistSortExports = {
|
|
|
12906
13000
|
order?: ("asc" | "desc");
|
|
12907
13001
|
customGroups?: ({
|
|
12908
13002
|
fallbackSort?: {
|
|
12909
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13003
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12910
13004
|
order?: ("asc" | "desc");
|
|
12911
13005
|
};
|
|
12912
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13006
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12913
13007
|
groupName: string;
|
|
12914
13008
|
newlinesInside?: ("ignore" | number);
|
|
12915
13009
|
order?: ("asc" | "desc");
|
|
12916
|
-
anyOf: {
|
|
13010
|
+
anyOf: [{
|
|
12917
13011
|
elementNamePattern?: (({
|
|
12918
13012
|
pattern: string;
|
|
12919
13013
|
flags?: string;
|
|
@@ -12923,13 +13017,23 @@ type PerfectionistSortExports = {
|
|
|
12923
13017
|
} | string));
|
|
12924
13018
|
modifiers?: ("value" | "type" | "named" | "wildcard" | "multiline" | "singleline")[];
|
|
12925
13019
|
selector?: "export";
|
|
12926
|
-
}
|
|
13020
|
+
}, ...({
|
|
13021
|
+
elementNamePattern?: (({
|
|
13022
|
+
pattern: string;
|
|
13023
|
+
flags?: string;
|
|
13024
|
+
} | string)[] | ({
|
|
13025
|
+
pattern: string;
|
|
13026
|
+
flags?: string;
|
|
13027
|
+
} | string));
|
|
13028
|
+
modifiers?: ("value" | "type" | "named" | "wildcard" | "multiline" | "singleline")[];
|
|
13029
|
+
selector?: "export";
|
|
13030
|
+
})[]];
|
|
12927
13031
|
} | {
|
|
12928
13032
|
fallbackSort?: {
|
|
12929
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13033
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12930
13034
|
order?: ("asc" | "desc");
|
|
12931
13035
|
};
|
|
12932
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13036
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12933
13037
|
groupName: string;
|
|
12934
13038
|
newlinesInside?: ("ignore" | number);
|
|
12935
13039
|
order?: ("asc" | "desc");
|
|
@@ -12948,8 +13052,12 @@ type PerfectionistSortExports = {
|
|
|
12948
13052
|
newlinesBetween: ("ignore" | number);
|
|
12949
13053
|
} | {
|
|
12950
13054
|
group: (string | [string, ...(string)[]]);
|
|
13055
|
+
fallbackSort?: {
|
|
13056
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13057
|
+
order?: ("asc" | "desc");
|
|
13058
|
+
};
|
|
12951
13059
|
commentAbove?: string;
|
|
12952
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13060
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12953
13061
|
newlinesInside?: ("ignore" | number);
|
|
12954
13062
|
order?: ("asc" | "desc");
|
|
12955
13063
|
})[];
|
|
@@ -12981,10 +13089,10 @@ type PerfectionistSortExports = {
|
|
|
12981
13089
|
// ----- perfectionist/sort-heritage-clauses -----
|
|
12982
13090
|
type PerfectionistSortHeritageClauses = {
|
|
12983
13091
|
fallbackSort?: {
|
|
12984
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13092
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12985
13093
|
order?: ("asc" | "desc");
|
|
12986
13094
|
};
|
|
12987
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13095
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12988
13096
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
12989
13097
|
ignoreCase?: boolean;
|
|
12990
13098
|
alphabet?: string;
|
|
@@ -12992,14 +13100,22 @@ type PerfectionistSortHeritageClauses = {
|
|
|
12992
13100
|
order?: ("asc" | "desc");
|
|
12993
13101
|
customGroups?: ({
|
|
12994
13102
|
fallbackSort?: {
|
|
12995
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13103
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12996
13104
|
order?: ("asc" | "desc");
|
|
12997
13105
|
};
|
|
12998
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13106
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12999
13107
|
groupName: string;
|
|
13000
13108
|
newlinesInside?: ("ignore" | number);
|
|
13001
13109
|
order?: ("asc" | "desc");
|
|
13002
|
-
anyOf: {
|
|
13110
|
+
anyOf: [{
|
|
13111
|
+
elementNamePattern?: (({
|
|
13112
|
+
pattern: string;
|
|
13113
|
+
flags?: string;
|
|
13114
|
+
} | string)[] | ({
|
|
13115
|
+
pattern: string;
|
|
13116
|
+
flags?: string;
|
|
13117
|
+
} | string));
|
|
13118
|
+
}, ...({
|
|
13003
13119
|
elementNamePattern?: (({
|
|
13004
13120
|
pattern: string;
|
|
13005
13121
|
flags?: string;
|
|
@@ -13007,13 +13123,13 @@ type PerfectionistSortHeritageClauses = {
|
|
|
13007
13123
|
pattern: string;
|
|
13008
13124
|
flags?: string;
|
|
13009
13125
|
} | string));
|
|
13010
|
-
}[];
|
|
13126
|
+
})[]];
|
|
13011
13127
|
} | {
|
|
13012
13128
|
fallbackSort?: {
|
|
13013
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13129
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13014
13130
|
order?: ("asc" | "desc");
|
|
13015
13131
|
};
|
|
13016
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13132
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13017
13133
|
groupName: string;
|
|
13018
13134
|
newlinesInside?: ("ignore" | number);
|
|
13019
13135
|
order?: ("asc" | "desc");
|
|
@@ -13030,8 +13146,12 @@ type PerfectionistSortHeritageClauses = {
|
|
|
13030
13146
|
newlinesBetween: ("ignore" | number);
|
|
13031
13147
|
} | {
|
|
13032
13148
|
group: (string | [string, ...(string)[]]);
|
|
13149
|
+
fallbackSort?: {
|
|
13150
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13151
|
+
order?: ("asc" | "desc");
|
|
13152
|
+
};
|
|
13033
13153
|
commentAbove?: string;
|
|
13034
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13154
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13035
13155
|
newlinesInside?: ("ignore" | number);
|
|
13036
13156
|
order?: ("asc" | "desc");
|
|
13037
13157
|
})[];
|
|
@@ -13063,10 +13183,10 @@ type PerfectionistSortHeritageClauses = {
|
|
|
13063
13183
|
// ----- perfectionist/sort-import-attributes -----
|
|
13064
13184
|
type PerfectionistSortImportAttributes = {
|
|
13065
13185
|
fallbackSort?: {
|
|
13066
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13186
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13067
13187
|
order?: ("asc" | "desc");
|
|
13068
13188
|
};
|
|
13069
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13189
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13070
13190
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
13071
13191
|
ignoreCase?: boolean;
|
|
13072
13192
|
alphabet?: string;
|
|
@@ -13074,14 +13194,22 @@ type PerfectionistSortImportAttributes = {
|
|
|
13074
13194
|
order?: ("asc" | "desc");
|
|
13075
13195
|
customGroups?: ({
|
|
13076
13196
|
fallbackSort?: {
|
|
13077
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13197
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13078
13198
|
order?: ("asc" | "desc");
|
|
13079
13199
|
};
|
|
13080
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13200
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13081
13201
|
groupName: string;
|
|
13082
13202
|
newlinesInside?: ("ignore" | number);
|
|
13083
13203
|
order?: ("asc" | "desc");
|
|
13084
|
-
anyOf: {
|
|
13204
|
+
anyOf: [{
|
|
13205
|
+
elementNamePattern?: (({
|
|
13206
|
+
pattern: string;
|
|
13207
|
+
flags?: string;
|
|
13208
|
+
} | string)[] | ({
|
|
13209
|
+
pattern: string;
|
|
13210
|
+
flags?: string;
|
|
13211
|
+
} | string));
|
|
13212
|
+
}, ...({
|
|
13085
13213
|
elementNamePattern?: (({
|
|
13086
13214
|
pattern: string;
|
|
13087
13215
|
flags?: string;
|
|
@@ -13089,13 +13217,13 @@ type PerfectionistSortImportAttributes = {
|
|
|
13089
13217
|
pattern: string;
|
|
13090
13218
|
flags?: string;
|
|
13091
13219
|
} | string));
|
|
13092
|
-
}[];
|
|
13220
|
+
})[]];
|
|
13093
13221
|
} | {
|
|
13094
13222
|
fallbackSort?: {
|
|
13095
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13223
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13096
13224
|
order?: ("asc" | "desc");
|
|
13097
13225
|
};
|
|
13098
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13226
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13099
13227
|
groupName: string;
|
|
13100
13228
|
newlinesInside?: ("ignore" | number);
|
|
13101
13229
|
order?: ("asc" | "desc");
|
|
@@ -13112,8 +13240,12 @@ type PerfectionistSortImportAttributes = {
|
|
|
13112
13240
|
newlinesBetween: ("ignore" | number);
|
|
13113
13241
|
} | {
|
|
13114
13242
|
group: (string | [string, ...(string)[]]);
|
|
13243
|
+
fallbackSort?: {
|
|
13244
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13245
|
+
order?: ("asc" | "desc");
|
|
13246
|
+
};
|
|
13115
13247
|
commentAbove?: string;
|
|
13116
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13248
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13117
13249
|
newlinesInside?: ("ignore" | number);
|
|
13118
13250
|
order?: ("asc" | "desc");
|
|
13119
13251
|
})[];
|
|
@@ -13145,25 +13277,39 @@ type PerfectionistSortImportAttributes = {
|
|
|
13145
13277
|
// ----- perfectionist/sort-imports -----
|
|
13146
13278
|
type PerfectionistSortImports = {
|
|
13147
13279
|
fallbackSort?: {
|
|
13148
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
|
|
13280
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "type-import-first");
|
|
13149
13281
|
order?: ("asc" | "desc");
|
|
13282
|
+
sortBy?: ("specifier" | "path");
|
|
13150
13283
|
};
|
|
13151
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
|
|
13284
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "type-import-first");
|
|
13152
13285
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
13153
13286
|
ignoreCase?: boolean;
|
|
13154
13287
|
alphabet?: string;
|
|
13155
13288
|
locales?: (string | string[]);
|
|
13156
13289
|
order?: ("asc" | "desc");
|
|
13290
|
+
sortBy?: ("specifier" | "path");
|
|
13157
13291
|
customGroups?: ({
|
|
13158
13292
|
fallbackSort?: {
|
|
13159
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
|
|
13293
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "type-import-first");
|
|
13160
13294
|
order?: ("asc" | "desc");
|
|
13295
|
+
sortBy?: ("specifier" | "path");
|
|
13161
13296
|
};
|
|
13162
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
|
|
13297
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "type-import-first");
|
|
13163
13298
|
groupName: string;
|
|
13164
13299
|
newlinesInside?: ("ignore" | number);
|
|
13165
13300
|
order?: ("asc" | "desc");
|
|
13166
|
-
|
|
13301
|
+
sortBy?: ("specifier" | "path");
|
|
13302
|
+
anyOf: [{
|
|
13303
|
+
elementNamePattern?: (({
|
|
13304
|
+
pattern: string;
|
|
13305
|
+
flags?: string;
|
|
13306
|
+
} | string)[] | ({
|
|
13307
|
+
pattern: string;
|
|
13308
|
+
flags?: string;
|
|
13309
|
+
} | string));
|
|
13310
|
+
modifiers?: ("default" | "multiline" | "named" | "require" | "side-effect" | "singleline" | "ts-equals" | "type" | "value" | "wildcard")[];
|
|
13311
|
+
selector?: ("side-effect-style" | "tsconfig-path" | "side-effect" | "external" | "internal" | "builtin" | "sibling" | "subpath" | "import" | "parent" | "index" | "style" | "type");
|
|
13312
|
+
}, ...({
|
|
13167
13313
|
elementNamePattern?: (({
|
|
13168
13314
|
pattern: string;
|
|
13169
13315
|
flags?: string;
|
|
@@ -13173,16 +13319,18 @@ type PerfectionistSortImports = {
|
|
|
13173
13319
|
} | string));
|
|
13174
13320
|
modifiers?: ("default" | "multiline" | "named" | "require" | "side-effect" | "singleline" | "ts-equals" | "type" | "value" | "wildcard")[];
|
|
13175
13321
|
selector?: ("side-effect-style" | "tsconfig-path" | "side-effect" | "external" | "internal" | "builtin" | "sibling" | "subpath" | "import" | "parent" | "index" | "style" | "type");
|
|
13176
|
-
}[];
|
|
13322
|
+
})[]];
|
|
13177
13323
|
} | {
|
|
13178
13324
|
fallbackSort?: {
|
|
13179
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
|
|
13325
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "type-import-first");
|
|
13180
13326
|
order?: ("asc" | "desc");
|
|
13327
|
+
sortBy?: ("specifier" | "path");
|
|
13181
13328
|
};
|
|
13182
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
|
|
13329
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "type-import-first");
|
|
13183
13330
|
groupName: string;
|
|
13184
13331
|
newlinesInside?: ("ignore" | number);
|
|
13185
13332
|
order?: ("asc" | "desc");
|
|
13333
|
+
sortBy?: ("specifier" | "path");
|
|
13186
13334
|
elementNamePattern?: (({
|
|
13187
13335
|
pattern: string;
|
|
13188
13336
|
flags?: string;
|
|
@@ -13198,10 +13346,16 @@ type PerfectionistSortImports = {
|
|
|
13198
13346
|
newlinesBetween: ("ignore" | number);
|
|
13199
13347
|
} | {
|
|
13200
13348
|
group: (string | [string, ...(string)[]]);
|
|
13349
|
+
fallbackSort?: {
|
|
13350
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "type-import-first");
|
|
13351
|
+
order?: ("asc" | "desc");
|
|
13352
|
+
sortBy?: ("specifier" | "path");
|
|
13353
|
+
};
|
|
13201
13354
|
commentAbove?: string;
|
|
13202
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
|
|
13355
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "type-import-first");
|
|
13203
13356
|
newlinesInside?: ("ignore" | number);
|
|
13204
13357
|
order?: ("asc" | "desc");
|
|
13358
|
+
sortBy?: ("specifier" | "path");
|
|
13205
13359
|
})[];
|
|
13206
13360
|
newlinesBetween?: ("ignore" | number);
|
|
13207
13361
|
tsconfig?: {
|
|
@@ -13245,27 +13399,29 @@ type PerfectionistSortImports = {
|
|
|
13245
13399
|
// ----- perfectionist/sort-interfaces -----
|
|
13246
13400
|
type PerfectionistSortInterfaces = {
|
|
13247
13401
|
fallbackSort?: {
|
|
13248
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13402
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13249
13403
|
order?: ("asc" | "desc");
|
|
13250
13404
|
sortBy?: ("name" | "value");
|
|
13251
13405
|
};
|
|
13252
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13406
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13253
13407
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
13254
13408
|
ignoreCase?: boolean;
|
|
13255
13409
|
alphabet?: string;
|
|
13256
13410
|
locales?: (string | string[]);
|
|
13257
13411
|
order?: ("asc" | "desc");
|
|
13412
|
+
sortBy?: ("name" | "value");
|
|
13258
13413
|
customGroups?: ({
|
|
13259
13414
|
fallbackSort?: {
|
|
13260
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13415
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13261
13416
|
order?: ("asc" | "desc");
|
|
13262
13417
|
sortBy?: ("name" | "value");
|
|
13263
13418
|
};
|
|
13264
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13419
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13265
13420
|
groupName: string;
|
|
13266
13421
|
newlinesInside?: ("ignore" | number);
|
|
13267
13422
|
order?: ("asc" | "desc");
|
|
13268
|
-
|
|
13423
|
+
sortBy?: ("name" | "value");
|
|
13424
|
+
anyOf: [{
|
|
13269
13425
|
elementNamePattern?: (({
|
|
13270
13426
|
pattern: string;
|
|
13271
13427
|
flags?: string;
|
|
@@ -13282,18 +13438,35 @@ type PerfectionistSortInterfaces = {
|
|
|
13282
13438
|
pattern: string;
|
|
13283
13439
|
flags?: string;
|
|
13284
13440
|
} | string));
|
|
13285
|
-
|
|
13286
|
-
|
|
13441
|
+
}, ...({
|
|
13442
|
+
elementNamePattern?: (({
|
|
13443
|
+
pattern: string;
|
|
13444
|
+
flags?: string;
|
|
13445
|
+
} | string)[] | ({
|
|
13446
|
+
pattern: string;
|
|
13447
|
+
flags?: string;
|
|
13448
|
+
} | string));
|
|
13449
|
+
modifiers?: ("optional" | "required" | "multiline")[];
|
|
13450
|
+
selector?: ("index-signature" | "member" | "method" | "property");
|
|
13451
|
+
elementValuePattern?: (({
|
|
13452
|
+
pattern: string;
|
|
13453
|
+
flags?: string;
|
|
13454
|
+
} | string)[] | ({
|
|
13455
|
+
pattern: string;
|
|
13456
|
+
flags?: string;
|
|
13457
|
+
} | string));
|
|
13458
|
+
})[]];
|
|
13287
13459
|
} | {
|
|
13288
13460
|
fallbackSort?: {
|
|
13289
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13461
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13290
13462
|
order?: ("asc" | "desc");
|
|
13291
13463
|
sortBy?: ("name" | "value");
|
|
13292
13464
|
};
|
|
13293
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13465
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13294
13466
|
groupName: string;
|
|
13295
13467
|
newlinesInside?: ("ignore" | number);
|
|
13296
13468
|
order?: ("asc" | "desc");
|
|
13469
|
+
sortBy?: ("name" | "value");
|
|
13297
13470
|
elementNamePattern?: (({
|
|
13298
13471
|
pattern: string;
|
|
13299
13472
|
flags?: string;
|
|
@@ -13310,17 +13483,22 @@ type PerfectionistSortInterfaces = {
|
|
|
13310
13483
|
pattern: string;
|
|
13311
13484
|
flags?: string;
|
|
13312
13485
|
} | string));
|
|
13313
|
-
sortBy?: ("name" | "value");
|
|
13314
13486
|
})[];
|
|
13315
13487
|
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
13316
13488
|
groups?: (string | [string, ...(string)[]] | {
|
|
13317
13489
|
newlinesBetween: ("ignore" | number);
|
|
13318
13490
|
} | {
|
|
13319
13491
|
group: (string | [string, ...(string)[]]);
|
|
13492
|
+
fallbackSort?: {
|
|
13493
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13494
|
+
order?: ("asc" | "desc");
|
|
13495
|
+
sortBy?: ("name" | "value");
|
|
13496
|
+
};
|
|
13320
13497
|
commentAbove?: string;
|
|
13321
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13498
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13322
13499
|
newlinesInside?: ("ignore" | number);
|
|
13323
13500
|
order?: ("asc" | "desc");
|
|
13501
|
+
sortBy?: ("name" | "value");
|
|
13324
13502
|
})[];
|
|
13325
13503
|
newlinesBetween?: ("ignore" | number);
|
|
13326
13504
|
useConfigurationIf?: {
|
|
@@ -13374,15 +13552,14 @@ type PerfectionistSortInterfaces = {
|
|
|
13374
13552
|
} | string)));
|
|
13375
13553
|
});
|
|
13376
13554
|
partitionByNewLine?: boolean;
|
|
13377
|
-
sortBy?: ("name" | "value");
|
|
13378
13555
|
}[];
|
|
13379
13556
|
// ----- perfectionist/sort-intersection-types -----
|
|
13380
13557
|
type PerfectionistSortIntersectionTypes = {
|
|
13381
13558
|
fallbackSort?: {
|
|
13382
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13559
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13383
13560
|
order?: ("asc" | "desc");
|
|
13384
13561
|
};
|
|
13385
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13562
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13386
13563
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
13387
13564
|
ignoreCase?: boolean;
|
|
13388
13565
|
alphabet?: string;
|
|
@@ -13390,14 +13567,23 @@ type PerfectionistSortIntersectionTypes = {
|
|
|
13390
13567
|
order?: ("asc" | "desc");
|
|
13391
13568
|
customGroups?: ({
|
|
13392
13569
|
fallbackSort?: {
|
|
13393
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13570
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13394
13571
|
order?: ("asc" | "desc");
|
|
13395
13572
|
};
|
|
13396
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13573
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13397
13574
|
groupName: string;
|
|
13398
13575
|
newlinesInside?: ("ignore" | number);
|
|
13399
13576
|
order?: ("asc" | "desc");
|
|
13400
|
-
anyOf: {
|
|
13577
|
+
anyOf: [{
|
|
13578
|
+
elementNamePattern?: (({
|
|
13579
|
+
pattern: string;
|
|
13580
|
+
flags?: string;
|
|
13581
|
+
} | string)[] | ({
|
|
13582
|
+
pattern: string;
|
|
13583
|
+
flags?: string;
|
|
13584
|
+
} | string));
|
|
13585
|
+
selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
|
|
13586
|
+
}, ...({
|
|
13401
13587
|
elementNamePattern?: (({
|
|
13402
13588
|
pattern: string;
|
|
13403
13589
|
flags?: string;
|
|
@@ -13406,13 +13592,13 @@ type PerfectionistSortIntersectionTypes = {
|
|
|
13406
13592
|
flags?: string;
|
|
13407
13593
|
} | string));
|
|
13408
13594
|
selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
|
|
13409
|
-
}[];
|
|
13595
|
+
})[]];
|
|
13410
13596
|
} | {
|
|
13411
13597
|
fallbackSort?: {
|
|
13412
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13598
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13413
13599
|
order?: ("asc" | "desc");
|
|
13414
13600
|
};
|
|
13415
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13601
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13416
13602
|
groupName: string;
|
|
13417
13603
|
newlinesInside?: ("ignore" | number);
|
|
13418
13604
|
order?: ("asc" | "desc");
|
|
@@ -13430,8 +13616,12 @@ type PerfectionistSortIntersectionTypes = {
|
|
|
13430
13616
|
newlinesBetween: ("ignore" | number);
|
|
13431
13617
|
} | {
|
|
13432
13618
|
group: (string | [string, ...(string)[]]);
|
|
13619
|
+
fallbackSort?: {
|
|
13620
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13621
|
+
order?: ("asc" | "desc");
|
|
13622
|
+
};
|
|
13433
13623
|
commentAbove?: string;
|
|
13434
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13624
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13435
13625
|
newlinesInside?: ("ignore" | number);
|
|
13436
13626
|
order?: ("asc" | "desc");
|
|
13437
13627
|
})[];
|
|
@@ -13463,10 +13653,10 @@ type PerfectionistSortIntersectionTypes = {
|
|
|
13463
13653
|
// ----- perfectionist/sort-jsx-props -----
|
|
13464
13654
|
type PerfectionistSortJsxProps = {
|
|
13465
13655
|
fallbackSort?: {
|
|
13466
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13656
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13467
13657
|
order?: ("asc" | "desc");
|
|
13468
13658
|
};
|
|
13469
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13659
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13470
13660
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
13471
13661
|
ignoreCase?: boolean;
|
|
13472
13662
|
alphabet?: string;
|
|
@@ -13474,14 +13664,31 @@ type PerfectionistSortJsxProps = {
|
|
|
13474
13664
|
order?: ("asc" | "desc");
|
|
13475
13665
|
customGroups?: ({
|
|
13476
13666
|
fallbackSort?: {
|
|
13477
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13667
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13478
13668
|
order?: ("asc" | "desc");
|
|
13479
13669
|
};
|
|
13480
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13670
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13481
13671
|
groupName: string;
|
|
13482
13672
|
newlinesInside?: ("ignore" | number);
|
|
13483
13673
|
order?: ("asc" | "desc");
|
|
13484
|
-
anyOf: {
|
|
13674
|
+
anyOf: [{
|
|
13675
|
+
elementNamePattern?: (({
|
|
13676
|
+
pattern: string;
|
|
13677
|
+
flags?: string;
|
|
13678
|
+
} | string)[] | ({
|
|
13679
|
+
pattern: string;
|
|
13680
|
+
flags?: string;
|
|
13681
|
+
} | string));
|
|
13682
|
+
modifiers?: ("shorthand" | "multiline")[];
|
|
13683
|
+
selector?: "prop";
|
|
13684
|
+
elementValuePattern?: (({
|
|
13685
|
+
pattern: string;
|
|
13686
|
+
flags?: string;
|
|
13687
|
+
} | string)[] | ({
|
|
13688
|
+
pattern: string;
|
|
13689
|
+
flags?: string;
|
|
13690
|
+
} | string));
|
|
13691
|
+
}, ...({
|
|
13485
13692
|
elementNamePattern?: (({
|
|
13486
13693
|
pattern: string;
|
|
13487
13694
|
flags?: string;
|
|
@@ -13498,13 +13705,13 @@ type PerfectionistSortJsxProps = {
|
|
|
13498
13705
|
pattern: string;
|
|
13499
13706
|
flags?: string;
|
|
13500
13707
|
} | string));
|
|
13501
|
-
}[];
|
|
13708
|
+
})[]];
|
|
13502
13709
|
} | {
|
|
13503
13710
|
fallbackSort?: {
|
|
13504
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13711
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13505
13712
|
order?: ("asc" | "desc");
|
|
13506
13713
|
};
|
|
13507
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13714
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13508
13715
|
groupName: string;
|
|
13509
13716
|
newlinesInside?: ("ignore" | number);
|
|
13510
13717
|
order?: ("asc" | "desc");
|
|
@@ -13530,8 +13737,12 @@ type PerfectionistSortJsxProps = {
|
|
|
13530
13737
|
newlinesBetween: ("ignore" | number);
|
|
13531
13738
|
} | {
|
|
13532
13739
|
group: (string | [string, ...(string)[]]);
|
|
13740
|
+
fallbackSort?: {
|
|
13741
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13742
|
+
order?: ("asc" | "desc");
|
|
13743
|
+
};
|
|
13533
13744
|
commentAbove?: string;
|
|
13534
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13745
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13535
13746
|
newlinesInside?: ("ignore" | number);
|
|
13536
13747
|
order?: ("asc" | "desc");
|
|
13537
13748
|
})[];
|
|
@@ -13557,10 +13768,10 @@ type PerfectionistSortJsxProps = {
|
|
|
13557
13768
|
// ----- perfectionist/sort-maps -----
|
|
13558
13769
|
type PerfectionistSortMaps = {
|
|
13559
13770
|
fallbackSort?: {
|
|
13560
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13771
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13561
13772
|
order?: ("asc" | "desc");
|
|
13562
13773
|
};
|
|
13563
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13774
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13564
13775
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
13565
13776
|
ignoreCase?: boolean;
|
|
13566
13777
|
alphabet?: string;
|
|
@@ -13568,14 +13779,22 @@ type PerfectionistSortMaps = {
|
|
|
13568
13779
|
order?: ("asc" | "desc");
|
|
13569
13780
|
customGroups?: ({
|
|
13570
13781
|
fallbackSort?: {
|
|
13571
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13782
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13572
13783
|
order?: ("asc" | "desc");
|
|
13573
13784
|
};
|
|
13574
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13785
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13575
13786
|
groupName: string;
|
|
13576
13787
|
newlinesInside?: ("ignore" | number);
|
|
13577
13788
|
order?: ("asc" | "desc");
|
|
13578
|
-
anyOf: {
|
|
13789
|
+
anyOf: [{
|
|
13790
|
+
elementNamePattern?: (({
|
|
13791
|
+
pattern: string;
|
|
13792
|
+
flags?: string;
|
|
13793
|
+
} | string)[] | ({
|
|
13794
|
+
pattern: string;
|
|
13795
|
+
flags?: string;
|
|
13796
|
+
} | string));
|
|
13797
|
+
}, ...({
|
|
13579
13798
|
elementNamePattern?: (({
|
|
13580
13799
|
pattern: string;
|
|
13581
13800
|
flags?: string;
|
|
@@ -13583,13 +13802,13 @@ type PerfectionistSortMaps = {
|
|
|
13583
13802
|
pattern: string;
|
|
13584
13803
|
flags?: string;
|
|
13585
13804
|
} | string));
|
|
13586
|
-
}[];
|
|
13805
|
+
})[]];
|
|
13587
13806
|
} | {
|
|
13588
13807
|
fallbackSort?: {
|
|
13589
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13808
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13590
13809
|
order?: ("asc" | "desc");
|
|
13591
13810
|
};
|
|
13592
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13811
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13593
13812
|
groupName: string;
|
|
13594
13813
|
newlinesInside?: ("ignore" | number);
|
|
13595
13814
|
order?: ("asc" | "desc");
|
|
@@ -13606,8 +13825,12 @@ type PerfectionistSortMaps = {
|
|
|
13606
13825
|
newlinesBetween: ("ignore" | number);
|
|
13607
13826
|
} | {
|
|
13608
13827
|
group: (string | [string, ...(string)[]]);
|
|
13828
|
+
fallbackSort?: {
|
|
13829
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13830
|
+
order?: ("asc" | "desc");
|
|
13831
|
+
};
|
|
13609
13832
|
commentAbove?: string;
|
|
13610
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13833
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13611
13834
|
newlinesInside?: ("ignore" | number);
|
|
13612
13835
|
order?: ("asc" | "desc");
|
|
13613
13836
|
})[];
|
|
@@ -13648,10 +13871,10 @@ type PerfectionistSortMaps = {
|
|
|
13648
13871
|
// ----- perfectionist/sort-modules -----
|
|
13649
13872
|
type PerfectionistSortModules = [] | [{
|
|
13650
13873
|
fallbackSort?: {
|
|
13651
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13874
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "usage");
|
|
13652
13875
|
order?: ("asc" | "desc");
|
|
13653
13876
|
};
|
|
13654
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13877
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "usage");
|
|
13655
13878
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
13656
13879
|
ignoreCase?: boolean;
|
|
13657
13880
|
alphabet?: string;
|
|
@@ -13659,14 +13882,14 @@ type PerfectionistSortModules = [] | [{
|
|
|
13659
13882
|
order?: ("asc" | "desc");
|
|
13660
13883
|
customGroups?: ({
|
|
13661
13884
|
fallbackSort?: {
|
|
13662
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13885
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "usage");
|
|
13663
13886
|
order?: ("asc" | "desc");
|
|
13664
13887
|
};
|
|
13665
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13888
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "usage");
|
|
13666
13889
|
groupName: string;
|
|
13667
13890
|
newlinesInside?: ("ignore" | number);
|
|
13668
13891
|
order?: ("asc" | "desc");
|
|
13669
|
-
anyOf: {
|
|
13892
|
+
anyOf: [{
|
|
13670
13893
|
elementNamePattern?: (({
|
|
13671
13894
|
pattern: string;
|
|
13672
13895
|
flags?: string;
|
|
@@ -13683,13 +13906,30 @@ type PerfectionistSortModules = [] | [{
|
|
|
13683
13906
|
pattern: string;
|
|
13684
13907
|
flags?: string;
|
|
13685
13908
|
} | string));
|
|
13686
|
-
}
|
|
13909
|
+
}, ...({
|
|
13910
|
+
elementNamePattern?: (({
|
|
13911
|
+
pattern: string;
|
|
13912
|
+
flags?: string;
|
|
13913
|
+
} | string)[] | ({
|
|
13914
|
+
pattern: string;
|
|
13915
|
+
flags?: string;
|
|
13916
|
+
} | string));
|
|
13917
|
+
modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[];
|
|
13918
|
+
selector?: ("enum" | "function" | "interface" | "type" | "class");
|
|
13919
|
+
decoratorNamePattern?: (({
|
|
13920
|
+
pattern: string;
|
|
13921
|
+
flags?: string;
|
|
13922
|
+
} | string)[] | ({
|
|
13923
|
+
pattern: string;
|
|
13924
|
+
flags?: string;
|
|
13925
|
+
} | string));
|
|
13926
|
+
})[]];
|
|
13687
13927
|
} | {
|
|
13688
13928
|
fallbackSort?: {
|
|
13689
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13929
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "usage");
|
|
13690
13930
|
order?: ("asc" | "desc");
|
|
13691
13931
|
};
|
|
13692
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13932
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "usage");
|
|
13693
13933
|
groupName: string;
|
|
13694
13934
|
newlinesInside?: ("ignore" | number);
|
|
13695
13935
|
order?: ("asc" | "desc");
|
|
@@ -13715,8 +13955,12 @@ type PerfectionistSortModules = [] | [{
|
|
|
13715
13955
|
newlinesBetween: ("ignore" | number);
|
|
13716
13956
|
} | {
|
|
13717
13957
|
group: (string | [string, ...(string)[]]);
|
|
13958
|
+
fallbackSort?: {
|
|
13959
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "usage");
|
|
13960
|
+
order?: ("asc" | "desc");
|
|
13961
|
+
};
|
|
13718
13962
|
commentAbove?: string;
|
|
13719
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13963
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "usage");
|
|
13720
13964
|
newlinesInside?: ("ignore" | number);
|
|
13721
13965
|
order?: ("asc" | "desc");
|
|
13722
13966
|
})[];
|
|
@@ -13748,10 +13992,10 @@ type PerfectionistSortModules = [] | [{
|
|
|
13748
13992
|
// ----- perfectionist/sort-named-exports -----
|
|
13749
13993
|
type PerfectionistSortNamedExports = {
|
|
13750
13994
|
fallbackSort?: {
|
|
13751
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13995
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13752
13996
|
order?: ("asc" | "desc");
|
|
13753
13997
|
};
|
|
13754
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13998
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13755
13999
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
13756
14000
|
ignoreCase?: boolean;
|
|
13757
14001
|
alphabet?: string;
|
|
@@ -13759,14 +14003,14 @@ type PerfectionistSortNamedExports = {
|
|
|
13759
14003
|
order?: ("asc" | "desc");
|
|
13760
14004
|
customGroups?: ({
|
|
13761
14005
|
fallbackSort?: {
|
|
13762
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
14006
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13763
14007
|
order?: ("asc" | "desc");
|
|
13764
14008
|
};
|
|
13765
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
14009
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13766
14010
|
groupName: string;
|
|
13767
14011
|
newlinesInside?: ("ignore" | number);
|
|
13768
14012
|
order?: ("asc" | "desc");
|
|
13769
|
-
anyOf: {
|
|
14013
|
+
anyOf: [{
|
|
13770
14014
|
elementNamePattern?: (({
|
|
13771
14015
|
pattern: string;
|
|
13772
14016
|
flags?: string;
|
|
@@ -13776,13 +14020,23 @@ type PerfectionistSortNamedExports = {
|
|
|
13776
14020
|
} | string));
|
|
13777
14021
|
modifiers?: ("value" | "type")[];
|
|
13778
14022
|
selector?: "export";
|
|
13779
|
-
}
|
|
14023
|
+
}, ...({
|
|
14024
|
+
elementNamePattern?: (({
|
|
14025
|
+
pattern: string;
|
|
14026
|
+
flags?: string;
|
|
14027
|
+
} | string)[] | ({
|
|
14028
|
+
pattern: string;
|
|
14029
|
+
flags?: string;
|
|
14030
|
+
} | string));
|
|
14031
|
+
modifiers?: ("value" | "type")[];
|
|
14032
|
+
selector?: "export";
|
|
14033
|
+
})[]];
|
|
13780
14034
|
} | {
|
|
13781
14035
|
fallbackSort?: {
|
|
13782
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
14036
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13783
14037
|
order?: ("asc" | "desc");
|
|
13784
14038
|
};
|
|
13785
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
14039
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13786
14040
|
groupName: string;
|
|
13787
14041
|
newlinesInside?: ("ignore" | number);
|
|
13788
14042
|
order?: ("asc" | "desc");
|
|
@@ -13801,8 +14055,12 @@ type PerfectionistSortNamedExports = {
|
|
|
13801
14055
|
newlinesBetween: ("ignore" | number);
|
|
13802
14056
|
} | {
|
|
13803
14057
|
group: (string | [string, ...(string)[]]);
|
|
14058
|
+
fallbackSort?: {
|
|
14059
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
14060
|
+
order?: ("asc" | "desc");
|
|
14061
|
+
};
|
|
13804
14062
|
commentAbove?: string;
|
|
13805
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
14063
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13806
14064
|
newlinesInside?: ("ignore" | number);
|
|
13807
14065
|
order?: ("asc" | "desc");
|
|
13808
14066
|
})[];
|
|
@@ -13835,10 +14093,10 @@ type PerfectionistSortNamedExports = {
|
|
|
13835
14093
|
// ----- perfectionist/sort-named-imports -----
|
|
13836
14094
|
type PerfectionistSortNamedImports = {
|
|
13837
14095
|
fallbackSort?: {
|
|
13838
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
14096
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13839
14097
|
order?: ("asc" | "desc");
|
|
13840
14098
|
};
|
|
13841
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
14099
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13842
14100
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
13843
14101
|
ignoreCase?: boolean;
|
|
13844
14102
|
alphabet?: string;
|
|
@@ -13846,14 +14104,14 @@ type PerfectionistSortNamedImports = {
|
|
|
13846
14104
|
order?: ("asc" | "desc");
|
|
13847
14105
|
customGroups?: ({
|
|
13848
14106
|
fallbackSort?: {
|
|
13849
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
14107
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13850
14108
|
order?: ("asc" | "desc");
|
|
13851
14109
|
};
|
|
13852
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
14110
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13853
14111
|
groupName: string;
|
|
13854
14112
|
newlinesInside?: ("ignore" | number);
|
|
13855
14113
|
order?: ("asc" | "desc");
|
|
13856
|
-
anyOf: {
|
|
14114
|
+
anyOf: [{
|
|
13857
14115
|
elementNamePattern?: (({
|
|
13858
14116
|
pattern: string;
|
|
13859
14117
|
flags?: string;
|
|
@@ -13863,13 +14121,23 @@ type PerfectionistSortNamedImports = {
|
|
|
13863
14121
|
} | string));
|
|
13864
14122
|
modifiers?: ("value" | "type")[];
|
|
13865
14123
|
selector?: "import";
|
|
13866
|
-
}
|
|
14124
|
+
}, ...({
|
|
14125
|
+
elementNamePattern?: (({
|
|
14126
|
+
pattern: string;
|
|
14127
|
+
flags?: string;
|
|
14128
|
+
} | string)[] | ({
|
|
14129
|
+
pattern: string;
|
|
14130
|
+
flags?: string;
|
|
14131
|
+
} | string));
|
|
14132
|
+
modifiers?: ("value" | "type")[];
|
|
14133
|
+
selector?: "import";
|
|
14134
|
+
})[]];
|
|
13867
14135
|
} | {
|
|
13868
14136
|
fallbackSort?: {
|
|
13869
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
14137
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13870
14138
|
order?: ("asc" | "desc");
|
|
13871
14139
|
};
|
|
13872
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
14140
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13873
14141
|
groupName: string;
|
|
13874
14142
|
newlinesInside?: ("ignore" | number);
|
|
13875
14143
|
order?: ("asc" | "desc");
|
|
@@ -13888,8 +14156,12 @@ type PerfectionistSortNamedImports = {
|
|
|
13888
14156
|
newlinesBetween: ("ignore" | number);
|
|
13889
14157
|
} | {
|
|
13890
14158
|
group: (string | [string, ...(string)[]]);
|
|
14159
|
+
fallbackSort?: {
|
|
14160
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
14161
|
+
order?: ("asc" | "desc");
|
|
14162
|
+
};
|
|
13891
14163
|
commentAbove?: string;
|
|
13892
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
14164
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13893
14165
|
newlinesInside?: ("ignore" | number);
|
|
13894
14166
|
order?: ("asc" | "desc");
|
|
13895
14167
|
})[];
|
|
@@ -13922,27 +14194,29 @@ type PerfectionistSortNamedImports = {
|
|
|
13922
14194
|
// ----- perfectionist/sort-object-types -----
|
|
13923
14195
|
type PerfectionistSortObjectTypes = {
|
|
13924
14196
|
fallbackSort?: {
|
|
13925
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
14197
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13926
14198
|
order?: ("asc" | "desc");
|
|
13927
14199
|
sortBy?: ("name" | "value");
|
|
13928
14200
|
};
|
|
13929
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
14201
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13930
14202
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
13931
14203
|
ignoreCase?: boolean;
|
|
13932
14204
|
alphabet?: string;
|
|
13933
14205
|
locales?: (string | string[]);
|
|
13934
14206
|
order?: ("asc" | "desc");
|
|
14207
|
+
sortBy?: ("name" | "value");
|
|
13935
14208
|
customGroups?: ({
|
|
13936
14209
|
fallbackSort?: {
|
|
13937
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
14210
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13938
14211
|
order?: ("asc" | "desc");
|
|
13939
14212
|
sortBy?: ("name" | "value");
|
|
13940
14213
|
};
|
|
13941
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
14214
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13942
14215
|
groupName: string;
|
|
13943
14216
|
newlinesInside?: ("ignore" | number);
|
|
13944
14217
|
order?: ("asc" | "desc");
|
|
13945
|
-
|
|
14218
|
+
sortBy?: ("name" | "value");
|
|
14219
|
+
anyOf: [{
|
|
13946
14220
|
elementNamePattern?: (({
|
|
13947
14221
|
pattern: string;
|
|
13948
14222
|
flags?: string;
|
|
@@ -13959,18 +14233,35 @@ type PerfectionistSortObjectTypes = {
|
|
|
13959
14233
|
pattern: string;
|
|
13960
14234
|
flags?: string;
|
|
13961
14235
|
} | string));
|
|
13962
|
-
|
|
13963
|
-
|
|
14236
|
+
}, ...({
|
|
14237
|
+
elementNamePattern?: (({
|
|
14238
|
+
pattern: string;
|
|
14239
|
+
flags?: string;
|
|
14240
|
+
} | string)[] | ({
|
|
14241
|
+
pattern: string;
|
|
14242
|
+
flags?: string;
|
|
14243
|
+
} | string));
|
|
14244
|
+
modifiers?: ("optional" | "required" | "multiline")[];
|
|
14245
|
+
selector?: ("index-signature" | "member" | "method" | "property");
|
|
14246
|
+
elementValuePattern?: (({
|
|
14247
|
+
pattern: string;
|
|
14248
|
+
flags?: string;
|
|
14249
|
+
} | string)[] | ({
|
|
14250
|
+
pattern: string;
|
|
14251
|
+
flags?: string;
|
|
14252
|
+
} | string));
|
|
14253
|
+
})[]];
|
|
13964
14254
|
} | {
|
|
13965
14255
|
fallbackSort?: {
|
|
13966
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
14256
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13967
14257
|
order?: ("asc" | "desc");
|
|
13968
14258
|
sortBy?: ("name" | "value");
|
|
13969
14259
|
};
|
|
13970
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
14260
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13971
14261
|
groupName: string;
|
|
13972
14262
|
newlinesInside?: ("ignore" | number);
|
|
13973
14263
|
order?: ("asc" | "desc");
|
|
14264
|
+
sortBy?: ("name" | "value");
|
|
13974
14265
|
elementNamePattern?: (({
|
|
13975
14266
|
pattern: string;
|
|
13976
14267
|
flags?: string;
|
|
@@ -13987,17 +14278,22 @@ type PerfectionistSortObjectTypes = {
|
|
|
13987
14278
|
pattern: string;
|
|
13988
14279
|
flags?: string;
|
|
13989
14280
|
} | string));
|
|
13990
|
-
sortBy?: ("name" | "value");
|
|
13991
14281
|
})[];
|
|
13992
14282
|
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
13993
14283
|
groups?: (string | [string, ...(string)[]] | {
|
|
13994
14284
|
newlinesBetween: ("ignore" | number);
|
|
13995
14285
|
} | {
|
|
13996
14286
|
group: (string | [string, ...(string)[]]);
|
|
14287
|
+
fallbackSort?: {
|
|
14288
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
14289
|
+
order?: ("asc" | "desc");
|
|
14290
|
+
sortBy?: ("name" | "value");
|
|
14291
|
+
};
|
|
13997
14292
|
commentAbove?: string;
|
|
13998
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
14293
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13999
14294
|
newlinesInside?: ("ignore" | number);
|
|
14000
14295
|
order?: ("asc" | "desc");
|
|
14296
|
+
sortBy?: ("name" | "value");
|
|
14001
14297
|
})[];
|
|
14002
14298
|
newlinesBetween?: ("ignore" | number);
|
|
14003
14299
|
useConfigurationIf?: {
|
|
@@ -14051,15 +14347,14 @@ type PerfectionistSortObjectTypes = {
|
|
|
14051
14347
|
} | string)));
|
|
14052
14348
|
});
|
|
14053
14349
|
partitionByNewLine?: boolean;
|
|
14054
|
-
sortBy?: ("name" | "value");
|
|
14055
14350
|
}[];
|
|
14056
14351
|
// ----- perfectionist/sort-objects -----
|
|
14057
14352
|
type PerfectionistSortObjects = {
|
|
14058
14353
|
fallbackSort?: {
|
|
14059
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
14354
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
14060
14355
|
order?: ("asc" | "desc");
|
|
14061
14356
|
};
|
|
14062
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
14357
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
14063
14358
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
14064
14359
|
ignoreCase?: boolean;
|
|
14065
14360
|
alphabet?: string;
|
|
@@ -14067,14 +14362,14 @@ type PerfectionistSortObjects = {
|
|
|
14067
14362
|
order?: ("asc" | "desc");
|
|
14068
14363
|
customGroups?: ({
|
|
14069
14364
|
fallbackSort?: {
|
|
14070
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
14365
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
14071
14366
|
order?: ("asc" | "desc");
|
|
14072
14367
|
};
|
|
14073
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
14368
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
14074
14369
|
groupName: string;
|
|
14075
14370
|
newlinesInside?: ("ignore" | number);
|
|
14076
14371
|
order?: ("asc" | "desc");
|
|
14077
|
-
anyOf: {
|
|
14372
|
+
anyOf: [{
|
|
14078
14373
|
elementNamePattern?: (({
|
|
14079
14374
|
pattern: string;
|
|
14080
14375
|
flags?: string;
|
|
@@ -14082,7 +14377,24 @@ type PerfectionistSortObjects = {
|
|
|
14082
14377
|
pattern: string;
|
|
14083
14378
|
flags?: string;
|
|
14084
14379
|
} | string));
|
|
14085
|
-
modifiers?: ("
|
|
14380
|
+
modifiers?: ("multiline")[];
|
|
14381
|
+
selector?: ("member" | "method" | "property");
|
|
14382
|
+
elementValuePattern?: (({
|
|
14383
|
+
pattern: string;
|
|
14384
|
+
flags?: string;
|
|
14385
|
+
} | string)[] | ({
|
|
14386
|
+
pattern: string;
|
|
14387
|
+
flags?: string;
|
|
14388
|
+
} | string));
|
|
14389
|
+
}, ...({
|
|
14390
|
+
elementNamePattern?: (({
|
|
14391
|
+
pattern: string;
|
|
14392
|
+
flags?: string;
|
|
14393
|
+
} | string)[] | ({
|
|
14394
|
+
pattern: string;
|
|
14395
|
+
flags?: string;
|
|
14396
|
+
} | string));
|
|
14397
|
+
modifiers?: ("multiline")[];
|
|
14086
14398
|
selector?: ("member" | "method" | "property");
|
|
14087
14399
|
elementValuePattern?: (({
|
|
14088
14400
|
pattern: string;
|
|
@@ -14091,13 +14403,13 @@ type PerfectionistSortObjects = {
|
|
|
14091
14403
|
pattern: string;
|
|
14092
14404
|
flags?: string;
|
|
14093
14405
|
} | string));
|
|
14094
|
-
}[];
|
|
14406
|
+
})[]];
|
|
14095
14407
|
} | {
|
|
14096
14408
|
fallbackSort?: {
|
|
14097
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
14409
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
14098
14410
|
order?: ("asc" | "desc");
|
|
14099
14411
|
};
|
|
14100
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
14412
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
14101
14413
|
groupName: string;
|
|
14102
14414
|
newlinesInside?: ("ignore" | number);
|
|
14103
14415
|
order?: ("asc" | "desc");
|
|
@@ -14108,7 +14420,7 @@ type PerfectionistSortObjects = {
|
|
|
14108
14420
|
pattern: string;
|
|
14109
14421
|
flags?: string;
|
|
14110
14422
|
} | string));
|
|
14111
|
-
modifiers?: ("
|
|
14423
|
+
modifiers?: ("multiline")[];
|
|
14112
14424
|
selector?: ("member" | "method" | "property");
|
|
14113
14425
|
elementValuePattern?: (({
|
|
14114
14426
|
pattern: string;
|
|
@@ -14123,8 +14435,12 @@ type PerfectionistSortObjects = {
|
|
|
14123
14435
|
newlinesBetween: ("ignore" | number);
|
|
14124
14436
|
} | {
|
|
14125
14437
|
group: (string | [string, ...(string)[]]);
|
|
14438
|
+
fallbackSort?: {
|
|
14439
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
14440
|
+
order?: ("asc" | "desc");
|
|
14441
|
+
};
|
|
14126
14442
|
commentAbove?: string;
|
|
14127
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
14443
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
14128
14444
|
newlinesInside?: ("ignore" | number);
|
|
14129
14445
|
order?: ("asc" | "desc");
|
|
14130
14446
|
})[];
|
|
@@ -14195,10 +14511,10 @@ type PerfectionistSortObjects = {
|
|
|
14195
14511
|
// ----- perfectionist/sort-sets -----
|
|
14196
14512
|
type PerfectionistSortSets = {
|
|
14197
14513
|
fallbackSort?: {
|
|
14198
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
14514
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
14199
14515
|
order?: ("asc" | "desc");
|
|
14200
14516
|
};
|
|
14201
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
14517
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
14202
14518
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
14203
14519
|
ignoreCase?: boolean;
|
|
14204
14520
|
alphabet?: string;
|
|
@@ -14206,14 +14522,23 @@ type PerfectionistSortSets = {
|
|
|
14206
14522
|
order?: ("asc" | "desc");
|
|
14207
14523
|
customGroups?: ({
|
|
14208
14524
|
fallbackSort?: {
|
|
14209
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
14525
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
14210
14526
|
order?: ("asc" | "desc");
|
|
14211
14527
|
};
|
|
14212
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
14528
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
14213
14529
|
groupName: string;
|
|
14214
14530
|
newlinesInside?: ("ignore" | number);
|
|
14215
14531
|
order?: ("asc" | "desc");
|
|
14216
|
-
anyOf: {
|
|
14532
|
+
anyOf: [{
|
|
14533
|
+
elementNamePattern?: (({
|
|
14534
|
+
pattern: string;
|
|
14535
|
+
flags?: string;
|
|
14536
|
+
} | string)[] | ({
|
|
14537
|
+
pattern: string;
|
|
14538
|
+
flags?: string;
|
|
14539
|
+
} | string));
|
|
14540
|
+
selector?: ("literal" | "spread");
|
|
14541
|
+
}, ...({
|
|
14217
14542
|
elementNamePattern?: (({
|
|
14218
14543
|
pattern: string;
|
|
14219
14544
|
flags?: string;
|
|
@@ -14222,13 +14547,13 @@ type PerfectionistSortSets = {
|
|
|
14222
14547
|
flags?: string;
|
|
14223
14548
|
} | string));
|
|
14224
14549
|
selector?: ("literal" | "spread");
|
|
14225
|
-
}[];
|
|
14550
|
+
})[]];
|
|
14226
14551
|
} | {
|
|
14227
14552
|
fallbackSort?: {
|
|
14228
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
14553
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
14229
14554
|
order?: ("asc" | "desc");
|
|
14230
14555
|
};
|
|
14231
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
14556
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
14232
14557
|
groupName: string;
|
|
14233
14558
|
newlinesInside?: ("ignore" | number);
|
|
14234
14559
|
order?: ("asc" | "desc");
|
|
@@ -14246,8 +14571,12 @@ type PerfectionistSortSets = {
|
|
|
14246
14571
|
newlinesBetween: ("ignore" | number);
|
|
14247
14572
|
} | {
|
|
14248
14573
|
group: (string | [string, ...(string)[]]);
|
|
14574
|
+
fallbackSort?: {
|
|
14575
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
14576
|
+
order?: ("asc" | "desc");
|
|
14577
|
+
};
|
|
14249
14578
|
commentAbove?: string;
|
|
14250
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
14579
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
14251
14580
|
newlinesInside?: ("ignore" | number);
|
|
14252
14581
|
order?: ("asc" | "desc");
|
|
14253
14582
|
})[];
|
|
@@ -14288,10 +14617,10 @@ type PerfectionistSortSets = {
|
|
|
14288
14617
|
// ----- perfectionist/sort-switch-case -----
|
|
14289
14618
|
type PerfectionistSortSwitchCase = [] | [{
|
|
14290
14619
|
fallbackSort?: {
|
|
14291
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
14620
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
14292
14621
|
order?: ("asc" | "desc");
|
|
14293
14622
|
};
|
|
14294
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
14623
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
14295
14624
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
14296
14625
|
ignoreCase?: boolean;
|
|
14297
14626
|
alphabet?: string;
|
|
@@ -14301,10 +14630,10 @@ type PerfectionistSortSwitchCase = [] | [{
|
|
|
14301
14630
|
// ----- perfectionist/sort-union-types -----
|
|
14302
14631
|
type PerfectionistSortUnionTypes = {
|
|
14303
14632
|
fallbackSort?: {
|
|
14304
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
14633
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
14305
14634
|
order?: ("asc" | "desc");
|
|
14306
14635
|
};
|
|
14307
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
14636
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
14308
14637
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
14309
14638
|
ignoreCase?: boolean;
|
|
14310
14639
|
alphabet?: string;
|
|
@@ -14312,14 +14641,14 @@ type PerfectionistSortUnionTypes = {
|
|
|
14312
14641
|
order?: ("asc" | "desc");
|
|
14313
14642
|
customGroups?: ({
|
|
14314
14643
|
fallbackSort?: {
|
|
14315
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
14644
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
14316
14645
|
order?: ("asc" | "desc");
|
|
14317
14646
|
};
|
|
14318
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
14647
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
14319
14648
|
groupName: string;
|
|
14320
14649
|
newlinesInside?: ("ignore" | number);
|
|
14321
14650
|
order?: ("asc" | "desc");
|
|
14322
|
-
anyOf: {
|
|
14651
|
+
anyOf: [{
|
|
14323
14652
|
elementNamePattern?: (({
|
|
14324
14653
|
pattern: string;
|
|
14325
14654
|
flags?: string;
|
|
@@ -14328,13 +14657,22 @@ type PerfectionistSortUnionTypes = {
|
|
|
14328
14657
|
flags?: string;
|
|
14329
14658
|
} | string));
|
|
14330
14659
|
selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
|
|
14331
|
-
}
|
|
14660
|
+
}, ...({
|
|
14661
|
+
elementNamePattern?: (({
|
|
14662
|
+
pattern: string;
|
|
14663
|
+
flags?: string;
|
|
14664
|
+
} | string)[] | ({
|
|
14665
|
+
pattern: string;
|
|
14666
|
+
flags?: string;
|
|
14667
|
+
} | string));
|
|
14668
|
+
selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
|
|
14669
|
+
})[]];
|
|
14332
14670
|
} | {
|
|
14333
14671
|
fallbackSort?: {
|
|
14334
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
14672
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
14335
14673
|
order?: ("asc" | "desc");
|
|
14336
14674
|
};
|
|
14337
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
14675
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
14338
14676
|
groupName: string;
|
|
14339
14677
|
newlinesInside?: ("ignore" | number);
|
|
14340
14678
|
order?: ("asc" | "desc");
|
|
@@ -14352,8 +14690,12 @@ type PerfectionistSortUnionTypes = {
|
|
|
14352
14690
|
newlinesBetween: ("ignore" | number);
|
|
14353
14691
|
} | {
|
|
14354
14692
|
group: (string | [string, ...(string)[]]);
|
|
14693
|
+
fallbackSort?: {
|
|
14694
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
14695
|
+
order?: ("asc" | "desc");
|
|
14696
|
+
};
|
|
14355
14697
|
commentAbove?: string;
|
|
14356
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
14698
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
14357
14699
|
newlinesInside?: ("ignore" | number);
|
|
14358
14700
|
order?: ("asc" | "desc");
|
|
14359
14701
|
})[];
|
|
@@ -14385,10 +14727,10 @@ type PerfectionistSortUnionTypes = {
|
|
|
14385
14727
|
// ----- perfectionist/sort-variable-declarations -----
|
|
14386
14728
|
type PerfectionistSortVariableDeclarations = [] | [{
|
|
14387
14729
|
fallbackSort?: {
|
|
14388
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
14730
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
14389
14731
|
order?: ("asc" | "desc");
|
|
14390
14732
|
};
|
|
14391
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
14733
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
14392
14734
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
14393
14735
|
ignoreCase?: boolean;
|
|
14394
14736
|
alphabet?: string;
|
|
@@ -14396,14 +14738,14 @@ type PerfectionistSortVariableDeclarations = [] | [{
|
|
|
14396
14738
|
order?: ("asc" | "desc");
|
|
14397
14739
|
customGroups?: ({
|
|
14398
14740
|
fallbackSort?: {
|
|
14399
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
14741
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
14400
14742
|
order?: ("asc" | "desc");
|
|
14401
14743
|
};
|
|
14402
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
14744
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
14403
14745
|
groupName: string;
|
|
14404
14746
|
newlinesInside?: ("ignore" | number);
|
|
14405
14747
|
order?: ("asc" | "desc");
|
|
14406
|
-
anyOf: {
|
|
14748
|
+
anyOf: [{
|
|
14407
14749
|
elementNamePattern?: (({
|
|
14408
14750
|
pattern: string;
|
|
14409
14751
|
flags?: string;
|
|
@@ -14412,13 +14754,22 @@ type PerfectionistSortVariableDeclarations = [] | [{
|
|
|
14412
14754
|
flags?: string;
|
|
14413
14755
|
} | string));
|
|
14414
14756
|
selector?: ("initialized" | "uninitialized");
|
|
14415
|
-
}
|
|
14757
|
+
}, ...({
|
|
14758
|
+
elementNamePattern?: (({
|
|
14759
|
+
pattern: string;
|
|
14760
|
+
flags?: string;
|
|
14761
|
+
} | string)[] | ({
|
|
14762
|
+
pattern: string;
|
|
14763
|
+
flags?: string;
|
|
14764
|
+
} | string));
|
|
14765
|
+
selector?: ("initialized" | "uninitialized");
|
|
14766
|
+
})[]];
|
|
14416
14767
|
} | {
|
|
14417
14768
|
fallbackSort?: {
|
|
14418
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
14769
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
14419
14770
|
order?: ("asc" | "desc");
|
|
14420
14771
|
};
|
|
14421
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
14772
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
14422
14773
|
groupName: string;
|
|
14423
14774
|
newlinesInside?: ("ignore" | number);
|
|
14424
14775
|
order?: ("asc" | "desc");
|
|
@@ -14436,8 +14787,12 @@ type PerfectionistSortVariableDeclarations = [] | [{
|
|
|
14436
14787
|
newlinesBetween: ("ignore" | number);
|
|
14437
14788
|
} | {
|
|
14438
14789
|
group: (string | [string, ...(string)[]]);
|
|
14790
|
+
fallbackSort?: {
|
|
14791
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
14792
|
+
order?: ("asc" | "desc");
|
|
14793
|
+
};
|
|
14439
14794
|
commentAbove?: string;
|
|
14440
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
14795
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
14441
14796
|
newlinesInside?: ("ignore" | number);
|
|
14442
14797
|
order?: ("asc" | "desc");
|
|
14443
14798
|
})[];
|
|
@@ -15349,6 +15704,10 @@ type VitestMaxExpects = [] | [{
|
|
|
15349
15704
|
type VitestMaxNestedDescribe = [] | [{
|
|
15350
15705
|
max?: number;
|
|
15351
15706
|
}];
|
|
15707
|
+
// ----- vitest/no-conditional-expect -----
|
|
15708
|
+
type VitestNoConditionalExpect = [] | [{
|
|
15709
|
+
expectAssertions?: boolean;
|
|
15710
|
+
}];
|
|
15352
15711
|
// ----- vitest/no-focused-tests -----
|
|
15353
15712
|
type VitestNoFocusedTests = [] | [{
|
|
15354
15713
|
fixable?: boolean;
|