@lincy/eslint-config 6.3.0 → 6.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +14 -14
- package/dist/index.d.cts +1292 -533
- package/dist/index.d.mts +1292 -533
- package/dist/index.mjs +14 -14
- package/package.json +76 -79
package/dist/index.d.mts
CHANGED
|
@@ -422,6 +422,11 @@ interface RuleOptions {
|
|
|
422
422
|
* @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/no-named-default/README.md
|
|
423
423
|
*/
|
|
424
424
|
'import/no-named-default'?: Linter.RuleEntry<[]>;
|
|
425
|
+
/**
|
|
426
|
+
* Prefer a default export if module exports a single name or multiple names.
|
|
427
|
+
* @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/prefer-default-export/README.md
|
|
428
|
+
*/
|
|
429
|
+
'import/prefer-default-export'?: Linter.RuleEntry<ImportPreferDefaultExport>;
|
|
425
430
|
/**
|
|
426
431
|
* Enforce consistent indentation
|
|
427
432
|
* @see https://eslint.org/docs/latest/rules/indent
|
|
@@ -2371,6 +2376,11 @@ interface RuleOptions {
|
|
|
2371
2376
|
* @see https://perfectionist.dev/rules/sort-enums
|
|
2372
2377
|
*/
|
|
2373
2378
|
'perfectionist/sort-enums'?: Linter.RuleEntry<PerfectionistSortEnums>;
|
|
2379
|
+
/**
|
|
2380
|
+
* Enforce sorted export attributes.
|
|
2381
|
+
* @see https://perfectionist.dev/rules/sort-export-attributes
|
|
2382
|
+
*/
|
|
2383
|
+
'perfectionist/sort-export-attributes'?: Linter.RuleEntry<PerfectionistSortExportAttributes>;
|
|
2374
2384
|
/**
|
|
2375
2385
|
* Enforce sorted exports.
|
|
2376
2386
|
* @see https://perfectionist.dev/rules/sort-exports
|
|
@@ -2381,6 +2391,11 @@ interface RuleOptions {
|
|
|
2381
2391
|
* @see https://perfectionist.dev/rules/sort-heritage-clauses
|
|
2382
2392
|
*/
|
|
2383
2393
|
'perfectionist/sort-heritage-clauses'?: Linter.RuleEntry<PerfectionistSortHeritageClauses>;
|
|
2394
|
+
/**
|
|
2395
|
+
* Enforce sorted import attributes.
|
|
2396
|
+
* @see https://perfectionist.dev/rules/sort-import-attributes
|
|
2397
|
+
*/
|
|
2398
|
+
'perfectionist/sort-import-attributes'?: Linter.RuleEntry<PerfectionistSortImportAttributes>;
|
|
2384
2399
|
/**
|
|
2385
2400
|
* Enforce sorted imports.
|
|
2386
2401
|
* @see https://perfectionist.dev/rules/sort-imports
|
|
@@ -2545,97 +2560,97 @@ interface RuleOptions {
|
|
|
2545
2560
|
*/
|
|
2546
2561
|
'radix'?: Linter.RuleEntry<Radix>;
|
|
2547
2562
|
/**
|
|
2548
|
-
*
|
|
2563
|
+
* Disallows DOM elements from using 'dangerouslySetInnerHTML'.
|
|
2549
2564
|
* @see https://eslint-react.xyz/docs/rules/dom-no-dangerously-set-innerhtml
|
|
2550
2565
|
*/
|
|
2551
2566
|
'react-dom/no-dangerously-set-innerhtml'?: Linter.RuleEntry<[]>;
|
|
2552
2567
|
/**
|
|
2553
|
-
*
|
|
2568
|
+
* Disallows DOM elements from using 'dangerouslySetInnerHTML' and 'children' at the same time.
|
|
2554
2569
|
* @see https://eslint-react.xyz/docs/rules/dom-no-dangerously-set-innerhtml-with-children
|
|
2555
2570
|
*/
|
|
2556
2571
|
'react-dom/no-dangerously-set-innerhtml-with-children'?: Linter.RuleEntry<[]>;
|
|
2557
2572
|
/**
|
|
2558
|
-
*
|
|
2573
|
+
* Disallows 'findDOMNode'.
|
|
2559
2574
|
* @see https://eslint-react.xyz/docs/rules/dom-no-find-dom-node
|
|
2560
2575
|
*/
|
|
2561
2576
|
'react-dom/no-find-dom-node'?: Linter.RuleEntry<[]>;
|
|
2562
2577
|
/**
|
|
2563
|
-
*
|
|
2578
|
+
* Disallows 'flushSync'.
|
|
2564
2579
|
* @see https://eslint-react.xyz/docs/rules/dom-no-flush-sync
|
|
2565
2580
|
*/
|
|
2566
2581
|
'react-dom/no-flush-sync'?: Linter.RuleEntry<[]>;
|
|
2567
2582
|
/**
|
|
2568
|
-
* Replaces
|
|
2583
|
+
* Replaces usage of 'ReactDOM.hydrate()' with 'hydrateRoot()'.
|
|
2569
2584
|
* @see https://eslint-react.xyz/docs/rules/dom-no-hydrate
|
|
2570
2585
|
*/
|
|
2571
2586
|
'react-dom/no-hydrate'?: Linter.RuleEntry<[]>;
|
|
2572
2587
|
/**
|
|
2573
|
-
* Enforces explicit
|
|
2588
|
+
* Enforces an explicit 'type' attribute for 'button' elements.
|
|
2574
2589
|
* @see https://eslint-react.xyz/docs/rules/dom-no-missing-button-type
|
|
2575
2590
|
*/
|
|
2576
2591
|
'react-dom/no-missing-button-type'?: Linter.RuleEntry<[]>;
|
|
2577
2592
|
/**
|
|
2578
|
-
* Enforces explicit
|
|
2593
|
+
* Enforces an explicit 'sandbox' attribute for 'iframe' elements.
|
|
2579
2594
|
* @see https://eslint-react.xyz/docs/rules/dom-no-missing-iframe-sandbox
|
|
2580
2595
|
*/
|
|
2581
2596
|
'react-dom/no-missing-iframe-sandbox'?: Linter.RuleEntry<[]>;
|
|
2582
2597
|
/**
|
|
2583
|
-
* Enforces the absence of a
|
|
2598
|
+
* Enforces the absence of a 'namespace' in React elements.
|
|
2584
2599
|
* @see https://eslint-react.xyz/docs/rules/dom-no-namespace
|
|
2585
2600
|
*/
|
|
2586
2601
|
'react-dom/no-namespace'?: Linter.RuleEntry<[]>;
|
|
2587
2602
|
/**
|
|
2588
|
-
* Replaces
|
|
2603
|
+
* Replaces usage of 'ReactDOM.render()' with 'createRoot(node).render()'.
|
|
2589
2604
|
* @see https://eslint-react.xyz/docs/rules/dom-no-render
|
|
2590
2605
|
*/
|
|
2591
2606
|
'react-dom/no-render'?: Linter.RuleEntry<[]>;
|
|
2592
2607
|
/**
|
|
2593
|
-
*
|
|
2608
|
+
* Disallows the return value of 'ReactDOM.render'.
|
|
2594
2609
|
* @see https://eslint-react.xyz/docs/rules/dom-no-render-return-value
|
|
2595
2610
|
*/
|
|
2596
2611
|
'react-dom/no-render-return-value'?: Linter.RuleEntry<[]>;
|
|
2597
2612
|
/**
|
|
2598
|
-
*
|
|
2613
|
+
* Disallows 'javascript:' URLs as attribute values.
|
|
2599
2614
|
* @see https://eslint-react.xyz/docs/rules/dom-no-script-url
|
|
2600
2615
|
*/
|
|
2601
2616
|
'react-dom/no-script-url'?: Linter.RuleEntry<[]>;
|
|
2602
2617
|
/**
|
|
2603
|
-
* Disallows the use of string style prop.
|
|
2618
|
+
* Disallows the use of string style prop in JSX. Use an object instead.
|
|
2604
2619
|
* @see https://eslint-react.xyz/docs/rules/dom-no-string-style-prop
|
|
2605
2620
|
*/
|
|
2606
2621
|
'react-dom/no-string-style-prop'?: Linter.RuleEntry<[]>;
|
|
2607
2622
|
/**
|
|
2608
|
-
*
|
|
2623
|
+
* Disallows unknown 'DOM' properties.
|
|
2609
2624
|
* @see https://eslint-react.xyz/docs/rules/dom-no-unknown-property
|
|
2610
2625
|
*/
|
|
2611
2626
|
'react-dom/no-unknown-property'?: Linter.RuleEntry<ReactDomNoUnknownProperty>;
|
|
2612
2627
|
/**
|
|
2613
|
-
* Enforces
|
|
2628
|
+
* Enforces 'sandbox' attribute for 'iframe' elements is not set to unsafe combinations.
|
|
2614
2629
|
* @see https://eslint-react.xyz/docs/rules/dom-no-unsafe-iframe-sandbox
|
|
2615
2630
|
*/
|
|
2616
2631
|
'react-dom/no-unsafe-iframe-sandbox'?: Linter.RuleEntry<[]>;
|
|
2617
2632
|
/**
|
|
2618
|
-
*
|
|
2633
|
+
* Disallows 'target="_blank"' without 'rel="noreferrer noopener"'.
|
|
2619
2634
|
* @see https://eslint-react.xyz/docs/rules/dom-no-unsafe-target-blank
|
|
2620
2635
|
*/
|
|
2621
2636
|
'react-dom/no-unsafe-target-blank'?: Linter.RuleEntry<[]>;
|
|
2622
2637
|
/**
|
|
2623
|
-
* Replaces
|
|
2638
|
+
* Replaces usage of 'useFormState' with 'useActionState'.
|
|
2624
2639
|
* @see https://eslint-react.xyz/docs/rules/dom-no-use-form-state
|
|
2625
2640
|
*/
|
|
2626
2641
|
'react-dom/no-use-form-state'?: Linter.RuleEntry<[]>;
|
|
2627
2642
|
/**
|
|
2628
|
-
*
|
|
2643
|
+
* Disallows 'children' in void DOM elements.
|
|
2629
2644
|
* @see https://eslint-react.xyz/docs/rules/dom-no-void-elements-with-children
|
|
2630
2645
|
*/
|
|
2631
2646
|
'react-dom/no-void-elements-with-children'?: Linter.RuleEntry<[]>;
|
|
2632
2647
|
/**
|
|
2633
|
-
* Enforces React
|
|
2648
|
+
* Enforces importing React DOM via a namespace import.
|
|
2634
2649
|
* @see https://eslint-react.xyz/docs/rules/dom-prefer-namespace-import
|
|
2635
2650
|
*/
|
|
2636
2651
|
'react-dom/prefer-namespace-import'?: Linter.RuleEntry<[]>;
|
|
2637
2652
|
/**
|
|
2638
|
-
*
|
|
2653
|
+
* Disallows direct calls to the ['set' function](https://react.dev/reference/react/useState#setstate) of 'useState' in 'useEffect'.
|
|
2639
2654
|
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-direct-set-state-in-use-effect
|
|
2640
2655
|
*/
|
|
2641
2656
|
'react-hooks-extra/no-direct-set-state-in-use-effect'?: Linter.RuleEntry<[]>;
|
|
@@ -2763,88 +2778,93 @@ interface RuleOptions {
|
|
|
2763
2778
|
*/
|
|
2764
2779
|
'react-naming-convention/component-name'?: Linter.RuleEntry<ReactNamingConventionComponentName>;
|
|
2765
2780
|
/**
|
|
2766
|
-
* Enforces context name to be a valid component name with the suffix
|
|
2781
|
+
* Enforces the context name to be a valid component name with the suffix 'Context'.
|
|
2767
2782
|
* @see https://eslint-react.xyz/docs/rules/naming-convention-context-name
|
|
2768
2783
|
*/
|
|
2769
2784
|
'react-naming-convention/context-name'?: Linter.RuleEntry<[]>;
|
|
2770
2785
|
/**
|
|
2771
|
-
* Enforces consistent file
|
|
2786
|
+
* Enforces consistent file-naming conventions.
|
|
2772
2787
|
* @see https://eslint-react.xyz/docs/rules/naming-convention-filename
|
|
2773
2788
|
*/
|
|
2774
2789
|
'react-naming-convention/filename'?: Linter.RuleEntry<ReactNamingConventionFilename>;
|
|
2775
2790
|
/**
|
|
2776
|
-
* Enforces consistent file
|
|
2791
|
+
* Enforces consistent use of the JSX file extension.
|
|
2777
2792
|
* @see https://eslint-react.xyz/docs/rules/naming-convention-filename-extension
|
|
2778
2793
|
*/
|
|
2779
2794
|
'react-naming-convention/filename-extension'?: Linter.RuleEntry<ReactNamingConventionFilenameExtension>;
|
|
2780
2795
|
/**
|
|
2781
|
-
* Enforces
|
|
2796
|
+
* Enforces identifier names assigned from 'useRef' calls to be either 'ref' or end with 'Ref'.
|
|
2797
|
+
* @see https://eslint-react.xyz/docs/rules/naming-convention-ref-name
|
|
2798
|
+
*/
|
|
2799
|
+
'react-naming-convention/ref-name'?: Linter.RuleEntry<[]>;
|
|
2800
|
+
/**
|
|
2801
|
+
* Enforces destructuring and symmetric naming of the 'useState' hook value and setter.
|
|
2782
2802
|
* @see https://eslint-react.xyz/docs/rules/naming-convention-use-state
|
|
2783
2803
|
*/
|
|
2784
|
-
'react-naming-convention/use-state'?: Linter.RuleEntry<
|
|
2804
|
+
'react-naming-convention/use-state'?: Linter.RuleEntry<ReactNamingConventionUseState>;
|
|
2785
2805
|
'react-refresh/only-export-components'?: Linter.RuleEntry<ReactRefreshOnlyExportComponents>;
|
|
2786
2806
|
/**
|
|
2787
|
-
*
|
|
2807
|
+
* Enforces that every 'addEventListener' in a component or custom hook has a corresponding 'removeEventListener'.
|
|
2788
2808
|
* @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-event-listener
|
|
2789
2809
|
*/
|
|
2790
2810
|
'react-web-api/no-leaked-event-listener'?: Linter.RuleEntry<[]>;
|
|
2791
2811
|
/**
|
|
2792
|
-
*
|
|
2812
|
+
* Enforces that every 'setInterval' in a component or custom hook has a corresponding 'clearInterval'.
|
|
2793
2813
|
* @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-interval
|
|
2794
2814
|
*/
|
|
2795
2815
|
'react-web-api/no-leaked-interval'?: Linter.RuleEntry<[]>;
|
|
2796
2816
|
/**
|
|
2797
|
-
*
|
|
2817
|
+
* Enforces that every 'ResizeObserver' created in a component or custom hook has a corresponding 'ResizeObserver.disconnect()'.
|
|
2798
2818
|
* @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-resize-observer
|
|
2799
2819
|
*/
|
|
2800
2820
|
'react-web-api/no-leaked-resize-observer'?: Linter.RuleEntry<[]>;
|
|
2801
2821
|
/**
|
|
2802
|
-
*
|
|
2822
|
+
* Enforces that every 'setTimeout' in a component or custom hook has a corresponding 'clearTimeout'.
|
|
2803
2823
|
* @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-timeout
|
|
2804
2824
|
*/
|
|
2805
2825
|
'react-web-api/no-leaked-timeout'?: Linter.RuleEntry<[]>;
|
|
2806
2826
|
/**
|
|
2807
|
-
* Prevents dollar signs from being inserted
|
|
2827
|
+
* Prevents unnecessary dollar signs ('$') from being inserted before an expression in JSX.
|
|
2808
2828
|
* @see https://eslint-react.xyz/docs/rules/jsx-dollar
|
|
2809
2829
|
*/
|
|
2810
2830
|
'react/jsx-dollar'?: Linter.RuleEntry<[]>;
|
|
2811
2831
|
/**
|
|
2812
|
-
* Enforces that the 'key' prop is placed before the spread prop in JSX elements.
|
|
2832
|
+
* Enforces that the 'key' prop is placed before the spread prop in JSX elements when using the new JSX transform.
|
|
2813
2833
|
* @see https://eslint-react.xyz/docs/rules/jsx-key-before-spread
|
|
2814
2834
|
*/
|
|
2815
2835
|
'react/jsx-key-before-spread'?: Linter.RuleEntry<[]>;
|
|
2816
2836
|
/**
|
|
2817
|
-
* Prevents
|
|
2837
|
+
* Prevents comment strings (e.g., beginning with '//' or '/*') from being accidentally inserted into a JSX element's text nodes.
|
|
2818
2838
|
* @see https://eslint-react.xyz/docs/rules/jsx-no-comment-textnodes
|
|
2819
2839
|
*/
|
|
2820
2840
|
'react/jsx-no-comment-textnodes'?: Linter.RuleEntry<[]>;
|
|
2821
2841
|
/**
|
|
2822
|
-
*
|
|
2842
|
+
* Disallows duplicate props in JSX elements.
|
|
2823
2843
|
* @see https://eslint-react.xyz/docs/rules/jsx-no-duplicate-props
|
|
2824
2844
|
*/
|
|
2825
2845
|
'react/jsx-no-duplicate-props'?: Linter.RuleEntry<[]>;
|
|
2826
2846
|
/**
|
|
2827
|
-
* Disallows 'IIFE' in JSX
|
|
2847
|
+
* Disallows 'IIFE' in JSX.
|
|
2828
2848
|
* @see https://eslint-react.xyz/docs/rules/jsx-no-iife
|
|
2829
2849
|
*/
|
|
2830
2850
|
'react/jsx-no-iife'?: Linter.RuleEntry<[]>;
|
|
2831
2851
|
/**
|
|
2832
|
-
*
|
|
2852
|
+
* Prevents using variables in JSX that are not defined in the scope.
|
|
2833
2853
|
* @see https://eslint-react.xyz/docs/rules/jsx-no-undef
|
|
2834
2854
|
*/
|
|
2835
2855
|
'react/jsx-no-undef'?: Linter.RuleEntry<[]>;
|
|
2836
2856
|
/**
|
|
2837
|
-
* Enforces shorthand syntax for boolean attributes.
|
|
2857
|
+
* Enforces the use of shorthand syntax for boolean attributes.
|
|
2838
2858
|
* @see https://eslint-react.xyz/docs/rules/jsx-shorthand-boolean
|
|
2839
2859
|
*/
|
|
2840
2860
|
'react/jsx-shorthand-boolean'?: Linter.RuleEntry<ReactJsxShorthandBoolean>;
|
|
2841
2861
|
/**
|
|
2842
|
-
* Enforces shorthand syntax for fragments.
|
|
2862
|
+
* Enforces the use of shorthand syntax for fragments.
|
|
2843
2863
|
* @see https://eslint-react.xyz/docs/rules/jsx-shorthand-fragment
|
|
2844
2864
|
*/
|
|
2845
2865
|
'react/jsx-shorthand-fragment'?: Linter.RuleEntry<ReactJsxShorthandFragment>;
|
|
2846
2866
|
/**
|
|
2847
|
-
* Marks React variables as used when JSX is
|
|
2867
|
+
* Marks React variables as used when JSX is present.
|
|
2848
2868
|
* @see https://eslint-react.xyz/docs/rules/jsx-uses-react
|
|
2849
2869
|
*/
|
|
2850
2870
|
'react/jsx-uses-react'?: Linter.RuleEntry<[]>;
|
|
@@ -2854,108 +2874,108 @@ interface RuleOptions {
|
|
|
2854
2874
|
*/
|
|
2855
2875
|
'react/jsx-uses-vars'?: Linter.RuleEntry<[]>;
|
|
2856
2876
|
/**
|
|
2857
|
-
*
|
|
2877
|
+
* Disallows accessing 'this.state' inside 'setState' calls.
|
|
2858
2878
|
* @see https://eslint-react.xyz/docs/rules/no-access-state-in-setstate
|
|
2859
2879
|
*/
|
|
2860
2880
|
'react/no-access-state-in-setstate'?: Linter.RuleEntry<[]>;
|
|
2861
2881
|
/**
|
|
2862
|
-
*
|
|
2882
|
+
* Disallows using an item's index in the array as its key.
|
|
2863
2883
|
* @see https://eslint-react.xyz/docs/rules/no-array-index-key
|
|
2864
2884
|
*/
|
|
2865
2885
|
'react/no-array-index-key'?: Linter.RuleEntry<[]>;
|
|
2866
2886
|
/**
|
|
2867
|
-
*
|
|
2887
|
+
* Disallows the use of 'Children.count' from the 'react' package.
|
|
2868
2888
|
* @see https://eslint-react.xyz/docs/rules/no-children-count
|
|
2869
2889
|
*/
|
|
2870
2890
|
'react/no-children-count'?: Linter.RuleEntry<[]>;
|
|
2871
2891
|
/**
|
|
2872
|
-
*
|
|
2892
|
+
* Disallows the use of 'Children.forEach' from the 'react' package.
|
|
2873
2893
|
* @see https://eslint-react.xyz/docs/rules/no-children-for-each
|
|
2874
2894
|
*/
|
|
2875
2895
|
'react/no-children-for-each'?: Linter.RuleEntry<[]>;
|
|
2876
2896
|
/**
|
|
2877
|
-
*
|
|
2897
|
+
* Disallows the use of 'Children.map' from the 'react' package.
|
|
2878
2898
|
* @see https://eslint-react.xyz/docs/rules/no-children-map
|
|
2879
2899
|
*/
|
|
2880
2900
|
'react/no-children-map'?: Linter.RuleEntry<[]>;
|
|
2881
2901
|
/**
|
|
2882
|
-
*
|
|
2902
|
+
* Disallows the use of 'Children.only' from the 'react' package.
|
|
2883
2903
|
* @see https://eslint-react.xyz/docs/rules/no-children-only
|
|
2884
2904
|
*/
|
|
2885
2905
|
'react/no-children-only'?: Linter.RuleEntry<[]>;
|
|
2886
2906
|
/**
|
|
2887
|
-
*
|
|
2907
|
+
* Disallows passing 'children' as a prop.
|
|
2888
2908
|
* @see https://eslint-react.xyz/docs/rules/no-children-prop
|
|
2889
2909
|
*/
|
|
2890
2910
|
'react/no-children-prop'?: Linter.RuleEntry<[]>;
|
|
2891
2911
|
/**
|
|
2892
|
-
*
|
|
2912
|
+
* Disallows the use of 'Children.toArray' from the 'react' package.
|
|
2893
2913
|
* @see https://eslint-react.xyz/docs/rules/no-children-to-array
|
|
2894
2914
|
*/
|
|
2895
2915
|
'react/no-children-to-array'?: Linter.RuleEntry<[]>;
|
|
2896
2916
|
/**
|
|
2897
|
-
*
|
|
2917
|
+
* Disallows class components except for error boundaries.
|
|
2898
2918
|
* @see https://eslint-react.xyz/docs/rules/no-class-component
|
|
2899
2919
|
*/
|
|
2900
2920
|
'react/no-class-component'?: Linter.RuleEntry<[]>;
|
|
2901
2921
|
/**
|
|
2902
|
-
*
|
|
2922
|
+
* Disallows 'cloneElement'.
|
|
2903
2923
|
* @see https://eslint-react.xyz/docs/rules/no-clone-element
|
|
2904
2924
|
*/
|
|
2905
2925
|
'react/no-clone-element'?: Linter.RuleEntry<[]>;
|
|
2906
2926
|
/**
|
|
2907
|
-
*
|
|
2927
|
+
* Replaces usage of 'componentWillMount' with 'UNSAFE_componentWillMount'.
|
|
2908
2928
|
* @see https://eslint-react.xyz/docs/rules/no-component-will-mount
|
|
2909
2929
|
*/
|
|
2910
2930
|
'react/no-component-will-mount'?: Linter.RuleEntry<[]>;
|
|
2911
2931
|
/**
|
|
2912
|
-
*
|
|
2932
|
+
* Replaces usage of 'componentWillReceiveProps' with 'UNSAFE_componentWillReceiveProps'.
|
|
2913
2933
|
* @see https://eslint-react.xyz/docs/rules/no-component-will-receive-props
|
|
2914
2934
|
*/
|
|
2915
2935
|
'react/no-component-will-receive-props'?: Linter.RuleEntry<[]>;
|
|
2916
2936
|
/**
|
|
2917
|
-
*
|
|
2937
|
+
* Replaces usage of 'componentWillUpdate' with 'UNSAFE_componentWillUpdate'.
|
|
2918
2938
|
* @see https://eslint-react.xyz/docs/rules/no-component-will-update
|
|
2919
2939
|
*/
|
|
2920
2940
|
'react/no-component-will-update'?: Linter.RuleEntry<[]>;
|
|
2921
2941
|
/**
|
|
2922
|
-
*
|
|
2942
|
+
* Replaces usage of '<Context.Provider>' with '<Context>'.
|
|
2923
2943
|
* @see https://eslint-react.xyz/docs/rules/no-context-provider
|
|
2924
2944
|
*/
|
|
2925
2945
|
'react/no-context-provider'?: Linter.RuleEntry<[]>;
|
|
2926
2946
|
/**
|
|
2927
|
-
*
|
|
2947
|
+
* Disallows 'createRef' in function components.
|
|
2928
2948
|
* @see https://eslint-react.xyz/docs/rules/no-create-ref
|
|
2929
2949
|
*/
|
|
2930
2950
|
'react/no-create-ref'?: Linter.RuleEntry<[]>;
|
|
2931
2951
|
/**
|
|
2932
|
-
*
|
|
2952
|
+
* Disallows the 'defaultProps' property in favor of ES6 default parameters.
|
|
2933
2953
|
* @see https://eslint-react.xyz/docs/rules/no-default-props
|
|
2934
2954
|
*/
|
|
2935
2955
|
'react/no-default-props'?: Linter.RuleEntry<[]>;
|
|
2936
2956
|
/**
|
|
2937
|
-
*
|
|
2957
|
+
* Disallows direct mutation of 'this.state'.
|
|
2938
2958
|
* @see https://eslint-react.xyz/docs/rules/no-direct-mutation-state
|
|
2939
2959
|
*/
|
|
2940
2960
|
'react/no-direct-mutation-state'?: Linter.RuleEntry<[]>;
|
|
2941
2961
|
/**
|
|
2942
|
-
*
|
|
2962
|
+
* Disallows duplicate 'key' on elements in the same array or a list of 'children'.
|
|
2943
2963
|
* @see https://eslint-react.xyz/docs/rules/no-duplicate-key
|
|
2944
2964
|
*/
|
|
2945
2965
|
'react/no-duplicate-key'?: Linter.RuleEntry<[]>;
|
|
2946
2966
|
/**
|
|
2947
|
-
*
|
|
2967
|
+
* Disallows certain props on components.
|
|
2948
2968
|
* @see https://eslint-react.xyz/docs/rules/no-forbidden-props
|
|
2949
2969
|
* @deprecated
|
|
2950
2970
|
*/
|
|
2951
2971
|
'react/no-forbidden-props'?: Linter.RuleEntry<ReactNoForbiddenProps>;
|
|
2952
2972
|
/**
|
|
2953
|
-
* Replaces
|
|
2973
|
+
* Replaces usage of 'forwardRef' with passing 'ref' as a prop.
|
|
2954
2974
|
* @see https://eslint-react.xyz/docs/rules/no-forward-ref
|
|
2955
2975
|
*/
|
|
2956
2976
|
'react/no-forward-ref'?: Linter.RuleEntry<[]>;
|
|
2957
2977
|
/**
|
|
2958
|
-
* Prevents
|
|
2978
|
+
* Prevents 'key' from not being explicitly specified (e.g., spreading 'key' from objects).
|
|
2959
2979
|
* @see https://eslint-react.xyz/docs/rules/no-implicit-key
|
|
2960
2980
|
*/
|
|
2961
2981
|
'react/no-implicit-key'?: Linter.RuleEntry<[]>;
|
|
@@ -2965,57 +2985,57 @@ interface RuleOptions {
|
|
|
2965
2985
|
*/
|
|
2966
2986
|
'react/no-leaked-conditional-rendering'?: Linter.RuleEntry<[]>;
|
|
2967
2987
|
/**
|
|
2968
|
-
* Enforces that all components have a
|
|
2988
|
+
* Enforces that all components have a 'displayName' that can be used in devtools.
|
|
2969
2989
|
* @see https://eslint-react.xyz/docs/rules/no-missing-component-display-name
|
|
2970
2990
|
*/
|
|
2971
2991
|
'react/no-missing-component-display-name'?: Linter.RuleEntry<[]>;
|
|
2972
2992
|
/**
|
|
2973
|
-
* Enforces that all contexts have a
|
|
2993
|
+
* Enforces that all contexts have a 'displayName' that can be used in devtools.
|
|
2974
2994
|
* @see https://eslint-react.xyz/docs/rules/no-missing-context-display-name
|
|
2975
2995
|
*/
|
|
2976
2996
|
'react/no-missing-context-display-name'?: Linter.RuleEntry<[]>;
|
|
2977
2997
|
/**
|
|
2978
|
-
*
|
|
2998
|
+
* Disallows missing 'key' on items in list rendering.
|
|
2979
2999
|
* @see https://eslint-react.xyz/docs/rules/no-missing-key
|
|
2980
3000
|
*/
|
|
2981
3001
|
'react/no-missing-key'?: Linter.RuleEntry<[]>;
|
|
2982
3002
|
/**
|
|
2983
|
-
* Prevents incorrect usage of
|
|
3003
|
+
* Prevents incorrect usage of 'captureOwnerStack'.
|
|
2984
3004
|
* @see https://eslint-react.xyz/docs/rules/no-misused-capture-owner-stack
|
|
2985
3005
|
*/
|
|
2986
3006
|
'react/no-misused-capture-owner-stack'?: Linter.RuleEntry<[]>;
|
|
2987
3007
|
/**
|
|
2988
|
-
*
|
|
3008
|
+
* Disallows nesting component definitions inside other components.
|
|
2989
3009
|
* @see https://eslint-react.xyz/docs/rules/no-nested-component-definitions
|
|
2990
3010
|
*/
|
|
2991
3011
|
'react/no-nested-component-definitions'?: Linter.RuleEntry<[]>;
|
|
2992
3012
|
/**
|
|
2993
|
-
*
|
|
3013
|
+
* Disallows nesting lazy component declarations inside other components.
|
|
2994
3014
|
* @see https://eslint-react.xyz/docs/rules/no-nested-lazy-component-declarations
|
|
2995
3015
|
*/
|
|
2996
3016
|
'react/no-nested-lazy-component-declarations'?: Linter.RuleEntry<[]>;
|
|
2997
3017
|
/**
|
|
2998
|
-
*
|
|
3018
|
+
* Disallows 'propTypes' in favor of TypeScript or another type-checking solution.
|
|
2999
3019
|
* @see https://eslint-react.xyz/docs/rules/no-prop-types
|
|
3000
3020
|
*/
|
|
3001
3021
|
'react/no-prop-types'?: Linter.RuleEntry<[]>;
|
|
3002
3022
|
/**
|
|
3003
|
-
*
|
|
3023
|
+
* Disallows 'shouldComponentUpdate' when extending 'React.PureComponent'.
|
|
3004
3024
|
* @see https://eslint-react.xyz/docs/rules/no-redundant-should-component-update
|
|
3005
3025
|
*/
|
|
3006
3026
|
'react/no-redundant-should-component-update'?: Linter.RuleEntry<[]>;
|
|
3007
3027
|
/**
|
|
3008
|
-
*
|
|
3028
|
+
* Disallows calling 'this.setState' in 'componentDidMount' outside functions such as callbacks.
|
|
3009
3029
|
* @see https://eslint-react.xyz/docs/rules/no-set-state-in-component-did-mount
|
|
3010
3030
|
*/
|
|
3011
3031
|
'react/no-set-state-in-component-did-mount'?: Linter.RuleEntry<[]>;
|
|
3012
3032
|
/**
|
|
3013
|
-
*
|
|
3033
|
+
* Disallows calling 'this.setState' in 'componentDidUpdate' outside functions such as callbacks.
|
|
3014
3034
|
* @see https://eslint-react.xyz/docs/rules/no-set-state-in-component-did-update
|
|
3015
3035
|
*/
|
|
3016
3036
|
'react/no-set-state-in-component-did-update'?: Linter.RuleEntry<[]>;
|
|
3017
3037
|
/**
|
|
3018
|
-
*
|
|
3038
|
+
* Disallows calling 'this.setState' in 'componentWillUpdate' outside functions such as callbacks.
|
|
3019
3039
|
* @see https://eslint-react.xyz/docs/rules/no-set-state-in-component-will-update
|
|
3020
3040
|
*/
|
|
3021
3041
|
'react/no-set-state-in-component-will-update'?: Linter.RuleEntry<[]>;
|
|
@@ -3025,42 +3045,47 @@ interface RuleOptions {
|
|
|
3025
3045
|
*/
|
|
3026
3046
|
'react/no-string-refs'?: Linter.RuleEntry<[]>;
|
|
3027
3047
|
/**
|
|
3028
|
-
*
|
|
3048
|
+
* Disallows unnecessary 'key' props on elements.
|
|
3029
3049
|
* @see https://eslint-react.xyz/docs/rules/no-unnecessary-key
|
|
3030
3050
|
*/
|
|
3031
3051
|
'react/no-unnecessary-key'?: Linter.RuleEntry<[]>;
|
|
3032
3052
|
/**
|
|
3033
|
-
*
|
|
3053
|
+
* Disallows unnecessary usage of 'useCallback'.
|
|
3034
3054
|
* @see https://eslint-react.xyz/docs/rules/no-unnecessary-use-callback
|
|
3035
3055
|
*/
|
|
3036
3056
|
'react/no-unnecessary-use-callback'?: Linter.RuleEntry<[]>;
|
|
3037
3057
|
/**
|
|
3038
|
-
*
|
|
3058
|
+
* Disallows unnecessary usage of 'useMemo'.
|
|
3039
3059
|
* @see https://eslint-react.xyz/docs/rules/no-unnecessary-use-memo
|
|
3040
3060
|
*/
|
|
3041
3061
|
'react/no-unnecessary-use-memo'?: Linter.RuleEntry<[]>;
|
|
3042
3062
|
/**
|
|
3043
|
-
* Enforces that a function with the
|
|
3063
|
+
* Enforces that a function with the 'use' prefix uses at least one Hook inside it.
|
|
3044
3064
|
* @see https://eslint-react.xyz/docs/rules/no-unnecessary-use-prefix
|
|
3045
3065
|
*/
|
|
3046
3066
|
'react/no-unnecessary-use-prefix'?: Linter.RuleEntry<[]>;
|
|
3047
3067
|
/**
|
|
3048
|
-
*
|
|
3068
|
+
* Disallows unnecessary usage of 'useRef'.
|
|
3069
|
+
* @see https://eslint-react.xyz/docs/rules/no-unnecessary-use-ref
|
|
3070
|
+
*/
|
|
3071
|
+
'react/no-unnecessary-use-ref'?: Linter.RuleEntry<[]>;
|
|
3072
|
+
/**
|
|
3073
|
+
* Warns about the use of 'UNSAFE_componentWillMount' in class components.
|
|
3049
3074
|
* @see https://eslint-react.xyz/docs/rules/no-unsafe-component-will-mount
|
|
3050
3075
|
*/
|
|
3051
3076
|
'react/no-unsafe-component-will-mount'?: Linter.RuleEntry<[]>;
|
|
3052
3077
|
/**
|
|
3053
|
-
* Warns the
|
|
3078
|
+
* Warns about the use of 'UNSAFE_componentWillReceiveProps' in class components.
|
|
3054
3079
|
* @see https://eslint-react.xyz/docs/rules/no-unsafe-component-will-receive-props
|
|
3055
3080
|
*/
|
|
3056
3081
|
'react/no-unsafe-component-will-receive-props'?: Linter.RuleEntry<[]>;
|
|
3057
3082
|
/**
|
|
3058
|
-
* Warns the
|
|
3083
|
+
* Warns about the use of 'UNSAFE_componentWillUpdate' in class components.
|
|
3059
3084
|
* @see https://eslint-react.xyz/docs/rules/no-unsafe-component-will-update
|
|
3060
3085
|
*/
|
|
3061
3086
|
'react/no-unsafe-component-will-update'?: Linter.RuleEntry<[]>;
|
|
3062
3087
|
/**
|
|
3063
|
-
* Prevents non-stable values (i.e
|
|
3088
|
+
* Prevents non-stable values (i.e., object literals) from being used as a value for 'Context.Provider'.
|
|
3064
3089
|
* @see https://eslint-react.xyz/docs/rules/no-unstable-context-value
|
|
3065
3090
|
*/
|
|
3066
3091
|
'react/no-unstable-context-value'?: Linter.RuleEntry<[]>;
|
|
@@ -3070,32 +3095,32 @@ interface RuleOptions {
|
|
|
3070
3095
|
*/
|
|
3071
3096
|
'react/no-unstable-default-props'?: Linter.RuleEntry<ReactNoUnstableDefaultProps>;
|
|
3072
3097
|
/**
|
|
3073
|
-
* Warns unused class component methods and properties.
|
|
3098
|
+
* Warns about unused class component methods and properties.
|
|
3074
3099
|
* @see https://eslint-react.xyz/docs/rules/no-unused-class-component-members
|
|
3075
3100
|
*/
|
|
3076
3101
|
'react/no-unused-class-component-members'?: Linter.RuleEntry<[]>;
|
|
3077
3102
|
/**
|
|
3078
|
-
* Warns component props that are defined but never used.
|
|
3103
|
+
* Warns about component props that are defined but never used.
|
|
3079
3104
|
* @see https://eslint-react.xyz/docs/rules/no-unused-props
|
|
3080
3105
|
*/
|
|
3081
3106
|
'react/no-unused-props'?: Linter.RuleEntry<[]>;
|
|
3082
3107
|
/**
|
|
3083
|
-
* Warns unused class component state.
|
|
3108
|
+
* Warns about unused class component state.
|
|
3084
3109
|
* @see https://eslint-react.xyz/docs/rules/no-unused-state
|
|
3085
3110
|
*/
|
|
3086
3111
|
'react/no-unused-state'?: Linter.RuleEntry<[]>;
|
|
3087
3112
|
/**
|
|
3088
|
-
* Replaces
|
|
3113
|
+
* Replaces usage of 'useContext' with 'use'.
|
|
3089
3114
|
* @see https://eslint-react.xyz/docs/rules/no-use-context
|
|
3090
3115
|
*/
|
|
3091
3116
|
'react/no-use-context'?: Linter.RuleEntry<[]>;
|
|
3092
3117
|
/**
|
|
3093
|
-
*
|
|
3118
|
+
* Disallows useless 'forwardRef' calls on components that don't use 'ref's.
|
|
3094
3119
|
* @see https://eslint-react.xyz/docs/rules/no-useless-forward-ref
|
|
3095
3120
|
*/
|
|
3096
3121
|
'react/no-useless-forward-ref'?: Linter.RuleEntry<[]>;
|
|
3097
3122
|
/**
|
|
3098
|
-
*
|
|
3123
|
+
* Disallows useless fragment elements.
|
|
3099
3124
|
* @see https://eslint-react.xyz/docs/rules/no-useless-fragment
|
|
3100
3125
|
*/
|
|
3101
3126
|
'react/no-useless-fragment'?: Linter.RuleEntry<ReactNoUselessFragment>;
|
|
@@ -3105,7 +3130,7 @@ interface RuleOptions {
|
|
|
3105
3130
|
*/
|
|
3106
3131
|
'react/prefer-destructuring-assignment'?: Linter.RuleEntry<[]>;
|
|
3107
3132
|
/**
|
|
3108
|
-
* Enforces React
|
|
3133
|
+
* Enforces importing React via a namespace import.
|
|
3109
3134
|
* @see https://eslint-react.xyz/docs/rules/prefer-namespace-import
|
|
3110
3135
|
*/
|
|
3111
3136
|
'react/prefer-namespace-import'?: Linter.RuleEntry<[]>;
|
|
@@ -3115,7 +3140,7 @@ interface RuleOptions {
|
|
|
3115
3140
|
*/
|
|
3116
3141
|
'react/prefer-read-only-props'?: Linter.RuleEntry<[]>;
|
|
3117
3142
|
/**
|
|
3118
|
-
* Enforces function calls made inside
|
|
3143
|
+
* Enforces wrapping function calls made inside 'useState' in an 'initializer function'.
|
|
3119
3144
|
* @see https://eslint-react.xyz/docs/rules/prefer-use-state-lazy-initialization
|
|
3120
3145
|
*/
|
|
3121
3146
|
'react/prefer-use-state-lazy-initialization'?: Linter.RuleEntry<[]>;
|
|
@@ -3834,6 +3859,7 @@ interface RuleOptions {
|
|
|
3834
3859
|
/**
|
|
3835
3860
|
* Enforce props alphabetical sorting
|
|
3836
3861
|
* @see https://eslint.style/rules/jsx-sort-props
|
|
3862
|
+
* @deprecated
|
|
3837
3863
|
*/
|
|
3838
3864
|
'style/jsx-sort-props'?: Linter.RuleEntry<StyleJsxSortProps>;
|
|
3839
3865
|
/**
|
|
@@ -4188,7 +4214,7 @@ interface RuleOptions {
|
|
|
4188
4214
|
* disallow conditional expects
|
|
4189
4215
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-conditional-expect.md
|
|
4190
4216
|
*/
|
|
4191
|
-
'test/no-conditional-expect'?: Linter.RuleEntry<
|
|
4217
|
+
'test/no-conditional-expect'?: Linter.RuleEntry<TestNoConditionalExpect>;
|
|
4192
4218
|
/**
|
|
4193
4219
|
* disallow conditional tests
|
|
4194
4220
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-conditional-in-test.md
|
|
@@ -4399,7 +4425,7 @@ interface RuleOptions {
|
|
|
4399
4425
|
* prefer dynamic import in mock
|
|
4400
4426
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-import-in-mock.md
|
|
4401
4427
|
*/
|
|
4402
|
-
'test/prefer-import-in-mock'?: Linter.RuleEntry<
|
|
4428
|
+
'test/prefer-import-in-mock'?: Linter.RuleEntry<TestPreferImportInMock>;
|
|
4403
4429
|
/**
|
|
4404
4430
|
* enforce importing Vitest globals
|
|
4405
4431
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-importing-vitest-globals.md
|
|
@@ -4415,6 +4441,11 @@ interface RuleOptions {
|
|
|
4415
4441
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-mock-promise-shorthand.md
|
|
4416
4442
|
*/
|
|
4417
4443
|
'test/prefer-mock-promise-shorthand'?: Linter.RuleEntry<[]>;
|
|
4444
|
+
/**
|
|
4445
|
+
* Prefer mock return shorthands
|
|
4446
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-mock-return-shorthand.md
|
|
4447
|
+
*/
|
|
4448
|
+
'test/prefer-mock-return-shorthand'?: Linter.RuleEntry<[]>;
|
|
4418
4449
|
/**
|
|
4419
4450
|
* enforce including a hint with external snapshots
|
|
4420
4451
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-snapshot-hint.md
|
|
@@ -4460,6 +4491,11 @@ interface RuleOptions {
|
|
|
4460
4491
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-contain.md
|
|
4461
4492
|
*/
|
|
4462
4493
|
'test/prefer-to-contain'?: Linter.RuleEntry<[]>;
|
|
4494
|
+
/**
|
|
4495
|
+
* Suggest using `toHaveBeenCalledTimes()`
|
|
4496
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-have-been-called-times.md
|
|
4497
|
+
*/
|
|
4498
|
+
'test/prefer-to-have-been-called-times'?: Linter.RuleEntry<[]>;
|
|
4463
4499
|
/**
|
|
4464
4500
|
* enforce using toHaveLength()
|
|
4465
4501
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-have-length.md
|
|
@@ -4485,11 +4521,6 @@ interface RuleOptions {
|
|
|
4485
4521
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-hook.md
|
|
4486
4522
|
*/
|
|
4487
4523
|
'test/require-hook'?: Linter.RuleEntry<TestRequireHook>;
|
|
4488
|
-
/**
|
|
4489
|
-
* require usage of import in vi.mock()
|
|
4490
|
-
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-import-vi-mock.md
|
|
4491
|
-
*/
|
|
4492
|
-
'test/require-import-vi-mock'?: Linter.RuleEntry<[]>;
|
|
4493
4524
|
/**
|
|
4494
4525
|
* require local Test Context for concurrent snapshot tests
|
|
4495
4526
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-local-test-context-for-concurrent-snapshots.md
|
|
@@ -4500,6 +4531,11 @@ interface RuleOptions {
|
|
|
4500
4531
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-mock-type-parameters.md
|
|
4501
4532
|
*/
|
|
4502
4533
|
'test/require-mock-type-parameters'?: Linter.RuleEntry<TestRequireMockTypeParameters>;
|
|
4534
|
+
/**
|
|
4535
|
+
* require tests to declare a timeout
|
|
4536
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-test-timeout.md
|
|
4537
|
+
*/
|
|
4538
|
+
'test/require-test-timeout'?: Linter.RuleEntry<[]>;
|
|
4503
4539
|
/**
|
|
4504
4540
|
* require toThrow() to be called with an error message
|
|
4505
4541
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-to-throw-message.md
|
|
@@ -5287,6 +5323,11 @@ interface RuleOptions {
|
|
|
5287
5323
|
* @see https://typescript-eslint.io/rules/strict-boolean-expressions
|
|
5288
5324
|
*/
|
|
5289
5325
|
'ts/strict-boolean-expressions'?: Linter.RuleEntry<TsStrictBooleanExpressions>;
|
|
5326
|
+
/**
|
|
5327
|
+
* Disallow passing a value-returning function in a position accepting a void function
|
|
5328
|
+
* @see https://typescript-eslint.io/rules/strict-void-return
|
|
5329
|
+
*/
|
|
5330
|
+
'ts/strict-void-return'?: Linter.RuleEntry<TsStrictVoidReturn>;
|
|
5290
5331
|
/**
|
|
5291
5332
|
* Require switch-case statements to be exhaustive
|
|
5292
5333
|
* @see https://typescript-eslint.io/rules/switch-exhaustiveness-check
|
|
@@ -7694,6 +7735,7 @@ type FormatDprint = [] | [{
|
|
|
7694
7735
|
languageOptions?: {
|
|
7695
7736
|
[k: string]: unknown | undefined;
|
|
7696
7737
|
};
|
|
7738
|
+
plugins?: unknown[];
|
|
7697
7739
|
[k: string]: unknown | undefined;
|
|
7698
7740
|
}];
|
|
7699
7741
|
// ----- format/prettier -----
|
|
@@ -7794,6 +7836,10 @@ type ImportNewlineAfterImport = [] | [{
|
|
|
7794
7836
|
type ImportNoDuplicates = [] | [{
|
|
7795
7837
|
"prefer-inline"?: boolean;
|
|
7796
7838
|
}];
|
|
7839
|
+
// ----- import/prefer-default-export -----
|
|
7840
|
+
type ImportPreferDefaultExport = [] | [{
|
|
7841
|
+
target?: ("single" | "any");
|
|
7842
|
+
}];
|
|
7797
7843
|
// ----- indent -----
|
|
7798
7844
|
type Indent = [] | [("tab" | number)] | [("tab" | number), {
|
|
7799
7845
|
SwitchCase?: number;
|
|
@@ -8155,6 +8201,7 @@ type JsdocRequireHyphenBeforeParamDescription = [] | [("always" | "never")] | [(
|
|
|
8155
8201
|
}];
|
|
8156
8202
|
// ----- jsdoc/require-jsdoc -----
|
|
8157
8203
|
type JsdocRequireJsdoc = [] | [{
|
|
8204
|
+
checkAllFunctionExpressions?: boolean;
|
|
8158
8205
|
checkConstructors?: boolean;
|
|
8159
8206
|
checkGetters?: (boolean | "no-setter");
|
|
8160
8207
|
checkSetters?: (boolean | "no-getter");
|
|
@@ -10005,27 +10052,34 @@ type PaddingLineBetweenStatements = {
|
|
|
10005
10052
|
// ----- perfectionist/sort-array-includes -----
|
|
10006
10053
|
type PerfectionistSortArrayIncludes = {
|
|
10007
10054
|
fallbackSort?: {
|
|
10055
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10008
10056
|
order?: ("asc" | "desc");
|
|
10009
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10010
10057
|
};
|
|
10058
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10011
10059
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10012
10060
|
ignoreCase?: boolean;
|
|
10013
10061
|
alphabet?: string;
|
|
10014
10062
|
locales?: (string | string[]);
|
|
10015
10063
|
order?: ("asc" | "desc");
|
|
10016
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10017
|
-
groupKind?: ("mixed" | "literals-first" | "spreads-first");
|
|
10018
10064
|
customGroups?: ({
|
|
10019
|
-
newlinesInside?: (("always" | "never") | number);
|
|
10020
10065
|
fallbackSort?: {
|
|
10066
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10021
10067
|
order?: ("asc" | "desc");
|
|
10022
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10023
10068
|
};
|
|
10069
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10024
10070
|
groupName: string;
|
|
10071
|
+
newlinesInside?: ("ignore" | number);
|
|
10025
10072
|
order?: ("asc" | "desc");
|
|
10026
|
-
|
|
10027
|
-
|
|
10073
|
+
anyOf: [{
|
|
10074
|
+
elementNamePattern?: (({
|
|
10075
|
+
pattern: string;
|
|
10076
|
+
flags?: string;
|
|
10077
|
+
} | string)[] | ({
|
|
10078
|
+
pattern: string;
|
|
10079
|
+
flags?: string;
|
|
10080
|
+
} | string));
|
|
10028
10081
|
selector?: ("literal" | "spread");
|
|
10082
|
+
}, ...({
|
|
10029
10083
|
elementNamePattern?: (({
|
|
10030
10084
|
pattern: string;
|
|
10031
10085
|
flags?: string;
|
|
@@ -10033,17 +10087,17 @@ type PerfectionistSortArrayIncludes = {
|
|
|
10033
10087
|
pattern: string;
|
|
10034
10088
|
flags?: string;
|
|
10035
10089
|
} | string));
|
|
10036
|
-
|
|
10090
|
+
selector?: ("literal" | "spread");
|
|
10091
|
+
})[]];
|
|
10037
10092
|
} | {
|
|
10038
|
-
newlinesInside?: (("always" | "never") | number);
|
|
10039
10093
|
fallbackSort?: {
|
|
10094
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10040
10095
|
order?: ("asc" | "desc");
|
|
10041
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10042
10096
|
};
|
|
10097
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10043
10098
|
groupName: string;
|
|
10099
|
+
newlinesInside?: ("ignore" | number);
|
|
10044
10100
|
order?: ("asc" | "desc");
|
|
10045
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10046
|
-
selector?: ("literal" | "spread");
|
|
10047
10101
|
elementNamePattern?: (({
|
|
10048
10102
|
pattern: string;
|
|
10049
10103
|
flags?: string;
|
|
@@ -10051,7 +10105,23 @@ type PerfectionistSortArrayIncludes = {
|
|
|
10051
10105
|
pattern: string;
|
|
10052
10106
|
flags?: string;
|
|
10053
10107
|
} | string));
|
|
10108
|
+
selector?: ("literal" | "spread");
|
|
10054
10109
|
})[];
|
|
10110
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
10111
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
10112
|
+
newlinesBetween: ("ignore" | number);
|
|
10113
|
+
} | {
|
|
10114
|
+
group: (string | [string, ...(string)[]]);
|
|
10115
|
+
fallbackSort?: {
|
|
10116
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10117
|
+
order?: ("asc" | "desc");
|
|
10118
|
+
};
|
|
10119
|
+
commentAbove?: string;
|
|
10120
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10121
|
+
newlinesInside?: ("ignore" | number);
|
|
10122
|
+
order?: ("asc" | "desc");
|
|
10123
|
+
})[];
|
|
10124
|
+
newlinesBetween?: ("ignore" | number);
|
|
10055
10125
|
useConfigurationIf?: {
|
|
10056
10126
|
allNamesMatchPattern?: (({
|
|
10057
10127
|
pattern: string;
|
|
@@ -10084,34 +10154,36 @@ type PerfectionistSortArrayIncludes = {
|
|
|
10084
10154
|
} | string)));
|
|
10085
10155
|
});
|
|
10086
10156
|
partitionByNewLine?: boolean;
|
|
10087
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10088
|
-
groups?: (string | string[] | {
|
|
10089
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10090
|
-
commentAbove?: string;
|
|
10091
|
-
})[];
|
|
10092
10157
|
}[];
|
|
10093
10158
|
// ----- perfectionist/sort-classes -----
|
|
10094
10159
|
type PerfectionistSortClasses = [] | [{
|
|
10095
10160
|
fallbackSort?: {
|
|
10161
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10096
10162
|
order?: ("asc" | "desc");
|
|
10097
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10098
10163
|
};
|
|
10164
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10099
10165
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10100
10166
|
ignoreCase?: boolean;
|
|
10101
10167
|
alphabet?: string;
|
|
10102
10168
|
locales?: (string | string[]);
|
|
10103
10169
|
order?: ("asc" | "desc");
|
|
10104
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10105
10170
|
customGroups?: ({
|
|
10106
|
-
newlinesInside?: (("always" | "never") | number);
|
|
10107
10171
|
fallbackSort?: {
|
|
10172
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10108
10173
|
order?: ("asc" | "desc");
|
|
10109
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10110
10174
|
};
|
|
10175
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10111
10176
|
groupName: string;
|
|
10177
|
+
newlinesInside?: ("ignore" | number);
|
|
10112
10178
|
order?: ("asc" | "desc");
|
|
10113
|
-
|
|
10114
|
-
|
|
10179
|
+
anyOf: [{
|
|
10180
|
+
elementNamePattern?: (({
|
|
10181
|
+
pattern: string;
|
|
10182
|
+
flags?: string;
|
|
10183
|
+
} | string)[] | ({
|
|
10184
|
+
pattern: string;
|
|
10185
|
+
flags?: string;
|
|
10186
|
+
} | string));
|
|
10115
10187
|
modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[];
|
|
10116
10188
|
selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method");
|
|
10117
10189
|
decoratorNamePattern?: (({
|
|
@@ -10128,6 +10200,7 @@ type PerfectionistSortClasses = [] | [{
|
|
|
10128
10200
|
pattern: string;
|
|
10129
10201
|
flags?: string;
|
|
10130
10202
|
} | string));
|
|
10203
|
+
}, ...({
|
|
10131
10204
|
elementNamePattern?: (({
|
|
10132
10205
|
pattern: string;
|
|
10133
10206
|
flags?: string;
|
|
@@ -10135,33 +10208,49 @@ type PerfectionistSortClasses = [] | [{
|
|
|
10135
10208
|
pattern: string;
|
|
10136
10209
|
flags?: string;
|
|
10137
10210
|
} | string));
|
|
10138
|
-
|
|
10211
|
+
modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[];
|
|
10212
|
+
selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method");
|
|
10213
|
+
decoratorNamePattern?: (({
|
|
10214
|
+
pattern: string;
|
|
10215
|
+
flags?: string;
|
|
10216
|
+
} | string)[] | ({
|
|
10217
|
+
pattern: string;
|
|
10218
|
+
flags?: string;
|
|
10219
|
+
} | string));
|
|
10220
|
+
elementValuePattern?: (({
|
|
10221
|
+
pattern: string;
|
|
10222
|
+
flags?: string;
|
|
10223
|
+
} | string)[] | ({
|
|
10224
|
+
pattern: string;
|
|
10225
|
+
flags?: string;
|
|
10226
|
+
} | string));
|
|
10227
|
+
})[]];
|
|
10139
10228
|
} | {
|
|
10140
|
-
newlinesInside?: (("always" | "never") | number);
|
|
10141
10229
|
fallbackSort?: {
|
|
10230
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10142
10231
|
order?: ("asc" | "desc");
|
|
10143
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10144
10232
|
};
|
|
10233
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10145
10234
|
groupName: string;
|
|
10235
|
+
newlinesInside?: ("ignore" | number);
|
|
10146
10236
|
order?: ("asc" | "desc");
|
|
10147
|
-
|
|
10148
|
-
modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[];
|
|
10149
|
-
selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method");
|
|
10150
|
-
decoratorNamePattern?: (({
|
|
10237
|
+
elementNamePattern?: (({
|
|
10151
10238
|
pattern: string;
|
|
10152
10239
|
flags?: string;
|
|
10153
10240
|
} | string)[] | ({
|
|
10154
10241
|
pattern: string;
|
|
10155
10242
|
flags?: string;
|
|
10156
10243
|
} | string));
|
|
10157
|
-
|
|
10244
|
+
modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[];
|
|
10245
|
+
selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method");
|
|
10246
|
+
decoratorNamePattern?: (({
|
|
10158
10247
|
pattern: string;
|
|
10159
10248
|
flags?: string;
|
|
10160
10249
|
} | string)[] | ({
|
|
10161
10250
|
pattern: string;
|
|
10162
10251
|
flags?: string;
|
|
10163
10252
|
} | string));
|
|
10164
|
-
|
|
10253
|
+
elementValuePattern?: (({
|
|
10165
10254
|
pattern: string;
|
|
10166
10255
|
flags?: string;
|
|
10167
10256
|
} | string)[] | ({
|
|
@@ -10169,6 +10258,21 @@ type PerfectionistSortClasses = [] | [{
|
|
|
10169
10258
|
flags?: string;
|
|
10170
10259
|
} | string));
|
|
10171
10260
|
})[];
|
|
10261
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
10262
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
10263
|
+
newlinesBetween: ("ignore" | number);
|
|
10264
|
+
} | {
|
|
10265
|
+
group: (string | [string, ...(string)[]]);
|
|
10266
|
+
fallbackSort?: {
|
|
10267
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10268
|
+
order?: ("asc" | "desc");
|
|
10269
|
+
};
|
|
10270
|
+
commentAbove?: string;
|
|
10271
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10272
|
+
newlinesInside?: ("ignore" | number);
|
|
10273
|
+
order?: ("asc" | "desc");
|
|
10274
|
+
})[];
|
|
10275
|
+
newlinesBetween?: ("ignore" | number);
|
|
10172
10276
|
ignoreCallbackDependenciesPatterns?: (({
|
|
10173
10277
|
pattern: string;
|
|
10174
10278
|
flags?: string;
|
|
@@ -10199,24 +10303,77 @@ type PerfectionistSortClasses = [] | [{
|
|
|
10199
10303
|
} | string)));
|
|
10200
10304
|
});
|
|
10201
10305
|
partitionByNewLine?: boolean;
|
|
10202
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10203
|
-
groups?: (string | string[] | {
|
|
10204
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10205
|
-
commentAbove?: string;
|
|
10206
|
-
})[];
|
|
10207
10306
|
}];
|
|
10208
10307
|
// ----- perfectionist/sort-decorators -----
|
|
10209
|
-
type PerfectionistSortDecorators =
|
|
10308
|
+
type PerfectionistSortDecorators = {
|
|
10210
10309
|
fallbackSort?: {
|
|
10310
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10211
10311
|
order?: ("asc" | "desc");
|
|
10212
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10213
10312
|
};
|
|
10313
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10214
10314
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10215
10315
|
ignoreCase?: boolean;
|
|
10216
10316
|
alphabet?: string;
|
|
10217
10317
|
locales?: (string | string[]);
|
|
10218
10318
|
order?: ("asc" | "desc");
|
|
10219
|
-
|
|
10319
|
+
customGroups?: ({
|
|
10320
|
+
fallbackSort?: {
|
|
10321
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10322
|
+
order?: ("asc" | "desc");
|
|
10323
|
+
};
|
|
10324
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10325
|
+
groupName: string;
|
|
10326
|
+
newlinesInside?: ("ignore" | number);
|
|
10327
|
+
order?: ("asc" | "desc");
|
|
10328
|
+
anyOf: [{
|
|
10329
|
+
elementNamePattern?: (({
|
|
10330
|
+
pattern: string;
|
|
10331
|
+
flags?: string;
|
|
10332
|
+
} | string)[] | ({
|
|
10333
|
+
pattern: string;
|
|
10334
|
+
flags?: string;
|
|
10335
|
+
} | string));
|
|
10336
|
+
}, ...({
|
|
10337
|
+
elementNamePattern?: (({
|
|
10338
|
+
pattern: string;
|
|
10339
|
+
flags?: string;
|
|
10340
|
+
} | string)[] | ({
|
|
10341
|
+
pattern: string;
|
|
10342
|
+
flags?: string;
|
|
10343
|
+
} | string));
|
|
10344
|
+
})[]];
|
|
10345
|
+
} | {
|
|
10346
|
+
fallbackSort?: {
|
|
10347
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10348
|
+
order?: ("asc" | "desc");
|
|
10349
|
+
};
|
|
10350
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10351
|
+
groupName: string;
|
|
10352
|
+
newlinesInside?: ("ignore" | number);
|
|
10353
|
+
order?: ("asc" | "desc");
|
|
10354
|
+
elementNamePattern?: (({
|
|
10355
|
+
pattern: string;
|
|
10356
|
+
flags?: string;
|
|
10357
|
+
} | string)[] | ({
|
|
10358
|
+
pattern: string;
|
|
10359
|
+
flags?: string;
|
|
10360
|
+
} | string));
|
|
10361
|
+
})[];
|
|
10362
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
10363
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
10364
|
+
newlinesBetween: ("ignore" | number);
|
|
10365
|
+
} | {
|
|
10366
|
+
group: (string | [string, ...(string)[]]);
|
|
10367
|
+
fallbackSort?: {
|
|
10368
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10369
|
+
order?: ("asc" | "desc");
|
|
10370
|
+
};
|
|
10371
|
+
commentAbove?: string;
|
|
10372
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10373
|
+
newlinesInside?: ("ignore" | number);
|
|
10374
|
+
order?: ("asc" | "desc");
|
|
10375
|
+
})[];
|
|
10376
|
+
newlinesBetween?: ("ignore" | number);
|
|
10220
10377
|
sortOnParameters?: boolean;
|
|
10221
10378
|
sortOnProperties?: boolean;
|
|
10222
10379
|
sortOnAccessors?: boolean;
|
|
@@ -10244,38 +10401,37 @@ type PerfectionistSortDecorators = [] | [{
|
|
|
10244
10401
|
flags?: string;
|
|
10245
10402
|
} | string)));
|
|
10246
10403
|
});
|
|
10247
|
-
|
|
10248
|
-
|
|
10249
|
-
};
|
|
10250
|
-
groups?: (string | string[] | {
|
|
10251
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10252
|
-
commentAbove?: string;
|
|
10253
|
-
})[];
|
|
10254
|
-
}];
|
|
10404
|
+
partitionByNewLine?: boolean;
|
|
10405
|
+
}[];
|
|
10255
10406
|
// ----- perfectionist/sort-enums -----
|
|
10256
10407
|
type PerfectionistSortEnums = [] | [{
|
|
10257
10408
|
fallbackSort?: {
|
|
10409
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10258
10410
|
order?: ("asc" | "desc");
|
|
10259
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10260
10411
|
};
|
|
10412
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10261
10413
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10262
10414
|
ignoreCase?: boolean;
|
|
10263
10415
|
alphabet?: string;
|
|
10264
10416
|
locales?: (string | string[]);
|
|
10265
10417
|
order?: ("asc" | "desc");
|
|
10266
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10267
10418
|
customGroups?: ({
|
|
10268
|
-
[k: string]: (string | string[]) | undefined;
|
|
10269
|
-
} | ({
|
|
10270
|
-
newlinesInside?: (("always" | "never") | number);
|
|
10271
10419
|
fallbackSort?: {
|
|
10420
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10272
10421
|
order?: ("asc" | "desc");
|
|
10273
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10274
10422
|
};
|
|
10423
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10275
10424
|
groupName: string;
|
|
10425
|
+
newlinesInside?: ("ignore" | number);
|
|
10276
10426
|
order?: ("asc" | "desc");
|
|
10277
|
-
|
|
10278
|
-
|
|
10427
|
+
anyOf: [{
|
|
10428
|
+
elementNamePattern?: (({
|
|
10429
|
+
pattern: string;
|
|
10430
|
+
flags?: string;
|
|
10431
|
+
} | string)[] | ({
|
|
10432
|
+
pattern: string;
|
|
10433
|
+
flags?: string;
|
|
10434
|
+
} | string));
|
|
10279
10435
|
elementValuePattern?: (({
|
|
10280
10436
|
pattern: string;
|
|
10281
10437
|
flags?: string;
|
|
@@ -10283,6 +10439,7 @@ type PerfectionistSortEnums = [] | [{
|
|
|
10283
10439
|
pattern: string;
|
|
10284
10440
|
flags?: string;
|
|
10285
10441
|
} | string));
|
|
10442
|
+
}, ...({
|
|
10286
10443
|
elementNamePattern?: (({
|
|
10287
10444
|
pattern: string;
|
|
10288
10445
|
flags?: string;
|
|
@@ -10290,33 +10447,54 @@ type PerfectionistSortEnums = [] | [{
|
|
|
10290
10447
|
pattern: string;
|
|
10291
10448
|
flags?: string;
|
|
10292
10449
|
} | string));
|
|
10293
|
-
|
|
10450
|
+
elementValuePattern?: (({
|
|
10451
|
+
pattern: string;
|
|
10452
|
+
flags?: string;
|
|
10453
|
+
} | string)[] | ({
|
|
10454
|
+
pattern: string;
|
|
10455
|
+
flags?: string;
|
|
10456
|
+
} | string));
|
|
10457
|
+
})[]];
|
|
10294
10458
|
} | {
|
|
10295
|
-
newlinesInside?: (("always" | "never") | number);
|
|
10296
10459
|
fallbackSort?: {
|
|
10460
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10297
10461
|
order?: ("asc" | "desc");
|
|
10298
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10299
10462
|
};
|
|
10463
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10300
10464
|
groupName: string;
|
|
10465
|
+
newlinesInside?: ("ignore" | number);
|
|
10301
10466
|
order?: ("asc" | "desc");
|
|
10302
|
-
|
|
10303
|
-
elementValuePattern?: (({
|
|
10467
|
+
elementNamePattern?: (({
|
|
10304
10468
|
pattern: string;
|
|
10305
10469
|
flags?: string;
|
|
10306
10470
|
} | string)[] | ({
|
|
10307
10471
|
pattern: string;
|
|
10308
10472
|
flags?: string;
|
|
10309
10473
|
} | string));
|
|
10310
|
-
|
|
10474
|
+
elementValuePattern?: (({
|
|
10311
10475
|
pattern: string;
|
|
10312
10476
|
flags?: string;
|
|
10313
10477
|
} | string)[] | ({
|
|
10314
10478
|
pattern: string;
|
|
10315
10479
|
flags?: string;
|
|
10316
10480
|
} | string));
|
|
10317
|
-
})[]
|
|
10318
|
-
|
|
10319
|
-
|
|
10481
|
+
})[];
|
|
10482
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
10483
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
10484
|
+
newlinesBetween: ("ignore" | number);
|
|
10485
|
+
} | {
|
|
10486
|
+
group: (string | [string, ...(string)[]]);
|
|
10487
|
+
fallbackSort?: {
|
|
10488
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10489
|
+
order?: ("asc" | "desc");
|
|
10490
|
+
};
|
|
10491
|
+
commentAbove?: string;
|
|
10492
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10493
|
+
newlinesInside?: ("ignore" | number);
|
|
10494
|
+
order?: ("asc" | "desc");
|
|
10495
|
+
})[];
|
|
10496
|
+
newlinesBetween?: ("ignore" | number);
|
|
10497
|
+
sortByValue?: ("always" | "ifNumericEnum" | "never");
|
|
10320
10498
|
partitionByComment?: (boolean | (({
|
|
10321
10499
|
pattern: string;
|
|
10322
10500
|
flags?: string;
|
|
@@ -10340,37 +10518,37 @@ type PerfectionistSortEnums = [] | [{
|
|
|
10340
10518
|
} | string)));
|
|
10341
10519
|
});
|
|
10342
10520
|
partitionByNewLine?: boolean;
|
|
10343
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10344
|
-
groups?: (string | string[] | {
|
|
10345
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10346
|
-
commentAbove?: string;
|
|
10347
|
-
})[];
|
|
10348
10521
|
}];
|
|
10349
|
-
// ----- perfectionist/sort-
|
|
10350
|
-
type
|
|
10522
|
+
// ----- perfectionist/sort-export-attributes -----
|
|
10523
|
+
type PerfectionistSortExportAttributes = {
|
|
10351
10524
|
fallbackSort?: {
|
|
10525
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10352
10526
|
order?: ("asc" | "desc");
|
|
10353
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10354
10527
|
};
|
|
10528
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10355
10529
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10356
10530
|
ignoreCase?: boolean;
|
|
10357
10531
|
alphabet?: string;
|
|
10358
10532
|
locales?: (string | string[]);
|
|
10359
10533
|
order?: ("asc" | "desc");
|
|
10360
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10361
|
-
groupKind?: ("mixed" | "values-first" | "types-first");
|
|
10362
10534
|
customGroups?: ({
|
|
10363
|
-
newlinesInside?: (("always" | "never") | number);
|
|
10364
10535
|
fallbackSort?: {
|
|
10536
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10365
10537
|
order?: ("asc" | "desc");
|
|
10366
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10367
10538
|
};
|
|
10539
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10368
10540
|
groupName: string;
|
|
10541
|
+
newlinesInside?: ("ignore" | number);
|
|
10369
10542
|
order?: ("asc" | "desc");
|
|
10370
|
-
|
|
10371
|
-
|
|
10372
|
-
|
|
10373
|
-
|
|
10543
|
+
anyOf: [{
|
|
10544
|
+
elementNamePattern?: (({
|
|
10545
|
+
pattern: string;
|
|
10546
|
+
flags?: string;
|
|
10547
|
+
} | string)[] | ({
|
|
10548
|
+
pattern: string;
|
|
10549
|
+
flags?: string;
|
|
10550
|
+
} | string));
|
|
10551
|
+
}, ...({
|
|
10374
10552
|
elementNamePattern?: (({
|
|
10375
10553
|
pattern: string;
|
|
10376
10554
|
flags?: string;
|
|
@@ -10378,18 +10556,16 @@ type PerfectionistSortExports = {
|
|
|
10378
10556
|
pattern: string;
|
|
10379
10557
|
flags?: string;
|
|
10380
10558
|
} | string));
|
|
10381
|
-
}[];
|
|
10559
|
+
})[]];
|
|
10382
10560
|
} | {
|
|
10383
|
-
newlinesInside?: (("always" | "never") | number);
|
|
10384
10561
|
fallbackSort?: {
|
|
10562
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10385
10563
|
order?: ("asc" | "desc");
|
|
10386
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10387
10564
|
};
|
|
10565
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10388
10566
|
groupName: string;
|
|
10567
|
+
newlinesInside?: ("ignore" | number);
|
|
10389
10568
|
order?: ("asc" | "desc");
|
|
10390
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10391
|
-
modifiers?: ("value" | "type")[];
|
|
10392
|
-
selector?: "export";
|
|
10393
10569
|
elementNamePattern?: (({
|
|
10394
10570
|
pattern: string;
|
|
10395
10571
|
flags?: string;
|
|
@@ -10398,6 +10574,21 @@ type PerfectionistSortExports = {
|
|
|
10398
10574
|
flags?: string;
|
|
10399
10575
|
} | string));
|
|
10400
10576
|
})[];
|
|
10577
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
10578
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
10579
|
+
newlinesBetween: ("ignore" | number);
|
|
10580
|
+
} | {
|
|
10581
|
+
group: (string | [string, ...(string)[]]);
|
|
10582
|
+
fallbackSort?: {
|
|
10583
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10584
|
+
order?: ("asc" | "desc");
|
|
10585
|
+
};
|
|
10586
|
+
commentAbove?: string;
|
|
10587
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10588
|
+
newlinesInside?: ("ignore" | number);
|
|
10589
|
+
order?: ("asc" | "desc");
|
|
10590
|
+
})[];
|
|
10591
|
+
newlinesBetween?: ("ignore" | number);
|
|
10401
10592
|
partitionByComment?: (boolean | (({
|
|
10402
10593
|
pattern: string;
|
|
10403
10594
|
flags?: string;
|
|
@@ -10421,70 +10612,39 @@ type PerfectionistSortExports = {
|
|
|
10421
10612
|
} | string)));
|
|
10422
10613
|
});
|
|
10423
10614
|
partitionByNewLine?: boolean;
|
|
10424
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10425
|
-
groups?: (string | string[] | {
|
|
10426
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10427
|
-
commentAbove?: string;
|
|
10428
|
-
})[];
|
|
10429
10615
|
}[];
|
|
10430
|
-
// ----- perfectionist/sort-
|
|
10431
|
-
type
|
|
10432
|
-
fallbackSort?: {
|
|
10433
|
-
order?: ("asc" | "desc");
|
|
10434
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10435
|
-
};
|
|
10436
|
-
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10437
|
-
ignoreCase?: boolean;
|
|
10438
|
-
alphabet?: string;
|
|
10439
|
-
locales?: (string | string[]);
|
|
10440
|
-
order?: ("asc" | "desc");
|
|
10441
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10442
|
-
customGroups?: {
|
|
10443
|
-
[k: string]: (string | string[]) | undefined;
|
|
10444
|
-
};
|
|
10445
|
-
groups?: (string | string[] | {
|
|
10446
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10447
|
-
commentAbove?: string;
|
|
10448
|
-
})[];
|
|
10449
|
-
}];
|
|
10450
|
-
// ----- perfectionist/sort-imports -----
|
|
10451
|
-
type PerfectionistSortImports = {
|
|
10616
|
+
// ----- perfectionist/sort-exports -----
|
|
10617
|
+
type PerfectionistSortExports = {
|
|
10452
10618
|
fallbackSort?: {
|
|
10619
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10453
10620
|
order?: ("asc" | "desc");
|
|
10454
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10455
10621
|
};
|
|
10622
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10456
10623
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10457
10624
|
ignoreCase?: boolean;
|
|
10458
10625
|
alphabet?: string;
|
|
10459
10626
|
locales?: (string | string[]);
|
|
10460
10627
|
order?: ("asc" | "desc");
|
|
10461
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10462
10628
|
customGroups?: ({
|
|
10463
|
-
value?: {
|
|
10464
|
-
[k: string]: (string | string[]) | undefined;
|
|
10465
|
-
};
|
|
10466
|
-
type?: {
|
|
10467
|
-
[k: string]: (string | string[]) | undefined;
|
|
10468
|
-
};
|
|
10469
|
-
} | ({
|
|
10470
|
-
newlinesInside?: (("always" | "never") | number);
|
|
10471
10629
|
fallbackSort?: {
|
|
10630
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10472
10631
|
order?: ("asc" | "desc");
|
|
10473
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10474
10632
|
};
|
|
10633
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10475
10634
|
groupName: string;
|
|
10635
|
+
newlinesInside?: ("ignore" | number);
|
|
10476
10636
|
order?: ("asc" | "desc");
|
|
10477
|
-
|
|
10478
|
-
|
|
10479
|
-
modifiers?: ("default" | "named" | "require" | "side-effect" | "ts-equals" | "type" | "value" | "wildcard")[];
|
|
10480
|
-
selector?: ("side-effect-style" | "tsconfig-path" | "side-effect" | "external" | "internal" | "builtin" | "sibling" | "subpath" | "import" | "parent" | "index" | "style" | "type");
|
|
10481
|
-
elementValuePattern?: (({
|
|
10637
|
+
anyOf: [{
|
|
10638
|
+
elementNamePattern?: (({
|
|
10482
10639
|
pattern: string;
|
|
10483
10640
|
flags?: string;
|
|
10484
10641
|
} | string)[] | ({
|
|
10485
10642
|
pattern: string;
|
|
10486
10643
|
flags?: string;
|
|
10487
10644
|
} | string));
|
|
10645
|
+
modifiers?: ("value" | "type" | "named" | "wildcard" | "multiline" | "singleline")[];
|
|
10646
|
+
selector?: "export";
|
|
10647
|
+
}, ...({
|
|
10488
10648
|
elementNamePattern?: (({
|
|
10489
10649
|
pattern: string;
|
|
10490
10650
|
flags?: string;
|
|
@@ -10492,25 +10652,18 @@ type PerfectionistSortImports = {
|
|
|
10492
10652
|
pattern: string;
|
|
10493
10653
|
flags?: string;
|
|
10494
10654
|
} | string));
|
|
10495
|
-
|
|
10655
|
+
modifiers?: ("value" | "type" | "named" | "wildcard" | "multiline" | "singleline")[];
|
|
10656
|
+
selector?: "export";
|
|
10657
|
+
})[]];
|
|
10496
10658
|
} | {
|
|
10497
|
-
newlinesInside?: (("always" | "never") | number);
|
|
10498
10659
|
fallbackSort?: {
|
|
10660
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10499
10661
|
order?: ("asc" | "desc");
|
|
10500
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10501
10662
|
};
|
|
10663
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10502
10664
|
groupName: string;
|
|
10665
|
+
newlinesInside?: ("ignore" | number);
|
|
10503
10666
|
order?: ("asc" | "desc");
|
|
10504
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10505
|
-
modifiers?: ("default" | "named" | "require" | "side-effect" | "ts-equals" | "type" | "value" | "wildcard")[];
|
|
10506
|
-
selector?: ("side-effect-style" | "tsconfig-path" | "side-effect" | "external" | "internal" | "builtin" | "sibling" | "subpath" | "import" | "parent" | "index" | "style" | "type");
|
|
10507
|
-
elementValuePattern?: (({
|
|
10508
|
-
pattern: string;
|
|
10509
|
-
flags?: string;
|
|
10510
|
-
} | string)[] | ({
|
|
10511
|
-
pattern: string;
|
|
10512
|
-
flags?: string;
|
|
10513
|
-
} | string));
|
|
10514
10667
|
elementNamePattern?: (({
|
|
10515
10668
|
pattern: string;
|
|
10516
10669
|
flags?: string;
|
|
@@ -10518,15 +10671,24 @@ type PerfectionistSortImports = {
|
|
|
10518
10671
|
pattern: string;
|
|
10519
10672
|
flags?: string;
|
|
10520
10673
|
} | string));
|
|
10521
|
-
|
|
10522
|
-
|
|
10523
|
-
|
|
10524
|
-
|
|
10525
|
-
|
|
10526
|
-
|
|
10527
|
-
|
|
10528
|
-
|
|
10529
|
-
|
|
10674
|
+
modifiers?: ("value" | "type" | "named" | "wildcard" | "multiline" | "singleline")[];
|
|
10675
|
+
selector?: "export";
|
|
10676
|
+
})[];
|
|
10677
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
10678
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
10679
|
+
newlinesBetween: ("ignore" | number);
|
|
10680
|
+
} | {
|
|
10681
|
+
group: (string | [string, ...(string)[]]);
|
|
10682
|
+
fallbackSort?: {
|
|
10683
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10684
|
+
order?: ("asc" | "desc");
|
|
10685
|
+
};
|
|
10686
|
+
commentAbove?: string;
|
|
10687
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10688
|
+
newlinesInside?: ("ignore" | number);
|
|
10689
|
+
order?: ("asc" | "desc");
|
|
10690
|
+
})[];
|
|
10691
|
+
newlinesBetween?: ("ignore" | number);
|
|
10530
10692
|
partitionByComment?: (boolean | (({
|
|
10531
10693
|
pattern: string;
|
|
10532
10694
|
flags?: string;
|
|
@@ -10550,54 +10712,37 @@ type PerfectionistSortImports = {
|
|
|
10550
10712
|
} | string)));
|
|
10551
10713
|
});
|
|
10552
10714
|
partitionByNewLine?: boolean;
|
|
10553
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10554
|
-
internalPattern?: (({
|
|
10555
|
-
pattern: string;
|
|
10556
|
-
flags?: string;
|
|
10557
|
-
} | string)[] | ({
|
|
10558
|
-
pattern: string;
|
|
10559
|
-
flags?: string;
|
|
10560
|
-
} | string));
|
|
10561
|
-
groups?: (string | string[] | {
|
|
10562
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10563
|
-
commentAbove?: string;
|
|
10564
|
-
})[];
|
|
10565
10715
|
}[];
|
|
10566
|
-
// ----- perfectionist/sort-
|
|
10567
|
-
type
|
|
10716
|
+
// ----- perfectionist/sort-heritage-clauses -----
|
|
10717
|
+
type PerfectionistSortHeritageClauses = {
|
|
10568
10718
|
fallbackSort?: {
|
|
10719
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10569
10720
|
order?: ("asc" | "desc");
|
|
10570
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10571
|
-
sortBy?: ("name" | "value");
|
|
10572
10721
|
};
|
|
10722
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10573
10723
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10574
10724
|
ignoreCase?: boolean;
|
|
10575
10725
|
alphabet?: string;
|
|
10576
10726
|
locales?: (string | string[]);
|
|
10577
10727
|
order?: ("asc" | "desc");
|
|
10578
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10579
10728
|
customGroups?: ({
|
|
10580
|
-
[k: string]: (string | string[]) | undefined;
|
|
10581
|
-
} | ({
|
|
10582
|
-
newlinesInside?: (("always" | "never") | number);
|
|
10583
10729
|
fallbackSort?: {
|
|
10730
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10584
10731
|
order?: ("asc" | "desc");
|
|
10585
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10586
|
-
sortBy?: ("name" | "value");
|
|
10587
10732
|
};
|
|
10733
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10588
10734
|
groupName: string;
|
|
10735
|
+
newlinesInside?: ("ignore" | number);
|
|
10589
10736
|
order?: ("asc" | "desc");
|
|
10590
|
-
|
|
10591
|
-
|
|
10592
|
-
modifiers?: ("optional" | "required" | "multiline")[];
|
|
10593
|
-
selector?: ("index-signature" | "member" | "method" | "multiline" | "property");
|
|
10594
|
-
elementValuePattern?: (({
|
|
10737
|
+
anyOf: [{
|
|
10738
|
+
elementNamePattern?: (({
|
|
10595
10739
|
pattern: string;
|
|
10596
10740
|
flags?: string;
|
|
10597
10741
|
} | string)[] | ({
|
|
10598
10742
|
pattern: string;
|
|
10599
10743
|
flags?: string;
|
|
10600
10744
|
} | string));
|
|
10745
|
+
}, ...({
|
|
10601
10746
|
elementNamePattern?: (({
|
|
10602
10747
|
pattern: string;
|
|
10603
10748
|
flags?: string;
|
|
@@ -10605,53 +10750,248 @@ type PerfectionistSortInterfaces = {
|
|
|
10605
10750
|
pattern: string;
|
|
10606
10751
|
flags?: string;
|
|
10607
10752
|
} | string));
|
|
10608
|
-
|
|
10609
|
-
}[];
|
|
10753
|
+
})[]];
|
|
10610
10754
|
} | {
|
|
10611
|
-
newlinesInside?: (("always" | "never") | number);
|
|
10612
10755
|
fallbackSort?: {
|
|
10756
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10613
10757
|
order?: ("asc" | "desc");
|
|
10614
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10615
|
-
sortBy?: ("name" | "value");
|
|
10616
10758
|
};
|
|
10759
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10617
10760
|
groupName: string;
|
|
10761
|
+
newlinesInside?: ("ignore" | number);
|
|
10618
10762
|
order?: ("asc" | "desc");
|
|
10619
|
-
|
|
10620
|
-
modifiers?: ("optional" | "required" | "multiline")[];
|
|
10621
|
-
selector?: ("index-signature" | "member" | "method" | "multiline" | "property");
|
|
10622
|
-
elementValuePattern?: (({
|
|
10763
|
+
elementNamePattern?: (({
|
|
10623
10764
|
pattern: string;
|
|
10624
10765
|
flags?: string;
|
|
10625
10766
|
} | string)[] | ({
|
|
10626
10767
|
pattern: string;
|
|
10627
10768
|
flags?: string;
|
|
10628
10769
|
} | string));
|
|
10629
|
-
|
|
10630
|
-
|
|
10631
|
-
|
|
10770
|
+
})[];
|
|
10771
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
10772
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
10773
|
+
newlinesBetween: ("ignore" | number);
|
|
10774
|
+
} | {
|
|
10775
|
+
group: (string | [string, ...(string)[]]);
|
|
10776
|
+
fallbackSort?: {
|
|
10777
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10778
|
+
order?: ("asc" | "desc");
|
|
10779
|
+
};
|
|
10780
|
+
commentAbove?: string;
|
|
10781
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10782
|
+
newlinesInside?: ("ignore" | number);
|
|
10783
|
+
order?: ("asc" | "desc");
|
|
10784
|
+
})[];
|
|
10785
|
+
newlinesBetween?: ("ignore" | number);
|
|
10786
|
+
partitionByNewLine?: boolean;
|
|
10787
|
+
partitionByComment?: (boolean | (({
|
|
10788
|
+
pattern: string;
|
|
10789
|
+
flags?: string;
|
|
10790
|
+
} | string)[] | ({
|
|
10791
|
+
pattern: string;
|
|
10792
|
+
flags?: string;
|
|
10793
|
+
} | string)) | {
|
|
10794
|
+
block?: (boolean | (({
|
|
10795
|
+
pattern: string;
|
|
10796
|
+
flags?: string;
|
|
10632
10797
|
} | string)[] | ({
|
|
10633
10798
|
pattern: string;
|
|
10634
10799
|
flags?: string;
|
|
10635
|
-
} | string));
|
|
10636
|
-
|
|
10637
|
-
|
|
10638
|
-
|
|
10639
|
-
|
|
10640
|
-
|
|
10800
|
+
} | string)));
|
|
10801
|
+
line?: (boolean | (({
|
|
10802
|
+
pattern: string;
|
|
10803
|
+
flags?: string;
|
|
10804
|
+
} | string)[] | ({
|
|
10805
|
+
pattern: string;
|
|
10806
|
+
flags?: string;
|
|
10807
|
+
} | string)));
|
|
10808
|
+
});
|
|
10809
|
+
}[];
|
|
10810
|
+
// ----- perfectionist/sort-import-attributes -----
|
|
10811
|
+
type PerfectionistSortImportAttributes = {
|
|
10812
|
+
fallbackSort?: {
|
|
10813
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10814
|
+
order?: ("asc" | "desc");
|
|
10815
|
+
};
|
|
10816
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10817
|
+
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10818
|
+
ignoreCase?: boolean;
|
|
10819
|
+
alphabet?: string;
|
|
10820
|
+
locales?: (string | string[]);
|
|
10821
|
+
order?: ("asc" | "desc");
|
|
10822
|
+
customGroups?: ({
|
|
10823
|
+
fallbackSort?: {
|
|
10824
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10825
|
+
order?: ("asc" | "desc");
|
|
10826
|
+
};
|
|
10827
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10828
|
+
groupName: string;
|
|
10829
|
+
newlinesInside?: ("ignore" | number);
|
|
10830
|
+
order?: ("asc" | "desc");
|
|
10831
|
+
anyOf: [{
|
|
10832
|
+
elementNamePattern?: (({
|
|
10833
|
+
pattern: string;
|
|
10834
|
+
flags?: string;
|
|
10835
|
+
} | string)[] | ({
|
|
10836
|
+
pattern: string;
|
|
10837
|
+
flags?: string;
|
|
10838
|
+
} | string));
|
|
10839
|
+
}, ...({
|
|
10840
|
+
elementNamePattern?: (({
|
|
10841
|
+
pattern: string;
|
|
10842
|
+
flags?: string;
|
|
10843
|
+
} | string)[] | ({
|
|
10844
|
+
pattern: string;
|
|
10845
|
+
flags?: string;
|
|
10846
|
+
} | string));
|
|
10847
|
+
})[]];
|
|
10848
|
+
} | {
|
|
10849
|
+
fallbackSort?: {
|
|
10850
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10851
|
+
order?: ("asc" | "desc");
|
|
10852
|
+
};
|
|
10853
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10854
|
+
groupName: string;
|
|
10855
|
+
newlinesInside?: ("ignore" | number);
|
|
10856
|
+
order?: ("asc" | "desc");
|
|
10857
|
+
elementNamePattern?: (({
|
|
10641
10858
|
pattern: string;
|
|
10642
10859
|
flags?: string;
|
|
10643
10860
|
} | string)[] | ({
|
|
10644
10861
|
pattern: string;
|
|
10645
10862
|
flags?: string;
|
|
10646
10863
|
} | string));
|
|
10647
|
-
|
|
10864
|
+
})[];
|
|
10865
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
10866
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
10867
|
+
newlinesBetween: ("ignore" | number);
|
|
10868
|
+
} | {
|
|
10869
|
+
group: (string | [string, ...(string)[]]);
|
|
10870
|
+
fallbackSort?: {
|
|
10871
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10872
|
+
order?: ("asc" | "desc");
|
|
10873
|
+
};
|
|
10874
|
+
commentAbove?: string;
|
|
10875
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10876
|
+
newlinesInside?: ("ignore" | number);
|
|
10877
|
+
order?: ("asc" | "desc");
|
|
10878
|
+
})[];
|
|
10879
|
+
newlinesBetween?: ("ignore" | number);
|
|
10880
|
+
partitionByComment?: (boolean | (({
|
|
10881
|
+
pattern: string;
|
|
10882
|
+
flags?: string;
|
|
10883
|
+
} | string)[] | ({
|
|
10884
|
+
pattern: string;
|
|
10885
|
+
flags?: string;
|
|
10886
|
+
} | string)) | {
|
|
10887
|
+
block?: (boolean | (({
|
|
10888
|
+
pattern: string;
|
|
10889
|
+
flags?: string;
|
|
10890
|
+
} | string)[] | ({
|
|
10891
|
+
pattern: string;
|
|
10892
|
+
flags?: string;
|
|
10893
|
+
} | string)));
|
|
10894
|
+
line?: (boolean | (({
|
|
10895
|
+
pattern: string;
|
|
10896
|
+
flags?: string;
|
|
10897
|
+
} | string)[] | ({
|
|
10898
|
+
pattern: string;
|
|
10899
|
+
flags?: string;
|
|
10900
|
+
} | string)));
|
|
10901
|
+
});
|
|
10902
|
+
partitionByNewLine?: boolean;
|
|
10903
|
+
}[];
|
|
10904
|
+
// ----- perfectionist/sort-imports -----
|
|
10905
|
+
type PerfectionistSortImports = {
|
|
10906
|
+
fallbackSort?: {
|
|
10907
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "type-import-first");
|
|
10908
|
+
order?: ("asc" | "desc");
|
|
10909
|
+
sortBy?: ("specifier" | "path");
|
|
10910
|
+
};
|
|
10911
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "type-import-first");
|
|
10912
|
+
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10913
|
+
ignoreCase?: boolean;
|
|
10914
|
+
alphabet?: string;
|
|
10915
|
+
locales?: (string | string[]);
|
|
10916
|
+
order?: ("asc" | "desc");
|
|
10917
|
+
sortBy?: ("specifier" | "path");
|
|
10918
|
+
customGroups?: ({
|
|
10919
|
+
fallbackSort?: {
|
|
10920
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "type-import-first");
|
|
10921
|
+
order?: ("asc" | "desc");
|
|
10922
|
+
sortBy?: ("specifier" | "path");
|
|
10923
|
+
};
|
|
10924
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "type-import-first");
|
|
10925
|
+
groupName: string;
|
|
10926
|
+
newlinesInside?: ("ignore" | number);
|
|
10927
|
+
order?: ("asc" | "desc");
|
|
10928
|
+
sortBy?: ("specifier" | "path");
|
|
10929
|
+
anyOf: [{
|
|
10930
|
+
elementNamePattern?: (({
|
|
10931
|
+
pattern: string;
|
|
10932
|
+
flags?: string;
|
|
10933
|
+
} | string)[] | ({
|
|
10934
|
+
pattern: string;
|
|
10935
|
+
flags?: string;
|
|
10936
|
+
} | string));
|
|
10937
|
+
modifiers?: ("default" | "multiline" | "named" | "require" | "side-effect" | "singleline" | "ts-equals" | "type" | "value" | "wildcard")[];
|
|
10938
|
+
selector?: ("side-effect-style" | "tsconfig-path" | "side-effect" | "external" | "internal" | "builtin" | "sibling" | "subpath" | "import" | "parent" | "index" | "style" | "type");
|
|
10939
|
+
}, ...({
|
|
10940
|
+
elementNamePattern?: (({
|
|
10941
|
+
pattern: string;
|
|
10942
|
+
flags?: string;
|
|
10943
|
+
} | string)[] | ({
|
|
10944
|
+
pattern: string;
|
|
10945
|
+
flags?: string;
|
|
10946
|
+
} | string));
|
|
10947
|
+
modifiers?: ("default" | "multiline" | "named" | "require" | "side-effect" | "singleline" | "ts-equals" | "type" | "value" | "wildcard")[];
|
|
10948
|
+
selector?: ("side-effect-style" | "tsconfig-path" | "side-effect" | "external" | "internal" | "builtin" | "sibling" | "subpath" | "import" | "parent" | "index" | "style" | "type");
|
|
10949
|
+
})[]];
|
|
10950
|
+
} | {
|
|
10951
|
+
fallbackSort?: {
|
|
10952
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "type-import-first");
|
|
10953
|
+
order?: ("asc" | "desc");
|
|
10954
|
+
sortBy?: ("specifier" | "path");
|
|
10955
|
+
};
|
|
10956
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "type-import-first");
|
|
10957
|
+
groupName: string;
|
|
10958
|
+
newlinesInside?: ("ignore" | number);
|
|
10959
|
+
order?: ("asc" | "desc");
|
|
10960
|
+
sortBy?: ("specifier" | "path");
|
|
10961
|
+
elementNamePattern?: (({
|
|
10648
10962
|
pattern: string;
|
|
10649
10963
|
flags?: string;
|
|
10650
10964
|
} | string)[] | ({
|
|
10651
10965
|
pattern: string;
|
|
10652
10966
|
flags?: string;
|
|
10653
10967
|
} | string));
|
|
10968
|
+
modifiers?: ("default" | "multiline" | "named" | "require" | "side-effect" | "singleline" | "ts-equals" | "type" | "value" | "wildcard")[];
|
|
10969
|
+
selector?: ("side-effect-style" | "tsconfig-path" | "side-effect" | "external" | "internal" | "builtin" | "sibling" | "subpath" | "import" | "parent" | "index" | "style" | "type");
|
|
10970
|
+
})[];
|
|
10971
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
10972
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
10973
|
+
newlinesBetween: ("ignore" | number);
|
|
10974
|
+
} | {
|
|
10975
|
+
group: (string | [string, ...(string)[]]);
|
|
10976
|
+
fallbackSort?: {
|
|
10977
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "type-import-first");
|
|
10978
|
+
order?: ("asc" | "desc");
|
|
10979
|
+
sortBy?: ("specifier" | "path");
|
|
10980
|
+
};
|
|
10981
|
+
commentAbove?: string;
|
|
10982
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "type-import-first");
|
|
10983
|
+
newlinesInside?: ("ignore" | number);
|
|
10984
|
+
order?: ("asc" | "desc");
|
|
10985
|
+
sortBy?: ("specifier" | "path");
|
|
10986
|
+
})[];
|
|
10987
|
+
newlinesBetween?: ("ignore" | number);
|
|
10988
|
+
tsconfig?: {
|
|
10989
|
+
rootDir: string;
|
|
10990
|
+
filename?: string;
|
|
10654
10991
|
};
|
|
10992
|
+
maxLineLength?: number;
|
|
10993
|
+
sortSideEffects?: boolean;
|
|
10994
|
+
environment?: ("node" | "bun");
|
|
10655
10995
|
partitionByComment?: (boolean | (({
|
|
10656
10996
|
pattern: string;
|
|
10657
10997
|
flags?: string;
|
|
@@ -10675,43 +11015,202 @@ type PerfectionistSortInterfaces = {
|
|
|
10675
11015
|
} | string)));
|
|
10676
11016
|
});
|
|
10677
11017
|
partitionByNewLine?: boolean;
|
|
10678
|
-
|
|
10679
|
-
ignorePattern?: (({
|
|
11018
|
+
internalPattern?: (({
|
|
10680
11019
|
pattern: string;
|
|
10681
11020
|
flags?: string;
|
|
10682
11021
|
} | string)[] | ({
|
|
10683
11022
|
pattern: string;
|
|
10684
11023
|
flags?: string;
|
|
10685
11024
|
} | string));
|
|
11025
|
+
}[];
|
|
11026
|
+
// ----- perfectionist/sort-interfaces -----
|
|
11027
|
+
type PerfectionistSortInterfaces = {
|
|
11028
|
+
fallbackSort?: {
|
|
11029
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11030
|
+
order?: ("asc" | "desc");
|
|
11031
|
+
sortBy?: ("name" | "value");
|
|
11032
|
+
};
|
|
11033
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11034
|
+
specialCharacters?: ("remove" | "trim" | "keep");
|
|
11035
|
+
ignoreCase?: boolean;
|
|
11036
|
+
alphabet?: string;
|
|
11037
|
+
locales?: (string | string[]);
|
|
11038
|
+
order?: ("asc" | "desc");
|
|
10686
11039
|
sortBy?: ("name" | "value");
|
|
10687
|
-
|
|
10688
|
-
|
|
11040
|
+
customGroups?: ({
|
|
11041
|
+
fallbackSort?: {
|
|
11042
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11043
|
+
order?: ("asc" | "desc");
|
|
11044
|
+
sortBy?: ("name" | "value");
|
|
11045
|
+
};
|
|
11046
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11047
|
+
groupName: string;
|
|
11048
|
+
newlinesInside?: ("ignore" | number);
|
|
11049
|
+
order?: ("asc" | "desc");
|
|
11050
|
+
sortBy?: ("name" | "value");
|
|
11051
|
+
anyOf: [{
|
|
11052
|
+
elementNamePattern?: (({
|
|
11053
|
+
pattern: string;
|
|
11054
|
+
flags?: string;
|
|
11055
|
+
} | string)[] | ({
|
|
11056
|
+
pattern: string;
|
|
11057
|
+
flags?: string;
|
|
11058
|
+
} | string));
|
|
11059
|
+
modifiers?: ("optional" | "required" | "multiline")[];
|
|
11060
|
+
selector?: ("index-signature" | "member" | "method" | "property");
|
|
11061
|
+
elementValuePattern?: (({
|
|
11062
|
+
pattern: string;
|
|
11063
|
+
flags?: string;
|
|
11064
|
+
} | string)[] | ({
|
|
11065
|
+
pattern: string;
|
|
11066
|
+
flags?: string;
|
|
11067
|
+
} | string));
|
|
11068
|
+
}, ...({
|
|
11069
|
+
elementNamePattern?: (({
|
|
11070
|
+
pattern: string;
|
|
11071
|
+
flags?: string;
|
|
11072
|
+
} | string)[] | ({
|
|
11073
|
+
pattern: string;
|
|
11074
|
+
flags?: string;
|
|
11075
|
+
} | string));
|
|
11076
|
+
modifiers?: ("optional" | "required" | "multiline")[];
|
|
11077
|
+
selector?: ("index-signature" | "member" | "method" | "property");
|
|
11078
|
+
elementValuePattern?: (({
|
|
11079
|
+
pattern: string;
|
|
11080
|
+
flags?: string;
|
|
11081
|
+
} | string)[] | ({
|
|
11082
|
+
pattern: string;
|
|
11083
|
+
flags?: string;
|
|
11084
|
+
} | string));
|
|
11085
|
+
})[]];
|
|
11086
|
+
} | {
|
|
11087
|
+
fallbackSort?: {
|
|
11088
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11089
|
+
order?: ("asc" | "desc");
|
|
11090
|
+
sortBy?: ("name" | "value");
|
|
11091
|
+
};
|
|
11092
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11093
|
+
groupName: string;
|
|
11094
|
+
newlinesInside?: ("ignore" | number);
|
|
11095
|
+
order?: ("asc" | "desc");
|
|
11096
|
+
sortBy?: ("name" | "value");
|
|
11097
|
+
elementNamePattern?: (({
|
|
11098
|
+
pattern: string;
|
|
11099
|
+
flags?: string;
|
|
11100
|
+
} | string)[] | ({
|
|
11101
|
+
pattern: string;
|
|
11102
|
+
flags?: string;
|
|
11103
|
+
} | string));
|
|
11104
|
+
modifiers?: ("optional" | "required" | "multiline")[];
|
|
11105
|
+
selector?: ("index-signature" | "member" | "method" | "property");
|
|
11106
|
+
elementValuePattern?: (({
|
|
11107
|
+
pattern: string;
|
|
11108
|
+
flags?: string;
|
|
11109
|
+
} | string)[] | ({
|
|
11110
|
+
pattern: string;
|
|
11111
|
+
flags?: string;
|
|
11112
|
+
} | string));
|
|
11113
|
+
})[];
|
|
11114
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
11115
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
11116
|
+
newlinesBetween: ("ignore" | number);
|
|
11117
|
+
} | {
|
|
11118
|
+
group: (string | [string, ...(string)[]]);
|
|
11119
|
+
fallbackSort?: {
|
|
11120
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11121
|
+
order?: ("asc" | "desc");
|
|
11122
|
+
sortBy?: ("name" | "value");
|
|
11123
|
+
};
|
|
10689
11124
|
commentAbove?: string;
|
|
11125
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11126
|
+
newlinesInside?: ("ignore" | number);
|
|
11127
|
+
order?: ("asc" | "desc");
|
|
11128
|
+
sortBy?: ("name" | "value");
|
|
10690
11129
|
})[];
|
|
11130
|
+
newlinesBetween?: ("ignore" | number);
|
|
11131
|
+
useConfigurationIf?: {
|
|
11132
|
+
allNamesMatchPattern?: (({
|
|
11133
|
+
pattern: string;
|
|
11134
|
+
flags?: string;
|
|
11135
|
+
} | string)[] | ({
|
|
11136
|
+
pattern: string;
|
|
11137
|
+
flags?: string;
|
|
11138
|
+
} | string));
|
|
11139
|
+
hasNumericKeysOnly?: boolean;
|
|
11140
|
+
declarationCommentMatchesPattern?: (({
|
|
11141
|
+
scope?: ("shallow" | "deep");
|
|
11142
|
+
pattern: string;
|
|
11143
|
+
flags?: string;
|
|
11144
|
+
} | string)[] | ({
|
|
11145
|
+
scope?: ("shallow" | "deep");
|
|
11146
|
+
pattern: string;
|
|
11147
|
+
flags?: string;
|
|
11148
|
+
} | string));
|
|
11149
|
+
declarationMatchesPattern?: (({
|
|
11150
|
+
scope?: ("shallow" | "deep");
|
|
11151
|
+
pattern: string;
|
|
11152
|
+
flags?: string;
|
|
11153
|
+
} | string)[] | ({
|
|
11154
|
+
scope?: ("shallow" | "deep");
|
|
11155
|
+
pattern: string;
|
|
11156
|
+
flags?: string;
|
|
11157
|
+
} | string));
|
|
11158
|
+
};
|
|
11159
|
+
partitionByComment?: (boolean | (({
|
|
11160
|
+
pattern: string;
|
|
11161
|
+
flags?: string;
|
|
11162
|
+
} | string)[] | ({
|
|
11163
|
+
pattern: string;
|
|
11164
|
+
flags?: string;
|
|
11165
|
+
} | string)) | {
|
|
11166
|
+
block?: (boolean | (({
|
|
11167
|
+
pattern: string;
|
|
11168
|
+
flags?: string;
|
|
11169
|
+
} | string)[] | ({
|
|
11170
|
+
pattern: string;
|
|
11171
|
+
flags?: string;
|
|
11172
|
+
} | string)));
|
|
11173
|
+
line?: (boolean | (({
|
|
11174
|
+
pattern: string;
|
|
11175
|
+
flags?: string;
|
|
11176
|
+
} | string)[] | ({
|
|
11177
|
+
pattern: string;
|
|
11178
|
+
flags?: string;
|
|
11179
|
+
} | string)));
|
|
11180
|
+
});
|
|
11181
|
+
partitionByNewLine?: boolean;
|
|
10691
11182
|
}[];
|
|
10692
11183
|
// ----- perfectionist/sort-intersection-types -----
|
|
10693
11184
|
type PerfectionistSortIntersectionTypes = {
|
|
10694
11185
|
fallbackSort?: {
|
|
11186
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10695
11187
|
order?: ("asc" | "desc");
|
|
10696
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10697
11188
|
};
|
|
11189
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10698
11190
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10699
11191
|
ignoreCase?: boolean;
|
|
10700
11192
|
alphabet?: string;
|
|
10701
11193
|
locales?: (string | string[]);
|
|
10702
11194
|
order?: ("asc" | "desc");
|
|
10703
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10704
11195
|
customGroups?: ({
|
|
10705
|
-
newlinesInside?: (("always" | "never") | number);
|
|
10706
11196
|
fallbackSort?: {
|
|
11197
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10707
11198
|
order?: ("asc" | "desc");
|
|
10708
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10709
11199
|
};
|
|
11200
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10710
11201
|
groupName: string;
|
|
11202
|
+
newlinesInside?: ("ignore" | number);
|
|
10711
11203
|
order?: ("asc" | "desc");
|
|
10712
|
-
|
|
10713
|
-
|
|
11204
|
+
anyOf: [{
|
|
11205
|
+
elementNamePattern?: (({
|
|
11206
|
+
pattern: string;
|
|
11207
|
+
flags?: string;
|
|
11208
|
+
} | string)[] | ({
|
|
11209
|
+
pattern: string;
|
|
11210
|
+
flags?: string;
|
|
11211
|
+
} | string));
|
|
10714
11212
|
selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
|
|
11213
|
+
}, ...({
|
|
10715
11214
|
elementNamePattern?: (({
|
|
10716
11215
|
pattern: string;
|
|
10717
11216
|
flags?: string;
|
|
@@ -10719,17 +11218,17 @@ type PerfectionistSortIntersectionTypes = {
|
|
|
10719
11218
|
pattern: string;
|
|
10720
11219
|
flags?: string;
|
|
10721
11220
|
} | string));
|
|
10722
|
-
|
|
11221
|
+
selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
|
|
11222
|
+
})[]];
|
|
10723
11223
|
} | {
|
|
10724
|
-
newlinesInside?: (("always" | "never") | number);
|
|
10725
11224
|
fallbackSort?: {
|
|
11225
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10726
11226
|
order?: ("asc" | "desc");
|
|
10727
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10728
11227
|
};
|
|
11228
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10729
11229
|
groupName: string;
|
|
11230
|
+
newlinesInside?: ("ignore" | number);
|
|
10730
11231
|
order?: ("asc" | "desc");
|
|
10731
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10732
|
-
selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
|
|
10733
11232
|
elementNamePattern?: (({
|
|
10734
11233
|
pattern: string;
|
|
10735
11234
|
flags?: string;
|
|
@@ -10737,7 +11236,23 @@ type PerfectionistSortIntersectionTypes = {
|
|
|
10737
11236
|
pattern: string;
|
|
10738
11237
|
flags?: string;
|
|
10739
11238
|
} | string));
|
|
11239
|
+
selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
|
|
10740
11240
|
})[];
|
|
11241
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
11242
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
11243
|
+
newlinesBetween: ("ignore" | number);
|
|
11244
|
+
} | {
|
|
11245
|
+
group: (string | [string, ...(string)[]]);
|
|
11246
|
+
fallbackSort?: {
|
|
11247
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11248
|
+
order?: ("asc" | "desc");
|
|
11249
|
+
};
|
|
11250
|
+
commentAbove?: string;
|
|
11251
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11252
|
+
newlinesInside?: ("ignore" | number);
|
|
11253
|
+
order?: ("asc" | "desc");
|
|
11254
|
+
})[];
|
|
11255
|
+
newlinesBetween?: ("ignore" | number);
|
|
10741
11256
|
partitionByComment?: (boolean | (({
|
|
10742
11257
|
pattern: string;
|
|
10743
11258
|
flags?: string;
|
|
@@ -10761,38 +11276,38 @@ type PerfectionistSortIntersectionTypes = {
|
|
|
10761
11276
|
} | string)));
|
|
10762
11277
|
});
|
|
10763
11278
|
partitionByNewLine?: boolean;
|
|
10764
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10765
|
-
groups?: (string | string[] | {
|
|
10766
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10767
|
-
commentAbove?: string;
|
|
10768
|
-
})[];
|
|
10769
11279
|
}[];
|
|
10770
11280
|
// ----- perfectionist/sort-jsx-props -----
|
|
10771
11281
|
type PerfectionistSortJsxProps = {
|
|
10772
11282
|
fallbackSort?: {
|
|
11283
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10773
11284
|
order?: ("asc" | "desc");
|
|
10774
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10775
11285
|
};
|
|
11286
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10776
11287
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10777
11288
|
ignoreCase?: boolean;
|
|
10778
11289
|
alphabet?: string;
|
|
10779
11290
|
locales?: (string | string[]);
|
|
10780
11291
|
order?: ("asc" | "desc");
|
|
10781
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10782
11292
|
customGroups?: ({
|
|
10783
|
-
[k: string]: (string | string[]) | undefined;
|
|
10784
|
-
} | ({
|
|
10785
|
-
newlinesInside?: (("always" | "never") | number);
|
|
10786
11293
|
fallbackSort?: {
|
|
11294
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10787
11295
|
order?: ("asc" | "desc");
|
|
10788
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10789
11296
|
};
|
|
11297
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10790
11298
|
groupName: string;
|
|
11299
|
+
newlinesInside?: ("ignore" | number);
|
|
10791
11300
|
order?: ("asc" | "desc");
|
|
10792
|
-
|
|
10793
|
-
|
|
11301
|
+
anyOf: [{
|
|
11302
|
+
elementNamePattern?: (({
|
|
11303
|
+
pattern: string;
|
|
11304
|
+
flags?: string;
|
|
11305
|
+
} | string)[] | ({
|
|
11306
|
+
pattern: string;
|
|
11307
|
+
flags?: string;
|
|
11308
|
+
} | string));
|
|
10794
11309
|
modifiers?: ("shorthand" | "multiline")[];
|
|
10795
|
-
selector?:
|
|
11310
|
+
selector?: "prop";
|
|
10796
11311
|
elementValuePattern?: (({
|
|
10797
11312
|
pattern: string;
|
|
10798
11313
|
flags?: string;
|
|
@@ -10800,6 +11315,7 @@ type PerfectionistSortJsxProps = {
|
|
|
10800
11315
|
pattern: string;
|
|
10801
11316
|
flags?: string;
|
|
10802
11317
|
} | string));
|
|
11318
|
+
}, ...({
|
|
10803
11319
|
elementNamePattern?: (({
|
|
10804
11320
|
pattern: string;
|
|
10805
11321
|
flags?: string;
|
|
@@ -10807,33 +11323,57 @@ type PerfectionistSortJsxProps = {
|
|
|
10807
11323
|
pattern: string;
|
|
10808
11324
|
flags?: string;
|
|
10809
11325
|
} | string));
|
|
10810
|
-
|
|
11326
|
+
modifiers?: ("shorthand" | "multiline")[];
|
|
11327
|
+
selector?: "prop";
|
|
11328
|
+
elementValuePattern?: (({
|
|
11329
|
+
pattern: string;
|
|
11330
|
+
flags?: string;
|
|
11331
|
+
} | string)[] | ({
|
|
11332
|
+
pattern: string;
|
|
11333
|
+
flags?: string;
|
|
11334
|
+
} | string));
|
|
11335
|
+
})[]];
|
|
10811
11336
|
} | {
|
|
10812
|
-
newlinesInside?: (("always" | "never") | number);
|
|
10813
11337
|
fallbackSort?: {
|
|
11338
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10814
11339
|
order?: ("asc" | "desc");
|
|
10815
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10816
11340
|
};
|
|
11341
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10817
11342
|
groupName: string;
|
|
11343
|
+
newlinesInside?: ("ignore" | number);
|
|
10818
11344
|
order?: ("asc" | "desc");
|
|
10819
|
-
|
|
10820
|
-
modifiers?: ("shorthand" | "multiline")[];
|
|
10821
|
-
selector?: ("multiline" | "prop" | "shorthand");
|
|
10822
|
-
elementValuePattern?: (({
|
|
11345
|
+
elementNamePattern?: (({
|
|
10823
11346
|
pattern: string;
|
|
10824
11347
|
flags?: string;
|
|
10825
11348
|
} | string)[] | ({
|
|
10826
11349
|
pattern: string;
|
|
10827
11350
|
flags?: string;
|
|
10828
11351
|
} | string));
|
|
10829
|
-
|
|
11352
|
+
modifiers?: ("shorthand" | "multiline")[];
|
|
11353
|
+
selector?: "prop";
|
|
11354
|
+
elementValuePattern?: (({
|
|
10830
11355
|
pattern: string;
|
|
10831
11356
|
flags?: string;
|
|
10832
11357
|
} | string)[] | ({
|
|
10833
11358
|
pattern: string;
|
|
10834
11359
|
flags?: string;
|
|
10835
11360
|
} | string));
|
|
10836
|
-
})[]
|
|
11361
|
+
})[];
|
|
11362
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
11363
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
11364
|
+
newlinesBetween: ("ignore" | number);
|
|
11365
|
+
} | {
|
|
11366
|
+
group: (string | [string, ...(string)[]]);
|
|
11367
|
+
fallbackSort?: {
|
|
11368
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11369
|
+
order?: ("asc" | "desc");
|
|
11370
|
+
};
|
|
11371
|
+
commentAbove?: string;
|
|
11372
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11373
|
+
newlinesInside?: ("ignore" | number);
|
|
11374
|
+
order?: ("asc" | "desc");
|
|
11375
|
+
})[];
|
|
11376
|
+
newlinesBetween?: ("ignore" | number);
|
|
10837
11377
|
useConfigurationIf?: {
|
|
10838
11378
|
allNamesMatchPattern?: (({
|
|
10839
11379
|
pattern: string;
|
|
@@ -10851,41 +11391,37 @@ type PerfectionistSortJsxProps = {
|
|
|
10851
11391
|
} | string));
|
|
10852
11392
|
};
|
|
10853
11393
|
partitionByNewLine?: boolean;
|
|
10854
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10855
|
-
ignorePattern?: (({
|
|
10856
|
-
pattern: string;
|
|
10857
|
-
flags?: string;
|
|
10858
|
-
} | string)[] | ({
|
|
10859
|
-
pattern: string;
|
|
10860
|
-
flags?: string;
|
|
10861
|
-
} | string));
|
|
10862
|
-
groups?: (string | string[] | {
|
|
10863
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10864
|
-
commentAbove?: string;
|
|
10865
|
-
})[];
|
|
10866
11394
|
}[];
|
|
10867
11395
|
// ----- perfectionist/sort-maps -----
|
|
10868
11396
|
type PerfectionistSortMaps = {
|
|
10869
11397
|
fallbackSort?: {
|
|
11398
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10870
11399
|
order?: ("asc" | "desc");
|
|
10871
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10872
11400
|
};
|
|
11401
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10873
11402
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10874
11403
|
ignoreCase?: boolean;
|
|
10875
11404
|
alphabet?: string;
|
|
10876
11405
|
locales?: (string | string[]);
|
|
10877
11406
|
order?: ("asc" | "desc");
|
|
10878
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10879
11407
|
customGroups?: ({
|
|
10880
|
-
newlinesInside?: (("always" | "never") | number);
|
|
10881
11408
|
fallbackSort?: {
|
|
11409
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10882
11410
|
order?: ("asc" | "desc");
|
|
10883
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10884
11411
|
};
|
|
11412
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10885
11413
|
groupName: string;
|
|
11414
|
+
newlinesInside?: ("ignore" | number);
|
|
10886
11415
|
order?: ("asc" | "desc");
|
|
10887
|
-
|
|
10888
|
-
|
|
11416
|
+
anyOf: [{
|
|
11417
|
+
elementNamePattern?: (({
|
|
11418
|
+
pattern: string;
|
|
11419
|
+
flags?: string;
|
|
11420
|
+
} | string)[] | ({
|
|
11421
|
+
pattern: string;
|
|
11422
|
+
flags?: string;
|
|
11423
|
+
} | string));
|
|
11424
|
+
}, ...({
|
|
10889
11425
|
elementNamePattern?: (({
|
|
10890
11426
|
pattern: string;
|
|
10891
11427
|
flags?: string;
|
|
@@ -10893,16 +11429,16 @@ type PerfectionistSortMaps = {
|
|
|
10893
11429
|
pattern: string;
|
|
10894
11430
|
flags?: string;
|
|
10895
11431
|
} | string));
|
|
10896
|
-
}[];
|
|
11432
|
+
})[]];
|
|
10897
11433
|
} | {
|
|
10898
|
-
newlinesInside?: (("always" | "never") | number);
|
|
10899
11434
|
fallbackSort?: {
|
|
11435
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10900
11436
|
order?: ("asc" | "desc");
|
|
10901
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10902
11437
|
};
|
|
11438
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10903
11439
|
groupName: string;
|
|
11440
|
+
newlinesInside?: ("ignore" | number);
|
|
10904
11441
|
order?: ("asc" | "desc");
|
|
10905
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10906
11442
|
elementNamePattern?: (({
|
|
10907
11443
|
pattern: string;
|
|
10908
11444
|
flags?: string;
|
|
@@ -10911,6 +11447,21 @@ type PerfectionistSortMaps = {
|
|
|
10911
11447
|
flags?: string;
|
|
10912
11448
|
} | string));
|
|
10913
11449
|
})[];
|
|
11450
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
11451
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
11452
|
+
newlinesBetween: ("ignore" | number);
|
|
11453
|
+
} | {
|
|
11454
|
+
group: (string | [string, ...(string)[]]);
|
|
11455
|
+
fallbackSort?: {
|
|
11456
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11457
|
+
order?: ("asc" | "desc");
|
|
11458
|
+
};
|
|
11459
|
+
commentAbove?: string;
|
|
11460
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11461
|
+
newlinesInside?: ("ignore" | number);
|
|
11462
|
+
order?: ("asc" | "desc");
|
|
11463
|
+
})[];
|
|
11464
|
+
newlinesBetween?: ("ignore" | number);
|
|
10914
11465
|
useConfigurationIf?: {
|
|
10915
11466
|
allNamesMatchPattern?: (({
|
|
10916
11467
|
pattern: string;
|
|
@@ -10943,34 +11494,36 @@ type PerfectionistSortMaps = {
|
|
|
10943
11494
|
} | string)));
|
|
10944
11495
|
});
|
|
10945
11496
|
partitionByNewLine?: boolean;
|
|
10946
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10947
|
-
groups?: (string | string[] | {
|
|
10948
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10949
|
-
commentAbove?: string;
|
|
10950
|
-
})[];
|
|
10951
11497
|
}[];
|
|
10952
11498
|
// ----- perfectionist/sort-modules -----
|
|
10953
11499
|
type PerfectionistSortModules = [] | [{
|
|
10954
11500
|
fallbackSort?: {
|
|
11501
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "usage");
|
|
10955
11502
|
order?: ("asc" | "desc");
|
|
10956
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10957
11503
|
};
|
|
11504
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "usage");
|
|
10958
11505
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10959
11506
|
ignoreCase?: boolean;
|
|
10960
11507
|
alphabet?: string;
|
|
10961
11508
|
locales?: (string | string[]);
|
|
10962
11509
|
order?: ("asc" | "desc");
|
|
10963
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10964
11510
|
customGroups?: ({
|
|
10965
|
-
newlinesInside?: (("always" | "never") | number);
|
|
10966
11511
|
fallbackSort?: {
|
|
11512
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "usage");
|
|
10967
11513
|
order?: ("asc" | "desc");
|
|
10968
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10969
11514
|
};
|
|
11515
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "usage");
|
|
10970
11516
|
groupName: string;
|
|
11517
|
+
newlinesInside?: ("ignore" | number);
|
|
10971
11518
|
order?: ("asc" | "desc");
|
|
10972
|
-
|
|
10973
|
-
|
|
11519
|
+
anyOf: [{
|
|
11520
|
+
elementNamePattern?: (({
|
|
11521
|
+
pattern: string;
|
|
11522
|
+
flags?: string;
|
|
11523
|
+
} | string)[] | ({
|
|
11524
|
+
pattern: string;
|
|
11525
|
+
flags?: string;
|
|
11526
|
+
} | string));
|
|
10974
11527
|
modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[];
|
|
10975
11528
|
selector?: ("enum" | "function" | "interface" | "type" | "class");
|
|
10976
11529
|
decoratorNamePattern?: (({
|
|
@@ -10980,6 +11533,7 @@ type PerfectionistSortModules = [] | [{
|
|
|
10980
11533
|
pattern: string;
|
|
10981
11534
|
flags?: string;
|
|
10982
11535
|
} | string));
|
|
11536
|
+
}, ...({
|
|
10983
11537
|
elementNamePattern?: (({
|
|
10984
11538
|
pattern: string;
|
|
10985
11539
|
flags?: string;
|
|
@@ -10987,26 +11541,35 @@ type PerfectionistSortModules = [] | [{
|
|
|
10987
11541
|
pattern: string;
|
|
10988
11542
|
flags?: string;
|
|
10989
11543
|
} | string));
|
|
10990
|
-
|
|
11544
|
+
modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[];
|
|
11545
|
+
selector?: ("enum" | "function" | "interface" | "type" | "class");
|
|
11546
|
+
decoratorNamePattern?: (({
|
|
11547
|
+
pattern: string;
|
|
11548
|
+
flags?: string;
|
|
11549
|
+
} | string)[] | ({
|
|
11550
|
+
pattern: string;
|
|
11551
|
+
flags?: string;
|
|
11552
|
+
} | string));
|
|
11553
|
+
})[]];
|
|
10991
11554
|
} | {
|
|
10992
|
-
newlinesInside?: (("always" | "never") | number);
|
|
10993
11555
|
fallbackSort?: {
|
|
11556
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "usage");
|
|
10994
11557
|
order?: ("asc" | "desc");
|
|
10995
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10996
11558
|
};
|
|
11559
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "usage");
|
|
10997
11560
|
groupName: string;
|
|
11561
|
+
newlinesInside?: ("ignore" | number);
|
|
10998
11562
|
order?: ("asc" | "desc");
|
|
10999
|
-
|
|
11000
|
-
modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[];
|
|
11001
|
-
selector?: ("enum" | "function" | "interface" | "type" | "class");
|
|
11002
|
-
decoratorNamePattern?: (({
|
|
11563
|
+
elementNamePattern?: (({
|
|
11003
11564
|
pattern: string;
|
|
11004
11565
|
flags?: string;
|
|
11005
11566
|
} | string)[] | ({
|
|
11006
11567
|
pattern: string;
|
|
11007
11568
|
flags?: string;
|
|
11008
11569
|
} | string));
|
|
11009
|
-
|
|
11570
|
+
modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[];
|
|
11571
|
+
selector?: ("enum" | "function" | "interface" | "type" | "class");
|
|
11572
|
+
decoratorNamePattern?: (({
|
|
11010
11573
|
pattern: string;
|
|
11011
11574
|
flags?: string;
|
|
11012
11575
|
} | string)[] | ({
|
|
@@ -11014,6 +11577,21 @@ type PerfectionistSortModules = [] | [{
|
|
|
11014
11577
|
flags?: string;
|
|
11015
11578
|
} | string));
|
|
11016
11579
|
})[];
|
|
11580
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
11581
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
11582
|
+
newlinesBetween: ("ignore" | number);
|
|
11583
|
+
} | {
|
|
11584
|
+
group: (string | [string, ...(string)[]]);
|
|
11585
|
+
fallbackSort?: {
|
|
11586
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "usage");
|
|
11587
|
+
order?: ("asc" | "desc");
|
|
11588
|
+
};
|
|
11589
|
+
commentAbove?: string;
|
|
11590
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "usage");
|
|
11591
|
+
newlinesInside?: ("ignore" | number);
|
|
11592
|
+
order?: ("asc" | "desc");
|
|
11593
|
+
})[];
|
|
11594
|
+
newlinesBetween?: ("ignore" | number);
|
|
11017
11595
|
partitionByComment?: (boolean | (({
|
|
11018
11596
|
pattern: string;
|
|
11019
11597
|
flags?: string;
|
|
@@ -11037,38 +11615,39 @@ type PerfectionistSortModules = [] | [{
|
|
|
11037
11615
|
} | string)));
|
|
11038
11616
|
});
|
|
11039
11617
|
partitionByNewLine?: boolean;
|
|
11040
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11041
|
-
groups?: (string | string[] | {
|
|
11042
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11043
|
-
commentAbove?: string;
|
|
11044
|
-
})[];
|
|
11045
11618
|
}];
|
|
11046
11619
|
// ----- perfectionist/sort-named-exports -----
|
|
11047
11620
|
type PerfectionistSortNamedExports = {
|
|
11048
11621
|
fallbackSort?: {
|
|
11622
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11049
11623
|
order?: ("asc" | "desc");
|
|
11050
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11051
11624
|
};
|
|
11625
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11052
11626
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
11053
11627
|
ignoreCase?: boolean;
|
|
11054
11628
|
alphabet?: string;
|
|
11055
11629
|
locales?: (string | string[]);
|
|
11056
11630
|
order?: ("asc" | "desc");
|
|
11057
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11058
|
-
groupKind?: ("mixed" | "values-first" | "types-first");
|
|
11059
|
-
ignoreAlias?: boolean;
|
|
11060
11631
|
customGroups?: ({
|
|
11061
|
-
newlinesInside?: (("always" | "never") | number);
|
|
11062
11632
|
fallbackSort?: {
|
|
11633
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11063
11634
|
order?: ("asc" | "desc");
|
|
11064
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11065
11635
|
};
|
|
11636
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11066
11637
|
groupName: string;
|
|
11638
|
+
newlinesInside?: ("ignore" | number);
|
|
11067
11639
|
order?: ("asc" | "desc");
|
|
11068
|
-
|
|
11069
|
-
|
|
11640
|
+
anyOf: [{
|
|
11641
|
+
elementNamePattern?: (({
|
|
11642
|
+
pattern: string;
|
|
11643
|
+
flags?: string;
|
|
11644
|
+
} | string)[] | ({
|
|
11645
|
+
pattern: string;
|
|
11646
|
+
flags?: string;
|
|
11647
|
+
} | string));
|
|
11070
11648
|
modifiers?: ("value" | "type")[];
|
|
11071
11649
|
selector?: "export";
|
|
11650
|
+
}, ...({
|
|
11072
11651
|
elementNamePattern?: (({
|
|
11073
11652
|
pattern: string;
|
|
11074
11653
|
flags?: string;
|
|
@@ -11076,18 +11655,18 @@ type PerfectionistSortNamedExports = {
|
|
|
11076
11655
|
pattern: string;
|
|
11077
11656
|
flags?: string;
|
|
11078
11657
|
} | string));
|
|
11079
|
-
|
|
11658
|
+
modifiers?: ("value" | "type")[];
|
|
11659
|
+
selector?: "export";
|
|
11660
|
+
})[]];
|
|
11080
11661
|
} | {
|
|
11081
|
-
newlinesInside?: (("always" | "never") | number);
|
|
11082
11662
|
fallbackSort?: {
|
|
11663
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11083
11664
|
order?: ("asc" | "desc");
|
|
11084
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11085
11665
|
};
|
|
11666
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11086
11667
|
groupName: string;
|
|
11668
|
+
newlinesInside?: ("ignore" | number);
|
|
11087
11669
|
order?: ("asc" | "desc");
|
|
11088
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11089
|
-
modifiers?: ("value" | "type")[];
|
|
11090
|
-
selector?: "export";
|
|
11091
11670
|
elementNamePattern?: (({
|
|
11092
11671
|
pattern: string;
|
|
11093
11672
|
flags?: string;
|
|
@@ -11095,7 +11674,25 @@ type PerfectionistSortNamedExports = {
|
|
|
11095
11674
|
pattern: string;
|
|
11096
11675
|
flags?: string;
|
|
11097
11676
|
} | string));
|
|
11677
|
+
modifiers?: ("value" | "type")[];
|
|
11678
|
+
selector?: "export";
|
|
11098
11679
|
})[];
|
|
11680
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
11681
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
11682
|
+
newlinesBetween: ("ignore" | number);
|
|
11683
|
+
} | {
|
|
11684
|
+
group: (string | [string, ...(string)[]]);
|
|
11685
|
+
fallbackSort?: {
|
|
11686
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11687
|
+
order?: ("asc" | "desc");
|
|
11688
|
+
};
|
|
11689
|
+
commentAbove?: string;
|
|
11690
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11691
|
+
newlinesInside?: ("ignore" | number);
|
|
11692
|
+
order?: ("asc" | "desc");
|
|
11693
|
+
})[];
|
|
11694
|
+
newlinesBetween?: ("ignore" | number);
|
|
11695
|
+
ignoreAlias?: boolean;
|
|
11099
11696
|
partitionByComment?: (boolean | (({
|
|
11100
11697
|
pattern: string;
|
|
11101
11698
|
flags?: string;
|
|
@@ -11119,38 +11716,39 @@ type PerfectionistSortNamedExports = {
|
|
|
11119
11716
|
} | string)));
|
|
11120
11717
|
});
|
|
11121
11718
|
partitionByNewLine?: boolean;
|
|
11122
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11123
|
-
groups?: (string | string[] | {
|
|
11124
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11125
|
-
commentAbove?: string;
|
|
11126
|
-
})[];
|
|
11127
11719
|
}[];
|
|
11128
11720
|
// ----- perfectionist/sort-named-imports -----
|
|
11129
11721
|
type PerfectionistSortNamedImports = {
|
|
11130
11722
|
fallbackSort?: {
|
|
11723
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11131
11724
|
order?: ("asc" | "desc");
|
|
11132
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11133
11725
|
};
|
|
11726
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11134
11727
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
11135
11728
|
ignoreCase?: boolean;
|
|
11136
11729
|
alphabet?: string;
|
|
11137
11730
|
locales?: (string | string[]);
|
|
11138
11731
|
order?: ("asc" | "desc");
|
|
11139
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11140
|
-
groupKind?: ("mixed" | "values-first" | "types-first");
|
|
11141
|
-
ignoreAlias?: boolean;
|
|
11142
11732
|
customGroups?: ({
|
|
11143
|
-
newlinesInside?: (("always" | "never") | number);
|
|
11144
11733
|
fallbackSort?: {
|
|
11734
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11145
11735
|
order?: ("asc" | "desc");
|
|
11146
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11147
11736
|
};
|
|
11737
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11148
11738
|
groupName: string;
|
|
11739
|
+
newlinesInside?: ("ignore" | number);
|
|
11149
11740
|
order?: ("asc" | "desc");
|
|
11150
|
-
|
|
11151
|
-
|
|
11741
|
+
anyOf: [{
|
|
11742
|
+
elementNamePattern?: (({
|
|
11743
|
+
pattern: string;
|
|
11744
|
+
flags?: string;
|
|
11745
|
+
} | string)[] | ({
|
|
11746
|
+
pattern: string;
|
|
11747
|
+
flags?: string;
|
|
11748
|
+
} | string));
|
|
11152
11749
|
modifiers?: ("value" | "type")[];
|
|
11153
11750
|
selector?: "import";
|
|
11751
|
+
}, ...({
|
|
11154
11752
|
elementNamePattern?: (({
|
|
11155
11753
|
pattern: string;
|
|
11156
11754
|
flags?: string;
|
|
@@ -11158,18 +11756,18 @@ type PerfectionistSortNamedImports = {
|
|
|
11158
11756
|
pattern: string;
|
|
11159
11757
|
flags?: string;
|
|
11160
11758
|
} | string));
|
|
11161
|
-
|
|
11759
|
+
modifiers?: ("value" | "type")[];
|
|
11760
|
+
selector?: "import";
|
|
11761
|
+
})[]];
|
|
11162
11762
|
} | {
|
|
11163
|
-
newlinesInside?: (("always" | "never") | number);
|
|
11164
11763
|
fallbackSort?: {
|
|
11764
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11165
11765
|
order?: ("asc" | "desc");
|
|
11166
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11167
11766
|
};
|
|
11767
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11168
11768
|
groupName: string;
|
|
11769
|
+
newlinesInside?: ("ignore" | number);
|
|
11169
11770
|
order?: ("asc" | "desc");
|
|
11170
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11171
|
-
modifiers?: ("value" | "type")[];
|
|
11172
|
-
selector?: "import";
|
|
11173
11771
|
elementNamePattern?: (({
|
|
11174
11772
|
pattern: string;
|
|
11175
11773
|
flags?: string;
|
|
@@ -11177,7 +11775,25 @@ type PerfectionistSortNamedImports = {
|
|
|
11177
11775
|
pattern: string;
|
|
11178
11776
|
flags?: string;
|
|
11179
11777
|
} | string));
|
|
11778
|
+
modifiers?: ("value" | "type")[];
|
|
11779
|
+
selector?: "import";
|
|
11180
11780
|
})[];
|
|
11781
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
11782
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
11783
|
+
newlinesBetween: ("ignore" | number);
|
|
11784
|
+
} | {
|
|
11785
|
+
group: (string | [string, ...(string)[]]);
|
|
11786
|
+
fallbackSort?: {
|
|
11787
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11788
|
+
order?: ("asc" | "desc");
|
|
11789
|
+
};
|
|
11790
|
+
commentAbove?: string;
|
|
11791
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11792
|
+
newlinesInside?: ("ignore" | number);
|
|
11793
|
+
order?: ("asc" | "desc");
|
|
11794
|
+
})[];
|
|
11795
|
+
newlinesBetween?: ("ignore" | number);
|
|
11796
|
+
ignoreAlias?: boolean;
|
|
11181
11797
|
partitionByComment?: (boolean | (({
|
|
11182
11798
|
pattern: string;
|
|
11183
11799
|
flags?: string;
|
|
@@ -11201,40 +11817,42 @@ type PerfectionistSortNamedImports = {
|
|
|
11201
11817
|
} | string)));
|
|
11202
11818
|
});
|
|
11203
11819
|
partitionByNewLine?: boolean;
|
|
11204
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11205
|
-
groups?: (string | string[] | {
|
|
11206
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11207
|
-
commentAbove?: string;
|
|
11208
|
-
})[];
|
|
11209
11820
|
}[];
|
|
11210
11821
|
// ----- perfectionist/sort-object-types -----
|
|
11211
11822
|
type PerfectionistSortObjectTypes = {
|
|
11212
11823
|
fallbackSort?: {
|
|
11824
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11213
11825
|
order?: ("asc" | "desc");
|
|
11214
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11215
11826
|
sortBy?: ("name" | "value");
|
|
11216
11827
|
};
|
|
11828
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11217
11829
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
11218
11830
|
ignoreCase?: boolean;
|
|
11219
11831
|
alphabet?: string;
|
|
11220
11832
|
locales?: (string | string[]);
|
|
11221
11833
|
order?: ("asc" | "desc");
|
|
11222
|
-
|
|
11834
|
+
sortBy?: ("name" | "value");
|
|
11223
11835
|
customGroups?: ({
|
|
11224
|
-
[k: string]: (string | string[]) | undefined;
|
|
11225
|
-
} | ({
|
|
11226
|
-
newlinesInside?: (("always" | "never") | number);
|
|
11227
11836
|
fallbackSort?: {
|
|
11837
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11228
11838
|
order?: ("asc" | "desc");
|
|
11229
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11230
11839
|
sortBy?: ("name" | "value");
|
|
11231
11840
|
};
|
|
11841
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11232
11842
|
groupName: string;
|
|
11843
|
+
newlinesInside?: ("ignore" | number);
|
|
11233
11844
|
order?: ("asc" | "desc");
|
|
11234
|
-
|
|
11235
|
-
anyOf
|
|
11845
|
+
sortBy?: ("name" | "value");
|
|
11846
|
+
anyOf: [{
|
|
11847
|
+
elementNamePattern?: (({
|
|
11848
|
+
pattern: string;
|
|
11849
|
+
flags?: string;
|
|
11850
|
+
} | string)[] | ({
|
|
11851
|
+
pattern: string;
|
|
11852
|
+
flags?: string;
|
|
11853
|
+
} | string));
|
|
11236
11854
|
modifiers?: ("optional" | "required" | "multiline")[];
|
|
11237
|
-
selector?: ("index-signature" | "member" | "method" | "
|
|
11855
|
+
selector?: ("index-signature" | "member" | "method" | "property");
|
|
11238
11856
|
elementValuePattern?: (({
|
|
11239
11857
|
pattern: string;
|
|
11240
11858
|
flags?: string;
|
|
@@ -11242,6 +11860,7 @@ type PerfectionistSortObjectTypes = {
|
|
|
11242
11860
|
pattern: string;
|
|
11243
11861
|
flags?: string;
|
|
11244
11862
|
} | string));
|
|
11863
|
+
}, ...({
|
|
11245
11864
|
elementNamePattern?: (({
|
|
11246
11865
|
pattern: string;
|
|
11247
11866
|
flags?: string;
|
|
@@ -11249,37 +11868,61 @@ type PerfectionistSortObjectTypes = {
|
|
|
11249
11868
|
pattern: string;
|
|
11250
11869
|
flags?: string;
|
|
11251
11870
|
} | string));
|
|
11252
|
-
|
|
11253
|
-
|
|
11871
|
+
modifiers?: ("optional" | "required" | "multiline")[];
|
|
11872
|
+
selector?: ("index-signature" | "member" | "method" | "property");
|
|
11873
|
+
elementValuePattern?: (({
|
|
11874
|
+
pattern: string;
|
|
11875
|
+
flags?: string;
|
|
11876
|
+
} | string)[] | ({
|
|
11877
|
+
pattern: string;
|
|
11878
|
+
flags?: string;
|
|
11879
|
+
} | string));
|
|
11880
|
+
})[]];
|
|
11254
11881
|
} | {
|
|
11255
|
-
newlinesInside?: (("always" | "never") | number);
|
|
11256
11882
|
fallbackSort?: {
|
|
11883
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11257
11884
|
order?: ("asc" | "desc");
|
|
11258
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11259
11885
|
sortBy?: ("name" | "value");
|
|
11260
11886
|
};
|
|
11887
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11261
11888
|
groupName: string;
|
|
11889
|
+
newlinesInside?: ("ignore" | number);
|
|
11262
11890
|
order?: ("asc" | "desc");
|
|
11263
|
-
|
|
11264
|
-
|
|
11265
|
-
selector?: ("index-signature" | "member" | "method" | "multiline" | "property");
|
|
11266
|
-
elementValuePattern?: (({
|
|
11891
|
+
sortBy?: ("name" | "value");
|
|
11892
|
+
elementNamePattern?: (({
|
|
11267
11893
|
pattern: string;
|
|
11268
11894
|
flags?: string;
|
|
11269
11895
|
} | string)[] | ({
|
|
11270
11896
|
pattern: string;
|
|
11271
11897
|
flags?: string;
|
|
11272
11898
|
} | string));
|
|
11273
|
-
|
|
11899
|
+
modifiers?: ("optional" | "required" | "multiline")[];
|
|
11900
|
+
selector?: ("index-signature" | "member" | "method" | "property");
|
|
11901
|
+
elementValuePattern?: (({
|
|
11274
11902
|
pattern: string;
|
|
11275
11903
|
flags?: string;
|
|
11276
11904
|
} | string)[] | ({
|
|
11277
11905
|
pattern: string;
|
|
11278
11906
|
flags?: string;
|
|
11279
11907
|
} | string));
|
|
11908
|
+
})[];
|
|
11909
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
11910
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
11911
|
+
newlinesBetween: ("ignore" | number);
|
|
11912
|
+
} | {
|
|
11913
|
+
group: (string | [string, ...(string)[]]);
|
|
11914
|
+
fallbackSort?: {
|
|
11915
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11916
|
+
order?: ("asc" | "desc");
|
|
11917
|
+
sortBy?: ("name" | "value");
|
|
11918
|
+
};
|
|
11919
|
+
commentAbove?: string;
|
|
11920
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11921
|
+
newlinesInside?: ("ignore" | number);
|
|
11922
|
+
order?: ("asc" | "desc");
|
|
11280
11923
|
sortBy?: ("name" | "value");
|
|
11281
|
-
})[]
|
|
11282
|
-
|
|
11924
|
+
})[];
|
|
11925
|
+
newlinesBetween?: ("ignore" | number);
|
|
11283
11926
|
useConfigurationIf?: {
|
|
11284
11927
|
allNamesMatchPattern?: (({
|
|
11285
11928
|
pattern: string;
|
|
@@ -11288,10 +11931,22 @@ type PerfectionistSortObjectTypes = {
|
|
|
11288
11931
|
pattern: string;
|
|
11289
11932
|
flags?: string;
|
|
11290
11933
|
} | string));
|
|
11934
|
+
hasNumericKeysOnly?: boolean;
|
|
11935
|
+
declarationCommentMatchesPattern?: (({
|
|
11936
|
+
scope?: ("shallow" | "deep");
|
|
11937
|
+
pattern: string;
|
|
11938
|
+
flags?: string;
|
|
11939
|
+
} | string)[] | ({
|
|
11940
|
+
scope?: ("shallow" | "deep");
|
|
11941
|
+
pattern: string;
|
|
11942
|
+
flags?: string;
|
|
11943
|
+
} | string));
|
|
11291
11944
|
declarationMatchesPattern?: (({
|
|
11945
|
+
scope?: ("shallow" | "deep");
|
|
11292
11946
|
pattern: string;
|
|
11293
11947
|
flags?: string;
|
|
11294
11948
|
} | string)[] | ({
|
|
11949
|
+
scope?: ("shallow" | "deep");
|
|
11295
11950
|
pattern: string;
|
|
11296
11951
|
flags?: string;
|
|
11297
11952
|
} | string));
|
|
@@ -11319,49 +11974,38 @@ type PerfectionistSortObjectTypes = {
|
|
|
11319
11974
|
} | string)));
|
|
11320
11975
|
});
|
|
11321
11976
|
partitionByNewLine?: boolean;
|
|
11322
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11323
|
-
ignorePattern?: (({
|
|
11324
|
-
pattern: string;
|
|
11325
|
-
flags?: string;
|
|
11326
|
-
} | string)[] | ({
|
|
11327
|
-
pattern: string;
|
|
11328
|
-
flags?: string;
|
|
11329
|
-
} | string));
|
|
11330
|
-
sortBy?: ("name" | "value");
|
|
11331
|
-
groups?: (string | string[] | {
|
|
11332
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11333
|
-
commentAbove?: string;
|
|
11334
|
-
})[];
|
|
11335
11977
|
}[];
|
|
11336
11978
|
// ----- perfectionist/sort-objects -----
|
|
11337
11979
|
type PerfectionistSortObjects = {
|
|
11338
11980
|
fallbackSort?: {
|
|
11981
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11339
11982
|
order?: ("asc" | "desc");
|
|
11340
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11341
11983
|
};
|
|
11984
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11342
11985
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
11343
11986
|
ignoreCase?: boolean;
|
|
11344
11987
|
alphabet?: string;
|
|
11345
11988
|
locales?: (string | string[]);
|
|
11346
11989
|
order?: ("asc" | "desc");
|
|
11347
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11348
|
-
destructuredObjects?: (boolean | {
|
|
11349
|
-
groups?: boolean;
|
|
11350
|
-
});
|
|
11351
11990
|
customGroups?: ({
|
|
11352
|
-
[k: string]: (string | string[]) | undefined;
|
|
11353
|
-
} | ({
|
|
11354
|
-
newlinesInside?: (("always" | "never") | number);
|
|
11355
11991
|
fallbackSort?: {
|
|
11992
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11356
11993
|
order?: ("asc" | "desc");
|
|
11357
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11358
11994
|
};
|
|
11995
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11359
11996
|
groupName: string;
|
|
11997
|
+
newlinesInside?: ("ignore" | number);
|
|
11360
11998
|
order?: ("asc" | "desc");
|
|
11361
|
-
|
|
11362
|
-
|
|
11363
|
-
|
|
11364
|
-
|
|
11999
|
+
anyOf: [{
|
|
12000
|
+
elementNamePattern?: (({
|
|
12001
|
+
pattern: string;
|
|
12002
|
+
flags?: string;
|
|
12003
|
+
} | string)[] | ({
|
|
12004
|
+
pattern: string;
|
|
12005
|
+
flags?: string;
|
|
12006
|
+
} | string));
|
|
12007
|
+
modifiers?: ("multiline")[];
|
|
12008
|
+
selector?: ("member" | "method" | "property");
|
|
11365
12009
|
elementValuePattern?: (({
|
|
11366
12010
|
pattern: string;
|
|
11367
12011
|
flags?: string;
|
|
@@ -11369,6 +12013,7 @@ type PerfectionistSortObjects = {
|
|
|
11369
12013
|
pattern: string;
|
|
11370
12014
|
flags?: string;
|
|
11371
12015
|
} | string));
|
|
12016
|
+
}, ...({
|
|
11372
12017
|
elementNamePattern?: (({
|
|
11373
12018
|
pattern: string;
|
|
11374
12019
|
flags?: string;
|
|
@@ -11376,33 +12021,57 @@ type PerfectionistSortObjects = {
|
|
|
11376
12021
|
pattern: string;
|
|
11377
12022
|
flags?: string;
|
|
11378
12023
|
} | string));
|
|
11379
|
-
|
|
12024
|
+
modifiers?: ("multiline")[];
|
|
12025
|
+
selector?: ("member" | "method" | "property");
|
|
12026
|
+
elementValuePattern?: (({
|
|
12027
|
+
pattern: string;
|
|
12028
|
+
flags?: string;
|
|
12029
|
+
} | string)[] | ({
|
|
12030
|
+
pattern: string;
|
|
12031
|
+
flags?: string;
|
|
12032
|
+
} | string));
|
|
12033
|
+
})[]];
|
|
11380
12034
|
} | {
|
|
11381
|
-
newlinesInside?: (("always" | "never") | number);
|
|
11382
12035
|
fallbackSort?: {
|
|
12036
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11383
12037
|
order?: ("asc" | "desc");
|
|
11384
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11385
12038
|
};
|
|
12039
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11386
12040
|
groupName: string;
|
|
12041
|
+
newlinesInside?: ("ignore" | number);
|
|
11387
12042
|
order?: ("asc" | "desc");
|
|
11388
|
-
|
|
11389
|
-
modifiers?: ("optional" | "required" | "multiline")[];
|
|
11390
|
-
selector?: ("member" | "method" | "multiline" | "property");
|
|
11391
|
-
elementValuePattern?: (({
|
|
12043
|
+
elementNamePattern?: (({
|
|
11392
12044
|
pattern: string;
|
|
11393
12045
|
flags?: string;
|
|
11394
12046
|
} | string)[] | ({
|
|
11395
12047
|
pattern: string;
|
|
11396
12048
|
flags?: string;
|
|
11397
12049
|
} | string));
|
|
11398
|
-
|
|
12050
|
+
modifiers?: ("multiline")[];
|
|
12051
|
+
selector?: ("member" | "method" | "property");
|
|
12052
|
+
elementValuePattern?: (({
|
|
11399
12053
|
pattern: string;
|
|
11400
12054
|
flags?: string;
|
|
11401
12055
|
} | string)[] | ({
|
|
11402
12056
|
pattern: string;
|
|
11403
12057
|
flags?: string;
|
|
11404
12058
|
} | string));
|
|
11405
|
-
})[]
|
|
12059
|
+
})[];
|
|
12060
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
12061
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
12062
|
+
newlinesBetween: ("ignore" | number);
|
|
12063
|
+
} | {
|
|
12064
|
+
group: (string | [string, ...(string)[]]);
|
|
12065
|
+
fallbackSort?: {
|
|
12066
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12067
|
+
order?: ("asc" | "desc");
|
|
12068
|
+
};
|
|
12069
|
+
commentAbove?: string;
|
|
12070
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12071
|
+
newlinesInside?: ("ignore" | number);
|
|
12072
|
+
order?: ("asc" | "desc");
|
|
12073
|
+
})[];
|
|
12074
|
+
newlinesBetween?: ("ignore" | number);
|
|
11406
12075
|
useConfigurationIf?: {
|
|
11407
12076
|
allNamesMatchPattern?: (({
|
|
11408
12077
|
pattern: string;
|
|
@@ -11411,16 +12080,36 @@ type PerfectionistSortObjects = {
|
|
|
11411
12080
|
pattern: string;
|
|
11412
12081
|
flags?: string;
|
|
11413
12082
|
} | string));
|
|
12083
|
+
objectType?: ("destructured" | "non-destructured");
|
|
12084
|
+
hasNumericKeysOnly?: boolean;
|
|
12085
|
+
declarationCommentMatchesPattern?: (({
|
|
12086
|
+
scope?: ("shallow" | "deep");
|
|
12087
|
+
pattern: string;
|
|
12088
|
+
flags?: string;
|
|
12089
|
+
} | string)[] | ({
|
|
12090
|
+
scope?: ("shallow" | "deep");
|
|
12091
|
+
pattern: string;
|
|
12092
|
+
flags?: string;
|
|
12093
|
+
} | string));
|
|
11414
12094
|
callingFunctionNamePattern?: (({
|
|
12095
|
+
scope?: ("shallow" | "deep");
|
|
11415
12096
|
pattern: string;
|
|
11416
12097
|
flags?: string;
|
|
11417
12098
|
} | string)[] | ({
|
|
12099
|
+
scope?: ("shallow" | "deep");
|
|
12100
|
+
pattern: string;
|
|
12101
|
+
flags?: string;
|
|
12102
|
+
} | string));
|
|
12103
|
+
declarationMatchesPattern?: (({
|
|
12104
|
+
scope?: ("shallow" | "deep");
|
|
12105
|
+
pattern: string;
|
|
12106
|
+
flags?: string;
|
|
12107
|
+
} | string)[] | ({
|
|
12108
|
+
scope?: ("shallow" | "deep");
|
|
11418
12109
|
pattern: string;
|
|
11419
12110
|
flags?: string;
|
|
11420
12111
|
} | string));
|
|
11421
12112
|
};
|
|
11422
|
-
destructureOnly?: boolean;
|
|
11423
|
-
objectDeclarations?: boolean;
|
|
11424
12113
|
styledComponents?: boolean;
|
|
11425
12114
|
partitionByComment?: (boolean | (({
|
|
11426
12115
|
pattern: string;
|
|
@@ -11445,43 +12134,38 @@ type PerfectionistSortObjects = {
|
|
|
11445
12134
|
} | string)));
|
|
11446
12135
|
});
|
|
11447
12136
|
partitionByNewLine?: boolean;
|
|
11448
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11449
|
-
ignorePattern?: (({
|
|
11450
|
-
pattern: string;
|
|
11451
|
-
flags?: string;
|
|
11452
|
-
} | string)[] | ({
|
|
11453
|
-
pattern: string;
|
|
11454
|
-
flags?: string;
|
|
11455
|
-
} | string));
|
|
11456
|
-
groups?: (string | string[] | {
|
|
11457
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11458
|
-
commentAbove?: string;
|
|
11459
|
-
})[];
|
|
11460
12137
|
}[];
|
|
11461
12138
|
// ----- perfectionist/sort-sets -----
|
|
11462
12139
|
type PerfectionistSortSets = {
|
|
11463
12140
|
fallbackSort?: {
|
|
12141
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11464
12142
|
order?: ("asc" | "desc");
|
|
11465
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11466
12143
|
};
|
|
12144
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11467
12145
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
11468
12146
|
ignoreCase?: boolean;
|
|
11469
12147
|
alphabet?: string;
|
|
11470
12148
|
locales?: (string | string[]);
|
|
11471
12149
|
order?: ("asc" | "desc");
|
|
11472
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11473
|
-
groupKind?: ("mixed" | "literals-first" | "spreads-first");
|
|
11474
12150
|
customGroups?: ({
|
|
11475
|
-
newlinesInside?: (("always" | "never") | number);
|
|
11476
12151
|
fallbackSort?: {
|
|
12152
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11477
12153
|
order?: ("asc" | "desc");
|
|
11478
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11479
12154
|
};
|
|
12155
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11480
12156
|
groupName: string;
|
|
12157
|
+
newlinesInside?: ("ignore" | number);
|
|
11481
12158
|
order?: ("asc" | "desc");
|
|
11482
|
-
|
|
11483
|
-
|
|
12159
|
+
anyOf: [{
|
|
12160
|
+
elementNamePattern?: (({
|
|
12161
|
+
pattern: string;
|
|
12162
|
+
flags?: string;
|
|
12163
|
+
} | string)[] | ({
|
|
12164
|
+
pattern: string;
|
|
12165
|
+
flags?: string;
|
|
12166
|
+
} | string));
|
|
11484
12167
|
selector?: ("literal" | "spread");
|
|
12168
|
+
}, ...({
|
|
11485
12169
|
elementNamePattern?: (({
|
|
11486
12170
|
pattern: string;
|
|
11487
12171
|
flags?: string;
|
|
@@ -11489,17 +12173,17 @@ type PerfectionistSortSets = {
|
|
|
11489
12173
|
pattern: string;
|
|
11490
12174
|
flags?: string;
|
|
11491
12175
|
} | string));
|
|
11492
|
-
|
|
12176
|
+
selector?: ("literal" | "spread");
|
|
12177
|
+
})[]];
|
|
11493
12178
|
} | {
|
|
11494
|
-
newlinesInside?: (("always" | "never") | number);
|
|
11495
12179
|
fallbackSort?: {
|
|
12180
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11496
12181
|
order?: ("asc" | "desc");
|
|
11497
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11498
12182
|
};
|
|
12183
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11499
12184
|
groupName: string;
|
|
12185
|
+
newlinesInside?: ("ignore" | number);
|
|
11500
12186
|
order?: ("asc" | "desc");
|
|
11501
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11502
|
-
selector?: ("literal" | "spread");
|
|
11503
12187
|
elementNamePattern?: (({
|
|
11504
12188
|
pattern: string;
|
|
11505
12189
|
flags?: string;
|
|
@@ -11507,7 +12191,23 @@ type PerfectionistSortSets = {
|
|
|
11507
12191
|
pattern: string;
|
|
11508
12192
|
flags?: string;
|
|
11509
12193
|
} | string));
|
|
12194
|
+
selector?: ("literal" | "spread");
|
|
12195
|
+
})[];
|
|
12196
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
12197
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
12198
|
+
newlinesBetween: ("ignore" | number);
|
|
12199
|
+
} | {
|
|
12200
|
+
group: (string | [string, ...(string)[]]);
|
|
12201
|
+
fallbackSort?: {
|
|
12202
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12203
|
+
order?: ("asc" | "desc");
|
|
12204
|
+
};
|
|
12205
|
+
commentAbove?: string;
|
|
12206
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12207
|
+
newlinesInside?: ("ignore" | number);
|
|
12208
|
+
order?: ("asc" | "desc");
|
|
11510
12209
|
})[];
|
|
12210
|
+
newlinesBetween?: ("ignore" | number);
|
|
11511
12211
|
useConfigurationIf?: {
|
|
11512
12212
|
allNamesMatchPattern?: (({
|
|
11513
12213
|
pattern: string;
|
|
@@ -11540,48 +12240,51 @@ type PerfectionistSortSets = {
|
|
|
11540
12240
|
} | string)));
|
|
11541
12241
|
});
|
|
11542
12242
|
partitionByNewLine?: boolean;
|
|
11543
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11544
|
-
groups?: (string | string[] | {
|
|
11545
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11546
|
-
commentAbove?: string;
|
|
11547
|
-
})[];
|
|
11548
12243
|
}[];
|
|
11549
12244
|
// ----- perfectionist/sort-switch-case -----
|
|
11550
12245
|
type PerfectionistSortSwitchCase = [] | [{
|
|
11551
12246
|
fallbackSort?: {
|
|
12247
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11552
12248
|
order?: ("asc" | "desc");
|
|
11553
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11554
12249
|
};
|
|
12250
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11555
12251
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
11556
12252
|
ignoreCase?: boolean;
|
|
11557
12253
|
alphabet?: string;
|
|
11558
12254
|
locales?: (string | string[]);
|
|
11559
12255
|
order?: ("asc" | "desc");
|
|
11560
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11561
12256
|
}];
|
|
11562
12257
|
// ----- perfectionist/sort-union-types -----
|
|
11563
12258
|
type PerfectionistSortUnionTypes = {
|
|
11564
12259
|
fallbackSort?: {
|
|
12260
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11565
12261
|
order?: ("asc" | "desc");
|
|
11566
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11567
12262
|
};
|
|
12263
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11568
12264
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
11569
12265
|
ignoreCase?: boolean;
|
|
11570
12266
|
alphabet?: string;
|
|
11571
12267
|
locales?: (string | string[]);
|
|
11572
12268
|
order?: ("asc" | "desc");
|
|
11573
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11574
12269
|
customGroups?: ({
|
|
11575
|
-
newlinesInside?: (("always" | "never") | number);
|
|
11576
12270
|
fallbackSort?: {
|
|
12271
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11577
12272
|
order?: ("asc" | "desc");
|
|
11578
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11579
12273
|
};
|
|
12274
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11580
12275
|
groupName: string;
|
|
12276
|
+
newlinesInside?: ("ignore" | number);
|
|
11581
12277
|
order?: ("asc" | "desc");
|
|
11582
|
-
|
|
11583
|
-
|
|
12278
|
+
anyOf: [{
|
|
12279
|
+
elementNamePattern?: (({
|
|
12280
|
+
pattern: string;
|
|
12281
|
+
flags?: string;
|
|
12282
|
+
} | string)[] | ({
|
|
12283
|
+
pattern: string;
|
|
12284
|
+
flags?: string;
|
|
12285
|
+
} | string));
|
|
11584
12286
|
selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
|
|
12287
|
+
}, ...({
|
|
11585
12288
|
elementNamePattern?: (({
|
|
11586
12289
|
pattern: string;
|
|
11587
12290
|
flags?: string;
|
|
@@ -11589,17 +12292,17 @@ type PerfectionistSortUnionTypes = {
|
|
|
11589
12292
|
pattern: string;
|
|
11590
12293
|
flags?: string;
|
|
11591
12294
|
} | string));
|
|
11592
|
-
|
|
12295
|
+
selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
|
|
12296
|
+
})[]];
|
|
11593
12297
|
} | {
|
|
11594
|
-
newlinesInside?: (("always" | "never") | number);
|
|
11595
12298
|
fallbackSort?: {
|
|
12299
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11596
12300
|
order?: ("asc" | "desc");
|
|
11597
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11598
12301
|
};
|
|
12302
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11599
12303
|
groupName: string;
|
|
12304
|
+
newlinesInside?: ("ignore" | number);
|
|
11600
12305
|
order?: ("asc" | "desc");
|
|
11601
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11602
|
-
selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
|
|
11603
12306
|
elementNamePattern?: (({
|
|
11604
12307
|
pattern: string;
|
|
11605
12308
|
flags?: string;
|
|
@@ -11607,7 +12310,23 @@ type PerfectionistSortUnionTypes = {
|
|
|
11607
12310
|
pattern: string;
|
|
11608
12311
|
flags?: string;
|
|
11609
12312
|
} | string));
|
|
12313
|
+
selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
|
|
12314
|
+
})[];
|
|
12315
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
12316
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
12317
|
+
newlinesBetween: ("ignore" | number);
|
|
12318
|
+
} | {
|
|
12319
|
+
group: (string | [string, ...(string)[]]);
|
|
12320
|
+
fallbackSort?: {
|
|
12321
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12322
|
+
order?: ("asc" | "desc");
|
|
12323
|
+
};
|
|
12324
|
+
commentAbove?: string;
|
|
12325
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12326
|
+
newlinesInside?: ("ignore" | number);
|
|
12327
|
+
order?: ("asc" | "desc");
|
|
11610
12328
|
})[];
|
|
12329
|
+
newlinesBetween?: ("ignore" | number);
|
|
11611
12330
|
partitionByComment?: (boolean | (({
|
|
11612
12331
|
pattern: string;
|
|
11613
12332
|
flags?: string;
|
|
@@ -11631,35 +12350,38 @@ type PerfectionistSortUnionTypes = {
|
|
|
11631
12350
|
} | string)));
|
|
11632
12351
|
});
|
|
11633
12352
|
partitionByNewLine?: boolean;
|
|
11634
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11635
|
-
groups?: (string | string[] | {
|
|
11636
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11637
|
-
commentAbove?: string;
|
|
11638
|
-
})[];
|
|
11639
12353
|
}[];
|
|
11640
12354
|
// ----- perfectionist/sort-variable-declarations -----
|
|
11641
12355
|
type PerfectionistSortVariableDeclarations = [] | [{
|
|
11642
12356
|
fallbackSort?: {
|
|
12357
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11643
12358
|
order?: ("asc" | "desc");
|
|
11644
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11645
12359
|
};
|
|
12360
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11646
12361
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
11647
12362
|
ignoreCase?: boolean;
|
|
11648
12363
|
alphabet?: string;
|
|
11649
12364
|
locales?: (string | string[]);
|
|
11650
12365
|
order?: ("asc" | "desc");
|
|
11651
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11652
12366
|
customGroups?: ({
|
|
11653
|
-
newlinesInside?: (("always" | "never") | number);
|
|
11654
12367
|
fallbackSort?: {
|
|
12368
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11655
12369
|
order?: ("asc" | "desc");
|
|
11656
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11657
12370
|
};
|
|
12371
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11658
12372
|
groupName: string;
|
|
12373
|
+
newlinesInside?: ("ignore" | number);
|
|
11659
12374
|
order?: ("asc" | "desc");
|
|
11660
|
-
|
|
11661
|
-
|
|
12375
|
+
anyOf: [{
|
|
12376
|
+
elementNamePattern?: (({
|
|
12377
|
+
pattern: string;
|
|
12378
|
+
flags?: string;
|
|
12379
|
+
} | string)[] | ({
|
|
12380
|
+
pattern: string;
|
|
12381
|
+
flags?: string;
|
|
12382
|
+
} | string));
|
|
11662
12383
|
selector?: ("initialized" | "uninitialized");
|
|
12384
|
+
}, ...({
|
|
11663
12385
|
elementNamePattern?: (({
|
|
11664
12386
|
pattern: string;
|
|
11665
12387
|
flags?: string;
|
|
@@ -11667,17 +12389,17 @@ type PerfectionistSortVariableDeclarations = [] | [{
|
|
|
11667
12389
|
pattern: string;
|
|
11668
12390
|
flags?: string;
|
|
11669
12391
|
} | string));
|
|
11670
|
-
|
|
12392
|
+
selector?: ("initialized" | "uninitialized");
|
|
12393
|
+
})[]];
|
|
11671
12394
|
} | {
|
|
11672
|
-
newlinesInside?: (("always" | "never") | number);
|
|
11673
12395
|
fallbackSort?: {
|
|
12396
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11674
12397
|
order?: ("asc" | "desc");
|
|
11675
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11676
12398
|
};
|
|
12399
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11677
12400
|
groupName: string;
|
|
12401
|
+
newlinesInside?: ("ignore" | number);
|
|
11678
12402
|
order?: ("asc" | "desc");
|
|
11679
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11680
|
-
selector?: ("initialized" | "uninitialized");
|
|
11681
12403
|
elementNamePattern?: (({
|
|
11682
12404
|
pattern: string;
|
|
11683
12405
|
flags?: string;
|
|
@@ -11685,7 +12407,23 @@ type PerfectionistSortVariableDeclarations = [] | [{
|
|
|
11685
12407
|
pattern: string;
|
|
11686
12408
|
flags?: string;
|
|
11687
12409
|
} | string));
|
|
12410
|
+
selector?: ("initialized" | "uninitialized");
|
|
12411
|
+
})[];
|
|
12412
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
12413
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
12414
|
+
newlinesBetween: ("ignore" | number);
|
|
12415
|
+
} | {
|
|
12416
|
+
group: (string | [string, ...(string)[]]);
|
|
12417
|
+
fallbackSort?: {
|
|
12418
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12419
|
+
order?: ("asc" | "desc");
|
|
12420
|
+
};
|
|
12421
|
+
commentAbove?: string;
|
|
12422
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12423
|
+
newlinesInside?: ("ignore" | number);
|
|
12424
|
+
order?: ("asc" | "desc");
|
|
11688
12425
|
})[];
|
|
12426
|
+
newlinesBetween?: ("ignore" | number);
|
|
11689
12427
|
partitionByComment?: (boolean | (({
|
|
11690
12428
|
pattern: string;
|
|
11691
12429
|
flags?: string;
|
|
@@ -11709,11 +12447,6 @@ type PerfectionistSortVariableDeclarations = [] | [{
|
|
|
11709
12447
|
} | string)));
|
|
11710
12448
|
});
|
|
11711
12449
|
partitionByNewLine?: boolean;
|
|
11712
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11713
|
-
groups?: (string | string[] | {
|
|
11714
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11715
|
-
commentAbove?: string;
|
|
11716
|
-
})[];
|
|
11717
12450
|
}];
|
|
11718
12451
|
// ----- prefer-arrow-callback -----
|
|
11719
12452
|
type PreferArrowCallback = [] | [{
|
|
@@ -11924,6 +12657,11 @@ type ReactNamingConventionFilenameExtension = [] | [(("always" | "as-needed") |
|
|
|
11924
12657
|
extensions?: string[];
|
|
11925
12658
|
ignoreFilesWithoutCode?: boolean;
|
|
11926
12659
|
})];
|
|
12660
|
+
// ----- react-naming-convention/use-state -----
|
|
12661
|
+
type ReactNamingConventionUseState = [] | [{
|
|
12662
|
+
enforceAssignment?: boolean;
|
|
12663
|
+
enforceSetterName?: boolean;
|
|
12664
|
+
}];
|
|
11927
12665
|
// ----- react-refresh/only-export-components -----
|
|
11928
12666
|
type ReactRefreshOnlyExportComponents = [] | [{
|
|
11929
12667
|
allowExportNames?: string[];
|
|
@@ -13385,7 +14123,7 @@ type StyleTypeAnnotationSpacing = [] | [{
|
|
|
13385
14123
|
after?: boolean;
|
|
13386
14124
|
overrides?: {
|
|
13387
14125
|
colon?: _StyleTypeAnnotationSpacing_SpacingConfig;
|
|
13388
|
-
arrow?: _StyleTypeAnnotationSpacing_SpacingConfig;
|
|
14126
|
+
arrow?: ("ignore" | _StyleTypeAnnotationSpacing_SpacingConfig);
|
|
13389
14127
|
variable?: _StyleTypeAnnotationSpacing_SpacingConfig;
|
|
13390
14128
|
parameter?: _StyleTypeAnnotationSpacing_SpacingConfig;
|
|
13391
14129
|
property?: _StyleTypeAnnotationSpacing_SpacingConfig;
|
|
@@ -13448,6 +14186,10 @@ type TestMaxExpects = [] | [{
|
|
|
13448
14186
|
type TestMaxNestedDescribe = [] | [{
|
|
13449
14187
|
max?: number;
|
|
13450
14188
|
}];
|
|
14189
|
+
// ----- test/no-conditional-expect -----
|
|
14190
|
+
type TestNoConditionalExpect = [] | [{
|
|
14191
|
+
expectAssertions?: boolean;
|
|
14192
|
+
}];
|
|
13451
14193
|
// ----- test/no-focused-tests -----
|
|
13452
14194
|
type TestNoFocusedTests = [] | [{
|
|
13453
14195
|
fixable?: boolean;
|
|
@@ -13489,6 +14231,10 @@ type TestPreferExpectAssertions = [] | [{
|
|
|
13489
14231
|
onlyFunctionsWithExpectInLoop?: boolean;
|
|
13490
14232
|
onlyFunctionsWithExpectInCallback?: boolean;
|
|
13491
14233
|
}];
|
|
14234
|
+
// ----- test/prefer-import-in-mock -----
|
|
14235
|
+
type TestPreferImportInMock = [] | [{
|
|
14236
|
+
fixable?: boolean;
|
|
14237
|
+
}];
|
|
13492
14238
|
// ----- test/prefer-lowercase-title -----
|
|
13493
14239
|
type TestPreferLowercaseTitle = [] | [{
|
|
13494
14240
|
ignore?: ("describe" | "test" | "it")[];
|
|
@@ -14366,6 +15112,9 @@ type TsNoUnusedVars = [] | [(("all" | "local") | {
|
|
|
14366
15112
|
caughtErrors?: ("all" | "none");
|
|
14367
15113
|
caughtErrorsIgnorePattern?: string;
|
|
14368
15114
|
destructuredArrayIgnorePattern?: string;
|
|
15115
|
+
enableAutofixRemoval?: {
|
|
15116
|
+
imports?: boolean;
|
|
15117
|
+
};
|
|
14369
15118
|
ignoreClassWithStaticInitBlock?: boolean;
|
|
14370
15119
|
ignoreRestSiblings?: boolean;
|
|
14371
15120
|
ignoreUsingDeclarations?: boolean;
|
|
@@ -14566,6 +15315,10 @@ type TsStrictBooleanExpressions = [] | [{
|
|
|
14566
15315
|
allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean;
|
|
14567
15316
|
allowString?: boolean;
|
|
14568
15317
|
}];
|
|
15318
|
+
// ----- ts/strict-void-return -----
|
|
15319
|
+
type TsStrictVoidReturn = [] | [{
|
|
15320
|
+
allowReturnAny?: boolean;
|
|
15321
|
+
}];
|
|
14569
15322
|
// ----- ts/switch-exhaustiveness-check -----
|
|
14570
15323
|
type TsSwitchExhaustivenessCheck = [] | [{
|
|
14571
15324
|
allowDefaultCaseForExhaustiveSwitch?: boolean;
|
|
@@ -14840,6 +15593,9 @@ type UnusedImportsNoUnusedImports = [] | [(("all" | "local") | {
|
|
|
14840
15593
|
caughtErrors?: ("all" | "none");
|
|
14841
15594
|
caughtErrorsIgnorePattern?: string;
|
|
14842
15595
|
destructuredArrayIgnorePattern?: string;
|
|
15596
|
+
enableAutofixRemoval?: {
|
|
15597
|
+
imports?: boolean;
|
|
15598
|
+
};
|
|
14843
15599
|
ignoreClassWithStaticInitBlock?: boolean;
|
|
14844
15600
|
ignoreRestSiblings?: boolean;
|
|
14845
15601
|
ignoreUsingDeclarations?: boolean;
|
|
@@ -14854,6 +15610,9 @@ type UnusedImportsNoUnusedVars = [] | [(("all" | "local") | {
|
|
|
14854
15610
|
caughtErrors?: ("all" | "none");
|
|
14855
15611
|
caughtErrorsIgnorePattern?: string;
|
|
14856
15612
|
destructuredArrayIgnorePattern?: string;
|
|
15613
|
+
enableAutofixRemoval?: {
|
|
15614
|
+
imports?: boolean;
|
|
15615
|
+
};
|
|
14857
15616
|
ignoreClassWithStaticInitBlock?: boolean;
|
|
14858
15617
|
ignoreRestSiblings?: boolean;
|
|
14859
15618
|
ignoreUsingDeclarations?: boolean;
|