@pengzhanbo/eslint-config 1.45.0 → 1.46.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +785 -350
- package/dist/index.mjs +15 -10
- package/package.json +27 -29
package/dist/index.d.mts
CHANGED
|
@@ -3154,97 +3154,97 @@ interface RuleOptions {
|
|
|
3154
3154
|
*/
|
|
3155
3155
|
'radix'?: Linter.RuleEntry<Radix>;
|
|
3156
3156
|
/**
|
|
3157
|
-
*
|
|
3157
|
+
* Disallows DOM elements from using 'dangerouslySetInnerHTML'.
|
|
3158
3158
|
* @see https://eslint-react.xyz/docs/rules/dom-no-dangerously-set-innerhtml
|
|
3159
3159
|
*/
|
|
3160
3160
|
'react-dom/no-dangerously-set-innerhtml'?: Linter.RuleEntry<[]>;
|
|
3161
3161
|
/**
|
|
3162
|
-
*
|
|
3162
|
+
* Disallows DOM elements from using 'dangerouslySetInnerHTML' and 'children' at the same time.
|
|
3163
3163
|
* @see https://eslint-react.xyz/docs/rules/dom-no-dangerously-set-innerhtml-with-children
|
|
3164
3164
|
*/
|
|
3165
3165
|
'react-dom/no-dangerously-set-innerhtml-with-children'?: Linter.RuleEntry<[]>;
|
|
3166
3166
|
/**
|
|
3167
|
-
*
|
|
3167
|
+
* Disallows 'findDOMNode'.
|
|
3168
3168
|
* @see https://eslint-react.xyz/docs/rules/dom-no-find-dom-node
|
|
3169
3169
|
*/
|
|
3170
3170
|
'react-dom/no-find-dom-node'?: Linter.RuleEntry<[]>;
|
|
3171
3171
|
/**
|
|
3172
|
-
*
|
|
3172
|
+
* Disallows 'flushSync'.
|
|
3173
3173
|
* @see https://eslint-react.xyz/docs/rules/dom-no-flush-sync
|
|
3174
3174
|
*/
|
|
3175
3175
|
'react-dom/no-flush-sync'?: Linter.RuleEntry<[]>;
|
|
3176
3176
|
/**
|
|
3177
|
-
* Replaces
|
|
3177
|
+
* Replaces usage of 'ReactDOM.hydrate()' with 'hydrateRoot()'.
|
|
3178
3178
|
* @see https://eslint-react.xyz/docs/rules/dom-no-hydrate
|
|
3179
3179
|
*/
|
|
3180
3180
|
'react-dom/no-hydrate'?: Linter.RuleEntry<[]>;
|
|
3181
3181
|
/**
|
|
3182
|
-
* Enforces explicit
|
|
3182
|
+
* Enforces an explicit 'type' attribute for 'button' elements.
|
|
3183
3183
|
* @see https://eslint-react.xyz/docs/rules/dom-no-missing-button-type
|
|
3184
3184
|
*/
|
|
3185
3185
|
'react-dom/no-missing-button-type'?: Linter.RuleEntry<[]>;
|
|
3186
3186
|
/**
|
|
3187
|
-
* Enforces explicit
|
|
3187
|
+
* Enforces an explicit 'sandbox' attribute for 'iframe' elements.
|
|
3188
3188
|
* @see https://eslint-react.xyz/docs/rules/dom-no-missing-iframe-sandbox
|
|
3189
3189
|
*/
|
|
3190
3190
|
'react-dom/no-missing-iframe-sandbox'?: Linter.RuleEntry<[]>;
|
|
3191
3191
|
/**
|
|
3192
|
-
* Enforces the absence of a
|
|
3192
|
+
* Enforces the absence of a 'namespace' in React elements.
|
|
3193
3193
|
* @see https://eslint-react.xyz/docs/rules/dom-no-namespace
|
|
3194
3194
|
*/
|
|
3195
3195
|
'react-dom/no-namespace'?: Linter.RuleEntry<[]>;
|
|
3196
3196
|
/**
|
|
3197
|
-
* Replaces
|
|
3197
|
+
* Replaces usage of 'ReactDOM.render()' with 'createRoot(node).render()'.
|
|
3198
3198
|
* @see https://eslint-react.xyz/docs/rules/dom-no-render
|
|
3199
3199
|
*/
|
|
3200
3200
|
'react-dom/no-render'?: Linter.RuleEntry<[]>;
|
|
3201
3201
|
/**
|
|
3202
|
-
*
|
|
3202
|
+
* Disallows the return value of 'ReactDOM.render'.
|
|
3203
3203
|
* @see https://eslint-react.xyz/docs/rules/dom-no-render-return-value
|
|
3204
3204
|
*/
|
|
3205
3205
|
'react-dom/no-render-return-value'?: Linter.RuleEntry<[]>;
|
|
3206
3206
|
/**
|
|
3207
|
-
*
|
|
3207
|
+
* Disallows 'javascript:' URLs as attribute values.
|
|
3208
3208
|
* @see https://eslint-react.xyz/docs/rules/dom-no-script-url
|
|
3209
3209
|
*/
|
|
3210
3210
|
'react-dom/no-script-url'?: Linter.RuleEntry<[]>;
|
|
3211
3211
|
/**
|
|
3212
|
-
* Disallows the use of string style prop.
|
|
3212
|
+
* Disallows the use of string style prop in JSX. Use an object instead.
|
|
3213
3213
|
* @see https://eslint-react.xyz/docs/rules/dom-no-string-style-prop
|
|
3214
3214
|
*/
|
|
3215
3215
|
'react-dom/no-string-style-prop'?: Linter.RuleEntry<[]>;
|
|
3216
3216
|
/**
|
|
3217
|
-
*
|
|
3217
|
+
* Disallows unknown 'DOM' properties.
|
|
3218
3218
|
* @see https://eslint-react.xyz/docs/rules/dom-no-unknown-property
|
|
3219
3219
|
*/
|
|
3220
3220
|
'react-dom/no-unknown-property'?: Linter.RuleEntry<ReactDomNoUnknownProperty>;
|
|
3221
3221
|
/**
|
|
3222
|
-
* Enforces
|
|
3222
|
+
* Enforces 'sandbox' attribute for 'iframe' elements is not set to unsafe combinations.
|
|
3223
3223
|
* @see https://eslint-react.xyz/docs/rules/dom-no-unsafe-iframe-sandbox
|
|
3224
3224
|
*/
|
|
3225
3225
|
'react-dom/no-unsafe-iframe-sandbox'?: Linter.RuleEntry<[]>;
|
|
3226
3226
|
/**
|
|
3227
|
-
*
|
|
3227
|
+
* Disallows 'target="_blank"' without 'rel="noreferrer noopener"'.
|
|
3228
3228
|
* @see https://eslint-react.xyz/docs/rules/dom-no-unsafe-target-blank
|
|
3229
3229
|
*/
|
|
3230
3230
|
'react-dom/no-unsafe-target-blank'?: Linter.RuleEntry<[]>;
|
|
3231
3231
|
/**
|
|
3232
|
-
* Replaces
|
|
3232
|
+
* Replaces usage of 'useFormState' with 'useActionState'.
|
|
3233
3233
|
* @see https://eslint-react.xyz/docs/rules/dom-no-use-form-state
|
|
3234
3234
|
*/
|
|
3235
3235
|
'react-dom/no-use-form-state'?: Linter.RuleEntry<[]>;
|
|
3236
3236
|
/**
|
|
3237
|
-
*
|
|
3237
|
+
* Disallows 'children' in void DOM elements.
|
|
3238
3238
|
* @see https://eslint-react.xyz/docs/rules/dom-no-void-elements-with-children
|
|
3239
3239
|
*/
|
|
3240
3240
|
'react-dom/no-void-elements-with-children'?: Linter.RuleEntry<[]>;
|
|
3241
3241
|
/**
|
|
3242
|
-
* Enforces React
|
|
3242
|
+
* Enforces importing React DOM via a namespace import.
|
|
3243
3243
|
* @see https://eslint-react.xyz/docs/rules/dom-prefer-namespace-import
|
|
3244
3244
|
*/
|
|
3245
3245
|
'react-dom/prefer-namespace-import'?: Linter.RuleEntry<[]>;
|
|
3246
3246
|
/**
|
|
3247
|
-
*
|
|
3247
|
+
* Disallows direct calls to the ['set' function](https://react.dev/reference/react/useState#setstate) of 'useState' in 'useEffect'.
|
|
3248
3248
|
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-direct-set-state-in-use-effect
|
|
3249
3249
|
*/
|
|
3250
3250
|
'react-hooks-extra/no-direct-set-state-in-use-effect'?: Linter.RuleEntry<[]>;
|
|
@@ -3372,88 +3372,93 @@ interface RuleOptions {
|
|
|
3372
3372
|
*/
|
|
3373
3373
|
'react-naming-convention/component-name'?: Linter.RuleEntry<ReactNamingConventionComponentName>;
|
|
3374
3374
|
/**
|
|
3375
|
-
* Enforces context name to be a valid component name with the suffix
|
|
3375
|
+
* Enforces the context name to be a valid component name with the suffix 'Context'.
|
|
3376
3376
|
* @see https://eslint-react.xyz/docs/rules/naming-convention-context-name
|
|
3377
3377
|
*/
|
|
3378
3378
|
'react-naming-convention/context-name'?: Linter.RuleEntry<[]>;
|
|
3379
3379
|
/**
|
|
3380
|
-
* Enforces consistent file
|
|
3380
|
+
* Enforces consistent file-naming conventions.
|
|
3381
3381
|
* @see https://eslint-react.xyz/docs/rules/naming-convention-filename
|
|
3382
3382
|
*/
|
|
3383
3383
|
'react-naming-convention/filename'?: Linter.RuleEntry<ReactNamingConventionFilename>;
|
|
3384
3384
|
/**
|
|
3385
|
-
* Enforces consistent file
|
|
3385
|
+
* Enforces consistent use of the JSX file extension.
|
|
3386
3386
|
* @see https://eslint-react.xyz/docs/rules/naming-convention-filename-extension
|
|
3387
3387
|
*/
|
|
3388
3388
|
'react-naming-convention/filename-extension'?: Linter.RuleEntry<ReactNamingConventionFilenameExtension>;
|
|
3389
3389
|
/**
|
|
3390
|
-
* Enforces
|
|
3390
|
+
* Enforces identifier names assigned from 'useRef' calls to be either 'ref' or end with 'Ref'.
|
|
3391
|
+
* @see https://eslint-react.xyz/docs/rules/naming-convention-ref-name
|
|
3392
|
+
*/
|
|
3393
|
+
'react-naming-convention/ref-name'?: Linter.RuleEntry<[]>;
|
|
3394
|
+
/**
|
|
3395
|
+
* Enforces destructuring and symmetric naming of the 'useState' hook value and setter.
|
|
3391
3396
|
* @see https://eslint-react.xyz/docs/rules/naming-convention-use-state
|
|
3392
3397
|
*/
|
|
3393
|
-
'react-naming-convention/use-state'?: Linter.RuleEntry<
|
|
3398
|
+
'react-naming-convention/use-state'?: Linter.RuleEntry<ReactNamingConventionUseState>;
|
|
3394
3399
|
'react-refresh/only-export-components'?: Linter.RuleEntry<ReactRefreshOnlyExportComponents>;
|
|
3395
3400
|
/**
|
|
3396
|
-
*
|
|
3401
|
+
* Enforces that every 'addEventListener' in a component or custom hook has a corresponding 'removeEventListener'.
|
|
3397
3402
|
* @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-event-listener
|
|
3398
3403
|
*/
|
|
3399
3404
|
'react-web-api/no-leaked-event-listener'?: Linter.RuleEntry<[]>;
|
|
3400
3405
|
/**
|
|
3401
|
-
*
|
|
3406
|
+
* Enforces that every 'setInterval' in a component or custom hook has a corresponding 'clearInterval'.
|
|
3402
3407
|
* @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-interval
|
|
3403
3408
|
*/
|
|
3404
3409
|
'react-web-api/no-leaked-interval'?: Linter.RuleEntry<[]>;
|
|
3405
3410
|
/**
|
|
3406
|
-
*
|
|
3411
|
+
* Enforces that every 'ResizeObserver' created in a component or custom hook has a corresponding 'ResizeObserver.disconnect()'.
|
|
3407
3412
|
* @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-resize-observer
|
|
3408
3413
|
*/
|
|
3409
3414
|
'react-web-api/no-leaked-resize-observer'?: Linter.RuleEntry<[]>;
|
|
3410
3415
|
/**
|
|
3411
|
-
*
|
|
3416
|
+
* Enforces that every 'setTimeout' in a component or custom hook has a corresponding 'clearTimeout'.
|
|
3412
3417
|
* @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-timeout
|
|
3413
3418
|
*/
|
|
3414
3419
|
'react-web-api/no-leaked-timeout'?: Linter.RuleEntry<[]>;
|
|
3415
3420
|
/**
|
|
3416
|
-
* Prevents dollar signs from being inserted
|
|
3421
|
+
* Prevents unnecessary dollar signs ('$') from being inserted before an expression in JSX.
|
|
3417
3422
|
* @see https://eslint-react.xyz/docs/rules/jsx-dollar
|
|
3418
3423
|
*/
|
|
3419
3424
|
'react/jsx-dollar'?: Linter.RuleEntry<[]>;
|
|
3420
3425
|
/**
|
|
3421
|
-
* Enforces that the 'key' prop is placed before the spread prop in JSX elements.
|
|
3426
|
+
* Enforces that the 'key' prop is placed before the spread prop in JSX elements when using the new JSX transform.
|
|
3422
3427
|
* @see https://eslint-react.xyz/docs/rules/jsx-key-before-spread
|
|
3423
3428
|
*/
|
|
3424
3429
|
'react/jsx-key-before-spread'?: Linter.RuleEntry<[]>;
|
|
3425
3430
|
/**
|
|
3426
|
-
* Prevents
|
|
3431
|
+
* Prevents comment strings (e.g., beginning with '//' or '/*') from being accidentally inserted into a JSX element's text nodes.
|
|
3427
3432
|
* @see https://eslint-react.xyz/docs/rules/jsx-no-comment-textnodes
|
|
3428
3433
|
*/
|
|
3429
3434
|
'react/jsx-no-comment-textnodes'?: Linter.RuleEntry<[]>;
|
|
3430
3435
|
/**
|
|
3431
|
-
*
|
|
3436
|
+
* Disallows duplicate props in JSX elements.
|
|
3432
3437
|
* @see https://eslint-react.xyz/docs/rules/jsx-no-duplicate-props
|
|
3433
3438
|
*/
|
|
3434
3439
|
'react/jsx-no-duplicate-props'?: Linter.RuleEntry<[]>;
|
|
3435
3440
|
/**
|
|
3436
|
-
* Disallows 'IIFE' in JSX
|
|
3441
|
+
* Disallows 'IIFE' in JSX.
|
|
3437
3442
|
* @see https://eslint-react.xyz/docs/rules/jsx-no-iife
|
|
3438
3443
|
*/
|
|
3439
3444
|
'react/jsx-no-iife'?: Linter.RuleEntry<[]>;
|
|
3440
3445
|
/**
|
|
3441
|
-
*
|
|
3446
|
+
* Prevents using variables in JSX that are not defined in the scope.
|
|
3442
3447
|
* @see https://eslint-react.xyz/docs/rules/jsx-no-undef
|
|
3443
3448
|
*/
|
|
3444
3449
|
'react/jsx-no-undef'?: Linter.RuleEntry<[]>;
|
|
3445
3450
|
/**
|
|
3446
|
-
* Enforces shorthand syntax for boolean attributes.
|
|
3451
|
+
* Enforces the use of shorthand syntax for boolean attributes.
|
|
3447
3452
|
* @see https://eslint-react.xyz/docs/rules/jsx-shorthand-boolean
|
|
3448
3453
|
*/
|
|
3449
3454
|
'react/jsx-shorthand-boolean'?: Linter.RuleEntry<ReactJsxShorthandBoolean>;
|
|
3450
3455
|
/**
|
|
3451
|
-
* Enforces shorthand syntax for fragments.
|
|
3456
|
+
* Enforces the use of shorthand syntax for fragments.
|
|
3452
3457
|
* @see https://eslint-react.xyz/docs/rules/jsx-shorthand-fragment
|
|
3453
3458
|
*/
|
|
3454
3459
|
'react/jsx-shorthand-fragment'?: Linter.RuleEntry<ReactJsxShorthandFragment>;
|
|
3455
3460
|
/**
|
|
3456
|
-
* Marks React variables as used when JSX is
|
|
3461
|
+
* Marks React variables as used when JSX is present.
|
|
3457
3462
|
* @see https://eslint-react.xyz/docs/rules/jsx-uses-react
|
|
3458
3463
|
*/
|
|
3459
3464
|
'react/jsx-uses-react'?: Linter.RuleEntry<[]>;
|
|
@@ -3463,108 +3468,108 @@ interface RuleOptions {
|
|
|
3463
3468
|
*/
|
|
3464
3469
|
'react/jsx-uses-vars'?: Linter.RuleEntry<[]>;
|
|
3465
3470
|
/**
|
|
3466
|
-
*
|
|
3471
|
+
* Disallows accessing 'this.state' inside 'setState' calls.
|
|
3467
3472
|
* @see https://eslint-react.xyz/docs/rules/no-access-state-in-setstate
|
|
3468
3473
|
*/
|
|
3469
3474
|
'react/no-access-state-in-setstate'?: Linter.RuleEntry<[]>;
|
|
3470
3475
|
/**
|
|
3471
|
-
*
|
|
3476
|
+
* Disallows using an item's index in the array as its key.
|
|
3472
3477
|
* @see https://eslint-react.xyz/docs/rules/no-array-index-key
|
|
3473
3478
|
*/
|
|
3474
3479
|
'react/no-array-index-key'?: Linter.RuleEntry<[]>;
|
|
3475
3480
|
/**
|
|
3476
|
-
*
|
|
3481
|
+
* Disallows the use of 'Children.count' from the 'react' package.
|
|
3477
3482
|
* @see https://eslint-react.xyz/docs/rules/no-children-count
|
|
3478
3483
|
*/
|
|
3479
3484
|
'react/no-children-count'?: Linter.RuleEntry<[]>;
|
|
3480
3485
|
/**
|
|
3481
|
-
*
|
|
3486
|
+
* Disallows the use of 'Children.forEach' from the 'react' package.
|
|
3482
3487
|
* @see https://eslint-react.xyz/docs/rules/no-children-for-each
|
|
3483
3488
|
*/
|
|
3484
3489
|
'react/no-children-for-each'?: Linter.RuleEntry<[]>;
|
|
3485
3490
|
/**
|
|
3486
|
-
*
|
|
3491
|
+
* Disallows the use of 'Children.map' from the 'react' package.
|
|
3487
3492
|
* @see https://eslint-react.xyz/docs/rules/no-children-map
|
|
3488
3493
|
*/
|
|
3489
3494
|
'react/no-children-map'?: Linter.RuleEntry<[]>;
|
|
3490
3495
|
/**
|
|
3491
|
-
*
|
|
3496
|
+
* Disallows the use of 'Children.only' from the 'react' package.
|
|
3492
3497
|
* @see https://eslint-react.xyz/docs/rules/no-children-only
|
|
3493
3498
|
*/
|
|
3494
3499
|
'react/no-children-only'?: Linter.RuleEntry<[]>;
|
|
3495
3500
|
/**
|
|
3496
|
-
*
|
|
3501
|
+
* Disallows passing 'children' as a prop.
|
|
3497
3502
|
* @see https://eslint-react.xyz/docs/rules/no-children-prop
|
|
3498
3503
|
*/
|
|
3499
3504
|
'react/no-children-prop'?: Linter.RuleEntry<[]>;
|
|
3500
3505
|
/**
|
|
3501
|
-
*
|
|
3506
|
+
* Disallows the use of 'Children.toArray' from the 'react' package.
|
|
3502
3507
|
* @see https://eslint-react.xyz/docs/rules/no-children-to-array
|
|
3503
3508
|
*/
|
|
3504
3509
|
'react/no-children-to-array'?: Linter.RuleEntry<[]>;
|
|
3505
3510
|
/**
|
|
3506
|
-
*
|
|
3511
|
+
* Disallows class components except for error boundaries.
|
|
3507
3512
|
* @see https://eslint-react.xyz/docs/rules/no-class-component
|
|
3508
3513
|
*/
|
|
3509
3514
|
'react/no-class-component'?: Linter.RuleEntry<[]>;
|
|
3510
3515
|
/**
|
|
3511
|
-
*
|
|
3516
|
+
* Disallows 'cloneElement'.
|
|
3512
3517
|
* @see https://eslint-react.xyz/docs/rules/no-clone-element
|
|
3513
3518
|
*/
|
|
3514
3519
|
'react/no-clone-element'?: Linter.RuleEntry<[]>;
|
|
3515
3520
|
/**
|
|
3516
|
-
*
|
|
3521
|
+
* Replaces usage of 'componentWillMount' with 'UNSAFE_componentWillMount'.
|
|
3517
3522
|
* @see https://eslint-react.xyz/docs/rules/no-component-will-mount
|
|
3518
3523
|
*/
|
|
3519
3524
|
'react/no-component-will-mount'?: Linter.RuleEntry<[]>;
|
|
3520
3525
|
/**
|
|
3521
|
-
*
|
|
3526
|
+
* Replaces usage of 'componentWillReceiveProps' with 'UNSAFE_componentWillReceiveProps'.
|
|
3522
3527
|
* @see https://eslint-react.xyz/docs/rules/no-component-will-receive-props
|
|
3523
3528
|
*/
|
|
3524
3529
|
'react/no-component-will-receive-props'?: Linter.RuleEntry<[]>;
|
|
3525
3530
|
/**
|
|
3526
|
-
*
|
|
3531
|
+
* Replaces usage of 'componentWillUpdate' with 'UNSAFE_componentWillUpdate'.
|
|
3527
3532
|
* @see https://eslint-react.xyz/docs/rules/no-component-will-update
|
|
3528
3533
|
*/
|
|
3529
3534
|
'react/no-component-will-update'?: Linter.RuleEntry<[]>;
|
|
3530
3535
|
/**
|
|
3531
|
-
*
|
|
3536
|
+
* Replaces usage of '<Context.Provider>' with '<Context>'.
|
|
3532
3537
|
* @see https://eslint-react.xyz/docs/rules/no-context-provider
|
|
3533
3538
|
*/
|
|
3534
3539
|
'react/no-context-provider'?: Linter.RuleEntry<[]>;
|
|
3535
3540
|
/**
|
|
3536
|
-
*
|
|
3541
|
+
* Disallows 'createRef' in function components.
|
|
3537
3542
|
* @see https://eslint-react.xyz/docs/rules/no-create-ref
|
|
3538
3543
|
*/
|
|
3539
3544
|
'react/no-create-ref'?: Linter.RuleEntry<[]>;
|
|
3540
3545
|
/**
|
|
3541
|
-
*
|
|
3546
|
+
* Disallows the 'defaultProps' property in favor of ES6 default parameters.
|
|
3542
3547
|
* @see https://eslint-react.xyz/docs/rules/no-default-props
|
|
3543
3548
|
*/
|
|
3544
3549
|
'react/no-default-props'?: Linter.RuleEntry<[]>;
|
|
3545
3550
|
/**
|
|
3546
|
-
*
|
|
3551
|
+
* Disallows direct mutation of 'this.state'.
|
|
3547
3552
|
* @see https://eslint-react.xyz/docs/rules/no-direct-mutation-state
|
|
3548
3553
|
*/
|
|
3549
3554
|
'react/no-direct-mutation-state'?: Linter.RuleEntry<[]>;
|
|
3550
3555
|
/**
|
|
3551
|
-
*
|
|
3556
|
+
* Disallows duplicate 'key' on elements in the same array or a list of 'children'.
|
|
3552
3557
|
* @see https://eslint-react.xyz/docs/rules/no-duplicate-key
|
|
3553
3558
|
*/
|
|
3554
3559
|
'react/no-duplicate-key'?: Linter.RuleEntry<[]>;
|
|
3555
3560
|
/**
|
|
3556
|
-
*
|
|
3561
|
+
* Disallows certain props on components.
|
|
3557
3562
|
* @see https://eslint-react.xyz/docs/rules/no-forbidden-props
|
|
3558
3563
|
* @deprecated
|
|
3559
3564
|
*/
|
|
3560
3565
|
'react/no-forbidden-props'?: Linter.RuleEntry<ReactNoForbiddenProps>;
|
|
3561
3566
|
/**
|
|
3562
|
-
* Replaces
|
|
3567
|
+
* Replaces usage of 'forwardRef' with passing 'ref' as a prop.
|
|
3563
3568
|
* @see https://eslint-react.xyz/docs/rules/no-forward-ref
|
|
3564
3569
|
*/
|
|
3565
3570
|
'react/no-forward-ref'?: Linter.RuleEntry<[]>;
|
|
3566
3571
|
/**
|
|
3567
|
-
* Prevents
|
|
3572
|
+
* Prevents 'key' from not being explicitly specified (e.g., spreading 'key' from objects).
|
|
3568
3573
|
* @see https://eslint-react.xyz/docs/rules/no-implicit-key
|
|
3569
3574
|
*/
|
|
3570
3575
|
'react/no-implicit-key'?: Linter.RuleEntry<[]>;
|
|
@@ -3574,57 +3579,57 @@ interface RuleOptions {
|
|
|
3574
3579
|
*/
|
|
3575
3580
|
'react/no-leaked-conditional-rendering'?: Linter.RuleEntry<[]>;
|
|
3576
3581
|
/**
|
|
3577
|
-
* Enforces that all components have a
|
|
3582
|
+
* Enforces that all components have a 'displayName' that can be used in devtools.
|
|
3578
3583
|
* @see https://eslint-react.xyz/docs/rules/no-missing-component-display-name
|
|
3579
3584
|
*/
|
|
3580
3585
|
'react/no-missing-component-display-name'?: Linter.RuleEntry<[]>;
|
|
3581
3586
|
/**
|
|
3582
|
-
* Enforces that all contexts have a
|
|
3587
|
+
* Enforces that all contexts have a 'displayName' that can be used in devtools.
|
|
3583
3588
|
* @see https://eslint-react.xyz/docs/rules/no-missing-context-display-name
|
|
3584
3589
|
*/
|
|
3585
3590
|
'react/no-missing-context-display-name'?: Linter.RuleEntry<[]>;
|
|
3586
3591
|
/**
|
|
3587
|
-
*
|
|
3592
|
+
* Disallows missing 'key' on items in list rendering.
|
|
3588
3593
|
* @see https://eslint-react.xyz/docs/rules/no-missing-key
|
|
3589
3594
|
*/
|
|
3590
3595
|
'react/no-missing-key'?: Linter.RuleEntry<[]>;
|
|
3591
3596
|
/**
|
|
3592
|
-
* Prevents incorrect usage of
|
|
3597
|
+
* Prevents incorrect usage of 'captureOwnerStack'.
|
|
3593
3598
|
* @see https://eslint-react.xyz/docs/rules/no-misused-capture-owner-stack
|
|
3594
3599
|
*/
|
|
3595
3600
|
'react/no-misused-capture-owner-stack'?: Linter.RuleEntry<[]>;
|
|
3596
3601
|
/**
|
|
3597
|
-
*
|
|
3602
|
+
* Disallows nesting component definitions inside other components.
|
|
3598
3603
|
* @see https://eslint-react.xyz/docs/rules/no-nested-component-definitions
|
|
3599
3604
|
*/
|
|
3600
3605
|
'react/no-nested-component-definitions'?: Linter.RuleEntry<[]>;
|
|
3601
3606
|
/**
|
|
3602
|
-
*
|
|
3607
|
+
* Disallows nesting lazy component declarations inside other components.
|
|
3603
3608
|
* @see https://eslint-react.xyz/docs/rules/no-nested-lazy-component-declarations
|
|
3604
3609
|
*/
|
|
3605
3610
|
'react/no-nested-lazy-component-declarations'?: Linter.RuleEntry<[]>;
|
|
3606
3611
|
/**
|
|
3607
|
-
*
|
|
3612
|
+
* Disallows 'propTypes' in favor of TypeScript or another type-checking solution.
|
|
3608
3613
|
* @see https://eslint-react.xyz/docs/rules/no-prop-types
|
|
3609
3614
|
*/
|
|
3610
3615
|
'react/no-prop-types'?: Linter.RuleEntry<[]>;
|
|
3611
3616
|
/**
|
|
3612
|
-
*
|
|
3617
|
+
* Disallows 'shouldComponentUpdate' when extending 'React.PureComponent'.
|
|
3613
3618
|
* @see https://eslint-react.xyz/docs/rules/no-redundant-should-component-update
|
|
3614
3619
|
*/
|
|
3615
3620
|
'react/no-redundant-should-component-update'?: Linter.RuleEntry<[]>;
|
|
3616
3621
|
/**
|
|
3617
|
-
*
|
|
3622
|
+
* Disallows calling 'this.setState' in 'componentDidMount' outside functions such as callbacks.
|
|
3618
3623
|
* @see https://eslint-react.xyz/docs/rules/no-set-state-in-component-did-mount
|
|
3619
3624
|
*/
|
|
3620
3625
|
'react/no-set-state-in-component-did-mount'?: Linter.RuleEntry<[]>;
|
|
3621
3626
|
/**
|
|
3622
|
-
*
|
|
3627
|
+
* Disallows calling 'this.setState' in 'componentDidUpdate' outside functions such as callbacks.
|
|
3623
3628
|
* @see https://eslint-react.xyz/docs/rules/no-set-state-in-component-did-update
|
|
3624
3629
|
*/
|
|
3625
3630
|
'react/no-set-state-in-component-did-update'?: Linter.RuleEntry<[]>;
|
|
3626
3631
|
/**
|
|
3627
|
-
*
|
|
3632
|
+
* Disallows calling 'this.setState' in 'componentWillUpdate' outside functions such as callbacks.
|
|
3628
3633
|
* @see https://eslint-react.xyz/docs/rules/no-set-state-in-component-will-update
|
|
3629
3634
|
*/
|
|
3630
3635
|
'react/no-set-state-in-component-will-update'?: Linter.RuleEntry<[]>;
|
|
@@ -3634,42 +3639,47 @@ interface RuleOptions {
|
|
|
3634
3639
|
*/
|
|
3635
3640
|
'react/no-string-refs'?: Linter.RuleEntry<[]>;
|
|
3636
3641
|
/**
|
|
3637
|
-
*
|
|
3642
|
+
* Disallows unnecessary 'key' props on elements.
|
|
3638
3643
|
* @see https://eslint-react.xyz/docs/rules/no-unnecessary-key
|
|
3639
3644
|
*/
|
|
3640
3645
|
'react/no-unnecessary-key'?: Linter.RuleEntry<[]>;
|
|
3641
3646
|
/**
|
|
3642
|
-
*
|
|
3647
|
+
* Disallows unnecessary usage of 'useCallback'.
|
|
3643
3648
|
* @see https://eslint-react.xyz/docs/rules/no-unnecessary-use-callback
|
|
3644
3649
|
*/
|
|
3645
3650
|
'react/no-unnecessary-use-callback'?: Linter.RuleEntry<[]>;
|
|
3646
3651
|
/**
|
|
3647
|
-
*
|
|
3652
|
+
* Disallows unnecessary usage of 'useMemo'.
|
|
3648
3653
|
* @see https://eslint-react.xyz/docs/rules/no-unnecessary-use-memo
|
|
3649
3654
|
*/
|
|
3650
3655
|
'react/no-unnecessary-use-memo'?: Linter.RuleEntry<[]>;
|
|
3651
3656
|
/**
|
|
3652
|
-
* Enforces that a function with the
|
|
3657
|
+
* Enforces that a function with the 'use' prefix uses at least one Hook inside it.
|
|
3653
3658
|
* @see https://eslint-react.xyz/docs/rules/no-unnecessary-use-prefix
|
|
3654
3659
|
*/
|
|
3655
3660
|
'react/no-unnecessary-use-prefix'?: Linter.RuleEntry<[]>;
|
|
3656
3661
|
/**
|
|
3657
|
-
*
|
|
3662
|
+
* Disallows unnecessary usage of 'useRef'.
|
|
3663
|
+
* @see https://eslint-react.xyz/docs/rules/no-unnecessary-use-ref
|
|
3664
|
+
*/
|
|
3665
|
+
'react/no-unnecessary-use-ref'?: Linter.RuleEntry<[]>;
|
|
3666
|
+
/**
|
|
3667
|
+
* Warns about the use of 'UNSAFE_componentWillMount' in class components.
|
|
3658
3668
|
* @see https://eslint-react.xyz/docs/rules/no-unsafe-component-will-mount
|
|
3659
3669
|
*/
|
|
3660
3670
|
'react/no-unsafe-component-will-mount'?: Linter.RuleEntry<[]>;
|
|
3661
3671
|
/**
|
|
3662
|
-
* Warns the
|
|
3672
|
+
* Warns about the use of 'UNSAFE_componentWillReceiveProps' in class components.
|
|
3663
3673
|
* @see https://eslint-react.xyz/docs/rules/no-unsafe-component-will-receive-props
|
|
3664
3674
|
*/
|
|
3665
3675
|
'react/no-unsafe-component-will-receive-props'?: Linter.RuleEntry<[]>;
|
|
3666
3676
|
/**
|
|
3667
|
-
* Warns the
|
|
3677
|
+
* Warns about the use of 'UNSAFE_componentWillUpdate' in class components.
|
|
3668
3678
|
* @see https://eslint-react.xyz/docs/rules/no-unsafe-component-will-update
|
|
3669
3679
|
*/
|
|
3670
3680
|
'react/no-unsafe-component-will-update'?: Linter.RuleEntry<[]>;
|
|
3671
3681
|
/**
|
|
3672
|
-
* Prevents non-stable values (i.e
|
|
3682
|
+
* Prevents non-stable values (i.e., object literals) from being used as a value for 'Context.Provider'.
|
|
3673
3683
|
* @see https://eslint-react.xyz/docs/rules/no-unstable-context-value
|
|
3674
3684
|
*/
|
|
3675
3685
|
'react/no-unstable-context-value'?: Linter.RuleEntry<[]>;
|
|
@@ -3679,32 +3689,32 @@ interface RuleOptions {
|
|
|
3679
3689
|
*/
|
|
3680
3690
|
'react/no-unstable-default-props'?: Linter.RuleEntry<ReactNoUnstableDefaultProps>;
|
|
3681
3691
|
/**
|
|
3682
|
-
* Warns unused class component methods and properties.
|
|
3692
|
+
* Warns about unused class component methods and properties.
|
|
3683
3693
|
* @see https://eslint-react.xyz/docs/rules/no-unused-class-component-members
|
|
3684
3694
|
*/
|
|
3685
3695
|
'react/no-unused-class-component-members'?: Linter.RuleEntry<[]>;
|
|
3686
3696
|
/**
|
|
3687
|
-
* Warns component props that are defined but never used.
|
|
3697
|
+
* Warns about component props that are defined but never used.
|
|
3688
3698
|
* @see https://eslint-react.xyz/docs/rules/no-unused-props
|
|
3689
3699
|
*/
|
|
3690
3700
|
'react/no-unused-props'?: Linter.RuleEntry<[]>;
|
|
3691
3701
|
/**
|
|
3692
|
-
* Warns unused class component state.
|
|
3702
|
+
* Warns about unused class component state.
|
|
3693
3703
|
* @see https://eslint-react.xyz/docs/rules/no-unused-state
|
|
3694
3704
|
*/
|
|
3695
3705
|
'react/no-unused-state'?: Linter.RuleEntry<[]>;
|
|
3696
3706
|
/**
|
|
3697
|
-
* Replaces
|
|
3707
|
+
* Replaces usage of 'useContext' with 'use'.
|
|
3698
3708
|
* @see https://eslint-react.xyz/docs/rules/no-use-context
|
|
3699
3709
|
*/
|
|
3700
3710
|
'react/no-use-context'?: Linter.RuleEntry<[]>;
|
|
3701
3711
|
/**
|
|
3702
|
-
*
|
|
3712
|
+
* Disallows useless 'forwardRef' calls on components that don't use 'ref's.
|
|
3703
3713
|
* @see https://eslint-react.xyz/docs/rules/no-useless-forward-ref
|
|
3704
3714
|
*/
|
|
3705
3715
|
'react/no-useless-forward-ref'?: Linter.RuleEntry<[]>;
|
|
3706
3716
|
/**
|
|
3707
|
-
*
|
|
3717
|
+
* Disallows useless fragment elements.
|
|
3708
3718
|
* @see https://eslint-react.xyz/docs/rules/no-useless-fragment
|
|
3709
3719
|
*/
|
|
3710
3720
|
'react/no-useless-fragment'?: Linter.RuleEntry<ReactNoUselessFragment>;
|
|
@@ -3714,7 +3724,7 @@ interface RuleOptions {
|
|
|
3714
3724
|
*/
|
|
3715
3725
|
'react/prefer-destructuring-assignment'?: Linter.RuleEntry<[]>;
|
|
3716
3726
|
/**
|
|
3717
|
-
* Enforces React
|
|
3727
|
+
* Enforces importing React via a namespace import.
|
|
3718
3728
|
* @see https://eslint-react.xyz/docs/rules/prefer-namespace-import
|
|
3719
3729
|
*/
|
|
3720
3730
|
'react/prefer-namespace-import'?: Linter.RuleEntry<[]>;
|
|
@@ -3724,7 +3734,7 @@ interface RuleOptions {
|
|
|
3724
3734
|
*/
|
|
3725
3735
|
'react/prefer-read-only-props'?: Linter.RuleEntry<[]>;
|
|
3726
3736
|
/**
|
|
3727
|
-
* Enforces function calls made inside
|
|
3737
|
+
* Enforces wrapping function calls made inside 'useState' in an 'initializer function'.
|
|
3728
3738
|
* @see https://eslint-react.xyz/docs/rules/prefer-use-state-lazy-initialization
|
|
3729
3739
|
*/
|
|
3730
3740
|
'react/prefer-use-state-lazy-initialization'?: Linter.RuleEntry<[]>;
|
|
@@ -4544,6 +4554,7 @@ interface RuleOptions {
|
|
|
4544
4554
|
/**
|
|
4545
4555
|
* Enforce props alphabetical sorting
|
|
4546
4556
|
* @see https://eslint.style/rules/jsx-sort-props
|
|
4557
|
+
* @deprecated
|
|
4547
4558
|
*/
|
|
4548
4559
|
'style/jsx-sort-props'?: Linter.RuleEntry<StyleJsxSortProps>;
|
|
4549
4560
|
/**
|
|
@@ -5297,7 +5308,7 @@ interface RuleOptions {
|
|
|
5297
5308
|
* disallow conditional expects
|
|
5298
5309
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-conditional-expect.md
|
|
5299
5310
|
*/
|
|
5300
|
-
'test/no-conditional-expect'?: Linter.RuleEntry<
|
|
5311
|
+
'test/no-conditional-expect'?: Linter.RuleEntry<TestNoConditionalExpect>;
|
|
5301
5312
|
/**
|
|
5302
5313
|
* disallow conditional tests
|
|
5303
5314
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-conditional-in-test.md
|
|
@@ -5508,7 +5519,7 @@ interface RuleOptions {
|
|
|
5508
5519
|
* prefer dynamic import in mock
|
|
5509
5520
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-import-in-mock.md
|
|
5510
5521
|
*/
|
|
5511
|
-
'test/prefer-import-in-mock'?: Linter.RuleEntry<
|
|
5522
|
+
'test/prefer-import-in-mock'?: Linter.RuleEntry<TestPreferImportInMock>;
|
|
5512
5523
|
/**
|
|
5513
5524
|
* enforce importing Vitest globals
|
|
5514
5525
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-importing-vitest-globals.md
|
|
@@ -5524,6 +5535,11 @@ interface RuleOptions {
|
|
|
5524
5535
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-mock-promise-shorthand.md
|
|
5525
5536
|
*/
|
|
5526
5537
|
'test/prefer-mock-promise-shorthand'?: Linter.RuleEntry<[]>;
|
|
5538
|
+
/**
|
|
5539
|
+
* Prefer mock return shorthands
|
|
5540
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-mock-return-shorthand.md
|
|
5541
|
+
*/
|
|
5542
|
+
'test/prefer-mock-return-shorthand'?: Linter.RuleEntry<[]>;
|
|
5527
5543
|
/**
|
|
5528
5544
|
* enforce including a hint with external snapshots
|
|
5529
5545
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-snapshot-hint.md
|
|
@@ -5609,6 +5625,11 @@ interface RuleOptions {
|
|
|
5609
5625
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-mock-type-parameters.md
|
|
5610
5626
|
*/
|
|
5611
5627
|
'test/require-mock-type-parameters'?: Linter.RuleEntry<TestRequireMockTypeParameters>;
|
|
5628
|
+
/**
|
|
5629
|
+
* require tests to declare a timeout
|
|
5630
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-test-timeout.md
|
|
5631
|
+
*/
|
|
5632
|
+
'test/require-test-timeout'?: Linter.RuleEntry<[]>;
|
|
5612
5633
|
/**
|
|
5613
5634
|
* require toThrow() to be called with an error message
|
|
5614
5635
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-to-throw-message.md
|
|
@@ -6396,6 +6417,11 @@ interface RuleOptions {
|
|
|
6396
6417
|
* @see https://typescript-eslint.io/rules/strict-boolean-expressions
|
|
6397
6418
|
*/
|
|
6398
6419
|
'ts/strict-boolean-expressions'?: Linter.RuleEntry<TsStrictBooleanExpressions>;
|
|
6420
|
+
/**
|
|
6421
|
+
* Disallow passing a value-returning function in a position accepting a void function
|
|
6422
|
+
* @see https://typescript-eslint.io/rules/strict-void-return
|
|
6423
|
+
*/
|
|
6424
|
+
'ts/strict-void-return'?: Linter.RuleEntry<TsStrictVoidReturn>;
|
|
6399
6425
|
/**
|
|
6400
6426
|
* Require switch-case statements to be exhaustive
|
|
6401
6427
|
* @see https://typescript-eslint.io/rules/switch-exhaustiveness-check
|
|
@@ -7798,6 +7824,11 @@ interface RuleOptions {
|
|
|
7798
7824
|
* @see https://eslint.vuejs.org/rules/no-lifecycle-after-await.html
|
|
7799
7825
|
*/
|
|
7800
7826
|
'vue/no-lifecycle-after-await'?: Linter.RuleEntry<[]>;
|
|
7827
|
+
/**
|
|
7828
|
+
* disallow object, array, and function literals in template
|
|
7829
|
+
* @see https://eslint.vuejs.org/rules/no-literals-in-template.html
|
|
7830
|
+
*/
|
|
7831
|
+
'vue/no-literals-in-template'?: Linter.RuleEntry<[]>;
|
|
7801
7832
|
/**
|
|
7802
7833
|
* disallow unnecessary `<template>`
|
|
7803
7834
|
* @see https://eslint.vuejs.org/rules/no-lone-template.html
|
|
@@ -8008,6 +8039,11 @@ interface RuleOptions {
|
|
|
8008
8039
|
* @see https://eslint.vuejs.org/rules/no-undef-components.html
|
|
8009
8040
|
*/
|
|
8010
8041
|
'vue/no-undef-components'?: Linter.RuleEntry<VueNoUndefComponents>;
|
|
8042
|
+
/**
|
|
8043
|
+
* disallow use of undefined custom directives
|
|
8044
|
+
* @see https://eslint.vuejs.org/rules/no-undef-directives.html
|
|
8045
|
+
*/
|
|
8046
|
+
'vue/no-undef-directives'?: Linter.RuleEntry<VueNoUndefDirectives>;
|
|
8011
8047
|
/**
|
|
8012
8048
|
* disallow undefined properties
|
|
8013
8049
|
* @see https://eslint.vuejs.org/rules/no-undef-properties.html
|
|
@@ -9102,6 +9138,7 @@ type FormatDprint = [] | [{
|
|
|
9102
9138
|
languageOptions?: {
|
|
9103
9139
|
[k: string]: unknown | undefined;
|
|
9104
9140
|
};
|
|
9141
|
+
plugins?: unknown[];
|
|
9105
9142
|
[k: string]: unknown | undefined;
|
|
9106
9143
|
}];
|
|
9107
9144
|
// ----- format/prettier -----
|
|
@@ -9549,6 +9586,7 @@ type JsdocRequireHyphenBeforeParamDescription = [] | [("always" | "never")] | [(
|
|
|
9549
9586
|
}];
|
|
9550
9587
|
// ----- jsdoc/require-jsdoc -----
|
|
9551
9588
|
type JsdocRequireJsdoc = [] | [{
|
|
9589
|
+
checkAllFunctionExpressions?: boolean;
|
|
9552
9590
|
checkConstructors?: boolean;
|
|
9553
9591
|
checkGetters?: (boolean | "no-setter");
|
|
9554
9592
|
checkSetters?: (boolean | "no-getter");
|
|
@@ -11604,10 +11642,10 @@ type PaddingLineBetweenStatements = {
|
|
|
11604
11642
|
// ----- perfectionist/sort-array-includes -----
|
|
11605
11643
|
type PerfectionistSortArrayIncludes = {
|
|
11606
11644
|
fallbackSort?: {
|
|
11607
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11645
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11608
11646
|
order?: ("asc" | "desc");
|
|
11609
11647
|
};
|
|
11610
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11648
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11611
11649
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
11612
11650
|
ignoreCase?: boolean;
|
|
11613
11651
|
alphabet?: string;
|
|
@@ -11615,14 +11653,23 @@ type PerfectionistSortArrayIncludes = {
|
|
|
11615
11653
|
order?: ("asc" | "desc");
|
|
11616
11654
|
customGroups?: ({
|
|
11617
11655
|
fallbackSort?: {
|
|
11618
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11656
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11619
11657
|
order?: ("asc" | "desc");
|
|
11620
11658
|
};
|
|
11621
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11659
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11622
11660
|
groupName: string;
|
|
11623
|
-
newlinesInside?: number;
|
|
11661
|
+
newlinesInside?: ("ignore" | number);
|
|
11624
11662
|
order?: ("asc" | "desc");
|
|
11625
|
-
anyOf: {
|
|
11663
|
+
anyOf: [{
|
|
11664
|
+
elementNamePattern?: (({
|
|
11665
|
+
pattern: string;
|
|
11666
|
+
flags?: string;
|
|
11667
|
+
} | string)[] | ({
|
|
11668
|
+
pattern: string;
|
|
11669
|
+
flags?: string;
|
|
11670
|
+
} | string));
|
|
11671
|
+
selector?: ("literal" | "spread");
|
|
11672
|
+
}, ...({
|
|
11626
11673
|
elementNamePattern?: (({
|
|
11627
11674
|
pattern: string;
|
|
11628
11675
|
flags?: string;
|
|
@@ -11631,15 +11678,15 @@ type PerfectionistSortArrayIncludes = {
|
|
|
11631
11678
|
flags?: string;
|
|
11632
11679
|
} | string));
|
|
11633
11680
|
selector?: ("literal" | "spread");
|
|
11634
|
-
}[];
|
|
11681
|
+
})[]];
|
|
11635
11682
|
} | {
|
|
11636
11683
|
fallbackSort?: {
|
|
11637
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11684
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11638
11685
|
order?: ("asc" | "desc");
|
|
11639
11686
|
};
|
|
11640
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11687
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11641
11688
|
groupName: string;
|
|
11642
|
-
newlinesInside?: number;
|
|
11689
|
+
newlinesInside?: ("ignore" | number);
|
|
11643
11690
|
order?: ("asc" | "desc");
|
|
11644
11691
|
elementNamePattern?: (({
|
|
11645
11692
|
pattern: string;
|
|
@@ -11650,13 +11697,18 @@ type PerfectionistSortArrayIncludes = {
|
|
|
11650
11697
|
} | string));
|
|
11651
11698
|
selector?: ("literal" | "spread");
|
|
11652
11699
|
})[];
|
|
11700
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
11653
11701
|
groups?: (string | [string, ...(string)[]] | {
|
|
11654
11702
|
newlinesBetween: ("ignore" | number);
|
|
11655
11703
|
} | {
|
|
11656
11704
|
group: (string | [string, ...(string)[]]);
|
|
11705
|
+
fallbackSort?: {
|
|
11706
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11707
|
+
order?: ("asc" | "desc");
|
|
11708
|
+
};
|
|
11657
11709
|
commentAbove?: string;
|
|
11658
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11659
|
-
newlinesInside?: number;
|
|
11710
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11711
|
+
newlinesInside?: ("ignore" | number);
|
|
11660
11712
|
order?: ("asc" | "desc");
|
|
11661
11713
|
})[];
|
|
11662
11714
|
newlinesBetween?: ("ignore" | number);
|
|
@@ -11696,10 +11748,10 @@ type PerfectionistSortArrayIncludes = {
|
|
|
11696
11748
|
// ----- perfectionist/sort-classes -----
|
|
11697
11749
|
type PerfectionistSortClasses = [] | [{
|
|
11698
11750
|
fallbackSort?: {
|
|
11699
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11751
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11700
11752
|
order?: ("asc" | "desc");
|
|
11701
11753
|
};
|
|
11702
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11754
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11703
11755
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
11704
11756
|
ignoreCase?: boolean;
|
|
11705
11757
|
alphabet?: string;
|
|
@@ -11707,14 +11759,38 @@ type PerfectionistSortClasses = [] | [{
|
|
|
11707
11759
|
order?: ("asc" | "desc");
|
|
11708
11760
|
customGroups?: ({
|
|
11709
11761
|
fallbackSort?: {
|
|
11710
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11762
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11711
11763
|
order?: ("asc" | "desc");
|
|
11712
11764
|
};
|
|
11713
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11765
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11714
11766
|
groupName: string;
|
|
11715
|
-
newlinesInside?: number;
|
|
11767
|
+
newlinesInside?: ("ignore" | number);
|
|
11716
11768
|
order?: ("asc" | "desc");
|
|
11717
|
-
anyOf: {
|
|
11769
|
+
anyOf: [{
|
|
11770
|
+
elementNamePattern?: (({
|
|
11771
|
+
pattern: string;
|
|
11772
|
+
flags?: string;
|
|
11773
|
+
} | string)[] | ({
|
|
11774
|
+
pattern: string;
|
|
11775
|
+
flags?: string;
|
|
11776
|
+
} | string));
|
|
11777
|
+
modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[];
|
|
11778
|
+
selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method");
|
|
11779
|
+
decoratorNamePattern?: (({
|
|
11780
|
+
pattern: string;
|
|
11781
|
+
flags?: string;
|
|
11782
|
+
} | string)[] | ({
|
|
11783
|
+
pattern: string;
|
|
11784
|
+
flags?: string;
|
|
11785
|
+
} | string));
|
|
11786
|
+
elementValuePattern?: (({
|
|
11787
|
+
pattern: string;
|
|
11788
|
+
flags?: string;
|
|
11789
|
+
} | string)[] | ({
|
|
11790
|
+
pattern: string;
|
|
11791
|
+
flags?: string;
|
|
11792
|
+
} | string));
|
|
11793
|
+
}, ...({
|
|
11718
11794
|
elementNamePattern?: (({
|
|
11719
11795
|
pattern: string;
|
|
11720
11796
|
flags?: string;
|
|
@@ -11738,15 +11814,15 @@ type PerfectionistSortClasses = [] | [{
|
|
|
11738
11814
|
pattern: string;
|
|
11739
11815
|
flags?: string;
|
|
11740
11816
|
} | string));
|
|
11741
|
-
}[];
|
|
11817
|
+
})[]];
|
|
11742
11818
|
} | {
|
|
11743
11819
|
fallbackSort?: {
|
|
11744
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11820
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11745
11821
|
order?: ("asc" | "desc");
|
|
11746
11822
|
};
|
|
11747
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11823
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11748
11824
|
groupName: string;
|
|
11749
|
-
newlinesInside?: number;
|
|
11825
|
+
newlinesInside?: ("ignore" | number);
|
|
11750
11826
|
order?: ("asc" | "desc");
|
|
11751
11827
|
elementNamePattern?: (({
|
|
11752
11828
|
pattern: string;
|
|
@@ -11772,13 +11848,18 @@ type PerfectionistSortClasses = [] | [{
|
|
|
11772
11848
|
flags?: string;
|
|
11773
11849
|
} | string));
|
|
11774
11850
|
})[];
|
|
11851
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
11775
11852
|
groups?: (string | [string, ...(string)[]] | {
|
|
11776
11853
|
newlinesBetween: ("ignore" | number);
|
|
11777
11854
|
} | {
|
|
11778
11855
|
group: (string | [string, ...(string)[]]);
|
|
11856
|
+
fallbackSort?: {
|
|
11857
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11858
|
+
order?: ("asc" | "desc");
|
|
11859
|
+
};
|
|
11779
11860
|
commentAbove?: string;
|
|
11780
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11781
|
-
newlinesInside?: number;
|
|
11861
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11862
|
+
newlinesInside?: ("ignore" | number);
|
|
11782
11863
|
order?: ("asc" | "desc");
|
|
11783
11864
|
})[];
|
|
11784
11865
|
newlinesBetween?: ("ignore" | number);
|
|
@@ -11816,10 +11897,10 @@ type PerfectionistSortClasses = [] | [{
|
|
|
11816
11897
|
// ----- perfectionist/sort-decorators -----
|
|
11817
11898
|
type PerfectionistSortDecorators = {
|
|
11818
11899
|
fallbackSort?: {
|
|
11819
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11900
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11820
11901
|
order?: ("asc" | "desc");
|
|
11821
11902
|
};
|
|
11822
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11903
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11823
11904
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
11824
11905
|
ignoreCase?: boolean;
|
|
11825
11906
|
alphabet?: string;
|
|
@@ -11827,14 +11908,14 @@ type PerfectionistSortDecorators = {
|
|
|
11827
11908
|
order?: ("asc" | "desc");
|
|
11828
11909
|
customGroups?: ({
|
|
11829
11910
|
fallbackSort?: {
|
|
11830
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11911
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11831
11912
|
order?: ("asc" | "desc");
|
|
11832
11913
|
};
|
|
11833
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11914
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11834
11915
|
groupName: string;
|
|
11835
|
-
newlinesInside?: number;
|
|
11916
|
+
newlinesInside?: ("ignore" | number);
|
|
11836
11917
|
order?: ("asc" | "desc");
|
|
11837
|
-
anyOf: {
|
|
11918
|
+
anyOf: [{
|
|
11838
11919
|
elementNamePattern?: (({
|
|
11839
11920
|
pattern: string;
|
|
11840
11921
|
flags?: string;
|
|
@@ -11842,15 +11923,23 @@ type PerfectionistSortDecorators = {
|
|
|
11842
11923
|
pattern: string;
|
|
11843
11924
|
flags?: string;
|
|
11844
11925
|
} | string));
|
|
11845
|
-
}
|
|
11926
|
+
}, ...({
|
|
11927
|
+
elementNamePattern?: (({
|
|
11928
|
+
pattern: string;
|
|
11929
|
+
flags?: string;
|
|
11930
|
+
} | string)[] | ({
|
|
11931
|
+
pattern: string;
|
|
11932
|
+
flags?: string;
|
|
11933
|
+
} | string));
|
|
11934
|
+
})[]];
|
|
11846
11935
|
} | {
|
|
11847
11936
|
fallbackSort?: {
|
|
11848
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11937
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11849
11938
|
order?: ("asc" | "desc");
|
|
11850
11939
|
};
|
|
11851
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11940
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11852
11941
|
groupName: string;
|
|
11853
|
-
newlinesInside?: number;
|
|
11942
|
+
newlinesInside?: ("ignore" | number);
|
|
11854
11943
|
order?: ("asc" | "desc");
|
|
11855
11944
|
elementNamePattern?: (({
|
|
11856
11945
|
pattern: string;
|
|
@@ -11860,13 +11949,18 @@ type PerfectionistSortDecorators = {
|
|
|
11860
11949
|
flags?: string;
|
|
11861
11950
|
} | string));
|
|
11862
11951
|
})[];
|
|
11952
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
11863
11953
|
groups?: (string | [string, ...(string)[]] | {
|
|
11864
11954
|
newlinesBetween: ("ignore" | number);
|
|
11865
11955
|
} | {
|
|
11866
11956
|
group: (string | [string, ...(string)[]]);
|
|
11957
|
+
fallbackSort?: {
|
|
11958
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11959
|
+
order?: ("asc" | "desc");
|
|
11960
|
+
};
|
|
11867
11961
|
commentAbove?: string;
|
|
11868
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11869
|
-
newlinesInside?: number;
|
|
11962
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11963
|
+
newlinesInside?: ("ignore" | number);
|
|
11870
11964
|
order?: ("asc" | "desc");
|
|
11871
11965
|
})[];
|
|
11872
11966
|
newlinesBetween?: ("ignore" | number);
|
|
@@ -11902,10 +11996,10 @@ type PerfectionistSortDecorators = {
|
|
|
11902
11996
|
// ----- perfectionist/sort-enums -----
|
|
11903
11997
|
type PerfectionistSortEnums = [] | [{
|
|
11904
11998
|
fallbackSort?: {
|
|
11905
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11999
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11906
12000
|
order?: ("asc" | "desc");
|
|
11907
12001
|
};
|
|
11908
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12002
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11909
12003
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
11910
12004
|
ignoreCase?: boolean;
|
|
11911
12005
|
alphabet?: string;
|
|
@@ -11913,14 +12007,29 @@ type PerfectionistSortEnums = [] | [{
|
|
|
11913
12007
|
order?: ("asc" | "desc");
|
|
11914
12008
|
customGroups?: ({
|
|
11915
12009
|
fallbackSort?: {
|
|
11916
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12010
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11917
12011
|
order?: ("asc" | "desc");
|
|
11918
12012
|
};
|
|
11919
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12013
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11920
12014
|
groupName: string;
|
|
11921
|
-
newlinesInside?: number;
|
|
12015
|
+
newlinesInside?: ("ignore" | number);
|
|
11922
12016
|
order?: ("asc" | "desc");
|
|
11923
|
-
anyOf: {
|
|
12017
|
+
anyOf: [{
|
|
12018
|
+
elementNamePattern?: (({
|
|
12019
|
+
pattern: string;
|
|
12020
|
+
flags?: string;
|
|
12021
|
+
} | string)[] | ({
|
|
12022
|
+
pattern: string;
|
|
12023
|
+
flags?: string;
|
|
12024
|
+
} | string));
|
|
12025
|
+
elementValuePattern?: (({
|
|
12026
|
+
pattern: string;
|
|
12027
|
+
flags?: string;
|
|
12028
|
+
} | string)[] | ({
|
|
12029
|
+
pattern: string;
|
|
12030
|
+
flags?: string;
|
|
12031
|
+
} | string));
|
|
12032
|
+
}, ...({
|
|
11924
12033
|
elementNamePattern?: (({
|
|
11925
12034
|
pattern: string;
|
|
11926
12035
|
flags?: string;
|
|
@@ -11935,15 +12044,15 @@ type PerfectionistSortEnums = [] | [{
|
|
|
11935
12044
|
pattern: string;
|
|
11936
12045
|
flags?: string;
|
|
11937
12046
|
} | string));
|
|
11938
|
-
}[];
|
|
12047
|
+
})[]];
|
|
11939
12048
|
} | {
|
|
11940
12049
|
fallbackSort?: {
|
|
11941
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12050
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11942
12051
|
order?: ("asc" | "desc");
|
|
11943
12052
|
};
|
|
11944
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12053
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
11945
12054
|
groupName: string;
|
|
11946
|
-
newlinesInside?: number;
|
|
12055
|
+
newlinesInside?: ("ignore" | number);
|
|
11947
12056
|
order?: ("asc" | "desc");
|
|
11948
12057
|
elementNamePattern?: (({
|
|
11949
12058
|
pattern: string;
|
|
@@ -11960,13 +12069,18 @@ type PerfectionistSortEnums = [] | [{
|
|
|
11960
12069
|
flags?: string;
|
|
11961
12070
|
} | string));
|
|
11962
12071
|
})[];
|
|
12072
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
11963
12073
|
groups?: (string | [string, ...(string)[]] | {
|
|
11964
12074
|
newlinesBetween: ("ignore" | number);
|
|
11965
12075
|
} | {
|
|
11966
12076
|
group: (string | [string, ...(string)[]]);
|
|
12077
|
+
fallbackSort?: {
|
|
12078
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12079
|
+
order?: ("asc" | "desc");
|
|
12080
|
+
};
|
|
11967
12081
|
commentAbove?: string;
|
|
11968
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11969
|
-
newlinesInside?: number;
|
|
12082
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12083
|
+
newlinesInside?: ("ignore" | number);
|
|
11970
12084
|
order?: ("asc" | "desc");
|
|
11971
12085
|
})[];
|
|
11972
12086
|
newlinesBetween?: ("ignore" | number);
|
|
@@ -11998,10 +12112,10 @@ type PerfectionistSortEnums = [] | [{
|
|
|
11998
12112
|
// ----- perfectionist/sort-export-attributes -----
|
|
11999
12113
|
type PerfectionistSortExportAttributes = {
|
|
12000
12114
|
fallbackSort?: {
|
|
12001
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12115
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12002
12116
|
order?: ("asc" | "desc");
|
|
12003
12117
|
};
|
|
12004
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12118
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12005
12119
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
12006
12120
|
ignoreCase?: boolean;
|
|
12007
12121
|
alphabet?: string;
|
|
@@ -12009,14 +12123,14 @@ type PerfectionistSortExportAttributes = {
|
|
|
12009
12123
|
order?: ("asc" | "desc");
|
|
12010
12124
|
customGroups?: ({
|
|
12011
12125
|
fallbackSort?: {
|
|
12012
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12126
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12013
12127
|
order?: ("asc" | "desc");
|
|
12014
12128
|
};
|
|
12015
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12129
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12016
12130
|
groupName: string;
|
|
12017
|
-
newlinesInside?: number;
|
|
12131
|
+
newlinesInside?: ("ignore" | number);
|
|
12018
12132
|
order?: ("asc" | "desc");
|
|
12019
|
-
anyOf: {
|
|
12133
|
+
anyOf: [{
|
|
12020
12134
|
elementNamePattern?: (({
|
|
12021
12135
|
pattern: string;
|
|
12022
12136
|
flags?: string;
|
|
@@ -12024,15 +12138,23 @@ type PerfectionistSortExportAttributes = {
|
|
|
12024
12138
|
pattern: string;
|
|
12025
12139
|
flags?: string;
|
|
12026
12140
|
} | string));
|
|
12027
|
-
}
|
|
12141
|
+
}, ...({
|
|
12142
|
+
elementNamePattern?: (({
|
|
12143
|
+
pattern: string;
|
|
12144
|
+
flags?: string;
|
|
12145
|
+
} | string)[] | ({
|
|
12146
|
+
pattern: string;
|
|
12147
|
+
flags?: string;
|
|
12148
|
+
} | string));
|
|
12149
|
+
})[]];
|
|
12028
12150
|
} | {
|
|
12029
12151
|
fallbackSort?: {
|
|
12030
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12152
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12031
12153
|
order?: ("asc" | "desc");
|
|
12032
12154
|
};
|
|
12033
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12155
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12034
12156
|
groupName: string;
|
|
12035
|
-
newlinesInside?: number;
|
|
12157
|
+
newlinesInside?: ("ignore" | number);
|
|
12036
12158
|
order?: ("asc" | "desc");
|
|
12037
12159
|
elementNamePattern?: (({
|
|
12038
12160
|
pattern: string;
|
|
@@ -12042,13 +12164,18 @@ type PerfectionistSortExportAttributes = {
|
|
|
12042
12164
|
flags?: string;
|
|
12043
12165
|
} | string));
|
|
12044
12166
|
})[];
|
|
12167
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
12045
12168
|
groups?: (string | [string, ...(string)[]] | {
|
|
12046
12169
|
newlinesBetween: ("ignore" | number);
|
|
12047
12170
|
} | {
|
|
12048
12171
|
group: (string | [string, ...(string)[]]);
|
|
12172
|
+
fallbackSort?: {
|
|
12173
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12174
|
+
order?: ("asc" | "desc");
|
|
12175
|
+
};
|
|
12049
12176
|
commentAbove?: string;
|
|
12050
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12051
|
-
newlinesInside?: number;
|
|
12177
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12178
|
+
newlinesInside?: ("ignore" | number);
|
|
12052
12179
|
order?: ("asc" | "desc");
|
|
12053
12180
|
})[];
|
|
12054
12181
|
newlinesBetween?: ("ignore" | number);
|
|
@@ -12079,10 +12206,10 @@ type PerfectionistSortExportAttributes = {
|
|
|
12079
12206
|
// ----- perfectionist/sort-exports -----
|
|
12080
12207
|
type PerfectionistSortExports = {
|
|
12081
12208
|
fallbackSort?: {
|
|
12082
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12209
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12083
12210
|
order?: ("asc" | "desc");
|
|
12084
12211
|
};
|
|
12085
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12212
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12086
12213
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
12087
12214
|
ignoreCase?: boolean;
|
|
12088
12215
|
alphabet?: string;
|
|
@@ -12090,14 +12217,14 @@ type PerfectionistSortExports = {
|
|
|
12090
12217
|
order?: ("asc" | "desc");
|
|
12091
12218
|
customGroups?: ({
|
|
12092
12219
|
fallbackSort?: {
|
|
12093
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12220
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12094
12221
|
order?: ("asc" | "desc");
|
|
12095
12222
|
};
|
|
12096
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12223
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12097
12224
|
groupName: string;
|
|
12098
|
-
newlinesInside?: number;
|
|
12225
|
+
newlinesInside?: ("ignore" | number);
|
|
12099
12226
|
order?: ("asc" | "desc");
|
|
12100
|
-
anyOf: {
|
|
12227
|
+
anyOf: [{
|
|
12101
12228
|
elementNamePattern?: (({
|
|
12102
12229
|
pattern: string;
|
|
12103
12230
|
flags?: string;
|
|
@@ -12107,15 +12234,25 @@ type PerfectionistSortExports = {
|
|
|
12107
12234
|
} | string));
|
|
12108
12235
|
modifiers?: ("value" | "type" | "named" | "wildcard" | "multiline" | "singleline")[];
|
|
12109
12236
|
selector?: "export";
|
|
12110
|
-
}
|
|
12237
|
+
}, ...({
|
|
12238
|
+
elementNamePattern?: (({
|
|
12239
|
+
pattern: string;
|
|
12240
|
+
flags?: string;
|
|
12241
|
+
} | string)[] | ({
|
|
12242
|
+
pattern: string;
|
|
12243
|
+
flags?: string;
|
|
12244
|
+
} | string));
|
|
12245
|
+
modifiers?: ("value" | "type" | "named" | "wildcard" | "multiline" | "singleline")[];
|
|
12246
|
+
selector?: "export";
|
|
12247
|
+
})[]];
|
|
12111
12248
|
} | {
|
|
12112
12249
|
fallbackSort?: {
|
|
12113
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12250
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12114
12251
|
order?: ("asc" | "desc");
|
|
12115
12252
|
};
|
|
12116
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12253
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12117
12254
|
groupName: string;
|
|
12118
|
-
newlinesInside?: number;
|
|
12255
|
+
newlinesInside?: ("ignore" | number);
|
|
12119
12256
|
order?: ("asc" | "desc");
|
|
12120
12257
|
elementNamePattern?: (({
|
|
12121
12258
|
pattern: string;
|
|
@@ -12127,13 +12264,18 @@ type PerfectionistSortExports = {
|
|
|
12127
12264
|
modifiers?: ("value" | "type" | "named" | "wildcard" | "multiline" | "singleline")[];
|
|
12128
12265
|
selector?: "export";
|
|
12129
12266
|
})[];
|
|
12267
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
12130
12268
|
groups?: (string | [string, ...(string)[]] | {
|
|
12131
12269
|
newlinesBetween: ("ignore" | number);
|
|
12132
12270
|
} | {
|
|
12133
12271
|
group: (string | [string, ...(string)[]]);
|
|
12272
|
+
fallbackSort?: {
|
|
12273
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12274
|
+
order?: ("asc" | "desc");
|
|
12275
|
+
};
|
|
12134
12276
|
commentAbove?: string;
|
|
12135
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12136
|
-
newlinesInside?: number;
|
|
12277
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12278
|
+
newlinesInside?: ("ignore" | number);
|
|
12137
12279
|
order?: ("asc" | "desc");
|
|
12138
12280
|
})[];
|
|
12139
12281
|
newlinesBetween?: ("ignore" | number);
|
|
@@ -12164,10 +12306,10 @@ type PerfectionistSortExports = {
|
|
|
12164
12306
|
// ----- perfectionist/sort-heritage-clauses -----
|
|
12165
12307
|
type PerfectionistSortHeritageClauses = {
|
|
12166
12308
|
fallbackSort?: {
|
|
12167
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12309
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12168
12310
|
order?: ("asc" | "desc");
|
|
12169
12311
|
};
|
|
12170
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12312
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12171
12313
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
12172
12314
|
ignoreCase?: boolean;
|
|
12173
12315
|
alphabet?: string;
|
|
@@ -12175,14 +12317,22 @@ type PerfectionistSortHeritageClauses = {
|
|
|
12175
12317
|
order?: ("asc" | "desc");
|
|
12176
12318
|
customGroups?: ({
|
|
12177
12319
|
fallbackSort?: {
|
|
12178
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12320
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12179
12321
|
order?: ("asc" | "desc");
|
|
12180
12322
|
};
|
|
12181
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12323
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12182
12324
|
groupName: string;
|
|
12183
|
-
newlinesInside?: number;
|
|
12325
|
+
newlinesInside?: ("ignore" | number);
|
|
12184
12326
|
order?: ("asc" | "desc");
|
|
12185
|
-
anyOf: {
|
|
12327
|
+
anyOf: [{
|
|
12328
|
+
elementNamePattern?: (({
|
|
12329
|
+
pattern: string;
|
|
12330
|
+
flags?: string;
|
|
12331
|
+
} | string)[] | ({
|
|
12332
|
+
pattern: string;
|
|
12333
|
+
flags?: string;
|
|
12334
|
+
} | string));
|
|
12335
|
+
}, ...({
|
|
12186
12336
|
elementNamePattern?: (({
|
|
12187
12337
|
pattern: string;
|
|
12188
12338
|
flags?: string;
|
|
@@ -12190,15 +12340,15 @@ type PerfectionistSortHeritageClauses = {
|
|
|
12190
12340
|
pattern: string;
|
|
12191
12341
|
flags?: string;
|
|
12192
12342
|
} | string));
|
|
12193
|
-
}[];
|
|
12343
|
+
})[]];
|
|
12194
12344
|
} | {
|
|
12195
12345
|
fallbackSort?: {
|
|
12196
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12346
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12197
12347
|
order?: ("asc" | "desc");
|
|
12198
12348
|
};
|
|
12199
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12349
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12200
12350
|
groupName: string;
|
|
12201
|
-
newlinesInside?: number;
|
|
12351
|
+
newlinesInside?: ("ignore" | number);
|
|
12202
12352
|
order?: ("asc" | "desc");
|
|
12203
12353
|
elementNamePattern?: (({
|
|
12204
12354
|
pattern: string;
|
|
@@ -12208,13 +12358,18 @@ type PerfectionistSortHeritageClauses = {
|
|
|
12208
12358
|
flags?: string;
|
|
12209
12359
|
} | string));
|
|
12210
12360
|
})[];
|
|
12361
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
12211
12362
|
groups?: (string | [string, ...(string)[]] | {
|
|
12212
12363
|
newlinesBetween: ("ignore" | number);
|
|
12213
12364
|
} | {
|
|
12214
12365
|
group: (string | [string, ...(string)[]]);
|
|
12366
|
+
fallbackSort?: {
|
|
12367
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12368
|
+
order?: ("asc" | "desc");
|
|
12369
|
+
};
|
|
12215
12370
|
commentAbove?: string;
|
|
12216
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12217
|
-
newlinesInside?: number;
|
|
12371
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12372
|
+
newlinesInside?: ("ignore" | number);
|
|
12218
12373
|
order?: ("asc" | "desc");
|
|
12219
12374
|
})[];
|
|
12220
12375
|
newlinesBetween?: ("ignore" | number);
|
|
@@ -12245,10 +12400,10 @@ type PerfectionistSortHeritageClauses = {
|
|
|
12245
12400
|
// ----- perfectionist/sort-import-attributes -----
|
|
12246
12401
|
type PerfectionistSortImportAttributes = {
|
|
12247
12402
|
fallbackSort?: {
|
|
12248
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12403
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12249
12404
|
order?: ("asc" | "desc");
|
|
12250
12405
|
};
|
|
12251
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12406
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12252
12407
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
12253
12408
|
ignoreCase?: boolean;
|
|
12254
12409
|
alphabet?: string;
|
|
@@ -12256,14 +12411,14 @@ type PerfectionistSortImportAttributes = {
|
|
|
12256
12411
|
order?: ("asc" | "desc");
|
|
12257
12412
|
customGroups?: ({
|
|
12258
12413
|
fallbackSort?: {
|
|
12259
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12414
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12260
12415
|
order?: ("asc" | "desc");
|
|
12261
12416
|
};
|
|
12262
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12417
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12263
12418
|
groupName: string;
|
|
12264
|
-
newlinesInside?: number;
|
|
12419
|
+
newlinesInside?: ("ignore" | number);
|
|
12265
12420
|
order?: ("asc" | "desc");
|
|
12266
|
-
anyOf: {
|
|
12421
|
+
anyOf: [{
|
|
12267
12422
|
elementNamePattern?: (({
|
|
12268
12423
|
pattern: string;
|
|
12269
12424
|
flags?: string;
|
|
@@ -12271,15 +12426,23 @@ type PerfectionistSortImportAttributes = {
|
|
|
12271
12426
|
pattern: string;
|
|
12272
12427
|
flags?: string;
|
|
12273
12428
|
} | string));
|
|
12274
|
-
}
|
|
12429
|
+
}, ...({
|
|
12430
|
+
elementNamePattern?: (({
|
|
12431
|
+
pattern: string;
|
|
12432
|
+
flags?: string;
|
|
12433
|
+
} | string)[] | ({
|
|
12434
|
+
pattern: string;
|
|
12435
|
+
flags?: string;
|
|
12436
|
+
} | string));
|
|
12437
|
+
})[]];
|
|
12275
12438
|
} | {
|
|
12276
12439
|
fallbackSort?: {
|
|
12277
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12440
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12278
12441
|
order?: ("asc" | "desc");
|
|
12279
12442
|
};
|
|
12280
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12443
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12281
12444
|
groupName: string;
|
|
12282
|
-
newlinesInside?: number;
|
|
12445
|
+
newlinesInside?: ("ignore" | number);
|
|
12283
12446
|
order?: ("asc" | "desc");
|
|
12284
12447
|
elementNamePattern?: (({
|
|
12285
12448
|
pattern: string;
|
|
@@ -12289,13 +12452,18 @@ type PerfectionistSortImportAttributes = {
|
|
|
12289
12452
|
flags?: string;
|
|
12290
12453
|
} | string));
|
|
12291
12454
|
})[];
|
|
12455
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
12292
12456
|
groups?: (string | [string, ...(string)[]] | {
|
|
12293
12457
|
newlinesBetween: ("ignore" | number);
|
|
12294
12458
|
} | {
|
|
12295
12459
|
group: (string | [string, ...(string)[]]);
|
|
12460
|
+
fallbackSort?: {
|
|
12461
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12462
|
+
order?: ("asc" | "desc");
|
|
12463
|
+
};
|
|
12296
12464
|
commentAbove?: string;
|
|
12297
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12298
|
-
newlinesInside?: number;
|
|
12465
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12466
|
+
newlinesInside?: ("ignore" | number);
|
|
12299
12467
|
order?: ("asc" | "desc");
|
|
12300
12468
|
})[];
|
|
12301
12469
|
newlinesBetween?: ("ignore" | number);
|
|
@@ -12326,25 +12494,29 @@ type PerfectionistSortImportAttributes = {
|
|
|
12326
12494
|
// ----- perfectionist/sort-imports -----
|
|
12327
12495
|
type PerfectionistSortImports = {
|
|
12328
12496
|
fallbackSort?: {
|
|
12329
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
|
|
12497
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "type-import-first");
|
|
12330
12498
|
order?: ("asc" | "desc");
|
|
12499
|
+
sortBy?: ("specifier" | "path");
|
|
12331
12500
|
};
|
|
12332
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
|
|
12501
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "type-import-first");
|
|
12333
12502
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
12334
12503
|
ignoreCase?: boolean;
|
|
12335
12504
|
alphabet?: string;
|
|
12336
12505
|
locales?: (string | string[]);
|
|
12337
12506
|
order?: ("asc" | "desc");
|
|
12507
|
+
sortBy?: ("specifier" | "path");
|
|
12338
12508
|
customGroups?: ({
|
|
12339
12509
|
fallbackSort?: {
|
|
12340
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
|
|
12510
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "type-import-first");
|
|
12341
12511
|
order?: ("asc" | "desc");
|
|
12512
|
+
sortBy?: ("specifier" | "path");
|
|
12342
12513
|
};
|
|
12343
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
|
|
12514
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "type-import-first");
|
|
12344
12515
|
groupName: string;
|
|
12345
|
-
newlinesInside?: number;
|
|
12516
|
+
newlinesInside?: ("ignore" | number);
|
|
12346
12517
|
order?: ("asc" | "desc");
|
|
12347
|
-
|
|
12518
|
+
sortBy?: ("specifier" | "path");
|
|
12519
|
+
anyOf: [{
|
|
12348
12520
|
elementNamePattern?: (({
|
|
12349
12521
|
pattern: string;
|
|
12350
12522
|
flags?: string;
|
|
@@ -12354,16 +12526,28 @@ type PerfectionistSortImports = {
|
|
|
12354
12526
|
} | string));
|
|
12355
12527
|
modifiers?: ("default" | "multiline" | "named" | "require" | "side-effect" | "singleline" | "ts-equals" | "type" | "value" | "wildcard")[];
|
|
12356
12528
|
selector?: ("side-effect-style" | "tsconfig-path" | "side-effect" | "external" | "internal" | "builtin" | "sibling" | "subpath" | "import" | "parent" | "index" | "style" | "type");
|
|
12357
|
-
}
|
|
12529
|
+
}, ...({
|
|
12530
|
+
elementNamePattern?: (({
|
|
12531
|
+
pattern: string;
|
|
12532
|
+
flags?: string;
|
|
12533
|
+
} | string)[] | ({
|
|
12534
|
+
pattern: string;
|
|
12535
|
+
flags?: string;
|
|
12536
|
+
} | string));
|
|
12537
|
+
modifiers?: ("default" | "multiline" | "named" | "require" | "side-effect" | "singleline" | "ts-equals" | "type" | "value" | "wildcard")[];
|
|
12538
|
+
selector?: ("side-effect-style" | "tsconfig-path" | "side-effect" | "external" | "internal" | "builtin" | "sibling" | "subpath" | "import" | "parent" | "index" | "style" | "type");
|
|
12539
|
+
})[]];
|
|
12358
12540
|
} | {
|
|
12359
12541
|
fallbackSort?: {
|
|
12360
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
|
|
12542
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "type-import-first");
|
|
12361
12543
|
order?: ("asc" | "desc");
|
|
12544
|
+
sortBy?: ("specifier" | "path");
|
|
12362
12545
|
};
|
|
12363
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
|
|
12546
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "type-import-first");
|
|
12364
12547
|
groupName: string;
|
|
12365
|
-
newlinesInside?: number;
|
|
12548
|
+
newlinesInside?: ("ignore" | number);
|
|
12366
12549
|
order?: ("asc" | "desc");
|
|
12550
|
+
sortBy?: ("specifier" | "path");
|
|
12367
12551
|
elementNamePattern?: (({
|
|
12368
12552
|
pattern: string;
|
|
12369
12553
|
flags?: string;
|
|
@@ -12374,14 +12558,21 @@ type PerfectionistSortImports = {
|
|
|
12374
12558
|
modifiers?: ("default" | "multiline" | "named" | "require" | "side-effect" | "singleline" | "ts-equals" | "type" | "value" | "wildcard")[];
|
|
12375
12559
|
selector?: ("side-effect-style" | "tsconfig-path" | "side-effect" | "external" | "internal" | "builtin" | "sibling" | "subpath" | "import" | "parent" | "index" | "style" | "type");
|
|
12376
12560
|
})[];
|
|
12561
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
12377
12562
|
groups?: (string | [string, ...(string)[]] | {
|
|
12378
12563
|
newlinesBetween: ("ignore" | number);
|
|
12379
12564
|
} | {
|
|
12380
12565
|
group: (string | [string, ...(string)[]]);
|
|
12566
|
+
fallbackSort?: {
|
|
12567
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "type-import-first");
|
|
12568
|
+
order?: ("asc" | "desc");
|
|
12569
|
+
sortBy?: ("specifier" | "path");
|
|
12570
|
+
};
|
|
12381
12571
|
commentAbove?: string;
|
|
12382
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
|
|
12383
|
-
newlinesInside?: number;
|
|
12572
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "type-import-first");
|
|
12573
|
+
newlinesInside?: ("ignore" | number);
|
|
12384
12574
|
order?: ("asc" | "desc");
|
|
12575
|
+
sortBy?: ("specifier" | "path");
|
|
12385
12576
|
})[];
|
|
12386
12577
|
newlinesBetween?: ("ignore" | number);
|
|
12387
12578
|
tsconfig?: {
|
|
@@ -12425,27 +12616,29 @@ type PerfectionistSortImports = {
|
|
|
12425
12616
|
// ----- perfectionist/sort-interfaces -----
|
|
12426
12617
|
type PerfectionistSortInterfaces = {
|
|
12427
12618
|
fallbackSort?: {
|
|
12428
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12619
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12429
12620
|
order?: ("asc" | "desc");
|
|
12430
12621
|
sortBy?: ("name" | "value");
|
|
12431
12622
|
};
|
|
12432
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12623
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12433
12624
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
12434
12625
|
ignoreCase?: boolean;
|
|
12435
12626
|
alphabet?: string;
|
|
12436
12627
|
locales?: (string | string[]);
|
|
12437
12628
|
order?: ("asc" | "desc");
|
|
12629
|
+
sortBy?: ("name" | "value");
|
|
12438
12630
|
customGroups?: ({
|
|
12439
12631
|
fallbackSort?: {
|
|
12440
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12632
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12441
12633
|
order?: ("asc" | "desc");
|
|
12442
12634
|
sortBy?: ("name" | "value");
|
|
12443
12635
|
};
|
|
12444
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12636
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12445
12637
|
groupName: string;
|
|
12446
|
-
newlinesInside?: number;
|
|
12638
|
+
newlinesInside?: ("ignore" | number);
|
|
12447
12639
|
order?: ("asc" | "desc");
|
|
12448
|
-
|
|
12640
|
+
sortBy?: ("name" | "value");
|
|
12641
|
+
anyOf: [{
|
|
12449
12642
|
elementNamePattern?: (({
|
|
12450
12643
|
pattern: string;
|
|
12451
12644
|
flags?: string;
|
|
@@ -12462,18 +12655,35 @@ type PerfectionistSortInterfaces = {
|
|
|
12462
12655
|
pattern: string;
|
|
12463
12656
|
flags?: string;
|
|
12464
12657
|
} | string));
|
|
12465
|
-
|
|
12466
|
-
|
|
12658
|
+
}, ...({
|
|
12659
|
+
elementNamePattern?: (({
|
|
12660
|
+
pattern: string;
|
|
12661
|
+
flags?: string;
|
|
12662
|
+
} | string)[] | ({
|
|
12663
|
+
pattern: string;
|
|
12664
|
+
flags?: string;
|
|
12665
|
+
} | string));
|
|
12666
|
+
modifiers?: ("optional" | "required" | "multiline")[];
|
|
12667
|
+
selector?: ("index-signature" | "member" | "method" | "property");
|
|
12668
|
+
elementValuePattern?: (({
|
|
12669
|
+
pattern: string;
|
|
12670
|
+
flags?: string;
|
|
12671
|
+
} | string)[] | ({
|
|
12672
|
+
pattern: string;
|
|
12673
|
+
flags?: string;
|
|
12674
|
+
} | string));
|
|
12675
|
+
})[]];
|
|
12467
12676
|
} | {
|
|
12468
12677
|
fallbackSort?: {
|
|
12469
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12678
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12470
12679
|
order?: ("asc" | "desc");
|
|
12471
12680
|
sortBy?: ("name" | "value");
|
|
12472
12681
|
};
|
|
12473
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12682
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12474
12683
|
groupName: string;
|
|
12475
|
-
newlinesInside?: number;
|
|
12684
|
+
newlinesInside?: ("ignore" | number);
|
|
12476
12685
|
order?: ("asc" | "desc");
|
|
12686
|
+
sortBy?: ("name" | "value");
|
|
12477
12687
|
elementNamePattern?: (({
|
|
12478
12688
|
pattern: string;
|
|
12479
12689
|
flags?: string;
|
|
@@ -12490,16 +12700,22 @@ type PerfectionistSortInterfaces = {
|
|
|
12490
12700
|
pattern: string;
|
|
12491
12701
|
flags?: string;
|
|
12492
12702
|
} | string));
|
|
12493
|
-
sortBy?: ("name" | "value");
|
|
12494
12703
|
})[];
|
|
12704
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
12495
12705
|
groups?: (string | [string, ...(string)[]] | {
|
|
12496
12706
|
newlinesBetween: ("ignore" | number);
|
|
12497
12707
|
} | {
|
|
12498
12708
|
group: (string | [string, ...(string)[]]);
|
|
12709
|
+
fallbackSort?: {
|
|
12710
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12711
|
+
order?: ("asc" | "desc");
|
|
12712
|
+
sortBy?: ("name" | "value");
|
|
12713
|
+
};
|
|
12499
12714
|
commentAbove?: string;
|
|
12500
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12501
|
-
newlinesInside?: number;
|
|
12715
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12716
|
+
newlinesInside?: ("ignore" | number);
|
|
12502
12717
|
order?: ("asc" | "desc");
|
|
12718
|
+
sortBy?: ("name" | "value");
|
|
12503
12719
|
})[];
|
|
12504
12720
|
newlinesBetween?: ("ignore" | number);
|
|
12505
12721
|
useConfigurationIf?: {
|
|
@@ -12553,15 +12769,14 @@ type PerfectionistSortInterfaces = {
|
|
|
12553
12769
|
} | string)));
|
|
12554
12770
|
});
|
|
12555
12771
|
partitionByNewLine?: boolean;
|
|
12556
|
-
sortBy?: ("name" | "value");
|
|
12557
12772
|
}[];
|
|
12558
12773
|
// ----- perfectionist/sort-intersection-types -----
|
|
12559
12774
|
type PerfectionistSortIntersectionTypes = {
|
|
12560
12775
|
fallbackSort?: {
|
|
12561
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12776
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12562
12777
|
order?: ("asc" | "desc");
|
|
12563
12778
|
};
|
|
12564
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12779
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12565
12780
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
12566
12781
|
ignoreCase?: boolean;
|
|
12567
12782
|
alphabet?: string;
|
|
@@ -12569,14 +12784,23 @@ type PerfectionistSortIntersectionTypes = {
|
|
|
12569
12784
|
order?: ("asc" | "desc");
|
|
12570
12785
|
customGroups?: ({
|
|
12571
12786
|
fallbackSort?: {
|
|
12572
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12787
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12573
12788
|
order?: ("asc" | "desc");
|
|
12574
12789
|
};
|
|
12575
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12790
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12576
12791
|
groupName: string;
|
|
12577
|
-
newlinesInside?: number;
|
|
12792
|
+
newlinesInside?: ("ignore" | number);
|
|
12578
12793
|
order?: ("asc" | "desc");
|
|
12579
|
-
anyOf: {
|
|
12794
|
+
anyOf: [{
|
|
12795
|
+
elementNamePattern?: (({
|
|
12796
|
+
pattern: string;
|
|
12797
|
+
flags?: string;
|
|
12798
|
+
} | string)[] | ({
|
|
12799
|
+
pattern: string;
|
|
12800
|
+
flags?: string;
|
|
12801
|
+
} | string));
|
|
12802
|
+
selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
|
|
12803
|
+
}, ...({
|
|
12580
12804
|
elementNamePattern?: (({
|
|
12581
12805
|
pattern: string;
|
|
12582
12806
|
flags?: string;
|
|
@@ -12585,15 +12809,15 @@ type PerfectionistSortIntersectionTypes = {
|
|
|
12585
12809
|
flags?: string;
|
|
12586
12810
|
} | string));
|
|
12587
12811
|
selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
|
|
12588
|
-
}[];
|
|
12812
|
+
})[]];
|
|
12589
12813
|
} | {
|
|
12590
12814
|
fallbackSort?: {
|
|
12591
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12815
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12592
12816
|
order?: ("asc" | "desc");
|
|
12593
12817
|
};
|
|
12594
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12818
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12595
12819
|
groupName: string;
|
|
12596
|
-
newlinesInside?: number;
|
|
12820
|
+
newlinesInside?: ("ignore" | number);
|
|
12597
12821
|
order?: ("asc" | "desc");
|
|
12598
12822
|
elementNamePattern?: (({
|
|
12599
12823
|
pattern: string;
|
|
@@ -12604,13 +12828,18 @@ type PerfectionistSortIntersectionTypes = {
|
|
|
12604
12828
|
} | string));
|
|
12605
12829
|
selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
|
|
12606
12830
|
})[];
|
|
12831
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
12607
12832
|
groups?: (string | [string, ...(string)[]] | {
|
|
12608
12833
|
newlinesBetween: ("ignore" | number);
|
|
12609
12834
|
} | {
|
|
12610
12835
|
group: (string | [string, ...(string)[]]);
|
|
12836
|
+
fallbackSort?: {
|
|
12837
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12838
|
+
order?: ("asc" | "desc");
|
|
12839
|
+
};
|
|
12611
12840
|
commentAbove?: string;
|
|
12612
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12613
|
-
newlinesInside?: number;
|
|
12841
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12842
|
+
newlinesInside?: ("ignore" | number);
|
|
12614
12843
|
order?: ("asc" | "desc");
|
|
12615
12844
|
})[];
|
|
12616
12845
|
newlinesBetween?: ("ignore" | number);
|
|
@@ -12641,10 +12870,10 @@ type PerfectionistSortIntersectionTypes = {
|
|
|
12641
12870
|
// ----- perfectionist/sort-jsx-props -----
|
|
12642
12871
|
type PerfectionistSortJsxProps = {
|
|
12643
12872
|
fallbackSort?: {
|
|
12644
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12873
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12645
12874
|
order?: ("asc" | "desc");
|
|
12646
12875
|
};
|
|
12647
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12876
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12648
12877
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
12649
12878
|
ignoreCase?: boolean;
|
|
12650
12879
|
alphabet?: string;
|
|
@@ -12652,14 +12881,14 @@ type PerfectionistSortJsxProps = {
|
|
|
12652
12881
|
order?: ("asc" | "desc");
|
|
12653
12882
|
customGroups?: ({
|
|
12654
12883
|
fallbackSort?: {
|
|
12655
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12884
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12656
12885
|
order?: ("asc" | "desc");
|
|
12657
12886
|
};
|
|
12658
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12887
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12659
12888
|
groupName: string;
|
|
12660
|
-
newlinesInside?: number;
|
|
12889
|
+
newlinesInside?: ("ignore" | number);
|
|
12661
12890
|
order?: ("asc" | "desc");
|
|
12662
|
-
anyOf: {
|
|
12891
|
+
anyOf: [{
|
|
12663
12892
|
elementNamePattern?: (({
|
|
12664
12893
|
pattern: string;
|
|
12665
12894
|
flags?: string;
|
|
@@ -12676,15 +12905,32 @@ type PerfectionistSortJsxProps = {
|
|
|
12676
12905
|
pattern: string;
|
|
12677
12906
|
flags?: string;
|
|
12678
12907
|
} | string));
|
|
12679
|
-
}
|
|
12908
|
+
}, ...({
|
|
12909
|
+
elementNamePattern?: (({
|
|
12910
|
+
pattern: string;
|
|
12911
|
+
flags?: string;
|
|
12912
|
+
} | string)[] | ({
|
|
12913
|
+
pattern: string;
|
|
12914
|
+
flags?: string;
|
|
12915
|
+
} | string));
|
|
12916
|
+
modifiers?: ("shorthand" | "multiline")[];
|
|
12917
|
+
selector?: "prop";
|
|
12918
|
+
elementValuePattern?: (({
|
|
12919
|
+
pattern: string;
|
|
12920
|
+
flags?: string;
|
|
12921
|
+
} | string)[] | ({
|
|
12922
|
+
pattern: string;
|
|
12923
|
+
flags?: string;
|
|
12924
|
+
} | string));
|
|
12925
|
+
})[]];
|
|
12680
12926
|
} | {
|
|
12681
12927
|
fallbackSort?: {
|
|
12682
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12928
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12683
12929
|
order?: ("asc" | "desc");
|
|
12684
12930
|
};
|
|
12685
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12931
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12686
12932
|
groupName: string;
|
|
12687
|
-
newlinesInside?: number;
|
|
12933
|
+
newlinesInside?: ("ignore" | number);
|
|
12688
12934
|
order?: ("asc" | "desc");
|
|
12689
12935
|
elementNamePattern?: (({
|
|
12690
12936
|
pattern: string;
|
|
@@ -12703,13 +12949,18 @@ type PerfectionistSortJsxProps = {
|
|
|
12703
12949
|
flags?: string;
|
|
12704
12950
|
} | string));
|
|
12705
12951
|
})[];
|
|
12952
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
12706
12953
|
groups?: (string | [string, ...(string)[]] | {
|
|
12707
12954
|
newlinesBetween: ("ignore" | number);
|
|
12708
12955
|
} | {
|
|
12709
12956
|
group: (string | [string, ...(string)[]]);
|
|
12957
|
+
fallbackSort?: {
|
|
12958
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12959
|
+
order?: ("asc" | "desc");
|
|
12960
|
+
};
|
|
12710
12961
|
commentAbove?: string;
|
|
12711
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12712
|
-
newlinesInside?: number;
|
|
12962
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12963
|
+
newlinesInside?: ("ignore" | number);
|
|
12713
12964
|
order?: ("asc" | "desc");
|
|
12714
12965
|
})[];
|
|
12715
12966
|
newlinesBetween?: ("ignore" | number);
|
|
@@ -12734,10 +12985,10 @@ type PerfectionistSortJsxProps = {
|
|
|
12734
12985
|
// ----- perfectionist/sort-maps -----
|
|
12735
12986
|
type PerfectionistSortMaps = {
|
|
12736
12987
|
fallbackSort?: {
|
|
12737
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12988
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12738
12989
|
order?: ("asc" | "desc");
|
|
12739
12990
|
};
|
|
12740
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12991
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12741
12992
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
12742
12993
|
ignoreCase?: boolean;
|
|
12743
12994
|
alphabet?: string;
|
|
@@ -12745,14 +12996,14 @@ type PerfectionistSortMaps = {
|
|
|
12745
12996
|
order?: ("asc" | "desc");
|
|
12746
12997
|
customGroups?: ({
|
|
12747
12998
|
fallbackSort?: {
|
|
12748
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12999
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12749
13000
|
order?: ("asc" | "desc");
|
|
12750
13001
|
};
|
|
12751
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13002
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12752
13003
|
groupName: string;
|
|
12753
|
-
newlinesInside?: number;
|
|
13004
|
+
newlinesInside?: ("ignore" | number);
|
|
12754
13005
|
order?: ("asc" | "desc");
|
|
12755
|
-
anyOf: {
|
|
13006
|
+
anyOf: [{
|
|
12756
13007
|
elementNamePattern?: (({
|
|
12757
13008
|
pattern: string;
|
|
12758
13009
|
flags?: string;
|
|
@@ -12760,15 +13011,23 @@ type PerfectionistSortMaps = {
|
|
|
12760
13011
|
pattern: string;
|
|
12761
13012
|
flags?: string;
|
|
12762
13013
|
} | string));
|
|
12763
|
-
}
|
|
13014
|
+
}, ...({
|
|
13015
|
+
elementNamePattern?: (({
|
|
13016
|
+
pattern: string;
|
|
13017
|
+
flags?: string;
|
|
13018
|
+
} | string)[] | ({
|
|
13019
|
+
pattern: string;
|
|
13020
|
+
flags?: string;
|
|
13021
|
+
} | string));
|
|
13022
|
+
})[]];
|
|
12764
13023
|
} | {
|
|
12765
13024
|
fallbackSort?: {
|
|
12766
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13025
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12767
13026
|
order?: ("asc" | "desc");
|
|
12768
13027
|
};
|
|
12769
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13028
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12770
13029
|
groupName: string;
|
|
12771
|
-
newlinesInside?: number;
|
|
13030
|
+
newlinesInside?: ("ignore" | number);
|
|
12772
13031
|
order?: ("asc" | "desc");
|
|
12773
13032
|
elementNamePattern?: (({
|
|
12774
13033
|
pattern: string;
|
|
@@ -12778,13 +13037,18 @@ type PerfectionistSortMaps = {
|
|
|
12778
13037
|
flags?: string;
|
|
12779
13038
|
} | string));
|
|
12780
13039
|
})[];
|
|
13040
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
12781
13041
|
groups?: (string | [string, ...(string)[]] | {
|
|
12782
13042
|
newlinesBetween: ("ignore" | number);
|
|
12783
13043
|
} | {
|
|
12784
13044
|
group: (string | [string, ...(string)[]]);
|
|
13045
|
+
fallbackSort?: {
|
|
13046
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13047
|
+
order?: ("asc" | "desc");
|
|
13048
|
+
};
|
|
12785
13049
|
commentAbove?: string;
|
|
12786
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12787
|
-
newlinesInside?: number;
|
|
13050
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13051
|
+
newlinesInside?: ("ignore" | number);
|
|
12788
13052
|
order?: ("asc" | "desc");
|
|
12789
13053
|
})[];
|
|
12790
13054
|
newlinesBetween?: ("ignore" | number);
|
|
@@ -12824,10 +13088,10 @@ type PerfectionistSortMaps = {
|
|
|
12824
13088
|
// ----- perfectionist/sort-modules -----
|
|
12825
13089
|
type PerfectionistSortModules = [] | [{
|
|
12826
13090
|
fallbackSort?: {
|
|
12827
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13091
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "usage");
|
|
12828
13092
|
order?: ("asc" | "desc");
|
|
12829
13093
|
};
|
|
12830
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13094
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "usage");
|
|
12831
13095
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
12832
13096
|
ignoreCase?: boolean;
|
|
12833
13097
|
alphabet?: string;
|
|
@@ -12835,14 +13099,31 @@ type PerfectionistSortModules = [] | [{
|
|
|
12835
13099
|
order?: ("asc" | "desc");
|
|
12836
13100
|
customGroups?: ({
|
|
12837
13101
|
fallbackSort?: {
|
|
12838
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13102
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "usage");
|
|
12839
13103
|
order?: ("asc" | "desc");
|
|
12840
13104
|
};
|
|
12841
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13105
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "usage");
|
|
12842
13106
|
groupName: string;
|
|
12843
|
-
newlinesInside?: number;
|
|
13107
|
+
newlinesInside?: ("ignore" | number);
|
|
12844
13108
|
order?: ("asc" | "desc");
|
|
12845
|
-
anyOf: {
|
|
13109
|
+
anyOf: [{
|
|
13110
|
+
elementNamePattern?: (({
|
|
13111
|
+
pattern: string;
|
|
13112
|
+
flags?: string;
|
|
13113
|
+
} | string)[] | ({
|
|
13114
|
+
pattern: string;
|
|
13115
|
+
flags?: string;
|
|
13116
|
+
} | string));
|
|
13117
|
+
modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[];
|
|
13118
|
+
selector?: ("enum" | "function" | "interface" | "type" | "class");
|
|
13119
|
+
decoratorNamePattern?: (({
|
|
13120
|
+
pattern: string;
|
|
13121
|
+
flags?: string;
|
|
13122
|
+
} | string)[] | ({
|
|
13123
|
+
pattern: string;
|
|
13124
|
+
flags?: string;
|
|
13125
|
+
} | string));
|
|
13126
|
+
}, ...({
|
|
12846
13127
|
elementNamePattern?: (({
|
|
12847
13128
|
pattern: string;
|
|
12848
13129
|
flags?: string;
|
|
@@ -12859,15 +13140,15 @@ type PerfectionistSortModules = [] | [{
|
|
|
12859
13140
|
pattern: string;
|
|
12860
13141
|
flags?: string;
|
|
12861
13142
|
} | string));
|
|
12862
|
-
}[];
|
|
13143
|
+
})[]];
|
|
12863
13144
|
} | {
|
|
12864
13145
|
fallbackSort?: {
|
|
12865
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13146
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "usage");
|
|
12866
13147
|
order?: ("asc" | "desc");
|
|
12867
13148
|
};
|
|
12868
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13149
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "usage");
|
|
12869
13150
|
groupName: string;
|
|
12870
|
-
newlinesInside?: number;
|
|
13151
|
+
newlinesInside?: ("ignore" | number);
|
|
12871
13152
|
order?: ("asc" | "desc");
|
|
12872
13153
|
elementNamePattern?: (({
|
|
12873
13154
|
pattern: string;
|
|
@@ -12886,13 +13167,18 @@ type PerfectionistSortModules = [] | [{
|
|
|
12886
13167
|
flags?: string;
|
|
12887
13168
|
} | string));
|
|
12888
13169
|
})[];
|
|
13170
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
12889
13171
|
groups?: (string | [string, ...(string)[]] | {
|
|
12890
13172
|
newlinesBetween: ("ignore" | number);
|
|
12891
13173
|
} | {
|
|
12892
13174
|
group: (string | [string, ...(string)[]]);
|
|
13175
|
+
fallbackSort?: {
|
|
13176
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "usage");
|
|
13177
|
+
order?: ("asc" | "desc");
|
|
13178
|
+
};
|
|
12893
13179
|
commentAbove?: string;
|
|
12894
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12895
|
-
newlinesInside?: number;
|
|
13180
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "usage");
|
|
13181
|
+
newlinesInside?: ("ignore" | number);
|
|
12896
13182
|
order?: ("asc" | "desc");
|
|
12897
13183
|
})[];
|
|
12898
13184
|
newlinesBetween?: ("ignore" | number);
|
|
@@ -12923,10 +13209,10 @@ type PerfectionistSortModules = [] | [{
|
|
|
12923
13209
|
// ----- perfectionist/sort-named-exports -----
|
|
12924
13210
|
type PerfectionistSortNamedExports = {
|
|
12925
13211
|
fallbackSort?: {
|
|
12926
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13212
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12927
13213
|
order?: ("asc" | "desc");
|
|
12928
13214
|
};
|
|
12929
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13215
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12930
13216
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
12931
13217
|
ignoreCase?: boolean;
|
|
12932
13218
|
alphabet?: string;
|
|
@@ -12934,14 +13220,14 @@ type PerfectionistSortNamedExports = {
|
|
|
12934
13220
|
order?: ("asc" | "desc");
|
|
12935
13221
|
customGroups?: ({
|
|
12936
13222
|
fallbackSort?: {
|
|
12937
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13223
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12938
13224
|
order?: ("asc" | "desc");
|
|
12939
13225
|
};
|
|
12940
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13226
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12941
13227
|
groupName: string;
|
|
12942
|
-
newlinesInside?: number;
|
|
13228
|
+
newlinesInside?: ("ignore" | number);
|
|
12943
13229
|
order?: ("asc" | "desc");
|
|
12944
|
-
anyOf: {
|
|
13230
|
+
anyOf: [{
|
|
12945
13231
|
elementNamePattern?: (({
|
|
12946
13232
|
pattern: string;
|
|
12947
13233
|
flags?: string;
|
|
@@ -12951,15 +13237,25 @@ type PerfectionistSortNamedExports = {
|
|
|
12951
13237
|
} | string));
|
|
12952
13238
|
modifiers?: ("value" | "type")[];
|
|
12953
13239
|
selector?: "export";
|
|
12954
|
-
}
|
|
13240
|
+
}, ...({
|
|
13241
|
+
elementNamePattern?: (({
|
|
13242
|
+
pattern: string;
|
|
13243
|
+
flags?: string;
|
|
13244
|
+
} | string)[] | ({
|
|
13245
|
+
pattern: string;
|
|
13246
|
+
flags?: string;
|
|
13247
|
+
} | string));
|
|
13248
|
+
modifiers?: ("value" | "type")[];
|
|
13249
|
+
selector?: "export";
|
|
13250
|
+
})[]];
|
|
12955
13251
|
} | {
|
|
12956
13252
|
fallbackSort?: {
|
|
12957
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13253
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12958
13254
|
order?: ("asc" | "desc");
|
|
12959
13255
|
};
|
|
12960
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13256
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12961
13257
|
groupName: string;
|
|
12962
|
-
newlinesInside?: number;
|
|
13258
|
+
newlinesInside?: ("ignore" | number);
|
|
12963
13259
|
order?: ("asc" | "desc");
|
|
12964
13260
|
elementNamePattern?: (({
|
|
12965
13261
|
pattern: string;
|
|
@@ -12971,13 +13267,18 @@ type PerfectionistSortNamedExports = {
|
|
|
12971
13267
|
modifiers?: ("value" | "type")[];
|
|
12972
13268
|
selector?: "export";
|
|
12973
13269
|
})[];
|
|
13270
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
12974
13271
|
groups?: (string | [string, ...(string)[]] | {
|
|
12975
13272
|
newlinesBetween: ("ignore" | number);
|
|
12976
13273
|
} | {
|
|
12977
13274
|
group: (string | [string, ...(string)[]]);
|
|
13275
|
+
fallbackSort?: {
|
|
13276
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13277
|
+
order?: ("asc" | "desc");
|
|
13278
|
+
};
|
|
12978
13279
|
commentAbove?: string;
|
|
12979
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12980
|
-
newlinesInside?: number;
|
|
13280
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13281
|
+
newlinesInside?: ("ignore" | number);
|
|
12981
13282
|
order?: ("asc" | "desc");
|
|
12982
13283
|
})[];
|
|
12983
13284
|
newlinesBetween?: ("ignore" | number);
|
|
@@ -13009,10 +13310,10 @@ type PerfectionistSortNamedExports = {
|
|
|
13009
13310
|
// ----- perfectionist/sort-named-imports -----
|
|
13010
13311
|
type PerfectionistSortNamedImports = {
|
|
13011
13312
|
fallbackSort?: {
|
|
13012
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13313
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13013
13314
|
order?: ("asc" | "desc");
|
|
13014
13315
|
};
|
|
13015
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13316
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13016
13317
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
13017
13318
|
ignoreCase?: boolean;
|
|
13018
13319
|
alphabet?: string;
|
|
@@ -13020,14 +13321,14 @@ type PerfectionistSortNamedImports = {
|
|
|
13020
13321
|
order?: ("asc" | "desc");
|
|
13021
13322
|
customGroups?: ({
|
|
13022
13323
|
fallbackSort?: {
|
|
13023
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13324
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13024
13325
|
order?: ("asc" | "desc");
|
|
13025
13326
|
};
|
|
13026
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13327
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13027
13328
|
groupName: string;
|
|
13028
|
-
newlinesInside?: number;
|
|
13329
|
+
newlinesInside?: ("ignore" | number);
|
|
13029
13330
|
order?: ("asc" | "desc");
|
|
13030
|
-
anyOf: {
|
|
13331
|
+
anyOf: [{
|
|
13031
13332
|
elementNamePattern?: (({
|
|
13032
13333
|
pattern: string;
|
|
13033
13334
|
flags?: string;
|
|
@@ -13037,15 +13338,25 @@ type PerfectionistSortNamedImports = {
|
|
|
13037
13338
|
} | string));
|
|
13038
13339
|
modifiers?: ("value" | "type")[];
|
|
13039
13340
|
selector?: "import";
|
|
13040
|
-
}
|
|
13341
|
+
}, ...({
|
|
13342
|
+
elementNamePattern?: (({
|
|
13343
|
+
pattern: string;
|
|
13344
|
+
flags?: string;
|
|
13345
|
+
} | string)[] | ({
|
|
13346
|
+
pattern: string;
|
|
13347
|
+
flags?: string;
|
|
13348
|
+
} | string));
|
|
13349
|
+
modifiers?: ("value" | "type")[];
|
|
13350
|
+
selector?: "import";
|
|
13351
|
+
})[]];
|
|
13041
13352
|
} | {
|
|
13042
13353
|
fallbackSort?: {
|
|
13043
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13354
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13044
13355
|
order?: ("asc" | "desc");
|
|
13045
13356
|
};
|
|
13046
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13357
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13047
13358
|
groupName: string;
|
|
13048
|
-
newlinesInside?: number;
|
|
13359
|
+
newlinesInside?: ("ignore" | number);
|
|
13049
13360
|
order?: ("asc" | "desc");
|
|
13050
13361
|
elementNamePattern?: (({
|
|
13051
13362
|
pattern: string;
|
|
@@ -13057,13 +13368,18 @@ type PerfectionistSortNamedImports = {
|
|
|
13057
13368
|
modifiers?: ("value" | "type")[];
|
|
13058
13369
|
selector?: "import";
|
|
13059
13370
|
})[];
|
|
13371
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
13060
13372
|
groups?: (string | [string, ...(string)[]] | {
|
|
13061
13373
|
newlinesBetween: ("ignore" | number);
|
|
13062
13374
|
} | {
|
|
13063
13375
|
group: (string | [string, ...(string)[]]);
|
|
13376
|
+
fallbackSort?: {
|
|
13377
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13378
|
+
order?: ("asc" | "desc");
|
|
13379
|
+
};
|
|
13064
13380
|
commentAbove?: string;
|
|
13065
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13066
|
-
newlinesInside?: number;
|
|
13381
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13382
|
+
newlinesInside?: ("ignore" | number);
|
|
13067
13383
|
order?: ("asc" | "desc");
|
|
13068
13384
|
})[];
|
|
13069
13385
|
newlinesBetween?: ("ignore" | number);
|
|
@@ -13095,27 +13411,29 @@ type PerfectionistSortNamedImports = {
|
|
|
13095
13411
|
// ----- perfectionist/sort-object-types -----
|
|
13096
13412
|
type PerfectionistSortObjectTypes = {
|
|
13097
13413
|
fallbackSort?: {
|
|
13098
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13414
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13099
13415
|
order?: ("asc" | "desc");
|
|
13100
13416
|
sortBy?: ("name" | "value");
|
|
13101
13417
|
};
|
|
13102
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13418
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13103
13419
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
13104
13420
|
ignoreCase?: boolean;
|
|
13105
13421
|
alphabet?: string;
|
|
13106
13422
|
locales?: (string | string[]);
|
|
13107
13423
|
order?: ("asc" | "desc");
|
|
13424
|
+
sortBy?: ("name" | "value");
|
|
13108
13425
|
customGroups?: ({
|
|
13109
13426
|
fallbackSort?: {
|
|
13110
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13427
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13111
13428
|
order?: ("asc" | "desc");
|
|
13112
13429
|
sortBy?: ("name" | "value");
|
|
13113
13430
|
};
|
|
13114
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13431
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13115
13432
|
groupName: string;
|
|
13116
|
-
newlinesInside?: number;
|
|
13433
|
+
newlinesInside?: ("ignore" | number);
|
|
13117
13434
|
order?: ("asc" | "desc");
|
|
13118
|
-
|
|
13435
|
+
sortBy?: ("name" | "value");
|
|
13436
|
+
anyOf: [{
|
|
13119
13437
|
elementNamePattern?: (({
|
|
13120
13438
|
pattern: string;
|
|
13121
13439
|
flags?: string;
|
|
@@ -13132,18 +13450,35 @@ type PerfectionistSortObjectTypes = {
|
|
|
13132
13450
|
pattern: string;
|
|
13133
13451
|
flags?: string;
|
|
13134
13452
|
} | string));
|
|
13135
|
-
|
|
13136
|
-
|
|
13453
|
+
}, ...({
|
|
13454
|
+
elementNamePattern?: (({
|
|
13455
|
+
pattern: string;
|
|
13456
|
+
flags?: string;
|
|
13457
|
+
} | string)[] | ({
|
|
13458
|
+
pattern: string;
|
|
13459
|
+
flags?: string;
|
|
13460
|
+
} | string));
|
|
13461
|
+
modifiers?: ("optional" | "required" | "multiline")[];
|
|
13462
|
+
selector?: ("index-signature" | "member" | "method" | "property");
|
|
13463
|
+
elementValuePattern?: (({
|
|
13464
|
+
pattern: string;
|
|
13465
|
+
flags?: string;
|
|
13466
|
+
} | string)[] | ({
|
|
13467
|
+
pattern: string;
|
|
13468
|
+
flags?: string;
|
|
13469
|
+
} | string));
|
|
13470
|
+
})[]];
|
|
13137
13471
|
} | {
|
|
13138
13472
|
fallbackSort?: {
|
|
13139
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13473
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13140
13474
|
order?: ("asc" | "desc");
|
|
13141
13475
|
sortBy?: ("name" | "value");
|
|
13142
13476
|
};
|
|
13143
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13477
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13144
13478
|
groupName: string;
|
|
13145
|
-
newlinesInside?: number;
|
|
13479
|
+
newlinesInside?: ("ignore" | number);
|
|
13146
13480
|
order?: ("asc" | "desc");
|
|
13481
|
+
sortBy?: ("name" | "value");
|
|
13147
13482
|
elementNamePattern?: (({
|
|
13148
13483
|
pattern: string;
|
|
13149
13484
|
flags?: string;
|
|
@@ -13160,16 +13495,22 @@ type PerfectionistSortObjectTypes = {
|
|
|
13160
13495
|
pattern: string;
|
|
13161
13496
|
flags?: string;
|
|
13162
13497
|
} | string));
|
|
13163
|
-
sortBy?: ("name" | "value");
|
|
13164
13498
|
})[];
|
|
13499
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
13165
13500
|
groups?: (string | [string, ...(string)[]] | {
|
|
13166
13501
|
newlinesBetween: ("ignore" | number);
|
|
13167
13502
|
} | {
|
|
13168
13503
|
group: (string | [string, ...(string)[]]);
|
|
13504
|
+
fallbackSort?: {
|
|
13505
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13506
|
+
order?: ("asc" | "desc");
|
|
13507
|
+
sortBy?: ("name" | "value");
|
|
13508
|
+
};
|
|
13169
13509
|
commentAbove?: string;
|
|
13170
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13171
|
-
newlinesInside?: number;
|
|
13510
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13511
|
+
newlinesInside?: ("ignore" | number);
|
|
13172
13512
|
order?: ("asc" | "desc");
|
|
13513
|
+
sortBy?: ("name" | "value");
|
|
13173
13514
|
})[];
|
|
13174
13515
|
newlinesBetween?: ("ignore" | number);
|
|
13175
13516
|
useConfigurationIf?: {
|
|
@@ -13223,15 +13564,14 @@ type PerfectionistSortObjectTypes = {
|
|
|
13223
13564
|
} | string)));
|
|
13224
13565
|
});
|
|
13225
13566
|
partitionByNewLine?: boolean;
|
|
13226
|
-
sortBy?: ("name" | "value");
|
|
13227
13567
|
}[];
|
|
13228
13568
|
// ----- perfectionist/sort-objects -----
|
|
13229
13569
|
type PerfectionistSortObjects = {
|
|
13230
13570
|
fallbackSort?: {
|
|
13231
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13571
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13232
13572
|
order?: ("asc" | "desc");
|
|
13233
13573
|
};
|
|
13234
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13574
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13235
13575
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
13236
13576
|
ignoreCase?: boolean;
|
|
13237
13577
|
alphabet?: string;
|
|
@@ -13239,14 +13579,14 @@ type PerfectionistSortObjects = {
|
|
|
13239
13579
|
order?: ("asc" | "desc");
|
|
13240
13580
|
customGroups?: ({
|
|
13241
13581
|
fallbackSort?: {
|
|
13242
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13582
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13243
13583
|
order?: ("asc" | "desc");
|
|
13244
13584
|
};
|
|
13245
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13585
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13246
13586
|
groupName: string;
|
|
13247
|
-
newlinesInside?: number;
|
|
13587
|
+
newlinesInside?: ("ignore" | number);
|
|
13248
13588
|
order?: ("asc" | "desc");
|
|
13249
|
-
anyOf: {
|
|
13589
|
+
anyOf: [{
|
|
13250
13590
|
elementNamePattern?: (({
|
|
13251
13591
|
pattern: string;
|
|
13252
13592
|
flags?: string;
|
|
@@ -13254,7 +13594,24 @@ type PerfectionistSortObjects = {
|
|
|
13254
13594
|
pattern: string;
|
|
13255
13595
|
flags?: string;
|
|
13256
13596
|
} | string));
|
|
13257
|
-
modifiers?: ("
|
|
13597
|
+
modifiers?: ("multiline")[];
|
|
13598
|
+
selector?: ("member" | "method" | "property");
|
|
13599
|
+
elementValuePattern?: (({
|
|
13600
|
+
pattern: string;
|
|
13601
|
+
flags?: string;
|
|
13602
|
+
} | string)[] | ({
|
|
13603
|
+
pattern: string;
|
|
13604
|
+
flags?: string;
|
|
13605
|
+
} | string));
|
|
13606
|
+
}, ...({
|
|
13607
|
+
elementNamePattern?: (({
|
|
13608
|
+
pattern: string;
|
|
13609
|
+
flags?: string;
|
|
13610
|
+
} | string)[] | ({
|
|
13611
|
+
pattern: string;
|
|
13612
|
+
flags?: string;
|
|
13613
|
+
} | string));
|
|
13614
|
+
modifiers?: ("multiline")[];
|
|
13258
13615
|
selector?: ("member" | "method" | "property");
|
|
13259
13616
|
elementValuePattern?: (({
|
|
13260
13617
|
pattern: string;
|
|
@@ -13263,15 +13620,15 @@ type PerfectionistSortObjects = {
|
|
|
13263
13620
|
pattern: string;
|
|
13264
13621
|
flags?: string;
|
|
13265
13622
|
} | string));
|
|
13266
|
-
}[];
|
|
13623
|
+
})[]];
|
|
13267
13624
|
} | {
|
|
13268
13625
|
fallbackSort?: {
|
|
13269
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13626
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13270
13627
|
order?: ("asc" | "desc");
|
|
13271
13628
|
};
|
|
13272
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13629
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13273
13630
|
groupName: string;
|
|
13274
|
-
newlinesInside?: number;
|
|
13631
|
+
newlinesInside?: ("ignore" | number);
|
|
13275
13632
|
order?: ("asc" | "desc");
|
|
13276
13633
|
elementNamePattern?: (({
|
|
13277
13634
|
pattern: string;
|
|
@@ -13280,7 +13637,7 @@ type PerfectionistSortObjects = {
|
|
|
13280
13637
|
pattern: string;
|
|
13281
13638
|
flags?: string;
|
|
13282
13639
|
} | string));
|
|
13283
|
-
modifiers?: ("
|
|
13640
|
+
modifiers?: ("multiline")[];
|
|
13284
13641
|
selector?: ("member" | "method" | "property");
|
|
13285
13642
|
elementValuePattern?: (({
|
|
13286
13643
|
pattern: string;
|
|
@@ -13290,13 +13647,18 @@ type PerfectionistSortObjects = {
|
|
|
13290
13647
|
flags?: string;
|
|
13291
13648
|
} | string));
|
|
13292
13649
|
})[];
|
|
13650
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
13293
13651
|
groups?: (string | [string, ...(string)[]] | {
|
|
13294
13652
|
newlinesBetween: ("ignore" | number);
|
|
13295
13653
|
} | {
|
|
13296
13654
|
group: (string | [string, ...(string)[]]);
|
|
13655
|
+
fallbackSort?: {
|
|
13656
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13657
|
+
order?: ("asc" | "desc");
|
|
13658
|
+
};
|
|
13297
13659
|
commentAbove?: string;
|
|
13298
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13299
|
-
newlinesInside?: number;
|
|
13660
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13661
|
+
newlinesInside?: ("ignore" | number);
|
|
13300
13662
|
order?: ("asc" | "desc");
|
|
13301
13663
|
})[];
|
|
13302
13664
|
newlinesBetween?: ("ignore" | number);
|
|
@@ -13366,10 +13728,10 @@ type PerfectionistSortObjects = {
|
|
|
13366
13728
|
// ----- perfectionist/sort-sets -----
|
|
13367
13729
|
type PerfectionistSortSets = {
|
|
13368
13730
|
fallbackSort?: {
|
|
13369
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13731
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13370
13732
|
order?: ("asc" | "desc");
|
|
13371
13733
|
};
|
|
13372
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13734
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13373
13735
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
13374
13736
|
ignoreCase?: boolean;
|
|
13375
13737
|
alphabet?: string;
|
|
@@ -13377,14 +13739,14 @@ type PerfectionistSortSets = {
|
|
|
13377
13739
|
order?: ("asc" | "desc");
|
|
13378
13740
|
customGroups?: ({
|
|
13379
13741
|
fallbackSort?: {
|
|
13380
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13742
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13381
13743
|
order?: ("asc" | "desc");
|
|
13382
13744
|
};
|
|
13383
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13745
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13384
13746
|
groupName: string;
|
|
13385
|
-
newlinesInside?: number;
|
|
13747
|
+
newlinesInside?: ("ignore" | number);
|
|
13386
13748
|
order?: ("asc" | "desc");
|
|
13387
|
-
anyOf: {
|
|
13749
|
+
anyOf: [{
|
|
13388
13750
|
elementNamePattern?: (({
|
|
13389
13751
|
pattern: string;
|
|
13390
13752
|
flags?: string;
|
|
@@ -13393,15 +13755,24 @@ type PerfectionistSortSets = {
|
|
|
13393
13755
|
flags?: string;
|
|
13394
13756
|
} | string));
|
|
13395
13757
|
selector?: ("literal" | "spread");
|
|
13396
|
-
}
|
|
13758
|
+
}, ...({
|
|
13759
|
+
elementNamePattern?: (({
|
|
13760
|
+
pattern: string;
|
|
13761
|
+
flags?: string;
|
|
13762
|
+
} | string)[] | ({
|
|
13763
|
+
pattern: string;
|
|
13764
|
+
flags?: string;
|
|
13765
|
+
} | string));
|
|
13766
|
+
selector?: ("literal" | "spread");
|
|
13767
|
+
})[]];
|
|
13397
13768
|
} | {
|
|
13398
13769
|
fallbackSort?: {
|
|
13399
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13770
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13400
13771
|
order?: ("asc" | "desc");
|
|
13401
13772
|
};
|
|
13402
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13773
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13403
13774
|
groupName: string;
|
|
13404
|
-
newlinesInside?: number;
|
|
13775
|
+
newlinesInside?: ("ignore" | number);
|
|
13405
13776
|
order?: ("asc" | "desc");
|
|
13406
13777
|
elementNamePattern?: (({
|
|
13407
13778
|
pattern: string;
|
|
@@ -13412,13 +13783,18 @@ type PerfectionistSortSets = {
|
|
|
13412
13783
|
} | string));
|
|
13413
13784
|
selector?: ("literal" | "spread");
|
|
13414
13785
|
})[];
|
|
13786
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
13415
13787
|
groups?: (string | [string, ...(string)[]] | {
|
|
13416
13788
|
newlinesBetween: ("ignore" | number);
|
|
13417
13789
|
} | {
|
|
13418
13790
|
group: (string | [string, ...(string)[]]);
|
|
13791
|
+
fallbackSort?: {
|
|
13792
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13793
|
+
order?: ("asc" | "desc");
|
|
13794
|
+
};
|
|
13419
13795
|
commentAbove?: string;
|
|
13420
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13421
|
-
newlinesInside?: number;
|
|
13796
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13797
|
+
newlinesInside?: ("ignore" | number);
|
|
13422
13798
|
order?: ("asc" | "desc");
|
|
13423
13799
|
})[];
|
|
13424
13800
|
newlinesBetween?: ("ignore" | number);
|
|
@@ -13458,10 +13834,10 @@ type PerfectionistSortSets = {
|
|
|
13458
13834
|
// ----- perfectionist/sort-switch-case -----
|
|
13459
13835
|
type PerfectionistSortSwitchCase = [] | [{
|
|
13460
13836
|
fallbackSort?: {
|
|
13461
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13837
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13462
13838
|
order?: ("asc" | "desc");
|
|
13463
13839
|
};
|
|
13464
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13840
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13465
13841
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
13466
13842
|
ignoreCase?: boolean;
|
|
13467
13843
|
alphabet?: string;
|
|
@@ -13471,10 +13847,10 @@ type PerfectionistSortSwitchCase = [] | [{
|
|
|
13471
13847
|
// ----- perfectionist/sort-union-types -----
|
|
13472
13848
|
type PerfectionistSortUnionTypes = {
|
|
13473
13849
|
fallbackSort?: {
|
|
13474
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13850
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13475
13851
|
order?: ("asc" | "desc");
|
|
13476
13852
|
};
|
|
13477
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13853
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13478
13854
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
13479
13855
|
ignoreCase?: boolean;
|
|
13480
13856
|
alphabet?: string;
|
|
@@ -13482,14 +13858,14 @@ type PerfectionistSortUnionTypes = {
|
|
|
13482
13858
|
order?: ("asc" | "desc");
|
|
13483
13859
|
customGroups?: ({
|
|
13484
13860
|
fallbackSort?: {
|
|
13485
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13861
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13486
13862
|
order?: ("asc" | "desc");
|
|
13487
13863
|
};
|
|
13488
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13864
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13489
13865
|
groupName: string;
|
|
13490
|
-
newlinesInside?: number;
|
|
13866
|
+
newlinesInside?: ("ignore" | number);
|
|
13491
13867
|
order?: ("asc" | "desc");
|
|
13492
|
-
anyOf: {
|
|
13868
|
+
anyOf: [{
|
|
13493
13869
|
elementNamePattern?: (({
|
|
13494
13870
|
pattern: string;
|
|
13495
13871
|
flags?: string;
|
|
@@ -13498,15 +13874,24 @@ type PerfectionistSortUnionTypes = {
|
|
|
13498
13874
|
flags?: string;
|
|
13499
13875
|
} | string));
|
|
13500
13876
|
selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
|
|
13501
|
-
}
|
|
13877
|
+
}, ...({
|
|
13878
|
+
elementNamePattern?: (({
|
|
13879
|
+
pattern: string;
|
|
13880
|
+
flags?: string;
|
|
13881
|
+
} | string)[] | ({
|
|
13882
|
+
pattern: string;
|
|
13883
|
+
flags?: string;
|
|
13884
|
+
} | string));
|
|
13885
|
+
selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
|
|
13886
|
+
})[]];
|
|
13502
13887
|
} | {
|
|
13503
13888
|
fallbackSort?: {
|
|
13504
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13889
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13505
13890
|
order?: ("asc" | "desc");
|
|
13506
13891
|
};
|
|
13507
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13892
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13508
13893
|
groupName: string;
|
|
13509
|
-
newlinesInside?: number;
|
|
13894
|
+
newlinesInside?: ("ignore" | number);
|
|
13510
13895
|
order?: ("asc" | "desc");
|
|
13511
13896
|
elementNamePattern?: (({
|
|
13512
13897
|
pattern: string;
|
|
@@ -13517,13 +13902,18 @@ type PerfectionistSortUnionTypes = {
|
|
|
13517
13902
|
} | string));
|
|
13518
13903
|
selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
|
|
13519
13904
|
})[];
|
|
13905
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
13520
13906
|
groups?: (string | [string, ...(string)[]] | {
|
|
13521
13907
|
newlinesBetween: ("ignore" | number);
|
|
13522
13908
|
} | {
|
|
13523
13909
|
group: (string | [string, ...(string)[]]);
|
|
13910
|
+
fallbackSort?: {
|
|
13911
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13912
|
+
order?: ("asc" | "desc");
|
|
13913
|
+
};
|
|
13524
13914
|
commentAbove?: string;
|
|
13525
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13526
|
-
newlinesInside?: number;
|
|
13915
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13916
|
+
newlinesInside?: ("ignore" | number);
|
|
13527
13917
|
order?: ("asc" | "desc");
|
|
13528
13918
|
})[];
|
|
13529
13919
|
newlinesBetween?: ("ignore" | number);
|
|
@@ -13554,10 +13944,10 @@ type PerfectionistSortUnionTypes = {
|
|
|
13554
13944
|
// ----- perfectionist/sort-variable-declarations -----
|
|
13555
13945
|
type PerfectionistSortVariableDeclarations = [] | [{
|
|
13556
13946
|
fallbackSort?: {
|
|
13557
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13947
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13558
13948
|
order?: ("asc" | "desc");
|
|
13559
13949
|
};
|
|
13560
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13950
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13561
13951
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
13562
13952
|
ignoreCase?: boolean;
|
|
13563
13953
|
alphabet?: string;
|
|
@@ -13565,14 +13955,14 @@ type PerfectionistSortVariableDeclarations = [] | [{
|
|
|
13565
13955
|
order?: ("asc" | "desc");
|
|
13566
13956
|
customGroups?: ({
|
|
13567
13957
|
fallbackSort?: {
|
|
13568
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13958
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13569
13959
|
order?: ("asc" | "desc");
|
|
13570
13960
|
};
|
|
13571
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13961
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13572
13962
|
groupName: string;
|
|
13573
|
-
newlinesInside?: number;
|
|
13963
|
+
newlinesInside?: ("ignore" | number);
|
|
13574
13964
|
order?: ("asc" | "desc");
|
|
13575
|
-
anyOf: {
|
|
13965
|
+
anyOf: [{
|
|
13576
13966
|
elementNamePattern?: (({
|
|
13577
13967
|
pattern: string;
|
|
13578
13968
|
flags?: string;
|
|
@@ -13581,15 +13971,24 @@ type PerfectionistSortVariableDeclarations = [] | [{
|
|
|
13581
13971
|
flags?: string;
|
|
13582
13972
|
} | string));
|
|
13583
13973
|
selector?: ("initialized" | "uninitialized");
|
|
13584
|
-
}
|
|
13974
|
+
}, ...({
|
|
13975
|
+
elementNamePattern?: (({
|
|
13976
|
+
pattern: string;
|
|
13977
|
+
flags?: string;
|
|
13978
|
+
} | string)[] | ({
|
|
13979
|
+
pattern: string;
|
|
13980
|
+
flags?: string;
|
|
13981
|
+
} | string));
|
|
13982
|
+
selector?: ("initialized" | "uninitialized");
|
|
13983
|
+
})[]];
|
|
13585
13984
|
} | {
|
|
13586
13985
|
fallbackSort?: {
|
|
13587
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13986
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13588
13987
|
order?: ("asc" | "desc");
|
|
13589
13988
|
};
|
|
13590
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13989
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13591
13990
|
groupName: string;
|
|
13592
|
-
newlinesInside?: number;
|
|
13991
|
+
newlinesInside?: ("ignore" | number);
|
|
13593
13992
|
order?: ("asc" | "desc");
|
|
13594
13993
|
elementNamePattern?: (({
|
|
13595
13994
|
pattern: string;
|
|
@@ -13600,13 +13999,18 @@ type PerfectionistSortVariableDeclarations = [] | [{
|
|
|
13600
13999
|
} | string));
|
|
13601
14000
|
selector?: ("initialized" | "uninitialized");
|
|
13602
14001
|
})[];
|
|
14002
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
13603
14003
|
groups?: (string | [string, ...(string)[]] | {
|
|
13604
14004
|
newlinesBetween: ("ignore" | number);
|
|
13605
14005
|
} | {
|
|
13606
14006
|
group: (string | [string, ...(string)[]]);
|
|
14007
|
+
fallbackSort?: {
|
|
14008
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
14009
|
+
order?: ("asc" | "desc");
|
|
14010
|
+
};
|
|
13607
14011
|
commentAbove?: string;
|
|
13608
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13609
|
-
newlinesInside?: number;
|
|
14012
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
14013
|
+
newlinesInside?: ("ignore" | number);
|
|
13610
14014
|
order?: ("asc" | "desc");
|
|
13611
14015
|
})[];
|
|
13612
14016
|
newlinesBetween?: ("ignore" | number);
|
|
@@ -13879,6 +14283,11 @@ type ReactNamingConventionFilenameExtension = [] | [(("always" | "as-needed") |
|
|
|
13879
14283
|
extensions?: string[];
|
|
13880
14284
|
ignoreFilesWithoutCode?: boolean;
|
|
13881
14285
|
})];
|
|
14286
|
+
// ----- react-naming-convention/use-state -----
|
|
14287
|
+
type ReactNamingConventionUseState = [] | [{
|
|
14288
|
+
enforceAssignment?: boolean;
|
|
14289
|
+
enforceSetterName?: boolean;
|
|
14290
|
+
}];
|
|
13882
14291
|
// ----- react-refresh/only-export-components -----
|
|
13883
14292
|
type ReactRefreshOnlyExportComponents = [] | [{
|
|
13884
14293
|
allowExportNames?: string[];
|
|
@@ -15382,7 +15791,7 @@ type StyleTypeAnnotationSpacing = [] | [{
|
|
|
15382
15791
|
after?: boolean;
|
|
15383
15792
|
overrides?: {
|
|
15384
15793
|
colon?: _StyleTypeAnnotationSpacing_SpacingConfig;
|
|
15385
|
-
arrow?: _StyleTypeAnnotationSpacing_SpacingConfig;
|
|
15794
|
+
arrow?: ("ignore" | _StyleTypeAnnotationSpacing_SpacingConfig);
|
|
15386
15795
|
variable?: _StyleTypeAnnotationSpacing_SpacingConfig;
|
|
15387
15796
|
parameter?: _StyleTypeAnnotationSpacing_SpacingConfig;
|
|
15388
15797
|
property?: _StyleTypeAnnotationSpacing_SpacingConfig;
|
|
@@ -15643,6 +16052,10 @@ type TestMaxExpects = [] | [{
|
|
|
15643
16052
|
type TestMaxNestedDescribe = [] | [{
|
|
15644
16053
|
max?: number;
|
|
15645
16054
|
}];
|
|
16055
|
+
// ----- test/no-conditional-expect -----
|
|
16056
|
+
type TestNoConditionalExpect = [] | [{
|
|
16057
|
+
expectAssertions?: boolean;
|
|
16058
|
+
}];
|
|
15646
16059
|
// ----- test/no-focused-tests -----
|
|
15647
16060
|
type TestNoFocusedTests = [] | [{
|
|
15648
16061
|
fixable?: boolean;
|
|
@@ -15684,6 +16097,10 @@ type TestPreferExpectAssertions = [] | [{
|
|
|
15684
16097
|
onlyFunctionsWithExpectInLoop?: boolean;
|
|
15685
16098
|
onlyFunctionsWithExpectInCallback?: boolean;
|
|
15686
16099
|
}];
|
|
16100
|
+
// ----- test/prefer-import-in-mock -----
|
|
16101
|
+
type TestPreferImportInMock = [] | [{
|
|
16102
|
+
fixable?: boolean;
|
|
16103
|
+
}];
|
|
15687
16104
|
// ----- test/prefer-lowercase-title -----
|
|
15688
16105
|
type TestPreferLowercaseTitle = [] | [{
|
|
15689
16106
|
ignore?: ("describe" | "test" | "it")[];
|
|
@@ -16561,6 +16978,9 @@ type TsNoUnusedVars = [] | [(("all" | "local") | {
|
|
|
16561
16978
|
caughtErrors?: ("all" | "none");
|
|
16562
16979
|
caughtErrorsIgnorePattern?: string;
|
|
16563
16980
|
destructuredArrayIgnorePattern?: string;
|
|
16981
|
+
enableAutofixRemoval?: {
|
|
16982
|
+
imports?: boolean;
|
|
16983
|
+
};
|
|
16564
16984
|
ignoreClassWithStaticInitBlock?: boolean;
|
|
16565
16985
|
ignoreRestSiblings?: boolean;
|
|
16566
16986
|
ignoreUsingDeclarations?: boolean;
|
|
@@ -16761,6 +17181,10 @@ type TsStrictBooleanExpressions = [] | [{
|
|
|
16761
17181
|
allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean;
|
|
16762
17182
|
allowString?: boolean;
|
|
16763
17183
|
}];
|
|
17184
|
+
// ----- ts/strict-void-return -----
|
|
17185
|
+
type TsStrictVoidReturn = [] | [{
|
|
17186
|
+
allowReturnAny?: boolean;
|
|
17187
|
+
}];
|
|
16764
17188
|
// ----- ts/switch-exhaustiveness-check -----
|
|
16765
17189
|
type TsSwitchExhaustivenessCheck = [] | [{
|
|
16766
17190
|
allowDefaultCaseForExhaustiveSwitch?: boolean;
|
|
@@ -17035,6 +17459,9 @@ type UnusedImportsNoUnusedImports = [] | [(("all" | "local") | {
|
|
|
17035
17459
|
caughtErrors?: ("all" | "none");
|
|
17036
17460
|
caughtErrorsIgnorePattern?: string;
|
|
17037
17461
|
destructuredArrayIgnorePattern?: string;
|
|
17462
|
+
enableAutofixRemoval?: {
|
|
17463
|
+
imports?: boolean;
|
|
17464
|
+
};
|
|
17038
17465
|
ignoreClassWithStaticInitBlock?: boolean;
|
|
17039
17466
|
ignoreRestSiblings?: boolean;
|
|
17040
17467
|
ignoreUsingDeclarations?: boolean;
|
|
@@ -17049,6 +17476,9 @@ type UnusedImportsNoUnusedVars = [] | [(("all" | "local") | {
|
|
|
17049
17476
|
caughtErrors?: ("all" | "none");
|
|
17050
17477
|
caughtErrorsIgnorePattern?: string;
|
|
17051
17478
|
destructuredArrayIgnorePattern?: string;
|
|
17479
|
+
enableAutofixRemoval?: {
|
|
17480
|
+
imports?: boolean;
|
|
17481
|
+
};
|
|
17052
17482
|
ignoreClassWithStaticInitBlock?: boolean;
|
|
17053
17483
|
ignoreRestSiblings?: boolean;
|
|
17054
17484
|
ignoreUsingDeclarations?: boolean;
|
|
@@ -17914,6 +18344,7 @@ type VueNoLoneTemplate = [] | [{
|
|
|
17914
18344
|
// ----- vue/no-multi-spaces -----
|
|
17915
18345
|
type VueNoMultiSpaces = [] | [{
|
|
17916
18346
|
ignoreProperties?: boolean;
|
|
18347
|
+
ignoreEOLComments?: boolean;
|
|
17917
18348
|
}];
|
|
17918
18349
|
// ----- vue/no-multiple-template-root -----
|
|
17919
18350
|
type VueNoMultipleTemplateRoot = [] | [{
|
|
@@ -18071,6 +18502,10 @@ type VueNoTemplateTargetBlank = [] | [{
|
|
|
18071
18502
|
type VueNoUndefComponents = [] | [{
|
|
18072
18503
|
ignorePatterns?: unknown[];
|
|
18073
18504
|
}];
|
|
18505
|
+
// ----- vue/no-undef-directives -----
|
|
18506
|
+
type VueNoUndefDirectives = [] | [{
|
|
18507
|
+
ignore?: string[];
|
|
18508
|
+
}];
|
|
18074
18509
|
// ----- vue/no-undef-properties -----
|
|
18075
18510
|
type VueNoUndefProperties = [] | [{
|
|
18076
18511
|
ignores?: string[];
|