@jimmy.codes/eslint-config 6.27.0 → 6.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts
CHANGED
|
@@ -64,7 +64,7 @@ interface RuleOptions {
|
|
|
64
64
|
*/
|
|
65
65
|
'@next/next/inline-script-id'?: Linter.RuleEntry<[]>;
|
|
66
66
|
/**
|
|
67
|
-
* Prefer
|
|
67
|
+
* Prefer `@next/third-parties/google` when using the inline script for Google Analytics and Tag Manager.
|
|
68
68
|
* @see https://nextjs.org/docs/messages/next-script-for-ga
|
|
69
69
|
*/
|
|
70
70
|
'@next/next/next-script-for-ga'?: Linter.RuleEntry<[]>;
|
|
@@ -1753,6 +1753,16 @@ interface RuleOptions {
|
|
|
1753
1753
|
* @see https://eslint.org/docs/latest/rules/curly
|
|
1754
1754
|
*/
|
|
1755
1755
|
'curly'?: Linter.RuleEntry<Curly>;
|
|
1756
|
+
/**
|
|
1757
|
+
* Transforms the negation of a conjunction !(A && B) into the equivalent !A || !B according to De Morgan’s law
|
|
1758
|
+
* @see https://github.com/azat-io/eslint-plugin-de-morgan/blob/main/docs/no-negated-conjunction.md
|
|
1759
|
+
*/
|
|
1760
|
+
'de-morgan/no-negated-conjunction'?: Linter.RuleEntry<[]>;
|
|
1761
|
+
/**
|
|
1762
|
+
* Transforms the negation of a disjunction !(A || B) into the equivalent !A && !B according to De Morgan’s law
|
|
1763
|
+
* @see https://github.com/azat-io/eslint-plugin-de-morgan/blob/main/docs/no-negated-disjunction.md
|
|
1764
|
+
*/
|
|
1765
|
+
'de-morgan/no-negated-disjunction'?: Linter.RuleEntry<[]>;
|
|
1756
1766
|
/**
|
|
1757
1767
|
* Require `default` cases in `switch` statements
|
|
1758
1768
|
* @see https://eslint.org/docs/latest/rules/default-case
|
|
@@ -2218,337 +2228,357 @@ interface RuleOptions {
|
|
|
2218
2228
|
'jest-dom/prefer-to-have-value'?: Linter.RuleEntry<[]>;
|
|
2219
2229
|
/**
|
|
2220
2230
|
* Enforce `test` and `it` usage conventions
|
|
2221
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2231
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.0/docs/rules/consistent-test-it.md
|
|
2222
2232
|
*/
|
|
2223
2233
|
'jest/consistent-test-it'?: Linter.RuleEntry<JestConsistentTestIt>;
|
|
2224
2234
|
/**
|
|
2225
2235
|
* Enforce assertion to be made in a test body
|
|
2226
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2236
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.0/docs/rules/expect-expect.md
|
|
2227
2237
|
*/
|
|
2228
2238
|
'jest/expect-expect'?: Linter.RuleEntry<JestExpectExpect>;
|
|
2229
2239
|
/**
|
|
2230
2240
|
* Enforces a maximum number assertion calls in a test body
|
|
2231
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2241
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.0/docs/rules/max-expects.md
|
|
2232
2242
|
*/
|
|
2233
2243
|
'jest/max-expects'?: Linter.RuleEntry<JestMaxExpects>;
|
|
2234
2244
|
/**
|
|
2235
2245
|
* Enforces a maximum depth to nested describe calls
|
|
2236
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2246
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.0/docs/rules/max-nested-describe.md
|
|
2237
2247
|
*/
|
|
2238
2248
|
'jest/max-nested-describe'?: Linter.RuleEntry<JestMaxNestedDescribe>;
|
|
2239
2249
|
/**
|
|
2240
2250
|
* Disallow alias methods
|
|
2241
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2251
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.0/docs/rules/no-alias-methods.md
|
|
2242
2252
|
*/
|
|
2243
2253
|
'jest/no-alias-methods'?: Linter.RuleEntry<[]>;
|
|
2244
2254
|
/**
|
|
2245
2255
|
* Disallow commented out tests
|
|
2246
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2256
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.0/docs/rules/no-commented-out-tests.md
|
|
2247
2257
|
*/
|
|
2248
2258
|
'jest/no-commented-out-tests'?: Linter.RuleEntry<[]>;
|
|
2249
2259
|
/**
|
|
2250
2260
|
* Disallow calling `expect` conditionally
|
|
2251
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2261
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.0/docs/rules/no-conditional-expect.md
|
|
2252
2262
|
*/
|
|
2253
2263
|
'jest/no-conditional-expect'?: Linter.RuleEntry<[]>;
|
|
2254
2264
|
/**
|
|
2255
2265
|
* Disallow conditional logic in tests
|
|
2256
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2266
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.0/docs/rules/no-conditional-in-test.md
|
|
2257
2267
|
*/
|
|
2258
2268
|
'jest/no-conditional-in-test'?: Linter.RuleEntry<[]>;
|
|
2259
2269
|
/**
|
|
2260
2270
|
* Disallow confusing usages of jest.setTimeout
|
|
2261
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2271
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.0/docs/rules/no-confusing-set-timeout.md
|
|
2262
2272
|
*/
|
|
2263
2273
|
'jest/no-confusing-set-timeout'?: Linter.RuleEntry<[]>;
|
|
2264
2274
|
/**
|
|
2265
2275
|
* Disallow use of deprecated functions
|
|
2266
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2276
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.0/docs/rules/no-deprecated-functions.md
|
|
2267
2277
|
*/
|
|
2268
2278
|
'jest/no-deprecated-functions'?: Linter.RuleEntry<[]>;
|
|
2269
2279
|
/**
|
|
2270
2280
|
* Disallow disabled tests
|
|
2271
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2281
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.0/docs/rules/no-disabled-tests.md
|
|
2272
2282
|
*/
|
|
2273
2283
|
'jest/no-disabled-tests'?: Linter.RuleEntry<[]>;
|
|
2274
2284
|
/**
|
|
2275
2285
|
* Disallow using a callback in asynchronous tests and hooks
|
|
2276
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2286
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.0/docs/rules/no-done-callback.md
|
|
2277
2287
|
*/
|
|
2278
2288
|
'jest/no-done-callback'?: Linter.RuleEntry<[]>;
|
|
2279
2289
|
/**
|
|
2280
2290
|
* Disallow duplicate setup and teardown hooks
|
|
2281
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2291
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.0/docs/rules/no-duplicate-hooks.md
|
|
2282
2292
|
*/
|
|
2283
2293
|
'jest/no-duplicate-hooks'?: Linter.RuleEntry<[]>;
|
|
2294
|
+
/**
|
|
2295
|
+
* Disallow using equality matchers on error types
|
|
2296
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.0/docs/rules/no-error-equal.md
|
|
2297
|
+
*/
|
|
2298
|
+
'jest/no-error-equal'?: Linter.RuleEntry<[]>;
|
|
2284
2299
|
/**
|
|
2285
2300
|
* Disallow using `exports` in files containing tests
|
|
2286
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2301
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.0/docs/rules/no-export.md
|
|
2287
2302
|
*/
|
|
2288
2303
|
'jest/no-export'?: Linter.RuleEntry<[]>;
|
|
2289
2304
|
/**
|
|
2290
2305
|
* Disallow focused tests
|
|
2291
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2306
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.0/docs/rules/no-focused-tests.md
|
|
2292
2307
|
*/
|
|
2293
2308
|
'jest/no-focused-tests'?: Linter.RuleEntry<[]>;
|
|
2294
2309
|
/**
|
|
2295
2310
|
* Disallow setup and teardown hooks
|
|
2296
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2311
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.0/docs/rules/no-hooks.md
|
|
2297
2312
|
*/
|
|
2298
2313
|
'jest/no-hooks'?: Linter.RuleEntry<JestNoHooks>;
|
|
2299
2314
|
/**
|
|
2300
2315
|
* Disallow identical titles
|
|
2301
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2316
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.0/docs/rules/no-identical-title.md
|
|
2302
2317
|
*/
|
|
2303
2318
|
'jest/no-identical-title'?: Linter.RuleEntry<[]>;
|
|
2304
2319
|
/**
|
|
2305
2320
|
* Disallow string interpolation inside snapshots
|
|
2306
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2321
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.0/docs/rules/no-interpolation-in-snapshots.md
|
|
2307
2322
|
*/
|
|
2308
2323
|
'jest/no-interpolation-in-snapshots'?: Linter.RuleEntry<[]>;
|
|
2309
2324
|
/**
|
|
2310
2325
|
* Disallow Jasmine globals
|
|
2311
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2326
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.0/docs/rules/no-jasmine-globals.md
|
|
2312
2327
|
*/
|
|
2313
2328
|
'jest/no-jasmine-globals'?: Linter.RuleEntry<[]>;
|
|
2314
2329
|
/**
|
|
2315
2330
|
* Disallow large snapshots
|
|
2316
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2331
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.0/docs/rules/no-large-snapshots.md
|
|
2317
2332
|
*/
|
|
2318
2333
|
'jest/no-large-snapshots'?: Linter.RuleEntry<JestNoLargeSnapshots>;
|
|
2319
2334
|
/**
|
|
2320
2335
|
* Disallow manually importing from `__mocks__`
|
|
2321
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2336
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.0/docs/rules/no-mocks-import.md
|
|
2322
2337
|
*/
|
|
2323
2338
|
'jest/no-mocks-import'?: Linter.RuleEntry<[]>;
|
|
2324
2339
|
/**
|
|
2325
2340
|
* Disallow specific `jest.` methods
|
|
2326
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2341
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.0/docs/rules/no-restricted-jest-methods.md
|
|
2327
2342
|
*/
|
|
2328
2343
|
'jest/no-restricted-jest-methods'?: Linter.RuleEntry<JestNoRestrictedJestMethods>;
|
|
2329
2344
|
/**
|
|
2330
2345
|
* Disallow specific matchers & modifiers
|
|
2331
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2346
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.0/docs/rules/no-restricted-matchers.md
|
|
2332
2347
|
*/
|
|
2333
2348
|
'jest/no-restricted-matchers'?: Linter.RuleEntry<JestNoRestrictedMatchers>;
|
|
2334
2349
|
/**
|
|
2335
2350
|
* Disallow using `expect` outside of `it` or `test` blocks
|
|
2336
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2351
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.0/docs/rules/no-standalone-expect.md
|
|
2337
2352
|
*/
|
|
2338
2353
|
'jest/no-standalone-expect'?: Linter.RuleEntry<JestNoStandaloneExpect>;
|
|
2339
2354
|
/**
|
|
2340
2355
|
* Require using `.only` and `.skip` over `f` and `x`
|
|
2341
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2356
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.0/docs/rules/no-test-prefixes.md
|
|
2342
2357
|
*/
|
|
2343
2358
|
'jest/no-test-prefixes'?: Linter.RuleEntry<[]>;
|
|
2344
2359
|
/**
|
|
2345
2360
|
* Disallow explicitly returning from tests
|
|
2346
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2361
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.0/docs/rules/no-test-return-statement.md
|
|
2347
2362
|
*/
|
|
2348
2363
|
'jest/no-test-return-statement'?: Linter.RuleEntry<[]>;
|
|
2364
|
+
/**
|
|
2365
|
+
* Disallow unnecessary assertions based on types
|
|
2366
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.0/docs/rules/no-unnecessary-assertion.md
|
|
2367
|
+
*/
|
|
2368
|
+
'jest/no-unnecessary-assertion'?: Linter.RuleEntry<[]>;
|
|
2349
2369
|
/**
|
|
2350
2370
|
* Disallow unnecessary async function wrapper for expected promises
|
|
2351
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2371
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.0/docs/rules/no-unneeded-async-expect-function.md
|
|
2352
2372
|
*/
|
|
2353
2373
|
'jest/no-unneeded-async-expect-function'?: Linter.RuleEntry<[]>;
|
|
2354
2374
|
/**
|
|
2355
2375
|
* Disallow using `jest.mock()` factories without an explicit type parameter
|
|
2356
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2376
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.0/docs/rules/no-untyped-mock-factory.md
|
|
2357
2377
|
*/
|
|
2358
2378
|
'jest/no-untyped-mock-factory'?: Linter.RuleEntry<[]>;
|
|
2359
2379
|
/**
|
|
2360
2380
|
* Enforce padding around `afterAll` blocks
|
|
2361
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2381
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.0/docs/rules/padding-around-after-all-blocks.md
|
|
2362
2382
|
*/
|
|
2363
2383
|
'jest/padding-around-after-all-blocks'?: Linter.RuleEntry<[]>;
|
|
2364
2384
|
/**
|
|
2365
2385
|
* Enforce padding around `afterEach` blocks
|
|
2366
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2386
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.0/docs/rules/padding-around-after-each-blocks.md
|
|
2367
2387
|
*/
|
|
2368
2388
|
'jest/padding-around-after-each-blocks'?: Linter.RuleEntry<[]>;
|
|
2369
2389
|
/**
|
|
2370
2390
|
* Enforce padding around Jest functions
|
|
2371
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2391
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.0/docs/rules/padding-around-all.md
|
|
2372
2392
|
*/
|
|
2373
2393
|
'jest/padding-around-all'?: Linter.RuleEntry<[]>;
|
|
2374
2394
|
/**
|
|
2375
2395
|
* Enforce padding around `beforeAll` blocks
|
|
2376
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2396
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.0/docs/rules/padding-around-before-all-blocks.md
|
|
2377
2397
|
*/
|
|
2378
2398
|
'jest/padding-around-before-all-blocks'?: Linter.RuleEntry<[]>;
|
|
2379
2399
|
/**
|
|
2380
2400
|
* Enforce padding around `beforeEach` blocks
|
|
2381
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2401
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.0/docs/rules/padding-around-before-each-blocks.md
|
|
2382
2402
|
*/
|
|
2383
2403
|
'jest/padding-around-before-each-blocks'?: Linter.RuleEntry<[]>;
|
|
2384
2404
|
/**
|
|
2385
2405
|
* Enforce padding around `describe` blocks
|
|
2386
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2406
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.0/docs/rules/padding-around-describe-blocks.md
|
|
2387
2407
|
*/
|
|
2388
2408
|
'jest/padding-around-describe-blocks'?: Linter.RuleEntry<[]>;
|
|
2389
2409
|
/**
|
|
2390
2410
|
* Enforce padding around `expect` groups
|
|
2391
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2411
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.0/docs/rules/padding-around-expect-groups.md
|
|
2392
2412
|
*/
|
|
2393
2413
|
'jest/padding-around-expect-groups'?: Linter.RuleEntry<[]>;
|
|
2394
2414
|
/**
|
|
2395
2415
|
* Enforce padding around `test` and `it` blocks
|
|
2396
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2416
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.0/docs/rules/padding-around-test-blocks.md
|
|
2397
2417
|
*/
|
|
2398
2418
|
'jest/padding-around-test-blocks'?: Linter.RuleEntry<[]>;
|
|
2399
2419
|
/**
|
|
2400
2420
|
* Suggest using `toHaveBeenCalledWith()`
|
|
2401
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2421
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.0/docs/rules/prefer-called-with.md
|
|
2402
2422
|
*/
|
|
2403
2423
|
'jest/prefer-called-with'?: Linter.RuleEntry<[]>;
|
|
2404
2424
|
/**
|
|
2405
2425
|
* Suggest using the built-in comparison matchers
|
|
2406
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2426
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.0/docs/rules/prefer-comparison-matcher.md
|
|
2407
2427
|
*/
|
|
2408
2428
|
'jest/prefer-comparison-matcher'?: Linter.RuleEntry<[]>;
|
|
2409
2429
|
/**
|
|
2410
2430
|
* Prefer using `.each` rather than manual loops
|
|
2411
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2431
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.0/docs/rules/prefer-each.md
|
|
2412
2432
|
*/
|
|
2413
2433
|
'jest/prefer-each'?: Linter.RuleEntry<[]>;
|
|
2414
2434
|
/**
|
|
2415
2435
|
* Prefer having the last statement in a test be an assertion
|
|
2416
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2436
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.0/docs/rules/prefer-ending-with-an-expect.md
|
|
2417
2437
|
*/
|
|
2418
2438
|
'jest/prefer-ending-with-an-expect'?: Linter.RuleEntry<JestPreferEndingWithAnExpect>;
|
|
2419
2439
|
/**
|
|
2420
2440
|
* Suggest using the built-in equality matchers
|
|
2421
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2441
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.0/docs/rules/prefer-equality-matcher.md
|
|
2422
2442
|
*/
|
|
2423
2443
|
'jest/prefer-equality-matcher'?: Linter.RuleEntry<[]>;
|
|
2424
2444
|
/**
|
|
2425
2445
|
* Suggest using `expect.assertions()` OR `expect.hasAssertions()`
|
|
2426
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2446
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.0/docs/rules/prefer-expect-assertions.md
|
|
2427
2447
|
*/
|
|
2428
2448
|
'jest/prefer-expect-assertions'?: Linter.RuleEntry<JestPreferExpectAssertions>;
|
|
2429
2449
|
/**
|
|
2430
2450
|
* Prefer `await expect(...).resolves` over `expect(await ...)` syntax
|
|
2431
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2451
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.0/docs/rules/prefer-expect-resolves.md
|
|
2432
2452
|
*/
|
|
2433
2453
|
'jest/prefer-expect-resolves'?: Linter.RuleEntry<[]>;
|
|
2434
2454
|
/**
|
|
2435
2455
|
* Prefer having hooks in a consistent order
|
|
2436
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2456
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.0/docs/rules/prefer-hooks-in-order.md
|
|
2437
2457
|
*/
|
|
2438
2458
|
'jest/prefer-hooks-in-order'?: Linter.RuleEntry<[]>;
|
|
2439
2459
|
/**
|
|
2440
2460
|
* Suggest having hooks before any test cases
|
|
2441
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2461
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.0/docs/rules/prefer-hooks-on-top.md
|
|
2442
2462
|
*/
|
|
2443
2463
|
'jest/prefer-hooks-on-top'?: Linter.RuleEntry<[]>;
|
|
2444
2464
|
/**
|
|
2445
2465
|
* Prefer importing Jest globals
|
|
2446
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2466
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.0/docs/rules/prefer-importing-jest-globals.md
|
|
2447
2467
|
*/
|
|
2448
2468
|
'jest/prefer-importing-jest-globals'?: Linter.RuleEntry<JestPreferImportingJestGlobals>;
|
|
2449
2469
|
/**
|
|
2450
2470
|
* Prefer `jest.mocked()` over `fn as jest.Mock`
|
|
2451
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2471
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.0/docs/rules/prefer-jest-mocked.md
|
|
2452
2472
|
*/
|
|
2453
2473
|
'jest/prefer-jest-mocked'?: Linter.RuleEntry<[]>;
|
|
2454
2474
|
/**
|
|
2455
2475
|
* Enforce lowercase test names
|
|
2456
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2476
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.0/docs/rules/prefer-lowercase-title.md
|
|
2457
2477
|
*/
|
|
2458
2478
|
'jest/prefer-lowercase-title'?: Linter.RuleEntry<JestPreferLowercaseTitle>;
|
|
2459
2479
|
/**
|
|
2460
2480
|
* Prefer mock resolved/rejected shorthands for promises
|
|
2461
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2481
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.0/docs/rules/prefer-mock-promise-shorthand.md
|
|
2462
2482
|
*/
|
|
2463
2483
|
'jest/prefer-mock-promise-shorthand'?: Linter.RuleEntry<[]>;
|
|
2484
|
+
/**
|
|
2485
|
+
* Prefer mock return shorthands
|
|
2486
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.0/docs/rules/prefer-mock-return-shorthand.md
|
|
2487
|
+
*/
|
|
2488
|
+
'jest/prefer-mock-return-shorthand'?: Linter.RuleEntry<[]>;
|
|
2464
2489
|
/**
|
|
2465
2490
|
* Prefer including a hint with external snapshots
|
|
2466
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2491
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.0/docs/rules/prefer-snapshot-hint.md
|
|
2467
2492
|
*/
|
|
2468
2493
|
'jest/prefer-snapshot-hint'?: Linter.RuleEntry<JestPreferSnapshotHint>;
|
|
2469
2494
|
/**
|
|
2470
2495
|
* Suggest using `jest.spyOn()`
|
|
2471
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2496
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.0/docs/rules/prefer-spy-on.md
|
|
2472
2497
|
*/
|
|
2473
2498
|
'jest/prefer-spy-on'?: Linter.RuleEntry<[]>;
|
|
2474
2499
|
/**
|
|
2475
2500
|
* Suggest using `toStrictEqual()`
|
|
2476
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2501
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.0/docs/rules/prefer-strict-equal.md
|
|
2477
2502
|
*/
|
|
2478
2503
|
'jest/prefer-strict-equal'?: Linter.RuleEntry<[]>;
|
|
2479
2504
|
/**
|
|
2480
2505
|
* Suggest using `toBe()` for primitive literals
|
|
2481
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2506
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.0/docs/rules/prefer-to-be.md
|
|
2482
2507
|
*/
|
|
2483
2508
|
'jest/prefer-to-be'?: Linter.RuleEntry<[]>;
|
|
2484
2509
|
/**
|
|
2485
2510
|
* Suggest using `toContain()`
|
|
2486
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2511
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.0/docs/rules/prefer-to-contain.md
|
|
2487
2512
|
*/
|
|
2488
2513
|
'jest/prefer-to-contain'?: Linter.RuleEntry<[]>;
|
|
2489
2514
|
/**
|
|
2490
2515
|
* Suggest using `toHaveBeenCalled`
|
|
2491
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2516
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.0/docs/rules/prefer-to-have-been-called.md
|
|
2492
2517
|
*/
|
|
2493
2518
|
'jest/prefer-to-have-been-called'?: Linter.RuleEntry<[]>;
|
|
2494
2519
|
/**
|
|
2495
2520
|
* Suggest using `toHaveBeenCalledTimes()`
|
|
2496
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2521
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.0/docs/rules/prefer-to-have-been-called-times.md
|
|
2497
2522
|
*/
|
|
2498
2523
|
'jest/prefer-to-have-been-called-times'?: Linter.RuleEntry<[]>;
|
|
2499
2524
|
/**
|
|
2500
2525
|
* Suggest using `toHaveLength()`
|
|
2501
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2526
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.0/docs/rules/prefer-to-have-length.md
|
|
2502
2527
|
*/
|
|
2503
2528
|
'jest/prefer-to-have-length'?: Linter.RuleEntry<[]>;
|
|
2504
2529
|
/**
|
|
2505
2530
|
* Suggest using `test.todo`
|
|
2506
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2531
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.0/docs/rules/prefer-todo.md
|
|
2507
2532
|
*/
|
|
2508
2533
|
'jest/prefer-todo'?: Linter.RuleEntry<[]>;
|
|
2509
2534
|
/**
|
|
2510
2535
|
* Require setup and teardown code to be within a hook
|
|
2511
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2536
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.0/docs/rules/require-hook.md
|
|
2512
2537
|
*/
|
|
2513
2538
|
'jest/require-hook'?: Linter.RuleEntry<JestRequireHook>;
|
|
2514
2539
|
/**
|
|
2515
2540
|
* Require a message for `toThrow()`
|
|
2516
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2541
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.0/docs/rules/require-to-throw-message.md
|
|
2517
2542
|
*/
|
|
2518
2543
|
'jest/require-to-throw-message'?: Linter.RuleEntry<[]>;
|
|
2519
2544
|
/**
|
|
2520
2545
|
* Require test cases and hooks to be inside a `describe` block
|
|
2521
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2546
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.0/docs/rules/require-top-level-describe.md
|
|
2522
2547
|
*/
|
|
2523
2548
|
'jest/require-top-level-describe'?: Linter.RuleEntry<JestRequireTopLevelDescribe>;
|
|
2524
2549
|
/**
|
|
2525
2550
|
* Enforce unbound methods are called with their expected scope
|
|
2526
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2551
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.0/docs/rules/unbound-method.md
|
|
2527
2552
|
*/
|
|
2528
2553
|
'jest/unbound-method'?: Linter.RuleEntry<JestUnboundMethod>;
|
|
2529
2554
|
/**
|
|
2530
2555
|
* Enforce valid `describe()` callback
|
|
2531
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2556
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.0/docs/rules/valid-describe-callback.md
|
|
2532
2557
|
*/
|
|
2533
2558
|
'jest/valid-describe-callback'?: Linter.RuleEntry<[]>;
|
|
2534
2559
|
/**
|
|
2535
2560
|
* Enforce valid `expect()` usage
|
|
2536
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2561
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.0/docs/rules/valid-expect.md
|
|
2537
2562
|
*/
|
|
2538
2563
|
'jest/valid-expect'?: Linter.RuleEntry<JestValidExpect>;
|
|
2539
2564
|
/**
|
|
2540
2565
|
* Require promises that have expectations in their chain to be valid
|
|
2541
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2566
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.0/docs/rules/valid-expect-in-promise.md
|
|
2542
2567
|
*/
|
|
2543
2568
|
'jest/valid-expect-in-promise'?: Linter.RuleEntry<[]>;
|
|
2569
|
+
/**
|
|
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.11.0/docs/rules/valid-expect-with-promise.md
|
|
2572
|
+
*/
|
|
2573
|
+
'jest/valid-expect-with-promise'?: Linter.RuleEntry<[]>;
|
|
2544
2574
|
/**
|
|
2545
2575
|
* Disallow mocking of non-existing module paths
|
|
2546
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2576
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.0/docs/rules/valid-mock-module-path.md
|
|
2547
2577
|
*/
|
|
2548
2578
|
'jest/valid-mock-module-path'?: Linter.RuleEntry<JestValidMockModulePath>;
|
|
2549
2579
|
/**
|
|
2550
2580
|
* Enforce valid titles
|
|
2551
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
2581
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.0/docs/rules/valid-title.md
|
|
2552
2582
|
*/
|
|
2553
2583
|
'jest/valid-title'?: Linter.RuleEntry<JestValidTitle>;
|
|
2554
2584
|
/**
|
|
@@ -5044,7 +5074,7 @@ interface RuleOptions {
|
|
|
5044
5074
|
* Enforces destructuring and symmetric naming of `useState` hook value and setter.
|
|
5045
5075
|
* @see https://eslint-react.xyz/docs/rules/naming-convention-use-state
|
|
5046
5076
|
*/
|
|
5047
|
-
'react-naming-convention/use-state'?: Linter.RuleEntry<
|
|
5077
|
+
'react-naming-convention/use-state'?: Linter.RuleEntry<ReactNamingConventionUseState>;
|
|
5048
5078
|
'react-refresh/only-export-components'?: Linter.RuleEntry<ReactRefreshOnlyExportComponents>;
|
|
5049
5079
|
/**
|
|
5050
5080
|
* Prevents leaked `addEventListener` in a component or custom Hook.
|
|
@@ -7024,6 +7054,11 @@ interface RuleOptions {
|
|
|
7024
7054
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-test-return-statement.md
|
|
7025
7055
|
*/
|
|
7026
7056
|
'vitest/no-test-return-statement'?: Linter.RuleEntry<[]>;
|
|
7057
|
+
/**
|
|
7058
|
+
* Disallow unnecessary async function wrapper for expected promises
|
|
7059
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-unneeded-async-expect-function.md
|
|
7060
|
+
*/
|
|
7061
|
+
'vitest/no-unneeded-async-expect-function'?: Linter.RuleEntry<[]>;
|
|
7027
7062
|
/**
|
|
7028
7063
|
* Enforce padding around `afterAll` blocks
|
|
7029
7064
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/padding-around-after-all-blocks.md
|
|
@@ -7133,7 +7168,7 @@ interface RuleOptions {
|
|
|
7133
7168
|
* prefer dynamic import in mock
|
|
7134
7169
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-import-in-mock.md
|
|
7135
7170
|
*/
|
|
7136
|
-
'vitest/prefer-import-in-mock'?: Linter.RuleEntry<
|
|
7171
|
+
'vitest/prefer-import-in-mock'?: Linter.RuleEntry<VitestPreferImportInMock>;
|
|
7137
7172
|
/**
|
|
7138
7173
|
* enforce importing Vitest globals
|
|
7139
7174
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-importing-vitest-globals.md
|
|
@@ -7149,6 +7184,11 @@ interface RuleOptions {
|
|
|
7149
7184
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-mock-promise-shorthand.md
|
|
7150
7185
|
*/
|
|
7151
7186
|
'vitest/prefer-mock-promise-shorthand'?: Linter.RuleEntry<[]>;
|
|
7187
|
+
/**
|
|
7188
|
+
* Prefer mock return shorthands
|
|
7189
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-mock-return-shorthand.md
|
|
7190
|
+
*/
|
|
7191
|
+
'vitest/prefer-mock-return-shorthand'?: Linter.RuleEntry<[]>;
|
|
7152
7192
|
/**
|
|
7153
7193
|
* enforce including a hint with external snapshots
|
|
7154
7194
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-snapshot-hint.md
|
|
@@ -7194,6 +7234,11 @@ interface RuleOptions {
|
|
|
7194
7234
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-contain.md
|
|
7195
7235
|
*/
|
|
7196
7236
|
'vitest/prefer-to-contain'?: Linter.RuleEntry<[]>;
|
|
7237
|
+
/**
|
|
7238
|
+
* Suggest using `toHaveBeenCalledTimes()`
|
|
7239
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-have-been-called-times.md
|
|
7240
|
+
*/
|
|
7241
|
+
'vitest/prefer-to-have-been-called-times'?: Linter.RuleEntry<[]>;
|
|
7197
7242
|
/**
|
|
7198
7243
|
* enforce using toHaveLength()
|
|
7199
7244
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-have-length.md
|
|
@@ -7219,11 +7264,6 @@ interface RuleOptions {
|
|
|
7219
7264
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-hook.md
|
|
7220
7265
|
*/
|
|
7221
7266
|
'vitest/require-hook'?: Linter.RuleEntry<VitestRequireHook>;
|
|
7222
|
-
/**
|
|
7223
|
-
* require usage of import in vi.mock()
|
|
7224
|
-
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-import-vi-mock.md
|
|
7225
|
-
*/
|
|
7226
|
-
'vitest/require-import-vi-mock'?: Linter.RuleEntry<[]>;
|
|
7227
7267
|
/**
|
|
7228
7268
|
* require local Test Context for concurrent snapshot tests
|
|
7229
7269
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-local-test-context-for-concurrent-snapshots.md
|
|
@@ -12391,7 +12431,7 @@ type PerfectionistSortArrayIncludes = {
|
|
|
12391
12431
|
};
|
|
12392
12432
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12393
12433
|
groupName: string;
|
|
12394
|
-
newlinesInside?: number;
|
|
12434
|
+
newlinesInside?: ("ignore" | number);
|
|
12395
12435
|
order?: ("asc" | "desc");
|
|
12396
12436
|
anyOf: {
|
|
12397
12437
|
elementNamePattern?: (({
|
|
@@ -12410,7 +12450,7 @@ type PerfectionistSortArrayIncludes = {
|
|
|
12410
12450
|
};
|
|
12411
12451
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12412
12452
|
groupName: string;
|
|
12413
|
-
newlinesInside?: number;
|
|
12453
|
+
newlinesInside?: ("ignore" | number);
|
|
12414
12454
|
order?: ("asc" | "desc");
|
|
12415
12455
|
elementNamePattern?: (({
|
|
12416
12456
|
pattern: string;
|
|
@@ -12421,13 +12461,14 @@ type PerfectionistSortArrayIncludes = {
|
|
|
12421
12461
|
} | string));
|
|
12422
12462
|
selector?: ("literal" | "spread");
|
|
12423
12463
|
})[];
|
|
12464
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
12424
12465
|
groups?: (string | [string, ...(string)[]] | {
|
|
12425
12466
|
newlinesBetween: ("ignore" | number);
|
|
12426
12467
|
} | {
|
|
12427
12468
|
group: (string | [string, ...(string)[]]);
|
|
12428
12469
|
commentAbove?: string;
|
|
12429
12470
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12430
|
-
newlinesInside?: number;
|
|
12471
|
+
newlinesInside?: ("ignore" | number);
|
|
12431
12472
|
order?: ("asc" | "desc");
|
|
12432
12473
|
})[];
|
|
12433
12474
|
newlinesBetween?: ("ignore" | number);
|
|
@@ -12483,7 +12524,7 @@ type PerfectionistSortClasses = [] | [{
|
|
|
12483
12524
|
};
|
|
12484
12525
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12485
12526
|
groupName: string;
|
|
12486
|
-
newlinesInside?: number;
|
|
12527
|
+
newlinesInside?: ("ignore" | number);
|
|
12487
12528
|
order?: ("asc" | "desc");
|
|
12488
12529
|
anyOf: {
|
|
12489
12530
|
elementNamePattern?: (({
|
|
@@ -12517,7 +12558,7 @@ type PerfectionistSortClasses = [] | [{
|
|
|
12517
12558
|
};
|
|
12518
12559
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12519
12560
|
groupName: string;
|
|
12520
|
-
newlinesInside?: number;
|
|
12561
|
+
newlinesInside?: ("ignore" | number);
|
|
12521
12562
|
order?: ("asc" | "desc");
|
|
12522
12563
|
elementNamePattern?: (({
|
|
12523
12564
|
pattern: string;
|
|
@@ -12543,13 +12584,14 @@ type PerfectionistSortClasses = [] | [{
|
|
|
12543
12584
|
flags?: string;
|
|
12544
12585
|
} | string));
|
|
12545
12586
|
})[];
|
|
12587
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
12546
12588
|
groups?: (string | [string, ...(string)[]] | {
|
|
12547
12589
|
newlinesBetween: ("ignore" | number);
|
|
12548
12590
|
} | {
|
|
12549
12591
|
group: (string | [string, ...(string)[]]);
|
|
12550
12592
|
commentAbove?: string;
|
|
12551
12593
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12552
|
-
newlinesInside?: number;
|
|
12594
|
+
newlinesInside?: ("ignore" | number);
|
|
12553
12595
|
order?: ("asc" | "desc");
|
|
12554
12596
|
})[];
|
|
12555
12597
|
newlinesBetween?: ("ignore" | number);
|
|
@@ -12603,7 +12645,7 @@ type PerfectionistSortDecorators = {
|
|
|
12603
12645
|
};
|
|
12604
12646
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12605
12647
|
groupName: string;
|
|
12606
|
-
newlinesInside?: number;
|
|
12648
|
+
newlinesInside?: ("ignore" | number);
|
|
12607
12649
|
order?: ("asc" | "desc");
|
|
12608
12650
|
anyOf: {
|
|
12609
12651
|
elementNamePattern?: (({
|
|
@@ -12621,7 +12663,7 @@ type PerfectionistSortDecorators = {
|
|
|
12621
12663
|
};
|
|
12622
12664
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12623
12665
|
groupName: string;
|
|
12624
|
-
newlinesInside?: number;
|
|
12666
|
+
newlinesInside?: ("ignore" | number);
|
|
12625
12667
|
order?: ("asc" | "desc");
|
|
12626
12668
|
elementNamePattern?: (({
|
|
12627
12669
|
pattern: string;
|
|
@@ -12631,13 +12673,14 @@ type PerfectionistSortDecorators = {
|
|
|
12631
12673
|
flags?: string;
|
|
12632
12674
|
} | string));
|
|
12633
12675
|
})[];
|
|
12676
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
12634
12677
|
groups?: (string | [string, ...(string)[]] | {
|
|
12635
12678
|
newlinesBetween: ("ignore" | number);
|
|
12636
12679
|
} | {
|
|
12637
12680
|
group: (string | [string, ...(string)[]]);
|
|
12638
12681
|
commentAbove?: string;
|
|
12639
12682
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12640
|
-
newlinesInside?: number;
|
|
12683
|
+
newlinesInside?: ("ignore" | number);
|
|
12641
12684
|
order?: ("asc" | "desc");
|
|
12642
12685
|
})[];
|
|
12643
12686
|
newlinesBetween?: ("ignore" | number);
|
|
@@ -12689,7 +12732,7 @@ type PerfectionistSortEnums = [] | [{
|
|
|
12689
12732
|
};
|
|
12690
12733
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12691
12734
|
groupName: string;
|
|
12692
|
-
newlinesInside?: number;
|
|
12735
|
+
newlinesInside?: ("ignore" | number);
|
|
12693
12736
|
order?: ("asc" | "desc");
|
|
12694
12737
|
anyOf: {
|
|
12695
12738
|
elementNamePattern?: (({
|
|
@@ -12714,7 +12757,7 @@ type PerfectionistSortEnums = [] | [{
|
|
|
12714
12757
|
};
|
|
12715
12758
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12716
12759
|
groupName: string;
|
|
12717
|
-
newlinesInside?: number;
|
|
12760
|
+
newlinesInside?: ("ignore" | number);
|
|
12718
12761
|
order?: ("asc" | "desc");
|
|
12719
12762
|
elementNamePattern?: (({
|
|
12720
12763
|
pattern: string;
|
|
@@ -12731,13 +12774,14 @@ type PerfectionistSortEnums = [] | [{
|
|
|
12731
12774
|
flags?: string;
|
|
12732
12775
|
} | string));
|
|
12733
12776
|
})[];
|
|
12777
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
12734
12778
|
groups?: (string | [string, ...(string)[]] | {
|
|
12735
12779
|
newlinesBetween: ("ignore" | number);
|
|
12736
12780
|
} | {
|
|
12737
12781
|
group: (string | [string, ...(string)[]]);
|
|
12738
12782
|
commentAbove?: string;
|
|
12739
12783
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12740
|
-
newlinesInside?: number;
|
|
12784
|
+
newlinesInside?: ("ignore" | number);
|
|
12741
12785
|
order?: ("asc" | "desc");
|
|
12742
12786
|
})[];
|
|
12743
12787
|
newlinesBetween?: ("ignore" | number);
|
|
@@ -12785,7 +12829,7 @@ type PerfectionistSortExportAttributes = {
|
|
|
12785
12829
|
};
|
|
12786
12830
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12787
12831
|
groupName: string;
|
|
12788
|
-
newlinesInside?: number;
|
|
12832
|
+
newlinesInside?: ("ignore" | number);
|
|
12789
12833
|
order?: ("asc" | "desc");
|
|
12790
12834
|
anyOf: {
|
|
12791
12835
|
elementNamePattern?: (({
|
|
@@ -12803,7 +12847,7 @@ type PerfectionistSortExportAttributes = {
|
|
|
12803
12847
|
};
|
|
12804
12848
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12805
12849
|
groupName: string;
|
|
12806
|
-
newlinesInside?: number;
|
|
12850
|
+
newlinesInside?: ("ignore" | number);
|
|
12807
12851
|
order?: ("asc" | "desc");
|
|
12808
12852
|
elementNamePattern?: (({
|
|
12809
12853
|
pattern: string;
|
|
@@ -12813,13 +12857,14 @@ type PerfectionistSortExportAttributes = {
|
|
|
12813
12857
|
flags?: string;
|
|
12814
12858
|
} | string));
|
|
12815
12859
|
})[];
|
|
12860
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
12816
12861
|
groups?: (string | [string, ...(string)[]] | {
|
|
12817
12862
|
newlinesBetween: ("ignore" | number);
|
|
12818
12863
|
} | {
|
|
12819
12864
|
group: (string | [string, ...(string)[]]);
|
|
12820
12865
|
commentAbove?: string;
|
|
12821
12866
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12822
|
-
newlinesInside?: number;
|
|
12867
|
+
newlinesInside?: ("ignore" | number);
|
|
12823
12868
|
order?: ("asc" | "desc");
|
|
12824
12869
|
})[];
|
|
12825
12870
|
newlinesBetween?: ("ignore" | number);
|
|
@@ -12866,7 +12911,7 @@ type PerfectionistSortExports = {
|
|
|
12866
12911
|
};
|
|
12867
12912
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12868
12913
|
groupName: string;
|
|
12869
|
-
newlinesInside?: number;
|
|
12914
|
+
newlinesInside?: ("ignore" | number);
|
|
12870
12915
|
order?: ("asc" | "desc");
|
|
12871
12916
|
anyOf: {
|
|
12872
12917
|
elementNamePattern?: (({
|
|
@@ -12886,7 +12931,7 @@ type PerfectionistSortExports = {
|
|
|
12886
12931
|
};
|
|
12887
12932
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12888
12933
|
groupName: string;
|
|
12889
|
-
newlinesInside?: number;
|
|
12934
|
+
newlinesInside?: ("ignore" | number);
|
|
12890
12935
|
order?: ("asc" | "desc");
|
|
12891
12936
|
elementNamePattern?: (({
|
|
12892
12937
|
pattern: string;
|
|
@@ -12898,13 +12943,14 @@ type PerfectionistSortExports = {
|
|
|
12898
12943
|
modifiers?: ("value" | "type" | "named" | "wildcard" | "multiline" | "singleline")[];
|
|
12899
12944
|
selector?: "export";
|
|
12900
12945
|
})[];
|
|
12946
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
12901
12947
|
groups?: (string | [string, ...(string)[]] | {
|
|
12902
12948
|
newlinesBetween: ("ignore" | number);
|
|
12903
12949
|
} | {
|
|
12904
12950
|
group: (string | [string, ...(string)[]]);
|
|
12905
12951
|
commentAbove?: string;
|
|
12906
12952
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12907
|
-
newlinesInside?: number;
|
|
12953
|
+
newlinesInside?: ("ignore" | number);
|
|
12908
12954
|
order?: ("asc" | "desc");
|
|
12909
12955
|
})[];
|
|
12910
12956
|
newlinesBetween?: ("ignore" | number);
|
|
@@ -12951,7 +12997,7 @@ type PerfectionistSortHeritageClauses = {
|
|
|
12951
12997
|
};
|
|
12952
12998
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12953
12999
|
groupName: string;
|
|
12954
|
-
newlinesInside?: number;
|
|
13000
|
+
newlinesInside?: ("ignore" | number);
|
|
12955
13001
|
order?: ("asc" | "desc");
|
|
12956
13002
|
anyOf: {
|
|
12957
13003
|
elementNamePattern?: (({
|
|
@@ -12969,7 +13015,7 @@ type PerfectionistSortHeritageClauses = {
|
|
|
12969
13015
|
};
|
|
12970
13016
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12971
13017
|
groupName: string;
|
|
12972
|
-
newlinesInside?: number;
|
|
13018
|
+
newlinesInside?: ("ignore" | number);
|
|
12973
13019
|
order?: ("asc" | "desc");
|
|
12974
13020
|
elementNamePattern?: (({
|
|
12975
13021
|
pattern: string;
|
|
@@ -12979,13 +13025,14 @@ type PerfectionistSortHeritageClauses = {
|
|
|
12979
13025
|
flags?: string;
|
|
12980
13026
|
} | string));
|
|
12981
13027
|
})[];
|
|
13028
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
12982
13029
|
groups?: (string | [string, ...(string)[]] | {
|
|
12983
13030
|
newlinesBetween: ("ignore" | number);
|
|
12984
13031
|
} | {
|
|
12985
13032
|
group: (string | [string, ...(string)[]]);
|
|
12986
13033
|
commentAbove?: string;
|
|
12987
13034
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12988
|
-
newlinesInside?: number;
|
|
13035
|
+
newlinesInside?: ("ignore" | number);
|
|
12989
13036
|
order?: ("asc" | "desc");
|
|
12990
13037
|
})[];
|
|
12991
13038
|
newlinesBetween?: ("ignore" | number);
|
|
@@ -13032,7 +13079,7 @@ type PerfectionistSortImportAttributes = {
|
|
|
13032
13079
|
};
|
|
13033
13080
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13034
13081
|
groupName: string;
|
|
13035
|
-
newlinesInside?: number;
|
|
13082
|
+
newlinesInside?: ("ignore" | number);
|
|
13036
13083
|
order?: ("asc" | "desc");
|
|
13037
13084
|
anyOf: {
|
|
13038
13085
|
elementNamePattern?: (({
|
|
@@ -13050,7 +13097,7 @@ type PerfectionistSortImportAttributes = {
|
|
|
13050
13097
|
};
|
|
13051
13098
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13052
13099
|
groupName: string;
|
|
13053
|
-
newlinesInside?: number;
|
|
13100
|
+
newlinesInside?: ("ignore" | number);
|
|
13054
13101
|
order?: ("asc" | "desc");
|
|
13055
13102
|
elementNamePattern?: (({
|
|
13056
13103
|
pattern: string;
|
|
@@ -13060,13 +13107,14 @@ type PerfectionistSortImportAttributes = {
|
|
|
13060
13107
|
flags?: string;
|
|
13061
13108
|
} | string));
|
|
13062
13109
|
})[];
|
|
13110
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
13063
13111
|
groups?: (string | [string, ...(string)[]] | {
|
|
13064
13112
|
newlinesBetween: ("ignore" | number);
|
|
13065
13113
|
} | {
|
|
13066
13114
|
group: (string | [string, ...(string)[]]);
|
|
13067
13115
|
commentAbove?: string;
|
|
13068
13116
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13069
|
-
newlinesInside?: number;
|
|
13117
|
+
newlinesInside?: ("ignore" | number);
|
|
13070
13118
|
order?: ("asc" | "desc");
|
|
13071
13119
|
})[];
|
|
13072
13120
|
newlinesBetween?: ("ignore" | number);
|
|
@@ -13113,7 +13161,7 @@ type PerfectionistSortImports = {
|
|
|
13113
13161
|
};
|
|
13114
13162
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
|
|
13115
13163
|
groupName: string;
|
|
13116
|
-
newlinesInside?: number;
|
|
13164
|
+
newlinesInside?: ("ignore" | number);
|
|
13117
13165
|
order?: ("asc" | "desc");
|
|
13118
13166
|
anyOf: {
|
|
13119
13167
|
elementNamePattern?: (({
|
|
@@ -13133,7 +13181,7 @@ type PerfectionistSortImports = {
|
|
|
13133
13181
|
};
|
|
13134
13182
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
|
|
13135
13183
|
groupName: string;
|
|
13136
|
-
newlinesInside?: number;
|
|
13184
|
+
newlinesInside?: ("ignore" | number);
|
|
13137
13185
|
order?: ("asc" | "desc");
|
|
13138
13186
|
elementNamePattern?: (({
|
|
13139
13187
|
pattern: string;
|
|
@@ -13145,13 +13193,14 @@ type PerfectionistSortImports = {
|
|
|
13145
13193
|
modifiers?: ("default" | "multiline" | "named" | "require" | "side-effect" | "singleline" | "ts-equals" | "type" | "value" | "wildcard")[];
|
|
13146
13194
|
selector?: ("side-effect-style" | "tsconfig-path" | "side-effect" | "external" | "internal" | "builtin" | "sibling" | "subpath" | "import" | "parent" | "index" | "style" | "type");
|
|
13147
13195
|
})[];
|
|
13196
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
13148
13197
|
groups?: (string | [string, ...(string)[]] | {
|
|
13149
13198
|
newlinesBetween: ("ignore" | number);
|
|
13150
13199
|
} | {
|
|
13151
13200
|
group: (string | [string, ...(string)[]]);
|
|
13152
13201
|
commentAbove?: string;
|
|
13153
13202
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
|
|
13154
|
-
newlinesInside?: number;
|
|
13203
|
+
newlinesInside?: ("ignore" | number);
|
|
13155
13204
|
order?: ("asc" | "desc");
|
|
13156
13205
|
})[];
|
|
13157
13206
|
newlinesBetween?: ("ignore" | number);
|
|
@@ -13214,7 +13263,7 @@ type PerfectionistSortInterfaces = {
|
|
|
13214
13263
|
};
|
|
13215
13264
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13216
13265
|
groupName: string;
|
|
13217
|
-
newlinesInside?: number;
|
|
13266
|
+
newlinesInside?: ("ignore" | number);
|
|
13218
13267
|
order?: ("asc" | "desc");
|
|
13219
13268
|
anyOf: {
|
|
13220
13269
|
elementNamePattern?: (({
|
|
@@ -13243,7 +13292,7 @@ type PerfectionistSortInterfaces = {
|
|
|
13243
13292
|
};
|
|
13244
13293
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13245
13294
|
groupName: string;
|
|
13246
|
-
newlinesInside?: number;
|
|
13295
|
+
newlinesInside?: ("ignore" | number);
|
|
13247
13296
|
order?: ("asc" | "desc");
|
|
13248
13297
|
elementNamePattern?: (({
|
|
13249
13298
|
pattern: string;
|
|
@@ -13263,13 +13312,14 @@ type PerfectionistSortInterfaces = {
|
|
|
13263
13312
|
} | string));
|
|
13264
13313
|
sortBy?: ("name" | "value");
|
|
13265
13314
|
})[];
|
|
13315
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
13266
13316
|
groups?: (string | [string, ...(string)[]] | {
|
|
13267
13317
|
newlinesBetween: ("ignore" | number);
|
|
13268
13318
|
} | {
|
|
13269
13319
|
group: (string | [string, ...(string)[]]);
|
|
13270
13320
|
commentAbove?: string;
|
|
13271
13321
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13272
|
-
newlinesInside?: number;
|
|
13322
|
+
newlinesInside?: ("ignore" | number);
|
|
13273
13323
|
order?: ("asc" | "desc");
|
|
13274
13324
|
})[];
|
|
13275
13325
|
newlinesBetween?: ("ignore" | number);
|
|
@@ -13345,7 +13395,7 @@ type PerfectionistSortIntersectionTypes = {
|
|
|
13345
13395
|
};
|
|
13346
13396
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13347
13397
|
groupName: string;
|
|
13348
|
-
newlinesInside?: number;
|
|
13398
|
+
newlinesInside?: ("ignore" | number);
|
|
13349
13399
|
order?: ("asc" | "desc");
|
|
13350
13400
|
anyOf: {
|
|
13351
13401
|
elementNamePattern?: (({
|
|
@@ -13364,7 +13414,7 @@ type PerfectionistSortIntersectionTypes = {
|
|
|
13364
13414
|
};
|
|
13365
13415
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13366
13416
|
groupName: string;
|
|
13367
|
-
newlinesInside?: number;
|
|
13417
|
+
newlinesInside?: ("ignore" | number);
|
|
13368
13418
|
order?: ("asc" | "desc");
|
|
13369
13419
|
elementNamePattern?: (({
|
|
13370
13420
|
pattern: string;
|
|
@@ -13375,13 +13425,14 @@ type PerfectionistSortIntersectionTypes = {
|
|
|
13375
13425
|
} | string));
|
|
13376
13426
|
selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
|
|
13377
13427
|
})[];
|
|
13428
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
13378
13429
|
groups?: (string | [string, ...(string)[]] | {
|
|
13379
13430
|
newlinesBetween: ("ignore" | number);
|
|
13380
13431
|
} | {
|
|
13381
13432
|
group: (string | [string, ...(string)[]]);
|
|
13382
13433
|
commentAbove?: string;
|
|
13383
13434
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13384
|
-
newlinesInside?: number;
|
|
13435
|
+
newlinesInside?: ("ignore" | number);
|
|
13385
13436
|
order?: ("asc" | "desc");
|
|
13386
13437
|
})[];
|
|
13387
13438
|
newlinesBetween?: ("ignore" | number);
|
|
@@ -13428,7 +13479,7 @@ type PerfectionistSortJsxProps = {
|
|
|
13428
13479
|
};
|
|
13429
13480
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13430
13481
|
groupName: string;
|
|
13431
|
-
newlinesInside?: number;
|
|
13482
|
+
newlinesInside?: ("ignore" | number);
|
|
13432
13483
|
order?: ("asc" | "desc");
|
|
13433
13484
|
anyOf: {
|
|
13434
13485
|
elementNamePattern?: (({
|
|
@@ -13455,7 +13506,7 @@ type PerfectionistSortJsxProps = {
|
|
|
13455
13506
|
};
|
|
13456
13507
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13457
13508
|
groupName: string;
|
|
13458
|
-
newlinesInside?: number;
|
|
13509
|
+
newlinesInside?: ("ignore" | number);
|
|
13459
13510
|
order?: ("asc" | "desc");
|
|
13460
13511
|
elementNamePattern?: (({
|
|
13461
13512
|
pattern: string;
|
|
@@ -13474,13 +13525,14 @@ type PerfectionistSortJsxProps = {
|
|
|
13474
13525
|
flags?: string;
|
|
13475
13526
|
} | string));
|
|
13476
13527
|
})[];
|
|
13528
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
13477
13529
|
groups?: (string | [string, ...(string)[]] | {
|
|
13478
13530
|
newlinesBetween: ("ignore" | number);
|
|
13479
13531
|
} | {
|
|
13480
13532
|
group: (string | [string, ...(string)[]]);
|
|
13481
13533
|
commentAbove?: string;
|
|
13482
13534
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13483
|
-
newlinesInside?: number;
|
|
13535
|
+
newlinesInside?: ("ignore" | number);
|
|
13484
13536
|
order?: ("asc" | "desc");
|
|
13485
13537
|
})[];
|
|
13486
13538
|
newlinesBetween?: ("ignore" | number);
|
|
@@ -13521,7 +13573,7 @@ type PerfectionistSortMaps = {
|
|
|
13521
13573
|
};
|
|
13522
13574
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13523
13575
|
groupName: string;
|
|
13524
|
-
newlinesInside?: number;
|
|
13576
|
+
newlinesInside?: ("ignore" | number);
|
|
13525
13577
|
order?: ("asc" | "desc");
|
|
13526
13578
|
anyOf: {
|
|
13527
13579
|
elementNamePattern?: (({
|
|
@@ -13539,7 +13591,7 @@ type PerfectionistSortMaps = {
|
|
|
13539
13591
|
};
|
|
13540
13592
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13541
13593
|
groupName: string;
|
|
13542
|
-
newlinesInside?: number;
|
|
13594
|
+
newlinesInside?: ("ignore" | number);
|
|
13543
13595
|
order?: ("asc" | "desc");
|
|
13544
13596
|
elementNamePattern?: (({
|
|
13545
13597
|
pattern: string;
|
|
@@ -13549,13 +13601,14 @@ type PerfectionistSortMaps = {
|
|
|
13549
13601
|
flags?: string;
|
|
13550
13602
|
} | string));
|
|
13551
13603
|
})[];
|
|
13604
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
13552
13605
|
groups?: (string | [string, ...(string)[]] | {
|
|
13553
13606
|
newlinesBetween: ("ignore" | number);
|
|
13554
13607
|
} | {
|
|
13555
13608
|
group: (string | [string, ...(string)[]]);
|
|
13556
13609
|
commentAbove?: string;
|
|
13557
13610
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13558
|
-
newlinesInside?: number;
|
|
13611
|
+
newlinesInside?: ("ignore" | number);
|
|
13559
13612
|
order?: ("asc" | "desc");
|
|
13560
13613
|
})[];
|
|
13561
13614
|
newlinesBetween?: ("ignore" | number);
|
|
@@ -13611,7 +13664,7 @@ type PerfectionistSortModules = [] | [{
|
|
|
13611
13664
|
};
|
|
13612
13665
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13613
13666
|
groupName: string;
|
|
13614
|
-
newlinesInside?: number;
|
|
13667
|
+
newlinesInside?: ("ignore" | number);
|
|
13615
13668
|
order?: ("asc" | "desc");
|
|
13616
13669
|
anyOf: {
|
|
13617
13670
|
elementNamePattern?: (({
|
|
@@ -13638,7 +13691,7 @@ type PerfectionistSortModules = [] | [{
|
|
|
13638
13691
|
};
|
|
13639
13692
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13640
13693
|
groupName: string;
|
|
13641
|
-
newlinesInside?: number;
|
|
13694
|
+
newlinesInside?: ("ignore" | number);
|
|
13642
13695
|
order?: ("asc" | "desc");
|
|
13643
13696
|
elementNamePattern?: (({
|
|
13644
13697
|
pattern: string;
|
|
@@ -13657,13 +13710,14 @@ type PerfectionistSortModules = [] | [{
|
|
|
13657
13710
|
flags?: string;
|
|
13658
13711
|
} | string));
|
|
13659
13712
|
})[];
|
|
13713
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
13660
13714
|
groups?: (string | [string, ...(string)[]] | {
|
|
13661
13715
|
newlinesBetween: ("ignore" | number);
|
|
13662
13716
|
} | {
|
|
13663
13717
|
group: (string | [string, ...(string)[]]);
|
|
13664
13718
|
commentAbove?: string;
|
|
13665
13719
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13666
|
-
newlinesInside?: number;
|
|
13720
|
+
newlinesInside?: ("ignore" | number);
|
|
13667
13721
|
order?: ("asc" | "desc");
|
|
13668
13722
|
})[];
|
|
13669
13723
|
newlinesBetween?: ("ignore" | number);
|
|
@@ -13710,7 +13764,7 @@ type PerfectionistSortNamedExports = {
|
|
|
13710
13764
|
};
|
|
13711
13765
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13712
13766
|
groupName: string;
|
|
13713
|
-
newlinesInside?: number;
|
|
13767
|
+
newlinesInside?: ("ignore" | number);
|
|
13714
13768
|
order?: ("asc" | "desc");
|
|
13715
13769
|
anyOf: {
|
|
13716
13770
|
elementNamePattern?: (({
|
|
@@ -13730,7 +13784,7 @@ type PerfectionistSortNamedExports = {
|
|
|
13730
13784
|
};
|
|
13731
13785
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13732
13786
|
groupName: string;
|
|
13733
|
-
newlinesInside?: number;
|
|
13787
|
+
newlinesInside?: ("ignore" | number);
|
|
13734
13788
|
order?: ("asc" | "desc");
|
|
13735
13789
|
elementNamePattern?: (({
|
|
13736
13790
|
pattern: string;
|
|
@@ -13742,13 +13796,14 @@ type PerfectionistSortNamedExports = {
|
|
|
13742
13796
|
modifiers?: ("value" | "type")[];
|
|
13743
13797
|
selector?: "export";
|
|
13744
13798
|
})[];
|
|
13799
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
13745
13800
|
groups?: (string | [string, ...(string)[]] | {
|
|
13746
13801
|
newlinesBetween: ("ignore" | number);
|
|
13747
13802
|
} | {
|
|
13748
13803
|
group: (string | [string, ...(string)[]]);
|
|
13749
13804
|
commentAbove?: string;
|
|
13750
13805
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13751
|
-
newlinesInside?: number;
|
|
13806
|
+
newlinesInside?: ("ignore" | number);
|
|
13752
13807
|
order?: ("asc" | "desc");
|
|
13753
13808
|
})[];
|
|
13754
13809
|
newlinesBetween?: ("ignore" | number);
|
|
@@ -13796,7 +13851,7 @@ type PerfectionistSortNamedImports = {
|
|
|
13796
13851
|
};
|
|
13797
13852
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13798
13853
|
groupName: string;
|
|
13799
|
-
newlinesInside?: number;
|
|
13854
|
+
newlinesInside?: ("ignore" | number);
|
|
13800
13855
|
order?: ("asc" | "desc");
|
|
13801
13856
|
anyOf: {
|
|
13802
13857
|
elementNamePattern?: (({
|
|
@@ -13816,7 +13871,7 @@ type PerfectionistSortNamedImports = {
|
|
|
13816
13871
|
};
|
|
13817
13872
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13818
13873
|
groupName: string;
|
|
13819
|
-
newlinesInside?: number;
|
|
13874
|
+
newlinesInside?: ("ignore" | number);
|
|
13820
13875
|
order?: ("asc" | "desc");
|
|
13821
13876
|
elementNamePattern?: (({
|
|
13822
13877
|
pattern: string;
|
|
@@ -13828,13 +13883,14 @@ type PerfectionistSortNamedImports = {
|
|
|
13828
13883
|
modifiers?: ("value" | "type")[];
|
|
13829
13884
|
selector?: "import";
|
|
13830
13885
|
})[];
|
|
13886
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
13831
13887
|
groups?: (string | [string, ...(string)[]] | {
|
|
13832
13888
|
newlinesBetween: ("ignore" | number);
|
|
13833
13889
|
} | {
|
|
13834
13890
|
group: (string | [string, ...(string)[]]);
|
|
13835
13891
|
commentAbove?: string;
|
|
13836
13892
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13837
|
-
newlinesInside?: number;
|
|
13893
|
+
newlinesInside?: ("ignore" | number);
|
|
13838
13894
|
order?: ("asc" | "desc");
|
|
13839
13895
|
})[];
|
|
13840
13896
|
newlinesBetween?: ("ignore" | number);
|
|
@@ -13884,7 +13940,7 @@ type PerfectionistSortObjectTypes = {
|
|
|
13884
13940
|
};
|
|
13885
13941
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13886
13942
|
groupName: string;
|
|
13887
|
-
newlinesInside?: number;
|
|
13943
|
+
newlinesInside?: ("ignore" | number);
|
|
13888
13944
|
order?: ("asc" | "desc");
|
|
13889
13945
|
anyOf: {
|
|
13890
13946
|
elementNamePattern?: (({
|
|
@@ -13913,7 +13969,7 @@ type PerfectionistSortObjectTypes = {
|
|
|
13913
13969
|
};
|
|
13914
13970
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13915
13971
|
groupName: string;
|
|
13916
|
-
newlinesInside?: number;
|
|
13972
|
+
newlinesInside?: ("ignore" | number);
|
|
13917
13973
|
order?: ("asc" | "desc");
|
|
13918
13974
|
elementNamePattern?: (({
|
|
13919
13975
|
pattern: string;
|
|
@@ -13933,13 +13989,14 @@ type PerfectionistSortObjectTypes = {
|
|
|
13933
13989
|
} | string));
|
|
13934
13990
|
sortBy?: ("name" | "value");
|
|
13935
13991
|
})[];
|
|
13992
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
13936
13993
|
groups?: (string | [string, ...(string)[]] | {
|
|
13937
13994
|
newlinesBetween: ("ignore" | number);
|
|
13938
13995
|
} | {
|
|
13939
13996
|
group: (string | [string, ...(string)[]]);
|
|
13940
13997
|
commentAbove?: string;
|
|
13941
13998
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13942
|
-
newlinesInside?: number;
|
|
13999
|
+
newlinesInside?: ("ignore" | number);
|
|
13943
14000
|
order?: ("asc" | "desc");
|
|
13944
14001
|
})[];
|
|
13945
14002
|
newlinesBetween?: ("ignore" | number);
|
|
@@ -14015,7 +14072,7 @@ type PerfectionistSortObjects = {
|
|
|
14015
14072
|
};
|
|
14016
14073
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
14017
14074
|
groupName: string;
|
|
14018
|
-
newlinesInside?: number;
|
|
14075
|
+
newlinesInside?: ("ignore" | number);
|
|
14019
14076
|
order?: ("asc" | "desc");
|
|
14020
14077
|
anyOf: {
|
|
14021
14078
|
elementNamePattern?: (({
|
|
@@ -14042,7 +14099,7 @@ type PerfectionistSortObjects = {
|
|
|
14042
14099
|
};
|
|
14043
14100
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
14044
14101
|
groupName: string;
|
|
14045
|
-
newlinesInside?: number;
|
|
14102
|
+
newlinesInside?: ("ignore" | number);
|
|
14046
14103
|
order?: ("asc" | "desc");
|
|
14047
14104
|
elementNamePattern?: (({
|
|
14048
14105
|
pattern: string;
|
|
@@ -14061,13 +14118,14 @@ type PerfectionistSortObjects = {
|
|
|
14061
14118
|
flags?: string;
|
|
14062
14119
|
} | string));
|
|
14063
14120
|
})[];
|
|
14121
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
14064
14122
|
groups?: (string | [string, ...(string)[]] | {
|
|
14065
14123
|
newlinesBetween: ("ignore" | number);
|
|
14066
14124
|
} | {
|
|
14067
14125
|
group: (string | [string, ...(string)[]]);
|
|
14068
14126
|
commentAbove?: string;
|
|
14069
14127
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
14070
|
-
newlinesInside?: number;
|
|
14128
|
+
newlinesInside?: ("ignore" | number);
|
|
14071
14129
|
order?: ("asc" | "desc");
|
|
14072
14130
|
})[];
|
|
14073
14131
|
newlinesBetween?: ("ignore" | number);
|
|
@@ -14153,7 +14211,7 @@ type PerfectionistSortSets = {
|
|
|
14153
14211
|
};
|
|
14154
14212
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
14155
14213
|
groupName: string;
|
|
14156
|
-
newlinesInside?: number;
|
|
14214
|
+
newlinesInside?: ("ignore" | number);
|
|
14157
14215
|
order?: ("asc" | "desc");
|
|
14158
14216
|
anyOf: {
|
|
14159
14217
|
elementNamePattern?: (({
|
|
@@ -14172,7 +14230,7 @@ type PerfectionistSortSets = {
|
|
|
14172
14230
|
};
|
|
14173
14231
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
14174
14232
|
groupName: string;
|
|
14175
|
-
newlinesInside?: number;
|
|
14233
|
+
newlinesInside?: ("ignore" | number);
|
|
14176
14234
|
order?: ("asc" | "desc");
|
|
14177
14235
|
elementNamePattern?: (({
|
|
14178
14236
|
pattern: string;
|
|
@@ -14183,13 +14241,14 @@ type PerfectionistSortSets = {
|
|
|
14183
14241
|
} | string));
|
|
14184
14242
|
selector?: ("literal" | "spread");
|
|
14185
14243
|
})[];
|
|
14244
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
14186
14245
|
groups?: (string | [string, ...(string)[]] | {
|
|
14187
14246
|
newlinesBetween: ("ignore" | number);
|
|
14188
14247
|
} | {
|
|
14189
14248
|
group: (string | [string, ...(string)[]]);
|
|
14190
14249
|
commentAbove?: string;
|
|
14191
14250
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
14192
|
-
newlinesInside?: number;
|
|
14251
|
+
newlinesInside?: ("ignore" | number);
|
|
14193
14252
|
order?: ("asc" | "desc");
|
|
14194
14253
|
})[];
|
|
14195
14254
|
newlinesBetween?: ("ignore" | number);
|
|
@@ -14258,7 +14317,7 @@ type PerfectionistSortUnionTypes = {
|
|
|
14258
14317
|
};
|
|
14259
14318
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
14260
14319
|
groupName: string;
|
|
14261
|
-
newlinesInside?: number;
|
|
14320
|
+
newlinesInside?: ("ignore" | number);
|
|
14262
14321
|
order?: ("asc" | "desc");
|
|
14263
14322
|
anyOf: {
|
|
14264
14323
|
elementNamePattern?: (({
|
|
@@ -14277,7 +14336,7 @@ type PerfectionistSortUnionTypes = {
|
|
|
14277
14336
|
};
|
|
14278
14337
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
14279
14338
|
groupName: string;
|
|
14280
|
-
newlinesInside?: number;
|
|
14339
|
+
newlinesInside?: ("ignore" | number);
|
|
14281
14340
|
order?: ("asc" | "desc");
|
|
14282
14341
|
elementNamePattern?: (({
|
|
14283
14342
|
pattern: string;
|
|
@@ -14288,13 +14347,14 @@ type PerfectionistSortUnionTypes = {
|
|
|
14288
14347
|
} | string));
|
|
14289
14348
|
selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
|
|
14290
14349
|
})[];
|
|
14350
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
14291
14351
|
groups?: (string | [string, ...(string)[]] | {
|
|
14292
14352
|
newlinesBetween: ("ignore" | number);
|
|
14293
14353
|
} | {
|
|
14294
14354
|
group: (string | [string, ...(string)[]]);
|
|
14295
14355
|
commentAbove?: string;
|
|
14296
14356
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
14297
|
-
newlinesInside?: number;
|
|
14357
|
+
newlinesInside?: ("ignore" | number);
|
|
14298
14358
|
order?: ("asc" | "desc");
|
|
14299
14359
|
})[];
|
|
14300
14360
|
newlinesBetween?: ("ignore" | number);
|
|
@@ -14341,7 +14401,7 @@ type PerfectionistSortVariableDeclarations = [] | [{
|
|
|
14341
14401
|
};
|
|
14342
14402
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
14343
14403
|
groupName: string;
|
|
14344
|
-
newlinesInside?: number;
|
|
14404
|
+
newlinesInside?: ("ignore" | number);
|
|
14345
14405
|
order?: ("asc" | "desc");
|
|
14346
14406
|
anyOf: {
|
|
14347
14407
|
elementNamePattern?: (({
|
|
@@ -14360,7 +14420,7 @@ type PerfectionistSortVariableDeclarations = [] | [{
|
|
|
14360
14420
|
};
|
|
14361
14421
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
14362
14422
|
groupName: string;
|
|
14363
|
-
newlinesInside?: number;
|
|
14423
|
+
newlinesInside?: ("ignore" | number);
|
|
14364
14424
|
order?: ("asc" | "desc");
|
|
14365
14425
|
elementNamePattern?: (({
|
|
14366
14426
|
pattern: string;
|
|
@@ -14371,13 +14431,14 @@ type PerfectionistSortVariableDeclarations = [] | [{
|
|
|
14371
14431
|
} | string));
|
|
14372
14432
|
selector?: ("initialized" | "uninitialized");
|
|
14373
14433
|
})[];
|
|
14434
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
14374
14435
|
groups?: (string | [string, ...(string)[]] | {
|
|
14375
14436
|
newlinesBetween: ("ignore" | number);
|
|
14376
14437
|
} | {
|
|
14377
14438
|
group: (string | [string, ...(string)[]]);
|
|
14378
14439
|
commentAbove?: string;
|
|
14379
14440
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
14380
|
-
newlinesInside?: number;
|
|
14441
|
+
newlinesInside?: ("ignore" | number);
|
|
14381
14442
|
order?: ("asc" | "desc");
|
|
14382
14443
|
})[];
|
|
14383
14444
|
newlinesBetween?: ("ignore" | number);
|
|
@@ -14698,6 +14759,11 @@ type ReactNamingConventionFilenameExtension = [] | [(("always" | "as-needed") |
|
|
|
14698
14759
|
extensions?: string[];
|
|
14699
14760
|
ignoreFilesWithoutCode?: boolean;
|
|
14700
14761
|
})];
|
|
14762
|
+
// ----- react-naming-convention/use-state -----
|
|
14763
|
+
type ReactNamingConventionUseState = [] | [{
|
|
14764
|
+
enforceAssignment?: boolean;
|
|
14765
|
+
enforceSetterName?: boolean;
|
|
14766
|
+
}];
|
|
14701
14767
|
// ----- react-refresh/only-export-components -----
|
|
14702
14768
|
type ReactRefreshOnlyExportComponents = [] | [{
|
|
14703
14769
|
allowExportNames?: string[];
|
|
@@ -15317,6 +15383,10 @@ type VitestPreferExpectAssertions = [] | [{
|
|
|
15317
15383
|
onlyFunctionsWithExpectInLoop?: boolean;
|
|
15318
15384
|
onlyFunctionsWithExpectInCallback?: boolean;
|
|
15319
15385
|
}];
|
|
15386
|
+
// ----- vitest/prefer-import-in-mock -----
|
|
15387
|
+
type VitestPreferImportInMock = [] | [{
|
|
15388
|
+
fixable?: boolean;
|
|
15389
|
+
}];
|
|
15320
15390
|
// ----- vitest/prefer-lowercase-title -----
|
|
15321
15391
|
type VitestPreferLowercaseTitle = [] | [{
|
|
15322
15392
|
ignore?: ("describe" | "test" | "it")[];
|