@coderwyd/eslint-config 4.8.0 → 4.9.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/README.md +1 -1
- package/dist/{cli.js → cli.mjs} +2 -1
- package/dist/{index.d.ts → index.d.mts} +1336 -519
- package/dist/{index.js → index.mjs} +94 -11
- package/package.json +36 -35
- /package/dist/{cli.d.ts → cli.d.mts} +0 -0
|
@@ -391,6 +391,11 @@ interface RuleOptions {
|
|
|
391
391
|
* @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/consistent-type-specifier-style/README.md
|
|
392
392
|
*/
|
|
393
393
|
'import/consistent-type-specifier-style'?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>;
|
|
394
|
+
/**
|
|
395
|
+
* Ensure all exports appear after other statements.
|
|
396
|
+
* @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/exports-last/README.md
|
|
397
|
+
*/
|
|
398
|
+
'import/exports-last'?: Linter.RuleEntry<[]>;
|
|
394
399
|
/**
|
|
395
400
|
* Ensure all imports appear before other statements.
|
|
396
401
|
* @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/first/README.md
|
|
@@ -421,6 +426,11 @@ interface RuleOptions {
|
|
|
421
426
|
* @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/no-named-default/README.md
|
|
422
427
|
*/
|
|
423
428
|
'import/no-named-default'?: Linter.RuleEntry<[]>;
|
|
429
|
+
/**
|
|
430
|
+
* Prefer a default export if module exports a single name or multiple names.
|
|
431
|
+
* @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/prefer-default-export/README.md
|
|
432
|
+
*/
|
|
433
|
+
'import/prefer-default-export'?: Linter.RuleEntry<ImportPreferDefaultExport>;
|
|
424
434
|
/**
|
|
425
435
|
* Enforce consistent indentation
|
|
426
436
|
* @see https://eslint.org/docs/latest/rules/indent
|
|
@@ -693,6 +703,11 @@ interface RuleOptions {
|
|
|
693
703
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-property-type.md#repos-sticky-header
|
|
694
704
|
*/
|
|
695
705
|
'jsdoc/require-property-type'?: Linter.RuleEntry<[]>;
|
|
706
|
+
/**
|
|
707
|
+
* Requires that Promise rejections are documented with `@rejects` tags.
|
|
708
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-rejects.md#repos-sticky-header
|
|
709
|
+
*/
|
|
710
|
+
'jsdoc/require-rejects'?: Linter.RuleEntry<JsdocRequireRejects>;
|
|
696
711
|
/**
|
|
697
712
|
* Requires that returns are documented with `@returns`.
|
|
698
713
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-returns.md#repos-sticky-header
|
|
@@ -2265,6 +2280,11 @@ interface RuleOptions {
|
|
|
2265
2280
|
* @see https://perfectionist.dev/rules/sort-enums
|
|
2266
2281
|
*/
|
|
2267
2282
|
'perfectionist/sort-enums'?: Linter.RuleEntry<PerfectionistSortEnums>;
|
|
2283
|
+
/**
|
|
2284
|
+
* Enforce sorted export attributes.
|
|
2285
|
+
* @see https://perfectionist.dev/rules/sort-export-attributes
|
|
2286
|
+
*/
|
|
2287
|
+
'perfectionist/sort-export-attributes'?: Linter.RuleEntry<PerfectionistSortExportAttributes>;
|
|
2268
2288
|
/**
|
|
2269
2289
|
* Enforce sorted exports.
|
|
2270
2290
|
* @see https://perfectionist.dev/rules/sort-exports
|
|
@@ -2275,6 +2295,11 @@ interface RuleOptions {
|
|
|
2275
2295
|
* @see https://perfectionist.dev/rules/sort-heritage-clauses
|
|
2276
2296
|
*/
|
|
2277
2297
|
'perfectionist/sort-heritage-clauses'?: Linter.RuleEntry<PerfectionistSortHeritageClauses>;
|
|
2298
|
+
/**
|
|
2299
|
+
* Enforce sorted import attributes.
|
|
2300
|
+
* @see https://perfectionist.dev/rules/sort-import-attributes
|
|
2301
|
+
*/
|
|
2302
|
+
'perfectionist/sort-import-attributes'?: Linter.RuleEntry<PerfectionistSortImportAttributes>;
|
|
2278
2303
|
/**
|
|
2279
2304
|
* Enforce sorted imports.
|
|
2280
2305
|
* @see https://perfectionist.dev/rules/sort-imports
|
|
@@ -2360,6 +2385,11 @@ interface RuleOptions {
|
|
|
2360
2385
|
* @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/json/json-valid-catalog.test.ts
|
|
2361
2386
|
*/
|
|
2362
2387
|
'pnpm/json-valid-catalog'?: Linter.RuleEntry<PnpmJsonValidCatalog>;
|
|
2388
|
+
/**
|
|
2389
|
+
* Enforce settings in `pnpm-workspace.yaml`
|
|
2390
|
+
* @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/yaml/yaml-enforce-settings.test.ts
|
|
2391
|
+
*/
|
|
2392
|
+
'pnpm/yaml-enforce-settings'?: Linter.RuleEntry<PnpmYamlEnforceSettings>;
|
|
2363
2393
|
/**
|
|
2364
2394
|
* Disallow duplicate catalog items in `pnpm-workspace.yaml`
|
|
2365
2395
|
* @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/yaml/yaml-no-duplicate-catalog-item.test.ts
|
|
@@ -2469,97 +2499,97 @@ interface RuleOptions {
|
|
|
2469
2499
|
*/
|
|
2470
2500
|
'radix'?: Linter.RuleEntry<Radix>;
|
|
2471
2501
|
/**
|
|
2472
|
-
*
|
|
2502
|
+
* Disallows 'dangerouslySetInnerHTML'.
|
|
2473
2503
|
* @see https://eslint-react.xyz/docs/rules/dom-no-dangerously-set-innerhtml
|
|
2474
2504
|
*/
|
|
2475
2505
|
'react-dom/no-dangerously-set-innerhtml'?: Linter.RuleEntry<[]>;
|
|
2476
2506
|
/**
|
|
2477
|
-
*
|
|
2507
|
+
* Disallows 'dangerouslySetInnerHTML' and 'children' at the same time.
|
|
2478
2508
|
* @see https://eslint-react.xyz/docs/rules/dom-no-dangerously-set-innerhtml-with-children
|
|
2479
2509
|
*/
|
|
2480
2510
|
'react-dom/no-dangerously-set-innerhtml-with-children'?: Linter.RuleEntry<[]>;
|
|
2481
2511
|
/**
|
|
2482
|
-
*
|
|
2512
|
+
* Disallows 'findDOMNode'.
|
|
2483
2513
|
* @see https://eslint-react.xyz/docs/rules/dom-no-find-dom-node
|
|
2484
2514
|
*/
|
|
2485
2515
|
'react-dom/no-find-dom-node'?: Linter.RuleEntry<[]>;
|
|
2486
2516
|
/**
|
|
2487
|
-
*
|
|
2517
|
+
* Disallows 'flushSync'.
|
|
2488
2518
|
* @see https://eslint-react.xyz/docs/rules/dom-no-flush-sync
|
|
2489
2519
|
*/
|
|
2490
2520
|
'react-dom/no-flush-sync'?: Linter.RuleEntry<[]>;
|
|
2491
2521
|
/**
|
|
2492
|
-
* Replaces
|
|
2522
|
+
* Replaces usage of 'ReactDom.hydrate()' with 'hydrateRoot()'.
|
|
2493
2523
|
* @see https://eslint-react.xyz/docs/rules/dom-no-hydrate
|
|
2494
2524
|
*/
|
|
2495
2525
|
'react-dom/no-hydrate'?: Linter.RuleEntry<[]>;
|
|
2496
2526
|
/**
|
|
2497
|
-
* Enforces explicit
|
|
2527
|
+
* Enforces explicit 'type' attribute for 'button' elements.
|
|
2498
2528
|
* @see https://eslint-react.xyz/docs/rules/dom-no-missing-button-type
|
|
2499
2529
|
*/
|
|
2500
2530
|
'react-dom/no-missing-button-type'?: Linter.RuleEntry<[]>;
|
|
2501
2531
|
/**
|
|
2502
|
-
* Enforces explicit
|
|
2532
|
+
* Enforces explicit 'sandbox' attribute for 'iframe' elements.
|
|
2503
2533
|
* @see https://eslint-react.xyz/docs/rules/dom-no-missing-iframe-sandbox
|
|
2504
2534
|
*/
|
|
2505
2535
|
'react-dom/no-missing-iframe-sandbox'?: Linter.RuleEntry<[]>;
|
|
2506
2536
|
/**
|
|
2507
|
-
* Enforces the absence of a
|
|
2537
|
+
* Enforces the absence of a 'namespace' in React elements.
|
|
2508
2538
|
* @see https://eslint-react.xyz/docs/rules/dom-no-namespace
|
|
2509
2539
|
*/
|
|
2510
2540
|
'react-dom/no-namespace'?: Linter.RuleEntry<[]>;
|
|
2511
2541
|
/**
|
|
2512
|
-
* Replaces
|
|
2542
|
+
* Replaces usage of 'ReactDom.render()' with 'createRoot(node).render()'.
|
|
2513
2543
|
* @see https://eslint-react.xyz/docs/rules/dom-no-render
|
|
2514
2544
|
*/
|
|
2515
2545
|
'react-dom/no-render'?: Linter.RuleEntry<[]>;
|
|
2516
2546
|
/**
|
|
2517
|
-
*
|
|
2547
|
+
* Disallows the return value of 'ReactDOM.render'.
|
|
2518
2548
|
* @see https://eslint-react.xyz/docs/rules/dom-no-render-return-value
|
|
2519
2549
|
*/
|
|
2520
2550
|
'react-dom/no-render-return-value'?: Linter.RuleEntry<[]>;
|
|
2521
2551
|
/**
|
|
2522
|
-
*
|
|
2552
|
+
* Disallows 'javascript:' URLs as attribute values.
|
|
2523
2553
|
* @see https://eslint-react.xyz/docs/rules/dom-no-script-url
|
|
2524
2554
|
*/
|
|
2525
2555
|
'react-dom/no-script-url'?: Linter.RuleEntry<[]>;
|
|
2526
2556
|
/**
|
|
2527
|
-
* Disallows the use of string style prop.
|
|
2557
|
+
* Disallows the use of string style prop in JSX. Use an object instead.
|
|
2528
2558
|
* @see https://eslint-react.xyz/docs/rules/dom-no-string-style-prop
|
|
2529
2559
|
*/
|
|
2530
2560
|
'react-dom/no-string-style-prop'?: Linter.RuleEntry<[]>;
|
|
2531
2561
|
/**
|
|
2532
|
-
*
|
|
2562
|
+
* Disallows unknown 'DOM' property.
|
|
2533
2563
|
* @see https://eslint-react.xyz/docs/rules/dom-no-unknown-property
|
|
2534
2564
|
*/
|
|
2535
2565
|
'react-dom/no-unknown-property'?: Linter.RuleEntry<ReactDomNoUnknownProperty>;
|
|
2536
2566
|
/**
|
|
2537
|
-
* Enforces
|
|
2567
|
+
* Enforces 'sandbox' attribute for 'iframe' elements is not set to unsafe combinations.
|
|
2538
2568
|
* @see https://eslint-react.xyz/docs/rules/dom-no-unsafe-iframe-sandbox
|
|
2539
2569
|
*/
|
|
2540
2570
|
'react-dom/no-unsafe-iframe-sandbox'?: Linter.RuleEntry<[]>;
|
|
2541
2571
|
/**
|
|
2542
|
-
*
|
|
2572
|
+
* Disallows 'target="_blank"' without 'rel="noreferrer noopener"'.
|
|
2543
2573
|
* @see https://eslint-react.xyz/docs/rules/dom-no-unsafe-target-blank
|
|
2544
2574
|
*/
|
|
2545
2575
|
'react-dom/no-unsafe-target-blank'?: Linter.RuleEntry<[]>;
|
|
2546
2576
|
/**
|
|
2547
|
-
* Replaces
|
|
2577
|
+
* Replaces usage of 'useFormState' with 'useActionState'.
|
|
2548
2578
|
* @see https://eslint-react.xyz/docs/rules/dom-no-use-form-state
|
|
2549
2579
|
*/
|
|
2550
2580
|
'react-dom/no-use-form-state'?: Linter.RuleEntry<[]>;
|
|
2551
2581
|
/**
|
|
2552
|
-
*
|
|
2582
|
+
* Disallows 'children' in void DOM elements.
|
|
2553
2583
|
* @see https://eslint-react.xyz/docs/rules/dom-no-void-elements-with-children
|
|
2554
2584
|
*/
|
|
2555
2585
|
'react-dom/no-void-elements-with-children'?: Linter.RuleEntry<[]>;
|
|
2556
2586
|
/**
|
|
2557
|
-
* Enforces React
|
|
2587
|
+
* Enforces React DOM is imported via a namespace import.
|
|
2558
2588
|
* @see https://eslint-react.xyz/docs/rules/dom-prefer-namespace-import
|
|
2559
2589
|
*/
|
|
2560
2590
|
'react-dom/prefer-namespace-import'?: Linter.RuleEntry<[]>;
|
|
2561
2591
|
/**
|
|
2562
|
-
*
|
|
2592
|
+
* Disallows **direct** calls to the 'set' function of 'useState' in 'useEffect'.
|
|
2563
2593
|
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-direct-set-state-in-use-effect
|
|
2564
2594
|
*/
|
|
2565
2595
|
'react-hooks-extra/no-direct-set-state-in-use-effect'?: Linter.RuleEntry<[]>;
|
|
@@ -2687,7 +2717,7 @@ interface RuleOptions {
|
|
|
2687
2717
|
*/
|
|
2688
2718
|
'react-naming-convention/component-name'?: Linter.RuleEntry<ReactNamingConventionComponentName>;
|
|
2689
2719
|
/**
|
|
2690
|
-
* Enforces context name to be a valid component name with the suffix
|
|
2720
|
+
* Enforces the context name to be a valid component name with the suffix 'Context'.
|
|
2691
2721
|
* @see https://eslint-react.xyz/docs/rules/naming-convention-context-name
|
|
2692
2722
|
*/
|
|
2693
2723
|
'react-naming-convention/context-name'?: Linter.RuleEntry<[]>;
|
|
@@ -2697,73 +2727,83 @@ interface RuleOptions {
|
|
|
2697
2727
|
*/
|
|
2698
2728
|
'react-naming-convention/filename'?: Linter.RuleEntry<ReactNamingConventionFilename>;
|
|
2699
2729
|
/**
|
|
2700
|
-
* Enforces consistent file
|
|
2730
|
+
* Enforces consistent use of the JSX file extension.
|
|
2701
2731
|
* @see https://eslint-react.xyz/docs/rules/naming-convention-filename-extension
|
|
2702
2732
|
*/
|
|
2703
2733
|
'react-naming-convention/filename-extension'?: Linter.RuleEntry<ReactNamingConventionFilenameExtension>;
|
|
2704
2734
|
/**
|
|
2705
|
-
* Enforces
|
|
2735
|
+
* Enforces that variables assigned from 'useRef' calls have names ending with 'Ref'.
|
|
2736
|
+
* @see https://eslint-react.xyz/docs/rules/naming-convention-ref-name
|
|
2737
|
+
*/
|
|
2738
|
+
'react-naming-convention/ref-name'?: Linter.RuleEntry<[]>;
|
|
2739
|
+
/**
|
|
2740
|
+
* Enforces destructuring and symmetric naming of the 'useState' hook value and setter.
|
|
2706
2741
|
* @see https://eslint-react.xyz/docs/rules/naming-convention-use-state
|
|
2707
2742
|
*/
|
|
2708
|
-
'react-naming-convention/use-state'?: Linter.RuleEntry<
|
|
2743
|
+
'react-naming-convention/use-state'?: Linter.RuleEntry<ReactNamingConventionUseState>;
|
|
2709
2744
|
'react-refresh/only-export-components'?: Linter.RuleEntry<ReactRefreshOnlyExportComponents>;
|
|
2710
2745
|
/**
|
|
2711
|
-
*
|
|
2746
|
+
* Enforces that every 'addEventListener' in a component or custom hook has a corresponding 'removeEventListener'.
|
|
2712
2747
|
* @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-event-listener
|
|
2713
2748
|
*/
|
|
2714
2749
|
'react-web-api/no-leaked-event-listener'?: Linter.RuleEntry<[]>;
|
|
2715
2750
|
/**
|
|
2716
|
-
*
|
|
2751
|
+
* Enforces that every 'setInterval' in a component or custom hook has a corresponding 'clearInterval'.
|
|
2717
2752
|
* @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-interval
|
|
2718
2753
|
*/
|
|
2719
2754
|
'react-web-api/no-leaked-interval'?: Linter.RuleEntry<[]>;
|
|
2720
2755
|
/**
|
|
2721
|
-
*
|
|
2756
|
+
* Enforces that every 'ResizeObserver' created in a component or custom hook has a corresponding 'ResizeObserver.disconnect()'.
|
|
2722
2757
|
* @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-resize-observer
|
|
2723
2758
|
*/
|
|
2724
2759
|
'react-web-api/no-leaked-resize-observer'?: Linter.RuleEntry<[]>;
|
|
2725
2760
|
/**
|
|
2726
|
-
*
|
|
2761
|
+
* Enforces that every 'setTimeout' in a component or custom hook has a corresponding 'clearTimeout'.
|
|
2727
2762
|
* @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-timeout
|
|
2728
2763
|
*/
|
|
2729
2764
|
'react-web-api/no-leaked-timeout'?: Linter.RuleEntry<[]>;
|
|
2765
|
+
/**
|
|
2766
|
+
* Prevents unnecessary dollar signs ('$') from being inserted before an expression in JSX.
|
|
2767
|
+
* @see https://eslint-react.xyz/docs/rules/jsx-dollar
|
|
2768
|
+
*/
|
|
2769
|
+
'react/jsx-dollar'?: Linter.RuleEntry<[]>;
|
|
2730
2770
|
/**
|
|
2731
2771
|
* Enforces that the 'key' prop is placed before the spread prop in JSX elements.
|
|
2732
2772
|
* @see https://eslint-react.xyz/docs/rules/jsx-key-before-spread
|
|
2733
2773
|
*/
|
|
2734
2774
|
'react/jsx-key-before-spread'?: Linter.RuleEntry<[]>;
|
|
2735
2775
|
/**
|
|
2736
|
-
* Prevents
|
|
2776
|
+
* Prevents comment strings (e.g., beginning with '//' or '/*') from being accidentally inserted into a JSX element's text nodes.
|
|
2737
2777
|
* @see https://eslint-react.xyz/docs/rules/jsx-no-comment-textnodes
|
|
2738
2778
|
*/
|
|
2739
2779
|
'react/jsx-no-comment-textnodes'?: Linter.RuleEntry<[]>;
|
|
2740
2780
|
/**
|
|
2741
|
-
*
|
|
2781
|
+
* Disallows duplicate props in JSX elements.
|
|
2742
2782
|
* @see https://eslint-react.xyz/docs/rules/jsx-no-duplicate-props
|
|
2743
2783
|
*/
|
|
2744
2784
|
'react/jsx-no-duplicate-props'?: Linter.RuleEntry<[]>;
|
|
2745
2785
|
/**
|
|
2746
|
-
* Disallows 'IIFE' in JSX
|
|
2786
|
+
* Disallows 'IIFE' in JSX.
|
|
2747
2787
|
* @see https://eslint-react.xyz/docs/rules/jsx-no-iife
|
|
2748
2788
|
*/
|
|
2749
2789
|
'react/jsx-no-iife'?: Linter.RuleEntry<[]>;
|
|
2750
2790
|
/**
|
|
2751
|
-
*
|
|
2791
|
+
* Prevents using variables in JSX that are not defined in the scope.
|
|
2752
2792
|
* @see https://eslint-react.xyz/docs/rules/jsx-no-undef
|
|
2753
2793
|
*/
|
|
2754
2794
|
'react/jsx-no-undef'?: Linter.RuleEntry<[]>;
|
|
2755
2795
|
/**
|
|
2756
|
-
* Enforces shorthand syntax for boolean attributes.
|
|
2796
|
+
* Enforces the use of shorthand syntax for boolean attributes.
|
|
2757
2797
|
* @see https://eslint-react.xyz/docs/rules/jsx-shorthand-boolean
|
|
2758
2798
|
*/
|
|
2759
2799
|
'react/jsx-shorthand-boolean'?: Linter.RuleEntry<ReactJsxShorthandBoolean>;
|
|
2760
2800
|
/**
|
|
2761
|
-
* Enforces shorthand syntax for fragments.
|
|
2801
|
+
* Enforces the use of shorthand syntax for fragments.
|
|
2762
2802
|
* @see https://eslint-react.xyz/docs/rules/jsx-shorthand-fragment
|
|
2763
2803
|
*/
|
|
2764
2804
|
'react/jsx-shorthand-fragment'?: Linter.RuleEntry<ReactJsxShorthandFragment>;
|
|
2765
2805
|
/**
|
|
2766
|
-
* Marks React variables as used when JSX is
|
|
2806
|
+
* Marks React variables as used when JSX is present.
|
|
2767
2807
|
* @see https://eslint-react.xyz/docs/rules/jsx-uses-react
|
|
2768
2808
|
*/
|
|
2769
2809
|
'react/jsx-uses-react'?: Linter.RuleEntry<[]>;
|
|
@@ -2773,107 +2813,108 @@ interface RuleOptions {
|
|
|
2773
2813
|
*/
|
|
2774
2814
|
'react/jsx-uses-vars'?: Linter.RuleEntry<[]>;
|
|
2775
2815
|
/**
|
|
2776
|
-
*
|
|
2816
|
+
* Disallows accessing 'this.state' inside 'setState' calls.
|
|
2777
2817
|
* @see https://eslint-react.xyz/docs/rules/no-access-state-in-setstate
|
|
2778
2818
|
*/
|
|
2779
2819
|
'react/no-access-state-in-setstate'?: Linter.RuleEntry<[]>;
|
|
2780
2820
|
/**
|
|
2781
|
-
*
|
|
2821
|
+
* Disallows using an item's index in the array as its key.
|
|
2782
2822
|
* @see https://eslint-react.xyz/docs/rules/no-array-index-key
|
|
2783
2823
|
*/
|
|
2784
2824
|
'react/no-array-index-key'?: Linter.RuleEntry<[]>;
|
|
2785
2825
|
/**
|
|
2786
|
-
*
|
|
2826
|
+
* Disallows the use of 'Children.count' from the 'react' package.
|
|
2787
2827
|
* @see https://eslint-react.xyz/docs/rules/no-children-count
|
|
2788
2828
|
*/
|
|
2789
2829
|
'react/no-children-count'?: Linter.RuleEntry<[]>;
|
|
2790
2830
|
/**
|
|
2791
|
-
*
|
|
2831
|
+
* Disallows the use of 'Children.forEach' from the 'react' package.
|
|
2792
2832
|
* @see https://eslint-react.xyz/docs/rules/no-children-for-each
|
|
2793
2833
|
*/
|
|
2794
2834
|
'react/no-children-for-each'?: Linter.RuleEntry<[]>;
|
|
2795
2835
|
/**
|
|
2796
|
-
*
|
|
2836
|
+
* Disallows the use of 'Children.map' from the 'react' package.
|
|
2797
2837
|
* @see https://eslint-react.xyz/docs/rules/no-children-map
|
|
2798
2838
|
*/
|
|
2799
2839
|
'react/no-children-map'?: Linter.RuleEntry<[]>;
|
|
2800
2840
|
/**
|
|
2801
|
-
*
|
|
2841
|
+
* Disallows the use of 'Children.only' from the 'react' package.
|
|
2802
2842
|
* @see https://eslint-react.xyz/docs/rules/no-children-only
|
|
2803
2843
|
*/
|
|
2804
2844
|
'react/no-children-only'?: Linter.RuleEntry<[]>;
|
|
2805
2845
|
/**
|
|
2806
|
-
*
|
|
2846
|
+
* Disallows passing 'children' as a prop.
|
|
2807
2847
|
* @see https://eslint-react.xyz/docs/rules/no-children-prop
|
|
2808
2848
|
*/
|
|
2809
2849
|
'react/no-children-prop'?: Linter.RuleEntry<[]>;
|
|
2810
2850
|
/**
|
|
2811
|
-
*
|
|
2851
|
+
* Disallows the use of 'Children.toArray' from the 'react' package.
|
|
2812
2852
|
* @see https://eslint-react.xyz/docs/rules/no-children-to-array
|
|
2813
2853
|
*/
|
|
2814
2854
|
'react/no-children-to-array'?: Linter.RuleEntry<[]>;
|
|
2815
2855
|
/**
|
|
2816
|
-
*
|
|
2856
|
+
* Disallows class components except for error boundaries.
|
|
2817
2857
|
* @see https://eslint-react.xyz/docs/rules/no-class-component
|
|
2818
2858
|
*/
|
|
2819
2859
|
'react/no-class-component'?: Linter.RuleEntry<[]>;
|
|
2820
2860
|
/**
|
|
2821
|
-
*
|
|
2861
|
+
* Disallows 'cloneElement'.
|
|
2822
2862
|
* @see https://eslint-react.xyz/docs/rules/no-clone-element
|
|
2823
2863
|
*/
|
|
2824
2864
|
'react/no-clone-element'?: Linter.RuleEntry<[]>;
|
|
2825
2865
|
/**
|
|
2826
|
-
*
|
|
2866
|
+
* Replaces usage of 'componentWillMount' with 'UNSAFE_componentWillMount'.
|
|
2827
2867
|
* @see https://eslint-react.xyz/docs/rules/no-component-will-mount
|
|
2828
2868
|
*/
|
|
2829
2869
|
'react/no-component-will-mount'?: Linter.RuleEntry<[]>;
|
|
2830
2870
|
/**
|
|
2831
|
-
*
|
|
2871
|
+
* Replaces usage of 'componentWillReceiveProps' with 'UNSAFE_componentWillReceiveProps'.
|
|
2832
2872
|
* @see https://eslint-react.xyz/docs/rules/no-component-will-receive-props
|
|
2833
2873
|
*/
|
|
2834
2874
|
'react/no-component-will-receive-props'?: Linter.RuleEntry<[]>;
|
|
2835
2875
|
/**
|
|
2836
|
-
*
|
|
2876
|
+
* Replaces usage of 'componentWillUpdate' with 'UNSAFE_componentWillUpdate'.
|
|
2837
2877
|
* @see https://eslint-react.xyz/docs/rules/no-component-will-update
|
|
2838
2878
|
*/
|
|
2839
2879
|
'react/no-component-will-update'?: Linter.RuleEntry<[]>;
|
|
2840
2880
|
/**
|
|
2841
|
-
*
|
|
2881
|
+
* Replaces usage of '<Context.Provider>' with '<Context>'.
|
|
2842
2882
|
* @see https://eslint-react.xyz/docs/rules/no-context-provider
|
|
2843
2883
|
*/
|
|
2844
2884
|
'react/no-context-provider'?: Linter.RuleEntry<[]>;
|
|
2845
2885
|
/**
|
|
2846
|
-
*
|
|
2886
|
+
* Disallows 'createRef' in function components.
|
|
2847
2887
|
* @see https://eslint-react.xyz/docs/rules/no-create-ref
|
|
2848
2888
|
*/
|
|
2849
2889
|
'react/no-create-ref'?: Linter.RuleEntry<[]>;
|
|
2850
2890
|
/**
|
|
2851
|
-
*
|
|
2891
|
+
* Disallows the 'defaultProps' property in favor of ES6 default parameters.
|
|
2852
2892
|
* @see https://eslint-react.xyz/docs/rules/no-default-props
|
|
2853
2893
|
*/
|
|
2854
2894
|
'react/no-default-props'?: Linter.RuleEntry<[]>;
|
|
2855
2895
|
/**
|
|
2856
|
-
*
|
|
2896
|
+
* Disallows direct mutation of 'this.state'.
|
|
2857
2897
|
* @see https://eslint-react.xyz/docs/rules/no-direct-mutation-state
|
|
2858
2898
|
*/
|
|
2859
2899
|
'react/no-direct-mutation-state'?: Linter.RuleEntry<[]>;
|
|
2860
2900
|
/**
|
|
2861
|
-
*
|
|
2901
|
+
* Disallows duplicate 'key' on elements in the same array or a list of 'children'.
|
|
2862
2902
|
* @see https://eslint-react.xyz/docs/rules/no-duplicate-key
|
|
2863
2903
|
*/
|
|
2864
2904
|
'react/no-duplicate-key'?: Linter.RuleEntry<[]>;
|
|
2865
2905
|
/**
|
|
2866
|
-
*
|
|
2906
|
+
* Disallows certain props on components.
|
|
2867
2907
|
* @see https://eslint-react.xyz/docs/rules/no-forbidden-props
|
|
2908
|
+
* @deprecated
|
|
2868
2909
|
*/
|
|
2869
2910
|
'react/no-forbidden-props'?: Linter.RuleEntry<ReactNoForbiddenProps>;
|
|
2870
2911
|
/**
|
|
2871
|
-
* Replaces
|
|
2912
|
+
* Replaces usage of 'forwardRef' with passing 'ref' as a prop.
|
|
2872
2913
|
* @see https://eslint-react.xyz/docs/rules/no-forward-ref
|
|
2873
2914
|
*/
|
|
2874
2915
|
'react/no-forward-ref'?: Linter.RuleEntry<[]>;
|
|
2875
2916
|
/**
|
|
2876
|
-
* Prevents
|
|
2917
|
+
* Prevents 'key' from not being explicitly specified (e.g., spreading 'key' from objects).
|
|
2877
2918
|
* @see https://eslint-react.xyz/docs/rules/no-implicit-key
|
|
2878
2919
|
*/
|
|
2879
2920
|
'react/no-implicit-key'?: Linter.RuleEntry<[]>;
|
|
@@ -2883,57 +2924,57 @@ interface RuleOptions {
|
|
|
2883
2924
|
*/
|
|
2884
2925
|
'react/no-leaked-conditional-rendering'?: Linter.RuleEntry<[]>;
|
|
2885
2926
|
/**
|
|
2886
|
-
* Enforces that all components have a
|
|
2927
|
+
* Enforces that all components have a 'displayName' that can be used in devtools.
|
|
2887
2928
|
* @see https://eslint-react.xyz/docs/rules/no-missing-component-display-name
|
|
2888
2929
|
*/
|
|
2889
2930
|
'react/no-missing-component-display-name'?: Linter.RuleEntry<[]>;
|
|
2890
2931
|
/**
|
|
2891
|
-
* Enforces that all contexts have a
|
|
2932
|
+
* Enforces that all contexts have a 'displayName' that can be used in devtools.
|
|
2892
2933
|
* @see https://eslint-react.xyz/docs/rules/no-missing-context-display-name
|
|
2893
2934
|
*/
|
|
2894
2935
|
'react/no-missing-context-display-name'?: Linter.RuleEntry<[]>;
|
|
2895
2936
|
/**
|
|
2896
|
-
*
|
|
2937
|
+
* Disallows missing 'key' on items in list rendering.
|
|
2897
2938
|
* @see https://eslint-react.xyz/docs/rules/no-missing-key
|
|
2898
2939
|
*/
|
|
2899
2940
|
'react/no-missing-key'?: Linter.RuleEntry<[]>;
|
|
2900
2941
|
/**
|
|
2901
|
-
* Prevents incorrect usage of
|
|
2942
|
+
* Prevents incorrect usage of 'captureOwnerStack'.
|
|
2902
2943
|
* @see https://eslint-react.xyz/docs/rules/no-misused-capture-owner-stack
|
|
2903
2944
|
*/
|
|
2904
2945
|
'react/no-misused-capture-owner-stack'?: Linter.RuleEntry<[]>;
|
|
2905
2946
|
/**
|
|
2906
|
-
*
|
|
2947
|
+
* Disallows nesting component definitions inside other components.
|
|
2907
2948
|
* @see https://eslint-react.xyz/docs/rules/no-nested-component-definitions
|
|
2908
2949
|
*/
|
|
2909
2950
|
'react/no-nested-component-definitions'?: Linter.RuleEntry<[]>;
|
|
2910
2951
|
/**
|
|
2911
|
-
*
|
|
2952
|
+
* Disallows nesting lazy component declarations inside other components.
|
|
2912
2953
|
* @see https://eslint-react.xyz/docs/rules/no-nested-lazy-component-declarations
|
|
2913
2954
|
*/
|
|
2914
2955
|
'react/no-nested-lazy-component-declarations'?: Linter.RuleEntry<[]>;
|
|
2915
2956
|
/**
|
|
2916
|
-
*
|
|
2957
|
+
* Disallows 'propTypes' in favor of TypeScript or another type-checking solution.
|
|
2917
2958
|
* @see https://eslint-react.xyz/docs/rules/no-prop-types
|
|
2918
2959
|
*/
|
|
2919
2960
|
'react/no-prop-types'?: Linter.RuleEntry<[]>;
|
|
2920
2961
|
/**
|
|
2921
|
-
*
|
|
2962
|
+
* Disallows 'shouldComponentUpdate' when extending 'React.PureComponent'.
|
|
2922
2963
|
* @see https://eslint-react.xyz/docs/rules/no-redundant-should-component-update
|
|
2923
2964
|
*/
|
|
2924
2965
|
'react/no-redundant-should-component-update'?: Linter.RuleEntry<[]>;
|
|
2925
2966
|
/**
|
|
2926
|
-
*
|
|
2967
|
+
* Disallows calling 'this.setState' in 'componentDidMount' outside functions such as callbacks.
|
|
2927
2968
|
* @see https://eslint-react.xyz/docs/rules/no-set-state-in-component-did-mount
|
|
2928
2969
|
*/
|
|
2929
2970
|
'react/no-set-state-in-component-did-mount'?: Linter.RuleEntry<[]>;
|
|
2930
2971
|
/**
|
|
2931
|
-
*
|
|
2972
|
+
* Disallows calling 'this.setState' in 'componentDidUpdate' outside functions such as callbacks.
|
|
2932
2973
|
* @see https://eslint-react.xyz/docs/rules/no-set-state-in-component-did-update
|
|
2933
2974
|
*/
|
|
2934
2975
|
'react/no-set-state-in-component-did-update'?: Linter.RuleEntry<[]>;
|
|
2935
2976
|
/**
|
|
2936
|
-
*
|
|
2977
|
+
* Disallows calling 'this.setState' in 'componentWillUpdate' outside functions such as callbacks.
|
|
2937
2978
|
* @see https://eslint-react.xyz/docs/rules/no-set-state-in-component-will-update
|
|
2938
2979
|
*/
|
|
2939
2980
|
'react/no-set-state-in-component-will-update'?: Linter.RuleEntry<[]>;
|
|
@@ -2943,42 +2984,42 @@ interface RuleOptions {
|
|
|
2943
2984
|
*/
|
|
2944
2985
|
'react/no-string-refs'?: Linter.RuleEntry<[]>;
|
|
2945
2986
|
/**
|
|
2946
|
-
* Prevents
|
|
2987
|
+
* Prevents 'key' from being placed on non-top-level elements in list rendering.
|
|
2947
2988
|
* @see https://eslint-react.xyz/docs/rules/no-unnecessary-key
|
|
2948
2989
|
*/
|
|
2949
2990
|
'react/no-unnecessary-key'?: Linter.RuleEntry<[]>;
|
|
2950
2991
|
/**
|
|
2951
|
-
*
|
|
2992
|
+
* Disallows unnecessary usage of 'useCallback'.
|
|
2952
2993
|
* @see https://eslint-react.xyz/docs/rules/no-unnecessary-use-callback
|
|
2953
2994
|
*/
|
|
2954
2995
|
'react/no-unnecessary-use-callback'?: Linter.RuleEntry<[]>;
|
|
2955
2996
|
/**
|
|
2956
|
-
*
|
|
2997
|
+
* Disallows unnecessary usage of 'useMemo'.
|
|
2957
2998
|
* @see https://eslint-react.xyz/docs/rules/no-unnecessary-use-memo
|
|
2958
2999
|
*/
|
|
2959
3000
|
'react/no-unnecessary-use-memo'?: Linter.RuleEntry<[]>;
|
|
2960
3001
|
/**
|
|
2961
|
-
* Enforces that a function with the
|
|
3002
|
+
* Enforces that a function with the 'use' prefix uses at least one Hook inside it.
|
|
2962
3003
|
* @see https://eslint-react.xyz/docs/rules/no-unnecessary-use-prefix
|
|
2963
3004
|
*/
|
|
2964
3005
|
'react/no-unnecessary-use-prefix'?: Linter.RuleEntry<[]>;
|
|
2965
3006
|
/**
|
|
2966
|
-
* Warns the
|
|
3007
|
+
* Warns about the use of 'UNSAFE_componentWillMount' in class components.
|
|
2967
3008
|
* @see https://eslint-react.xyz/docs/rules/no-unsafe-component-will-mount
|
|
2968
3009
|
*/
|
|
2969
3010
|
'react/no-unsafe-component-will-mount'?: Linter.RuleEntry<[]>;
|
|
2970
3011
|
/**
|
|
2971
|
-
* Warns the
|
|
3012
|
+
* Warns about the use of 'UNSAFE_componentWillReceiveProps' in class components.
|
|
2972
3013
|
* @see https://eslint-react.xyz/docs/rules/no-unsafe-component-will-receive-props
|
|
2973
3014
|
*/
|
|
2974
3015
|
'react/no-unsafe-component-will-receive-props'?: Linter.RuleEntry<[]>;
|
|
2975
3016
|
/**
|
|
2976
|
-
* Warns the
|
|
3017
|
+
* Warns about the use of 'UNSAFE_componentWillUpdate' in class components.
|
|
2977
3018
|
* @see https://eslint-react.xyz/docs/rules/no-unsafe-component-will-update
|
|
2978
3019
|
*/
|
|
2979
3020
|
'react/no-unsafe-component-will-update'?: Linter.RuleEntry<[]>;
|
|
2980
3021
|
/**
|
|
2981
|
-
* Prevents non-stable values (i.e
|
|
3022
|
+
* Prevents non-stable values (i.e., object literals) from being used as a value for 'Context.Provider'.
|
|
2982
3023
|
* @see https://eslint-react.xyz/docs/rules/no-unstable-context-value
|
|
2983
3024
|
*/
|
|
2984
3025
|
'react/no-unstable-context-value'?: Linter.RuleEntry<[]>;
|
|
@@ -2986,34 +3027,34 @@ interface RuleOptions {
|
|
|
2986
3027
|
* Prevents using referential-type values as default props in object destructuring.
|
|
2987
3028
|
* @see https://eslint-react.xyz/docs/rules/no-unstable-default-props
|
|
2988
3029
|
*/
|
|
2989
|
-
'react/no-unstable-default-props'?: Linter.RuleEntry<
|
|
3030
|
+
'react/no-unstable-default-props'?: Linter.RuleEntry<ReactNoUnstableDefaultProps>;
|
|
2990
3031
|
/**
|
|
2991
|
-
* Warns unused class component methods and properties.
|
|
3032
|
+
* Warns about unused class component methods and properties.
|
|
2992
3033
|
* @see https://eslint-react.xyz/docs/rules/no-unused-class-component-members
|
|
2993
3034
|
*/
|
|
2994
3035
|
'react/no-unused-class-component-members'?: Linter.RuleEntry<[]>;
|
|
2995
3036
|
/**
|
|
2996
|
-
* Warns component props that are defined but never used.
|
|
3037
|
+
* Warns about component props that are defined but never used.
|
|
2997
3038
|
* @see https://eslint-react.xyz/docs/rules/no-unused-props
|
|
2998
3039
|
*/
|
|
2999
3040
|
'react/no-unused-props'?: Linter.RuleEntry<[]>;
|
|
3000
3041
|
/**
|
|
3001
|
-
* Warns unused class component state.
|
|
3042
|
+
* Warns about unused class component state.
|
|
3002
3043
|
* @see https://eslint-react.xyz/docs/rules/no-unused-state
|
|
3003
3044
|
*/
|
|
3004
3045
|
'react/no-unused-state'?: Linter.RuleEntry<[]>;
|
|
3005
3046
|
/**
|
|
3006
|
-
* Replaces
|
|
3047
|
+
* Replaces usage of 'useContext' with 'use'.
|
|
3007
3048
|
* @see https://eslint-react.xyz/docs/rules/no-use-context
|
|
3008
3049
|
*/
|
|
3009
3050
|
'react/no-use-context'?: Linter.RuleEntry<[]>;
|
|
3010
3051
|
/**
|
|
3011
|
-
*
|
|
3052
|
+
* Disallows useless 'forwardRef' calls on components that don't use 'ref's.
|
|
3012
3053
|
* @see https://eslint-react.xyz/docs/rules/no-useless-forward-ref
|
|
3013
3054
|
*/
|
|
3014
3055
|
'react/no-useless-forward-ref'?: Linter.RuleEntry<[]>;
|
|
3015
3056
|
/**
|
|
3016
|
-
*
|
|
3057
|
+
* Disallows useless fragment elements.
|
|
3017
3058
|
* @see https://eslint-react.xyz/docs/rules/no-useless-fragment
|
|
3018
3059
|
*/
|
|
3019
3060
|
'react/no-useless-fragment'?: Linter.RuleEntry<ReactNoUselessFragment>;
|
|
@@ -3023,7 +3064,7 @@ interface RuleOptions {
|
|
|
3023
3064
|
*/
|
|
3024
3065
|
'react/prefer-destructuring-assignment'?: Linter.RuleEntry<[]>;
|
|
3025
3066
|
/**
|
|
3026
|
-
* Enforces React
|
|
3067
|
+
* Enforces importing React via a namespace import.
|
|
3027
3068
|
* @see https://eslint-react.xyz/docs/rules/prefer-namespace-import
|
|
3028
3069
|
*/
|
|
3029
3070
|
'react/prefer-namespace-import'?: Linter.RuleEntry<[]>;
|
|
@@ -3033,7 +3074,7 @@ interface RuleOptions {
|
|
|
3033
3074
|
*/
|
|
3034
3075
|
'react/prefer-read-only-props'?: Linter.RuleEntry<[]>;
|
|
3035
3076
|
/**
|
|
3036
|
-
* Enforces function calls made inside
|
|
3077
|
+
* Enforces wrapping function calls made inside 'useState' in an 'initializer function'.
|
|
3037
3078
|
* @see https://eslint-react.xyz/docs/rules/prefer-use-state-lazy-initialization
|
|
3038
3079
|
*/
|
|
3039
3080
|
'react/prefer-use-state-lazy-initialization'?: Linter.RuleEntry<[]>;
|
|
@@ -4009,6 +4050,11 @@ interface RuleOptions {
|
|
|
4009
4050
|
* @deprecated
|
|
4010
4051
|
*/
|
|
4011
4052
|
'template-tag-spacing'?: Linter.RuleEntry<TemplateTagSpacing>;
|
|
4053
|
+
/**
|
|
4054
|
+
* enforce using `.each` or `.for` consistently
|
|
4055
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/consistent-each-for.md
|
|
4056
|
+
*/
|
|
4057
|
+
'test/consistent-each-for'?: Linter.RuleEntry<TestConsistentEachFor>;
|
|
4012
4058
|
/**
|
|
4013
4059
|
* require test file pattern
|
|
4014
4060
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/consistent-test-filename.md
|
|
@@ -4058,7 +4104,7 @@ interface RuleOptions {
|
|
|
4058
4104
|
* disallow conditional expects
|
|
4059
4105
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-conditional-expect.md
|
|
4060
4106
|
*/
|
|
4061
|
-
'test/no-conditional-expect'?: Linter.RuleEntry<
|
|
4107
|
+
'test/no-conditional-expect'?: Linter.RuleEntry<TestNoConditionalExpect>;
|
|
4062
4108
|
/**
|
|
4063
4109
|
* disallow conditional tests
|
|
4064
4110
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-conditional-in-test.md
|
|
@@ -4155,6 +4201,11 @@ interface RuleOptions {
|
|
|
4155
4201
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-test-return-statement.md
|
|
4156
4202
|
*/
|
|
4157
4203
|
'test/no-test-return-statement'?: Linter.RuleEntry<[]>;
|
|
4204
|
+
/**
|
|
4205
|
+
* Disallow unnecessary async function wrapper for expected promises
|
|
4206
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-unneeded-async-expect-function.md
|
|
4207
|
+
*/
|
|
4208
|
+
'test/no-unneeded-async-expect-function'?: Linter.RuleEntry<[]>;
|
|
4158
4209
|
/**
|
|
4159
4210
|
* Enforce padding around `afterAll` blocks
|
|
4160
4211
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/padding-around-after-all-blocks.md
|
|
@@ -4231,7 +4282,7 @@ interface RuleOptions {
|
|
|
4231
4282
|
*/
|
|
4232
4283
|
'test/prefer-each'?: Linter.RuleEntry<[]>;
|
|
4233
4284
|
/**
|
|
4234
|
-
* enforce using the built-in
|
|
4285
|
+
* enforce using the built-in equality matchers
|
|
4235
4286
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-equality-matcher.md
|
|
4236
4287
|
*/
|
|
4237
4288
|
'test/prefer-equality-matcher'?: Linter.RuleEntry<[]>;
|
|
@@ -4264,7 +4315,7 @@ interface RuleOptions {
|
|
|
4264
4315
|
* prefer dynamic import in mock
|
|
4265
4316
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-import-in-mock.md
|
|
4266
4317
|
*/
|
|
4267
|
-
'test/prefer-import-in-mock'?: Linter.RuleEntry<
|
|
4318
|
+
'test/prefer-import-in-mock'?: Linter.RuleEntry<TestPreferImportInMock>;
|
|
4268
4319
|
/**
|
|
4269
4320
|
* enforce importing Vitest globals
|
|
4270
4321
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-importing-vitest-globals.md
|
|
@@ -4280,6 +4331,11 @@ interface RuleOptions {
|
|
|
4280
4331
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-mock-promise-shorthand.md
|
|
4281
4332
|
*/
|
|
4282
4333
|
'test/prefer-mock-promise-shorthand'?: Linter.RuleEntry<[]>;
|
|
4334
|
+
/**
|
|
4335
|
+
* Prefer mock return shorthands
|
|
4336
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-mock-return-shorthand.md
|
|
4337
|
+
*/
|
|
4338
|
+
'test/prefer-mock-return-shorthand'?: Linter.RuleEntry<[]>;
|
|
4283
4339
|
/**
|
|
4284
4340
|
* enforce including a hint with external snapshots
|
|
4285
4341
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-snapshot-hint.md
|
|
@@ -4325,6 +4381,11 @@ interface RuleOptions {
|
|
|
4325
4381
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-contain.md
|
|
4326
4382
|
*/
|
|
4327
4383
|
'test/prefer-to-contain'?: Linter.RuleEntry<[]>;
|
|
4384
|
+
/**
|
|
4385
|
+
* Suggest using `toHaveBeenCalledTimes()`
|
|
4386
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-have-been-called-times.md
|
|
4387
|
+
*/
|
|
4388
|
+
'test/prefer-to-have-been-called-times'?: Linter.RuleEntry<[]>;
|
|
4328
4389
|
/**
|
|
4329
4390
|
* enforce using toHaveLength()
|
|
4330
4391
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-have-length.md
|
|
@@ -4340,6 +4401,11 @@ interface RuleOptions {
|
|
|
4340
4401
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-vi-mocked.md
|
|
4341
4402
|
*/
|
|
4342
4403
|
'test/prefer-vi-mocked'?: Linter.RuleEntry<[]>;
|
|
4404
|
+
/**
|
|
4405
|
+
* ensure that every `expect.poll` call is awaited
|
|
4406
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-awaited-expect-poll.md
|
|
4407
|
+
*/
|
|
4408
|
+
'test/require-awaited-expect-poll'?: Linter.RuleEntry<[]>;
|
|
4343
4409
|
/**
|
|
4344
4410
|
* require setup and teardown to be within a hook
|
|
4345
4411
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-hook.md
|
|
@@ -4833,6 +4899,11 @@ interface RuleOptions {
|
|
|
4833
4899
|
* @see https://typescript-eslint.io/rules/no-unused-expressions
|
|
4834
4900
|
*/
|
|
4835
4901
|
'ts/no-unused-expressions'?: Linter.RuleEntry<TsNoUnusedExpressions>;
|
|
4902
|
+
/**
|
|
4903
|
+
* Disallow unused private class members
|
|
4904
|
+
* @see https://typescript-eslint.io/rules/no-unused-private-class-members
|
|
4905
|
+
*/
|
|
4906
|
+
'ts/no-unused-private-class-members'?: Linter.RuleEntry<[]>;
|
|
4836
4907
|
/**
|
|
4837
4908
|
* Disallow unused variables
|
|
4838
4909
|
* @see https://typescript-eslint.io/rules/no-unused-vars
|
|
@@ -4848,6 +4919,11 @@ interface RuleOptions {
|
|
|
4848
4919
|
* @see https://typescript-eslint.io/rules/no-useless-constructor
|
|
4849
4920
|
*/
|
|
4850
4921
|
'ts/no-useless-constructor'?: Linter.RuleEntry<[]>;
|
|
4922
|
+
/**
|
|
4923
|
+
* Disallow default values that will never be used
|
|
4924
|
+
* @see https://typescript-eslint.io/rules/no-useless-default-assignment
|
|
4925
|
+
*/
|
|
4926
|
+
'ts/no-useless-default-assignment'?: Linter.RuleEntry<[]>;
|
|
4851
4927
|
/**
|
|
4852
4928
|
* Disallow empty exports that don't change anything in a module file
|
|
4853
4929
|
* @see https://typescript-eslint.io/rules/no-useless-empty-export
|
|
@@ -6280,6 +6356,11 @@ interface RuleOptions {
|
|
|
6280
6356
|
* @see https://eslint.vuejs.org/rules/no-duplicate-attributes.html
|
|
6281
6357
|
*/
|
|
6282
6358
|
'vue/no-duplicate-attributes'?: Linter.RuleEntry<VueNoDuplicateAttributes>;
|
|
6359
|
+
/**
|
|
6360
|
+
* disallow duplication of class names in class attributes
|
|
6361
|
+
* @see https://eslint.vuejs.org/rules/no-duplicate-class-names.html
|
|
6362
|
+
*/
|
|
6363
|
+
'vue/no-duplicate-class-names'?: Linter.RuleEntry<[]>;
|
|
6283
6364
|
/**
|
|
6284
6365
|
* disallow the `<template>` `<script>` `<style>` block to be empty
|
|
6285
6366
|
* @see https://eslint.vuejs.org/rules/no-empty-component-block.html
|
|
@@ -7370,6 +7451,10 @@ type ImportNewlineAfterImport = [] | [{
|
|
|
7370
7451
|
type ImportNoDuplicates = [] | [{
|
|
7371
7452
|
"prefer-inline"?: boolean;
|
|
7372
7453
|
}];
|
|
7454
|
+
// ----- import/prefer-default-export -----
|
|
7455
|
+
type ImportPreferDefaultExport = [] | [{
|
|
7456
|
+
target?: ("single" | "any");
|
|
7457
|
+
}];
|
|
7373
7458
|
// ----- indent -----
|
|
7374
7459
|
type Indent = [] | [("tab" | number)] | [("tab" | number), {
|
|
7375
7460
|
SwitchCase?: number;
|
|
@@ -7462,6 +7547,7 @@ type JsdocCheckExamples = [] | [{
|
|
|
7462
7547
|
}];
|
|
7463
7548
|
// ----- jsdoc/check-indentation -----
|
|
7464
7549
|
type JsdocCheckIndentation = [] | [{
|
|
7550
|
+
allowIndentedSections?: boolean;
|
|
7465
7551
|
excludeTags?: string[];
|
|
7466
7552
|
}];
|
|
7467
7553
|
// ----- jsdoc/check-line-alignment -----
|
|
@@ -7808,6 +7894,14 @@ type JsdocRequireParamType = [] | [{
|
|
|
7808
7894
|
defaultDestructuredRootType?: string;
|
|
7809
7895
|
setDefaultDestructuredRootType?: boolean;
|
|
7810
7896
|
}];
|
|
7897
|
+
// ----- jsdoc/require-rejects -----
|
|
7898
|
+
type JsdocRequireRejects = [] | [{
|
|
7899
|
+
contexts?: (string | {
|
|
7900
|
+
comment?: string;
|
|
7901
|
+
context?: string;
|
|
7902
|
+
})[];
|
|
7903
|
+
exemptedBy?: string[];
|
|
7904
|
+
}];
|
|
7811
7905
|
// ----- jsdoc/require-returns -----
|
|
7812
7906
|
type JsdocRequireReturns = [] | [{
|
|
7813
7907
|
checkConstructors?: boolean;
|
|
@@ -7898,6 +7992,9 @@ type JsdocSortTags = [] | [{
|
|
|
7898
7992
|
linesBetween?: number;
|
|
7899
7993
|
reportIntraTagGroupSpacing?: boolean;
|
|
7900
7994
|
reportTagGroupSpacing?: boolean;
|
|
7995
|
+
tagExceptions?: {
|
|
7996
|
+
[k: string]: number;
|
|
7997
|
+
};
|
|
7901
7998
|
tagSequence?: {
|
|
7902
7999
|
tags?: string[];
|
|
7903
8000
|
}[];
|
|
@@ -9511,27 +9608,34 @@ type PaddingLineBetweenStatements = {
|
|
|
9511
9608
|
// ----- perfectionist/sort-array-includes -----
|
|
9512
9609
|
type PerfectionistSortArrayIncludes = {
|
|
9513
9610
|
fallbackSort?: {
|
|
9611
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
9514
9612
|
order?: ("asc" | "desc");
|
|
9515
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9516
9613
|
};
|
|
9614
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
9517
9615
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
9518
9616
|
ignoreCase?: boolean;
|
|
9519
9617
|
alphabet?: string;
|
|
9520
9618
|
locales?: (string | string[]);
|
|
9521
9619
|
order?: ("asc" | "desc");
|
|
9522
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9523
|
-
groupKind?: ("mixed" | "literals-first" | "spreads-first");
|
|
9524
9620
|
customGroups?: ({
|
|
9525
|
-
newlinesInside?: (("always" | "never") | number);
|
|
9526
9621
|
fallbackSort?: {
|
|
9622
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
9527
9623
|
order?: ("asc" | "desc");
|
|
9528
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9529
9624
|
};
|
|
9625
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
9530
9626
|
groupName: string;
|
|
9627
|
+
newlinesInside?: ("ignore" | number);
|
|
9531
9628
|
order?: ("asc" | "desc");
|
|
9532
|
-
|
|
9533
|
-
|
|
9629
|
+
anyOf: [{
|
|
9630
|
+
elementNamePattern?: (({
|
|
9631
|
+
pattern: string;
|
|
9632
|
+
flags?: string;
|
|
9633
|
+
} | string)[] | ({
|
|
9634
|
+
pattern: string;
|
|
9635
|
+
flags?: string;
|
|
9636
|
+
} | string));
|
|
9534
9637
|
selector?: ("literal" | "spread");
|
|
9638
|
+
}, ...({
|
|
9535
9639
|
elementNamePattern?: (({
|
|
9536
9640
|
pattern: string;
|
|
9537
9641
|
flags?: string;
|
|
@@ -9539,17 +9643,17 @@ type PerfectionistSortArrayIncludes = {
|
|
|
9539
9643
|
pattern: string;
|
|
9540
9644
|
flags?: string;
|
|
9541
9645
|
} | string));
|
|
9542
|
-
|
|
9646
|
+
selector?: ("literal" | "spread");
|
|
9647
|
+
})[]];
|
|
9543
9648
|
} | {
|
|
9544
|
-
newlinesInside?: (("always" | "never") | number);
|
|
9545
9649
|
fallbackSort?: {
|
|
9650
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
9546
9651
|
order?: ("asc" | "desc");
|
|
9547
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9548
9652
|
};
|
|
9653
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
9549
9654
|
groupName: string;
|
|
9655
|
+
newlinesInside?: ("ignore" | number);
|
|
9550
9656
|
order?: ("asc" | "desc");
|
|
9551
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9552
|
-
selector?: ("literal" | "spread");
|
|
9553
9657
|
elementNamePattern?: (({
|
|
9554
9658
|
pattern: string;
|
|
9555
9659
|
flags?: string;
|
|
@@ -9557,7 +9661,23 @@ type PerfectionistSortArrayIncludes = {
|
|
|
9557
9661
|
pattern: string;
|
|
9558
9662
|
flags?: string;
|
|
9559
9663
|
} | string));
|
|
9664
|
+
selector?: ("literal" | "spread");
|
|
9665
|
+
})[];
|
|
9666
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
9667
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
9668
|
+
newlinesBetween: ("ignore" | number);
|
|
9669
|
+
} | {
|
|
9670
|
+
group: (string | [string, ...(string)[]]);
|
|
9671
|
+
fallbackSort?: {
|
|
9672
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
9673
|
+
order?: ("asc" | "desc");
|
|
9674
|
+
};
|
|
9675
|
+
commentAbove?: string;
|
|
9676
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
9677
|
+
newlinesInside?: ("ignore" | number);
|
|
9678
|
+
order?: ("asc" | "desc");
|
|
9560
9679
|
})[];
|
|
9680
|
+
newlinesBetween?: ("ignore" | number);
|
|
9561
9681
|
useConfigurationIf?: {
|
|
9562
9682
|
allNamesMatchPattern?: (({
|
|
9563
9683
|
pattern: string;
|
|
@@ -9590,34 +9710,36 @@ type PerfectionistSortArrayIncludes = {
|
|
|
9590
9710
|
} | string)));
|
|
9591
9711
|
});
|
|
9592
9712
|
partitionByNewLine?: boolean;
|
|
9593
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
9594
|
-
groups?: (string | string[] | {
|
|
9595
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
9596
|
-
commentAbove?: string;
|
|
9597
|
-
})[];
|
|
9598
9713
|
}[];
|
|
9599
9714
|
// ----- perfectionist/sort-classes -----
|
|
9600
9715
|
type PerfectionistSortClasses = [] | [{
|
|
9601
9716
|
fallbackSort?: {
|
|
9717
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
9602
9718
|
order?: ("asc" | "desc");
|
|
9603
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9604
9719
|
};
|
|
9720
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
9605
9721
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
9606
9722
|
ignoreCase?: boolean;
|
|
9607
9723
|
alphabet?: string;
|
|
9608
9724
|
locales?: (string | string[]);
|
|
9609
9725
|
order?: ("asc" | "desc");
|
|
9610
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9611
9726
|
customGroups?: ({
|
|
9612
|
-
newlinesInside?: (("always" | "never") | number);
|
|
9613
9727
|
fallbackSort?: {
|
|
9728
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
9614
9729
|
order?: ("asc" | "desc");
|
|
9615
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9616
9730
|
};
|
|
9731
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
9617
9732
|
groupName: string;
|
|
9733
|
+
newlinesInside?: ("ignore" | number);
|
|
9618
9734
|
order?: ("asc" | "desc");
|
|
9619
|
-
|
|
9620
|
-
|
|
9735
|
+
anyOf: [{
|
|
9736
|
+
elementNamePattern?: (({
|
|
9737
|
+
pattern: string;
|
|
9738
|
+
flags?: string;
|
|
9739
|
+
} | string)[] | ({
|
|
9740
|
+
pattern: string;
|
|
9741
|
+
flags?: string;
|
|
9742
|
+
} | string));
|
|
9621
9743
|
modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[];
|
|
9622
9744
|
selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method");
|
|
9623
9745
|
decoratorNamePattern?: (({
|
|
@@ -9634,6 +9756,7 @@ type PerfectionistSortClasses = [] | [{
|
|
|
9634
9756
|
pattern: string;
|
|
9635
9757
|
flags?: string;
|
|
9636
9758
|
} | string));
|
|
9759
|
+
}, ...({
|
|
9637
9760
|
elementNamePattern?: (({
|
|
9638
9761
|
pattern: string;
|
|
9639
9762
|
flags?: string;
|
|
@@ -9641,33 +9764,49 @@ type PerfectionistSortClasses = [] | [{
|
|
|
9641
9764
|
pattern: string;
|
|
9642
9765
|
flags?: string;
|
|
9643
9766
|
} | string));
|
|
9644
|
-
|
|
9767
|
+
modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[];
|
|
9768
|
+
selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method");
|
|
9769
|
+
decoratorNamePattern?: (({
|
|
9770
|
+
pattern: string;
|
|
9771
|
+
flags?: string;
|
|
9772
|
+
} | string)[] | ({
|
|
9773
|
+
pattern: string;
|
|
9774
|
+
flags?: string;
|
|
9775
|
+
} | string));
|
|
9776
|
+
elementValuePattern?: (({
|
|
9777
|
+
pattern: string;
|
|
9778
|
+
flags?: string;
|
|
9779
|
+
} | string)[] | ({
|
|
9780
|
+
pattern: string;
|
|
9781
|
+
flags?: string;
|
|
9782
|
+
} | string));
|
|
9783
|
+
})[]];
|
|
9645
9784
|
} | {
|
|
9646
|
-
newlinesInside?: (("always" | "never") | number);
|
|
9647
9785
|
fallbackSort?: {
|
|
9786
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
9648
9787
|
order?: ("asc" | "desc");
|
|
9649
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9650
9788
|
};
|
|
9789
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
9651
9790
|
groupName: string;
|
|
9791
|
+
newlinesInside?: ("ignore" | number);
|
|
9652
9792
|
order?: ("asc" | "desc");
|
|
9653
|
-
|
|
9654
|
-
modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[];
|
|
9655
|
-
selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method");
|
|
9656
|
-
decoratorNamePattern?: (({
|
|
9793
|
+
elementNamePattern?: (({
|
|
9657
9794
|
pattern: string;
|
|
9658
9795
|
flags?: string;
|
|
9659
9796
|
} | string)[] | ({
|
|
9660
9797
|
pattern: string;
|
|
9661
9798
|
flags?: string;
|
|
9662
9799
|
} | string));
|
|
9663
|
-
|
|
9800
|
+
modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[];
|
|
9801
|
+
selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method");
|
|
9802
|
+
decoratorNamePattern?: (({
|
|
9664
9803
|
pattern: string;
|
|
9665
9804
|
flags?: string;
|
|
9666
9805
|
} | string)[] | ({
|
|
9667
9806
|
pattern: string;
|
|
9668
9807
|
flags?: string;
|
|
9669
9808
|
} | string));
|
|
9670
|
-
|
|
9809
|
+
elementValuePattern?: (({
|
|
9671
9810
|
pattern: string;
|
|
9672
9811
|
flags?: string;
|
|
9673
9812
|
} | string)[] | ({
|
|
@@ -9675,6 +9814,21 @@ type PerfectionistSortClasses = [] | [{
|
|
|
9675
9814
|
flags?: string;
|
|
9676
9815
|
} | string));
|
|
9677
9816
|
})[];
|
|
9817
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
9818
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
9819
|
+
newlinesBetween: ("ignore" | number);
|
|
9820
|
+
} | {
|
|
9821
|
+
group: (string | [string, ...(string)[]]);
|
|
9822
|
+
fallbackSort?: {
|
|
9823
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
9824
|
+
order?: ("asc" | "desc");
|
|
9825
|
+
};
|
|
9826
|
+
commentAbove?: string;
|
|
9827
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
9828
|
+
newlinesInside?: ("ignore" | number);
|
|
9829
|
+
order?: ("asc" | "desc");
|
|
9830
|
+
})[];
|
|
9831
|
+
newlinesBetween?: ("ignore" | number);
|
|
9678
9832
|
ignoreCallbackDependenciesPatterns?: (({
|
|
9679
9833
|
pattern: string;
|
|
9680
9834
|
flags?: string;
|
|
@@ -9705,24 +9859,77 @@ type PerfectionistSortClasses = [] | [{
|
|
|
9705
9859
|
} | string)));
|
|
9706
9860
|
});
|
|
9707
9861
|
partitionByNewLine?: boolean;
|
|
9708
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
9709
|
-
groups?: (string | string[] | {
|
|
9710
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
9711
|
-
commentAbove?: string;
|
|
9712
|
-
})[];
|
|
9713
9862
|
}];
|
|
9714
9863
|
// ----- perfectionist/sort-decorators -----
|
|
9715
|
-
type PerfectionistSortDecorators =
|
|
9864
|
+
type PerfectionistSortDecorators = {
|
|
9716
9865
|
fallbackSort?: {
|
|
9866
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
9717
9867
|
order?: ("asc" | "desc");
|
|
9718
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9719
9868
|
};
|
|
9869
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
9720
9870
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
9721
9871
|
ignoreCase?: boolean;
|
|
9722
9872
|
alphabet?: string;
|
|
9723
9873
|
locales?: (string | string[]);
|
|
9724
9874
|
order?: ("asc" | "desc");
|
|
9725
|
-
|
|
9875
|
+
customGroups?: ({
|
|
9876
|
+
fallbackSort?: {
|
|
9877
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
9878
|
+
order?: ("asc" | "desc");
|
|
9879
|
+
};
|
|
9880
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
9881
|
+
groupName: string;
|
|
9882
|
+
newlinesInside?: ("ignore" | number);
|
|
9883
|
+
order?: ("asc" | "desc");
|
|
9884
|
+
anyOf: [{
|
|
9885
|
+
elementNamePattern?: (({
|
|
9886
|
+
pattern: string;
|
|
9887
|
+
flags?: string;
|
|
9888
|
+
} | string)[] | ({
|
|
9889
|
+
pattern: string;
|
|
9890
|
+
flags?: string;
|
|
9891
|
+
} | string));
|
|
9892
|
+
}, ...({
|
|
9893
|
+
elementNamePattern?: (({
|
|
9894
|
+
pattern: string;
|
|
9895
|
+
flags?: string;
|
|
9896
|
+
} | string)[] | ({
|
|
9897
|
+
pattern: string;
|
|
9898
|
+
flags?: string;
|
|
9899
|
+
} | string));
|
|
9900
|
+
})[]];
|
|
9901
|
+
} | {
|
|
9902
|
+
fallbackSort?: {
|
|
9903
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
9904
|
+
order?: ("asc" | "desc");
|
|
9905
|
+
};
|
|
9906
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
9907
|
+
groupName: string;
|
|
9908
|
+
newlinesInside?: ("ignore" | number);
|
|
9909
|
+
order?: ("asc" | "desc");
|
|
9910
|
+
elementNamePattern?: (({
|
|
9911
|
+
pattern: string;
|
|
9912
|
+
flags?: string;
|
|
9913
|
+
} | string)[] | ({
|
|
9914
|
+
pattern: string;
|
|
9915
|
+
flags?: string;
|
|
9916
|
+
} | string));
|
|
9917
|
+
})[];
|
|
9918
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
9919
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
9920
|
+
newlinesBetween: ("ignore" | number);
|
|
9921
|
+
} | {
|
|
9922
|
+
group: (string | [string, ...(string)[]]);
|
|
9923
|
+
fallbackSort?: {
|
|
9924
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
9925
|
+
order?: ("asc" | "desc");
|
|
9926
|
+
};
|
|
9927
|
+
commentAbove?: string;
|
|
9928
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
9929
|
+
newlinesInside?: ("ignore" | number);
|
|
9930
|
+
order?: ("asc" | "desc");
|
|
9931
|
+
})[];
|
|
9932
|
+
newlinesBetween?: ("ignore" | number);
|
|
9726
9933
|
sortOnParameters?: boolean;
|
|
9727
9934
|
sortOnProperties?: boolean;
|
|
9728
9935
|
sortOnAccessors?: boolean;
|
|
@@ -9750,38 +9957,37 @@ type PerfectionistSortDecorators = [] | [{
|
|
|
9750
9957
|
flags?: string;
|
|
9751
9958
|
} | string)));
|
|
9752
9959
|
});
|
|
9753
|
-
|
|
9754
|
-
|
|
9755
|
-
};
|
|
9756
|
-
groups?: (string | string[] | {
|
|
9757
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
9758
|
-
commentAbove?: string;
|
|
9759
|
-
})[];
|
|
9760
|
-
}];
|
|
9960
|
+
partitionByNewLine?: boolean;
|
|
9961
|
+
}[];
|
|
9761
9962
|
// ----- perfectionist/sort-enums -----
|
|
9762
9963
|
type PerfectionistSortEnums = [] | [{
|
|
9763
9964
|
fallbackSort?: {
|
|
9965
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
9764
9966
|
order?: ("asc" | "desc");
|
|
9765
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9766
9967
|
};
|
|
9968
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
9767
9969
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
9768
9970
|
ignoreCase?: boolean;
|
|
9769
9971
|
alphabet?: string;
|
|
9770
9972
|
locales?: (string | string[]);
|
|
9771
9973
|
order?: ("asc" | "desc");
|
|
9772
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9773
9974
|
customGroups?: ({
|
|
9774
|
-
[k: string]: (string | string[]) | undefined;
|
|
9775
|
-
} | ({
|
|
9776
|
-
newlinesInside?: (("always" | "never") | number);
|
|
9777
9975
|
fallbackSort?: {
|
|
9976
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
9778
9977
|
order?: ("asc" | "desc");
|
|
9779
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9780
9978
|
};
|
|
9979
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
9781
9980
|
groupName: string;
|
|
9981
|
+
newlinesInside?: ("ignore" | number);
|
|
9782
9982
|
order?: ("asc" | "desc");
|
|
9783
|
-
|
|
9784
|
-
|
|
9983
|
+
anyOf: [{
|
|
9984
|
+
elementNamePattern?: (({
|
|
9985
|
+
pattern: string;
|
|
9986
|
+
flags?: string;
|
|
9987
|
+
} | string)[] | ({
|
|
9988
|
+
pattern: string;
|
|
9989
|
+
flags?: string;
|
|
9990
|
+
} | string));
|
|
9785
9991
|
elementValuePattern?: (({
|
|
9786
9992
|
pattern: string;
|
|
9787
9993
|
flags?: string;
|
|
@@ -9789,6 +9995,7 @@ type PerfectionistSortEnums = [] | [{
|
|
|
9789
9995
|
pattern: string;
|
|
9790
9996
|
flags?: string;
|
|
9791
9997
|
} | string));
|
|
9998
|
+
}, ...({
|
|
9792
9999
|
elementNamePattern?: (({
|
|
9793
10000
|
pattern: string;
|
|
9794
10001
|
flags?: string;
|
|
@@ -9796,33 +10003,54 @@ type PerfectionistSortEnums = [] | [{
|
|
|
9796
10003
|
pattern: string;
|
|
9797
10004
|
flags?: string;
|
|
9798
10005
|
} | string));
|
|
9799
|
-
|
|
10006
|
+
elementValuePattern?: (({
|
|
10007
|
+
pattern: string;
|
|
10008
|
+
flags?: string;
|
|
10009
|
+
} | string)[] | ({
|
|
10010
|
+
pattern: string;
|
|
10011
|
+
flags?: string;
|
|
10012
|
+
} | string));
|
|
10013
|
+
})[]];
|
|
9800
10014
|
} | {
|
|
9801
|
-
newlinesInside?: (("always" | "never") | number);
|
|
9802
10015
|
fallbackSort?: {
|
|
10016
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
9803
10017
|
order?: ("asc" | "desc");
|
|
9804
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9805
10018
|
};
|
|
10019
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
9806
10020
|
groupName: string;
|
|
10021
|
+
newlinesInside?: ("ignore" | number);
|
|
9807
10022
|
order?: ("asc" | "desc");
|
|
9808
|
-
|
|
9809
|
-
elementValuePattern?: (({
|
|
10023
|
+
elementNamePattern?: (({
|
|
9810
10024
|
pattern: string;
|
|
9811
10025
|
flags?: string;
|
|
9812
10026
|
} | string)[] | ({
|
|
9813
10027
|
pattern: string;
|
|
9814
10028
|
flags?: string;
|
|
9815
10029
|
} | string));
|
|
9816
|
-
|
|
10030
|
+
elementValuePattern?: (({
|
|
9817
10031
|
pattern: string;
|
|
9818
10032
|
flags?: string;
|
|
9819
10033
|
} | string)[] | ({
|
|
9820
10034
|
pattern: string;
|
|
9821
10035
|
flags?: string;
|
|
9822
10036
|
} | string));
|
|
9823
|
-
})[]
|
|
9824
|
-
|
|
9825
|
-
|
|
10037
|
+
})[];
|
|
10038
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
10039
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
10040
|
+
newlinesBetween: ("ignore" | number);
|
|
10041
|
+
} | {
|
|
10042
|
+
group: (string | [string, ...(string)[]]);
|
|
10043
|
+
fallbackSort?: {
|
|
10044
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10045
|
+
order?: ("asc" | "desc");
|
|
10046
|
+
};
|
|
10047
|
+
commentAbove?: string;
|
|
10048
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10049
|
+
newlinesInside?: ("ignore" | number);
|
|
10050
|
+
order?: ("asc" | "desc");
|
|
10051
|
+
})[];
|
|
10052
|
+
newlinesBetween?: ("ignore" | number);
|
|
10053
|
+
sortByValue?: ("always" | "ifNumericEnum" | "never");
|
|
9826
10054
|
partitionByComment?: (boolean | (({
|
|
9827
10055
|
pattern: string;
|
|
9828
10056
|
flags?: string;
|
|
@@ -9846,37 +10074,29 @@ type PerfectionistSortEnums = [] | [{
|
|
|
9846
10074
|
} | string)));
|
|
9847
10075
|
});
|
|
9848
10076
|
partitionByNewLine?: boolean;
|
|
9849
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
9850
|
-
groups?: (string | string[] | {
|
|
9851
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
9852
|
-
commentAbove?: string;
|
|
9853
|
-
})[];
|
|
9854
10077
|
}];
|
|
9855
|
-
// ----- perfectionist/sort-
|
|
9856
|
-
type
|
|
10078
|
+
// ----- perfectionist/sort-export-attributes -----
|
|
10079
|
+
type PerfectionistSortExportAttributes = {
|
|
9857
10080
|
fallbackSort?: {
|
|
10081
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
9858
10082
|
order?: ("asc" | "desc");
|
|
9859
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9860
10083
|
};
|
|
10084
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
9861
10085
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
9862
10086
|
ignoreCase?: boolean;
|
|
9863
10087
|
alphabet?: string;
|
|
9864
10088
|
locales?: (string | string[]);
|
|
9865
10089
|
order?: ("asc" | "desc");
|
|
9866
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9867
|
-
groupKind?: ("mixed" | "values-first" | "types-first");
|
|
9868
10090
|
customGroups?: ({
|
|
9869
|
-
newlinesInside?: (("always" | "never") | number);
|
|
9870
10091
|
fallbackSort?: {
|
|
10092
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
9871
10093
|
order?: ("asc" | "desc");
|
|
9872
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9873
10094
|
};
|
|
10095
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
9874
10096
|
groupName: string;
|
|
10097
|
+
newlinesInside?: ("ignore" | number);
|
|
9875
10098
|
order?: ("asc" | "desc");
|
|
9876
|
-
|
|
9877
|
-
anyOf?: {
|
|
9878
|
-
modifiers?: ("value" | "type")[];
|
|
9879
|
-
selector?: "export";
|
|
10099
|
+
anyOf: [{
|
|
9880
10100
|
elementNamePattern?: (({
|
|
9881
10101
|
pattern: string;
|
|
9882
10102
|
flags?: string;
|
|
@@ -9884,18 +10104,24 @@ type PerfectionistSortExports = {
|
|
|
9884
10104
|
pattern: string;
|
|
9885
10105
|
flags?: string;
|
|
9886
10106
|
} | string));
|
|
9887
|
-
}
|
|
10107
|
+
}, ...({
|
|
10108
|
+
elementNamePattern?: (({
|
|
10109
|
+
pattern: string;
|
|
10110
|
+
flags?: string;
|
|
10111
|
+
} | string)[] | ({
|
|
10112
|
+
pattern: string;
|
|
10113
|
+
flags?: string;
|
|
10114
|
+
} | string));
|
|
10115
|
+
})[]];
|
|
9888
10116
|
} | {
|
|
9889
|
-
newlinesInside?: (("always" | "never") | number);
|
|
9890
10117
|
fallbackSort?: {
|
|
10118
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
9891
10119
|
order?: ("asc" | "desc");
|
|
9892
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9893
10120
|
};
|
|
10121
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
9894
10122
|
groupName: string;
|
|
10123
|
+
newlinesInside?: ("ignore" | number);
|
|
9895
10124
|
order?: ("asc" | "desc");
|
|
9896
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9897
|
-
modifiers?: ("value" | "type")[];
|
|
9898
|
-
selector?: "export";
|
|
9899
10125
|
elementNamePattern?: (({
|
|
9900
10126
|
pattern: string;
|
|
9901
10127
|
flags?: string;
|
|
@@ -9904,6 +10130,21 @@ type PerfectionistSortExports = {
|
|
|
9904
10130
|
flags?: string;
|
|
9905
10131
|
} | string));
|
|
9906
10132
|
})[];
|
|
10133
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
10134
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
10135
|
+
newlinesBetween: ("ignore" | number);
|
|
10136
|
+
} | {
|
|
10137
|
+
group: (string | [string, ...(string)[]]);
|
|
10138
|
+
fallbackSort?: {
|
|
10139
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10140
|
+
order?: ("asc" | "desc");
|
|
10141
|
+
};
|
|
10142
|
+
commentAbove?: string;
|
|
10143
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10144
|
+
newlinesInside?: ("ignore" | number);
|
|
10145
|
+
order?: ("asc" | "desc");
|
|
10146
|
+
})[];
|
|
10147
|
+
newlinesBetween?: ("ignore" | number);
|
|
9907
10148
|
partitionByComment?: (boolean | (({
|
|
9908
10149
|
pattern: string;
|
|
9909
10150
|
flags?: string;
|
|
@@ -9927,70 +10168,39 @@ type PerfectionistSortExports = {
|
|
|
9927
10168
|
} | string)));
|
|
9928
10169
|
});
|
|
9929
10170
|
partitionByNewLine?: boolean;
|
|
9930
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
9931
|
-
groups?: (string | string[] | {
|
|
9932
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
9933
|
-
commentAbove?: string;
|
|
9934
|
-
})[];
|
|
9935
10171
|
}[];
|
|
9936
|
-
// ----- perfectionist/sort-
|
|
9937
|
-
type
|
|
9938
|
-
fallbackSort?: {
|
|
9939
|
-
order?: ("asc" | "desc");
|
|
9940
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9941
|
-
};
|
|
9942
|
-
specialCharacters?: ("remove" | "trim" | "keep");
|
|
9943
|
-
ignoreCase?: boolean;
|
|
9944
|
-
alphabet?: string;
|
|
9945
|
-
locales?: (string | string[]);
|
|
9946
|
-
order?: ("asc" | "desc");
|
|
9947
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9948
|
-
customGroups?: {
|
|
9949
|
-
[k: string]: (string | string[]) | undefined;
|
|
9950
|
-
};
|
|
9951
|
-
groups?: (string | string[] | {
|
|
9952
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
9953
|
-
commentAbove?: string;
|
|
9954
|
-
})[];
|
|
9955
|
-
}];
|
|
9956
|
-
// ----- perfectionist/sort-imports -----
|
|
9957
|
-
type PerfectionistSortImports = {
|
|
10172
|
+
// ----- perfectionist/sort-exports -----
|
|
10173
|
+
type PerfectionistSortExports = {
|
|
9958
10174
|
fallbackSort?: {
|
|
10175
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
9959
10176
|
order?: ("asc" | "desc");
|
|
9960
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9961
10177
|
};
|
|
10178
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
9962
10179
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
9963
10180
|
ignoreCase?: boolean;
|
|
9964
10181
|
alphabet?: string;
|
|
9965
10182
|
locales?: (string | string[]);
|
|
9966
10183
|
order?: ("asc" | "desc");
|
|
9967
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9968
10184
|
customGroups?: ({
|
|
9969
|
-
value?: {
|
|
9970
|
-
[k: string]: (string | string[]) | undefined;
|
|
9971
|
-
};
|
|
9972
|
-
type?: {
|
|
9973
|
-
[k: string]: (string | string[]) | undefined;
|
|
9974
|
-
};
|
|
9975
|
-
} | ({
|
|
9976
|
-
newlinesInside?: (("always" | "never") | number);
|
|
9977
10185
|
fallbackSort?: {
|
|
10186
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
9978
10187
|
order?: ("asc" | "desc");
|
|
9979
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9980
10188
|
};
|
|
10189
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
9981
10190
|
groupName: string;
|
|
10191
|
+
newlinesInside?: ("ignore" | number);
|
|
9982
10192
|
order?: ("asc" | "desc");
|
|
9983
|
-
|
|
9984
|
-
|
|
9985
|
-
modifiers?: ("default" | "named" | "require" | "side-effect" | "ts-equals" | "type" | "value" | "wildcard")[];
|
|
9986
|
-
selector?: ("side-effect-style" | "tsconfig-path" | "side-effect" | "external" | "internal" | "builtin" | "sibling" | "subpath" | "import" | "parent" | "index" | "style" | "type");
|
|
9987
|
-
elementValuePattern?: (({
|
|
10193
|
+
anyOf: [{
|
|
10194
|
+
elementNamePattern?: (({
|
|
9988
10195
|
pattern: string;
|
|
9989
10196
|
flags?: string;
|
|
9990
10197
|
} | string)[] | ({
|
|
9991
10198
|
pattern: string;
|
|
9992
10199
|
flags?: string;
|
|
9993
10200
|
} | string));
|
|
10201
|
+
modifiers?: ("value" | "type" | "named" | "wildcard" | "multiline" | "singleline")[];
|
|
10202
|
+
selector?: "export";
|
|
10203
|
+
}, ...({
|
|
9994
10204
|
elementNamePattern?: (({
|
|
9995
10205
|
pattern: string;
|
|
9996
10206
|
flags?: string;
|
|
@@ -9998,25 +10208,18 @@ type PerfectionistSortImports = {
|
|
|
9998
10208
|
pattern: string;
|
|
9999
10209
|
flags?: string;
|
|
10000
10210
|
} | string));
|
|
10001
|
-
|
|
10211
|
+
modifiers?: ("value" | "type" | "named" | "wildcard" | "multiline" | "singleline")[];
|
|
10212
|
+
selector?: "export";
|
|
10213
|
+
})[]];
|
|
10002
10214
|
} | {
|
|
10003
|
-
newlinesInside?: (("always" | "never") | number);
|
|
10004
10215
|
fallbackSort?: {
|
|
10216
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10005
10217
|
order?: ("asc" | "desc");
|
|
10006
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10007
10218
|
};
|
|
10219
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10008
10220
|
groupName: string;
|
|
10221
|
+
newlinesInside?: ("ignore" | number);
|
|
10009
10222
|
order?: ("asc" | "desc");
|
|
10010
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10011
|
-
modifiers?: ("default" | "named" | "require" | "side-effect" | "ts-equals" | "type" | "value" | "wildcard")[];
|
|
10012
|
-
selector?: ("side-effect-style" | "tsconfig-path" | "side-effect" | "external" | "internal" | "builtin" | "sibling" | "subpath" | "import" | "parent" | "index" | "style" | "type");
|
|
10013
|
-
elementValuePattern?: (({
|
|
10014
|
-
pattern: string;
|
|
10015
|
-
flags?: string;
|
|
10016
|
-
} | string)[] | ({
|
|
10017
|
-
pattern: string;
|
|
10018
|
-
flags?: string;
|
|
10019
|
-
} | string));
|
|
10020
10223
|
elementNamePattern?: (({
|
|
10021
10224
|
pattern: string;
|
|
10022
10225
|
flags?: string;
|
|
@@ -10024,15 +10227,24 @@ type PerfectionistSortImports = {
|
|
|
10024
10227
|
pattern: string;
|
|
10025
10228
|
flags?: string;
|
|
10026
10229
|
} | string));
|
|
10027
|
-
|
|
10028
|
-
|
|
10029
|
-
|
|
10030
|
-
|
|
10031
|
-
|
|
10032
|
-
|
|
10033
|
-
|
|
10034
|
-
|
|
10035
|
-
|
|
10230
|
+
modifiers?: ("value" | "type" | "named" | "wildcard" | "multiline" | "singleline")[];
|
|
10231
|
+
selector?: "export";
|
|
10232
|
+
})[];
|
|
10233
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
10234
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
10235
|
+
newlinesBetween: ("ignore" | number);
|
|
10236
|
+
} | {
|
|
10237
|
+
group: (string | [string, ...(string)[]]);
|
|
10238
|
+
fallbackSort?: {
|
|
10239
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10240
|
+
order?: ("asc" | "desc");
|
|
10241
|
+
};
|
|
10242
|
+
commentAbove?: string;
|
|
10243
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10244
|
+
newlinesInside?: ("ignore" | number);
|
|
10245
|
+
order?: ("asc" | "desc");
|
|
10246
|
+
})[];
|
|
10247
|
+
newlinesBetween?: ("ignore" | number);
|
|
10036
10248
|
partitionByComment?: (boolean | (({
|
|
10037
10249
|
pattern: string;
|
|
10038
10250
|
flags?: string;
|
|
@@ -10056,47 +10268,352 @@ type PerfectionistSortImports = {
|
|
|
10056
10268
|
} | string)));
|
|
10057
10269
|
});
|
|
10058
10270
|
partitionByNewLine?: boolean;
|
|
10059
|
-
|
|
10060
|
-
|
|
10061
|
-
|
|
10062
|
-
|
|
10063
|
-
|
|
10064
|
-
|
|
10271
|
+
}[];
|
|
10272
|
+
// ----- perfectionist/sort-heritage-clauses -----
|
|
10273
|
+
type PerfectionistSortHeritageClauses = {
|
|
10274
|
+
fallbackSort?: {
|
|
10275
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10276
|
+
order?: ("asc" | "desc");
|
|
10277
|
+
};
|
|
10278
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10279
|
+
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10280
|
+
ignoreCase?: boolean;
|
|
10281
|
+
alphabet?: string;
|
|
10282
|
+
locales?: (string | string[]);
|
|
10283
|
+
order?: ("asc" | "desc");
|
|
10284
|
+
customGroups?: ({
|
|
10285
|
+
fallbackSort?: {
|
|
10286
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10287
|
+
order?: ("asc" | "desc");
|
|
10288
|
+
};
|
|
10289
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10290
|
+
groupName: string;
|
|
10291
|
+
newlinesInside?: ("ignore" | number);
|
|
10292
|
+
order?: ("asc" | "desc");
|
|
10293
|
+
anyOf: [{
|
|
10294
|
+
elementNamePattern?: (({
|
|
10295
|
+
pattern: string;
|
|
10296
|
+
flags?: string;
|
|
10297
|
+
} | string)[] | ({
|
|
10298
|
+
pattern: string;
|
|
10299
|
+
flags?: string;
|
|
10300
|
+
} | string));
|
|
10301
|
+
}, ...({
|
|
10302
|
+
elementNamePattern?: (({
|
|
10303
|
+
pattern: string;
|
|
10304
|
+
flags?: string;
|
|
10305
|
+
} | string)[] | ({
|
|
10306
|
+
pattern: string;
|
|
10307
|
+
flags?: string;
|
|
10308
|
+
} | string));
|
|
10309
|
+
})[]];
|
|
10310
|
+
} | {
|
|
10311
|
+
fallbackSort?: {
|
|
10312
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10313
|
+
order?: ("asc" | "desc");
|
|
10314
|
+
};
|
|
10315
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10316
|
+
groupName: string;
|
|
10317
|
+
newlinesInside?: ("ignore" | number);
|
|
10318
|
+
order?: ("asc" | "desc");
|
|
10319
|
+
elementNamePattern?: (({
|
|
10320
|
+
pattern: string;
|
|
10321
|
+
flags?: string;
|
|
10322
|
+
} | string)[] | ({
|
|
10323
|
+
pattern: string;
|
|
10324
|
+
flags?: string;
|
|
10325
|
+
} | string));
|
|
10326
|
+
})[];
|
|
10327
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
10328
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
10329
|
+
newlinesBetween: ("ignore" | number);
|
|
10330
|
+
} | {
|
|
10331
|
+
group: (string | [string, ...(string)[]]);
|
|
10332
|
+
fallbackSort?: {
|
|
10333
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10334
|
+
order?: ("asc" | "desc");
|
|
10335
|
+
};
|
|
10336
|
+
commentAbove?: string;
|
|
10337
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10338
|
+
newlinesInside?: ("ignore" | number);
|
|
10339
|
+
order?: ("asc" | "desc");
|
|
10340
|
+
})[];
|
|
10341
|
+
newlinesBetween?: ("ignore" | number);
|
|
10342
|
+
partitionByNewLine?: boolean;
|
|
10343
|
+
partitionByComment?: (boolean | (({
|
|
10344
|
+
pattern: string;
|
|
10065
10345
|
flags?: string;
|
|
10066
|
-
} | string)
|
|
10067
|
-
|
|
10068
|
-
|
|
10346
|
+
} | string)[] | ({
|
|
10347
|
+
pattern: string;
|
|
10348
|
+
flags?: string;
|
|
10349
|
+
} | string)) | {
|
|
10350
|
+
block?: (boolean | (({
|
|
10351
|
+
pattern: string;
|
|
10352
|
+
flags?: string;
|
|
10353
|
+
} | string)[] | ({
|
|
10354
|
+
pattern: string;
|
|
10355
|
+
flags?: string;
|
|
10356
|
+
} | string)));
|
|
10357
|
+
line?: (boolean | (({
|
|
10358
|
+
pattern: string;
|
|
10359
|
+
flags?: string;
|
|
10360
|
+
} | string)[] | ({
|
|
10361
|
+
pattern: string;
|
|
10362
|
+
flags?: string;
|
|
10363
|
+
} | string)));
|
|
10364
|
+
});
|
|
10365
|
+
}[];
|
|
10366
|
+
// ----- perfectionist/sort-import-attributes -----
|
|
10367
|
+
type PerfectionistSortImportAttributes = {
|
|
10368
|
+
fallbackSort?: {
|
|
10369
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10370
|
+
order?: ("asc" | "desc");
|
|
10371
|
+
};
|
|
10372
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10373
|
+
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10374
|
+
ignoreCase?: boolean;
|
|
10375
|
+
alphabet?: string;
|
|
10376
|
+
locales?: (string | string[]);
|
|
10377
|
+
order?: ("asc" | "desc");
|
|
10378
|
+
customGroups?: ({
|
|
10379
|
+
fallbackSort?: {
|
|
10380
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10381
|
+
order?: ("asc" | "desc");
|
|
10382
|
+
};
|
|
10383
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10384
|
+
groupName: string;
|
|
10385
|
+
newlinesInside?: ("ignore" | number);
|
|
10386
|
+
order?: ("asc" | "desc");
|
|
10387
|
+
anyOf: [{
|
|
10388
|
+
elementNamePattern?: (({
|
|
10389
|
+
pattern: string;
|
|
10390
|
+
flags?: string;
|
|
10391
|
+
} | string)[] | ({
|
|
10392
|
+
pattern: string;
|
|
10393
|
+
flags?: string;
|
|
10394
|
+
} | string));
|
|
10395
|
+
}, ...({
|
|
10396
|
+
elementNamePattern?: (({
|
|
10397
|
+
pattern: string;
|
|
10398
|
+
flags?: string;
|
|
10399
|
+
} | string)[] | ({
|
|
10400
|
+
pattern: string;
|
|
10401
|
+
flags?: string;
|
|
10402
|
+
} | string));
|
|
10403
|
+
})[]];
|
|
10404
|
+
} | {
|
|
10405
|
+
fallbackSort?: {
|
|
10406
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10407
|
+
order?: ("asc" | "desc");
|
|
10408
|
+
};
|
|
10409
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10410
|
+
groupName: string;
|
|
10411
|
+
newlinesInside?: ("ignore" | number);
|
|
10412
|
+
order?: ("asc" | "desc");
|
|
10413
|
+
elementNamePattern?: (({
|
|
10414
|
+
pattern: string;
|
|
10415
|
+
flags?: string;
|
|
10416
|
+
} | string)[] | ({
|
|
10417
|
+
pattern: string;
|
|
10418
|
+
flags?: string;
|
|
10419
|
+
} | string));
|
|
10420
|
+
})[];
|
|
10421
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
10422
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
10423
|
+
newlinesBetween: ("ignore" | number);
|
|
10424
|
+
} | {
|
|
10425
|
+
group: (string | [string, ...(string)[]]);
|
|
10426
|
+
fallbackSort?: {
|
|
10427
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10428
|
+
order?: ("asc" | "desc");
|
|
10429
|
+
};
|
|
10069
10430
|
commentAbove?: string;
|
|
10431
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10432
|
+
newlinesInside?: ("ignore" | number);
|
|
10433
|
+
order?: ("asc" | "desc");
|
|
10070
10434
|
})[];
|
|
10435
|
+
newlinesBetween?: ("ignore" | number);
|
|
10436
|
+
partitionByComment?: (boolean | (({
|
|
10437
|
+
pattern: string;
|
|
10438
|
+
flags?: string;
|
|
10439
|
+
} | string)[] | ({
|
|
10440
|
+
pattern: string;
|
|
10441
|
+
flags?: string;
|
|
10442
|
+
} | string)) | {
|
|
10443
|
+
block?: (boolean | (({
|
|
10444
|
+
pattern: string;
|
|
10445
|
+
flags?: string;
|
|
10446
|
+
} | string)[] | ({
|
|
10447
|
+
pattern: string;
|
|
10448
|
+
flags?: string;
|
|
10449
|
+
} | string)));
|
|
10450
|
+
line?: (boolean | (({
|
|
10451
|
+
pattern: string;
|
|
10452
|
+
flags?: string;
|
|
10453
|
+
} | string)[] | ({
|
|
10454
|
+
pattern: string;
|
|
10455
|
+
flags?: string;
|
|
10456
|
+
} | string)));
|
|
10457
|
+
});
|
|
10458
|
+
partitionByNewLine?: boolean;
|
|
10459
|
+
}[];
|
|
10460
|
+
// ----- perfectionist/sort-imports -----
|
|
10461
|
+
type PerfectionistSortImports = {
|
|
10462
|
+
fallbackSort?: {
|
|
10463
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "type-import-first");
|
|
10464
|
+
order?: ("asc" | "desc");
|
|
10465
|
+
sortBy?: ("specifier" | "path");
|
|
10466
|
+
};
|
|
10467
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "type-import-first");
|
|
10468
|
+
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10469
|
+
ignoreCase?: boolean;
|
|
10470
|
+
alphabet?: string;
|
|
10471
|
+
locales?: (string | string[]);
|
|
10472
|
+
order?: ("asc" | "desc");
|
|
10473
|
+
sortBy?: ("specifier" | "path");
|
|
10474
|
+
customGroups?: ({
|
|
10475
|
+
fallbackSort?: {
|
|
10476
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "type-import-first");
|
|
10477
|
+
order?: ("asc" | "desc");
|
|
10478
|
+
sortBy?: ("specifier" | "path");
|
|
10479
|
+
};
|
|
10480
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "type-import-first");
|
|
10481
|
+
groupName: string;
|
|
10482
|
+
newlinesInside?: ("ignore" | number);
|
|
10483
|
+
order?: ("asc" | "desc");
|
|
10484
|
+
sortBy?: ("specifier" | "path");
|
|
10485
|
+
anyOf: [{
|
|
10486
|
+
elementNamePattern?: (({
|
|
10487
|
+
pattern: string;
|
|
10488
|
+
flags?: string;
|
|
10489
|
+
} | string)[] | ({
|
|
10490
|
+
pattern: string;
|
|
10491
|
+
flags?: string;
|
|
10492
|
+
} | string));
|
|
10493
|
+
modifiers?: ("default" | "multiline" | "named" | "require" | "side-effect" | "singleline" | "ts-equals" | "type" | "value" | "wildcard")[];
|
|
10494
|
+
selector?: ("side-effect-style" | "tsconfig-path" | "side-effect" | "external" | "internal" | "builtin" | "sibling" | "subpath" | "import" | "parent" | "index" | "style" | "type");
|
|
10495
|
+
}, ...({
|
|
10496
|
+
elementNamePattern?: (({
|
|
10497
|
+
pattern: string;
|
|
10498
|
+
flags?: string;
|
|
10499
|
+
} | string)[] | ({
|
|
10500
|
+
pattern: string;
|
|
10501
|
+
flags?: string;
|
|
10502
|
+
} | string));
|
|
10503
|
+
modifiers?: ("default" | "multiline" | "named" | "require" | "side-effect" | "singleline" | "ts-equals" | "type" | "value" | "wildcard")[];
|
|
10504
|
+
selector?: ("side-effect-style" | "tsconfig-path" | "side-effect" | "external" | "internal" | "builtin" | "sibling" | "subpath" | "import" | "parent" | "index" | "style" | "type");
|
|
10505
|
+
})[]];
|
|
10506
|
+
} | {
|
|
10507
|
+
fallbackSort?: {
|
|
10508
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "type-import-first");
|
|
10509
|
+
order?: ("asc" | "desc");
|
|
10510
|
+
sortBy?: ("specifier" | "path");
|
|
10511
|
+
};
|
|
10512
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "type-import-first");
|
|
10513
|
+
groupName: string;
|
|
10514
|
+
newlinesInside?: ("ignore" | number);
|
|
10515
|
+
order?: ("asc" | "desc");
|
|
10516
|
+
sortBy?: ("specifier" | "path");
|
|
10517
|
+
elementNamePattern?: (({
|
|
10518
|
+
pattern: string;
|
|
10519
|
+
flags?: string;
|
|
10520
|
+
} | string)[] | ({
|
|
10521
|
+
pattern: string;
|
|
10522
|
+
flags?: string;
|
|
10523
|
+
} | string));
|
|
10524
|
+
modifiers?: ("default" | "multiline" | "named" | "require" | "side-effect" | "singleline" | "ts-equals" | "type" | "value" | "wildcard")[];
|
|
10525
|
+
selector?: ("side-effect-style" | "tsconfig-path" | "side-effect" | "external" | "internal" | "builtin" | "sibling" | "subpath" | "import" | "parent" | "index" | "style" | "type");
|
|
10526
|
+
})[];
|
|
10527
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
10528
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
10529
|
+
newlinesBetween: ("ignore" | number);
|
|
10530
|
+
} | {
|
|
10531
|
+
group: (string | [string, ...(string)[]]);
|
|
10532
|
+
fallbackSort?: {
|
|
10533
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "type-import-first");
|
|
10534
|
+
order?: ("asc" | "desc");
|
|
10535
|
+
sortBy?: ("specifier" | "path");
|
|
10536
|
+
};
|
|
10537
|
+
commentAbove?: string;
|
|
10538
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "type-import-first");
|
|
10539
|
+
newlinesInside?: ("ignore" | number);
|
|
10540
|
+
order?: ("asc" | "desc");
|
|
10541
|
+
sortBy?: ("specifier" | "path");
|
|
10542
|
+
})[];
|
|
10543
|
+
newlinesBetween?: ("ignore" | number);
|
|
10544
|
+
tsconfig?: {
|
|
10545
|
+
rootDir: string;
|
|
10546
|
+
filename?: string;
|
|
10547
|
+
};
|
|
10548
|
+
maxLineLength?: number;
|
|
10549
|
+
sortSideEffects?: boolean;
|
|
10550
|
+
environment?: ("node" | "bun");
|
|
10551
|
+
partitionByComment?: (boolean | (({
|
|
10552
|
+
pattern: string;
|
|
10553
|
+
flags?: string;
|
|
10554
|
+
} | string)[] | ({
|
|
10555
|
+
pattern: string;
|
|
10556
|
+
flags?: string;
|
|
10557
|
+
} | string)) | {
|
|
10558
|
+
block?: (boolean | (({
|
|
10559
|
+
pattern: string;
|
|
10560
|
+
flags?: string;
|
|
10561
|
+
} | string)[] | ({
|
|
10562
|
+
pattern: string;
|
|
10563
|
+
flags?: string;
|
|
10564
|
+
} | string)));
|
|
10565
|
+
line?: (boolean | (({
|
|
10566
|
+
pattern: string;
|
|
10567
|
+
flags?: string;
|
|
10568
|
+
} | string)[] | ({
|
|
10569
|
+
pattern: string;
|
|
10570
|
+
flags?: string;
|
|
10571
|
+
} | string)));
|
|
10572
|
+
});
|
|
10573
|
+
partitionByNewLine?: boolean;
|
|
10574
|
+
internalPattern?: (({
|
|
10575
|
+
pattern: string;
|
|
10576
|
+
flags?: string;
|
|
10577
|
+
} | string)[] | ({
|
|
10578
|
+
pattern: string;
|
|
10579
|
+
flags?: string;
|
|
10580
|
+
} | string));
|
|
10071
10581
|
}[];
|
|
10072
10582
|
// ----- perfectionist/sort-interfaces -----
|
|
10073
10583
|
type PerfectionistSortInterfaces = {
|
|
10074
10584
|
fallbackSort?: {
|
|
10585
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10075
10586
|
order?: ("asc" | "desc");
|
|
10076
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10077
10587
|
sortBy?: ("name" | "value");
|
|
10078
10588
|
};
|
|
10589
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10079
10590
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10080
10591
|
ignoreCase?: boolean;
|
|
10081
10592
|
alphabet?: string;
|
|
10082
10593
|
locales?: (string | string[]);
|
|
10083
10594
|
order?: ("asc" | "desc");
|
|
10084
|
-
|
|
10595
|
+
sortBy?: ("name" | "value");
|
|
10085
10596
|
customGroups?: ({
|
|
10086
|
-
[k: string]: (string | string[]) | undefined;
|
|
10087
|
-
} | ({
|
|
10088
|
-
newlinesInside?: (("always" | "never") | number);
|
|
10089
10597
|
fallbackSort?: {
|
|
10598
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10090
10599
|
order?: ("asc" | "desc");
|
|
10091
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10092
10600
|
sortBy?: ("name" | "value");
|
|
10093
10601
|
};
|
|
10602
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10094
10603
|
groupName: string;
|
|
10604
|
+
newlinesInside?: ("ignore" | number);
|
|
10095
10605
|
order?: ("asc" | "desc");
|
|
10096
|
-
|
|
10097
|
-
anyOf
|
|
10606
|
+
sortBy?: ("name" | "value");
|
|
10607
|
+
anyOf: [{
|
|
10608
|
+
elementNamePattern?: (({
|
|
10609
|
+
pattern: string;
|
|
10610
|
+
flags?: string;
|
|
10611
|
+
} | string)[] | ({
|
|
10612
|
+
pattern: string;
|
|
10613
|
+
flags?: string;
|
|
10614
|
+
} | string));
|
|
10098
10615
|
modifiers?: ("optional" | "required" | "multiline")[];
|
|
10099
|
-
selector?: ("index-signature" | "member" | "method" | "
|
|
10616
|
+
selector?: ("index-signature" | "member" | "method" | "property");
|
|
10100
10617
|
elementValuePattern?: (({
|
|
10101
10618
|
pattern: string;
|
|
10102
10619
|
flags?: string;
|
|
@@ -10104,6 +10621,7 @@ type PerfectionistSortInterfaces = {
|
|
|
10104
10621
|
pattern: string;
|
|
10105
10622
|
flags?: string;
|
|
10106
10623
|
} | string));
|
|
10624
|
+
}, ...({
|
|
10107
10625
|
elementNamePattern?: (({
|
|
10108
10626
|
pattern: string;
|
|
10109
10627
|
flags?: string;
|
|
@@ -10111,37 +10629,61 @@ type PerfectionistSortInterfaces = {
|
|
|
10111
10629
|
pattern: string;
|
|
10112
10630
|
flags?: string;
|
|
10113
10631
|
} | string));
|
|
10114
|
-
|
|
10115
|
-
|
|
10632
|
+
modifiers?: ("optional" | "required" | "multiline")[];
|
|
10633
|
+
selector?: ("index-signature" | "member" | "method" | "property");
|
|
10634
|
+
elementValuePattern?: (({
|
|
10635
|
+
pattern: string;
|
|
10636
|
+
flags?: string;
|
|
10637
|
+
} | string)[] | ({
|
|
10638
|
+
pattern: string;
|
|
10639
|
+
flags?: string;
|
|
10640
|
+
} | string));
|
|
10641
|
+
})[]];
|
|
10116
10642
|
} | {
|
|
10117
|
-
newlinesInside?: (("always" | "never") | number);
|
|
10118
10643
|
fallbackSort?: {
|
|
10644
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10119
10645
|
order?: ("asc" | "desc");
|
|
10120
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10121
10646
|
sortBy?: ("name" | "value");
|
|
10122
10647
|
};
|
|
10648
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10123
10649
|
groupName: string;
|
|
10650
|
+
newlinesInside?: ("ignore" | number);
|
|
10124
10651
|
order?: ("asc" | "desc");
|
|
10125
|
-
|
|
10126
|
-
|
|
10127
|
-
selector?: ("index-signature" | "member" | "method" | "multiline" | "property");
|
|
10128
|
-
elementValuePattern?: (({
|
|
10652
|
+
sortBy?: ("name" | "value");
|
|
10653
|
+
elementNamePattern?: (({
|
|
10129
10654
|
pattern: string;
|
|
10130
10655
|
flags?: string;
|
|
10131
10656
|
} | string)[] | ({
|
|
10132
10657
|
pattern: string;
|
|
10133
10658
|
flags?: string;
|
|
10134
10659
|
} | string));
|
|
10135
|
-
|
|
10660
|
+
modifiers?: ("optional" | "required" | "multiline")[];
|
|
10661
|
+
selector?: ("index-signature" | "member" | "method" | "property");
|
|
10662
|
+
elementValuePattern?: (({
|
|
10136
10663
|
pattern: string;
|
|
10137
10664
|
flags?: string;
|
|
10138
10665
|
} | string)[] | ({
|
|
10139
10666
|
pattern: string;
|
|
10140
10667
|
flags?: string;
|
|
10141
10668
|
} | string));
|
|
10669
|
+
})[];
|
|
10670
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
10671
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
10672
|
+
newlinesBetween: ("ignore" | number);
|
|
10673
|
+
} | {
|
|
10674
|
+
group: (string | [string, ...(string)[]]);
|
|
10675
|
+
fallbackSort?: {
|
|
10676
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10677
|
+
order?: ("asc" | "desc");
|
|
10678
|
+
sortBy?: ("name" | "value");
|
|
10679
|
+
};
|
|
10680
|
+
commentAbove?: string;
|
|
10681
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10682
|
+
newlinesInside?: ("ignore" | number);
|
|
10683
|
+
order?: ("asc" | "desc");
|
|
10142
10684
|
sortBy?: ("name" | "value");
|
|
10143
|
-
})[]
|
|
10144
|
-
|
|
10685
|
+
})[];
|
|
10686
|
+
newlinesBetween?: ("ignore" | number);
|
|
10145
10687
|
useConfigurationIf?: {
|
|
10146
10688
|
allNamesMatchPattern?: (({
|
|
10147
10689
|
pattern: string;
|
|
@@ -10150,10 +10692,22 @@ type PerfectionistSortInterfaces = {
|
|
|
10150
10692
|
pattern: string;
|
|
10151
10693
|
flags?: string;
|
|
10152
10694
|
} | string));
|
|
10695
|
+
hasNumericKeysOnly?: boolean;
|
|
10696
|
+
declarationCommentMatchesPattern?: (({
|
|
10697
|
+
scope?: ("shallow" | "deep");
|
|
10698
|
+
pattern: string;
|
|
10699
|
+
flags?: string;
|
|
10700
|
+
} | string)[] | ({
|
|
10701
|
+
scope?: ("shallow" | "deep");
|
|
10702
|
+
pattern: string;
|
|
10703
|
+
flags?: string;
|
|
10704
|
+
} | string));
|
|
10153
10705
|
declarationMatchesPattern?: (({
|
|
10706
|
+
scope?: ("shallow" | "deep");
|
|
10154
10707
|
pattern: string;
|
|
10155
10708
|
flags?: string;
|
|
10156
10709
|
} | string)[] | ({
|
|
10710
|
+
scope?: ("shallow" | "deep");
|
|
10157
10711
|
pattern: string;
|
|
10158
10712
|
flags?: string;
|
|
10159
10713
|
} | string));
|
|
@@ -10181,43 +10735,38 @@ type PerfectionistSortInterfaces = {
|
|
|
10181
10735
|
} | string)));
|
|
10182
10736
|
});
|
|
10183
10737
|
partitionByNewLine?: boolean;
|
|
10184
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10185
|
-
ignorePattern?: (({
|
|
10186
|
-
pattern: string;
|
|
10187
|
-
flags?: string;
|
|
10188
|
-
} | string)[] | ({
|
|
10189
|
-
pattern: string;
|
|
10190
|
-
flags?: string;
|
|
10191
|
-
} | string));
|
|
10192
|
-
sortBy?: ("name" | "value");
|
|
10193
|
-
groups?: (string | string[] | {
|
|
10194
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10195
|
-
commentAbove?: string;
|
|
10196
|
-
})[];
|
|
10197
10738
|
}[];
|
|
10198
10739
|
// ----- perfectionist/sort-intersection-types -----
|
|
10199
10740
|
type PerfectionistSortIntersectionTypes = {
|
|
10200
10741
|
fallbackSort?: {
|
|
10742
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10201
10743
|
order?: ("asc" | "desc");
|
|
10202
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10203
10744
|
};
|
|
10745
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10204
10746
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10205
10747
|
ignoreCase?: boolean;
|
|
10206
10748
|
alphabet?: string;
|
|
10207
10749
|
locales?: (string | string[]);
|
|
10208
10750
|
order?: ("asc" | "desc");
|
|
10209
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10210
10751
|
customGroups?: ({
|
|
10211
|
-
newlinesInside?: (("always" | "never") | number);
|
|
10212
10752
|
fallbackSort?: {
|
|
10753
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10213
10754
|
order?: ("asc" | "desc");
|
|
10214
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10215
10755
|
};
|
|
10756
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10216
10757
|
groupName: string;
|
|
10758
|
+
newlinesInside?: ("ignore" | number);
|
|
10217
10759
|
order?: ("asc" | "desc");
|
|
10218
|
-
|
|
10219
|
-
|
|
10760
|
+
anyOf: [{
|
|
10761
|
+
elementNamePattern?: (({
|
|
10762
|
+
pattern: string;
|
|
10763
|
+
flags?: string;
|
|
10764
|
+
} | string)[] | ({
|
|
10765
|
+
pattern: string;
|
|
10766
|
+
flags?: string;
|
|
10767
|
+
} | string));
|
|
10220
10768
|
selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
|
|
10769
|
+
}, ...({
|
|
10221
10770
|
elementNamePattern?: (({
|
|
10222
10771
|
pattern: string;
|
|
10223
10772
|
flags?: string;
|
|
@@ -10225,17 +10774,17 @@ type PerfectionistSortIntersectionTypes = {
|
|
|
10225
10774
|
pattern: string;
|
|
10226
10775
|
flags?: string;
|
|
10227
10776
|
} | string));
|
|
10228
|
-
|
|
10777
|
+
selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
|
|
10778
|
+
})[]];
|
|
10229
10779
|
} | {
|
|
10230
|
-
newlinesInside?: (("always" | "never") | number);
|
|
10231
10780
|
fallbackSort?: {
|
|
10781
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10232
10782
|
order?: ("asc" | "desc");
|
|
10233
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10234
10783
|
};
|
|
10784
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10235
10785
|
groupName: string;
|
|
10786
|
+
newlinesInside?: ("ignore" | number);
|
|
10236
10787
|
order?: ("asc" | "desc");
|
|
10237
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10238
|
-
selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
|
|
10239
10788
|
elementNamePattern?: (({
|
|
10240
10789
|
pattern: string;
|
|
10241
10790
|
flags?: string;
|
|
@@ -10243,7 +10792,23 @@ type PerfectionistSortIntersectionTypes = {
|
|
|
10243
10792
|
pattern: string;
|
|
10244
10793
|
flags?: string;
|
|
10245
10794
|
} | string));
|
|
10795
|
+
selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
|
|
10796
|
+
})[];
|
|
10797
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
10798
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
10799
|
+
newlinesBetween: ("ignore" | number);
|
|
10800
|
+
} | {
|
|
10801
|
+
group: (string | [string, ...(string)[]]);
|
|
10802
|
+
fallbackSort?: {
|
|
10803
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10804
|
+
order?: ("asc" | "desc");
|
|
10805
|
+
};
|
|
10806
|
+
commentAbove?: string;
|
|
10807
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10808
|
+
newlinesInside?: ("ignore" | number);
|
|
10809
|
+
order?: ("asc" | "desc");
|
|
10246
10810
|
})[];
|
|
10811
|
+
newlinesBetween?: ("ignore" | number);
|
|
10247
10812
|
partitionByComment?: (boolean | (({
|
|
10248
10813
|
pattern: string;
|
|
10249
10814
|
flags?: string;
|
|
@@ -10267,38 +10832,38 @@ type PerfectionistSortIntersectionTypes = {
|
|
|
10267
10832
|
} | string)));
|
|
10268
10833
|
});
|
|
10269
10834
|
partitionByNewLine?: boolean;
|
|
10270
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10271
|
-
groups?: (string | string[] | {
|
|
10272
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10273
|
-
commentAbove?: string;
|
|
10274
|
-
})[];
|
|
10275
10835
|
}[];
|
|
10276
10836
|
// ----- perfectionist/sort-jsx-props -----
|
|
10277
10837
|
type PerfectionistSortJsxProps = {
|
|
10278
10838
|
fallbackSort?: {
|
|
10839
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10279
10840
|
order?: ("asc" | "desc");
|
|
10280
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10281
10841
|
};
|
|
10842
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10282
10843
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10283
10844
|
ignoreCase?: boolean;
|
|
10284
10845
|
alphabet?: string;
|
|
10285
10846
|
locales?: (string | string[]);
|
|
10286
10847
|
order?: ("asc" | "desc");
|
|
10287
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10288
10848
|
customGroups?: ({
|
|
10289
|
-
[k: string]: (string | string[]) | undefined;
|
|
10290
|
-
} | ({
|
|
10291
|
-
newlinesInside?: (("always" | "never") | number);
|
|
10292
10849
|
fallbackSort?: {
|
|
10850
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10293
10851
|
order?: ("asc" | "desc");
|
|
10294
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10295
10852
|
};
|
|
10853
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10296
10854
|
groupName: string;
|
|
10855
|
+
newlinesInside?: ("ignore" | number);
|
|
10297
10856
|
order?: ("asc" | "desc");
|
|
10298
|
-
|
|
10299
|
-
|
|
10857
|
+
anyOf: [{
|
|
10858
|
+
elementNamePattern?: (({
|
|
10859
|
+
pattern: string;
|
|
10860
|
+
flags?: string;
|
|
10861
|
+
} | string)[] | ({
|
|
10862
|
+
pattern: string;
|
|
10863
|
+
flags?: string;
|
|
10864
|
+
} | string));
|
|
10300
10865
|
modifiers?: ("shorthand" | "multiline")[];
|
|
10301
|
-
selector?:
|
|
10866
|
+
selector?: "prop";
|
|
10302
10867
|
elementValuePattern?: (({
|
|
10303
10868
|
pattern: string;
|
|
10304
10869
|
flags?: string;
|
|
@@ -10306,6 +10871,7 @@ type PerfectionistSortJsxProps = {
|
|
|
10306
10871
|
pattern: string;
|
|
10307
10872
|
flags?: string;
|
|
10308
10873
|
} | string));
|
|
10874
|
+
}, ...({
|
|
10309
10875
|
elementNamePattern?: (({
|
|
10310
10876
|
pattern: string;
|
|
10311
10877
|
flags?: string;
|
|
@@ -10313,33 +10879,57 @@ type PerfectionistSortJsxProps = {
|
|
|
10313
10879
|
pattern: string;
|
|
10314
10880
|
flags?: string;
|
|
10315
10881
|
} | string));
|
|
10316
|
-
|
|
10882
|
+
modifiers?: ("shorthand" | "multiline")[];
|
|
10883
|
+
selector?: "prop";
|
|
10884
|
+
elementValuePattern?: (({
|
|
10885
|
+
pattern: string;
|
|
10886
|
+
flags?: string;
|
|
10887
|
+
} | string)[] | ({
|
|
10888
|
+
pattern: string;
|
|
10889
|
+
flags?: string;
|
|
10890
|
+
} | string));
|
|
10891
|
+
})[]];
|
|
10317
10892
|
} | {
|
|
10318
|
-
newlinesInside?: (("always" | "never") | number);
|
|
10319
10893
|
fallbackSort?: {
|
|
10894
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10320
10895
|
order?: ("asc" | "desc");
|
|
10321
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10322
10896
|
};
|
|
10897
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10323
10898
|
groupName: string;
|
|
10899
|
+
newlinesInside?: ("ignore" | number);
|
|
10324
10900
|
order?: ("asc" | "desc");
|
|
10325
|
-
|
|
10326
|
-
modifiers?: ("shorthand" | "multiline")[];
|
|
10327
|
-
selector?: ("multiline" | "prop" | "shorthand");
|
|
10328
|
-
elementValuePattern?: (({
|
|
10901
|
+
elementNamePattern?: (({
|
|
10329
10902
|
pattern: string;
|
|
10330
10903
|
flags?: string;
|
|
10331
10904
|
} | string)[] | ({
|
|
10332
10905
|
pattern: string;
|
|
10333
10906
|
flags?: string;
|
|
10334
10907
|
} | string));
|
|
10335
|
-
|
|
10908
|
+
modifiers?: ("shorthand" | "multiline")[];
|
|
10909
|
+
selector?: "prop";
|
|
10910
|
+
elementValuePattern?: (({
|
|
10336
10911
|
pattern: string;
|
|
10337
10912
|
flags?: string;
|
|
10338
10913
|
} | string)[] | ({
|
|
10339
10914
|
pattern: string;
|
|
10340
10915
|
flags?: string;
|
|
10341
10916
|
} | string));
|
|
10342
|
-
})[]
|
|
10917
|
+
})[];
|
|
10918
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
10919
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
10920
|
+
newlinesBetween: ("ignore" | number);
|
|
10921
|
+
} | {
|
|
10922
|
+
group: (string | [string, ...(string)[]]);
|
|
10923
|
+
fallbackSort?: {
|
|
10924
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10925
|
+
order?: ("asc" | "desc");
|
|
10926
|
+
};
|
|
10927
|
+
commentAbove?: string;
|
|
10928
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10929
|
+
newlinesInside?: ("ignore" | number);
|
|
10930
|
+
order?: ("asc" | "desc");
|
|
10931
|
+
})[];
|
|
10932
|
+
newlinesBetween?: ("ignore" | number);
|
|
10343
10933
|
useConfigurationIf?: {
|
|
10344
10934
|
allNamesMatchPattern?: (({
|
|
10345
10935
|
pattern: string;
|
|
@@ -10357,41 +10947,29 @@ type PerfectionistSortJsxProps = {
|
|
|
10357
10947
|
} | string));
|
|
10358
10948
|
};
|
|
10359
10949
|
partitionByNewLine?: boolean;
|
|
10360
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10361
|
-
ignorePattern?: (({
|
|
10362
|
-
pattern: string;
|
|
10363
|
-
flags?: string;
|
|
10364
|
-
} | string)[] | ({
|
|
10365
|
-
pattern: string;
|
|
10366
|
-
flags?: string;
|
|
10367
|
-
} | string));
|
|
10368
|
-
groups?: (string | string[] | {
|
|
10369
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10370
|
-
commentAbove?: string;
|
|
10371
|
-
})[];
|
|
10372
10950
|
}[];
|
|
10373
10951
|
// ----- perfectionist/sort-maps -----
|
|
10374
10952
|
type PerfectionistSortMaps = {
|
|
10375
10953
|
fallbackSort?: {
|
|
10954
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10376
10955
|
order?: ("asc" | "desc");
|
|
10377
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10378
10956
|
};
|
|
10957
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10379
10958
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10380
10959
|
ignoreCase?: boolean;
|
|
10381
10960
|
alphabet?: string;
|
|
10382
10961
|
locales?: (string | string[]);
|
|
10383
10962
|
order?: ("asc" | "desc");
|
|
10384
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10385
10963
|
customGroups?: ({
|
|
10386
|
-
newlinesInside?: (("always" | "never") | number);
|
|
10387
10964
|
fallbackSort?: {
|
|
10965
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10388
10966
|
order?: ("asc" | "desc");
|
|
10389
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10390
10967
|
};
|
|
10968
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10391
10969
|
groupName: string;
|
|
10970
|
+
newlinesInside?: ("ignore" | number);
|
|
10392
10971
|
order?: ("asc" | "desc");
|
|
10393
|
-
|
|
10394
|
-
anyOf?: {
|
|
10972
|
+
anyOf: [{
|
|
10395
10973
|
elementNamePattern?: (({
|
|
10396
10974
|
pattern: string;
|
|
10397
10975
|
flags?: string;
|
|
@@ -10399,16 +10977,24 @@ type PerfectionistSortMaps = {
|
|
|
10399
10977
|
pattern: string;
|
|
10400
10978
|
flags?: string;
|
|
10401
10979
|
} | string));
|
|
10402
|
-
}
|
|
10980
|
+
}, ...({
|
|
10981
|
+
elementNamePattern?: (({
|
|
10982
|
+
pattern: string;
|
|
10983
|
+
flags?: string;
|
|
10984
|
+
} | string)[] | ({
|
|
10985
|
+
pattern: string;
|
|
10986
|
+
flags?: string;
|
|
10987
|
+
} | string));
|
|
10988
|
+
})[]];
|
|
10403
10989
|
} | {
|
|
10404
|
-
newlinesInside?: (("always" | "never") | number);
|
|
10405
10990
|
fallbackSort?: {
|
|
10991
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10406
10992
|
order?: ("asc" | "desc");
|
|
10407
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10408
10993
|
};
|
|
10994
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10409
10995
|
groupName: string;
|
|
10996
|
+
newlinesInside?: ("ignore" | number);
|
|
10410
10997
|
order?: ("asc" | "desc");
|
|
10411
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10412
10998
|
elementNamePattern?: (({
|
|
10413
10999
|
pattern: string;
|
|
10414
11000
|
flags?: string;
|
|
@@ -10417,6 +11003,21 @@ type PerfectionistSortMaps = {
|
|
|
10417
11003
|
flags?: string;
|
|
10418
11004
|
} | string));
|
|
10419
11005
|
})[];
|
|
11006
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
11007
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
11008
|
+
newlinesBetween: ("ignore" | number);
|
|
11009
|
+
} | {
|
|
11010
|
+
group: (string | [string, ...(string)[]]);
|
|
11011
|
+
fallbackSort?: {
|
|
11012
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11013
|
+
order?: ("asc" | "desc");
|
|
11014
|
+
};
|
|
11015
|
+
commentAbove?: string;
|
|
11016
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11017
|
+
newlinesInside?: ("ignore" | number);
|
|
11018
|
+
order?: ("asc" | "desc");
|
|
11019
|
+
})[];
|
|
11020
|
+
newlinesBetween?: ("ignore" | number);
|
|
10420
11021
|
useConfigurationIf?: {
|
|
10421
11022
|
allNamesMatchPattern?: (({
|
|
10422
11023
|
pattern: string;
|
|
@@ -10449,34 +11050,36 @@ type PerfectionistSortMaps = {
|
|
|
10449
11050
|
} | string)));
|
|
10450
11051
|
});
|
|
10451
11052
|
partitionByNewLine?: boolean;
|
|
10452
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10453
|
-
groups?: (string | string[] | {
|
|
10454
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10455
|
-
commentAbove?: string;
|
|
10456
|
-
})[];
|
|
10457
11053
|
}[];
|
|
10458
11054
|
// ----- perfectionist/sort-modules -----
|
|
10459
11055
|
type PerfectionistSortModules = [] | [{
|
|
10460
11056
|
fallbackSort?: {
|
|
11057
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "usage");
|
|
10461
11058
|
order?: ("asc" | "desc");
|
|
10462
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10463
11059
|
};
|
|
11060
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "usage");
|
|
10464
11061
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10465
11062
|
ignoreCase?: boolean;
|
|
10466
11063
|
alphabet?: string;
|
|
10467
11064
|
locales?: (string | string[]);
|
|
10468
11065
|
order?: ("asc" | "desc");
|
|
10469
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10470
11066
|
customGroups?: ({
|
|
10471
|
-
newlinesInside?: (("always" | "never") | number);
|
|
10472
11067
|
fallbackSort?: {
|
|
11068
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "usage");
|
|
10473
11069
|
order?: ("asc" | "desc");
|
|
10474
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10475
11070
|
};
|
|
11071
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "usage");
|
|
10476
11072
|
groupName: string;
|
|
11073
|
+
newlinesInside?: ("ignore" | number);
|
|
10477
11074
|
order?: ("asc" | "desc");
|
|
10478
|
-
|
|
10479
|
-
|
|
11075
|
+
anyOf: [{
|
|
11076
|
+
elementNamePattern?: (({
|
|
11077
|
+
pattern: string;
|
|
11078
|
+
flags?: string;
|
|
11079
|
+
} | string)[] | ({
|
|
11080
|
+
pattern: string;
|
|
11081
|
+
flags?: string;
|
|
11082
|
+
} | string));
|
|
10480
11083
|
modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[];
|
|
10481
11084
|
selector?: ("enum" | "function" | "interface" | "type" | "class");
|
|
10482
11085
|
decoratorNamePattern?: (({
|
|
@@ -10486,6 +11089,7 @@ type PerfectionistSortModules = [] | [{
|
|
|
10486
11089
|
pattern: string;
|
|
10487
11090
|
flags?: string;
|
|
10488
11091
|
} | string));
|
|
11092
|
+
}, ...({
|
|
10489
11093
|
elementNamePattern?: (({
|
|
10490
11094
|
pattern: string;
|
|
10491
11095
|
flags?: string;
|
|
@@ -10493,26 +11097,35 @@ type PerfectionistSortModules = [] | [{
|
|
|
10493
11097
|
pattern: string;
|
|
10494
11098
|
flags?: string;
|
|
10495
11099
|
} | string));
|
|
10496
|
-
|
|
11100
|
+
modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[];
|
|
11101
|
+
selector?: ("enum" | "function" | "interface" | "type" | "class");
|
|
11102
|
+
decoratorNamePattern?: (({
|
|
11103
|
+
pattern: string;
|
|
11104
|
+
flags?: string;
|
|
11105
|
+
} | string)[] | ({
|
|
11106
|
+
pattern: string;
|
|
11107
|
+
flags?: string;
|
|
11108
|
+
} | string));
|
|
11109
|
+
})[]];
|
|
10497
11110
|
} | {
|
|
10498
|
-
newlinesInside?: (("always" | "never") | number);
|
|
10499
11111
|
fallbackSort?: {
|
|
11112
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "usage");
|
|
10500
11113
|
order?: ("asc" | "desc");
|
|
10501
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10502
11114
|
};
|
|
11115
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "usage");
|
|
10503
11116
|
groupName: string;
|
|
11117
|
+
newlinesInside?: ("ignore" | number);
|
|
10504
11118
|
order?: ("asc" | "desc");
|
|
10505
|
-
|
|
10506
|
-
modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[];
|
|
10507
|
-
selector?: ("enum" | "function" | "interface" | "type" | "class");
|
|
10508
|
-
decoratorNamePattern?: (({
|
|
11119
|
+
elementNamePattern?: (({
|
|
10509
11120
|
pattern: string;
|
|
10510
11121
|
flags?: string;
|
|
10511
11122
|
} | string)[] | ({
|
|
10512
11123
|
pattern: string;
|
|
10513
11124
|
flags?: string;
|
|
10514
11125
|
} | string));
|
|
10515
|
-
|
|
11126
|
+
modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[];
|
|
11127
|
+
selector?: ("enum" | "function" | "interface" | "type" | "class");
|
|
11128
|
+
decoratorNamePattern?: (({
|
|
10516
11129
|
pattern: string;
|
|
10517
11130
|
flags?: string;
|
|
10518
11131
|
} | string)[] | ({
|
|
@@ -10520,6 +11133,21 @@ type PerfectionistSortModules = [] | [{
|
|
|
10520
11133
|
flags?: string;
|
|
10521
11134
|
} | string));
|
|
10522
11135
|
})[];
|
|
11136
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
11137
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
11138
|
+
newlinesBetween: ("ignore" | number);
|
|
11139
|
+
} | {
|
|
11140
|
+
group: (string | [string, ...(string)[]]);
|
|
11141
|
+
fallbackSort?: {
|
|
11142
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "usage");
|
|
11143
|
+
order?: ("asc" | "desc");
|
|
11144
|
+
};
|
|
11145
|
+
commentAbove?: string;
|
|
11146
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "usage");
|
|
11147
|
+
newlinesInside?: ("ignore" | number);
|
|
11148
|
+
order?: ("asc" | "desc");
|
|
11149
|
+
})[];
|
|
11150
|
+
newlinesBetween?: ("ignore" | number);
|
|
10523
11151
|
partitionByComment?: (boolean | (({
|
|
10524
11152
|
pattern: string;
|
|
10525
11153
|
flags?: string;
|
|
@@ -10543,38 +11171,39 @@ type PerfectionistSortModules = [] | [{
|
|
|
10543
11171
|
} | string)));
|
|
10544
11172
|
});
|
|
10545
11173
|
partitionByNewLine?: boolean;
|
|
10546
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10547
|
-
groups?: (string | string[] | {
|
|
10548
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10549
|
-
commentAbove?: string;
|
|
10550
|
-
})[];
|
|
10551
11174
|
}];
|
|
10552
11175
|
// ----- perfectionist/sort-named-exports -----
|
|
10553
11176
|
type PerfectionistSortNamedExports = {
|
|
10554
11177
|
fallbackSort?: {
|
|
11178
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10555
11179
|
order?: ("asc" | "desc");
|
|
10556
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10557
11180
|
};
|
|
11181
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10558
11182
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10559
11183
|
ignoreCase?: boolean;
|
|
10560
11184
|
alphabet?: string;
|
|
10561
11185
|
locales?: (string | string[]);
|
|
10562
11186
|
order?: ("asc" | "desc");
|
|
10563
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10564
|
-
groupKind?: ("mixed" | "values-first" | "types-first");
|
|
10565
|
-
ignoreAlias?: boolean;
|
|
10566
11187
|
customGroups?: ({
|
|
10567
|
-
newlinesInside?: (("always" | "never") | number);
|
|
10568
11188
|
fallbackSort?: {
|
|
11189
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10569
11190
|
order?: ("asc" | "desc");
|
|
10570
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10571
11191
|
};
|
|
11192
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10572
11193
|
groupName: string;
|
|
11194
|
+
newlinesInside?: ("ignore" | number);
|
|
10573
11195
|
order?: ("asc" | "desc");
|
|
10574
|
-
|
|
10575
|
-
|
|
11196
|
+
anyOf: [{
|
|
11197
|
+
elementNamePattern?: (({
|
|
11198
|
+
pattern: string;
|
|
11199
|
+
flags?: string;
|
|
11200
|
+
} | string)[] | ({
|
|
11201
|
+
pattern: string;
|
|
11202
|
+
flags?: string;
|
|
11203
|
+
} | string));
|
|
10576
11204
|
modifiers?: ("value" | "type")[];
|
|
10577
11205
|
selector?: "export";
|
|
11206
|
+
}, ...({
|
|
10578
11207
|
elementNamePattern?: (({
|
|
10579
11208
|
pattern: string;
|
|
10580
11209
|
flags?: string;
|
|
@@ -10582,18 +11211,18 @@ type PerfectionistSortNamedExports = {
|
|
|
10582
11211
|
pattern: string;
|
|
10583
11212
|
flags?: string;
|
|
10584
11213
|
} | string));
|
|
10585
|
-
|
|
11214
|
+
modifiers?: ("value" | "type")[];
|
|
11215
|
+
selector?: "export";
|
|
11216
|
+
})[]];
|
|
10586
11217
|
} | {
|
|
10587
|
-
newlinesInside?: (("always" | "never") | number);
|
|
10588
11218
|
fallbackSort?: {
|
|
11219
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10589
11220
|
order?: ("asc" | "desc");
|
|
10590
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10591
11221
|
};
|
|
11222
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10592
11223
|
groupName: string;
|
|
11224
|
+
newlinesInside?: ("ignore" | number);
|
|
10593
11225
|
order?: ("asc" | "desc");
|
|
10594
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10595
|
-
modifiers?: ("value" | "type")[];
|
|
10596
|
-
selector?: "export";
|
|
10597
11226
|
elementNamePattern?: (({
|
|
10598
11227
|
pattern: string;
|
|
10599
11228
|
flags?: string;
|
|
@@ -10601,7 +11230,25 @@ type PerfectionistSortNamedExports = {
|
|
|
10601
11230
|
pattern: string;
|
|
10602
11231
|
flags?: string;
|
|
10603
11232
|
} | string));
|
|
11233
|
+
modifiers?: ("value" | "type")[];
|
|
11234
|
+
selector?: "export";
|
|
11235
|
+
})[];
|
|
11236
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
11237
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
11238
|
+
newlinesBetween: ("ignore" | number);
|
|
11239
|
+
} | {
|
|
11240
|
+
group: (string | [string, ...(string)[]]);
|
|
11241
|
+
fallbackSort?: {
|
|
11242
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11243
|
+
order?: ("asc" | "desc");
|
|
11244
|
+
};
|
|
11245
|
+
commentAbove?: string;
|
|
11246
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11247
|
+
newlinesInside?: ("ignore" | number);
|
|
11248
|
+
order?: ("asc" | "desc");
|
|
10604
11249
|
})[];
|
|
11250
|
+
newlinesBetween?: ("ignore" | number);
|
|
11251
|
+
ignoreAlias?: boolean;
|
|
10605
11252
|
partitionByComment?: (boolean | (({
|
|
10606
11253
|
pattern: string;
|
|
10607
11254
|
flags?: string;
|
|
@@ -10625,38 +11272,39 @@ type PerfectionistSortNamedExports = {
|
|
|
10625
11272
|
} | string)));
|
|
10626
11273
|
});
|
|
10627
11274
|
partitionByNewLine?: boolean;
|
|
10628
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10629
|
-
groups?: (string | string[] | {
|
|
10630
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10631
|
-
commentAbove?: string;
|
|
10632
|
-
})[];
|
|
10633
11275
|
}[];
|
|
10634
11276
|
// ----- perfectionist/sort-named-imports -----
|
|
10635
11277
|
type PerfectionistSortNamedImports = {
|
|
10636
11278
|
fallbackSort?: {
|
|
11279
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10637
11280
|
order?: ("asc" | "desc");
|
|
10638
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10639
11281
|
};
|
|
11282
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10640
11283
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10641
11284
|
ignoreCase?: boolean;
|
|
10642
11285
|
alphabet?: string;
|
|
10643
11286
|
locales?: (string | string[]);
|
|
10644
11287
|
order?: ("asc" | "desc");
|
|
10645
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10646
|
-
groupKind?: ("mixed" | "values-first" | "types-first");
|
|
10647
|
-
ignoreAlias?: boolean;
|
|
10648
11288
|
customGroups?: ({
|
|
10649
|
-
newlinesInside?: (("always" | "never") | number);
|
|
10650
11289
|
fallbackSort?: {
|
|
11290
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10651
11291
|
order?: ("asc" | "desc");
|
|
10652
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10653
11292
|
};
|
|
11293
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10654
11294
|
groupName: string;
|
|
11295
|
+
newlinesInside?: ("ignore" | number);
|
|
10655
11296
|
order?: ("asc" | "desc");
|
|
10656
|
-
|
|
10657
|
-
|
|
11297
|
+
anyOf: [{
|
|
11298
|
+
elementNamePattern?: (({
|
|
11299
|
+
pattern: string;
|
|
11300
|
+
flags?: string;
|
|
11301
|
+
} | string)[] | ({
|
|
11302
|
+
pattern: string;
|
|
11303
|
+
flags?: string;
|
|
11304
|
+
} | string));
|
|
10658
11305
|
modifiers?: ("value" | "type")[];
|
|
10659
11306
|
selector?: "import";
|
|
11307
|
+
}, ...({
|
|
10660
11308
|
elementNamePattern?: (({
|
|
10661
11309
|
pattern: string;
|
|
10662
11310
|
flags?: string;
|
|
@@ -10664,18 +11312,18 @@ type PerfectionistSortNamedImports = {
|
|
|
10664
11312
|
pattern: string;
|
|
10665
11313
|
flags?: string;
|
|
10666
11314
|
} | string));
|
|
10667
|
-
|
|
11315
|
+
modifiers?: ("value" | "type")[];
|
|
11316
|
+
selector?: "import";
|
|
11317
|
+
})[]];
|
|
10668
11318
|
} | {
|
|
10669
|
-
newlinesInside?: (("always" | "never") | number);
|
|
10670
11319
|
fallbackSort?: {
|
|
11320
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10671
11321
|
order?: ("asc" | "desc");
|
|
10672
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10673
11322
|
};
|
|
11323
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10674
11324
|
groupName: string;
|
|
11325
|
+
newlinesInside?: ("ignore" | number);
|
|
10675
11326
|
order?: ("asc" | "desc");
|
|
10676
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10677
|
-
modifiers?: ("value" | "type")[];
|
|
10678
|
-
selector?: "import";
|
|
10679
11327
|
elementNamePattern?: (({
|
|
10680
11328
|
pattern: string;
|
|
10681
11329
|
flags?: string;
|
|
@@ -10683,7 +11331,25 @@ type PerfectionistSortNamedImports = {
|
|
|
10683
11331
|
pattern: string;
|
|
10684
11332
|
flags?: string;
|
|
10685
11333
|
} | string));
|
|
11334
|
+
modifiers?: ("value" | "type")[];
|
|
11335
|
+
selector?: "import";
|
|
11336
|
+
})[];
|
|
11337
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
11338
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
11339
|
+
newlinesBetween: ("ignore" | number);
|
|
11340
|
+
} | {
|
|
11341
|
+
group: (string | [string, ...(string)[]]);
|
|
11342
|
+
fallbackSort?: {
|
|
11343
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11344
|
+
order?: ("asc" | "desc");
|
|
11345
|
+
};
|
|
11346
|
+
commentAbove?: string;
|
|
11347
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11348
|
+
newlinesInside?: ("ignore" | number);
|
|
11349
|
+
order?: ("asc" | "desc");
|
|
10686
11350
|
})[];
|
|
11351
|
+
newlinesBetween?: ("ignore" | number);
|
|
11352
|
+
ignoreAlias?: boolean;
|
|
10687
11353
|
partitionByComment?: (boolean | (({
|
|
10688
11354
|
pattern: string;
|
|
10689
11355
|
flags?: string;
|
|
@@ -10707,40 +11373,42 @@ type PerfectionistSortNamedImports = {
|
|
|
10707
11373
|
} | string)));
|
|
10708
11374
|
});
|
|
10709
11375
|
partitionByNewLine?: boolean;
|
|
10710
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10711
|
-
groups?: (string | string[] | {
|
|
10712
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10713
|
-
commentAbove?: string;
|
|
10714
|
-
})[];
|
|
10715
11376
|
}[];
|
|
10716
11377
|
// ----- perfectionist/sort-object-types -----
|
|
10717
11378
|
type PerfectionistSortObjectTypes = {
|
|
10718
11379
|
fallbackSort?: {
|
|
11380
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10719
11381
|
order?: ("asc" | "desc");
|
|
10720
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10721
11382
|
sortBy?: ("name" | "value");
|
|
10722
11383
|
};
|
|
11384
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10723
11385
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10724
11386
|
ignoreCase?: boolean;
|
|
10725
11387
|
alphabet?: string;
|
|
10726
11388
|
locales?: (string | string[]);
|
|
10727
11389
|
order?: ("asc" | "desc");
|
|
10728
|
-
|
|
11390
|
+
sortBy?: ("name" | "value");
|
|
10729
11391
|
customGroups?: ({
|
|
10730
|
-
[k: string]: (string | string[]) | undefined;
|
|
10731
|
-
} | ({
|
|
10732
|
-
newlinesInside?: (("always" | "never") | number);
|
|
10733
11392
|
fallbackSort?: {
|
|
11393
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10734
11394
|
order?: ("asc" | "desc");
|
|
10735
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10736
11395
|
sortBy?: ("name" | "value");
|
|
10737
11396
|
};
|
|
11397
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10738
11398
|
groupName: string;
|
|
11399
|
+
newlinesInside?: ("ignore" | number);
|
|
10739
11400
|
order?: ("asc" | "desc");
|
|
10740
|
-
|
|
10741
|
-
anyOf
|
|
11401
|
+
sortBy?: ("name" | "value");
|
|
11402
|
+
anyOf: [{
|
|
11403
|
+
elementNamePattern?: (({
|
|
11404
|
+
pattern: string;
|
|
11405
|
+
flags?: string;
|
|
11406
|
+
} | string)[] | ({
|
|
11407
|
+
pattern: string;
|
|
11408
|
+
flags?: string;
|
|
11409
|
+
} | string));
|
|
10742
11410
|
modifiers?: ("optional" | "required" | "multiline")[];
|
|
10743
|
-
selector?: ("index-signature" | "member" | "method" | "
|
|
11411
|
+
selector?: ("index-signature" | "member" | "method" | "property");
|
|
10744
11412
|
elementValuePattern?: (({
|
|
10745
11413
|
pattern: string;
|
|
10746
11414
|
flags?: string;
|
|
@@ -10748,6 +11416,7 @@ type PerfectionistSortObjectTypes = {
|
|
|
10748
11416
|
pattern: string;
|
|
10749
11417
|
flags?: string;
|
|
10750
11418
|
} | string));
|
|
11419
|
+
}, ...({
|
|
10751
11420
|
elementNamePattern?: (({
|
|
10752
11421
|
pattern: string;
|
|
10753
11422
|
flags?: string;
|
|
@@ -10755,37 +11424,61 @@ type PerfectionistSortObjectTypes = {
|
|
|
10755
11424
|
pattern: string;
|
|
10756
11425
|
flags?: string;
|
|
10757
11426
|
} | string));
|
|
10758
|
-
|
|
10759
|
-
|
|
11427
|
+
modifiers?: ("optional" | "required" | "multiline")[];
|
|
11428
|
+
selector?: ("index-signature" | "member" | "method" | "property");
|
|
11429
|
+
elementValuePattern?: (({
|
|
11430
|
+
pattern: string;
|
|
11431
|
+
flags?: string;
|
|
11432
|
+
} | string)[] | ({
|
|
11433
|
+
pattern: string;
|
|
11434
|
+
flags?: string;
|
|
11435
|
+
} | string));
|
|
11436
|
+
})[]];
|
|
10760
11437
|
} | {
|
|
10761
|
-
newlinesInside?: (("always" | "never") | number);
|
|
10762
11438
|
fallbackSort?: {
|
|
11439
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10763
11440
|
order?: ("asc" | "desc");
|
|
10764
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10765
11441
|
sortBy?: ("name" | "value");
|
|
10766
11442
|
};
|
|
11443
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10767
11444
|
groupName: string;
|
|
11445
|
+
newlinesInside?: ("ignore" | number);
|
|
10768
11446
|
order?: ("asc" | "desc");
|
|
10769
|
-
|
|
10770
|
-
|
|
10771
|
-
selector?: ("index-signature" | "member" | "method" | "multiline" | "property");
|
|
10772
|
-
elementValuePattern?: (({
|
|
11447
|
+
sortBy?: ("name" | "value");
|
|
11448
|
+
elementNamePattern?: (({
|
|
10773
11449
|
pattern: string;
|
|
10774
11450
|
flags?: string;
|
|
10775
11451
|
} | string)[] | ({
|
|
10776
11452
|
pattern: string;
|
|
10777
11453
|
flags?: string;
|
|
10778
11454
|
} | string));
|
|
10779
|
-
|
|
11455
|
+
modifiers?: ("optional" | "required" | "multiline")[];
|
|
11456
|
+
selector?: ("index-signature" | "member" | "method" | "property");
|
|
11457
|
+
elementValuePattern?: (({
|
|
10780
11458
|
pattern: string;
|
|
10781
11459
|
flags?: string;
|
|
10782
11460
|
} | string)[] | ({
|
|
10783
11461
|
pattern: string;
|
|
10784
11462
|
flags?: string;
|
|
10785
11463
|
} | string));
|
|
11464
|
+
})[];
|
|
11465
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
11466
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
11467
|
+
newlinesBetween: ("ignore" | number);
|
|
11468
|
+
} | {
|
|
11469
|
+
group: (string | [string, ...(string)[]]);
|
|
11470
|
+
fallbackSort?: {
|
|
11471
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11472
|
+
order?: ("asc" | "desc");
|
|
11473
|
+
sortBy?: ("name" | "value");
|
|
11474
|
+
};
|
|
11475
|
+
commentAbove?: string;
|
|
11476
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11477
|
+
newlinesInside?: ("ignore" | number);
|
|
11478
|
+
order?: ("asc" | "desc");
|
|
10786
11479
|
sortBy?: ("name" | "value");
|
|
10787
|
-
})[]
|
|
10788
|
-
|
|
11480
|
+
})[];
|
|
11481
|
+
newlinesBetween?: ("ignore" | number);
|
|
10789
11482
|
useConfigurationIf?: {
|
|
10790
11483
|
allNamesMatchPattern?: (({
|
|
10791
11484
|
pattern: string;
|
|
@@ -10794,10 +11487,22 @@ type PerfectionistSortObjectTypes = {
|
|
|
10794
11487
|
pattern: string;
|
|
10795
11488
|
flags?: string;
|
|
10796
11489
|
} | string));
|
|
11490
|
+
hasNumericKeysOnly?: boolean;
|
|
11491
|
+
declarationCommentMatchesPattern?: (({
|
|
11492
|
+
scope?: ("shallow" | "deep");
|
|
11493
|
+
pattern: string;
|
|
11494
|
+
flags?: string;
|
|
11495
|
+
} | string)[] | ({
|
|
11496
|
+
scope?: ("shallow" | "deep");
|
|
11497
|
+
pattern: string;
|
|
11498
|
+
flags?: string;
|
|
11499
|
+
} | string));
|
|
10797
11500
|
declarationMatchesPattern?: (({
|
|
11501
|
+
scope?: ("shallow" | "deep");
|
|
10798
11502
|
pattern: string;
|
|
10799
11503
|
flags?: string;
|
|
10800
11504
|
} | string)[] | ({
|
|
11505
|
+
scope?: ("shallow" | "deep");
|
|
10801
11506
|
pattern: string;
|
|
10802
11507
|
flags?: string;
|
|
10803
11508
|
} | string));
|
|
@@ -10825,49 +11530,38 @@ type PerfectionistSortObjectTypes = {
|
|
|
10825
11530
|
} | string)));
|
|
10826
11531
|
});
|
|
10827
11532
|
partitionByNewLine?: boolean;
|
|
10828
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10829
|
-
ignorePattern?: (({
|
|
10830
|
-
pattern: string;
|
|
10831
|
-
flags?: string;
|
|
10832
|
-
} | string)[] | ({
|
|
10833
|
-
pattern: string;
|
|
10834
|
-
flags?: string;
|
|
10835
|
-
} | string));
|
|
10836
|
-
sortBy?: ("name" | "value");
|
|
10837
|
-
groups?: (string | string[] | {
|
|
10838
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10839
|
-
commentAbove?: string;
|
|
10840
|
-
})[];
|
|
10841
11533
|
}[];
|
|
10842
11534
|
// ----- perfectionist/sort-objects -----
|
|
10843
11535
|
type PerfectionistSortObjects = {
|
|
10844
11536
|
fallbackSort?: {
|
|
11537
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10845
11538
|
order?: ("asc" | "desc");
|
|
10846
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10847
11539
|
};
|
|
11540
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10848
11541
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10849
11542
|
ignoreCase?: boolean;
|
|
10850
11543
|
alphabet?: string;
|
|
10851
11544
|
locales?: (string | string[]);
|
|
10852
11545
|
order?: ("asc" | "desc");
|
|
10853
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10854
|
-
destructuredObjects?: (boolean | {
|
|
10855
|
-
groups?: boolean;
|
|
10856
|
-
});
|
|
10857
11546
|
customGroups?: ({
|
|
10858
|
-
[k: string]: (string | string[]) | undefined;
|
|
10859
|
-
} | ({
|
|
10860
|
-
newlinesInside?: (("always" | "never") | number);
|
|
10861
11547
|
fallbackSort?: {
|
|
11548
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10862
11549
|
order?: ("asc" | "desc");
|
|
10863
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10864
11550
|
};
|
|
11551
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10865
11552
|
groupName: string;
|
|
11553
|
+
newlinesInside?: ("ignore" | number);
|
|
10866
11554
|
order?: ("asc" | "desc");
|
|
10867
|
-
|
|
10868
|
-
|
|
10869
|
-
|
|
10870
|
-
|
|
11555
|
+
anyOf: [{
|
|
11556
|
+
elementNamePattern?: (({
|
|
11557
|
+
pattern: string;
|
|
11558
|
+
flags?: string;
|
|
11559
|
+
} | string)[] | ({
|
|
11560
|
+
pattern: string;
|
|
11561
|
+
flags?: string;
|
|
11562
|
+
} | string));
|
|
11563
|
+
modifiers?: ("multiline")[];
|
|
11564
|
+
selector?: ("member" | "method" | "property");
|
|
10871
11565
|
elementValuePattern?: (({
|
|
10872
11566
|
pattern: string;
|
|
10873
11567
|
flags?: string;
|
|
@@ -10875,6 +11569,7 @@ type PerfectionistSortObjects = {
|
|
|
10875
11569
|
pattern: string;
|
|
10876
11570
|
flags?: string;
|
|
10877
11571
|
} | string));
|
|
11572
|
+
}, ...({
|
|
10878
11573
|
elementNamePattern?: (({
|
|
10879
11574
|
pattern: string;
|
|
10880
11575
|
flags?: string;
|
|
@@ -10882,33 +11577,57 @@ type PerfectionistSortObjects = {
|
|
|
10882
11577
|
pattern: string;
|
|
10883
11578
|
flags?: string;
|
|
10884
11579
|
} | string));
|
|
10885
|
-
|
|
11580
|
+
modifiers?: ("multiline")[];
|
|
11581
|
+
selector?: ("member" | "method" | "property");
|
|
11582
|
+
elementValuePattern?: (({
|
|
11583
|
+
pattern: string;
|
|
11584
|
+
flags?: string;
|
|
11585
|
+
} | string)[] | ({
|
|
11586
|
+
pattern: string;
|
|
11587
|
+
flags?: string;
|
|
11588
|
+
} | string));
|
|
11589
|
+
})[]];
|
|
10886
11590
|
} | {
|
|
10887
|
-
newlinesInside?: (("always" | "never") | number);
|
|
10888
11591
|
fallbackSort?: {
|
|
11592
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10889
11593
|
order?: ("asc" | "desc");
|
|
10890
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10891
11594
|
};
|
|
11595
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10892
11596
|
groupName: string;
|
|
11597
|
+
newlinesInside?: ("ignore" | number);
|
|
10893
11598
|
order?: ("asc" | "desc");
|
|
10894
|
-
|
|
10895
|
-
modifiers?: ("optional" | "required" | "multiline")[];
|
|
10896
|
-
selector?: ("member" | "method" | "multiline" | "property");
|
|
10897
|
-
elementValuePattern?: (({
|
|
11599
|
+
elementNamePattern?: (({
|
|
10898
11600
|
pattern: string;
|
|
10899
11601
|
flags?: string;
|
|
10900
11602
|
} | string)[] | ({
|
|
10901
11603
|
pattern: string;
|
|
10902
11604
|
flags?: string;
|
|
10903
11605
|
} | string));
|
|
10904
|
-
|
|
11606
|
+
modifiers?: ("multiline")[];
|
|
11607
|
+
selector?: ("member" | "method" | "property");
|
|
11608
|
+
elementValuePattern?: (({
|
|
10905
11609
|
pattern: string;
|
|
10906
11610
|
flags?: string;
|
|
10907
11611
|
} | string)[] | ({
|
|
10908
11612
|
pattern: string;
|
|
10909
11613
|
flags?: string;
|
|
10910
11614
|
} | string));
|
|
10911
|
-
})[]
|
|
11615
|
+
})[];
|
|
11616
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
11617
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
11618
|
+
newlinesBetween: ("ignore" | number);
|
|
11619
|
+
} | {
|
|
11620
|
+
group: (string | [string, ...(string)[]]);
|
|
11621
|
+
fallbackSort?: {
|
|
11622
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11623
|
+
order?: ("asc" | "desc");
|
|
11624
|
+
};
|
|
11625
|
+
commentAbove?: string;
|
|
11626
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11627
|
+
newlinesInside?: ("ignore" | number);
|
|
11628
|
+
order?: ("asc" | "desc");
|
|
11629
|
+
})[];
|
|
11630
|
+
newlinesBetween?: ("ignore" | number);
|
|
10912
11631
|
useConfigurationIf?: {
|
|
10913
11632
|
allNamesMatchPattern?: (({
|
|
10914
11633
|
pattern: string;
|
|
@@ -10917,16 +11636,36 @@ type PerfectionistSortObjects = {
|
|
|
10917
11636
|
pattern: string;
|
|
10918
11637
|
flags?: string;
|
|
10919
11638
|
} | string));
|
|
11639
|
+
objectType?: ("destructured" | "non-destructured");
|
|
11640
|
+
hasNumericKeysOnly?: boolean;
|
|
11641
|
+
declarationCommentMatchesPattern?: (({
|
|
11642
|
+
scope?: ("shallow" | "deep");
|
|
11643
|
+
pattern: string;
|
|
11644
|
+
flags?: string;
|
|
11645
|
+
} | string)[] | ({
|
|
11646
|
+
scope?: ("shallow" | "deep");
|
|
11647
|
+
pattern: string;
|
|
11648
|
+
flags?: string;
|
|
11649
|
+
} | string));
|
|
10920
11650
|
callingFunctionNamePattern?: (({
|
|
11651
|
+
scope?: ("shallow" | "deep");
|
|
11652
|
+
pattern: string;
|
|
11653
|
+
flags?: string;
|
|
11654
|
+
} | string)[] | ({
|
|
11655
|
+
scope?: ("shallow" | "deep");
|
|
11656
|
+
pattern: string;
|
|
11657
|
+
flags?: string;
|
|
11658
|
+
} | string));
|
|
11659
|
+
declarationMatchesPattern?: (({
|
|
11660
|
+
scope?: ("shallow" | "deep");
|
|
10921
11661
|
pattern: string;
|
|
10922
11662
|
flags?: string;
|
|
10923
11663
|
} | string)[] | ({
|
|
11664
|
+
scope?: ("shallow" | "deep");
|
|
10924
11665
|
pattern: string;
|
|
10925
11666
|
flags?: string;
|
|
10926
11667
|
} | string));
|
|
10927
11668
|
};
|
|
10928
|
-
destructureOnly?: boolean;
|
|
10929
|
-
objectDeclarations?: boolean;
|
|
10930
11669
|
styledComponents?: boolean;
|
|
10931
11670
|
partitionByComment?: (boolean | (({
|
|
10932
11671
|
pattern: string;
|
|
@@ -10951,43 +11690,38 @@ type PerfectionistSortObjects = {
|
|
|
10951
11690
|
} | string)));
|
|
10952
11691
|
});
|
|
10953
11692
|
partitionByNewLine?: boolean;
|
|
10954
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10955
|
-
ignorePattern?: (({
|
|
10956
|
-
pattern: string;
|
|
10957
|
-
flags?: string;
|
|
10958
|
-
} | string)[] | ({
|
|
10959
|
-
pattern: string;
|
|
10960
|
-
flags?: string;
|
|
10961
|
-
} | string));
|
|
10962
|
-
groups?: (string | string[] | {
|
|
10963
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10964
|
-
commentAbove?: string;
|
|
10965
|
-
})[];
|
|
10966
11693
|
}[];
|
|
10967
11694
|
// ----- perfectionist/sort-sets -----
|
|
10968
11695
|
type PerfectionistSortSets = {
|
|
10969
11696
|
fallbackSort?: {
|
|
11697
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10970
11698
|
order?: ("asc" | "desc");
|
|
10971
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10972
11699
|
};
|
|
11700
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10973
11701
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10974
11702
|
ignoreCase?: boolean;
|
|
10975
11703
|
alphabet?: string;
|
|
10976
11704
|
locales?: (string | string[]);
|
|
10977
11705
|
order?: ("asc" | "desc");
|
|
10978
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10979
|
-
groupKind?: ("mixed" | "literals-first" | "spreads-first");
|
|
10980
11706
|
customGroups?: ({
|
|
10981
|
-
newlinesInside?: (("always" | "never") | number);
|
|
10982
11707
|
fallbackSort?: {
|
|
11708
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10983
11709
|
order?: ("asc" | "desc");
|
|
10984
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10985
11710
|
};
|
|
11711
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10986
11712
|
groupName: string;
|
|
11713
|
+
newlinesInside?: ("ignore" | number);
|
|
10987
11714
|
order?: ("asc" | "desc");
|
|
10988
|
-
|
|
10989
|
-
|
|
11715
|
+
anyOf: [{
|
|
11716
|
+
elementNamePattern?: (({
|
|
11717
|
+
pattern: string;
|
|
11718
|
+
flags?: string;
|
|
11719
|
+
} | string)[] | ({
|
|
11720
|
+
pattern: string;
|
|
11721
|
+
flags?: string;
|
|
11722
|
+
} | string));
|
|
10990
11723
|
selector?: ("literal" | "spread");
|
|
11724
|
+
}, ...({
|
|
10991
11725
|
elementNamePattern?: (({
|
|
10992
11726
|
pattern: string;
|
|
10993
11727
|
flags?: string;
|
|
@@ -10995,17 +11729,17 @@ type PerfectionistSortSets = {
|
|
|
10995
11729
|
pattern: string;
|
|
10996
11730
|
flags?: string;
|
|
10997
11731
|
} | string));
|
|
10998
|
-
|
|
11732
|
+
selector?: ("literal" | "spread");
|
|
11733
|
+
})[]];
|
|
10999
11734
|
} | {
|
|
11000
|
-
newlinesInside?: (("always" | "never") | number);
|
|
11001
11735
|
fallbackSort?: {
|
|
11736
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11002
11737
|
order?: ("asc" | "desc");
|
|
11003
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11004
11738
|
};
|
|
11739
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11005
11740
|
groupName: string;
|
|
11741
|
+
newlinesInside?: ("ignore" | number);
|
|
11006
11742
|
order?: ("asc" | "desc");
|
|
11007
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11008
|
-
selector?: ("literal" | "spread");
|
|
11009
11743
|
elementNamePattern?: (({
|
|
11010
11744
|
pattern: string;
|
|
11011
11745
|
flags?: string;
|
|
@@ -11013,7 +11747,23 @@ type PerfectionistSortSets = {
|
|
|
11013
11747
|
pattern: string;
|
|
11014
11748
|
flags?: string;
|
|
11015
11749
|
} | string));
|
|
11750
|
+
selector?: ("literal" | "spread");
|
|
11751
|
+
})[];
|
|
11752
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
11753
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
11754
|
+
newlinesBetween: ("ignore" | number);
|
|
11755
|
+
} | {
|
|
11756
|
+
group: (string | [string, ...(string)[]]);
|
|
11757
|
+
fallbackSort?: {
|
|
11758
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11759
|
+
order?: ("asc" | "desc");
|
|
11760
|
+
};
|
|
11761
|
+
commentAbove?: string;
|
|
11762
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11763
|
+
newlinesInside?: ("ignore" | number);
|
|
11764
|
+
order?: ("asc" | "desc");
|
|
11016
11765
|
})[];
|
|
11766
|
+
newlinesBetween?: ("ignore" | number);
|
|
11017
11767
|
useConfigurationIf?: {
|
|
11018
11768
|
allNamesMatchPattern?: (({
|
|
11019
11769
|
pattern: string;
|
|
@@ -11046,48 +11796,51 @@ type PerfectionistSortSets = {
|
|
|
11046
11796
|
} | string)));
|
|
11047
11797
|
});
|
|
11048
11798
|
partitionByNewLine?: boolean;
|
|
11049
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11050
|
-
groups?: (string | string[] | {
|
|
11051
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11052
|
-
commentAbove?: string;
|
|
11053
|
-
})[];
|
|
11054
11799
|
}[];
|
|
11055
11800
|
// ----- perfectionist/sort-switch-case -----
|
|
11056
11801
|
type PerfectionistSortSwitchCase = [] | [{
|
|
11057
11802
|
fallbackSort?: {
|
|
11803
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11058
11804
|
order?: ("asc" | "desc");
|
|
11059
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11060
11805
|
};
|
|
11806
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11061
11807
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
11062
11808
|
ignoreCase?: boolean;
|
|
11063
11809
|
alphabet?: string;
|
|
11064
11810
|
locales?: (string | string[]);
|
|
11065
11811
|
order?: ("asc" | "desc");
|
|
11066
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11067
11812
|
}];
|
|
11068
11813
|
// ----- perfectionist/sort-union-types -----
|
|
11069
11814
|
type PerfectionistSortUnionTypes = {
|
|
11070
11815
|
fallbackSort?: {
|
|
11816
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11071
11817
|
order?: ("asc" | "desc");
|
|
11072
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11073
11818
|
};
|
|
11819
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11074
11820
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
11075
11821
|
ignoreCase?: boolean;
|
|
11076
11822
|
alphabet?: string;
|
|
11077
11823
|
locales?: (string | string[]);
|
|
11078
11824
|
order?: ("asc" | "desc");
|
|
11079
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11080
11825
|
customGroups?: ({
|
|
11081
|
-
newlinesInside?: (("always" | "never") | number);
|
|
11082
11826
|
fallbackSort?: {
|
|
11827
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11083
11828
|
order?: ("asc" | "desc");
|
|
11084
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11085
11829
|
};
|
|
11830
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11086
11831
|
groupName: string;
|
|
11832
|
+
newlinesInside?: ("ignore" | number);
|
|
11087
11833
|
order?: ("asc" | "desc");
|
|
11088
|
-
|
|
11089
|
-
|
|
11834
|
+
anyOf: [{
|
|
11835
|
+
elementNamePattern?: (({
|
|
11836
|
+
pattern: string;
|
|
11837
|
+
flags?: string;
|
|
11838
|
+
} | string)[] | ({
|
|
11839
|
+
pattern: string;
|
|
11840
|
+
flags?: string;
|
|
11841
|
+
} | string));
|
|
11090
11842
|
selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
|
|
11843
|
+
}, ...({
|
|
11091
11844
|
elementNamePattern?: (({
|
|
11092
11845
|
pattern: string;
|
|
11093
11846
|
flags?: string;
|
|
@@ -11095,17 +11848,17 @@ type PerfectionistSortUnionTypes = {
|
|
|
11095
11848
|
pattern: string;
|
|
11096
11849
|
flags?: string;
|
|
11097
11850
|
} | string));
|
|
11098
|
-
|
|
11851
|
+
selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
|
|
11852
|
+
})[]];
|
|
11099
11853
|
} | {
|
|
11100
|
-
newlinesInside?: (("always" | "never") | number);
|
|
11101
11854
|
fallbackSort?: {
|
|
11855
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11102
11856
|
order?: ("asc" | "desc");
|
|
11103
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11104
11857
|
};
|
|
11858
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11105
11859
|
groupName: string;
|
|
11860
|
+
newlinesInside?: ("ignore" | number);
|
|
11106
11861
|
order?: ("asc" | "desc");
|
|
11107
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11108
|
-
selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
|
|
11109
11862
|
elementNamePattern?: (({
|
|
11110
11863
|
pattern: string;
|
|
11111
11864
|
flags?: string;
|
|
@@ -11113,7 +11866,23 @@ type PerfectionistSortUnionTypes = {
|
|
|
11113
11866
|
pattern: string;
|
|
11114
11867
|
flags?: string;
|
|
11115
11868
|
} | string));
|
|
11869
|
+
selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
|
|
11870
|
+
})[];
|
|
11871
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
11872
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
11873
|
+
newlinesBetween: ("ignore" | number);
|
|
11874
|
+
} | {
|
|
11875
|
+
group: (string | [string, ...(string)[]]);
|
|
11876
|
+
fallbackSort?: {
|
|
11877
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11878
|
+
order?: ("asc" | "desc");
|
|
11879
|
+
};
|
|
11880
|
+
commentAbove?: string;
|
|
11881
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11882
|
+
newlinesInside?: ("ignore" | number);
|
|
11883
|
+
order?: ("asc" | "desc");
|
|
11116
11884
|
})[];
|
|
11885
|
+
newlinesBetween?: ("ignore" | number);
|
|
11117
11886
|
partitionByComment?: (boolean | (({
|
|
11118
11887
|
pattern: string;
|
|
11119
11888
|
flags?: string;
|
|
@@ -11137,35 +11906,38 @@ type PerfectionistSortUnionTypes = {
|
|
|
11137
11906
|
} | string)));
|
|
11138
11907
|
});
|
|
11139
11908
|
partitionByNewLine?: boolean;
|
|
11140
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11141
|
-
groups?: (string | string[] | {
|
|
11142
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11143
|
-
commentAbove?: string;
|
|
11144
|
-
})[];
|
|
11145
11909
|
}[];
|
|
11146
11910
|
// ----- perfectionist/sort-variable-declarations -----
|
|
11147
11911
|
type PerfectionistSortVariableDeclarations = [] | [{
|
|
11148
11912
|
fallbackSort?: {
|
|
11913
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11149
11914
|
order?: ("asc" | "desc");
|
|
11150
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11151
11915
|
};
|
|
11916
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11152
11917
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
11153
11918
|
ignoreCase?: boolean;
|
|
11154
11919
|
alphabet?: string;
|
|
11155
11920
|
locales?: (string | string[]);
|
|
11156
11921
|
order?: ("asc" | "desc");
|
|
11157
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11158
11922
|
customGroups?: ({
|
|
11159
|
-
newlinesInside?: (("always" | "never") | number);
|
|
11160
11923
|
fallbackSort?: {
|
|
11924
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11161
11925
|
order?: ("asc" | "desc");
|
|
11162
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11163
11926
|
};
|
|
11927
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11164
11928
|
groupName: string;
|
|
11929
|
+
newlinesInside?: ("ignore" | number);
|
|
11165
11930
|
order?: ("asc" | "desc");
|
|
11166
|
-
|
|
11167
|
-
|
|
11931
|
+
anyOf: [{
|
|
11932
|
+
elementNamePattern?: (({
|
|
11933
|
+
pattern: string;
|
|
11934
|
+
flags?: string;
|
|
11935
|
+
} | string)[] | ({
|
|
11936
|
+
pattern: string;
|
|
11937
|
+
flags?: string;
|
|
11938
|
+
} | string));
|
|
11168
11939
|
selector?: ("initialized" | "uninitialized");
|
|
11940
|
+
}, ...({
|
|
11169
11941
|
elementNamePattern?: (({
|
|
11170
11942
|
pattern: string;
|
|
11171
11943
|
flags?: string;
|
|
@@ -11173,17 +11945,17 @@ type PerfectionistSortVariableDeclarations = [] | [{
|
|
|
11173
11945
|
pattern: string;
|
|
11174
11946
|
flags?: string;
|
|
11175
11947
|
} | string));
|
|
11176
|
-
|
|
11948
|
+
selector?: ("initialized" | "uninitialized");
|
|
11949
|
+
})[]];
|
|
11177
11950
|
} | {
|
|
11178
|
-
newlinesInside?: (("always" | "never") | number);
|
|
11179
11951
|
fallbackSort?: {
|
|
11952
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11180
11953
|
order?: ("asc" | "desc");
|
|
11181
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11182
11954
|
};
|
|
11955
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11183
11956
|
groupName: string;
|
|
11957
|
+
newlinesInside?: ("ignore" | number);
|
|
11184
11958
|
order?: ("asc" | "desc");
|
|
11185
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11186
|
-
selector?: ("initialized" | "uninitialized");
|
|
11187
11959
|
elementNamePattern?: (({
|
|
11188
11960
|
pattern: string;
|
|
11189
11961
|
flags?: string;
|
|
@@ -11191,7 +11963,23 @@ type PerfectionistSortVariableDeclarations = [] | [{
|
|
|
11191
11963
|
pattern: string;
|
|
11192
11964
|
flags?: string;
|
|
11193
11965
|
} | string));
|
|
11966
|
+
selector?: ("initialized" | "uninitialized");
|
|
11967
|
+
})[];
|
|
11968
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
11969
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
11970
|
+
newlinesBetween: ("ignore" | number);
|
|
11971
|
+
} | {
|
|
11972
|
+
group: (string | [string, ...(string)[]]);
|
|
11973
|
+
fallbackSort?: {
|
|
11974
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11975
|
+
order?: ("asc" | "desc");
|
|
11976
|
+
};
|
|
11977
|
+
commentAbove?: string;
|
|
11978
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11979
|
+
newlinesInside?: ("ignore" | number);
|
|
11980
|
+
order?: ("asc" | "desc");
|
|
11194
11981
|
})[];
|
|
11982
|
+
newlinesBetween?: ("ignore" | number);
|
|
11195
11983
|
partitionByComment?: (boolean | (({
|
|
11196
11984
|
pattern: string;
|
|
11197
11985
|
flags?: string;
|
|
@@ -11215,11 +12003,6 @@ type PerfectionistSortVariableDeclarations = [] | [{
|
|
|
11215
12003
|
} | string)));
|
|
11216
12004
|
});
|
|
11217
12005
|
partitionByNewLine?: boolean;
|
|
11218
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11219
|
-
groups?: (string | string[] | {
|
|
11220
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11221
|
-
commentAbove?: string;
|
|
11222
|
-
})[];
|
|
11223
12006
|
}];
|
|
11224
12007
|
// ----- pnpm/json-enforce-catalog -----
|
|
11225
12008
|
type PnpmJsonEnforceCatalog = [] | [{
|
|
@@ -11243,6 +12026,15 @@ type PnpmJsonValidCatalog = [] | [{
|
|
|
11243
12026
|
enforceNoConflict?: boolean;
|
|
11244
12027
|
fields?: unknown[];
|
|
11245
12028
|
}];
|
|
12029
|
+
// ----- pnpm/yaml-enforce-settings -----
|
|
12030
|
+
type PnpmYamlEnforceSettings = [] | [{
|
|
12031
|
+
autofix?: boolean;
|
|
12032
|
+
settings?: {
|
|
12033
|
+
[k: string]: unknown | undefined;
|
|
12034
|
+
};
|
|
12035
|
+
requiredFields?: string[];
|
|
12036
|
+
forbiddenFields?: string[];
|
|
12037
|
+
}];
|
|
11246
12038
|
// ----- pnpm/yaml-no-duplicate-catalog-item -----
|
|
11247
12039
|
type PnpmYamlNoDuplicateCatalogItem = [] | [{
|
|
11248
12040
|
allow?: string[];
|
|
@@ -11457,6 +12249,11 @@ type ReactNamingConventionFilenameExtension = [] | [(("always" | "as-needed") |
|
|
|
11457
12249
|
extensions?: string[];
|
|
11458
12250
|
ignoreFilesWithoutCode?: boolean;
|
|
11459
12251
|
})];
|
|
12252
|
+
// ----- react-naming-convention/use-state -----
|
|
12253
|
+
type ReactNamingConventionUseState = [] | [{
|
|
12254
|
+
enforceAssignment?: boolean;
|
|
12255
|
+
enforceSetterName?: boolean;
|
|
12256
|
+
}];
|
|
11460
12257
|
// ----- react-refresh/only-export-components -----
|
|
11461
12258
|
type ReactRefreshOnlyExportComponents = [] | [{
|
|
11462
12259
|
allowExportNames?: string[];
|
|
@@ -11478,8 +12275,13 @@ type ReactNoForbiddenProps = [] | [{
|
|
|
11478
12275
|
prop: string;
|
|
11479
12276
|
})[];
|
|
11480
12277
|
}];
|
|
12278
|
+
// ----- react/no-unstable-default-props -----
|
|
12279
|
+
type ReactNoUnstableDefaultProps = [] | [{
|
|
12280
|
+
safeDefaultProps?: string[];
|
|
12281
|
+
}];
|
|
11481
12282
|
// ----- react/no-useless-fragment -----
|
|
11482
12283
|
type ReactNoUselessFragment = [] | [{
|
|
12284
|
+
allowEmptyFragment?: boolean;
|
|
11483
12285
|
allowExpressions?: boolean;
|
|
11484
12286
|
}];
|
|
11485
12287
|
// ----- regexp/hexadecimal-escape -----
|
|
@@ -11982,6 +12784,13 @@ type TailwindcssNoUnnecessaryArbitraryValue = [] | [{
|
|
|
11982
12784
|
type TemplateCurlySpacing = [] | [("always" | "never")];
|
|
11983
12785
|
// ----- template-tag-spacing -----
|
|
11984
12786
|
type TemplateTagSpacing = [] | [("always" | "never")];
|
|
12787
|
+
// ----- test/consistent-each-for -----
|
|
12788
|
+
type TestConsistentEachFor = [] | [{
|
|
12789
|
+
test?: ("each" | "for");
|
|
12790
|
+
it?: ("each" | "for");
|
|
12791
|
+
describe?: ("each" | "for");
|
|
12792
|
+
suite?: ("each" | "for");
|
|
12793
|
+
}];
|
|
11985
12794
|
// ----- test/consistent-test-filename -----
|
|
11986
12795
|
type TestConsistentTestFilename = [] | [{
|
|
11987
12796
|
pattern?: string;
|
|
@@ -12009,13 +12818,17 @@ type TestMaxExpects = [] | [{
|
|
|
12009
12818
|
type TestMaxNestedDescribe = [] | [{
|
|
12010
12819
|
max?: number;
|
|
12011
12820
|
}];
|
|
12821
|
+
// ----- test/no-conditional-expect -----
|
|
12822
|
+
type TestNoConditionalExpect = [] | [{
|
|
12823
|
+
expectAssertions?: boolean;
|
|
12824
|
+
}];
|
|
12012
12825
|
// ----- test/no-focused-tests -----
|
|
12013
12826
|
type TestNoFocusedTests = [] | [{
|
|
12014
12827
|
fixable?: boolean;
|
|
12015
12828
|
}];
|
|
12016
12829
|
// ----- test/no-hooks -----
|
|
12017
12830
|
type TestNoHooks = [] | [{
|
|
12018
|
-
allow?:
|
|
12831
|
+
allow?: ("beforeAll" | "beforeEach" | "afterAll" | "afterEach")[];
|
|
12019
12832
|
}];
|
|
12020
12833
|
// ----- test/no-large-snapshots -----
|
|
12021
12834
|
type TestNoLargeSnapshots = [] | [{
|
|
@@ -12050,6 +12863,10 @@ type TestPreferExpectAssertions = [] | [{
|
|
|
12050
12863
|
onlyFunctionsWithExpectInLoop?: boolean;
|
|
12051
12864
|
onlyFunctionsWithExpectInCallback?: boolean;
|
|
12052
12865
|
}];
|
|
12866
|
+
// ----- test/prefer-import-in-mock -----
|
|
12867
|
+
type TestPreferImportInMock = [] | [{
|
|
12868
|
+
fixable?: boolean;
|
|
12869
|
+
}];
|
|
12053
12870
|
// ----- test/prefer-lowercase-title -----
|
|
12054
12871
|
type TestPreferLowercaseTitle = [] | [{
|
|
12055
12872
|
ignore?: ("describe" | "test" | "it")[];
|