@luxass/eslint-config 4.15.0 → 4.16.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<[]>
@@ -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 '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 '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 '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 '<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 '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,6 +3684,11 @@ 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
@@ -3750,7 +3765,12 @@ interface RuleOptions {
3750
3765
  */
3751
3766
  'react/no-unused-state'?: Linter.RuleEntry<[]>
3752
3767
  /**
3753
- * disallow unnecessary fragments
3768
+ * replace 'useContext' with 'use'
3769
+ * @see https://eslint-react.xyz/docs/rules/no-use-context
3770
+ */
3771
+ 'react/no-use-context'?: Linter.RuleEntry<[]>
3772
+ /**
3773
+ * disallow useless fragments
3754
3774
  * @see https://eslint-react.xyz/docs/rules/no-useless-fragment
3755
3775
  */
3756
3776
  'react/no-useless-fragment'?: Linter.RuleEntry<ReactNoUselessFragment>
@@ -3770,17 +3790,17 @@ interface RuleOptions {
3770
3790
  */
3771
3791
  'react/prefer-read-only-props'?: Linter.RuleEntry<[]>
3772
3792
  /**
3773
- * enforce using shorthand boolean attributes
3793
+ * enforce the use of shorthand syntax for boolean attributes
3774
3794
  * @see https://eslint-react.xyz/docs/rules/prefer-shorthand-boolean
3775
3795
  */
3776
3796
  'react/prefer-shorthand-boolean'?: Linter.RuleEntry<[]>
3777
3797
  /**
3778
- * enforce using fragment syntax instead of 'Fragment' component
3798
+ * enforce the use of shorthand syntax for fragments
3779
3799
  * @see https://eslint-react.xyz/docs/rules/prefer-shorthand-fragment
3780
3800
  */
3781
3801
  'react/prefer-shorthand-fragment'?: Linter.RuleEntry<[]>
3782
3802
  /**
3783
- * helpes `eslint/no-unused-vars` to correctly mark JSX variables as used.
3803
+ * marks variables used in JSX as used
3784
3804
  * @see https://eslint-react.xyz/docs/rules/use-jsx-vars
3785
3805
  */
3786
3806
  'react/use-jsx-vars'?: Linter.RuleEntry<[]>
@@ -4692,7 +4712,7 @@ interface RuleOptions {
4692
4712
  'style/semi'?: Linter.RuleEntry<StyleSemi>
4693
4713
  /**
4694
4714
  * Enforce consistent spacing before and after semicolons
4695
- * @see https://eslint.style/rules/js/semi-spacing
4715
+ * @see https://eslint.style/rules/ts/semi-spacing
4696
4716
  */
4697
4717
  'style/semi-spacing'?: Linter.RuleEntry<StyleSemiSpacing>
4698
4718
  /**
@@ -5064,6 +5084,11 @@ interface RuleOptions {
5064
5084
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-spy-on.md
5065
5085
  */
5066
5086
  'test/prefer-spy-on'?: Linter.RuleEntry<[]>
5087
+ /**
5088
+ * enforce using `toBe(true)` and `toBe(false)` over matchers that coerce types to boolean
5089
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-strict-boolean-matchers.md
5090
+ */
5091
+ 'test/prefer-strict-boolean-matchers'?: Linter.RuleEntry<[]>
5067
5092
  /**
5068
5093
  * enforce strict equal over equal
5069
5094
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-strict-equal.md
@@ -5119,6 +5144,11 @@ interface RuleOptions {
5119
5144
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-local-test-context-for-concurrent-snapshots.md
5120
5145
  */
5121
5146
  'test/require-local-test-context-for-concurrent-snapshots'?: Linter.RuleEntry<[]>
5147
+ /**
5148
+ * enforce using type parameters with vitest mock functions
5149
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-mock-type-parameters.md
5150
+ */
5151
+ 'test/require-mock-type-parameters'?: Linter.RuleEntry<TestRequireMockTypeParameters>
5122
5152
  /**
5123
5153
  * require toThrow() to be called with an error message
5124
5154
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-to-throw-message.md
@@ -5409,7 +5439,7 @@ interface RuleOptions {
5409
5439
  * Disallow using code marked as `@deprecated`
5410
5440
  * @see https://typescript-eslint.io/rules/no-deprecated
5411
5441
  */
5412
- 'ts/no-deprecated'?: Linter.RuleEntry<[]>
5442
+ 'ts/no-deprecated'?: Linter.RuleEntry<TsNoDeprecated>
5413
5443
  /**
5414
5444
  * Disallow duplicate class members
5415
5445
  * @see https://typescript-eslint.io/rules/no-dupe-class-members
@@ -5472,7 +5502,7 @@ interface RuleOptions {
5472
5502
  */
5473
5503
  'ts/no-for-in-array'?: Linter.RuleEntry<[]>
5474
5504
  /**
5475
- * Disallow the use of `eval()`-like methods
5505
+ * Disallow the use of `eval()`-like functions
5476
5506
  * @see https://typescript-eslint.io/rules/no-implied-eval
5477
5507
  */
5478
5508
  'ts/no-implied-eval'?: Linter.RuleEntry<[]>
@@ -5527,6 +5557,11 @@ interface RuleOptions {
5527
5557
  * @see https://typescript-eslint.io/rules/no-misused-promises
5528
5558
  */
5529
5559
  'ts/no-misused-promises'?: Linter.RuleEntry<TsNoMisusedPromises>
5560
+ /**
5561
+ * Disallow using the spread operator when it might cause unexpected behavior
5562
+ * @see https://typescript-eslint.io/rules/no-misused-spread
5563
+ */
5564
+ 'ts/no-misused-spread'?: Linter.RuleEntry<TsNoMisusedSpread>
5530
5565
  /**
5531
5566
  * Disallow enums from having both number and string members
5532
5567
  * @see https://typescript-eslint.io/rules/no-mixed-enums
@@ -5918,702 +5953,642 @@ interface RuleOptions {
5918
5953
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>
5919
5954
  /**
5920
5955
  * 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
5956
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/better-regex.md
5922
5957
  */
5923
5958
  'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>
5924
5959
  /**
5925
5960
  * 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
5961
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/catch-error-name.md
5927
5962
  */
5928
5963
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>
5964
+ /**
5965
+ * Enforce consistent assertion style with `node:assert`.
5966
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-assert.md
5967
+ */
5968
+ 'unicorn/consistent-assert'?: Linter.RuleEntry<[]>
5969
+ /**
5970
+ * Prefer passing `Date` directly to the constructor when cloning.
5971
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-date-clone.md
5972
+ */
5973
+ 'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>
5929
5974
  /**
5930
5975
  * Use destructured variables over properties.
5931
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/consistent-destructuring.md
5976
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-destructuring.md
5932
5977
  */
5933
5978
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>
5934
5979
  /**
5935
5980
  * 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
5981
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-empty-array-spread.md
5937
5982
  */
5938
5983
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>
5939
5984
  /**
5940
5985
  * 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
5986
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-existence-index-check.md
5942
5987
  */
5943
5988
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>
5944
5989
  /**
5945
5990
  * 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
5991
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-function-scoping.md
5947
5992
  */
5948
5993
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>
5949
5994
  /**
5950
5995
  * Enforce correct `Error` subclassing.
5951
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/custom-error-definition.md
5996
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/custom-error-definition.md
5952
5997
  */
5953
5998
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>
5954
5999
  /**
5955
6000
  * Enforce no spaces between braces.
5956
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/empty-brace-spaces.md
6001
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/empty-brace-spaces.md
5957
6002
  */
5958
6003
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>
5959
6004
  /**
5960
6005
  * 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
6006
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/error-message.md
5962
6007
  */
5963
6008
  'unicorn/error-message'?: Linter.RuleEntry<[]>
5964
6009
  /**
5965
6010
  * 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
6011
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/escape-case.md
5967
6012
  */
5968
6013
  'unicorn/escape-case'?: Linter.RuleEntry<[]>
5969
6014
  /**
5970
6015
  * 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
6016
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/expiring-todo-comments.md
5972
6017
  */
5973
6018
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>
5974
6019
  /**
5975
6020
  * 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
6021
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/explicit-length-check.md
5977
6022
  */
5978
6023
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>
5979
6024
  /**
5980
6025
  * Enforce a case style for filenames.
5981
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/filename-case.md
6026
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/filename-case.md
5982
6027
  */
5983
6028
  '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
6029
  /**
5990
6030
  * Enforce specific import styles per module.
5991
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/import-style.md
6031
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/import-style.md
5992
6032
  */
5993
6033
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>
5994
6034
  /**
5995
6035
  * 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
6036
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/new-for-builtins.md
5997
6037
  */
5998
6038
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>
5999
6039
  /**
6000
6040
  * 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
6041
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-abusive-eslint-disable.md
6002
6042
  */
6003
6043
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>
6044
+ /**
6045
+ * Disallow recursive access to `this` within getters and setters.
6046
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-accessor-recursion.md
6047
+ */
6048
+ 'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>
6004
6049
  /**
6005
6050
  * 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
6051
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-anonymous-default-export.md
6007
6052
  */
6008
6053
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>
6009
6054
  /**
6010
6055
  * 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
6056
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-callback-reference.md
6012
6057
  */
6013
6058
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>
6014
6059
  /**
6015
6060
  * 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
6061
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-for-each.md
6017
6062
  */
6018
6063
  '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
6064
  /**
6025
6065
  * 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
6066
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-method-this-argument.md
6027
6067
  */
6028
6068
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>
6029
6069
  /**
6030
6070
  * 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
6071
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-push-push.md
6032
6072
  */
6033
6073
  'unicorn/no-array-push-push'?: Linter.RuleEntry<UnicornNoArrayPushPush>
6034
6074
  /**
6035
6075
  * 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
6076
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-reduce.md
6037
6077
  */
6038
6078
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>
6039
6079
  /**
6040
6080
  * 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
6081
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-await-expression-member.md
6042
6082
  */
6043
6083
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>
6044
6084
  /**
6045
6085
  * 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
6086
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-await-in-promise-methods.md
6047
6087
  */
6048
6088
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>
6049
6089
  /**
6050
6090
  * 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
6091
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-console-spaces.md
6052
6092
  */
6053
6093
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>
6054
6094
  /**
6055
6095
  * 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
6096
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-document-cookie.md
6057
6097
  */
6058
6098
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>
6059
6099
  /**
6060
6100
  * Disallow empty files.
6061
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-empty-file.md
6101
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-empty-file.md
6062
6102
  */
6063
6103
  '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
6104
  /**
6070
6105
  * 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
6106
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-for-loop.md
6072
6107
  */
6073
6108
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>
6074
6109
  /**
6075
6110
  * 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
6111
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-hex-escape.md
6077
6112
  */
6078
6113
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>
6079
6114
  /**
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
6115
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/deprecated-rules.md#no-instanceof-array
6116
+ * @deprecated
6082
6117
  */
6083
6118
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>
6119
+ /**
6120
+ * Disallow `instanceof` with built-in objects
6121
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-instanceof-builtins.md
6122
+ */
6123
+ 'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>
6084
6124
  /**
6085
6125
  * 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
6126
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-invalid-fetch-options.md
6087
6127
  */
6088
6128
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>
6089
6129
  /**
6090
6130
  * 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
6131
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-invalid-remove-event-listener.md
6092
6132
  */
6093
6133
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>
6094
6134
  /**
6095
6135
  * 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
6136
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-keyword-prefix.md
6097
6137
  */
6098
6138
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>
6099
6139
  /**
6100
6140
  * 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
6141
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-length-as-slice-end.md
6102
6142
  */
6103
6143
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>
6104
6144
  /**
6105
6145
  * 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
6146
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-lonely-if.md
6107
6147
  */
6108
6148
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>
6109
6149
  /**
6110
6150
  * 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
6151
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-magic-array-flat-depth.md
6112
6152
  */
6113
6153
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>
6154
+ /**
6155
+ * Disallow named usage of default import and export.
6156
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-named-default.md
6157
+ */
6158
+ 'unicorn/no-named-default'?: Linter.RuleEntry<[]>
6114
6159
  /**
6115
6160
  * Disallow negated conditions.
6116
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-negated-condition.md
6161
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-negated-condition.md
6117
6162
  */
6118
6163
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>
6119
6164
  /**
6120
6165
  * 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
6166
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-negation-in-equality-check.md
6122
6167
  */
6123
6168
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>
6124
6169
  /**
6125
6170
  * Disallow nested ternary expressions.
6126
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-nested-ternary.md
6171
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-nested-ternary.md
6127
6172
  */
6128
6173
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>
6129
6174
  /**
6130
6175
  * Disallow `new Array()`.
6131
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-new-array.md
6176
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-new-array.md
6132
6177
  */
6133
6178
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>
6134
6179
  /**
6135
6180
  * 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
6181
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-new-buffer.md
6137
6182
  */
6138
6183
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>
6139
6184
  /**
6140
6185
  * 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
6186
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-null.md
6142
6187
  */
6143
6188
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>
6144
6189
  /**
6145
6190
  * 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
6191
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-object-as-default-parameter.md
6147
6192
  */
6148
6193
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>
6149
6194
  /**
6150
6195
  * Disallow `process.exit()`.
6151
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-process-exit.md
6196
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-process-exit.md
6152
6197
  */
6153
6198
  '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
6199
  /**
6160
6200
  * 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
6201
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-single-promise-in-promise-methods.md
6162
6202
  */
6163
6203
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>
6164
6204
  /**
6165
6205
  * 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
6206
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-static-only-class.md
6167
6207
  */
6168
6208
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>
6169
6209
  /**
6170
6210
  * Disallow `then` property.
6171
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-thenable.md
6211
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-thenable.md
6172
6212
  */
6173
6213
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>
6174
6214
  /**
6175
6215
  * 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
6216
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-this-assignment.md
6177
6217
  */
6178
6218
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>
6179
6219
  /**
6180
6220
  * Disallow comparing `undefined` using `typeof`.
6181
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-typeof-undefined.md
6221
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-typeof-undefined.md
6182
6222
  */
6183
6223
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>
6184
6224
  /**
6185
6225
  * Disallow awaiting non-promise values.
6186
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unnecessary-await.md
6226
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unnecessary-await.md
6187
6227
  */
6188
6228
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>
6189
6229
  /**
6190
6230
  * 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
6231
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unnecessary-polyfills.md
6192
6232
  */
6193
6233
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>
6194
6234
  /**
6195
6235
  * Disallow unreadable array destructuring.
6196
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unreadable-array-destructuring.md
6236
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unreadable-array-destructuring.md
6197
6237
  */
6198
6238
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>
6199
6239
  /**
6200
6240
  * Disallow unreadable IIFEs.
6201
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unreadable-iife.md
6241
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unreadable-iife.md
6202
6242
  */
6203
6243
  '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
6244
  /**
6210
6245
  * Disallow unused object properties.
6211
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unused-properties.md
6246
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unused-properties.md
6212
6247
  */
6213
6248
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>
6214
6249
  /**
6215
6250
  * 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
6251
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-fallback-in-spread.md
6217
6252
  */
6218
6253
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>
6219
6254
  /**
6220
6255
  * 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
6256
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-length-check.md
6222
6257
  */
6223
6258
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>
6224
6259
  /**
6225
6260
  * 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
6261
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-promise-resolve-reject.md
6227
6262
  */
6228
6263
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>
6229
6264
  /**
6230
6265
  * Disallow unnecessary spread.
6231
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-spread.md
6266
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-spread.md
6232
6267
  */
6233
6268
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>
6234
6269
  /**
6235
6270
  * 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
6271
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-switch-case.md
6237
6272
  */
6238
6273
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>
6239
6274
  /**
6240
6275
  * Disallow useless `undefined`.
6241
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-undefined.md
6276
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-undefined.md
6242
6277
  */
6243
6278
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>
6244
6279
  /**
6245
6280
  * 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
6281
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-zero-fractions.md
6247
6282
  */
6248
6283
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>
6249
6284
  /**
6250
6285
  * 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
6286
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/number-literal-case.md
6252
6287
  */
6253
6288
  'unicorn/number-literal-case'?: Linter.RuleEntry<[]>
6254
6289
  /**
6255
6290
  * 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
6291
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/numeric-separators-style.md
6257
6292
  */
6258
6293
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>
6259
6294
  /**
6260
6295
  * 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
6296
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-add-event-listener.md
6262
6297
  */
6263
6298
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>
6264
6299
  /**
6265
6300
  * 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
6301
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-find.md
6267
6302
  */
6268
6303
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>
6269
6304
  /**
6270
6305
  * 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
6306
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-flat.md
6272
6307
  */
6273
6308
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>
6274
6309
  /**
6275
6310
  * 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
6311
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-flat-map.md
6277
6312
  */
6278
6313
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>
6279
6314
  /**
6280
6315
  * 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
6316
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-index-of.md
6282
6317
  */
6283
6318
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>
6284
6319
  /**
6285
6320
  * 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
6321
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-some.md
6287
6322
  */
6288
6323
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>
6289
6324
  /**
6290
6325
  * 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
6326
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-at.md
6292
6327
  */
6293
6328
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>
6294
6329
  /**
6295
6330
  * 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
6331
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-blob-reading-methods.md
6297
6332
  */
6298
6333
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>
6299
6334
  /**
6300
6335
  * 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
6336
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-code-point.md
6302
6337
  */
6303
6338
  '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
6339
  /**
6310
6340
  * 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
6341
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-date-now.md
6312
6342
  */
6313
6343
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>
6314
6344
  /**
6315
6345
  * Prefer default parameters over reassignment.
6316
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-default-parameters.md
6346
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-default-parameters.md
6317
6347
  */
6318
6348
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>
6319
6349
  /**
6320
6350
  * 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
6351
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-append.md
6322
6352
  */
6323
6353
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>
6324
6354
  /**
6325
6355
  * 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
6356
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-dataset.md
6327
6357
  */
6328
6358
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>
6329
6359
  /**
6330
6360
  * 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
6361
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-remove.md
6332
6362
  */
6333
6363
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>
6334
6364
  /**
6335
6365
  * 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
6366
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-text-content.md
6337
6367
  */
6338
6368
  '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
6369
  /**
6345
6370
  * Prefer `EventTarget` over `EventEmitter`.
6346
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-event-target.md
6371
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-event-target.md
6347
6372
  */
6348
6373
  '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
6374
  /**
6355
6375
  * 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
6376
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-export-from.md
6357
6377
  */
6358
6378
  '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
6379
  /**
6365
6380
  * 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
6381
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-global-this.md
6367
6382
  */
6368
6383
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>
6369
6384
  /**
6370
6385
  * 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
6386
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-includes.md
6372
6387
  */
6373
6388
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>
6374
6389
  /**
6375
6390
  * 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
6391
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-json-parse-buffer.md
6377
6392
  */
6378
6393
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>
6379
6394
  /**
6380
6395
  * 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
6396
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-keyboard-event-key.md
6382
6397
  */
6383
6398
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>
6384
6399
  /**
6385
6400
  * 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
6401
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-logical-operator-over-ternary.md
6387
6402
  */
6388
6403
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>
6389
6404
  /**
6390
6405
  * 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
6406
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-math-min-max.md
6392
6407
  */
6393
6408
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>
6394
6409
  /**
6395
6410
  * 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
6411
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-math-trunc.md
6397
6412
  */
6398
6413
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>
6399
6414
  /**
6400
6415
  * 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
6416
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-modern-dom-apis.md
6402
6417
  */
6403
6418
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>
6404
6419
  /**
6405
6420
  * 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
6421
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-modern-math-apis.md
6407
6422
  */
6408
6423
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>
6409
6424
  /**
6410
6425
  * Prefer JavaScript modules (ESM) over CommonJS.
6411
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-module.md
6426
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-module.md
6412
6427
  */
6413
6428
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>
6414
6429
  /**
6415
6430
  * 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
6431
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-native-coercion-functions.md
6417
6432
  */
6418
6433
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>
6419
6434
  /**
6420
6435
  * 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
6436
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-negative-index.md
6422
6437
  */
6423
6438
  '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
6439
  /**
6430
6440
  * 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
6441
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-node-protocol.md
6432
6442
  */
6433
6443
  '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
6444
  /**
6440
6445
  * 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
6446
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-number-properties.md
6442
6447
  */
6443
6448
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>
6444
6449
  /**
6445
6450
  * 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
6451
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-object-from-entries.md
6447
6452
  */
6448
6453
  '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
6454
  /**
6455
6455
  * 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
6456
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-optional-catch-binding.md
6457
6457
  */
6458
6458
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>
6459
6459
  /**
6460
6460
  * 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
6461
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-prototype-methods.md
6462
6462
  */
6463
6463
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>
6464
6464
  /**
6465
6465
  * 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
6466
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-query-selector.md
6467
6467
  */
6468
6468
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>
6469
6469
  /**
6470
6470
  * 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
6471
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-reflect-apply.md
6472
6472
  */
6473
6473
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>
6474
6474
  /**
6475
6475
  * 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
6476
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-regexp-test.md
6477
6477
  */
6478
6478
  '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
6479
  /**
6485
6480
  * 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
6481
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-set-has.md
6487
6482
  */
6488
6483
  'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>
6489
6484
  /**
6490
6485
  * 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
6486
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-set-size.md
6492
6487
  */
6493
6488
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>
6494
6489
  /**
6495
6490
  * 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
6491
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-spread.md
6497
6492
  */
6498
6493
  '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
6494
  /**
6505
6495
  * 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
6496
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-raw.md
6507
6497
  */
6508
6498
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>
6509
6499
  /**
6510
6500
  * 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
6501
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-replace-all.md
6512
6502
  */
6513
6503
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>
6514
6504
  /**
6515
6505
  * 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
6506
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-slice.md
6517
6507
  */
6518
6508
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>
6519
6509
  /**
6520
6510
  * 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
6511
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-starts-ends-with.md
6522
6512
  */
6523
6513
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>
6524
6514
  /**
6525
6515
  * 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
6516
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-trim-start-end.md
6527
6517
  */
6528
6518
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>
6529
6519
  /**
6530
6520
  * 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
6521
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-structured-clone.md
6532
6522
  */
6533
6523
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>
6534
6524
  /**
6535
6525
  * Prefer `switch` over multiple `else-if`.
6536
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-switch.md
6526
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-switch.md
6537
6527
  */
6538
6528
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>
6539
6529
  /**
6540
6530
  * 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
6531
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-ternary.md
6542
6532
  */
6543
6533
  '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
6534
  /**
6550
6535
  * 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
6536
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-top-level-await.md
6552
6537
  */
6553
6538
  '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
6539
  /**
6560
6540
  * 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
6541
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-type-error.md
6562
6542
  */
6563
6543
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>
6564
6544
  /**
6565
6545
  * Prevent abbreviations.
6566
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prevent-abbreviations.md
6546
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prevent-abbreviations.md
6567
6547
  */
6568
6548
  '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
6549
  /**
6575
6550
  * Enforce consistent relative URL style.
6576
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/relative-url-style.md
6551
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/relative-url-style.md
6577
6552
  */
6578
6553
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>
6579
6554
  /**
6580
6555
  * 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
6556
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/require-array-join-separator.md
6582
6557
  */
6583
6558
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>
6584
6559
  /**
6585
6560
  * 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
6561
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/require-number-to-fixed-digits-argument.md
6587
6562
  */
6588
6563
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>
6589
6564
  /**
6590
6565
  * 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
6566
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/require-post-message-target-origin.md
6592
6567
  */
6593
6568
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>
6594
6569
  /**
6595
6570
  * Enforce better string content.
6596
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/string-content.md
6571
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/string-content.md
6597
6572
  */
6598
6573
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>
6599
6574
  /**
6600
6575
  * 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
6576
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/switch-case-braces.md
6602
6577
  */
6603
6578
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>
6604
6579
  /**
6605
6580
  * Fix whitespace-insensitive template indentation.
6606
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/template-indent.md
6581
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/template-indent.md
6607
6582
  */
6608
6583
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>
6609
6584
  /**
6610
6585
  * 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
6586
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/text-encoding-identifier-case.md
6612
6587
  */
6613
6588
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<[]>
6614
6589
  /**
6615
6590
  * 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
6591
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/throw-new-error.md
6617
6592
  */
6618
6593
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>
6619
6594
  /**
@@ -6761,12 +6736,6 @@ interface RuleOptions {
6761
6736
  * @see https://eslint.vuejs.org/rules/component-options-name-casing.html
6762
6737
  */
6763
6738
  '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
6739
  /**
6771
6740
  * enforce specific casing for custom event name
6772
6741
  * @see https://eslint.vuejs.org/rules/custom-event-name-casing.html
@@ -6833,7 +6802,7 @@ interface RuleOptions {
6833
6802
  */
6834
6803
  'vue/html-closing-bracket-spacing'?: Linter.RuleEntry<VueHtmlClosingBracketSpacing>
6835
6804
  /**
6836
- * enforce unified line brake in HTML comments
6805
+ * enforce unified line break in HTML comments
6837
6806
  * @see https://eslint.vuejs.org/rules/html-comment-content-newline.html
6838
6807
  */
6839
6808
  'vue/html-comment-content-newline'?: Linter.RuleEntry<VueHtmlCommentContentNewline>
@@ -6873,7 +6842,7 @@ interface RuleOptions {
6873
6842
  */
6874
6843
  'vue/jsx-uses-vars'?: Linter.RuleEntry<[]>
6875
6844
  /**
6876
- * Enforce consistent spacing between property names and type annotations in types and interfaces in `<template>`
6845
+ * Enforce consistent spacing between keys and values in object literal properties in `<template>`
6877
6846
  * @see https://eslint.vuejs.org/rules/key-spacing.html
6878
6847
  */
6879
6848
  'vue/key-spacing'?: Linter.RuleEntry<VueKeySpacing>
@@ -7143,11 +7112,15 @@ interface RuleOptions {
7143
7112
  */
7144
7113
  'vue/no-extra-parens'?: Linter.RuleEntry<VueNoExtraParens>
7145
7114
  /**
7146
- * require valid keys in model option
7147
- * @see https://eslint.vuejs.org/rules/no-invalid-model-keys.html
7148
- * @deprecated
7115
+ * Disallow shorthand type conversions in `<template>`
7116
+ * @see https://eslint.vuejs.org/rules/no-implicit-coercion.html
7117
+ */
7118
+ 'vue/no-implicit-coercion'?: Linter.RuleEntry<VueNoImplicitCoercion>
7119
+ /**
7120
+ * disallow importing Vue compiler macros
7121
+ * @see https://eslint.vuejs.org/rules/no-import-compiler-macros.html
7149
7122
  */
7150
- 'vue/no-invalid-model-keys'?: Linter.RuleEntry<[]>
7123
+ 'vue/no-import-compiler-macros'?: Linter.RuleEntry<[]>
7151
7124
  /**
7152
7125
  * disallow irregular whitespace in `.vue` files
7153
7126
  * @see https://eslint.vuejs.org/rules/no-irregular-whitespace.html
@@ -7174,12 +7147,12 @@ interface RuleOptions {
7174
7147
  */
7175
7148
  'vue/no-multi-spaces'?: Linter.RuleEntry<VueNoMultiSpaces>
7176
7149
  /**
7177
- * disallow to pass multiple objects into array to class
7150
+ * disallow passing multiple objects in an array to class
7178
7151
  * @see https://eslint.vuejs.org/rules/no-multiple-objects-in-class.html
7179
7152
  */
7180
7153
  'vue/no-multiple-objects-in-class'?: Linter.RuleEntry<[]>
7181
7154
  /**
7182
- * disallow to pass multiple arguments to scoped slots
7155
+ * disallow passing multiple arguments to scoped slots
7183
7156
  * @see https://eslint.vuejs.org/rules/no-multiple-slot-args.html
7184
7157
  */
7185
7158
  'vue/no-multiple-slot-args'?: Linter.RuleEntry<[]>
@@ -7208,12 +7181,6 @@ interface RuleOptions {
7208
7181
  * @see https://eslint.vuejs.org/rules/no-ref-as-operand.html
7209
7182
  */
7210
7183
  '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
7184
  /**
7218
7185
  * disallow usages of ref objects that can lead to loss of reactivity
7219
7186
  * @see https://eslint.vuejs.org/rules/no-ref-object-reactivity-loss.html
@@ -7304,12 +7271,6 @@ interface RuleOptions {
7304
7271
  * @see https://eslint.vuejs.org/rules/no-root-v-if.html
7305
7272
  */
7306
7273
  '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
7274
  /**
7314
7275
  * disallow usages that lose the reactivity of `props` passed to `setup`
7315
7276
  * @see https://eslint.vuejs.org/rules/no-setup-props-reactivity-loss.html
@@ -7443,6 +7404,7 @@ interface RuleOptions {
7443
7404
  /**
7444
7405
  * disallow `key` attribute on `<template v-for>`
7445
7406
  * @see https://eslint.vuejs.org/rules/no-v-for-template-key.html
7407
+ * @deprecated
7446
7408
  */
7447
7409
  'vue/no-v-for-template-key'?: Linter.RuleEntry<[]>
7448
7410
  /**
@@ -7458,6 +7420,7 @@ interface RuleOptions {
7458
7420
  /**
7459
7421
  * disallow adding an argument to `v-model` used in custom component
7460
7422
  * @see https://eslint.vuejs.org/rules/no-v-model-argument.html
7423
+ * @deprecated
7461
7424
  */
7462
7425
  'vue/no-v-model-argument'?: Linter.RuleEntry<[]>
7463
7426
  /**
@@ -7566,7 +7529,7 @@ interface RuleOptions {
7566
7529
  */
7567
7530
  'vue/prop-name-casing'?: Linter.RuleEntry<VuePropNameCasing>
7568
7531
  /**
7569
- * Require quotes around object literal, type literal, interfaces and enums property names in `<template>`
7532
+ * Require quotes around object literal property names in `<template>`
7570
7533
  * @see https://eslint.vuejs.org/rules/quote-props.html
7571
7534
  */
7572
7535
  'vue/quote-props'?: Linter.RuleEntry<VueQuoteProps>
@@ -7690,12 +7653,6 @@ interface RuleOptions {
7690
7653
  * @see https://eslint.vuejs.org/rules/script-indent.html
7691
7654
  */
7692
7655
  '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
7656
  /**
7700
7657
  * require a line break before and after the contents of a singleline element
7701
7658
  * @see https://eslint.vuejs.org/rules/singleline-html-element-content-newline.html
@@ -7766,12 +7723,6 @@ interface RuleOptions {
7766
7723
  * @see https://eslint.vuejs.org/rules/v-on-event-hyphenation.html
7767
7724
  */
7768
7725
  '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
7726
  /**
7776
7727
  * enforce writing style for handlers in `v-on` directives
7777
7728
  * @see https://eslint.vuejs.org/rules/v-on-handler-style.html
@@ -7810,6 +7761,7 @@ interface RuleOptions {
7810
7761
  /**
7811
7762
  * require valid keys in model option
7812
7763
  * @see https://eslint.vuejs.org/rules/valid-model-definition.html
7764
+ * @deprecated
7813
7765
  */
7814
7766
  'vue/valid-model-definition'?: Linter.RuleEntry<[]>
7815
7767
  /**
@@ -7830,6 +7782,7 @@ interface RuleOptions {
7830
7782
  /**
7831
7783
  * enforce valid `.sync` modifier on `v-bind` directives
7832
7784
  * @see https://eslint.vuejs.org/rules/valid-v-bind-sync.html
7785
+ * @deprecated
7833
7786
  */
7834
7787
  'vue/valid-v-bind-sync'?: Linter.RuleEntry<[]>
7835
7788
  /**
@@ -10653,11 +10606,25 @@ type PaddingLineBetweenStatements = {
10653
10606
  // ----- perfectionist/sort-array-includes -----
10654
10607
  type PerfectionistSortArrayIncludes = {
10655
10608
 
10656
- partitionByComment?: (string[] | boolean | string | {
10657
- block?: (string[] | boolean | string)
10658
- line?: (string[] | boolean | string)
10609
+ specialCharacters?: ("remove" | "trim" | "keep")
10610
+
10611
+ fallbackSort?: {
10612
+
10613
+ order?: ("asc" | "desc")
10614
+
10615
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10659
10616
  [k: string]: unknown | undefined
10660
- })
10617
+ }
10618
+
10619
+ ignoreCase?: boolean
10620
+
10621
+ alphabet?: string
10622
+
10623
+ locales?: (string | string[])
10624
+
10625
+ order?: ("asc" | "desc")
10626
+
10627
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10661
10628
 
10662
10629
  groupKind?: ("mixed" | "literals-first" | "spreads-first")
10663
10630
 
@@ -10674,7 +10641,13 @@ type PerfectionistSortArrayIncludes = {
10674
10641
 
10675
10642
  selector?: ("literal" | "spread")
10676
10643
 
10677
- elementNamePattern?: string
10644
+ elementNamePattern?: (({
10645
+ pattern?: string
10646
+ flags?: string
10647
+ } | string)[] | ({
10648
+ pattern?: string
10649
+ flags?: string
10650
+ } | string))
10678
10651
  }[]
10679
10652
  } | {
10680
10653
 
@@ -10688,42 +10661,79 @@ type PerfectionistSortArrayIncludes = {
10688
10661
 
10689
10662
  selector?: ("literal" | "spread")
10690
10663
 
10691
- elementNamePattern?: string
10664
+ elementNamePattern?: (({
10665
+ pattern?: string
10666
+ flags?: string
10667
+ } | string)[] | ({
10668
+ pattern?: string
10669
+ flags?: string
10670
+ } | string))
10692
10671
  })[]
10693
10672
  useConfigurationIf?: {
10694
- allNamesMatchPattern?: string
10673
+
10674
+ allNamesMatchPattern?: (({
10675
+ pattern?: string
10676
+ flags?: string
10677
+ } | string)[] | ({
10678
+ pattern?: string
10679
+ flags?: string
10680
+ } | string))
10695
10681
  }
10696
10682
 
10697
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10683
+ partitionByComment?: (boolean | (({
10684
+ pattern?: string
10685
+ flags?: string
10686
+ } | string)[] | ({
10687
+ pattern?: string
10688
+ flags?: string
10689
+ } | string)) | {
10690
+ block?: (boolean | (({
10691
+ pattern?: string
10692
+ flags?: string
10693
+ } | string)[] | ({
10694
+ pattern?: string
10695
+ flags?: string
10696
+ } | string)))
10697
+ line?: (boolean | (({
10698
+ pattern?: string
10699
+ flags?: string
10700
+ } | string)[] | ({
10701
+ pattern?: string
10702
+ flags?: string
10703
+ } | string)))
10704
+ })
10698
10705
 
10699
10706
  partitionByNewLine?: boolean
10700
10707
 
10701
- specialCharacters?: ("remove" | "trim" | "keep")
10702
-
10703
- ignoreCase?: boolean
10704
-
10705
- alphabet?: string
10706
-
10707
- locales?: (string | string[])
10708
+ newlinesBetween?: ("ignore" | "always" | "never")
10708
10709
 
10709
10710
  groups?: (string | string[] | {
10710
10711
 
10711
10712
  newlinesBetween?: ("ignore" | "always" | "never")
10712
- [k: string]: unknown | undefined
10713
10713
  })[]
10714
-
10715
- order?: ("asc" | "desc")
10716
10714
  }[]
10717
10715
  // ----- perfectionist/sort-classes -----
10718
10716
  type PerfectionistSortClasses = []|[{
10719
10717
 
10720
- ignoreCallbackDependenciesPatterns?: string[]
10718
+ specialCharacters?: ("remove" | "trim" | "keep")
10721
10719
 
10722
- partitionByComment?: (string[] | boolean | string | {
10723
- block?: (string[] | boolean | string)
10724
- line?: (string[] | boolean | string)
10720
+ fallbackSort?: {
10721
+
10722
+ order?: ("asc" | "desc")
10723
+
10724
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10725
10725
  [k: string]: unknown | undefined
10726
- })
10726
+ }
10727
+
10728
+ ignoreCase?: boolean
10729
+
10730
+ alphabet?: string
10731
+
10732
+ locales?: (string | string[])
10733
+
10734
+ order?: ("asc" | "desc")
10735
+
10736
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10727
10737
 
10728
10738
  customGroups?: ({
10729
10739
 
@@ -10736,15 +10746,33 @@ type PerfectionistSortClasses = []|[{
10736
10746
  newlinesInside?: ("always" | "never")
10737
10747
  anyOf?: {
10738
10748
 
10739
- elementValuePattern?: string
10740
-
10741
- decoratorNamePattern?: string
10742
-
10743
10749
  modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[]
10744
10750
 
10745
10751
  selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method")
10746
10752
 
10747
- elementNamePattern?: string
10753
+ decoratorNamePattern?: (({
10754
+ pattern?: string
10755
+ flags?: string
10756
+ } | string)[] | ({
10757
+ pattern?: string
10758
+ flags?: string
10759
+ } | string))
10760
+
10761
+ elementValuePattern?: (({
10762
+ pattern?: string
10763
+ flags?: string
10764
+ } | string)[] | ({
10765
+ pattern?: string
10766
+ flags?: string
10767
+ } | string))
10768
+
10769
+ elementNamePattern?: (({
10770
+ pattern?: string
10771
+ flags?: string
10772
+ } | string)[] | ({
10773
+ pattern?: string
10774
+ flags?: string
10775
+ } | string))
10748
10776
  }[]
10749
10777
  } | {
10750
10778
 
@@ -10756,47 +10784,97 @@ type PerfectionistSortClasses = []|[{
10756
10784
 
10757
10785
  newlinesInside?: ("always" | "never")
10758
10786
 
10759
- elementValuePattern?: string
10760
-
10761
- decoratorNamePattern?: string
10762
-
10763
10787
  modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[]
10764
10788
 
10765
10789
  selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method")
10766
10790
 
10767
- elementNamePattern?: string
10791
+ decoratorNamePattern?: (({
10792
+ pattern?: string
10793
+ flags?: string
10794
+ } | string)[] | ({
10795
+ pattern?: string
10796
+ flags?: string
10797
+ } | string))
10798
+
10799
+ elementValuePattern?: (({
10800
+ pattern?: string
10801
+ flags?: string
10802
+ } | string)[] | ({
10803
+ pattern?: string
10804
+ flags?: string
10805
+ } | string))
10806
+
10807
+ elementNamePattern?: (({
10808
+ pattern?: string
10809
+ flags?: string
10810
+ } | string)[] | ({
10811
+ pattern?: string
10812
+ flags?: string
10813
+ } | string))
10768
10814
  })[]
10769
10815
 
10770
- partitionByNewLine?: boolean
10816
+ ignoreCallbackDependenciesPatterns?: (({
10817
+ pattern?: string
10818
+ flags?: string
10819
+ } | string)[] | ({
10820
+ pattern?: string
10821
+ flags?: string
10822
+ } | string))
10823
+
10824
+ partitionByComment?: (boolean | (({
10825
+ pattern?: string
10826
+ flags?: string
10827
+ } | string)[] | ({
10828
+ pattern?: string
10829
+ flags?: string
10830
+ } | string)) | {
10831
+ block?: (boolean | (({
10832
+ pattern?: string
10833
+ flags?: string
10834
+ } | string)[] | ({
10835
+ pattern?: string
10836
+ flags?: string
10837
+ } | string)))
10838
+ line?: (boolean | (({
10839
+ pattern?: string
10840
+ flags?: string
10841
+ } | string)[] | ({
10842
+ pattern?: string
10843
+ flags?: string
10844
+ } | string)))
10845
+ })
10771
10846
 
10772
- specialCharacters?: ("remove" | "trim" | "keep")
10847
+ partitionByNewLine?: boolean
10773
10848
 
10774
10849
  newlinesBetween?: ("ignore" | "always" | "never")
10775
10850
 
10776
- ignoreCase?: boolean
10777
-
10778
- alphabet?: string
10779
-
10780
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
10781
-
10782
- locales?: (string | string[])
10783
-
10784
10851
  groups?: (string | string[] | {
10785
10852
 
10786
10853
  newlinesBetween?: ("ignore" | "always" | "never")
10787
- [k: string]: unknown | undefined
10788
10854
  })[]
10789
-
10790
- order?: ("asc" | "desc")
10791
10855
  }]
10792
10856
  // ----- perfectionist/sort-decorators -----
10793
10857
  type PerfectionistSortDecorators = []|[{
10794
10858
 
10795
- partitionByComment?: (string[] | boolean | string | {
10796
- block?: (string[] | boolean | string)
10797
- line?: (string[] | boolean | string)
10859
+ specialCharacters?: ("remove" | "trim" | "keep")
10860
+
10861
+ fallbackSort?: {
10862
+
10863
+ order?: ("asc" | "desc")
10864
+
10865
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10798
10866
  [k: string]: unknown | undefined
10799
- })
10867
+ }
10868
+
10869
+ ignoreCase?: boolean
10870
+
10871
+ alphabet?: string
10872
+
10873
+ locales?: (string | string[])
10874
+
10875
+ order?: ("asc" | "desc")
10876
+
10877
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10800
10878
 
10801
10879
  sortOnParameters?: boolean
10802
10880
 
@@ -10808,109 +10886,258 @@ type PerfectionistSortDecorators = []|[{
10808
10886
 
10809
10887
  sortOnClasses?: boolean
10810
10888
 
10811
- specialCharacters?: ("remove" | "trim" | "keep")
10889
+ partitionByComment?: (boolean | (({
10890
+ pattern?: string
10891
+ flags?: string
10892
+ } | string)[] | ({
10893
+ pattern?: string
10894
+ flags?: string
10895
+ } | string)) | {
10896
+ block?: (boolean | (({
10897
+ pattern?: string
10898
+ flags?: string
10899
+ } | string)[] | ({
10900
+ pattern?: string
10901
+ flags?: string
10902
+ } | string)))
10903
+ line?: (boolean | (({
10904
+ pattern?: string
10905
+ flags?: string
10906
+ } | string)[] | ({
10907
+ pattern?: string
10908
+ flags?: string
10909
+ } | string)))
10910
+ })
10812
10911
 
10813
10912
  customGroups?: {
10814
10913
  [k: string]: (string | string[]) | undefined
10815
10914
  }
10816
10915
 
10817
- ignoreCase?: boolean
10818
-
10819
- alphabet?: string
10820
-
10821
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
10822
-
10823
- locales?: (string | string[])
10824
-
10825
10916
  groups?: (string | string[] | {
10826
10917
 
10827
10918
  newlinesBetween?: ("ignore" | "always" | "never")
10828
- [k: string]: unknown | undefined
10829
10919
  })[]
10830
-
10831
- order?: ("asc" | "desc")
10832
10920
  }]
10833
10921
  // ----- perfectionist/sort-enums -----
10834
10922
  type PerfectionistSortEnums = []|[{
10835
10923
 
10836
- partitionByComment?: (string[] | boolean | string | {
10837
- block?: (string[] | boolean | string)
10838
- line?: (string[] | boolean | string)
10839
- [k: string]: unknown | undefined
10840
- })
10841
-
10842
- forceNumericSort?: boolean
10843
-
10844
- sortByValue?: boolean
10845
-
10846
- partitionByNewLine?: boolean
10847
-
10848
10924
  specialCharacters?: ("remove" | "trim" | "keep")
10849
10925
 
10926
+ fallbackSort?: {
10927
+
10928
+ order?: ("asc" | "desc")
10929
+
10930
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10931
+ [k: string]: unknown | undefined
10932
+ }
10933
+
10850
10934
  ignoreCase?: boolean
10851
10935
 
10852
10936
  alphabet?: string
10853
10937
 
10854
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
10855
-
10856
10938
  locales?: (string | string[])
10857
10939
 
10858
10940
  order?: ("asc" | "desc")
10859
- }]
10860
- // ----- perfectionist/sort-exports -----
10861
- type PerfectionistSortExports = []|[{
10862
10941
 
10863
- partitionByComment?: (string[] | boolean | string | {
10864
- block?: (string[] | boolean | string)
10865
- line?: (string[] | boolean | string)
10866
- [k: string]: unknown | undefined
10867
- })
10942
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10868
10943
 
10869
- groupKind?: ("mixed" | "values-first" | "types-first")
10944
+ forceNumericSort?: boolean
10945
+ customGroups?: ({
10946
+ [k: string]: (string | string[]) | undefined
10947
+ } | ({
10948
+
10949
+ groupName?: string
10950
+
10951
+ type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
10952
+
10953
+ order?: ("desc" | "asc")
10954
+
10955
+ newlinesInside?: ("always" | "never")
10956
+ anyOf?: {
10957
+
10958
+ elementValuePattern?: (({
10959
+ pattern?: string
10960
+ flags?: string
10961
+ } | string)[] | ({
10962
+ pattern?: string
10963
+ flags?: string
10964
+ } | string))
10965
+
10966
+ elementNamePattern?: (({
10967
+ pattern?: string
10968
+ flags?: string
10969
+ } | string)[] | ({
10970
+ pattern?: string
10971
+ flags?: string
10972
+ } | string))
10973
+ }[]
10974
+ } | {
10975
+
10976
+ groupName?: string
10977
+
10978
+ type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
10979
+
10980
+ order?: ("desc" | "asc")
10981
+
10982
+ newlinesInside?: ("always" | "never")
10983
+
10984
+ elementValuePattern?: (({
10985
+ pattern?: string
10986
+ flags?: string
10987
+ } | string)[] | ({
10988
+ pattern?: string
10989
+ flags?: string
10990
+ } | string))
10991
+
10992
+ elementNamePattern?: (({
10993
+ pattern?: string
10994
+ flags?: string
10995
+ } | string)[] | ({
10996
+ pattern?: string
10997
+ flags?: string
10998
+ } | string))
10999
+ })[])
10870
11000
 
10871
- partitionByNewLine?: boolean
11001
+ sortByValue?: boolean
10872
11002
 
10873
- specialCharacters?: ("remove" | "trim" | "keep")
11003
+ partitionByComment?: (boolean | (({
11004
+ pattern?: string
11005
+ flags?: string
11006
+ } | string)[] | ({
11007
+ pattern?: string
11008
+ flags?: string
11009
+ } | string)) | {
11010
+ block?: (boolean | (({
11011
+ pattern?: string
11012
+ flags?: string
11013
+ } | string)[] | ({
11014
+ pattern?: string
11015
+ flags?: string
11016
+ } | string)))
11017
+ line?: (boolean | (({
11018
+ pattern?: string
11019
+ flags?: string
11020
+ } | string)[] | ({
11021
+ pattern?: string
11022
+ flags?: string
11023
+ } | string)))
11024
+ })
10874
11025
 
10875
- ignoreCase?: boolean
11026
+ partitionByNewLine?: boolean
10876
11027
 
10877
- alphabet?: string
11028
+ newlinesBetween?: ("ignore" | "always" | "never")
10878
11029
 
10879
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
11030
+ groups?: (string | string[] | {
11031
+
11032
+ newlinesBetween?: ("ignore" | "always" | "never")
11033
+ })[]
11034
+ }]
11035
+ // ----- perfectionist/sort-exports -----
11036
+ type PerfectionistSortExports = []|[{
11037
+
11038
+ specialCharacters?: ("remove" | "trim" | "keep")
11039
+
11040
+ fallbackSort?: {
11041
+
11042
+ order?: ("asc" | "desc")
11043
+
11044
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11045
+ [k: string]: unknown | undefined
11046
+ }
11047
+
11048
+ ignoreCase?: boolean
11049
+
11050
+ alphabet?: string
10880
11051
 
10881
11052
  locales?: (string | string[])
10882
11053
 
10883
11054
  order?: ("asc" | "desc")
11055
+
11056
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11057
+
11058
+ groupKind?: ("mixed" | "values-first" | "types-first")
11059
+
11060
+ partitionByComment?: (boolean | (({
11061
+ pattern?: string
11062
+ flags?: string
11063
+ } | string)[] | ({
11064
+ pattern?: string
11065
+ flags?: string
11066
+ } | string)) | {
11067
+ block?: (boolean | (({
11068
+ pattern?: string
11069
+ flags?: string
11070
+ } | string)[] | ({
11071
+ pattern?: string
11072
+ flags?: string
11073
+ } | string)))
11074
+ line?: (boolean | (({
11075
+ pattern?: string
11076
+ flags?: string
11077
+ } | string)[] | ({
11078
+ pattern?: string
11079
+ flags?: string
11080
+ } | string)))
11081
+ })
11082
+
11083
+ partitionByNewLine?: boolean
10884
11084
  }]
10885
11085
  // ----- perfectionist/sort-heritage-clauses -----
10886
11086
  type PerfectionistSortHeritageClauses = []|[{
10887
11087
 
10888
11088
  specialCharacters?: ("remove" | "trim" | "keep")
10889
11089
 
10890
- customGroups?: {
10891
- [k: string]: (string | string[]) | undefined
11090
+ fallbackSort?: {
11091
+
11092
+ order?: ("asc" | "desc")
11093
+
11094
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11095
+ [k: string]: unknown | undefined
10892
11096
  }
10893
11097
 
10894
11098
  ignoreCase?: boolean
10895
11099
 
10896
11100
  alphabet?: string
10897
11101
 
10898
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
10899
-
10900
11102
  locales?: (string | string[])
10901
11103
 
11104
+ order?: ("asc" | "desc")
11105
+
11106
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11107
+
11108
+ customGroups?: {
11109
+ [k: string]: (string | string[]) | undefined
11110
+ }
11111
+
10902
11112
  groups?: (string | string[] | {
10903
11113
 
10904
11114
  newlinesBetween?: ("ignore" | "always" | "never")
10905
- [k: string]: unknown | undefined
10906
11115
  })[]
10907
-
10908
- order?: ("asc" | "desc")
10909
11116
  }]
10910
11117
  // ----- perfectionist/sort-imports -----
10911
11118
  type PerfectionistSortImports = []|[_PerfectionistSortImportsSortImports]
10912
11119
  type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLengthRequiresLineLengthType & {
10913
11120
 
11121
+ specialCharacters?: ("remove" | "trim" | "keep")
11122
+
11123
+ fallbackSort?: {
11124
+
11125
+ order?: ("asc" | "desc")
11126
+
11127
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11128
+ [k: string]: unknown | undefined
11129
+ }
11130
+
11131
+ ignoreCase?: boolean
11132
+
11133
+ alphabet?: string
11134
+
11135
+ locales?: (string | string[])
11136
+
11137
+ order?: ("asc" | "desc")
11138
+
11139
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11140
+
10914
11141
  customGroups?: {
10915
11142
 
10916
11143
  value?: {
@@ -10922,14 +11149,6 @@ type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLen
10922
11149
  }
10923
11150
  }
10924
11151
 
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
11152
  maxLineLength?: number
10934
11153
 
10935
11154
  sortSideEffects?: boolean
@@ -10938,27 +11157,45 @@ type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLen
10938
11157
 
10939
11158
  tsconfigRootDir?: string
10940
11159
 
10941
- partitionByNewLine?: boolean
11160
+ partitionByComment?: (boolean | (({
11161
+ pattern?: string
11162
+ flags?: string
11163
+ } | string)[] | ({
11164
+ pattern?: string
11165
+ flags?: string
11166
+ } | string)) | {
11167
+ block?: (boolean | (({
11168
+ pattern?: string
11169
+ flags?: string
11170
+ } | string)[] | ({
11171
+ pattern?: string
11172
+ flags?: string
11173
+ } | string)))
11174
+ line?: (boolean | (({
11175
+ pattern?: string
11176
+ flags?: string
11177
+ } | string)[] | ({
11178
+ pattern?: string
11179
+ flags?: string
11180
+ } | string)))
11181
+ })
10942
11182
 
10943
- specialCharacters?: ("remove" | "trim" | "keep")
11183
+ partitionByNewLine?: boolean
10944
11184
 
10945
11185
  newlinesBetween?: ("ignore" | "always" | "never")
10946
11186
 
10947
- ignoreCase?: boolean
10948
-
10949
- alphabet?: string
10950
-
10951
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
10952
-
10953
- locales?: (string | string[])
11187
+ internalPattern?: (({
11188
+ pattern?: string
11189
+ flags?: string
11190
+ } | string)[] | ({
11191
+ pattern?: string
11192
+ flags?: string
11193
+ } | string))
10954
11194
 
10955
11195
  groups?: (string | string[] | {
10956
11196
 
10957
11197
  newlinesBetween?: ("ignore" | "always" | "never")
10958
- [k: string]: unknown | undefined
10959
11198
  })[]
10960
-
10961
- order?: ("asc" | "desc")
10962
11199
  })
10963
11200
  type _PerfectionistSortImportsMaxLineLengthRequiresLineLengthType = ({
10964
11201
  [k: string]: unknown | undefined
@@ -10970,17 +11207,25 @@ interface _PerfectionistSortImports_IsLineLength {
10970
11207
  // ----- perfectionist/sort-interfaces -----
10971
11208
  type PerfectionistSortInterfaces = {
10972
11209
 
10973
- ignorePattern?: string[]
10974
- useConfigurationIf?: {
10975
- allNamesMatchPattern?: string
10976
- declarationMatchesPattern?: string
10977
- }
11210
+ specialCharacters?: ("remove" | "trim" | "keep")
10978
11211
 
10979
- partitionByComment?: (string[] | boolean | string | {
10980
- block?: (string[] | boolean | string)
10981
- line?: (string[] | boolean | string)
11212
+ fallbackSort?: {
11213
+
11214
+ order?: ("asc" | "desc")
11215
+
11216
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10982
11217
  [k: string]: unknown | undefined
10983
- })
11218
+ }
11219
+
11220
+ ignoreCase?: boolean
11221
+
11222
+ alphabet?: string
11223
+
11224
+ locales?: (string | string[])
11225
+
11226
+ order?: ("asc" | "desc")
11227
+
11228
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10984
11229
  customGroups?: ({
10985
11230
  [k: string]: (string | string[]) | undefined
10986
11231
  } | ({
@@ -10998,7 +11243,13 @@ type PerfectionistSortInterfaces = {
10998
11243
 
10999
11244
  selector?: ("index-signature" | "member" | "method" | "multiline" | "property")
11000
11245
 
11001
- elementNamePattern?: string
11246
+ elementNamePattern?: (({
11247
+ pattern?: string
11248
+ flags?: string
11249
+ } | string)[] | ({
11250
+ pattern?: string
11251
+ flags?: string
11252
+ } | string))
11002
11253
  }[]
11003
11254
  } | {
11004
11255
 
@@ -11014,122 +11265,317 @@ type PerfectionistSortInterfaces = {
11014
11265
 
11015
11266
  selector?: ("index-signature" | "member" | "method" | "multiline" | "property")
11016
11267
 
11017
- elementNamePattern?: string
11268
+ elementNamePattern?: (({
11269
+ pattern?: string
11270
+ flags?: string
11271
+ } | string)[] | ({
11272
+ pattern?: string
11273
+ flags?: string
11274
+ } | string))
11018
11275
  })[])
11276
+ useConfigurationIf?: {
11277
+
11278
+ allNamesMatchPattern?: (({
11279
+ pattern?: string
11280
+ flags?: string
11281
+ } | string)[] | ({
11282
+ pattern?: string
11283
+ flags?: string
11284
+ } | string))
11285
+
11286
+ declarationMatchesPattern?: (({
11287
+ pattern?: string
11288
+ flags?: string
11289
+ } | string)[] | ({
11290
+ pattern?: string
11291
+ flags?: string
11292
+ } | string))
11293
+ }
11019
11294
 
11020
11295
  groupKind?: ("mixed" | "required-first" | "optional-first")
11021
11296
 
11022
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11297
+ partitionByComment?: (boolean | (({
11298
+ pattern?: string
11299
+ flags?: string
11300
+ } | string)[] | ({
11301
+ pattern?: string
11302
+ flags?: string
11303
+ } | string)) | {
11304
+ block?: (boolean | (({
11305
+ pattern?: string
11306
+ flags?: string
11307
+ } | string)[] | ({
11308
+ pattern?: string
11309
+ flags?: string
11310
+ } | string)))
11311
+ line?: (boolean | (({
11312
+ pattern?: string
11313
+ flags?: string
11314
+ } | string)[] | ({
11315
+ pattern?: string
11316
+ flags?: string
11317
+ } | string)))
11318
+ })
11023
11319
 
11024
11320
  partitionByNewLine?: boolean
11025
11321
 
11026
- specialCharacters?: ("remove" | "trim" | "keep")
11027
-
11028
11322
  newlinesBetween?: ("ignore" | "always" | "never")
11029
11323
 
11030
- ignoreCase?: boolean
11031
-
11032
- alphabet?: string
11033
-
11034
- locales?: (string | string[])
11324
+ ignorePattern?: (({
11325
+ pattern?: string
11326
+ flags?: string
11327
+ } | string)[] | ({
11328
+ pattern?: string
11329
+ flags?: string
11330
+ } | string))
11035
11331
 
11036
11332
  groups?: (string | string[] | {
11037
11333
 
11038
11334
  newlinesBetween?: ("ignore" | "always" | "never")
11039
- [k: string]: unknown | undefined
11040
11335
  })[]
11041
-
11042
- order?: ("asc" | "desc")
11043
11336
  }[]
11044
11337
  // ----- perfectionist/sort-intersection-types -----
11045
11338
  type PerfectionistSortIntersectionTypes = []|[{
11046
11339
 
11047
- partitionByComment?: (string[] | boolean | string | {
11048
- block?: (string[] | boolean | string)
11049
- line?: (string[] | boolean | string)
11050
- [k: string]: unknown | undefined
11051
- })
11052
-
11053
- partitionByNewLine?: boolean
11054
-
11055
11340
  specialCharacters?: ("remove" | "trim" | "keep")
11056
11341
 
11057
- newlinesBetween?: ("ignore" | "always" | "never")
11342
+ fallbackSort?: {
11343
+
11344
+ order?: ("asc" | "desc")
11345
+
11346
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11347
+ [k: string]: unknown | undefined
11348
+ }
11058
11349
 
11059
11350
  ignoreCase?: boolean
11060
11351
 
11061
11352
  alphabet?: string
11062
11353
 
11063
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
11064
-
11065
11354
  locales?: (string | string[])
11066
11355
 
11356
+ order?: ("asc" | "desc")
11357
+
11358
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11359
+
11360
+ partitionByComment?: (boolean | (({
11361
+ pattern?: string
11362
+ flags?: string
11363
+ } | string)[] | ({
11364
+ pattern?: string
11365
+ flags?: string
11366
+ } | string)) | {
11367
+ block?: (boolean | (({
11368
+ pattern?: string
11369
+ flags?: string
11370
+ } | string)[] | ({
11371
+ pattern?: string
11372
+ flags?: string
11373
+ } | string)))
11374
+ line?: (boolean | (({
11375
+ pattern?: string
11376
+ flags?: string
11377
+ } | string)[] | ({
11378
+ pattern?: string
11379
+ flags?: string
11380
+ } | string)))
11381
+ })
11382
+
11383
+ partitionByNewLine?: boolean
11384
+
11385
+ newlinesBetween?: ("ignore" | "always" | "never")
11386
+
11067
11387
  groups?: (string | string[] | {
11068
11388
 
11069
11389
  newlinesBetween?: ("ignore" | "always" | "never")
11070
- [k: string]: unknown | undefined
11071
11390
  })[]
11072
-
11073
- order?: ("asc" | "desc")
11074
11391
  }]
11075
11392
  // ----- perfectionist/sort-jsx-props -----
11076
- type PerfectionistSortJsxProps = []|[{
11077
-
11078
- ignorePattern?: string[]
11393
+ type PerfectionistSortJsxProps = {
11079
11394
 
11080
11395
  specialCharacters?: ("remove" | "trim" | "keep")
11081
11396
 
11082
- customGroups?: {
11083
- [k: string]: (string | string[]) | undefined
11397
+ fallbackSort?: {
11398
+
11399
+ order?: ("asc" | "desc")
11400
+
11401
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11402
+ [k: string]: unknown | undefined
11084
11403
  }
11085
11404
 
11086
11405
  ignoreCase?: boolean
11087
11406
 
11088
11407
  alphabet?: string
11089
11408
 
11090
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
11091
-
11092
11409
  locales?: (string | string[])
11093
11410
 
11411
+ order?: ("asc" | "desc")
11412
+
11413
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11414
+ useConfigurationIf?: {
11415
+
11416
+ allNamesMatchPattern?: (({
11417
+ pattern?: string
11418
+ flags?: string
11419
+ } | string)[] | ({
11420
+ pattern?: string
11421
+ flags?: string
11422
+ } | string))
11423
+
11424
+ tagMatchesPattern?: (({
11425
+ pattern?: string
11426
+ flags?: string
11427
+ } | string)[] | ({
11428
+ pattern?: string
11429
+ flags?: string
11430
+ } | string))
11431
+ }
11432
+
11433
+ partitionByNewLine?: boolean
11434
+
11435
+ newlinesBetween?: ("ignore" | "always" | "never")
11436
+
11437
+ customGroups?: {
11438
+ [k: string]: (string | string[]) | undefined
11439
+ }
11440
+
11441
+ ignorePattern?: (({
11442
+ pattern?: string
11443
+ flags?: string
11444
+ } | string)[] | ({
11445
+ pattern?: string
11446
+ flags?: string
11447
+ } | string))
11448
+
11094
11449
  groups?: (string | string[] | {
11095
11450
 
11096
11451
  newlinesBetween?: ("ignore" | "always" | "never")
11097
- [k: string]: unknown | undefined
11098
11452
  })[]
11099
-
11100
- order?: ("asc" | "desc")
11101
- }]
11453
+ }[]
11102
11454
  // ----- perfectionist/sort-maps -----
11103
- type PerfectionistSortMaps = []|[{
11455
+ type PerfectionistSortMaps = {
11104
11456
 
11105
- partitionByComment?: (string[] | boolean | string | {
11106
- block?: (string[] | boolean | string)
11107
- line?: (string[] | boolean | string)
11457
+ specialCharacters?: ("remove" | "trim" | "keep")
11458
+
11459
+ fallbackSort?: {
11460
+
11461
+ order?: ("asc" | "desc")
11462
+
11463
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11108
11464
  [k: string]: unknown | undefined
11465
+ }
11466
+
11467
+ ignoreCase?: boolean
11468
+
11469
+ alphabet?: string
11470
+
11471
+ locales?: (string | string[])
11472
+
11473
+ order?: ("asc" | "desc")
11474
+
11475
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11476
+
11477
+ customGroups?: ({
11478
+
11479
+ groupName?: string
11480
+
11481
+ type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
11482
+
11483
+ order?: ("desc" | "asc")
11484
+
11485
+ newlinesInside?: ("always" | "never")
11486
+ anyOf?: {
11487
+
11488
+ elementNamePattern?: (({
11489
+ pattern?: string
11490
+ flags?: string
11491
+ } | string)[] | ({
11492
+ pattern?: string
11493
+ flags?: string
11494
+ } | string))
11495
+ }[]
11496
+ } | {
11497
+
11498
+ groupName?: string
11499
+
11500
+ type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
11501
+
11502
+ order?: ("desc" | "asc")
11503
+
11504
+ newlinesInside?: ("always" | "never")
11505
+
11506
+ elementNamePattern?: (({
11507
+ pattern?: string
11508
+ flags?: string
11509
+ } | string)[] | ({
11510
+ pattern?: string
11511
+ flags?: string
11512
+ } | string))
11513
+ })[]
11514
+ useConfigurationIf?: {
11515
+
11516
+ allNamesMatchPattern?: (({
11517
+ pattern?: string
11518
+ flags?: string
11519
+ } | string)[] | ({
11520
+ pattern?: string
11521
+ flags?: string
11522
+ } | string))
11523
+ }
11524
+
11525
+ partitionByComment?: (boolean | (({
11526
+ pattern?: string
11527
+ flags?: string
11528
+ } | string)[] | ({
11529
+ pattern?: string
11530
+ flags?: string
11531
+ } | string)) | {
11532
+ block?: (boolean | (({
11533
+ pattern?: string
11534
+ flags?: string
11535
+ } | string)[] | ({
11536
+ pattern?: string
11537
+ flags?: string
11538
+ } | string)))
11539
+ line?: (boolean | (({
11540
+ pattern?: string
11541
+ flags?: string
11542
+ } | string)[] | ({
11543
+ pattern?: string
11544
+ flags?: string
11545
+ } | string)))
11109
11546
  })
11110
11547
 
11111
11548
  partitionByNewLine?: boolean
11112
11549
 
11550
+ newlinesBetween?: ("ignore" | "always" | "never")
11551
+
11552
+ groups?: (string | string[] | {
11553
+
11554
+ newlinesBetween?: ("ignore" | "always" | "never")
11555
+ })[]
11556
+ }[]
11557
+ // ----- perfectionist/sort-modules -----
11558
+ type PerfectionistSortModules = []|[{
11559
+
11113
11560
  specialCharacters?: ("remove" | "trim" | "keep")
11114
11561
 
11562
+ fallbackSort?: {
11563
+
11564
+ order?: ("asc" | "desc")
11565
+
11566
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11567
+ [k: string]: unknown | undefined
11568
+ }
11569
+
11115
11570
  ignoreCase?: boolean
11116
11571
 
11117
11572
  alphabet?: string
11118
11573
 
11119
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
11120
-
11121
11574
  locales?: (string | string[])
11122
11575
 
11123
11576
  order?: ("asc" | "desc")
11124
- }]
11125
- // ----- perfectionist/sort-modules -----
11126
- type PerfectionistSortModules = []|[{
11127
11577
 
11128
- partitionByComment?: (string[] | boolean | string | {
11129
- block?: (string[] | boolean | string)
11130
- line?: (string[] | boolean | string)
11131
- [k: string]: unknown | undefined
11132
- })
11578
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11133
11579
 
11134
11580
  customGroups?: ({
11135
11581
 
@@ -11142,13 +11588,25 @@ type PerfectionistSortModules = []|[{
11142
11588
  newlinesInside?: ("always" | "never")
11143
11589
  anyOf?: {
11144
11590
 
11145
- decoratorNamePattern?: string
11146
-
11147
11591
  modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[]
11148
11592
 
11149
11593
  selector?: ("enum" | "function" | "interface" | "type" | "class")
11150
11594
 
11151
- elementNamePattern?: string
11595
+ decoratorNamePattern?: (({
11596
+ pattern?: string
11597
+ flags?: string
11598
+ } | string)[] | ({
11599
+ pattern?: string
11600
+ flags?: string
11601
+ } | string))
11602
+
11603
+ elementNamePattern?: (({
11604
+ pattern?: string
11605
+ flags?: string
11606
+ } | string)[] | ({
11607
+ pattern?: string
11608
+ flags?: string
11609
+ } | string))
11152
11610
  }[]
11153
11611
  } | {
11154
11612
 
@@ -11160,103 +11618,185 @@ type PerfectionistSortModules = []|[{
11160
11618
 
11161
11619
  newlinesInside?: ("always" | "never")
11162
11620
 
11163
- decoratorNamePattern?: string
11164
-
11165
11621
  modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[]
11166
11622
 
11167
11623
  selector?: ("enum" | "function" | "interface" | "type" | "class")
11168
11624
 
11169
- elementNamePattern?: string
11625
+ decoratorNamePattern?: (({
11626
+ pattern?: string
11627
+ flags?: string
11628
+ } | string)[] | ({
11629
+ pattern?: string
11630
+ flags?: string
11631
+ } | string))
11632
+
11633
+ elementNamePattern?: (({
11634
+ pattern?: string
11635
+ flags?: string
11636
+ } | string)[] | ({
11637
+ pattern?: string
11638
+ flags?: string
11639
+ } | string))
11170
11640
  })[]
11171
11641
 
11172
- partitionByNewLine?: boolean
11642
+ partitionByComment?: (boolean | (({
11643
+ pattern?: string
11644
+ flags?: string
11645
+ } | string)[] | ({
11646
+ pattern?: string
11647
+ flags?: string
11648
+ } | string)) | {
11649
+ block?: (boolean | (({
11650
+ pattern?: string
11651
+ flags?: string
11652
+ } | string)[] | ({
11653
+ pattern?: string
11654
+ flags?: string
11655
+ } | string)))
11656
+ line?: (boolean | (({
11657
+ pattern?: string
11658
+ flags?: string
11659
+ } | string)[] | ({
11660
+ pattern?: string
11661
+ flags?: string
11662
+ } | string)))
11663
+ })
11173
11664
 
11174
- specialCharacters?: ("remove" | "trim" | "keep")
11665
+ partitionByNewLine?: boolean
11175
11666
 
11176
11667
  newlinesBetween?: ("ignore" | "always" | "never")
11177
11668
 
11178
- ignoreCase?: boolean
11179
-
11180
- alphabet?: string
11181
-
11182
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
11183
-
11184
- locales?: (string | string[])
11185
-
11186
11669
  groups?: (string | string[] | {
11187
11670
 
11188
11671
  newlinesBetween?: ("ignore" | "always" | "never")
11189
- [k: string]: unknown | undefined
11190
11672
  })[]
11191
-
11192
- order?: ("asc" | "desc")
11193
11673
  }]
11194
11674
  // ----- perfectionist/sort-named-exports -----
11195
11675
  type PerfectionistSortNamedExports = []|[{
11196
11676
 
11197
- partitionByComment?: (string[] | boolean | string | {
11198
- block?: (string[] | boolean | string)
11199
- line?: (string[] | boolean | string)
11200
- [k: string]: unknown | undefined
11201
- })
11202
-
11203
- groupKind?: ("mixed" | "values-first" | "types-first")
11204
-
11205
- partitionByNewLine?: boolean
11206
-
11207
11677
  specialCharacters?: ("remove" | "trim" | "keep")
11208
11678
 
11679
+ fallbackSort?: {
11680
+
11681
+ order?: ("asc" | "desc")
11682
+
11683
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11684
+ [k: string]: unknown | undefined
11685
+ }
11686
+
11209
11687
  ignoreCase?: boolean
11210
11688
 
11211
11689
  alphabet?: string
11212
11690
 
11213
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
11214
-
11215
11691
  locales?: (string | string[])
11216
11692
 
11217
11693
  order?: ("asc" | "desc")
11218
- }]
11219
- // ----- perfectionist/sort-named-imports -----
11220
- type PerfectionistSortNamedImports = []|[{
11221
11694
 
11222
- partitionByComment?: (string[] | boolean | string | {
11223
- block?: (string[] | boolean | string)
11224
- line?: (string[] | boolean | string)
11225
- [k: string]: unknown | undefined
11226
- })
11695
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11227
11696
 
11228
11697
  groupKind?: ("mixed" | "values-first" | "types-first")
11229
11698
 
11230
11699
  ignoreAlias?: boolean
11231
11700
 
11701
+ partitionByComment?: (boolean | (({
11702
+ pattern?: string
11703
+ flags?: string
11704
+ } | string)[] | ({
11705
+ pattern?: string
11706
+ flags?: string
11707
+ } | string)) | {
11708
+ block?: (boolean | (({
11709
+ pattern?: string
11710
+ flags?: string
11711
+ } | string)[] | ({
11712
+ pattern?: string
11713
+ flags?: string
11714
+ } | string)))
11715
+ line?: (boolean | (({
11716
+ pattern?: string
11717
+ flags?: string
11718
+ } | string)[] | ({
11719
+ pattern?: string
11720
+ flags?: string
11721
+ } | string)))
11722
+ })
11723
+
11232
11724
  partitionByNewLine?: boolean
11725
+ }]
11726
+ // ----- perfectionist/sort-named-imports -----
11727
+ type PerfectionistSortNamedImports = []|[{
11233
11728
 
11234
11729
  specialCharacters?: ("remove" | "trim" | "keep")
11235
11730
 
11731
+ fallbackSort?: {
11732
+
11733
+ order?: ("asc" | "desc")
11734
+
11735
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11736
+ [k: string]: unknown | undefined
11737
+ }
11738
+
11236
11739
  ignoreCase?: boolean
11237
11740
 
11238
11741
  alphabet?: string
11239
11742
 
11240
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
11241
-
11242
11743
  locales?: (string | string[])
11243
11744
 
11244
11745
  order?: ("asc" | "desc")
11746
+
11747
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11748
+
11749
+ groupKind?: ("mixed" | "values-first" | "types-first")
11750
+
11751
+ ignoreAlias?: boolean
11752
+
11753
+ partitionByComment?: (boolean | (({
11754
+ pattern?: string
11755
+ flags?: string
11756
+ } | string)[] | ({
11757
+ pattern?: string
11758
+ flags?: string
11759
+ } | string)) | {
11760
+ block?: (boolean | (({
11761
+ pattern?: string
11762
+ flags?: string
11763
+ } | string)[] | ({
11764
+ pattern?: string
11765
+ flags?: string
11766
+ } | string)))
11767
+ line?: (boolean | (({
11768
+ pattern?: string
11769
+ flags?: string
11770
+ } | string)[] | ({
11771
+ pattern?: string
11772
+ flags?: string
11773
+ } | string)))
11774
+ })
11775
+
11776
+ partitionByNewLine?: boolean
11245
11777
  }]
11246
11778
  // ----- perfectionist/sort-object-types -----
11247
11779
  type PerfectionistSortObjectTypes = {
11248
11780
 
11249
- ignorePattern?: string[]
11250
- useConfigurationIf?: {
11251
- allNamesMatchPattern?: string
11252
- declarationMatchesPattern?: string
11253
- }
11781
+ specialCharacters?: ("remove" | "trim" | "keep")
11782
+
11783
+ fallbackSort?: {
11784
+
11785
+ order?: ("asc" | "desc")
11786
+
11787
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11788
+ [k: string]: unknown | undefined
11789
+ }
11790
+
11791
+ ignoreCase?: boolean
11792
+
11793
+ alphabet?: string
11794
+
11795
+ locales?: (string | string[])
11254
11796
 
11255
- partitionByComment?: (string[] | boolean | string | {
11256
- block?: (string[] | boolean | string)
11257
- line?: (string[] | boolean | string)
11258
- [k: string]: unknown | undefined
11259
- })
11797
+ order?: ("asc" | "desc")
11798
+
11799
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11260
11800
  customGroups?: ({
11261
11801
  [k: string]: (string | string[]) | undefined
11262
11802
  } | ({
@@ -11274,7 +11814,13 @@ type PerfectionistSortObjectTypes = {
11274
11814
 
11275
11815
  selector?: ("index-signature" | "member" | "method" | "multiline" | "property")
11276
11816
 
11277
- elementNamePattern?: string
11817
+ elementNamePattern?: (({
11818
+ pattern?: string
11819
+ flags?: string
11820
+ } | string)[] | ({
11821
+ pattern?: string
11822
+ flags?: string
11823
+ } | string))
11278
11824
  }[]
11279
11825
  } | {
11280
11826
 
@@ -11290,93 +11836,252 @@ type PerfectionistSortObjectTypes = {
11290
11836
 
11291
11837
  selector?: ("index-signature" | "member" | "method" | "multiline" | "property")
11292
11838
 
11293
- elementNamePattern?: string
11839
+ elementNamePattern?: (({
11840
+ pattern?: string
11841
+ flags?: string
11842
+ } | string)[] | ({
11843
+ pattern?: string
11844
+ flags?: string
11845
+ } | string))
11294
11846
  })[])
11847
+ useConfigurationIf?: {
11848
+
11849
+ allNamesMatchPattern?: (({
11850
+ pattern?: string
11851
+ flags?: string
11852
+ } | string)[] | ({
11853
+ pattern?: string
11854
+ flags?: string
11855
+ } | string))
11856
+
11857
+ declarationMatchesPattern?: (({
11858
+ pattern?: string
11859
+ flags?: string
11860
+ } | string)[] | ({
11861
+ pattern?: string
11862
+ flags?: string
11863
+ } | string))
11864
+ }
11295
11865
 
11296
11866
  groupKind?: ("mixed" | "required-first" | "optional-first")
11297
11867
 
11298
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11868
+ partitionByComment?: (boolean | (({
11869
+ pattern?: string
11870
+ flags?: string
11871
+ } | string)[] | ({
11872
+ pattern?: string
11873
+ flags?: string
11874
+ } | string)) | {
11875
+ block?: (boolean | (({
11876
+ pattern?: string
11877
+ flags?: string
11878
+ } | string)[] | ({
11879
+ pattern?: string
11880
+ flags?: string
11881
+ } | string)))
11882
+ line?: (boolean | (({
11883
+ pattern?: string
11884
+ flags?: string
11885
+ } | string)[] | ({
11886
+ pattern?: string
11887
+ flags?: string
11888
+ } | string)))
11889
+ })
11299
11890
 
11300
11891
  partitionByNewLine?: boolean
11301
11892
 
11302
- specialCharacters?: ("remove" | "trim" | "keep")
11303
-
11304
11893
  newlinesBetween?: ("ignore" | "always" | "never")
11305
11894
 
11306
- ignoreCase?: boolean
11307
-
11308
- alphabet?: string
11309
-
11310
- locales?: (string | string[])
11895
+ ignorePattern?: (({
11896
+ pattern?: string
11897
+ flags?: string
11898
+ } | string)[] | ({
11899
+ pattern?: string
11900
+ flags?: string
11901
+ } | string))
11311
11902
 
11312
11903
  groups?: (string | string[] | {
11313
11904
 
11314
11905
  newlinesBetween?: ("ignore" | "always" | "never")
11315
- [k: string]: unknown | undefined
11316
11906
  })[]
11317
-
11318
- order?: ("asc" | "desc")
11319
11907
  }[]
11320
11908
  // ----- perfectionist/sort-objects -----
11321
11909
  type PerfectionistSortObjects = {
11322
11910
 
11911
+ specialCharacters?: ("remove" | "trim" | "keep")
11912
+
11913
+ fallbackSort?: {
11914
+
11915
+ order?: ("asc" | "desc")
11916
+
11917
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11918
+ [k: string]: unknown | undefined
11919
+ }
11920
+
11921
+ ignoreCase?: boolean
11922
+
11923
+ alphabet?: string
11924
+
11925
+ locales?: (string | string[])
11926
+
11927
+ order?: ("asc" | "desc")
11928
+
11929
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11930
+
11323
11931
  destructuredObjects?: (boolean | {
11324
11932
 
11325
11933
  groups?: boolean
11326
11934
  })
11327
-
11328
- ignorePattern?: string[]
11935
+ customGroups?: ({
11936
+ [k: string]: (string | string[]) | undefined
11937
+ } | ({
11938
+
11939
+ groupName?: string
11940
+
11941
+ type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
11942
+
11943
+ order?: ("desc" | "asc")
11944
+
11945
+ newlinesInside?: ("always" | "never")
11946
+ anyOf?: {
11947
+
11948
+ modifiers?: ("optional" | "required" | "multiline")[]
11949
+
11950
+ selector?: ("member" | "method" | "multiline" | "property")
11951
+
11952
+ elementValuePattern?: (({
11953
+ pattern?: string
11954
+ flags?: string
11955
+ } | string)[] | ({
11956
+ pattern?: string
11957
+ flags?: string
11958
+ } | string))
11959
+
11960
+ elementNamePattern?: (({
11961
+ pattern?: string
11962
+ flags?: string
11963
+ } | string)[] | ({
11964
+ pattern?: string
11965
+ flags?: string
11966
+ } | string))
11967
+ }[]
11968
+ } | {
11969
+
11970
+ groupName?: string
11971
+
11972
+ type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
11973
+
11974
+ order?: ("desc" | "asc")
11975
+
11976
+ newlinesInside?: ("always" | "never")
11977
+
11978
+ modifiers?: ("optional" | "required" | "multiline")[]
11979
+
11980
+ selector?: ("member" | "method" | "multiline" | "property")
11981
+
11982
+ elementValuePattern?: (({
11983
+ pattern?: string
11984
+ flags?: string
11985
+ } | string)[] | ({
11986
+ pattern?: string
11987
+ flags?: string
11988
+ } | string))
11989
+
11990
+ elementNamePattern?: (({
11991
+ pattern?: string
11992
+ flags?: string
11993
+ } | string)[] | ({
11994
+ pattern?: string
11995
+ flags?: string
11996
+ } | string))
11997
+ })[])
11329
11998
  useConfigurationIf?: {
11330
- allNamesMatchPattern?: string
11331
- callingFunctionNamePattern?: string
11999
+
12000
+ allNamesMatchPattern?: (({
12001
+ pattern?: string
12002
+ flags?: string
12003
+ } | string)[] | ({
12004
+ pattern?: string
12005
+ flags?: string
12006
+ } | string))
12007
+
12008
+ callingFunctionNamePattern?: (({
12009
+ pattern?: string
12010
+ flags?: string
12011
+ } | string)[] | ({
12012
+ pattern?: string
12013
+ flags?: string
12014
+ } | string))
11332
12015
  }
11333
12016
 
11334
- partitionByComment?: (string[] | boolean | string | {
11335
- block?: (string[] | boolean | string)
11336
- line?: (string[] | boolean | string)
11337
- [k: string]: unknown | undefined
11338
- })
11339
-
11340
12017
  destructureOnly?: boolean
11341
12018
 
11342
12019
  objectDeclarations?: boolean
11343
12020
 
11344
12021
  styledComponents?: boolean
11345
12022
 
11346
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
12023
+ partitionByComment?: (boolean | (({
12024
+ pattern?: string
12025
+ flags?: string
12026
+ } | string)[] | ({
12027
+ pattern?: string
12028
+ flags?: string
12029
+ } | string)) | {
12030
+ block?: (boolean | (({
12031
+ pattern?: string
12032
+ flags?: string
12033
+ } | string)[] | ({
12034
+ pattern?: string
12035
+ flags?: string
12036
+ } | string)))
12037
+ line?: (boolean | (({
12038
+ pattern?: string
12039
+ flags?: string
12040
+ } | string)[] | ({
12041
+ pattern?: string
12042
+ flags?: string
12043
+ } | string)))
12044
+ })
11347
12045
 
11348
12046
  partitionByNewLine?: boolean
11349
12047
 
11350
- specialCharacters?: ("remove" | "trim" | "keep")
11351
-
11352
12048
  newlinesBetween?: ("ignore" | "always" | "never")
11353
12049
 
11354
- customGroups?: {
11355
- [k: string]: (string | string[]) | undefined
11356
- }
11357
-
11358
- ignoreCase?: boolean
11359
-
11360
- alphabet?: string
11361
-
11362
- locales?: (string | string[])
12050
+ ignorePattern?: (({
12051
+ pattern?: string
12052
+ flags?: string
12053
+ } | string)[] | ({
12054
+ pattern?: string
12055
+ flags?: string
12056
+ } | string))
11363
12057
 
11364
12058
  groups?: (string | string[] | {
11365
12059
 
11366
12060
  newlinesBetween?: ("ignore" | "always" | "never")
11367
- [k: string]: unknown | undefined
11368
12061
  })[]
11369
-
11370
- order?: ("asc" | "desc")
11371
12062
  }[]
11372
12063
  // ----- perfectionist/sort-sets -----
11373
12064
  type PerfectionistSortSets = {
11374
12065
 
11375
- partitionByComment?: (string[] | boolean | string | {
11376
- block?: (string[] | boolean | string)
11377
- line?: (string[] | boolean | string)
12066
+ specialCharacters?: ("remove" | "trim" | "keep")
12067
+
12068
+ fallbackSort?: {
12069
+
12070
+ order?: ("asc" | "desc")
12071
+
12072
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11378
12073
  [k: string]: unknown | undefined
11379
- })
12074
+ }
12075
+
12076
+ ignoreCase?: boolean
12077
+
12078
+ alphabet?: string
12079
+
12080
+ locales?: (string | string[])
12081
+
12082
+ order?: ("asc" | "desc")
12083
+
12084
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11380
12085
 
11381
12086
  groupKind?: ("mixed" | "literals-first" | "spreads-first")
11382
12087
 
@@ -11393,7 +12098,13 @@ type PerfectionistSortSets = {
11393
12098
 
11394
12099
  selector?: ("literal" | "spread")
11395
12100
 
11396
- elementNamePattern?: string
12101
+ elementNamePattern?: (({
12102
+ pattern?: string
12103
+ flags?: string
12104
+ } | string)[] | ({
12105
+ pattern?: string
12106
+ flags?: string
12107
+ } | string))
11397
12108
  }[]
11398
12109
  } | {
11399
12110
 
@@ -11407,100 +12118,182 @@ type PerfectionistSortSets = {
11407
12118
 
11408
12119
  selector?: ("literal" | "spread")
11409
12120
 
11410
- elementNamePattern?: string
12121
+ elementNamePattern?: (({
12122
+ pattern?: string
12123
+ flags?: string
12124
+ } | string)[] | ({
12125
+ pattern?: string
12126
+ flags?: string
12127
+ } | string))
11411
12128
  })[]
11412
12129
  useConfigurationIf?: {
11413
- allNamesMatchPattern?: string
12130
+
12131
+ allNamesMatchPattern?: (({
12132
+ pattern?: string
12133
+ flags?: string
12134
+ } | string)[] | ({
12135
+ pattern?: string
12136
+ flags?: string
12137
+ } | string))
11414
12138
  }
11415
12139
 
11416
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
12140
+ partitionByComment?: (boolean | (({
12141
+ pattern?: string
12142
+ flags?: string
12143
+ } | string)[] | ({
12144
+ pattern?: string
12145
+ flags?: string
12146
+ } | string)) | {
12147
+ block?: (boolean | (({
12148
+ pattern?: string
12149
+ flags?: string
12150
+ } | string)[] | ({
12151
+ pattern?: string
12152
+ flags?: string
12153
+ } | string)))
12154
+ line?: (boolean | (({
12155
+ pattern?: string
12156
+ flags?: string
12157
+ } | string)[] | ({
12158
+ pattern?: string
12159
+ flags?: string
12160
+ } | string)))
12161
+ })
11417
12162
 
11418
12163
  partitionByNewLine?: boolean
11419
12164
 
11420
- specialCharacters?: ("remove" | "trim" | "keep")
11421
-
11422
- ignoreCase?: boolean
11423
-
11424
- alphabet?: string
11425
-
11426
- locales?: (string | string[])
12165
+ newlinesBetween?: ("ignore" | "always" | "never")
11427
12166
 
11428
12167
  groups?: (string | string[] | {
11429
12168
 
11430
12169
  newlinesBetween?: ("ignore" | "always" | "never")
11431
- [k: string]: unknown | undefined
11432
12170
  })[]
11433
-
11434
- order?: ("asc" | "desc")
11435
12171
  }[]
11436
12172
  // ----- perfectionist/sort-switch-case -----
11437
12173
  type PerfectionistSortSwitchCase = []|[{
11438
12174
 
11439
12175
  specialCharacters?: ("remove" | "trim" | "keep")
11440
12176
 
12177
+ fallbackSort?: {
12178
+
12179
+ order?: ("asc" | "desc")
12180
+
12181
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
12182
+ [k: string]: unknown | undefined
12183
+ }
12184
+
11441
12185
  ignoreCase?: boolean
11442
12186
 
11443
12187
  alphabet?: string
11444
12188
 
11445
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
11446
-
11447
12189
  locales?: (string | string[])
11448
12190
 
11449
12191
  order?: ("asc" | "desc")
12192
+
12193
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11450
12194
  }]
11451
12195
  // ----- perfectionist/sort-union-types -----
11452
12196
  type PerfectionistSortUnionTypes = []|[{
11453
12197
 
11454
- partitionByComment?: (string[] | boolean | string | {
11455
- block?: (string[] | boolean | string)
11456
- line?: (string[] | boolean | string)
11457
- [k: string]: unknown | undefined
11458
- })
11459
-
11460
- partitionByNewLine?: boolean
11461
-
11462
12198
  specialCharacters?: ("remove" | "trim" | "keep")
11463
12199
 
11464
- newlinesBetween?: ("ignore" | "always" | "never")
12200
+ fallbackSort?: {
12201
+
12202
+ order?: ("asc" | "desc")
12203
+
12204
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
12205
+ [k: string]: unknown | undefined
12206
+ }
11465
12207
 
11466
12208
  ignoreCase?: boolean
11467
12209
 
11468
12210
  alphabet?: string
11469
12211
 
11470
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
11471
-
11472
12212
  locales?: (string | string[])
11473
12213
 
12214
+ order?: ("asc" | "desc")
12215
+
12216
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
12217
+
12218
+ partitionByComment?: (boolean | (({
12219
+ pattern?: string
12220
+ flags?: string
12221
+ } | string)[] | ({
12222
+ pattern?: string
12223
+ flags?: string
12224
+ } | string)) | {
12225
+ block?: (boolean | (({
12226
+ pattern?: string
12227
+ flags?: string
12228
+ } | string)[] | ({
12229
+ pattern?: string
12230
+ flags?: string
12231
+ } | string)))
12232
+ line?: (boolean | (({
12233
+ pattern?: string
12234
+ flags?: string
12235
+ } | string)[] | ({
12236
+ pattern?: string
12237
+ flags?: string
12238
+ } | string)))
12239
+ })
12240
+
12241
+ partitionByNewLine?: boolean
12242
+
12243
+ newlinesBetween?: ("ignore" | "always" | "never")
12244
+
11474
12245
  groups?: (string | string[] | {
11475
12246
 
11476
12247
  newlinesBetween?: ("ignore" | "always" | "never")
11477
- [k: string]: unknown | undefined
11478
12248
  })[]
11479
-
11480
- order?: ("asc" | "desc")
11481
12249
  }]
11482
12250
  // ----- perfectionist/sort-variable-declarations -----
11483
12251
  type PerfectionistSortVariableDeclarations = []|[{
11484
12252
 
11485
- partitionByComment?: (string[] | boolean | string | {
11486
- block?: (string[] | boolean | string)
11487
- line?: (string[] | boolean | string)
11488
- [k: string]: unknown | undefined
11489
- })
11490
-
11491
- partitionByNewLine?: boolean
11492
-
11493
12253
  specialCharacters?: ("remove" | "trim" | "keep")
11494
12254
 
12255
+ fallbackSort?: {
12256
+
12257
+ order?: ("asc" | "desc")
12258
+
12259
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
12260
+ [k: string]: unknown | undefined
12261
+ }
12262
+
11495
12263
  ignoreCase?: boolean
11496
12264
 
11497
12265
  alphabet?: string
11498
12266
 
11499
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
11500
-
11501
12267
  locales?: (string | string[])
11502
12268
 
11503
12269
  order?: ("asc" | "desc")
12270
+
12271
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
12272
+
12273
+ partitionByComment?: (boolean | (({
12274
+ pattern?: string
12275
+ flags?: string
12276
+ } | string)[] | ({
12277
+ pattern?: string
12278
+ flags?: string
12279
+ } | string)) | {
12280
+ block?: (boolean | (({
12281
+ pattern?: string
12282
+ flags?: string
12283
+ } | string)[] | ({
12284
+ pattern?: string
12285
+ flags?: string
12286
+ } | string)))
12287
+ line?: (boolean | (({
12288
+ pattern?: string
12289
+ flags?: string
12290
+ } | string)[] | ({
12291
+ pattern?: string
12292
+ flags?: string
12293
+ } | string)))
12294
+ })
12295
+
12296
+ partitionByNewLine?: boolean
11504
12297
  }]
11505
12298
  // ----- prefer-arrow-callback -----
11506
12299
  type PreferArrowCallback = []|[{
@@ -12861,7 +13654,7 @@ type StyleQuoteProps = ([]|[("always" | "as-needed" | "consistent" | "consistent
12861
13654
  // ----- style/quotes -----
12862
13655
  type StyleQuotes = []|[("single" | "double" | "backtick")]|[("single" | "double" | "backtick"), ("avoid-escape" | {
12863
13656
  avoidEscape?: boolean
12864
- allowTemplateLiterals?: boolean
13657
+ allowTemplateLiterals?: (boolean | ("never" | "avoidEscape" | "always"))
12865
13658
  ignoreStringLiterals?: boolean
12866
13659
  })]
12867
13660
  // ----- style/rest-spread-spacing -----
@@ -12899,6 +13692,7 @@ type StyleSpaceInParens = []|[("always" | "never")]|[("always" | "never"), {
12899
13692
  // ----- style/space-infix-ops -----
12900
13693
  type StyleSpaceInfixOps = []|[{
12901
13694
  int32Hint?: boolean
13695
+ ignoreTypes?: boolean
12902
13696
  }]
12903
13697
  // ----- style/space-unary-ops -----
12904
13698
  type StyleSpaceUnaryOps = []|[{
@@ -13120,6 +13914,10 @@ type TestPreferSnapshotHint = []|[("always" | "multi")]
13120
13914
  type TestRequireHook = []|[{
13121
13915
  allowedFunctionCalls?: string[]
13122
13916
  }]
13917
+ // ----- test/require-mock-type-parameters -----
13918
+ type TestRequireMockTypeParameters = []|[{
13919
+ checkImportFunctions?: boolean
13920
+ }]
13123
13921
  // ----- test/require-top-level-describe -----
13124
13922
  type TestRequireTopLevelDescribe = []|[{
13125
13923
  maxNumberOfTopLevelDescribes?: number
@@ -13315,6 +14113,8 @@ type TsConsistentTypeAssertions = []|[({
13315
14113
  assertionStyle: "never"
13316
14114
  } | {
13317
14115
 
14116
+ arrayLiteralTypeAssertions?: ("allow" | "allow-as-parameter" | "never")
14117
+
13318
14118
  assertionStyle?: ("as" | "angle-bracket")
13319
14119
 
13320
14120
  objectLiteralTypeAssertions?: ("allow" | "allow-as-parameter" | "never")
@@ -13393,6 +14193,8 @@ type TsExplicitModuleBoundaryTypes = []|[{
13393
14193
 
13394
14194
  allowHigherOrderFunctions?: boolean
13395
14195
 
14196
+ allowOverloadFunctions?: boolean
14197
+
13396
14198
  allowTypedFunctionExpressions?: boolean
13397
14199
  }]
13398
14200
  // ----- ts/init-declarations -----
@@ -13771,6 +14573,22 @@ type TsNoConfusingVoidExpression = []|[{
13771
14573
 
13772
14574
  ignoreVoidReturningFunctions?: boolean
13773
14575
  }]
14576
+ // ----- ts/no-deprecated -----
14577
+ type TsNoDeprecated = []|[{
14578
+
14579
+ allow?: (string | {
14580
+ from: "file"
14581
+ name: (string | [string, ...(string)[]])
14582
+ path?: string
14583
+ } | {
14584
+ from: "lib"
14585
+ name: (string | [string, ...(string)[]])
14586
+ } | {
14587
+ from: "package"
14588
+ name: (string | [string, ...(string)[]])
14589
+ package: string
14590
+ })[]
14591
+ }]
13774
14592
  // ----- ts/no-duplicate-type-constituents -----
13775
14593
  type TsNoDuplicateTypeConstituents = []|[{
13776
14594
 
@@ -13912,6 +14730,22 @@ type TsNoMisusedPromises = []|[{
13912
14730
  variables?: boolean
13913
14731
  })
13914
14732
  }]
14733
+ // ----- ts/no-misused-spread -----
14734
+ type TsNoMisusedSpread = []|[{
14735
+
14736
+ allow?: (string | {
14737
+ from: "file"
14738
+ name: (string | [string, ...(string)[]])
14739
+ path?: string
14740
+ } | {
14741
+ from: "lib"
14742
+ name: (string | [string, ...(string)[]])
14743
+ } | {
14744
+ from: "package"
14745
+ name: (string | [string, ...(string)[]])
14746
+ package: string
14747
+ })[]
14748
+ }]
13915
14749
  // ----- ts/no-namespace -----
13916
14750
  type TsNoNamespace = []|[{
13917
14751
 
@@ -13987,7 +14821,7 @@ type TsNoShadow = []|[{
13987
14821
 
13988
14822
  builtinGlobals?: boolean
13989
14823
 
13990
- hoist?: ("all" | "functions" | "never")
14824
+ hoist?: ("all" | "functions" | "functions-and-types" | "never" | "types")
13991
14825
 
13992
14826
  ignoreFunctionTypeParameterNameValueShadow?: boolean
13993
14827
 
@@ -14027,11 +14861,13 @@ type TsNoUnnecessaryBooleanLiteralCompare = []|[{
14027
14861
  allowComparingNullableBooleansToFalse?: boolean
14028
14862
 
14029
14863
  allowComparingNullableBooleansToTrue?: boolean
14864
+
14865
+ allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean
14030
14866
  }]
14031
14867
  // ----- ts/no-unnecessary-condition -----
14032
14868
  type TsNoUnnecessaryCondition = []|[{
14033
14869
 
14034
- allowConstantLoopConditions?: boolean
14870
+ allowConstantLoopConditions?: (boolean | ("always" | "never" | "only-allowed-literals"))
14035
14871
 
14036
14872
  allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean
14037
14873
 
@@ -14390,6 +15226,8 @@ type TsUnboundMethod = []|[{
14390
15226
  type TsUnifiedSignatures = []|[{
14391
15227
 
14392
15228
  ignoreDifferentlyNamedParameters?: boolean
15229
+
15230
+ ignoreOverloadsWithDifferentJSDoc?: boolean
14393
15231
  }]
14394
15232
  // ----- unicode-bom -----
14395
15233
  type UnicodeBom = []|[("always" | "never")]
@@ -14457,6 +15295,13 @@ type UnicornNoArrayPushPush = []|[{
14457
15295
  type UnicornNoArrayReduce = []|[{
14458
15296
  allowSimpleOperations?: boolean
14459
15297
  }]
15298
+ // ----- unicorn/no-instanceof-builtins -----
15299
+ type UnicornNoInstanceofBuiltins = []|[{
15300
+ useErrorIsError?: boolean
15301
+ strategy?: ("loose" | "strict")
15302
+ include?: string[]
15303
+ exclude?: string[]
15304
+ }]
14460
15305
  // ----- unicorn/no-keyword-prefix -----
14461
15306
  type UnicornNoKeywordPrefix = []|[{
14462
15307
 
@@ -14668,7 +15513,6 @@ type VueArrayElementNewline = []|[(_VueArrayElementNewlineBasicConfig | {
14668
15513
  ArrayPattern?: _VueArrayElementNewlineBasicConfig
14669
15514
  })]
14670
15515
  type _VueArrayElementNewlineBasicConfig = (("always" | "never" | "consistent") | {
14671
- consistent?: boolean
14672
15516
  multiline?: boolean
14673
15517
  minItems?: (number | null)
14674
15518
  })
@@ -14737,14 +15581,9 @@ type VueCommaDangle = []|[(_VueCommaDangleValue | {
14737
15581
  imports?: _VueCommaDangleValueWithIgnore
14738
15582
  exports?: _VueCommaDangleValueWithIgnore
14739
15583
  functions?: _VueCommaDangleValueWithIgnore
14740
- importAttributes?: _VueCommaDangleValueWithIgnore
14741
- dynamicImports?: _VueCommaDangleValueWithIgnore
14742
- enums?: _VueCommaDangleValueWithIgnore
14743
- generics?: _VueCommaDangleValueWithIgnore
14744
- tuples?: _VueCommaDangleValueWithIgnore
14745
15584
  })]
14746
15585
  type _VueCommaDangleValue = ("always-multiline" | "always" | "never" | "only-multiline")
14747
- type _VueCommaDangleValueWithIgnore = ("always-multiline" | "always" | "never" | "only-multiline" | "ignore")
15586
+ type _VueCommaDangleValueWithIgnore = ("always-multiline" | "always" | "ignore" | "never" | "only-multiline")
14748
15587
  // ----- vue/comma-spacing -----
14749
15588
  type VueCommaSpacing = []|[{
14750
15589
  before?: boolean
@@ -14772,16 +15611,10 @@ type VueComponentNameInTemplateCasing = []|[("PascalCase" | "kebab-case")]|[("Pa
14772
15611
  }]
14773
15612
  // ----- vue/component-options-name-casing -----
14774
15613
  type VueComponentOptionsNameCasing = []|[("camelCase" | "kebab-case" | "PascalCase")]
14775
- // ----- vue/component-tags-order -----
14776
- type VueComponentTagsOrder = []|[{
14777
- order?: (string | string[])[]
14778
- }]
14779
15614
  // ----- vue/custom-event-name-casing -----
14780
- type VueCustomEventNameCasing = ([]|[("kebab-case" | "camelCase")]|[("kebab-case" | "camelCase"), {
14781
- ignores?: string[]
14782
- }] | []|[{
15615
+ type VueCustomEventNameCasing = []|[("kebab-case" | "camelCase")]|[("kebab-case" | "camelCase"), {
14783
15616
  ignores?: string[]
14784
- }])
15617
+ }]
14785
15618
  // ----- vue/define-emits-declaration -----
14786
15619
  type VueDefineEmitsDeclaration = []|[("type-based" | "type-literal" | "runtime")]
14787
15620
  // ----- vue/define-macros-order -----
@@ -14815,10 +15648,6 @@ type VueFirstAttributeLinebreak = []|[{
14815
15648
  // ----- vue/func-call-spacing -----
14816
15649
  type VueFuncCallSpacing = ([]|["never"] | []|["always"]|["always", {
14817
15650
  allowNewlines?: boolean
14818
- optionalChain?: {
14819
- before?: boolean
14820
- after?: boolean
14821
- }
14822
15651
  }])
14823
15652
  // ----- vue/html-button-has-type -----
14824
15653
  type VueHtmlButtonHasType = []|[{
@@ -14900,7 +15729,6 @@ type VueKeySpacing = []|[({
14900
15729
  mode?: ("strict" | "minimum")
14901
15730
  beforeColon?: boolean
14902
15731
  afterColon?: boolean
14903
- ignoredNodes?: ("ObjectExpression" | "ObjectPattern" | "ImportDeclaration" | "ExportNamedDeclaration" | "ExportAllDeclaration" | "TSTypeLiteral" | "TSInterfaceBody" | "ClassBody")[]
14904
15732
  } | {
14905
15733
  singleLine?: {
14906
15734
  mode?: ("strict" | "minimum")
@@ -15137,10 +15965,6 @@ type VueKeywordSpacing = []|[{
15137
15965
  before?: boolean
15138
15966
  after?: boolean
15139
15967
  }
15140
- satisfies?: {
15141
- before?: boolean
15142
- after?: boolean
15143
- }
15144
15968
  set?: {
15145
15969
  before?: boolean
15146
15970
  after?: boolean
@@ -15217,10 +16041,6 @@ type VueKeywordSpacing = []|[{
15217
16041
  before?: boolean
15218
16042
  after?: boolean
15219
16043
  }
15220
- type?: {
15221
- before?: boolean
15222
- after?: boolean
15223
- }
15224
16044
  }
15225
16045
  }]
15226
16046
  // ----- vue/match-component-file-name -----
@@ -15349,10 +16169,7 @@ type VueMultilineHtmlElementContentNewline = []|[{
15349
16169
  allowEmptyLines?: boolean
15350
16170
  }]
15351
16171
  // ----- vue/multiline-ternary -----
15352
- type VueMultilineTernary = []|[("always" | "always-multiline" | "never")]|[("always" | "always-multiline" | "never"), {
15353
- ignoreJSX?: boolean
15354
- [k: string]: unknown | undefined
15355
- }]
16172
+ type VueMultilineTernary = []|[("always" | "always-multiline" | "never")]
15356
16173
  // ----- vue/mustache-interpolation-spacing -----
15357
16174
  type VueMustacheInterpolationSpacing = []|[("always" | "never")]
15358
16175
  // ----- vue/new-line-between-multi-line-property -----
@@ -15427,8 +16244,15 @@ type VueNoExtraParens = ([]|["functions"] | []|["all"]|["all", {
15427
16244
  enforceForNewInMemberExpressions?: boolean
15428
16245
  enforceForFunctionPrototypeMethods?: boolean
15429
16246
  allowParensAfterCommentPattern?: string
15430
- nestedConditionalExpressions?: boolean
15431
16247
  }])
16248
+ // ----- vue/no-implicit-coercion -----
16249
+ type VueNoImplicitCoercion = []|[{
16250
+ boolean?: boolean
16251
+ number?: boolean
16252
+ string?: boolean
16253
+ disallowTemplateShorthand?: boolean
16254
+ allow?: ("~" | "!!" | "+" | "- -" | "-" | "*")[]
16255
+ }]
15432
16256
  // ----- vue/no-irregular-whitespace -----
15433
16257
  type VueNoIrregularWhitespace = []|[{
15434
16258
  skipComments?: boolean
@@ -15670,16 +16494,6 @@ type VueObjectCurlyNewline = []|[((("always" | "never") | {
15670
16494
  minProperties?: number
15671
16495
  consistent?: boolean
15672
16496
  })
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
16497
  })]
15684
16498
  // ----- vue/object-curly-spacing -----
15685
16499
  type VueObjectCurlySpacing = []|[("always" | "never")]|[("always" | "never"), {
@@ -15701,7 +16515,7 @@ type VueObjectShorthand = ([]|[("always" | "methods" | "properties" | "never" |
15701
16515
  avoidExplicitReturnArrows?: boolean
15702
16516
  }])
15703
16517
  // ----- vue/operator-linebreak -----
15704
- type VueOperatorLinebreak = []|[(("after" | "before" | "none") | null)]|[(("after" | "before" | "none") | null), {
16518
+ type VueOperatorLinebreak = []|[("after" | "before" | "none" | null)]|[("after" | "before" | "none" | null), {
15705
16519
  overrides?: {
15706
16520
  [k: string]: ("after" | "before" | "none" | "ignore") | undefined
15707
16521
  }
@@ -15730,9 +16544,13 @@ type VuePaddingLinesInComponentDefinition = []|[(("always" | "never") | {
15730
16544
  groupSingleLineProperties?: boolean
15731
16545
  })]
15732
16546
  // ----- vue/prefer-true-attribute-shorthand -----
15733
- type VuePreferTrueAttributeShorthand = []|[("always" | "never")]
16547
+ type VuePreferTrueAttributeShorthand = []|[("always" | "never")]|[("always" | "never"), {
16548
+ except?: string[]
16549
+ }]
15734
16550
  // ----- vue/prop-name-casing -----
15735
- type VuePropNameCasing = []|[("camelCase" | "snake_case")]
16551
+ type VuePropNameCasing = []|[("camelCase" | "snake_case")]|[("camelCase" | "snake_case"), {
16552
+ ignoreProps?: string[]
16553
+ }]
15736
16554
  // ----- vue/quote-props -----
15737
16555
  type VueQuoteProps = ([]|[("always" | "as-needed" | "consistent" | "consistent-as-needed")] | []|[("always" | "as-needed" | "consistent" | "consistent-as-needed")]|[("always" | "as-needed" | "consistent" | "consistent-as-needed"), {
15738
16556
  keywords?: boolean
@@ -15797,7 +16615,6 @@ type VueSortKeys = []|[("asc" | "desc")]|[("asc" | "desc"), {
15797
16615
  ignoreGrandchildrenOf?: unknown[]
15798
16616
  minKeys?: number
15799
16617
  natural?: boolean
15800
- runOutsideVue?: boolean
15801
16618
  }]
15802
16619
  // ----- vue/space-in-parens -----
15803
16620
  type VueSpaceInParens = []|[("always" | "never")]|[("always" | "never"), {
@@ -15835,10 +16652,6 @@ type VueVOnEventHyphenation = []|[("always" | "never")]|[("always" | "never"), {
15835
16652
  })[]
15836
16653
  ignoreTags?: string[]
15837
16654
  }]
15838
- // ----- vue/v-on-function-call -----
15839
- type VueVOnFunctionCall = []|[("always" | "never")]|[("always" | "never"), {
15840
- ignoreIncludesComment?: boolean
15841
- }]
15842
16655
  // ----- vue/v-on-handler-style -----
15843
16656
  type VueVOnHandlerStyle = []|[(("inline" | "inline-function") | ["method", ("inline" | "inline-function")])]|[(("inline" | "inline-function") | ["method", ("inline" | "inline-function")]), {
15844
16657
  ignoreIncludesComment?: boolean