@luxass/eslint-config 4.15.0 → 4.17.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.cts CHANGED
@@ -1984,31 +1984,31 @@ interface RuleOptions {
1984
1984
  */
1985
1985
  'logical-assignment-operators'?: Linter.RuleEntry<LogicalAssignmentOperators>
1986
1986
  /**
1987
- * Require languages for fenced code blocks.
1987
+ * Require languages for fenced code blocks
1988
1988
  */
1989
1989
  'markdown/fenced-code-language'?: Linter.RuleEntry<MarkdownFencedCodeLanguage>
1990
1990
  /**
1991
- * Enforce heading levels increment by one.
1991
+ * Enforce heading levels increment by one
1992
1992
  */
1993
1993
  'markdown/heading-increment'?: Linter.RuleEntry<[]>
1994
1994
  /**
1995
- * Disallow duplicate headings in the same document.
1995
+ * Disallow duplicate headings in the same document
1996
1996
  */
1997
1997
  'markdown/no-duplicate-headings'?: Linter.RuleEntry<[]>
1998
1998
  /**
1999
- * Disallow empty links.
1999
+ * Disallow empty links
2000
2000
  */
2001
2001
  'markdown/no-empty-links'?: Linter.RuleEntry<[]>
2002
2002
  /**
2003
- * Disallow HTML tags.
2003
+ * Disallow HTML tags
2004
2004
  */
2005
2005
  'markdown/no-html'?: Linter.RuleEntry<MarkdownNoHtml>
2006
2006
  /**
2007
- * Disallow invalid label references.
2007
+ * Disallow invalid label references
2008
2008
  */
2009
2009
  'markdown/no-invalid-label-refs'?: Linter.RuleEntry<[]>
2010
2010
  /**
2011
- * Disallow missing label references.
2011
+ * Disallow missing label references
2012
2012
  */
2013
2013
  'markdown/no-missing-label-refs'?: Linter.RuleEntry<[]>
2014
2014
  /**
@@ -3373,6 +3373,11 @@ interface RuleOptions {
3373
3373
  * @see https://eslint-react.xyz/docs/rules/dom-no-find-dom-node
3374
3374
  */
3375
3375
  'react-dom/no-find-dom-node'?: Linter.RuleEntry<[]>
3376
+ /**
3377
+ * warns against using `flushSync`
3378
+ * @see https://eslint-react.xyz/docs/rules/dom-no-flush-sync
3379
+ */
3380
+ 'react-dom/no-flush-sync'?: Linter.RuleEntry<[]>
3376
3381
  /**
3377
3382
  * enforce that button component have an explicit 'type' attribute
3378
3383
  * @see https://eslint-react.xyz/docs/rules/dom-no-missing-button-type
@@ -3479,10 +3484,15 @@ interface RuleOptions {
3479
3484
  */
3480
3485
  'react-hooks/rules-of-hooks'?: Linter.RuleEntry<[]>
3481
3486
  /**
3482
- * enforce component naming convention to 'PascalCase' or 'CONSTANT_CASE'
3487
+ * enforce naming convention for components
3483
3488
  * @see https://eslint-react.xyz/docs/rules/naming-convention-component-name
3484
3489
  */
3485
3490
  'react-naming-convention/component-name'?: Linter.RuleEntry<ReactNamingConventionComponentName>
3491
+ /**
3492
+ * enforce context name to be a valid component name with the suffix 'Context'
3493
+ * @see https://eslint-react.xyz/docs/rules/naming-convention-context-name
3494
+ */
3495
+ 'react-naming-convention/context-name'?: Linter.RuleEntry<[]>
3486
3496
  /**
3487
3497
  * enforce naming convention for JSX filenames
3488
3498
  * @see https://eslint-react.xyz/docs/rules/naming-convention-filename
@@ -3494,7 +3504,7 @@ interface RuleOptions {
3494
3504
  */
3495
3505
  'react-naming-convention/filename-extension'?: Linter.RuleEntry<ReactNamingConventionFilenameExtension>
3496
3506
  /**
3497
- * enforce destructuring and symmetric naming of 'useState' hook value and setter variables
3507
+ * enforce destructuring and symmetric naming of 'useState' hook value and setter
3498
3508
  * @see https://eslint-react.xyz/docs/rules/naming-convention-use-state
3499
3509
  */
3500
3510
  'react-naming-convention/use-state'?: Linter.RuleEntry<[]>
@@ -3531,7 +3541,7 @@ interface RuleOptions {
3531
3541
  'react/avoid-shorthand-fragment'?: Linter.RuleEntry<[]>
3532
3542
  /**
3533
3543
  * require a 'ref' parameter to be set when using 'forwardRef'
3534
- * @see https://eslint-react.xyz/docs/rules/ensure-forward-ref-using-ref
3544
+ * @see https://eslint-react.xyz/docs/rules/no-useless-forward-ref
3535
3545
  */
3536
3546
  'react/ensure-forward-ref-using-ref'?: Linter.RuleEntry<[]>
3537
3547
  /**
@@ -3540,7 +3550,7 @@ interface RuleOptions {
3540
3550
  */
3541
3551
  'react/jsx-no-duplicate-props'?: Linter.RuleEntry<[]>
3542
3552
  /**
3543
- * helpes `eslint/no-unused-vars` to correctly mark JSX variables as used.
3553
+ * marks variables used in JSX as used
3544
3554
  * @see https://eslint-react.xyz/docs/rules/use-jsx-vars
3545
3555
  */
3546
3556
  'react/jsx-uses-vars'?: Linter.RuleEntry<[]>
@@ -3550,7 +3560,7 @@ interface RuleOptions {
3550
3560
  */
3551
3561
  'react/no-access-state-in-setstate'?: Linter.RuleEntry<[]>
3552
3562
  /**
3553
- * disallow using Array index as 'key'
3563
+ * disallow using an item's index in the array as its key
3554
3564
  * @see https://eslint-react.xyz/docs/rules/no-array-index-key
3555
3565
  */
3556
3566
  'react/no-array-index-key'?: Linter.RuleEntry<[]>
@@ -3610,22 +3620,22 @@ interface RuleOptions {
3610
3620
  */
3611
3621
  'react/no-complicated-conditional-rendering'?: Linter.RuleEntry<[]>
3612
3622
  /**
3613
- * disallow using 'componentWillMount'
3623
+ * replace usages of 'componentWillMount' with 'UNSAFE_componentWillMount'
3614
3624
  * @see https://eslint-react.xyz/docs/rules/no-component-will-mount
3615
3625
  */
3616
3626
  'react/no-component-will-mount'?: Linter.RuleEntry<[]>
3617
3627
  /**
3618
- * disallow using 'componentWillReceiveProps'
3628
+ * replace usages of 'componentWillReceiveProps' with 'UNSAFE_componentWillReceiveProps'
3619
3629
  * @see https://eslint-react.xyz/docs/rules/no-component-will-receive-props
3620
3630
  */
3621
3631
  'react/no-component-will-receive-props'?: Linter.RuleEntry<[]>
3622
3632
  /**
3623
- * disallow using 'componentWillReceiveProps'
3633
+ * replace usages of 'componentWillUpdate' with 'UNSAFE_componentWillUpdate'
3624
3634
  * @see https://eslint-react.xyz/docs/rules/no-component-will-update
3625
3635
  */
3626
3636
  'react/no-component-will-update'?: Linter.RuleEntry<[]>
3627
3637
  /**
3628
- * disallow the use of '<Context.Provider>'
3638
+ * replace usages of '<Context.Provider>' with '<Context>'
3629
3639
  * @see https://eslint-react.xyz/docs/rules/no-context-provider
3630
3640
  */
3631
3641
  'react/no-context-provider'?: Linter.RuleEntry<[]>
@@ -3655,7 +3665,7 @@ interface RuleOptions {
3655
3665
  */
3656
3666
  'react/no-duplicate-key'?: Linter.RuleEntry<[]>
3657
3667
  /**
3658
- * disallow the use of 'forwardRef'
3668
+ * replace usages of 'forwardRef' with passing 'ref' as a prop
3659
3669
  * @see https://eslint-react.xyz/docs/rules/no-forward-ref
3660
3670
  */
3661
3671
  'react/no-forward-ref'?: Linter.RuleEntry<[]>
@@ -3674,14 +3684,24 @@ interface RuleOptions {
3674
3684
  * @see https://eslint-react.xyz/docs/rules/no-missing-component-display-name
3675
3685
  */
3676
3686
  'react/no-missing-component-display-name'?: Linter.RuleEntry<[]>
3687
+ /**
3688
+ * require 'displayName' for contexts.
3689
+ * @see https://eslint-react.xyz/docs/rules/no-missing-context-display-name
3690
+ */
3691
+ 'react/no-missing-context-display-name'?: Linter.RuleEntry<[]>
3677
3692
  /**
3678
3693
  * require 'key' when rendering list
3679
3694
  * @see https://eslint-react.xyz/docs/rules/no-missing-key
3680
3695
  */
3681
3696
  'react/no-missing-key'?: Linter.RuleEntry<[]>
3682
3697
  /**
3683
- * disallow using unstable nested components
3684
- * @see https://eslint-react.xyz/docs/rules/no-nested-components
3698
+ * prevents nesting component definitions inside other components
3699
+ * @see https://eslint-react.xyz/docs/rules/no-nested-component-definitions
3700
+ */
3701
+ 'react/no-nested-component-definitions'?: Linter.RuleEntry<[]>
3702
+ /**
3703
+ * prevents nesting component definitions inside other components
3704
+ * @see https://eslint-react.xyz/docs/rules/no-nested-component-definitions
3685
3705
  */
3686
3706
  'react/no-nested-components'?: Linter.RuleEntry<[]>
3687
3707
  /**
@@ -3750,7 +3770,17 @@ interface RuleOptions {
3750
3770
  */
3751
3771
  'react/no-unused-state'?: Linter.RuleEntry<[]>
3752
3772
  /**
3753
- * disallow unnecessary fragments
3773
+ * replace usages of 'useContext' with 'use'
3774
+ * @see https://eslint-react.xyz/docs/rules/no-use-context
3775
+ */
3776
+ 'react/no-use-context'?: Linter.RuleEntry<[]>
3777
+ /**
3778
+ * require a 'ref' parameter to be set when using 'forwardRef'
3779
+ * @see https://eslint-react.xyz/docs/rules/no-useless-forward-ref
3780
+ */
3781
+ 'react/no-useless-forward-ref'?: Linter.RuleEntry<[]>
3782
+ /**
3783
+ * disallow useless fragments
3754
3784
  * @see https://eslint-react.xyz/docs/rules/no-useless-fragment
3755
3785
  */
3756
3786
  'react/no-useless-fragment'?: Linter.RuleEntry<ReactNoUselessFragment>
@@ -3770,17 +3800,17 @@ interface RuleOptions {
3770
3800
  */
3771
3801
  'react/prefer-read-only-props'?: Linter.RuleEntry<[]>
3772
3802
  /**
3773
- * enforce using shorthand boolean attributes
3803
+ * enforce the use of shorthand syntax for boolean attributes
3774
3804
  * @see https://eslint-react.xyz/docs/rules/prefer-shorthand-boolean
3775
3805
  */
3776
3806
  'react/prefer-shorthand-boolean'?: Linter.RuleEntry<[]>
3777
3807
  /**
3778
- * enforce using fragment syntax instead of 'Fragment' component
3808
+ * enforce the use of shorthand syntax for fragments
3779
3809
  * @see https://eslint-react.xyz/docs/rules/prefer-shorthand-fragment
3780
3810
  */
3781
3811
  'react/prefer-shorthand-fragment'?: Linter.RuleEntry<[]>
3782
3812
  /**
3783
- * helpes `eslint/no-unused-vars` to correctly mark JSX variables as used.
3813
+ * marks variables used in JSX as used
3784
3814
  * @see https://eslint-react.xyz/docs/rules/use-jsx-vars
3785
3815
  */
3786
3816
  'react/use-jsx-vars'?: Linter.RuleEntry<[]>
@@ -4692,7 +4722,7 @@ interface RuleOptions {
4692
4722
  'style/semi'?: Linter.RuleEntry<StyleSemi>
4693
4723
  /**
4694
4724
  * Enforce consistent spacing before and after semicolons
4695
- * @see https://eslint.style/rules/js/semi-spacing
4725
+ * @see https://eslint.style/rules/ts/semi-spacing
4696
4726
  */
4697
4727
  'style/semi-spacing'?: Linter.RuleEntry<StyleSemiSpacing>
4698
4728
  /**
@@ -5064,6 +5094,11 @@ interface RuleOptions {
5064
5094
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-spy-on.md
5065
5095
  */
5066
5096
  'test/prefer-spy-on'?: Linter.RuleEntry<[]>
5097
+ /**
5098
+ * enforce using `toBe(true)` and `toBe(false)` over matchers that coerce types to boolean
5099
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-strict-boolean-matchers.md
5100
+ */
5101
+ 'test/prefer-strict-boolean-matchers'?: Linter.RuleEntry<[]>
5067
5102
  /**
5068
5103
  * enforce strict equal over equal
5069
5104
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-strict-equal.md
@@ -5119,6 +5154,11 @@ interface RuleOptions {
5119
5154
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-local-test-context-for-concurrent-snapshots.md
5120
5155
  */
5121
5156
  'test/require-local-test-context-for-concurrent-snapshots'?: Linter.RuleEntry<[]>
5157
+ /**
5158
+ * enforce using type parameters with vitest mock functions
5159
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-mock-type-parameters.md
5160
+ */
5161
+ 'test/require-mock-type-parameters'?: Linter.RuleEntry<TestRequireMockTypeParameters>
5122
5162
  /**
5123
5163
  * require toThrow() to be called with an error message
5124
5164
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-to-throw-message.md
@@ -5409,7 +5449,7 @@ interface RuleOptions {
5409
5449
  * Disallow using code marked as `@deprecated`
5410
5450
  * @see https://typescript-eslint.io/rules/no-deprecated
5411
5451
  */
5412
- 'ts/no-deprecated'?: Linter.RuleEntry<[]>
5452
+ 'ts/no-deprecated'?: Linter.RuleEntry<TsNoDeprecated>
5413
5453
  /**
5414
5454
  * Disallow duplicate class members
5415
5455
  * @see https://typescript-eslint.io/rules/no-dupe-class-members
@@ -5472,7 +5512,7 @@ interface RuleOptions {
5472
5512
  */
5473
5513
  'ts/no-for-in-array'?: Linter.RuleEntry<[]>
5474
5514
  /**
5475
- * Disallow the use of `eval()`-like methods
5515
+ * Disallow the use of `eval()`-like functions
5476
5516
  * @see https://typescript-eslint.io/rules/no-implied-eval
5477
5517
  */
5478
5518
  'ts/no-implied-eval'?: Linter.RuleEntry<[]>
@@ -5527,6 +5567,11 @@ interface RuleOptions {
5527
5567
  * @see https://typescript-eslint.io/rules/no-misused-promises
5528
5568
  */
5529
5569
  'ts/no-misused-promises'?: Linter.RuleEntry<TsNoMisusedPromises>
5570
+ /**
5571
+ * Disallow using the spread operator when it might cause unexpected behavior
5572
+ * @see https://typescript-eslint.io/rules/no-misused-spread
5573
+ */
5574
+ 'ts/no-misused-spread'?: Linter.RuleEntry<TsNoMisusedSpread>
5530
5575
  /**
5531
5576
  * Disallow enums from having both number and string members
5532
5577
  * @see https://typescript-eslint.io/rules/no-mixed-enums
@@ -5918,702 +5963,642 @@ interface RuleOptions {
5918
5963
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>
5919
5964
  /**
5920
5965
  * Improve regexes by making them shorter, consistent, and safer.
5921
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/better-regex.md
5966
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/better-regex.md
5922
5967
  */
5923
5968
  'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>
5924
5969
  /**
5925
5970
  * Enforce a specific parameter name in catch clauses.
5926
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/catch-error-name.md
5971
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/catch-error-name.md
5927
5972
  */
5928
5973
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>
5974
+ /**
5975
+ * Enforce consistent assertion style with `node:assert`.
5976
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-assert.md
5977
+ */
5978
+ 'unicorn/consistent-assert'?: Linter.RuleEntry<[]>
5979
+ /**
5980
+ * Prefer passing `Date` directly to the constructor when cloning.
5981
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-date-clone.md
5982
+ */
5983
+ 'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>
5929
5984
  /**
5930
5985
  * Use destructured variables over properties.
5931
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/consistent-destructuring.md
5986
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-destructuring.md
5932
5987
  */
5933
5988
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>
5934
5989
  /**
5935
5990
  * Prefer consistent types when spreading a ternary in an array literal.
5936
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/consistent-empty-array-spread.md
5991
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-empty-array-spread.md
5937
5992
  */
5938
5993
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>
5939
5994
  /**
5940
5995
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
5941
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/consistent-existence-index-check.md
5996
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-existence-index-check.md
5942
5997
  */
5943
5998
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>
5944
5999
  /**
5945
6000
  * Move function definitions to the highest possible scope.
5946
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/consistent-function-scoping.md
6001
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-function-scoping.md
5947
6002
  */
5948
6003
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>
5949
6004
  /**
5950
6005
  * Enforce correct `Error` subclassing.
5951
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/custom-error-definition.md
6006
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/custom-error-definition.md
5952
6007
  */
5953
6008
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>
5954
6009
  /**
5955
6010
  * Enforce no spaces between braces.
5956
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/empty-brace-spaces.md
6011
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/empty-brace-spaces.md
5957
6012
  */
5958
6013
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>
5959
6014
  /**
5960
6015
  * Enforce passing a `message` value when creating a built-in error.
5961
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/error-message.md
6016
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/error-message.md
5962
6017
  */
5963
6018
  'unicorn/error-message'?: Linter.RuleEntry<[]>
5964
6019
  /**
5965
6020
  * Require escape sequences to use uppercase values.
5966
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/escape-case.md
6021
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/escape-case.md
5967
6022
  */
5968
6023
  'unicorn/escape-case'?: Linter.RuleEntry<[]>
5969
6024
  /**
5970
6025
  * Add expiration conditions to TODO comments.
5971
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/expiring-todo-comments.md
6026
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/expiring-todo-comments.md
5972
6027
  */
5973
6028
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>
5974
6029
  /**
5975
6030
  * Enforce explicitly comparing the `length` or `size` property of a value.
5976
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/explicit-length-check.md
6031
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/explicit-length-check.md
5977
6032
  */
5978
6033
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>
5979
6034
  /**
5980
6035
  * Enforce a case style for filenames.
5981
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/filename-case.md
6036
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/filename-case.md
5982
6037
  */
5983
6038
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>
5984
- /**
5985
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#import-index
5986
- * @deprecated
5987
- */
5988
- 'unicorn/import-index'?: Linter.RuleEntry<[]>
5989
6039
  /**
5990
6040
  * Enforce specific import styles per module.
5991
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/import-style.md
6041
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/import-style.md
5992
6042
  */
5993
6043
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>
5994
6044
  /**
5995
6045
  * Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
5996
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/new-for-builtins.md
6046
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/new-for-builtins.md
5997
6047
  */
5998
6048
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>
5999
6049
  /**
6000
6050
  * Enforce specifying rules to disable in `eslint-disable` comments.
6001
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-abusive-eslint-disable.md
6051
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-abusive-eslint-disable.md
6002
6052
  */
6003
6053
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>
6054
+ /**
6055
+ * Disallow recursive access to `this` within getters and setters.
6056
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-accessor-recursion.md
6057
+ */
6058
+ 'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>
6004
6059
  /**
6005
6060
  * Disallow anonymous functions and classes as the default export.
6006
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-anonymous-default-export.md
6061
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-anonymous-default-export.md
6007
6062
  */
6008
6063
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>
6009
6064
  /**
6010
6065
  * Prevent passing a function reference directly to iterator methods.
6011
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-array-callback-reference.md
6066
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-callback-reference.md
6012
6067
  */
6013
6068
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>
6014
6069
  /**
6015
6070
  * Prefer `for…of` over the `forEach` method.
6016
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-array-for-each.md
6071
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-for-each.md
6017
6072
  */
6018
6073
  'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>
6019
- /**
6020
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#no-array-instanceof
6021
- * @deprecated
6022
- */
6023
- 'unicorn/no-array-instanceof'?: Linter.RuleEntry<[]>
6024
6074
  /**
6025
6075
  * Disallow using the `this` argument in array methods.
6026
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-array-method-this-argument.md
6076
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-method-this-argument.md
6027
6077
  */
6028
6078
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>
6029
6079
  /**
6030
6080
  * Enforce combining multiple `Array#push()` into one call.
6031
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-array-push-push.md
6081
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-push-push.md
6032
6082
  */
6033
6083
  'unicorn/no-array-push-push'?: Linter.RuleEntry<UnicornNoArrayPushPush>
6034
6084
  /**
6035
6085
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
6036
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-array-reduce.md
6086
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-reduce.md
6037
6087
  */
6038
6088
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>
6039
6089
  /**
6040
6090
  * Disallow member access from await expression.
6041
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-await-expression-member.md
6091
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-await-expression-member.md
6042
6092
  */
6043
6093
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>
6044
6094
  /**
6045
6095
  * Disallow using `await` in `Promise` method parameters.
6046
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-await-in-promise-methods.md
6096
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-await-in-promise-methods.md
6047
6097
  */
6048
6098
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>
6049
6099
  /**
6050
6100
  * Do not use leading/trailing space between `console.log` parameters.
6051
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-console-spaces.md
6101
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-console-spaces.md
6052
6102
  */
6053
6103
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>
6054
6104
  /**
6055
6105
  * Do not use `document.cookie` directly.
6056
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-document-cookie.md
6106
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-document-cookie.md
6057
6107
  */
6058
6108
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>
6059
6109
  /**
6060
6110
  * Disallow empty files.
6061
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-empty-file.md
6111
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-empty-file.md
6062
6112
  */
6063
6113
  'unicorn/no-empty-file'?: Linter.RuleEntry<[]>
6064
- /**
6065
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#no-fn-reference-in-iterator
6066
- * @deprecated
6067
- */
6068
- 'unicorn/no-fn-reference-in-iterator'?: Linter.RuleEntry<[]>
6069
6114
  /**
6070
6115
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
6071
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-for-loop.md
6116
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-for-loop.md
6072
6117
  */
6073
6118
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>
6074
6119
  /**
6075
6120
  * Enforce the use of Unicode escapes instead of hexadecimal escapes.
6076
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-hex-escape.md
6121
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-hex-escape.md
6077
6122
  */
6078
6123
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>
6079
6124
  /**
6080
- * Require `Array.isArray()` instead of `instanceof Array`.
6081
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-instanceof-array.md
6125
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/deprecated-rules.md#no-instanceof-array
6126
+ * @deprecated
6082
6127
  */
6083
6128
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>
6129
+ /**
6130
+ * Disallow `instanceof` with built-in objects
6131
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-instanceof-builtins.md
6132
+ */
6133
+ 'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>
6084
6134
  /**
6085
6135
  * Disallow invalid options in `fetch()` and `new Request()`.
6086
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-invalid-fetch-options.md
6136
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-invalid-fetch-options.md
6087
6137
  */
6088
6138
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>
6089
6139
  /**
6090
6140
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
6091
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-invalid-remove-event-listener.md
6141
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-invalid-remove-event-listener.md
6092
6142
  */
6093
6143
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>
6094
6144
  /**
6095
6145
  * Disallow identifiers starting with `new` or `class`.
6096
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-keyword-prefix.md
6146
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-keyword-prefix.md
6097
6147
  */
6098
6148
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>
6099
6149
  /**
6100
6150
  * Disallow using `.length` as the `end` argument of `{Array,String,TypedArray}#slice()`.
6101
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-length-as-slice-end.md
6151
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-length-as-slice-end.md
6102
6152
  */
6103
6153
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>
6104
6154
  /**
6105
6155
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
6106
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-lonely-if.md
6156
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-lonely-if.md
6107
6157
  */
6108
6158
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>
6109
6159
  /**
6110
6160
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
6111
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-magic-array-flat-depth.md
6161
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-magic-array-flat-depth.md
6112
6162
  */
6113
6163
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>
6164
+ /**
6165
+ * Disallow named usage of default import and export.
6166
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-named-default.md
6167
+ */
6168
+ 'unicorn/no-named-default'?: Linter.RuleEntry<[]>
6114
6169
  /**
6115
6170
  * Disallow negated conditions.
6116
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-negated-condition.md
6171
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-negated-condition.md
6117
6172
  */
6118
6173
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>
6119
6174
  /**
6120
6175
  * Disallow negated expression in equality check.
6121
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-negation-in-equality-check.md
6176
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-negation-in-equality-check.md
6122
6177
  */
6123
6178
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>
6124
6179
  /**
6125
6180
  * Disallow nested ternary expressions.
6126
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-nested-ternary.md
6181
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-nested-ternary.md
6127
6182
  */
6128
6183
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>
6129
6184
  /**
6130
6185
  * Disallow `new Array()`.
6131
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-new-array.md
6186
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-new-array.md
6132
6187
  */
6133
6188
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>
6134
6189
  /**
6135
6190
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
6136
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-new-buffer.md
6191
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-new-buffer.md
6137
6192
  */
6138
6193
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>
6139
6194
  /**
6140
6195
  * Disallow the use of the `null` literal.
6141
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-null.md
6196
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-null.md
6142
6197
  */
6143
6198
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>
6144
6199
  /**
6145
6200
  * Disallow the use of objects as default parameters.
6146
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-object-as-default-parameter.md
6201
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-object-as-default-parameter.md
6147
6202
  */
6148
6203
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>
6149
6204
  /**
6150
6205
  * Disallow `process.exit()`.
6151
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-process-exit.md
6206
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-process-exit.md
6152
6207
  */
6153
6208
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>
6154
- /**
6155
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#no-reduce
6156
- * @deprecated
6157
- */
6158
- 'unicorn/no-reduce'?: Linter.RuleEntry<[]>
6159
6209
  /**
6160
6210
  * Disallow passing single-element arrays to `Promise` methods.
6161
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-single-promise-in-promise-methods.md
6211
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-single-promise-in-promise-methods.md
6162
6212
  */
6163
6213
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>
6164
6214
  /**
6165
6215
  * Disallow classes that only have static members.
6166
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-static-only-class.md
6216
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-static-only-class.md
6167
6217
  */
6168
6218
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>
6169
6219
  /**
6170
6220
  * Disallow `then` property.
6171
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-thenable.md
6221
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-thenable.md
6172
6222
  */
6173
6223
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>
6174
6224
  /**
6175
6225
  * Disallow assigning `this` to a variable.
6176
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-this-assignment.md
6226
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-this-assignment.md
6177
6227
  */
6178
6228
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>
6179
6229
  /**
6180
6230
  * Disallow comparing `undefined` using `typeof`.
6181
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-typeof-undefined.md
6231
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-typeof-undefined.md
6182
6232
  */
6183
6233
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>
6184
6234
  /**
6185
6235
  * Disallow awaiting non-promise values.
6186
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unnecessary-await.md
6236
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unnecessary-await.md
6187
6237
  */
6188
6238
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>
6189
6239
  /**
6190
6240
  * Enforce the use of built-in methods instead of unnecessary polyfills.
6191
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unnecessary-polyfills.md
6241
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unnecessary-polyfills.md
6192
6242
  */
6193
6243
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>
6194
6244
  /**
6195
6245
  * Disallow unreadable array destructuring.
6196
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unreadable-array-destructuring.md
6246
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unreadable-array-destructuring.md
6197
6247
  */
6198
6248
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>
6199
6249
  /**
6200
6250
  * Disallow unreadable IIFEs.
6201
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unreadable-iife.md
6251
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unreadable-iife.md
6202
6252
  */
6203
6253
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>
6204
- /**
6205
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#no-unsafe-regex
6206
- * @deprecated
6207
- */
6208
- 'unicorn/no-unsafe-regex'?: Linter.RuleEntry<[]>
6209
6254
  /**
6210
6255
  * Disallow unused object properties.
6211
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unused-properties.md
6256
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unused-properties.md
6212
6257
  */
6213
6258
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>
6214
6259
  /**
6215
6260
  * Disallow useless fallback when spreading in object literals.
6216
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-fallback-in-spread.md
6261
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-fallback-in-spread.md
6217
6262
  */
6218
6263
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>
6219
6264
  /**
6220
6265
  * Disallow useless array length check.
6221
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-length-check.md
6266
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-length-check.md
6222
6267
  */
6223
6268
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>
6224
6269
  /**
6225
6270
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
6226
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-promise-resolve-reject.md
6271
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-promise-resolve-reject.md
6227
6272
  */
6228
6273
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>
6229
6274
  /**
6230
6275
  * Disallow unnecessary spread.
6231
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-spread.md
6276
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-spread.md
6232
6277
  */
6233
6278
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>
6234
6279
  /**
6235
6280
  * Disallow useless case in switch statements.
6236
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-switch-case.md
6281
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-switch-case.md
6237
6282
  */
6238
6283
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>
6239
6284
  /**
6240
6285
  * Disallow useless `undefined`.
6241
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-undefined.md
6286
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-undefined.md
6242
6287
  */
6243
6288
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>
6244
6289
  /**
6245
6290
  * Disallow number literals with zero fractions or dangling dots.
6246
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-zero-fractions.md
6291
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-zero-fractions.md
6247
6292
  */
6248
6293
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>
6249
6294
  /**
6250
6295
  * Enforce proper case for numeric literals.
6251
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/number-literal-case.md
6296
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/number-literal-case.md
6252
6297
  */
6253
6298
  'unicorn/number-literal-case'?: Linter.RuleEntry<[]>
6254
6299
  /**
6255
6300
  * Enforce the style of numeric separators by correctly grouping digits.
6256
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/numeric-separators-style.md
6301
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/numeric-separators-style.md
6257
6302
  */
6258
6303
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>
6259
6304
  /**
6260
6305
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
6261
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-add-event-listener.md
6306
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-add-event-listener.md
6262
6307
  */
6263
6308
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>
6264
6309
  /**
6265
6310
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
6266
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-array-find.md
6311
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-find.md
6267
6312
  */
6268
6313
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>
6269
6314
  /**
6270
6315
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
6271
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-array-flat.md
6316
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-flat.md
6272
6317
  */
6273
6318
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>
6274
6319
  /**
6275
6320
  * Prefer `.flatMap(…)` over `.map(…).flat()`.
6276
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-array-flat-map.md
6321
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-flat-map.md
6277
6322
  */
6278
6323
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>
6279
6324
  /**
6280
6325
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
6281
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-array-index-of.md
6326
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-index-of.md
6282
6327
  */
6283
6328
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>
6284
6329
  /**
6285
6330
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
6286
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-array-some.md
6331
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-some.md
6287
6332
  */
6288
6333
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>
6289
6334
  /**
6290
6335
  * Prefer `.at()` method for index access and `String#charAt()`.
6291
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-at.md
6336
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-at.md
6292
6337
  */
6293
6338
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>
6294
6339
  /**
6295
6340
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
6296
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-blob-reading-methods.md
6341
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-blob-reading-methods.md
6297
6342
  */
6298
6343
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>
6299
6344
  /**
6300
6345
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
6301
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-code-point.md
6346
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-code-point.md
6302
6347
  */
6303
6348
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>
6304
- /**
6305
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-dataset
6306
- * @deprecated
6307
- */
6308
- 'unicorn/prefer-dataset'?: Linter.RuleEntry<[]>
6309
6349
  /**
6310
6350
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
6311
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-date-now.md
6351
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-date-now.md
6312
6352
  */
6313
6353
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>
6314
6354
  /**
6315
6355
  * Prefer default parameters over reassignment.
6316
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-default-parameters.md
6356
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-default-parameters.md
6317
6357
  */
6318
6358
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>
6319
6359
  /**
6320
6360
  * Prefer `Node#append()` over `Node#appendChild()`.
6321
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-dom-node-append.md
6361
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-append.md
6322
6362
  */
6323
6363
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>
6324
6364
  /**
6325
6365
  * Prefer using `.dataset` on DOM elements over calling attribute methods.
6326
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-dom-node-dataset.md
6366
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-dataset.md
6327
6367
  */
6328
6368
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>
6329
6369
  /**
6330
6370
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
6331
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-dom-node-remove.md
6371
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-remove.md
6332
6372
  */
6333
6373
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>
6334
6374
  /**
6335
6375
  * Prefer `.textContent` over `.innerText`.
6336
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-dom-node-text-content.md
6376
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-text-content.md
6337
6377
  */
6338
6378
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>
6339
- /**
6340
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-event-key
6341
- * @deprecated
6342
- */
6343
- 'unicorn/prefer-event-key'?: Linter.RuleEntry<[]>
6344
6379
  /**
6345
6380
  * Prefer `EventTarget` over `EventEmitter`.
6346
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-event-target.md
6381
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-event-target.md
6347
6382
  */
6348
6383
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>
6349
- /**
6350
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-exponentiation-operator
6351
- * @deprecated
6352
- */
6353
- 'unicorn/prefer-exponentiation-operator'?: Linter.RuleEntry<[]>
6354
6384
  /**
6355
6385
  * Prefer `export…from` when re-exporting.
6356
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-export-from.md
6386
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-export-from.md
6357
6387
  */
6358
6388
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>
6359
- /**
6360
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-flat-map
6361
- * @deprecated
6362
- */
6363
- 'unicorn/prefer-flat-map'?: Linter.RuleEntry<[]>
6364
6389
  /**
6365
6390
  * Prefer `globalThis` over `window`, `self`, and `global`.
6366
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-global-this.md
6391
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-global-this.md
6367
6392
  */
6368
6393
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>
6369
6394
  /**
6370
6395
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
6371
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-includes.md
6396
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-includes.md
6372
6397
  */
6373
6398
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>
6374
6399
  /**
6375
6400
  * Prefer reading a JSON file as a buffer.
6376
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-json-parse-buffer.md
6401
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-json-parse-buffer.md
6377
6402
  */
6378
6403
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>
6379
6404
  /**
6380
6405
  * Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
6381
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-keyboard-event-key.md
6406
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-keyboard-event-key.md
6382
6407
  */
6383
6408
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>
6384
6409
  /**
6385
6410
  * Prefer using a logical operator over a ternary.
6386
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-logical-operator-over-ternary.md
6411
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-logical-operator-over-ternary.md
6387
6412
  */
6388
6413
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>
6389
6414
  /**
6390
6415
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
6391
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-math-min-max.md
6416
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-math-min-max.md
6392
6417
  */
6393
6418
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>
6394
6419
  /**
6395
6420
  * Enforce the use of `Math.trunc` instead of bitwise operators.
6396
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-math-trunc.md
6421
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-math-trunc.md
6397
6422
  */
6398
6423
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>
6399
6424
  /**
6400
6425
  * Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
6401
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-modern-dom-apis.md
6426
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-modern-dom-apis.md
6402
6427
  */
6403
6428
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>
6404
6429
  /**
6405
6430
  * Prefer modern `Math` APIs over legacy patterns.
6406
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-modern-math-apis.md
6431
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-modern-math-apis.md
6407
6432
  */
6408
6433
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>
6409
6434
  /**
6410
6435
  * Prefer JavaScript modules (ESM) over CommonJS.
6411
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-module.md
6436
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-module.md
6412
6437
  */
6413
6438
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>
6414
6439
  /**
6415
6440
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
6416
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-native-coercion-functions.md
6441
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-native-coercion-functions.md
6417
6442
  */
6418
6443
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>
6419
6444
  /**
6420
6445
  * Prefer negative index over `.length - index` when possible.
6421
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-negative-index.md
6446
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-negative-index.md
6422
6447
  */
6423
6448
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>
6424
- /**
6425
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-node-append
6426
- * @deprecated
6427
- */
6428
- 'unicorn/prefer-node-append'?: Linter.RuleEntry<[]>
6429
6449
  /**
6430
6450
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
6431
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-node-protocol.md
6451
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-node-protocol.md
6432
6452
  */
6433
6453
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>
6434
- /**
6435
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-node-remove
6436
- * @deprecated
6437
- */
6438
- 'unicorn/prefer-node-remove'?: Linter.RuleEntry<[]>
6439
6454
  /**
6440
6455
  * Prefer `Number` static properties over global ones.
6441
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-number-properties.md
6456
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-number-properties.md
6442
6457
  */
6443
6458
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>
6444
6459
  /**
6445
6460
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
6446
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-object-from-entries.md
6461
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-object-from-entries.md
6447
6462
  */
6448
6463
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>
6449
- /**
6450
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-object-has-own
6451
- * @deprecated
6452
- */
6453
- 'unicorn/prefer-object-has-own'?: Linter.RuleEntry<[]>
6454
6464
  /**
6455
6465
  * Prefer omitting the `catch` binding parameter.
6456
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-optional-catch-binding.md
6466
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-optional-catch-binding.md
6457
6467
  */
6458
6468
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>
6459
6469
  /**
6460
6470
  * Prefer borrowing methods from the prototype instead of the instance.
6461
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-prototype-methods.md
6471
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-prototype-methods.md
6462
6472
  */
6463
6473
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>
6464
6474
  /**
6465
6475
  * Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
6466
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-query-selector.md
6476
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-query-selector.md
6467
6477
  */
6468
6478
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>
6469
6479
  /**
6470
6480
  * Prefer `Reflect.apply()` over `Function#apply()`.
6471
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-reflect-apply.md
6481
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-reflect-apply.md
6472
6482
  */
6473
6483
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>
6474
6484
  /**
6475
6485
  * Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
6476
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-regexp-test.md
6486
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-regexp-test.md
6477
6487
  */
6478
6488
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>
6479
- /**
6480
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-replace-all
6481
- * @deprecated
6482
- */
6483
- 'unicorn/prefer-replace-all'?: Linter.RuleEntry<[]>
6484
6489
  /**
6485
6490
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
6486
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-set-has.md
6491
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-set-has.md
6487
6492
  */
6488
6493
  'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>
6489
6494
  /**
6490
6495
  * Prefer using `Set#size` instead of `Array#length`.
6491
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-set-size.md
6496
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-set-size.md
6492
6497
  */
6493
6498
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>
6494
6499
  /**
6495
6500
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
6496
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-spread.md
6501
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-spread.md
6497
6502
  */
6498
6503
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>
6499
- /**
6500
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-starts-ends-with
6501
- * @deprecated
6502
- */
6503
- 'unicorn/prefer-starts-ends-with'?: Linter.RuleEntry<[]>
6504
6504
  /**
6505
6505
  * Prefer using the `String.raw` tag to avoid escaping `\`.
6506
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-string-raw.md
6506
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-raw.md
6507
6507
  */
6508
6508
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>
6509
6509
  /**
6510
6510
  * Prefer `String#replaceAll()` over regex searches with the global flag.
6511
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-string-replace-all.md
6511
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-replace-all.md
6512
6512
  */
6513
6513
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>
6514
6514
  /**
6515
6515
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
6516
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-string-slice.md
6516
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-slice.md
6517
6517
  */
6518
6518
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>
6519
6519
  /**
6520
6520
  * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
6521
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-string-starts-ends-with.md
6521
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-starts-ends-with.md
6522
6522
  */
6523
6523
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>
6524
6524
  /**
6525
6525
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
6526
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-string-trim-start-end.md
6526
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-trim-start-end.md
6527
6527
  */
6528
6528
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>
6529
6529
  /**
6530
6530
  * Prefer using `structuredClone` to create a deep clone.
6531
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-structured-clone.md
6531
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-structured-clone.md
6532
6532
  */
6533
6533
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>
6534
6534
  /**
6535
6535
  * Prefer `switch` over multiple `else-if`.
6536
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-switch.md
6536
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-switch.md
6537
6537
  */
6538
6538
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>
6539
6539
  /**
6540
6540
  * Prefer ternary expressions over simple `if-else` statements.
6541
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-ternary.md
6541
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-ternary.md
6542
6542
  */
6543
6543
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>
6544
- /**
6545
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-text-content
6546
- * @deprecated
6547
- */
6548
- 'unicorn/prefer-text-content'?: Linter.RuleEntry<[]>
6549
6544
  /**
6550
6545
  * Prefer top-level await over top-level promises and async function calls.
6551
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-top-level-await.md
6546
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-top-level-await.md
6552
6547
  */
6553
6548
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>
6554
- /**
6555
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-trim-start-end
6556
- * @deprecated
6557
- */
6558
- 'unicorn/prefer-trim-start-end'?: Linter.RuleEntry<[]>
6559
6549
  /**
6560
6550
  * Enforce throwing `TypeError` in type checking conditions.
6561
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-type-error.md
6551
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-type-error.md
6562
6552
  */
6563
6553
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>
6564
6554
  /**
6565
6555
  * Prevent abbreviations.
6566
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prevent-abbreviations.md
6556
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prevent-abbreviations.md
6567
6557
  */
6568
6558
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>
6569
- /**
6570
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#regex-shorthand
6571
- * @deprecated
6572
- */
6573
- 'unicorn/regex-shorthand'?: Linter.RuleEntry<[]>
6574
6559
  /**
6575
6560
  * Enforce consistent relative URL style.
6576
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/relative-url-style.md
6561
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/relative-url-style.md
6577
6562
  */
6578
6563
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>
6579
6564
  /**
6580
6565
  * Enforce using the separator argument with `Array#join()`.
6581
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/require-array-join-separator.md
6566
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/require-array-join-separator.md
6582
6567
  */
6583
6568
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>
6584
6569
  /**
6585
6570
  * Enforce using the digits argument with `Number#toFixed()`.
6586
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/require-number-to-fixed-digits-argument.md
6571
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/require-number-to-fixed-digits-argument.md
6587
6572
  */
6588
6573
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>
6589
6574
  /**
6590
6575
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
6591
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/require-post-message-target-origin.md
6576
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/require-post-message-target-origin.md
6592
6577
  */
6593
6578
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>
6594
6579
  /**
6595
6580
  * Enforce better string content.
6596
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/string-content.md
6581
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/string-content.md
6597
6582
  */
6598
6583
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>
6599
6584
  /**
6600
6585
  * Enforce consistent brace style for `case` clauses.
6601
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/switch-case-braces.md
6586
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/switch-case-braces.md
6602
6587
  */
6603
6588
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>
6604
6589
  /**
6605
6590
  * Fix whitespace-insensitive template indentation.
6606
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/template-indent.md
6591
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/template-indent.md
6607
6592
  */
6608
6593
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>
6609
6594
  /**
6610
6595
  * Enforce consistent case for text encoding identifiers.
6611
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/text-encoding-identifier-case.md
6596
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/text-encoding-identifier-case.md
6612
6597
  */
6613
6598
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<[]>
6614
6599
  /**
6615
6600
  * Require `new` when creating an error.
6616
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/throw-new-error.md
6601
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/throw-new-error.md
6617
6602
  */
6618
6603
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>
6619
6604
  /**
@@ -6761,12 +6746,6 @@ interface RuleOptions {
6761
6746
  * @see https://eslint.vuejs.org/rules/component-options-name-casing.html
6762
6747
  */
6763
6748
  'vue/component-options-name-casing'?: Linter.RuleEntry<VueComponentOptionsNameCasing>
6764
- /**
6765
- * enforce order of component top-level elements
6766
- * @see https://eslint.vuejs.org/rules/component-tags-order.html
6767
- * @deprecated
6768
- */
6769
- 'vue/component-tags-order'?: Linter.RuleEntry<VueComponentTagsOrder>
6770
6749
  /**
6771
6750
  * enforce specific casing for custom event name
6772
6751
  * @see https://eslint.vuejs.org/rules/custom-event-name-casing.html
@@ -6833,7 +6812,7 @@ interface RuleOptions {
6833
6812
  */
6834
6813
  'vue/html-closing-bracket-spacing'?: Linter.RuleEntry<VueHtmlClosingBracketSpacing>
6835
6814
  /**
6836
- * enforce unified line brake in HTML comments
6815
+ * enforce unified line break in HTML comments
6837
6816
  * @see https://eslint.vuejs.org/rules/html-comment-content-newline.html
6838
6817
  */
6839
6818
  'vue/html-comment-content-newline'?: Linter.RuleEntry<VueHtmlCommentContentNewline>
@@ -6873,7 +6852,7 @@ interface RuleOptions {
6873
6852
  */
6874
6853
  'vue/jsx-uses-vars'?: Linter.RuleEntry<[]>
6875
6854
  /**
6876
- * Enforce consistent spacing between property names and type annotations in types and interfaces in `<template>`
6855
+ * Enforce consistent spacing between keys and values in object literal properties in `<template>`
6877
6856
  * @see https://eslint.vuejs.org/rules/key-spacing.html
6878
6857
  */
6879
6858
  'vue/key-spacing'?: Linter.RuleEntry<VueKeySpacing>
@@ -7143,11 +7122,15 @@ interface RuleOptions {
7143
7122
  */
7144
7123
  'vue/no-extra-parens'?: Linter.RuleEntry<VueNoExtraParens>
7145
7124
  /**
7146
- * require valid keys in model option
7147
- * @see https://eslint.vuejs.org/rules/no-invalid-model-keys.html
7148
- * @deprecated
7125
+ * Disallow shorthand type conversions in `<template>`
7126
+ * @see https://eslint.vuejs.org/rules/no-implicit-coercion.html
7149
7127
  */
7150
- 'vue/no-invalid-model-keys'?: Linter.RuleEntry<[]>
7128
+ 'vue/no-implicit-coercion'?: Linter.RuleEntry<VueNoImplicitCoercion>
7129
+ /**
7130
+ * disallow importing Vue compiler macros
7131
+ * @see https://eslint.vuejs.org/rules/no-import-compiler-macros.html
7132
+ */
7133
+ 'vue/no-import-compiler-macros'?: Linter.RuleEntry<[]>
7151
7134
  /**
7152
7135
  * disallow irregular whitespace in `.vue` files
7153
7136
  * @see https://eslint.vuejs.org/rules/no-irregular-whitespace.html
@@ -7174,12 +7157,12 @@ interface RuleOptions {
7174
7157
  */
7175
7158
  'vue/no-multi-spaces'?: Linter.RuleEntry<VueNoMultiSpaces>
7176
7159
  /**
7177
- * disallow to pass multiple objects into array to class
7160
+ * disallow passing multiple objects in an array to class
7178
7161
  * @see https://eslint.vuejs.org/rules/no-multiple-objects-in-class.html
7179
7162
  */
7180
7163
  'vue/no-multiple-objects-in-class'?: Linter.RuleEntry<[]>
7181
7164
  /**
7182
- * disallow to pass multiple arguments to scoped slots
7165
+ * disallow passing multiple arguments to scoped slots
7183
7166
  * @see https://eslint.vuejs.org/rules/no-multiple-slot-args.html
7184
7167
  */
7185
7168
  'vue/no-multiple-slot-args'?: Linter.RuleEntry<[]>
@@ -7208,12 +7191,6 @@ interface RuleOptions {
7208
7191
  * @see https://eslint.vuejs.org/rules/no-ref-as-operand.html
7209
7192
  */
7210
7193
  'vue/no-ref-as-operand'?: Linter.RuleEntry<[]>
7211
- /**
7212
- * disallow usages of ref objects that can lead to loss of reactivity
7213
- * @see https://eslint.vuejs.org/rules/no-ref-object-destructure.html
7214
- * @deprecated
7215
- */
7216
- 'vue/no-ref-object-destructure'?: Linter.RuleEntry<[]>
7217
7194
  /**
7218
7195
  * disallow usages of ref objects that can lead to loss of reactivity
7219
7196
  * @see https://eslint.vuejs.org/rules/no-ref-object-reactivity-loss.html
@@ -7304,12 +7281,6 @@ interface RuleOptions {
7304
7281
  * @see https://eslint.vuejs.org/rules/no-root-v-if.html
7305
7282
  */
7306
7283
  'vue/no-root-v-if'?: Linter.RuleEntry<[]>
7307
- /**
7308
- * disallow usages that lose the reactivity of `props` passed to `setup`
7309
- * @see https://eslint.vuejs.org/rules/no-setup-props-destructure.html
7310
- * @deprecated
7311
- */
7312
- 'vue/no-setup-props-destructure'?: Linter.RuleEntry<[]>
7313
7284
  /**
7314
7285
  * disallow usages that lose the reactivity of `props` passed to `setup`
7315
7286
  * @see https://eslint.vuejs.org/rules/no-setup-props-reactivity-loss.html
@@ -7443,6 +7414,7 @@ interface RuleOptions {
7443
7414
  /**
7444
7415
  * disallow `key` attribute on `<template v-for>`
7445
7416
  * @see https://eslint.vuejs.org/rules/no-v-for-template-key.html
7417
+ * @deprecated
7446
7418
  */
7447
7419
  'vue/no-v-for-template-key'?: Linter.RuleEntry<[]>
7448
7420
  /**
@@ -7458,6 +7430,7 @@ interface RuleOptions {
7458
7430
  /**
7459
7431
  * disallow adding an argument to `v-model` used in custom component
7460
7432
  * @see https://eslint.vuejs.org/rules/no-v-model-argument.html
7433
+ * @deprecated
7461
7434
  */
7462
7435
  'vue/no-v-model-argument'?: Linter.RuleEntry<[]>
7463
7436
  /**
@@ -7566,7 +7539,7 @@ interface RuleOptions {
7566
7539
  */
7567
7540
  'vue/prop-name-casing'?: Linter.RuleEntry<VuePropNameCasing>
7568
7541
  /**
7569
- * Require quotes around object literal, type literal, interfaces and enums property names in `<template>`
7542
+ * Require quotes around object literal property names in `<template>`
7570
7543
  * @see https://eslint.vuejs.org/rules/quote-props.html
7571
7544
  */
7572
7545
  'vue/quote-props'?: Linter.RuleEntry<VueQuoteProps>
@@ -7690,12 +7663,6 @@ interface RuleOptions {
7690
7663
  * @see https://eslint.vuejs.org/rules/script-indent.html
7691
7664
  */
7692
7665
  'vue/script-indent'?: Linter.RuleEntry<VueScriptIndent>
7693
- /**
7694
- * prevent `<script setup>` variables used in `<template>` to be marked as unused
7695
- * @see https://eslint.vuejs.org/rules/script-setup-uses-vars.html
7696
- * @deprecated
7697
- */
7698
- 'vue/script-setup-uses-vars'?: Linter.RuleEntry<[]>
7699
7666
  /**
7700
7667
  * require a line break before and after the contents of a singleline element
7701
7668
  * @see https://eslint.vuejs.org/rules/singleline-html-element-content-newline.html
@@ -7766,12 +7733,6 @@ interface RuleOptions {
7766
7733
  * @see https://eslint.vuejs.org/rules/v-on-event-hyphenation.html
7767
7734
  */
7768
7735
  'vue/v-on-event-hyphenation'?: Linter.RuleEntry<VueVOnEventHyphenation>
7769
- /**
7770
- * enforce or forbid parentheses after method calls without arguments in `v-on` directives
7771
- * @see https://eslint.vuejs.org/rules/v-on-function-call.html
7772
- * @deprecated
7773
- */
7774
- 'vue/v-on-function-call'?: Linter.RuleEntry<VueVOnFunctionCall>
7775
7736
  /**
7776
7737
  * enforce writing style for handlers in `v-on` directives
7777
7738
  * @see https://eslint.vuejs.org/rules/v-on-handler-style.html
@@ -7810,6 +7771,7 @@ interface RuleOptions {
7810
7771
  /**
7811
7772
  * require valid keys in model option
7812
7773
  * @see https://eslint.vuejs.org/rules/valid-model-definition.html
7774
+ * @deprecated
7813
7775
  */
7814
7776
  'vue/valid-model-definition'?: Linter.RuleEntry<[]>
7815
7777
  /**
@@ -7830,6 +7792,7 @@ interface RuleOptions {
7830
7792
  /**
7831
7793
  * enforce valid `.sync` modifier on `v-bind` directives
7832
7794
  * @see https://eslint.vuejs.org/rules/valid-v-bind-sync.html
7795
+ * @deprecated
7833
7796
  */
7834
7797
  'vue/valid-v-bind-sync'?: Linter.RuleEntry<[]>
7835
7798
  /**
@@ -10653,150 +10616,307 @@ type PaddingLineBetweenStatements = {
10653
10616
  // ----- perfectionist/sort-array-includes -----
10654
10617
  type PerfectionistSortArrayIncludes = {
10655
10618
 
10656
- partitionByComment?: (string[] | boolean | string | {
10657
- block?: (string[] | boolean | string)
10658
- line?: (string[] | boolean | string)
10619
+ fallbackSort?: {
10620
+
10621
+ order?: ("asc" | "desc")
10622
+
10623
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10659
10624
  [k: string]: unknown | undefined
10660
- })
10625
+ }
10626
+
10627
+ specialCharacters?: ("remove" | "trim" | "keep")
10628
+
10629
+ ignoreCase?: boolean
10630
+
10631
+ alphabet?: string
10632
+
10633
+ locales?: (string | string[])
10634
+
10635
+ order?: ("asc" | "desc")
10636
+
10637
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10661
10638
 
10662
10639
  groupKind?: ("mixed" | "literals-first" | "spreads-first")
10663
10640
 
10664
10641
  customGroups?: ({
10665
10642
 
10666
- groupName?: string
10643
+ newlinesInside?: ("always" | "never")
10644
+
10645
+ fallbackSort?: {
10646
+
10647
+ order?: ("asc" | "desc")
10648
+
10649
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10650
+ [k: string]: unknown | undefined
10651
+ }
10667
10652
 
10668
- type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
10653
+ groupName?: string
10669
10654
 
10670
- order?: ("desc" | "asc")
10655
+ order?: ("asc" | "desc")
10671
10656
 
10672
- newlinesInside?: ("always" | "never")
10657
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10673
10658
  anyOf?: {
10674
10659
 
10675
10660
  selector?: ("literal" | "spread")
10676
10661
 
10677
- elementNamePattern?: string
10662
+ elementNamePattern?: (({
10663
+ pattern?: string
10664
+ flags?: string
10665
+ } | string)[] | ({
10666
+ pattern?: string
10667
+ flags?: string
10668
+ } | string))
10678
10669
  }[]
10679
10670
  } | {
10680
10671
 
10681
- groupName?: string
10672
+ newlinesInside?: ("always" | "never")
10673
+
10674
+ fallbackSort?: {
10675
+
10676
+ order?: ("asc" | "desc")
10677
+
10678
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10679
+ [k: string]: unknown | undefined
10680
+ }
10682
10681
 
10683
- type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
10682
+ groupName?: string
10684
10683
 
10685
- order?: ("desc" | "asc")
10684
+ order?: ("asc" | "desc")
10686
10685
 
10687
- newlinesInside?: ("always" | "never")
10686
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10688
10687
 
10689
10688
  selector?: ("literal" | "spread")
10690
10689
 
10691
- elementNamePattern?: string
10690
+ elementNamePattern?: (({
10691
+ pattern?: string
10692
+ flags?: string
10693
+ } | string)[] | ({
10694
+ pattern?: string
10695
+ flags?: string
10696
+ } | string))
10692
10697
  })[]
10693
10698
  useConfigurationIf?: {
10694
- allNamesMatchPattern?: string
10699
+
10700
+ allNamesMatchPattern?: (({
10701
+ pattern?: string
10702
+ flags?: string
10703
+ } | string)[] | ({
10704
+ pattern?: string
10705
+ flags?: string
10706
+ } | string))
10695
10707
  }
10696
10708
 
10697
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10709
+ partitionByComment?: (boolean | (({
10710
+ pattern?: string
10711
+ flags?: string
10712
+ } | string)[] | ({
10713
+ pattern?: string
10714
+ flags?: string
10715
+ } | string)) | {
10716
+ block?: (boolean | (({
10717
+ pattern?: string
10718
+ flags?: string
10719
+ } | string)[] | ({
10720
+ pattern?: string
10721
+ flags?: string
10722
+ } | string)))
10723
+ line?: (boolean | (({
10724
+ pattern?: string
10725
+ flags?: string
10726
+ } | string)[] | ({
10727
+ pattern?: string
10728
+ flags?: string
10729
+ } | string)))
10730
+ })
10698
10731
 
10699
10732
  partitionByNewLine?: boolean
10700
10733
 
10701
- specialCharacters?: ("remove" | "trim" | "keep")
10702
-
10703
- ignoreCase?: boolean
10704
-
10705
- alphabet?: string
10706
-
10707
- locales?: (string | string[])
10734
+ newlinesBetween?: ("ignore" | "always" | "never")
10708
10735
 
10709
10736
  groups?: (string | string[] | {
10710
10737
 
10711
10738
  newlinesBetween?: ("ignore" | "always" | "never")
10712
- [k: string]: unknown | undefined
10713
10739
  })[]
10714
-
10715
- order?: ("asc" | "desc")
10716
10740
  }[]
10717
10741
  // ----- perfectionist/sort-classes -----
10718
10742
  type PerfectionistSortClasses = []|[{
10719
10743
 
10720
- ignoreCallbackDependenciesPatterns?: string[]
10721
-
10722
- partitionByComment?: (string[] | boolean | string | {
10723
- block?: (string[] | boolean | string)
10724
- line?: (string[] | boolean | string)
10744
+ fallbackSort?: {
10745
+
10746
+ order?: ("asc" | "desc")
10747
+
10748
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10725
10749
  [k: string]: unknown | undefined
10726
- })
10750
+ }
10751
+
10752
+ specialCharacters?: ("remove" | "trim" | "keep")
10753
+
10754
+ ignoreCase?: boolean
10755
+
10756
+ alphabet?: string
10757
+
10758
+ locales?: (string | string[])
10759
+
10760
+ order?: ("asc" | "desc")
10761
+
10762
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10727
10763
 
10728
10764
  customGroups?: ({
10729
10765
 
10730
- groupName?: string
10766
+ newlinesInside?: ("always" | "never")
10767
+
10768
+ fallbackSort?: {
10769
+
10770
+ order?: ("asc" | "desc")
10771
+
10772
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10773
+ [k: string]: unknown | undefined
10774
+ }
10731
10775
 
10732
- type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
10776
+ groupName?: string
10733
10777
 
10734
- order?: ("desc" | "asc")
10778
+ order?: ("asc" | "desc")
10735
10779
 
10736
- newlinesInside?: ("always" | "never")
10780
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10737
10781
  anyOf?: {
10738
10782
 
10739
- elementValuePattern?: string
10740
-
10741
- decoratorNamePattern?: string
10742
-
10743
10783
  modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[]
10744
10784
 
10745
10785
  selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method")
10746
10786
 
10747
- elementNamePattern?: string
10787
+ decoratorNamePattern?: (({
10788
+ pattern?: string
10789
+ flags?: string
10790
+ } | string)[] | ({
10791
+ pattern?: string
10792
+ flags?: string
10793
+ } | string))
10794
+
10795
+ elementValuePattern?: (({
10796
+ pattern?: string
10797
+ flags?: string
10798
+ } | string)[] | ({
10799
+ pattern?: string
10800
+ flags?: string
10801
+ } | string))
10802
+
10803
+ elementNamePattern?: (({
10804
+ pattern?: string
10805
+ flags?: string
10806
+ } | string)[] | ({
10807
+ pattern?: string
10808
+ flags?: string
10809
+ } | string))
10748
10810
  }[]
10749
10811
  } | {
10750
10812
 
10751
- groupName?: string
10752
-
10753
- type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
10813
+ newlinesInside?: ("always" | "never")
10754
10814
 
10755
- order?: ("desc" | "asc")
10815
+ fallbackSort?: {
10816
+
10817
+ order?: ("asc" | "desc")
10818
+
10819
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10820
+ [k: string]: unknown | undefined
10821
+ }
10756
10822
 
10757
- newlinesInside?: ("always" | "never")
10823
+ groupName?: string
10758
10824
 
10759
- elementValuePattern?: string
10825
+ order?: ("asc" | "desc")
10760
10826
 
10761
- decoratorNamePattern?: string
10827
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10762
10828
 
10763
10829
  modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[]
10764
10830
 
10765
10831
  selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method")
10766
10832
 
10767
- elementNamePattern?: string
10833
+ decoratorNamePattern?: (({
10834
+ pattern?: string
10835
+ flags?: string
10836
+ } | string)[] | ({
10837
+ pattern?: string
10838
+ flags?: string
10839
+ } | string))
10840
+
10841
+ elementValuePattern?: (({
10842
+ pattern?: string
10843
+ flags?: string
10844
+ } | string)[] | ({
10845
+ pattern?: string
10846
+ flags?: string
10847
+ } | string))
10848
+
10849
+ elementNamePattern?: (({
10850
+ pattern?: string
10851
+ flags?: string
10852
+ } | string)[] | ({
10853
+ pattern?: string
10854
+ flags?: string
10855
+ } | string))
10768
10856
  })[]
10769
10857
 
10770
- partitionByNewLine?: boolean
10858
+ ignoreCallbackDependenciesPatterns?: (({
10859
+ pattern?: string
10860
+ flags?: string
10861
+ } | string)[] | ({
10862
+ pattern?: string
10863
+ flags?: string
10864
+ } | string))
10865
+
10866
+ partitionByComment?: (boolean | (({
10867
+ pattern?: string
10868
+ flags?: string
10869
+ } | string)[] | ({
10870
+ pattern?: string
10871
+ flags?: string
10872
+ } | string)) | {
10873
+ block?: (boolean | (({
10874
+ pattern?: string
10875
+ flags?: string
10876
+ } | string)[] | ({
10877
+ pattern?: string
10878
+ flags?: string
10879
+ } | string)))
10880
+ line?: (boolean | (({
10881
+ pattern?: string
10882
+ flags?: string
10883
+ } | string)[] | ({
10884
+ pattern?: string
10885
+ flags?: string
10886
+ } | string)))
10887
+ })
10771
10888
 
10772
- specialCharacters?: ("remove" | "trim" | "keep")
10889
+ partitionByNewLine?: boolean
10773
10890
 
10774
10891
  newlinesBetween?: ("ignore" | "always" | "never")
10775
10892
 
10776
- ignoreCase?: boolean
10777
-
10778
- alphabet?: string
10779
-
10780
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
10781
-
10782
- locales?: (string | string[])
10783
-
10784
10893
  groups?: (string | string[] | {
10785
10894
 
10786
10895
  newlinesBetween?: ("ignore" | "always" | "never")
10787
- [k: string]: unknown | undefined
10788
10896
  })[]
10789
-
10790
- order?: ("asc" | "desc")
10791
10897
  }]
10792
10898
  // ----- perfectionist/sort-decorators -----
10793
10899
  type PerfectionistSortDecorators = []|[{
10794
10900
 
10795
- partitionByComment?: (string[] | boolean | string | {
10796
- block?: (string[] | boolean | string)
10797
- line?: (string[] | boolean | string)
10901
+ fallbackSort?: {
10902
+
10903
+ order?: ("asc" | "desc")
10904
+
10905
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10798
10906
  [k: string]: unknown | undefined
10799
- })
10907
+ }
10908
+
10909
+ specialCharacters?: ("remove" | "trim" | "keep")
10910
+
10911
+ ignoreCase?: boolean
10912
+
10913
+ alphabet?: string
10914
+
10915
+ locales?: (string | string[])
10916
+
10917
+ order?: ("asc" | "desc")
10918
+
10919
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10800
10920
 
10801
10921
  sortOnParameters?: boolean
10802
10922
 
@@ -10808,42 +10928,48 @@ type PerfectionistSortDecorators = []|[{
10808
10928
 
10809
10929
  sortOnClasses?: boolean
10810
10930
 
10811
- specialCharacters?: ("remove" | "trim" | "keep")
10931
+ partitionByComment?: (boolean | (({
10932
+ pattern?: string
10933
+ flags?: string
10934
+ } | string)[] | ({
10935
+ pattern?: string
10936
+ flags?: string
10937
+ } | string)) | {
10938
+ block?: (boolean | (({
10939
+ pattern?: string
10940
+ flags?: string
10941
+ } | string)[] | ({
10942
+ pattern?: string
10943
+ flags?: string
10944
+ } | string)))
10945
+ line?: (boolean | (({
10946
+ pattern?: string
10947
+ flags?: string
10948
+ } | string)[] | ({
10949
+ pattern?: string
10950
+ flags?: string
10951
+ } | string)))
10952
+ })
10812
10953
 
10813
10954
  customGroups?: {
10814
10955
  [k: string]: (string | string[]) | undefined
10815
10956
  }
10816
10957
 
10817
- ignoreCase?: boolean
10818
-
10819
- alphabet?: string
10820
-
10821
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
10822
-
10823
- locales?: (string | string[])
10824
-
10825
10958
  groups?: (string | string[] | {
10826
10959
 
10827
10960
  newlinesBetween?: ("ignore" | "always" | "never")
10828
- [k: string]: unknown | undefined
10829
10961
  })[]
10830
-
10831
- order?: ("asc" | "desc")
10832
10962
  }]
10833
10963
  // ----- perfectionist/sort-enums -----
10834
10964
  type PerfectionistSortEnums = []|[{
10835
10965
 
10836
- partitionByComment?: (string[] | boolean | string | {
10837
- block?: (string[] | boolean | string)
10838
- line?: (string[] | boolean | string)
10966
+ fallbackSort?: {
10967
+
10968
+ order?: ("asc" | "desc")
10969
+
10970
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10839
10971
  [k: string]: unknown | undefined
10840
- })
10841
-
10842
- forceNumericSort?: boolean
10843
-
10844
- sortByValue?: boolean
10845
-
10846
- partitionByNewLine?: boolean
10972
+ }
10847
10973
 
10848
10974
  specialCharacters?: ("remove" | "trim" | "keep")
10849
10975
 
@@ -10851,66 +10977,225 @@ type PerfectionistSortEnums = []|[{
10851
10977
 
10852
10978
  alphabet?: string
10853
10979
 
10854
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
10855
-
10856
10980
  locales?: (string | string[])
10857
10981
 
10858
10982
  order?: ("asc" | "desc")
10859
- }]
10860
- // ----- perfectionist/sort-exports -----
10861
- type PerfectionistSortExports = []|[{
10862
10983
 
10863
- partitionByComment?: (string[] | boolean | string | {
10864
- block?: (string[] | boolean | string)
10865
- line?: (string[] | boolean | string)
10866
- [k: string]: unknown | undefined
10867
- })
10984
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10868
10985
 
10869
- groupKind?: ("mixed" | "values-first" | "types-first")
10986
+ forceNumericSort?: boolean
10987
+ customGroups?: ({
10988
+ [k: string]: (string | string[]) | undefined
10989
+ } | ({
10990
+
10991
+ newlinesInside?: ("always" | "never")
10992
+
10993
+ fallbackSort?: {
10994
+
10995
+ order?: ("asc" | "desc")
10996
+
10997
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10998
+ [k: string]: unknown | undefined
10999
+ }
11000
+
11001
+ groupName?: string
11002
+
11003
+ order?: ("asc" | "desc")
11004
+
11005
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11006
+ anyOf?: {
11007
+
11008
+ elementValuePattern?: (({
11009
+ pattern?: string
11010
+ flags?: string
11011
+ } | string)[] | ({
11012
+ pattern?: string
11013
+ flags?: string
11014
+ } | string))
11015
+
11016
+ elementNamePattern?: (({
11017
+ pattern?: string
11018
+ flags?: string
11019
+ } | string)[] | ({
11020
+ pattern?: string
11021
+ flags?: string
11022
+ } | string))
11023
+ }[]
11024
+ } | {
11025
+
11026
+ newlinesInside?: ("always" | "never")
11027
+
11028
+ fallbackSort?: {
11029
+
11030
+ order?: ("asc" | "desc")
11031
+
11032
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11033
+ [k: string]: unknown | undefined
11034
+ }
11035
+
11036
+ groupName?: string
11037
+
11038
+ order?: ("asc" | "desc")
11039
+
11040
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11041
+
11042
+ elementValuePattern?: (({
11043
+ pattern?: string
11044
+ flags?: string
11045
+ } | string)[] | ({
11046
+ pattern?: string
11047
+ flags?: string
11048
+ } | string))
11049
+
11050
+ elementNamePattern?: (({
11051
+ pattern?: string
11052
+ flags?: string
11053
+ } | string)[] | ({
11054
+ pattern?: string
11055
+ flags?: string
11056
+ } | string))
11057
+ })[])
11058
+
11059
+ sortByValue?: boolean
11060
+
11061
+ partitionByComment?: (boolean | (({
11062
+ pattern?: string
11063
+ flags?: string
11064
+ } | string)[] | ({
11065
+ pattern?: string
11066
+ flags?: string
11067
+ } | string)) | {
11068
+ block?: (boolean | (({
11069
+ pattern?: string
11070
+ flags?: string
11071
+ } | string)[] | ({
11072
+ pattern?: string
11073
+ flags?: string
11074
+ } | string)))
11075
+ line?: (boolean | (({
11076
+ pattern?: string
11077
+ flags?: string
11078
+ } | string)[] | ({
11079
+ pattern?: string
11080
+ flags?: string
11081
+ } | string)))
11082
+ })
10870
11083
 
10871
11084
  partitionByNewLine?: boolean
10872
11085
 
11086
+ newlinesBetween?: ("ignore" | "always" | "never")
11087
+
11088
+ groups?: (string | string[] | {
11089
+
11090
+ newlinesBetween?: ("ignore" | "always" | "never")
11091
+ })[]
11092
+ }]
11093
+ // ----- perfectionist/sort-exports -----
11094
+ type PerfectionistSortExports = []|[{
11095
+
11096
+ fallbackSort?: {
11097
+
11098
+ order?: ("asc" | "desc")
11099
+
11100
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11101
+ [k: string]: unknown | undefined
11102
+ }
11103
+
10873
11104
  specialCharacters?: ("remove" | "trim" | "keep")
10874
11105
 
10875
11106
  ignoreCase?: boolean
10876
11107
 
10877
11108
  alphabet?: string
10878
11109
 
10879
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
10880
-
10881
11110
  locales?: (string | string[])
10882
11111
 
10883
11112
  order?: ("asc" | "desc")
11113
+
11114
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11115
+
11116
+ groupKind?: ("mixed" | "values-first" | "types-first")
11117
+
11118
+ partitionByComment?: (boolean | (({
11119
+ pattern?: string
11120
+ flags?: string
11121
+ } | string)[] | ({
11122
+ pattern?: string
11123
+ flags?: string
11124
+ } | string)) | {
11125
+ block?: (boolean | (({
11126
+ pattern?: string
11127
+ flags?: string
11128
+ } | string)[] | ({
11129
+ pattern?: string
11130
+ flags?: string
11131
+ } | string)))
11132
+ line?: (boolean | (({
11133
+ pattern?: string
11134
+ flags?: string
11135
+ } | string)[] | ({
11136
+ pattern?: string
11137
+ flags?: string
11138
+ } | string)))
11139
+ })
11140
+
11141
+ partitionByNewLine?: boolean
10884
11142
  }]
10885
11143
  // ----- perfectionist/sort-heritage-clauses -----
10886
11144
  type PerfectionistSortHeritageClauses = []|[{
10887
11145
 
10888
- specialCharacters?: ("remove" | "trim" | "keep")
10889
-
10890
- customGroups?: {
10891
- [k: string]: (string | string[]) | undefined
11146
+ fallbackSort?: {
11147
+
11148
+ order?: ("asc" | "desc")
11149
+
11150
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11151
+ [k: string]: unknown | undefined
10892
11152
  }
10893
11153
 
11154
+ specialCharacters?: ("remove" | "trim" | "keep")
11155
+
10894
11156
  ignoreCase?: boolean
10895
11157
 
10896
11158
  alphabet?: string
10897
11159
 
10898
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
10899
-
10900
11160
  locales?: (string | string[])
10901
11161
 
11162
+ order?: ("asc" | "desc")
11163
+
11164
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11165
+
11166
+ customGroups?: {
11167
+ [k: string]: (string | string[]) | undefined
11168
+ }
11169
+
10902
11170
  groups?: (string | string[] | {
10903
11171
 
10904
11172
  newlinesBetween?: ("ignore" | "always" | "never")
10905
- [k: string]: unknown | undefined
10906
11173
  })[]
10907
-
10908
- order?: ("asc" | "desc")
10909
11174
  }]
10910
11175
  // ----- perfectionist/sort-imports -----
10911
11176
  type PerfectionistSortImports = []|[_PerfectionistSortImportsSortImports]
10912
11177
  type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLengthRequiresLineLengthType & {
10913
11178
 
11179
+ fallbackSort?: {
11180
+
11181
+ order?: ("asc" | "desc")
11182
+
11183
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11184
+ [k: string]: unknown | undefined
11185
+ }
11186
+
11187
+ specialCharacters?: ("remove" | "trim" | "keep")
11188
+
11189
+ ignoreCase?: boolean
11190
+
11191
+ alphabet?: string
11192
+
11193
+ locales?: (string | string[])
11194
+
11195
+ order?: ("asc" | "desc")
11196
+
11197
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11198
+
10914
11199
  customGroups?: {
10915
11200
 
10916
11201
  value?: {
@@ -10922,14 +11207,6 @@ type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLen
10922
11207
  }
10923
11208
  }
10924
11209
 
10925
- partitionByComment?: (string[] | boolean | string | {
10926
- block?: (string[] | boolean | string)
10927
- line?: (string[] | boolean | string)
10928
- [k: string]: unknown | undefined
10929
- })
10930
-
10931
- internalPattern?: string[]
10932
-
10933
11210
  maxLineLength?: number
10934
11211
 
10935
11212
  sortSideEffects?: boolean
@@ -10938,27 +11215,45 @@ type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLen
10938
11215
 
10939
11216
  tsconfigRootDir?: string
10940
11217
 
10941
- partitionByNewLine?: boolean
11218
+ partitionByComment?: (boolean | (({
11219
+ pattern?: string
11220
+ flags?: string
11221
+ } | string)[] | ({
11222
+ pattern?: string
11223
+ flags?: string
11224
+ } | string)) | {
11225
+ block?: (boolean | (({
11226
+ pattern?: string
11227
+ flags?: string
11228
+ } | string)[] | ({
11229
+ pattern?: string
11230
+ flags?: string
11231
+ } | string)))
11232
+ line?: (boolean | (({
11233
+ pattern?: string
11234
+ flags?: string
11235
+ } | string)[] | ({
11236
+ pattern?: string
11237
+ flags?: string
11238
+ } | string)))
11239
+ })
10942
11240
 
10943
- specialCharacters?: ("remove" | "trim" | "keep")
11241
+ partitionByNewLine?: boolean
10944
11242
 
10945
11243
  newlinesBetween?: ("ignore" | "always" | "never")
10946
11244
 
10947
- ignoreCase?: boolean
10948
-
10949
- alphabet?: string
10950
-
10951
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
10952
-
10953
- locales?: (string | string[])
11245
+ internalPattern?: (({
11246
+ pattern?: string
11247
+ flags?: string
11248
+ } | string)[] | ({
11249
+ pattern?: string
11250
+ flags?: string
11251
+ } | string))
10954
11252
 
10955
11253
  groups?: (string | string[] | {
10956
11254
 
10957
11255
  newlinesBetween?: ("ignore" | "always" | "never")
10958
- [k: string]: unknown | undefined
10959
11256
  })[]
10960
-
10961
- order?: ("asc" | "desc")
10962
11257
  })
10963
11258
  type _PerfectionistSortImportsMaxLineLengthRequiresLineLengthType = ({
10964
11259
  [k: string]: unknown | undefined
@@ -10970,145 +11265,297 @@ interface _PerfectionistSortImports_IsLineLength {
10970
11265
  // ----- perfectionist/sort-interfaces -----
10971
11266
  type PerfectionistSortInterfaces = {
10972
11267
 
10973
- ignorePattern?: string[]
10974
- useConfigurationIf?: {
10975
- allNamesMatchPattern?: string
10976
- declarationMatchesPattern?: string
11268
+ fallbackSort?: {
11269
+
11270
+ order?: ("asc" | "desc")
11271
+
11272
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11273
+ [k: string]: unknown | undefined
10977
11274
  }
10978
11275
 
10979
- partitionByComment?: (string[] | boolean | string | {
10980
- block?: (string[] | boolean | string)
10981
- line?: (string[] | boolean | string)
10982
- [k: string]: unknown | undefined
10983
- })
11276
+ specialCharacters?: ("remove" | "trim" | "keep")
11277
+
11278
+ ignoreCase?: boolean
11279
+
11280
+ alphabet?: string
11281
+
11282
+ locales?: (string | string[])
11283
+
11284
+ order?: ("asc" | "desc")
11285
+
11286
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10984
11287
  customGroups?: ({
10985
11288
  [k: string]: (string | string[]) | undefined
10986
11289
  } | ({
10987
11290
 
10988
- groupName?: string
11291
+ newlinesInside?: ("always" | "never")
11292
+
11293
+ fallbackSort?: {
11294
+
11295
+ order?: ("asc" | "desc")
11296
+
11297
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11298
+ sortBy?: ("name" | "value")
11299
+ [k: string]: unknown | undefined
11300
+ }
10989
11301
 
10990
- type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
11302
+ groupName?: string
10991
11303
 
10992
- order?: ("desc" | "asc")
11304
+ order?: ("asc" | "desc")
10993
11305
 
10994
- newlinesInside?: ("always" | "never")
11306
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10995
11307
  anyOf?: {
10996
11308
 
10997
11309
  modifiers?: ("optional" | "required" | "multiline")[]
10998
11310
 
10999
11311
  selector?: ("index-signature" | "member" | "method" | "multiline" | "property")
11000
11312
 
11001
- elementNamePattern?: string
11313
+ elementValuePattern?: (({
11314
+ pattern?: string
11315
+ flags?: string
11316
+ } | string)[] | ({
11317
+ pattern?: string
11318
+ flags?: string
11319
+ } | string))
11320
+
11321
+ elementNamePattern?: (({
11322
+ pattern?: string
11323
+ flags?: string
11324
+ } | string)[] | ({
11325
+ pattern?: string
11326
+ flags?: string
11327
+ } | string))
11328
+ sortBy?: ("name" | "value")
11002
11329
  }[]
11003
11330
  } | {
11004
11331
 
11005
- groupName?: string
11332
+ newlinesInside?: ("always" | "never")
11333
+
11334
+ fallbackSort?: {
11335
+
11336
+ order?: ("asc" | "desc")
11337
+
11338
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11339
+ sortBy?: ("name" | "value")
11340
+ [k: string]: unknown | undefined
11341
+ }
11006
11342
 
11007
- type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
11343
+ groupName?: string
11008
11344
 
11009
- order?: ("desc" | "asc")
11345
+ order?: ("asc" | "desc")
11010
11346
 
11011
- newlinesInside?: ("always" | "never")
11347
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11012
11348
 
11013
11349
  modifiers?: ("optional" | "required" | "multiline")[]
11014
11350
 
11015
11351
  selector?: ("index-signature" | "member" | "method" | "multiline" | "property")
11016
11352
 
11017
- elementNamePattern?: string
11353
+ elementValuePattern?: (({
11354
+ pattern?: string
11355
+ flags?: string
11356
+ } | string)[] | ({
11357
+ pattern?: string
11358
+ flags?: string
11359
+ } | string))
11360
+
11361
+ elementNamePattern?: (({
11362
+ pattern?: string
11363
+ flags?: string
11364
+ } | string)[] | ({
11365
+ pattern?: string
11366
+ flags?: string
11367
+ } | string))
11368
+ sortBy?: ("name" | "value")
11018
11369
  })[])
11370
+ useConfigurationIf?: {
11371
+
11372
+ allNamesMatchPattern?: (({
11373
+ pattern?: string
11374
+ flags?: string
11375
+ } | string)[] | ({
11376
+ pattern?: string
11377
+ flags?: string
11378
+ } | string))
11379
+
11380
+ declarationMatchesPattern?: (({
11381
+ pattern?: string
11382
+ flags?: string
11383
+ } | string)[] | ({
11384
+ pattern?: string
11385
+ flags?: string
11386
+ } | string))
11387
+ }
11019
11388
 
11020
11389
  groupKind?: ("mixed" | "required-first" | "optional-first")
11021
11390
 
11022
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11391
+ partitionByComment?: (boolean | (({
11392
+ pattern?: string
11393
+ flags?: string
11394
+ } | string)[] | ({
11395
+ pattern?: string
11396
+ flags?: string
11397
+ } | string)) | {
11398
+ block?: (boolean | (({
11399
+ pattern?: string
11400
+ flags?: string
11401
+ } | string)[] | ({
11402
+ pattern?: string
11403
+ flags?: string
11404
+ } | string)))
11405
+ line?: (boolean | (({
11406
+ pattern?: string
11407
+ flags?: string
11408
+ } | string)[] | ({
11409
+ pattern?: string
11410
+ flags?: string
11411
+ } | string)))
11412
+ })
11023
11413
 
11024
11414
  partitionByNewLine?: boolean
11025
11415
 
11026
- specialCharacters?: ("remove" | "trim" | "keep")
11027
-
11028
11416
  newlinesBetween?: ("ignore" | "always" | "never")
11029
11417
 
11030
- ignoreCase?: boolean
11031
-
11032
- alphabet?: string
11033
-
11034
- locales?: (string | string[])
11418
+ ignorePattern?: (({
11419
+ pattern?: string
11420
+ flags?: string
11421
+ } | string)[] | ({
11422
+ pattern?: string
11423
+ flags?: string
11424
+ } | string))
11425
+ sortBy?: ("name" | "value")
11035
11426
 
11036
11427
  groups?: (string | string[] | {
11037
11428
 
11038
11429
  newlinesBetween?: ("ignore" | "always" | "never")
11039
- [k: string]: unknown | undefined
11040
11430
  })[]
11041
-
11042
- order?: ("asc" | "desc")
11043
11431
  }[]
11044
11432
  // ----- perfectionist/sort-intersection-types -----
11045
11433
  type PerfectionistSortIntersectionTypes = []|[{
11046
11434
 
11047
- partitionByComment?: (string[] | boolean | string | {
11048
- block?: (string[] | boolean | string)
11049
- line?: (string[] | boolean | string)
11435
+ fallbackSort?: {
11436
+
11437
+ order?: ("asc" | "desc")
11438
+
11439
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11050
11440
  [k: string]: unknown | undefined
11051
- })
11052
-
11053
- partitionByNewLine?: boolean
11441
+ }
11054
11442
 
11055
11443
  specialCharacters?: ("remove" | "trim" | "keep")
11056
11444
 
11057
- newlinesBetween?: ("ignore" | "always" | "never")
11058
-
11059
11445
  ignoreCase?: boolean
11060
11446
 
11061
11447
  alphabet?: string
11062
11448
 
11063
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
11064
-
11065
11449
  locales?: (string | string[])
11066
11450
 
11451
+ order?: ("asc" | "desc")
11452
+
11453
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11454
+
11455
+ partitionByComment?: (boolean | (({
11456
+ pattern?: string
11457
+ flags?: string
11458
+ } | string)[] | ({
11459
+ pattern?: string
11460
+ flags?: string
11461
+ } | string)) | {
11462
+ block?: (boolean | (({
11463
+ pattern?: string
11464
+ flags?: string
11465
+ } | string)[] | ({
11466
+ pattern?: string
11467
+ flags?: string
11468
+ } | string)))
11469
+ line?: (boolean | (({
11470
+ pattern?: string
11471
+ flags?: string
11472
+ } | string)[] | ({
11473
+ pattern?: string
11474
+ flags?: string
11475
+ } | string)))
11476
+ })
11477
+
11478
+ partitionByNewLine?: boolean
11479
+
11480
+ newlinesBetween?: ("ignore" | "always" | "never")
11481
+
11067
11482
  groups?: (string | string[] | {
11068
11483
 
11069
11484
  newlinesBetween?: ("ignore" | "always" | "never")
11070
- [k: string]: unknown | undefined
11071
11485
  })[]
11072
-
11073
- order?: ("asc" | "desc")
11074
11486
  }]
11075
11487
  // ----- perfectionist/sort-jsx-props -----
11076
- type PerfectionistSortJsxProps = []|[{
11488
+ type PerfectionistSortJsxProps = {
11077
11489
 
11078
- ignorePattern?: string[]
11490
+ fallbackSort?: {
11491
+
11492
+ order?: ("asc" | "desc")
11493
+
11494
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11495
+ [k: string]: unknown | undefined
11496
+ }
11079
11497
 
11080
11498
  specialCharacters?: ("remove" | "trim" | "keep")
11081
11499
 
11082
- customGroups?: {
11083
- [k: string]: (string | string[]) | undefined
11084
- }
11085
-
11086
11500
  ignoreCase?: boolean
11087
11501
 
11088
11502
  alphabet?: string
11089
11503
 
11090
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
11091
-
11092
11504
  locales?: (string | string[])
11093
11505
 
11506
+ order?: ("asc" | "desc")
11507
+
11508
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11509
+ useConfigurationIf?: {
11510
+
11511
+ allNamesMatchPattern?: (({
11512
+ pattern?: string
11513
+ flags?: string
11514
+ } | string)[] | ({
11515
+ pattern?: string
11516
+ flags?: string
11517
+ } | string))
11518
+
11519
+ tagMatchesPattern?: (({
11520
+ pattern?: string
11521
+ flags?: string
11522
+ } | string)[] | ({
11523
+ pattern?: string
11524
+ flags?: string
11525
+ } | string))
11526
+ }
11527
+
11528
+ partitionByNewLine?: boolean
11529
+
11530
+ newlinesBetween?: ("ignore" | "always" | "never")
11531
+
11532
+ customGroups?: {
11533
+ [k: string]: (string | string[]) | undefined
11534
+ }
11535
+
11536
+ ignorePattern?: (({
11537
+ pattern?: string
11538
+ flags?: string
11539
+ } | string)[] | ({
11540
+ pattern?: string
11541
+ flags?: string
11542
+ } | string))
11543
+
11094
11544
  groups?: (string | string[] | {
11095
11545
 
11096
11546
  newlinesBetween?: ("ignore" | "always" | "never")
11097
- [k: string]: unknown | undefined
11098
11547
  })[]
11099
-
11100
- order?: ("asc" | "desc")
11101
- }]
11548
+ }[]
11102
11549
  // ----- perfectionist/sort-maps -----
11103
- type PerfectionistSortMaps = []|[{
11550
+ type PerfectionistSortMaps = {
11104
11551
 
11105
- partitionByComment?: (string[] | boolean | string | {
11106
- block?: (string[] | boolean | string)
11107
- line?: (string[] | boolean | string)
11552
+ fallbackSort?: {
11553
+
11554
+ order?: ("asc" | "desc")
11555
+
11556
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11108
11557
  [k: string]: unknown | undefined
11109
- })
11110
-
11111
- partitionByNewLine?: boolean
11558
+ }
11112
11559
 
11113
11560
  specialCharacters?: ("remove" | "trim" | "keep")
11114
11561
 
@@ -11116,93 +11563,251 @@ type PerfectionistSortMaps = []|[{
11116
11563
 
11117
11564
  alphabet?: string
11118
11565
 
11119
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
11120
-
11121
11566
  locales?: (string | string[])
11122
11567
 
11123
11568
  order?: ("asc" | "desc")
11124
- }]
11569
+
11570
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11571
+
11572
+ customGroups?: ({
11573
+
11574
+ newlinesInside?: ("always" | "never")
11575
+
11576
+ fallbackSort?: {
11577
+
11578
+ order?: ("asc" | "desc")
11579
+
11580
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11581
+ [k: string]: unknown | undefined
11582
+ }
11583
+
11584
+ groupName?: string
11585
+
11586
+ order?: ("asc" | "desc")
11587
+
11588
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11589
+ anyOf?: {
11590
+
11591
+ elementNamePattern?: (({
11592
+ pattern?: string
11593
+ flags?: string
11594
+ } | string)[] | ({
11595
+ pattern?: string
11596
+ flags?: string
11597
+ } | string))
11598
+ }[]
11599
+ } | {
11600
+
11601
+ newlinesInside?: ("always" | "never")
11602
+
11603
+ fallbackSort?: {
11604
+
11605
+ order?: ("asc" | "desc")
11606
+
11607
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11608
+ [k: string]: unknown | undefined
11609
+ }
11610
+
11611
+ groupName?: string
11612
+
11613
+ order?: ("asc" | "desc")
11614
+
11615
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11616
+
11617
+ elementNamePattern?: (({
11618
+ pattern?: string
11619
+ flags?: string
11620
+ } | string)[] | ({
11621
+ pattern?: string
11622
+ flags?: string
11623
+ } | string))
11624
+ })[]
11625
+ useConfigurationIf?: {
11626
+
11627
+ allNamesMatchPattern?: (({
11628
+ pattern?: string
11629
+ flags?: string
11630
+ } | string)[] | ({
11631
+ pattern?: string
11632
+ flags?: string
11633
+ } | string))
11634
+ }
11635
+
11636
+ partitionByComment?: (boolean | (({
11637
+ pattern?: string
11638
+ flags?: string
11639
+ } | string)[] | ({
11640
+ pattern?: string
11641
+ flags?: string
11642
+ } | string)) | {
11643
+ block?: (boolean | (({
11644
+ pattern?: string
11645
+ flags?: string
11646
+ } | string)[] | ({
11647
+ pattern?: string
11648
+ flags?: string
11649
+ } | string)))
11650
+ line?: (boolean | (({
11651
+ pattern?: string
11652
+ flags?: string
11653
+ } | string)[] | ({
11654
+ pattern?: string
11655
+ flags?: string
11656
+ } | string)))
11657
+ })
11658
+
11659
+ partitionByNewLine?: boolean
11660
+
11661
+ newlinesBetween?: ("ignore" | "always" | "never")
11662
+
11663
+ groups?: (string | string[] | {
11664
+
11665
+ newlinesBetween?: ("ignore" | "always" | "never")
11666
+ })[]
11667
+ }[]
11125
11668
  // ----- perfectionist/sort-modules -----
11126
11669
  type PerfectionistSortModules = []|[{
11127
11670
 
11128
- partitionByComment?: (string[] | boolean | string | {
11129
- block?: (string[] | boolean | string)
11130
- line?: (string[] | boolean | string)
11671
+ fallbackSort?: {
11672
+
11673
+ order?: ("asc" | "desc")
11674
+
11675
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11131
11676
  [k: string]: unknown | undefined
11132
- })
11677
+ }
11678
+
11679
+ specialCharacters?: ("remove" | "trim" | "keep")
11680
+
11681
+ ignoreCase?: boolean
11682
+
11683
+ alphabet?: string
11684
+
11685
+ locales?: (string | string[])
11686
+
11687
+ order?: ("asc" | "desc")
11688
+
11689
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11133
11690
 
11134
11691
  customGroups?: ({
11135
11692
 
11136
- groupName?: string
11693
+ newlinesInside?: ("always" | "never")
11137
11694
 
11138
- type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
11695
+ fallbackSort?: {
11696
+
11697
+ order?: ("asc" | "desc")
11698
+
11699
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11700
+ [k: string]: unknown | undefined
11701
+ }
11139
11702
 
11140
- order?: ("desc" | "asc")
11703
+ groupName?: string
11141
11704
 
11142
- newlinesInside?: ("always" | "never")
11705
+ order?: ("asc" | "desc")
11706
+
11707
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11143
11708
  anyOf?: {
11144
11709
 
11145
- decoratorNamePattern?: string
11146
-
11147
11710
  modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[]
11148
11711
 
11149
11712
  selector?: ("enum" | "function" | "interface" | "type" | "class")
11150
11713
 
11151
- elementNamePattern?: string
11714
+ decoratorNamePattern?: (({
11715
+ pattern?: string
11716
+ flags?: string
11717
+ } | string)[] | ({
11718
+ pattern?: string
11719
+ flags?: string
11720
+ } | string))
11721
+
11722
+ elementNamePattern?: (({
11723
+ pattern?: string
11724
+ flags?: string
11725
+ } | string)[] | ({
11726
+ pattern?: string
11727
+ flags?: string
11728
+ } | string))
11152
11729
  }[]
11153
11730
  } | {
11154
11731
 
11155
- groupName?: string
11732
+ newlinesInside?: ("always" | "never")
11156
11733
 
11157
- type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
11734
+ fallbackSort?: {
11735
+
11736
+ order?: ("asc" | "desc")
11737
+
11738
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11739
+ [k: string]: unknown | undefined
11740
+ }
11158
11741
 
11159
- order?: ("desc" | "asc")
11742
+ groupName?: string
11160
11743
 
11161
- newlinesInside?: ("always" | "never")
11744
+ order?: ("asc" | "desc")
11162
11745
 
11163
- decoratorNamePattern?: string
11746
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11164
11747
 
11165
11748
  modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[]
11166
11749
 
11167
11750
  selector?: ("enum" | "function" | "interface" | "type" | "class")
11168
11751
 
11169
- elementNamePattern?: string
11752
+ decoratorNamePattern?: (({
11753
+ pattern?: string
11754
+ flags?: string
11755
+ } | string)[] | ({
11756
+ pattern?: string
11757
+ flags?: string
11758
+ } | string))
11759
+
11760
+ elementNamePattern?: (({
11761
+ pattern?: string
11762
+ flags?: string
11763
+ } | string)[] | ({
11764
+ pattern?: string
11765
+ flags?: string
11766
+ } | string))
11170
11767
  })[]
11171
11768
 
11172
- partitionByNewLine?: boolean
11769
+ partitionByComment?: (boolean | (({
11770
+ pattern?: string
11771
+ flags?: string
11772
+ } | string)[] | ({
11773
+ pattern?: string
11774
+ flags?: string
11775
+ } | string)) | {
11776
+ block?: (boolean | (({
11777
+ pattern?: string
11778
+ flags?: string
11779
+ } | string)[] | ({
11780
+ pattern?: string
11781
+ flags?: string
11782
+ } | string)))
11783
+ line?: (boolean | (({
11784
+ pattern?: string
11785
+ flags?: string
11786
+ } | string)[] | ({
11787
+ pattern?: string
11788
+ flags?: string
11789
+ } | string)))
11790
+ })
11173
11791
 
11174
- specialCharacters?: ("remove" | "trim" | "keep")
11792
+ partitionByNewLine?: boolean
11175
11793
 
11176
11794
  newlinesBetween?: ("ignore" | "always" | "never")
11177
11795
 
11178
- ignoreCase?: boolean
11179
-
11180
- alphabet?: string
11181
-
11182
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
11183
-
11184
- locales?: (string | string[])
11185
-
11186
11796
  groups?: (string | string[] | {
11187
11797
 
11188
11798
  newlinesBetween?: ("ignore" | "always" | "never")
11189
- [k: string]: unknown | undefined
11190
11799
  })[]
11191
-
11192
- order?: ("asc" | "desc")
11193
11800
  }]
11194
11801
  // ----- perfectionist/sort-named-exports -----
11195
11802
  type PerfectionistSortNamedExports = []|[{
11196
11803
 
11197
- partitionByComment?: (string[] | boolean | string | {
11198
- block?: (string[] | boolean | string)
11199
- line?: (string[] | boolean | string)
11804
+ fallbackSort?: {
11805
+
11806
+ order?: ("asc" | "desc")
11807
+
11808
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11200
11809
  [k: string]: unknown | undefined
11201
- })
11202
-
11203
- groupKind?: ("mixed" | "values-first" | "types-first")
11204
-
11205
- partitionByNewLine?: boolean
11810
+ }
11206
11811
 
11207
11812
  specialCharacters?: ("remove" | "trim" | "keep")
11208
11813
 
@@ -11210,285 +11815,644 @@ type PerfectionistSortNamedExports = []|[{
11210
11815
 
11211
11816
  alphabet?: string
11212
11817
 
11213
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
11214
-
11215
11818
  locales?: (string | string[])
11216
11819
 
11217
11820
  order?: ("asc" | "desc")
11821
+
11822
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11823
+
11824
+ groupKind?: ("mixed" | "values-first" | "types-first")
11825
+
11826
+ ignoreAlias?: boolean
11827
+
11828
+ partitionByComment?: (boolean | (({
11829
+ pattern?: string
11830
+ flags?: string
11831
+ } | string)[] | ({
11832
+ pattern?: string
11833
+ flags?: string
11834
+ } | string)) | {
11835
+ block?: (boolean | (({
11836
+ pattern?: string
11837
+ flags?: string
11838
+ } | string)[] | ({
11839
+ pattern?: string
11840
+ flags?: string
11841
+ } | string)))
11842
+ line?: (boolean | (({
11843
+ pattern?: string
11844
+ flags?: string
11845
+ } | string)[] | ({
11846
+ pattern?: string
11847
+ flags?: string
11848
+ } | string)))
11849
+ })
11850
+
11851
+ partitionByNewLine?: boolean
11218
11852
  }]
11219
11853
  // ----- perfectionist/sort-named-imports -----
11220
11854
  type PerfectionistSortNamedImports = []|[{
11221
11855
 
11222
- partitionByComment?: (string[] | boolean | string | {
11223
- block?: (string[] | boolean | string)
11224
- line?: (string[] | boolean | string)
11856
+ fallbackSort?: {
11857
+
11858
+ order?: ("asc" | "desc")
11859
+
11860
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11225
11861
  [k: string]: unknown | undefined
11226
- })
11862
+ }
11863
+
11864
+ specialCharacters?: ("remove" | "trim" | "keep")
11865
+
11866
+ ignoreCase?: boolean
11867
+
11868
+ alphabet?: string
11869
+
11870
+ locales?: (string | string[])
11871
+
11872
+ order?: ("asc" | "desc")
11873
+
11874
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11227
11875
 
11228
11876
  groupKind?: ("mixed" | "values-first" | "types-first")
11229
11877
 
11230
11878
  ignoreAlias?: boolean
11231
11879
 
11880
+ partitionByComment?: (boolean | (({
11881
+ pattern?: string
11882
+ flags?: string
11883
+ } | string)[] | ({
11884
+ pattern?: string
11885
+ flags?: string
11886
+ } | string)) | {
11887
+ block?: (boolean | (({
11888
+ pattern?: string
11889
+ flags?: string
11890
+ } | string)[] | ({
11891
+ pattern?: string
11892
+ flags?: string
11893
+ } | string)))
11894
+ line?: (boolean | (({
11895
+ pattern?: string
11896
+ flags?: string
11897
+ } | string)[] | ({
11898
+ pattern?: string
11899
+ flags?: string
11900
+ } | string)))
11901
+ })
11902
+
11903
+ partitionByNewLine?: boolean
11904
+ }]
11905
+ // ----- perfectionist/sort-object-types -----
11906
+ type PerfectionistSortObjectTypes = {
11907
+
11908
+ fallbackSort?: {
11909
+
11910
+ order?: ("asc" | "desc")
11911
+
11912
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11913
+ [k: string]: unknown | undefined
11914
+ }
11915
+
11916
+ specialCharacters?: ("remove" | "trim" | "keep")
11917
+
11918
+ ignoreCase?: boolean
11919
+
11920
+ alphabet?: string
11921
+
11922
+ locales?: (string | string[])
11923
+
11924
+ order?: ("asc" | "desc")
11925
+
11926
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11927
+ customGroups?: ({
11928
+ [k: string]: (string | string[]) | undefined
11929
+ } | ({
11930
+
11931
+ newlinesInside?: ("always" | "never")
11932
+
11933
+ fallbackSort?: {
11934
+
11935
+ order?: ("asc" | "desc")
11936
+
11937
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11938
+ sortBy?: ("name" | "value")
11939
+ [k: string]: unknown | undefined
11940
+ }
11941
+
11942
+ groupName?: string
11943
+
11944
+ order?: ("asc" | "desc")
11945
+
11946
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11947
+ anyOf?: {
11948
+
11949
+ modifiers?: ("optional" | "required" | "multiline")[]
11950
+
11951
+ selector?: ("index-signature" | "member" | "method" | "multiline" | "property")
11952
+
11953
+ elementValuePattern?: (({
11954
+ pattern?: string
11955
+ flags?: string
11956
+ } | string)[] | ({
11957
+ pattern?: string
11958
+ flags?: string
11959
+ } | string))
11960
+
11961
+ elementNamePattern?: (({
11962
+ pattern?: string
11963
+ flags?: string
11964
+ } | string)[] | ({
11965
+ pattern?: string
11966
+ flags?: string
11967
+ } | string))
11968
+ sortBy?: ("name" | "value")
11969
+ }[]
11970
+ } | {
11971
+
11972
+ newlinesInside?: ("always" | "never")
11973
+
11974
+ fallbackSort?: {
11975
+
11976
+ order?: ("asc" | "desc")
11977
+
11978
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11979
+ sortBy?: ("name" | "value")
11980
+ [k: string]: unknown | undefined
11981
+ }
11982
+
11983
+ groupName?: string
11984
+
11985
+ order?: ("asc" | "desc")
11986
+
11987
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11988
+
11989
+ modifiers?: ("optional" | "required" | "multiline")[]
11990
+
11991
+ selector?: ("index-signature" | "member" | "method" | "multiline" | "property")
11992
+
11993
+ elementValuePattern?: (({
11994
+ pattern?: string
11995
+ flags?: string
11996
+ } | string)[] | ({
11997
+ pattern?: string
11998
+ flags?: string
11999
+ } | string))
12000
+
12001
+ elementNamePattern?: (({
12002
+ pattern?: string
12003
+ flags?: string
12004
+ } | string)[] | ({
12005
+ pattern?: string
12006
+ flags?: string
12007
+ } | string))
12008
+ sortBy?: ("name" | "value")
12009
+ })[])
12010
+ useConfigurationIf?: {
12011
+
12012
+ allNamesMatchPattern?: (({
12013
+ pattern?: string
12014
+ flags?: string
12015
+ } | string)[] | ({
12016
+ pattern?: string
12017
+ flags?: string
12018
+ } | string))
12019
+
12020
+ declarationMatchesPattern?: (({
12021
+ pattern?: string
12022
+ flags?: string
12023
+ } | string)[] | ({
12024
+ pattern?: string
12025
+ flags?: string
12026
+ } | string))
12027
+ }
12028
+
12029
+ groupKind?: ("mixed" | "required-first" | "optional-first")
12030
+
12031
+ partitionByComment?: (boolean | (({
12032
+ pattern?: string
12033
+ flags?: string
12034
+ } | string)[] | ({
12035
+ pattern?: string
12036
+ flags?: string
12037
+ } | string)) | {
12038
+ block?: (boolean | (({
12039
+ pattern?: string
12040
+ flags?: string
12041
+ } | string)[] | ({
12042
+ pattern?: string
12043
+ flags?: string
12044
+ } | string)))
12045
+ line?: (boolean | (({
12046
+ pattern?: string
12047
+ flags?: string
12048
+ } | string)[] | ({
12049
+ pattern?: string
12050
+ flags?: string
12051
+ } | string)))
12052
+ })
12053
+
11232
12054
  partitionByNewLine?: boolean
11233
12055
 
12056
+ newlinesBetween?: ("ignore" | "always" | "never")
12057
+
12058
+ ignorePattern?: (({
12059
+ pattern?: string
12060
+ flags?: string
12061
+ } | string)[] | ({
12062
+ pattern?: string
12063
+ flags?: string
12064
+ } | string))
12065
+ sortBy?: ("name" | "value")
12066
+
12067
+ groups?: (string | string[] | {
12068
+
12069
+ newlinesBetween?: ("ignore" | "always" | "never")
12070
+ })[]
12071
+ }[]
12072
+ // ----- perfectionist/sort-objects -----
12073
+ type PerfectionistSortObjects = {
12074
+
12075
+ fallbackSort?: {
12076
+
12077
+ order?: ("asc" | "desc")
12078
+
12079
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
12080
+ [k: string]: unknown | undefined
12081
+ }
12082
+
11234
12083
  specialCharacters?: ("remove" | "trim" | "keep")
11235
12084
 
11236
12085
  ignoreCase?: boolean
11237
12086
 
11238
12087
  alphabet?: string
11239
12088
 
11240
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
11241
-
11242
12089
  locales?: (string | string[])
11243
12090
 
11244
12091
  order?: ("asc" | "desc")
11245
- }]
11246
- // ----- perfectionist/sort-object-types -----
11247
- type PerfectionistSortObjectTypes = {
11248
12092
 
11249
- ignorePattern?: string[]
11250
- useConfigurationIf?: {
11251
- allNamesMatchPattern?: string
11252
- declarationMatchesPattern?: string
11253
- }
12093
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11254
12094
 
11255
- partitionByComment?: (string[] | boolean | string | {
11256
- block?: (string[] | boolean | string)
11257
- line?: (string[] | boolean | string)
11258
- [k: string]: unknown | undefined
12095
+ destructuredObjects?: (boolean | {
12096
+
12097
+ groups?: boolean
11259
12098
  })
11260
12099
  customGroups?: ({
11261
12100
  [k: string]: (string | string[]) | undefined
11262
12101
  } | ({
11263
12102
 
11264
- groupName?: string
12103
+ newlinesInside?: ("always" | "never")
11265
12104
 
11266
- type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
12105
+ fallbackSort?: {
12106
+
12107
+ order?: ("asc" | "desc")
12108
+
12109
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
12110
+ [k: string]: unknown | undefined
12111
+ }
11267
12112
 
11268
- order?: ("desc" | "asc")
12113
+ groupName?: string
11269
12114
 
11270
- newlinesInside?: ("always" | "never")
12115
+ order?: ("asc" | "desc")
12116
+
12117
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11271
12118
  anyOf?: {
11272
12119
 
11273
12120
  modifiers?: ("optional" | "required" | "multiline")[]
11274
12121
 
11275
- selector?: ("index-signature" | "member" | "method" | "multiline" | "property")
12122
+ selector?: ("member" | "method" | "multiline" | "property")
11276
12123
 
11277
- elementNamePattern?: string
12124
+ elementValuePattern?: (({
12125
+ pattern?: string
12126
+ flags?: string
12127
+ } | string)[] | ({
12128
+ pattern?: string
12129
+ flags?: string
12130
+ } | string))
12131
+
12132
+ elementNamePattern?: (({
12133
+ pattern?: string
12134
+ flags?: string
12135
+ } | string)[] | ({
12136
+ pattern?: string
12137
+ flags?: string
12138
+ } | string))
11278
12139
  }[]
11279
12140
  } | {
11280
12141
 
11281
- groupName?: string
12142
+ newlinesInside?: ("always" | "never")
12143
+
12144
+ fallbackSort?: {
12145
+
12146
+ order?: ("asc" | "desc")
12147
+
12148
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
12149
+ [k: string]: unknown | undefined
12150
+ }
11282
12151
 
11283
- type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
12152
+ groupName?: string
11284
12153
 
11285
- order?: ("desc" | "asc")
12154
+ order?: ("asc" | "desc")
11286
12155
 
11287
- newlinesInside?: ("always" | "never")
12156
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11288
12157
 
11289
12158
  modifiers?: ("optional" | "required" | "multiline")[]
11290
12159
 
11291
- selector?: ("index-signature" | "member" | "method" | "multiline" | "property")
12160
+ selector?: ("member" | "method" | "multiline" | "property")
12161
+
12162
+ elementValuePattern?: (({
12163
+ pattern?: string
12164
+ flags?: string
12165
+ } | string)[] | ({
12166
+ pattern?: string
12167
+ flags?: string
12168
+ } | string))
11292
12169
 
11293
- elementNamePattern?: string
12170
+ elementNamePattern?: (({
12171
+ pattern?: string
12172
+ flags?: string
12173
+ } | string)[] | ({
12174
+ pattern?: string
12175
+ flags?: string
12176
+ } | string))
11294
12177
  })[])
12178
+ useConfigurationIf?: {
12179
+
12180
+ allNamesMatchPattern?: (({
12181
+ pattern?: string
12182
+ flags?: string
12183
+ } | string)[] | ({
12184
+ pattern?: string
12185
+ flags?: string
12186
+ } | string))
12187
+
12188
+ callingFunctionNamePattern?: (({
12189
+ pattern?: string
12190
+ flags?: string
12191
+ } | string)[] | ({
12192
+ pattern?: string
12193
+ flags?: string
12194
+ } | string))
12195
+ }
11295
12196
 
11296
- groupKind?: ("mixed" | "required-first" | "optional-first")
11297
-
11298
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
12197
+ destructureOnly?: boolean
11299
12198
 
11300
- partitionByNewLine?: boolean
12199
+ objectDeclarations?: boolean
11301
12200
 
11302
- specialCharacters?: ("remove" | "trim" | "keep")
12201
+ styledComponents?: boolean
11303
12202
 
11304
- newlinesBetween?: ("ignore" | "always" | "never")
12203
+ partitionByComment?: (boolean | (({
12204
+ pattern?: string
12205
+ flags?: string
12206
+ } | string)[] | ({
12207
+ pattern?: string
12208
+ flags?: string
12209
+ } | string)) | {
12210
+ block?: (boolean | (({
12211
+ pattern?: string
12212
+ flags?: string
12213
+ } | string)[] | ({
12214
+ pattern?: string
12215
+ flags?: string
12216
+ } | string)))
12217
+ line?: (boolean | (({
12218
+ pattern?: string
12219
+ flags?: string
12220
+ } | string)[] | ({
12221
+ pattern?: string
12222
+ flags?: string
12223
+ } | string)))
12224
+ })
11305
12225
 
11306
- ignoreCase?: boolean
12226
+ partitionByNewLine?: boolean
11307
12227
 
11308
- alphabet?: string
12228
+ newlinesBetween?: ("ignore" | "always" | "never")
11309
12229
 
11310
- locales?: (string | string[])
12230
+ ignorePattern?: (({
12231
+ pattern?: string
12232
+ flags?: string
12233
+ } | string)[] | ({
12234
+ pattern?: string
12235
+ flags?: string
12236
+ } | string))
11311
12237
 
11312
12238
  groups?: (string | string[] | {
11313
12239
 
11314
12240
  newlinesBetween?: ("ignore" | "always" | "never")
11315
- [k: string]: unknown | undefined
11316
12241
  })[]
11317
-
11318
- order?: ("asc" | "desc")
11319
12242
  }[]
11320
- // ----- perfectionist/sort-objects -----
11321
- type PerfectionistSortObjects = {
12243
+ // ----- perfectionist/sort-sets -----
12244
+ type PerfectionistSortSets = {
11322
12245
 
11323
- destructuredObjects?: (boolean | {
12246
+ fallbackSort?: {
11324
12247
 
11325
- groups?: boolean
11326
- })
11327
-
11328
- ignorePattern?: string[]
11329
- useConfigurationIf?: {
11330
- allNamesMatchPattern?: string
11331
- callingFunctionNamePattern?: string
11332
- }
11333
-
11334
- partitionByComment?: (string[] | boolean | string | {
11335
- block?: (string[] | boolean | string)
11336
- line?: (string[] | boolean | string)
12248
+ order?: ("asc" | "desc")
12249
+
12250
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11337
12251
  [k: string]: unknown | undefined
11338
- })
11339
-
11340
- destructureOnly?: boolean
11341
-
11342
- objectDeclarations?: boolean
11343
-
11344
- styledComponents?: boolean
11345
-
11346
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11347
-
11348
- partitionByNewLine?: boolean
12252
+ }
11349
12253
 
11350
12254
  specialCharacters?: ("remove" | "trim" | "keep")
11351
12255
 
11352
- newlinesBetween?: ("ignore" | "always" | "never")
11353
-
11354
- customGroups?: {
11355
- [k: string]: (string | string[]) | undefined
11356
- }
11357
-
11358
12256
  ignoreCase?: boolean
11359
12257
 
11360
12258
  alphabet?: string
11361
12259
 
11362
12260
  locales?: (string | string[])
11363
12261
 
11364
- groups?: (string | string[] | {
11365
-
11366
- newlinesBetween?: ("ignore" | "always" | "never")
11367
- [k: string]: unknown | undefined
11368
- })[]
11369
-
11370
12262
  order?: ("asc" | "desc")
11371
- }[]
11372
- // ----- perfectionist/sort-sets -----
11373
- type PerfectionistSortSets = {
11374
12263
 
11375
- partitionByComment?: (string[] | boolean | string | {
11376
- block?: (string[] | boolean | string)
11377
- line?: (string[] | boolean | string)
11378
- [k: string]: unknown | undefined
11379
- })
12264
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11380
12265
 
11381
12266
  groupKind?: ("mixed" | "literals-first" | "spreads-first")
11382
12267
 
11383
12268
  customGroups?: ({
11384
12269
 
11385
- groupName?: string
12270
+ newlinesInside?: ("always" | "never")
12271
+
12272
+ fallbackSort?: {
12273
+
12274
+ order?: ("asc" | "desc")
12275
+
12276
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
12277
+ [k: string]: unknown | undefined
12278
+ }
11386
12279
 
11387
- type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
12280
+ groupName?: string
11388
12281
 
11389
- order?: ("desc" | "asc")
12282
+ order?: ("asc" | "desc")
11390
12283
 
11391
- newlinesInside?: ("always" | "never")
12284
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11392
12285
  anyOf?: {
11393
12286
 
11394
12287
  selector?: ("literal" | "spread")
11395
12288
 
11396
- elementNamePattern?: string
12289
+ elementNamePattern?: (({
12290
+ pattern?: string
12291
+ flags?: string
12292
+ } | string)[] | ({
12293
+ pattern?: string
12294
+ flags?: string
12295
+ } | string))
11397
12296
  }[]
11398
12297
  } | {
11399
12298
 
11400
- groupName?: string
12299
+ newlinesInside?: ("always" | "never")
12300
+
12301
+ fallbackSort?: {
12302
+
12303
+ order?: ("asc" | "desc")
12304
+
12305
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
12306
+ [k: string]: unknown | undefined
12307
+ }
11401
12308
 
11402
- type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
12309
+ groupName?: string
11403
12310
 
11404
- order?: ("desc" | "asc")
12311
+ order?: ("asc" | "desc")
11405
12312
 
11406
- newlinesInside?: ("always" | "never")
12313
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11407
12314
 
11408
12315
  selector?: ("literal" | "spread")
11409
12316
 
11410
- elementNamePattern?: string
12317
+ elementNamePattern?: (({
12318
+ pattern?: string
12319
+ flags?: string
12320
+ } | string)[] | ({
12321
+ pattern?: string
12322
+ flags?: string
12323
+ } | string))
11411
12324
  })[]
11412
12325
  useConfigurationIf?: {
11413
- allNamesMatchPattern?: string
12326
+
12327
+ allNamesMatchPattern?: (({
12328
+ pattern?: string
12329
+ flags?: string
12330
+ } | string)[] | ({
12331
+ pattern?: string
12332
+ flags?: string
12333
+ } | string))
11414
12334
  }
11415
12335
 
11416
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
12336
+ partitionByComment?: (boolean | (({
12337
+ pattern?: string
12338
+ flags?: string
12339
+ } | string)[] | ({
12340
+ pattern?: string
12341
+ flags?: string
12342
+ } | string)) | {
12343
+ block?: (boolean | (({
12344
+ pattern?: string
12345
+ flags?: string
12346
+ } | string)[] | ({
12347
+ pattern?: string
12348
+ flags?: string
12349
+ } | string)))
12350
+ line?: (boolean | (({
12351
+ pattern?: string
12352
+ flags?: string
12353
+ } | string)[] | ({
12354
+ pattern?: string
12355
+ flags?: string
12356
+ } | string)))
12357
+ })
11417
12358
 
11418
12359
  partitionByNewLine?: boolean
11419
12360
 
11420
- specialCharacters?: ("remove" | "trim" | "keep")
11421
-
11422
- ignoreCase?: boolean
11423
-
11424
- alphabet?: string
11425
-
11426
- locales?: (string | string[])
12361
+ newlinesBetween?: ("ignore" | "always" | "never")
11427
12362
 
11428
12363
  groups?: (string | string[] | {
11429
12364
 
11430
12365
  newlinesBetween?: ("ignore" | "always" | "never")
11431
- [k: string]: unknown | undefined
11432
12366
  })[]
11433
-
11434
- order?: ("asc" | "desc")
11435
12367
  }[]
11436
12368
  // ----- perfectionist/sort-switch-case -----
11437
12369
  type PerfectionistSortSwitchCase = []|[{
11438
12370
 
12371
+ fallbackSort?: {
12372
+
12373
+ order?: ("asc" | "desc")
12374
+
12375
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
12376
+ [k: string]: unknown | undefined
12377
+ }
12378
+
11439
12379
  specialCharacters?: ("remove" | "trim" | "keep")
11440
12380
 
11441
12381
  ignoreCase?: boolean
11442
12382
 
11443
12383
  alphabet?: string
11444
12384
 
11445
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
11446
-
11447
12385
  locales?: (string | string[])
11448
12386
 
11449
12387
  order?: ("asc" | "desc")
12388
+
12389
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11450
12390
  }]
11451
12391
  // ----- perfectionist/sort-union-types -----
11452
12392
  type PerfectionistSortUnionTypes = []|[{
11453
12393
 
11454
- partitionByComment?: (string[] | boolean | string | {
11455
- block?: (string[] | boolean | string)
11456
- line?: (string[] | boolean | string)
12394
+ fallbackSort?: {
12395
+
12396
+ order?: ("asc" | "desc")
12397
+
12398
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11457
12399
  [k: string]: unknown | undefined
11458
- })
11459
-
11460
- partitionByNewLine?: boolean
12400
+ }
11461
12401
 
11462
12402
  specialCharacters?: ("remove" | "trim" | "keep")
11463
12403
 
11464
- newlinesBetween?: ("ignore" | "always" | "never")
11465
-
11466
12404
  ignoreCase?: boolean
11467
12405
 
11468
12406
  alphabet?: string
11469
12407
 
11470
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
11471
-
11472
12408
  locales?: (string | string[])
11473
12409
 
12410
+ order?: ("asc" | "desc")
12411
+
12412
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
12413
+
12414
+ partitionByComment?: (boolean | (({
12415
+ pattern?: string
12416
+ flags?: string
12417
+ } | string)[] | ({
12418
+ pattern?: string
12419
+ flags?: string
12420
+ } | string)) | {
12421
+ block?: (boolean | (({
12422
+ pattern?: string
12423
+ flags?: string
12424
+ } | string)[] | ({
12425
+ pattern?: string
12426
+ flags?: string
12427
+ } | string)))
12428
+ line?: (boolean | (({
12429
+ pattern?: string
12430
+ flags?: string
12431
+ } | string)[] | ({
12432
+ pattern?: string
12433
+ flags?: string
12434
+ } | string)))
12435
+ })
12436
+
12437
+ partitionByNewLine?: boolean
12438
+
12439
+ newlinesBetween?: ("ignore" | "always" | "never")
12440
+
11474
12441
  groups?: (string | string[] | {
11475
12442
 
11476
12443
  newlinesBetween?: ("ignore" | "always" | "never")
11477
- [k: string]: unknown | undefined
11478
12444
  })[]
11479
-
11480
- order?: ("asc" | "desc")
11481
12445
  }]
11482
12446
  // ----- perfectionist/sort-variable-declarations -----
11483
12447
  type PerfectionistSortVariableDeclarations = []|[{
11484
12448
 
11485
- partitionByComment?: (string[] | boolean | string | {
11486
- block?: (string[] | boolean | string)
11487
- line?: (string[] | boolean | string)
12449
+ fallbackSort?: {
12450
+
12451
+ order?: ("asc" | "desc")
12452
+
12453
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11488
12454
  [k: string]: unknown | undefined
11489
- })
11490
-
11491
- partitionByNewLine?: boolean
12455
+ }
11492
12456
 
11493
12457
  specialCharacters?: ("remove" | "trim" | "keep")
11494
12458
 
@@ -11496,11 +12460,36 @@ type PerfectionistSortVariableDeclarations = []|[{
11496
12460
 
11497
12461
  alphabet?: string
11498
12462
 
11499
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
11500
-
11501
12463
  locales?: (string | string[])
11502
12464
 
11503
12465
  order?: ("asc" | "desc")
12466
+
12467
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
12468
+
12469
+ partitionByComment?: (boolean | (({
12470
+ pattern?: string
12471
+ flags?: string
12472
+ } | string)[] | ({
12473
+ pattern?: string
12474
+ flags?: string
12475
+ } | string)) | {
12476
+ block?: (boolean | (({
12477
+ pattern?: string
12478
+ flags?: string
12479
+ } | string)[] | ({
12480
+ pattern?: string
12481
+ flags?: string
12482
+ } | string)))
12483
+ line?: (boolean | (({
12484
+ pattern?: string
12485
+ flags?: string
12486
+ } | string)[] | ({
12487
+ pattern?: string
12488
+ flags?: string
12489
+ } | string)))
12490
+ })
12491
+
12492
+ partitionByNewLine?: boolean
11504
12493
  }]
11505
12494
  // ----- prefer-arrow-callback -----
11506
12495
  type PreferArrowCallback = []|[{
@@ -12861,7 +13850,7 @@ type StyleQuoteProps = ([]|[("always" | "as-needed" | "consistent" | "consistent
12861
13850
  // ----- style/quotes -----
12862
13851
  type StyleQuotes = []|[("single" | "double" | "backtick")]|[("single" | "double" | "backtick"), ("avoid-escape" | {
12863
13852
  avoidEscape?: boolean
12864
- allowTemplateLiterals?: boolean
13853
+ allowTemplateLiterals?: (boolean | ("never" | "avoidEscape" | "always"))
12865
13854
  ignoreStringLiterals?: boolean
12866
13855
  })]
12867
13856
  // ----- style/rest-spread-spacing -----
@@ -12899,6 +13888,7 @@ type StyleSpaceInParens = []|[("always" | "never")]|[("always" | "never"), {
12899
13888
  // ----- style/space-infix-ops -----
12900
13889
  type StyleSpaceInfixOps = []|[{
12901
13890
  int32Hint?: boolean
13891
+ ignoreTypes?: boolean
12902
13892
  }]
12903
13893
  // ----- style/space-unary-ops -----
12904
13894
  type StyleSpaceUnaryOps = []|[{
@@ -13120,6 +14110,10 @@ type TestPreferSnapshotHint = []|[("always" | "multi")]
13120
14110
  type TestRequireHook = []|[{
13121
14111
  allowedFunctionCalls?: string[]
13122
14112
  }]
14113
+ // ----- test/require-mock-type-parameters -----
14114
+ type TestRequireMockTypeParameters = []|[{
14115
+ checkImportFunctions?: boolean
14116
+ }]
13123
14117
  // ----- test/require-top-level-describe -----
13124
14118
  type TestRequireTopLevelDescribe = []|[{
13125
14119
  maxNumberOfTopLevelDescribes?: number
@@ -13315,6 +14309,8 @@ type TsConsistentTypeAssertions = []|[({
13315
14309
  assertionStyle: "never"
13316
14310
  } | {
13317
14311
 
14312
+ arrayLiteralTypeAssertions?: ("allow" | "allow-as-parameter" | "never")
14313
+
13318
14314
  assertionStyle?: ("as" | "angle-bracket")
13319
14315
 
13320
14316
  objectLiteralTypeAssertions?: ("allow" | "allow-as-parameter" | "never")
@@ -13393,6 +14389,8 @@ type TsExplicitModuleBoundaryTypes = []|[{
13393
14389
 
13394
14390
  allowHigherOrderFunctions?: boolean
13395
14391
 
14392
+ allowOverloadFunctions?: boolean
14393
+
13396
14394
  allowTypedFunctionExpressions?: boolean
13397
14395
  }]
13398
14396
  // ----- ts/init-declarations -----
@@ -13771,6 +14769,22 @@ type TsNoConfusingVoidExpression = []|[{
13771
14769
 
13772
14770
  ignoreVoidReturningFunctions?: boolean
13773
14771
  }]
14772
+ // ----- ts/no-deprecated -----
14773
+ type TsNoDeprecated = []|[{
14774
+
14775
+ allow?: (string | {
14776
+ from: "file"
14777
+ name: (string | [string, ...(string)[]])
14778
+ path?: string
14779
+ } | {
14780
+ from: "lib"
14781
+ name: (string | [string, ...(string)[]])
14782
+ } | {
14783
+ from: "package"
14784
+ name: (string | [string, ...(string)[]])
14785
+ package: string
14786
+ })[]
14787
+ }]
13774
14788
  // ----- ts/no-duplicate-type-constituents -----
13775
14789
  type TsNoDuplicateTypeConstituents = []|[{
13776
14790
 
@@ -13912,6 +14926,22 @@ type TsNoMisusedPromises = []|[{
13912
14926
  variables?: boolean
13913
14927
  })
13914
14928
  }]
14929
+ // ----- ts/no-misused-spread -----
14930
+ type TsNoMisusedSpread = []|[{
14931
+
14932
+ allow?: (string | {
14933
+ from: "file"
14934
+ name: (string | [string, ...(string)[]])
14935
+ path?: string
14936
+ } | {
14937
+ from: "lib"
14938
+ name: (string | [string, ...(string)[]])
14939
+ } | {
14940
+ from: "package"
14941
+ name: (string | [string, ...(string)[]])
14942
+ package: string
14943
+ })[]
14944
+ }]
13915
14945
  // ----- ts/no-namespace -----
13916
14946
  type TsNoNamespace = []|[{
13917
14947
 
@@ -13987,7 +15017,7 @@ type TsNoShadow = []|[{
13987
15017
 
13988
15018
  builtinGlobals?: boolean
13989
15019
 
13990
- hoist?: ("all" | "functions" | "never")
15020
+ hoist?: ("all" | "functions" | "functions-and-types" | "never" | "types")
13991
15021
 
13992
15022
  ignoreFunctionTypeParameterNameValueShadow?: boolean
13993
15023
 
@@ -14027,11 +15057,13 @@ type TsNoUnnecessaryBooleanLiteralCompare = []|[{
14027
15057
  allowComparingNullableBooleansToFalse?: boolean
14028
15058
 
14029
15059
  allowComparingNullableBooleansToTrue?: boolean
15060
+
15061
+ allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean
14030
15062
  }]
14031
15063
  // ----- ts/no-unnecessary-condition -----
14032
15064
  type TsNoUnnecessaryCondition = []|[{
14033
15065
 
14034
- allowConstantLoopConditions?: boolean
15066
+ allowConstantLoopConditions?: (boolean | ("always" | "never" | "only-allowed-literals"))
14035
15067
 
14036
15068
  allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean
14037
15069
 
@@ -14390,6 +15422,8 @@ type TsUnboundMethod = []|[{
14390
15422
  type TsUnifiedSignatures = []|[{
14391
15423
 
14392
15424
  ignoreDifferentlyNamedParameters?: boolean
15425
+
15426
+ ignoreOverloadsWithDifferentJSDoc?: boolean
14393
15427
  }]
14394
15428
  // ----- unicode-bom -----
14395
15429
  type UnicodeBom = []|[("always" | "never")]
@@ -14457,6 +15491,13 @@ type UnicornNoArrayPushPush = []|[{
14457
15491
  type UnicornNoArrayReduce = []|[{
14458
15492
  allowSimpleOperations?: boolean
14459
15493
  }]
15494
+ // ----- unicorn/no-instanceof-builtins -----
15495
+ type UnicornNoInstanceofBuiltins = []|[{
15496
+ useErrorIsError?: boolean
15497
+ strategy?: ("loose" | "strict")
15498
+ include?: string[]
15499
+ exclude?: string[]
15500
+ }]
14460
15501
  // ----- unicorn/no-keyword-prefix -----
14461
15502
  type UnicornNoKeywordPrefix = []|[{
14462
15503
 
@@ -14668,7 +15709,6 @@ type VueArrayElementNewline = []|[(_VueArrayElementNewlineBasicConfig | {
14668
15709
  ArrayPattern?: _VueArrayElementNewlineBasicConfig
14669
15710
  })]
14670
15711
  type _VueArrayElementNewlineBasicConfig = (("always" | "never" | "consistent") | {
14671
- consistent?: boolean
14672
15712
  multiline?: boolean
14673
15713
  minItems?: (number | null)
14674
15714
  })
@@ -14737,14 +15777,9 @@ type VueCommaDangle = []|[(_VueCommaDangleValue | {
14737
15777
  imports?: _VueCommaDangleValueWithIgnore
14738
15778
  exports?: _VueCommaDangleValueWithIgnore
14739
15779
  functions?: _VueCommaDangleValueWithIgnore
14740
- importAttributes?: _VueCommaDangleValueWithIgnore
14741
- dynamicImports?: _VueCommaDangleValueWithIgnore
14742
- enums?: _VueCommaDangleValueWithIgnore
14743
- generics?: _VueCommaDangleValueWithIgnore
14744
- tuples?: _VueCommaDangleValueWithIgnore
14745
15780
  })]
14746
15781
  type _VueCommaDangleValue = ("always-multiline" | "always" | "never" | "only-multiline")
14747
- type _VueCommaDangleValueWithIgnore = ("always-multiline" | "always" | "never" | "only-multiline" | "ignore")
15782
+ type _VueCommaDangleValueWithIgnore = ("always-multiline" | "always" | "ignore" | "never" | "only-multiline")
14748
15783
  // ----- vue/comma-spacing -----
14749
15784
  type VueCommaSpacing = []|[{
14750
15785
  before?: boolean
@@ -14772,16 +15807,10 @@ type VueComponentNameInTemplateCasing = []|[("PascalCase" | "kebab-case")]|[("Pa
14772
15807
  }]
14773
15808
  // ----- vue/component-options-name-casing -----
14774
15809
  type VueComponentOptionsNameCasing = []|[("camelCase" | "kebab-case" | "PascalCase")]
14775
- // ----- vue/component-tags-order -----
14776
- type VueComponentTagsOrder = []|[{
14777
- order?: (string | string[])[]
14778
- }]
14779
15810
  // ----- vue/custom-event-name-casing -----
14780
- type VueCustomEventNameCasing = ([]|[("kebab-case" | "camelCase")]|[("kebab-case" | "camelCase"), {
14781
- ignores?: string[]
14782
- }] | []|[{
15811
+ type VueCustomEventNameCasing = []|[("kebab-case" | "camelCase")]|[("kebab-case" | "camelCase"), {
14783
15812
  ignores?: string[]
14784
- }])
15813
+ }]
14785
15814
  // ----- vue/define-emits-declaration -----
14786
15815
  type VueDefineEmitsDeclaration = []|[("type-based" | "type-literal" | "runtime")]
14787
15816
  // ----- vue/define-macros-order -----
@@ -14815,10 +15844,6 @@ type VueFirstAttributeLinebreak = []|[{
14815
15844
  // ----- vue/func-call-spacing -----
14816
15845
  type VueFuncCallSpacing = ([]|["never"] | []|["always"]|["always", {
14817
15846
  allowNewlines?: boolean
14818
- optionalChain?: {
14819
- before?: boolean
14820
- after?: boolean
14821
- }
14822
15847
  }])
14823
15848
  // ----- vue/html-button-has-type -----
14824
15849
  type VueHtmlButtonHasType = []|[{
@@ -14900,7 +15925,6 @@ type VueKeySpacing = []|[({
14900
15925
  mode?: ("strict" | "minimum")
14901
15926
  beforeColon?: boolean
14902
15927
  afterColon?: boolean
14903
- ignoredNodes?: ("ObjectExpression" | "ObjectPattern" | "ImportDeclaration" | "ExportNamedDeclaration" | "ExportAllDeclaration" | "TSTypeLiteral" | "TSInterfaceBody" | "ClassBody")[]
14904
15928
  } | {
14905
15929
  singleLine?: {
14906
15930
  mode?: ("strict" | "minimum")
@@ -15137,10 +16161,6 @@ type VueKeywordSpacing = []|[{
15137
16161
  before?: boolean
15138
16162
  after?: boolean
15139
16163
  }
15140
- satisfies?: {
15141
- before?: boolean
15142
- after?: boolean
15143
- }
15144
16164
  set?: {
15145
16165
  before?: boolean
15146
16166
  after?: boolean
@@ -15217,10 +16237,6 @@ type VueKeywordSpacing = []|[{
15217
16237
  before?: boolean
15218
16238
  after?: boolean
15219
16239
  }
15220
- type?: {
15221
- before?: boolean
15222
- after?: boolean
15223
- }
15224
16240
  }
15225
16241
  }]
15226
16242
  // ----- vue/match-component-file-name -----
@@ -15349,10 +16365,7 @@ type VueMultilineHtmlElementContentNewline = []|[{
15349
16365
  allowEmptyLines?: boolean
15350
16366
  }]
15351
16367
  // ----- vue/multiline-ternary -----
15352
- type VueMultilineTernary = []|[("always" | "always-multiline" | "never")]|[("always" | "always-multiline" | "never"), {
15353
- ignoreJSX?: boolean
15354
- [k: string]: unknown | undefined
15355
- }]
16368
+ type VueMultilineTernary = []|[("always" | "always-multiline" | "never")]
15356
16369
  // ----- vue/mustache-interpolation-spacing -----
15357
16370
  type VueMustacheInterpolationSpacing = []|[("always" | "never")]
15358
16371
  // ----- vue/new-line-between-multi-line-property -----
@@ -15427,8 +16440,15 @@ type VueNoExtraParens = ([]|["functions"] | []|["all"]|["all", {
15427
16440
  enforceForNewInMemberExpressions?: boolean
15428
16441
  enforceForFunctionPrototypeMethods?: boolean
15429
16442
  allowParensAfterCommentPattern?: string
15430
- nestedConditionalExpressions?: boolean
15431
16443
  }])
16444
+ // ----- vue/no-implicit-coercion -----
16445
+ type VueNoImplicitCoercion = []|[{
16446
+ boolean?: boolean
16447
+ number?: boolean
16448
+ string?: boolean
16449
+ disallowTemplateShorthand?: boolean
16450
+ allow?: ("~" | "!!" | "+" | "- -" | "-" | "*")[]
16451
+ }]
15432
16452
  // ----- vue/no-irregular-whitespace -----
15433
16453
  type VueNoIrregularWhitespace = []|[{
15434
16454
  skipComments?: boolean
@@ -15670,16 +16690,6 @@ type VueObjectCurlyNewline = []|[((("always" | "never") | {
15670
16690
  minProperties?: number
15671
16691
  consistent?: boolean
15672
16692
  })
15673
- TSTypeLiteral?: (("always" | "never") | {
15674
- multiline?: boolean
15675
- minProperties?: number
15676
- consistent?: boolean
15677
- })
15678
- TSInterfaceBody?: (("always" | "never") | {
15679
- multiline?: boolean
15680
- minProperties?: number
15681
- consistent?: boolean
15682
- })
15683
16693
  })]
15684
16694
  // ----- vue/object-curly-spacing -----
15685
16695
  type VueObjectCurlySpacing = []|[("always" | "never")]|[("always" | "never"), {
@@ -15701,7 +16711,7 @@ type VueObjectShorthand = ([]|[("always" | "methods" | "properties" | "never" |
15701
16711
  avoidExplicitReturnArrows?: boolean
15702
16712
  }])
15703
16713
  // ----- vue/operator-linebreak -----
15704
- type VueOperatorLinebreak = []|[(("after" | "before" | "none") | null)]|[(("after" | "before" | "none") | null), {
16714
+ type VueOperatorLinebreak = []|[("after" | "before" | "none" | null)]|[("after" | "before" | "none" | null), {
15705
16715
  overrides?: {
15706
16716
  [k: string]: ("after" | "before" | "none" | "ignore") | undefined
15707
16717
  }
@@ -15730,9 +16740,13 @@ type VuePaddingLinesInComponentDefinition = []|[(("always" | "never") | {
15730
16740
  groupSingleLineProperties?: boolean
15731
16741
  })]
15732
16742
  // ----- vue/prefer-true-attribute-shorthand -----
15733
- type VuePreferTrueAttributeShorthand = []|[("always" | "never")]
16743
+ type VuePreferTrueAttributeShorthand = []|[("always" | "never")]|[("always" | "never"), {
16744
+ except?: string[]
16745
+ }]
15734
16746
  // ----- vue/prop-name-casing -----
15735
- type VuePropNameCasing = []|[("camelCase" | "snake_case")]
16747
+ type VuePropNameCasing = []|[("camelCase" | "snake_case")]|[("camelCase" | "snake_case"), {
16748
+ ignoreProps?: string[]
16749
+ }]
15736
16750
  // ----- vue/quote-props -----
15737
16751
  type VueQuoteProps = ([]|[("always" | "as-needed" | "consistent" | "consistent-as-needed")] | []|[("always" | "as-needed" | "consistent" | "consistent-as-needed")]|[("always" | "as-needed" | "consistent" | "consistent-as-needed"), {
15738
16752
  keywords?: boolean
@@ -15797,7 +16811,6 @@ type VueSortKeys = []|[("asc" | "desc")]|[("asc" | "desc"), {
15797
16811
  ignoreGrandchildrenOf?: unknown[]
15798
16812
  minKeys?: number
15799
16813
  natural?: boolean
15800
- runOutsideVue?: boolean
15801
16814
  }]
15802
16815
  // ----- vue/space-in-parens -----
15803
16816
  type VueSpaceInParens = []|[("always" | "never")]|[("always" | "never"), {
@@ -15835,10 +16848,6 @@ type VueVOnEventHyphenation = []|[("always" | "never")]|[("always" | "never"), {
15835
16848
  })[]
15836
16849
  ignoreTags?: string[]
15837
16850
  }]
15838
- // ----- vue/v-on-function-call -----
15839
- type VueVOnFunctionCall = []|[("always" | "never")]|[("always" | "never"), {
15840
- ignoreIncludesComment?: boolean
15841
- }]
15842
16851
  // ----- vue/v-on-handler-style -----
15843
16852
  type VueVOnHandlerStyle = []|[(("inline" | "inline-function") | ["method", ("inline" | "inline-function")])]|[(("inline" | "inline-function") | ["method", ("inline" | "inline-function")]), {
15844
16853
  ignoreIncludesComment?: boolean
@@ -16081,7 +17090,7 @@ type Yoda = []|[("always" | "never")]|[("always" | "never"), {
16081
17090
  onlyEquality?: boolean
16082
17091
  }]
16083
17092
  // Names of all the configs
16084
- type ConfigNames = 'luxass/astro/setup' | 'luxass/astro/rules' | 'luxass/eslint-comments' | 'luxass/formatter/setup' | 'luxass/imports' | 'luxass/javascript/setup' | 'luxass/javascript/rules' | 'luxass/disables/cli' | 'luxass/jsdoc/rules' | 'luxass/jsonc/setup' | 'luxass/jsonc/rules' | 'luxass/markdown/setup' | 'luxass/markdown/processor' | 'luxass/markdown/parser' | 'luxass/markdown/disables' | 'luxass/node' | 'luxass/react/setup' | 'luxass/react/rules' | 'luxass/sort/package-json' | 'luxass/perfectionist/setup' | 'luxass/stylistic' | 'luxass/tailwindcss' | 'luxass/sort/tsconfig' | 'luxass/ignores' | 'luxass/test/setup' | 'luxass/test/rules' | 'luxass/toml/setup' | 'luxass/toml/rules' | 'luxass/typescript/setup' | 'luxass/typescript/parser' | 'luxass/typescript/rules' | 'luxass/unicorn/rules' | 'luxass/unocss' | 'luxass/vue/setup' | 'luxass/vue/rules' | 'luxass/yaml/setup' | 'luxass/yaml/rules' | 'luxass/disables/scripts' | 'luxass/disables/cli' | 'luxass/disables/bin' | 'luxass/disables/dts' | 'luxass/disables/cjs' | 'luxass/disables/github-actions' | 'luxass/disables/config-files' | 'luxass/jsx/setup' | 'luxass/regexp/rules'
17093
+ type ConfigNames = 'luxass/astro/setup' | 'luxass/astro/rules' | 'luxass/eslint-comments' | 'luxass/formatter/setup' | 'luxass/imports' | 'luxass/javascript/setup' | 'luxass/javascript/rules' | 'luxass/disables/cli' | 'luxass/jsdoc/rules' | 'luxass/jsonc/setup' | 'luxass/jsonc/rules' | 'luxass/markdown/setup' | 'luxass/markdown/processor' | 'luxass/markdown/parser' | 'luxass/markdown/disables' | 'luxass/node' | 'luxass/react/setup' | 'luxass/react/rules' | 'luxass/sort/package-json' | 'luxass/perfectionist/setup' | 'luxass/stylistic' | 'luxass/tailwindcss' | 'luxass/sort/tsconfig' | 'luxass/ignores' | 'luxass/test/setup' | 'luxass/test/rules' | 'luxass/toml/setup' | 'luxass/toml/rules' | 'luxass/typescript/setup' | 'luxass/typescript/parser' | 'luxass/typescript/rules' | 'luxass/unicorn/rules' | 'luxass/unocss' | 'luxass/vue/setup' | 'luxass/vue/rules' | 'luxass/yaml/setup' | 'luxass/yaml/rules' | 'luxass/yaml/pnpm-workspace' | 'luxass/disables/scripts' | 'luxass/disables/cli' | 'luxass/disables/bin' | 'luxass/disables/dts' | 'luxass/disables/cjs' | 'luxass/disables/github-actions' | 'luxass/disables/config-files' | 'luxass/jsx/setup' | 'luxass/regexp/rules'
16085
17094
 
16086
17095
  type Awaitable<T> = T | Promise<T>;
16087
17096
  type Rules = RuleOptions;