@zayne-labs/eslint-config 0.5.0 → 0.6.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.ts +1420 -542
- package/dist/index.js +59 -51
- package/dist/index.js.map +1 -1
- package/dist/prettier/index.d.ts +26 -0
- package/dist/prettier/index.js +23 -0
- package/dist/prettier/index.js.map +1 -0
- package/package.json +50 -50
package/dist/index.d.ts
CHANGED
|
@@ -147,7 +147,7 @@ interface Rules {
|
|
|
147
147
|
*/
|
|
148
148
|
'default-case'?: Linter.RuleEntry<DefaultCase>
|
|
149
149
|
/**
|
|
150
|
-
* Enforce `default` clauses in switch statements to be last
|
|
150
|
+
* Enforce `default` clauses in `switch` statements to be last
|
|
151
151
|
* @see https://eslint.org/docs/latest/rules/default-case-last
|
|
152
152
|
*/
|
|
153
153
|
'default-case-last'?: Linter.RuleEntry<[]>
|
|
@@ -2618,6 +2618,11 @@ interface Rules {
|
|
|
2618
2618
|
* @see https://eslint-react.xyz/docs/rules/dom-no-find-dom-node
|
|
2619
2619
|
*/
|
|
2620
2620
|
'react-dom/no-find-dom-node'?: Linter.RuleEntry<[]>
|
|
2621
|
+
/**
|
|
2622
|
+
* warns against using `flushSync`
|
|
2623
|
+
* @see https://eslint-react.xyz/docs/rules/dom-no-flush-sync
|
|
2624
|
+
*/
|
|
2625
|
+
'react-dom/no-flush-sync'?: Linter.RuleEntry<[]>
|
|
2621
2626
|
/**
|
|
2622
2627
|
* enforce that button component have an explicit 'type' attribute
|
|
2623
2628
|
* @see https://eslint-react.xyz/docs/rules/dom-no-missing-button-type
|
|
@@ -2739,7 +2744,7 @@ interface Rules {
|
|
|
2739
2744
|
*/
|
|
2740
2745
|
'react-naming-convention/filename-extension'?: Linter.RuleEntry<ReactNamingConventionFilenameExtension>
|
|
2741
2746
|
/**
|
|
2742
|
-
* enforce destructuring and symmetric naming of 'useState' hook value and setter
|
|
2747
|
+
* enforce destructuring and symmetric naming of 'useState' hook value and setter
|
|
2743
2748
|
* @see https://eslint-react.xyz/docs/rules/naming-convention-use-state
|
|
2744
2749
|
*/
|
|
2745
2750
|
'react-naming-convention/use-state'?: Linter.RuleEntry<[]>
|
|
@@ -2785,7 +2790,7 @@ interface Rules {
|
|
|
2785
2790
|
*/
|
|
2786
2791
|
'react/jsx-no-duplicate-props'?: Linter.RuleEntry<[]>
|
|
2787
2792
|
/**
|
|
2788
|
-
*
|
|
2793
|
+
* marks variables used in JSX as used
|
|
2789
2794
|
* @see https://eslint-react.xyz/docs/rules/use-jsx-vars
|
|
2790
2795
|
*/
|
|
2791
2796
|
'react/jsx-uses-vars'?: Linter.RuleEntry<[]>
|
|
@@ -2919,6 +2924,11 @@ interface Rules {
|
|
|
2919
2924
|
* @see https://eslint-react.xyz/docs/rules/no-missing-component-display-name
|
|
2920
2925
|
*/
|
|
2921
2926
|
'react/no-missing-component-display-name'?: Linter.RuleEntry<[]>
|
|
2927
|
+
/**
|
|
2928
|
+
* require 'displayName' for contexts.
|
|
2929
|
+
* @see https://eslint-react.xyz/docs/rules/no-missing-context-display-name
|
|
2930
|
+
*/
|
|
2931
|
+
'react/no-missing-context-display-name'?: Linter.RuleEntry<[]>
|
|
2922
2932
|
/**
|
|
2923
2933
|
* require 'key' when rendering list
|
|
2924
2934
|
* @see https://eslint-react.xyz/docs/rules/no-missing-key
|
|
@@ -2995,7 +3005,12 @@ interface Rules {
|
|
|
2995
3005
|
*/
|
|
2996
3006
|
'react/no-unused-state'?: Linter.RuleEntry<[]>
|
|
2997
3007
|
/**
|
|
2998
|
-
* disallow
|
|
3008
|
+
* disallow the use of 'useContext'
|
|
3009
|
+
* @see https://eslint-react.xyz/docs/rules/no-use-context
|
|
3010
|
+
*/
|
|
3011
|
+
'react/no-use-context'?: Linter.RuleEntry<[]>
|
|
3012
|
+
/**
|
|
3013
|
+
* disallow useless fragments
|
|
2999
3014
|
* @see https://eslint-react.xyz/docs/rules/no-useless-fragment
|
|
3000
3015
|
*/
|
|
3001
3016
|
'react/no-useless-fragment'?: Linter.RuleEntry<ReactNoUselessFragment>
|
|
@@ -3025,7 +3040,7 @@ interface Rules {
|
|
|
3025
3040
|
*/
|
|
3026
3041
|
'react/prefer-shorthand-fragment'?: Linter.RuleEntry<[]>
|
|
3027
3042
|
/**
|
|
3028
|
-
*
|
|
3043
|
+
* marks variables used in JSX as used
|
|
3029
3044
|
* @see https://eslint-react.xyz/docs/rules/use-jsx-vars
|
|
3030
3045
|
*/
|
|
3031
3046
|
'react/use-jsx-vars'?: Linter.RuleEntry<[]>
|
|
@@ -3175,7 +3190,7 @@ interface Rules {
|
|
|
3175
3190
|
*/
|
|
3176
3191
|
'solid/style-prop'?: Linter.RuleEntry<SolidStyleProp>
|
|
3177
3192
|
/**
|
|
3178
|
-
* Enforce sorted import declarations within modules
|
|
3193
|
+
* Enforce sorted `import` declarations within modules
|
|
3179
3194
|
* @see https://eslint.org/docs/latest/rules/sort-imports
|
|
3180
3195
|
*/
|
|
3181
3196
|
'sort-imports'?: Linter.RuleEntry<SortImports>
|
|
@@ -3628,7 +3643,7 @@ interface Rules {
|
|
|
3628
3643
|
'stylistic/semi'?: Linter.RuleEntry<StylisticSemi>
|
|
3629
3644
|
/**
|
|
3630
3645
|
* Enforce consistent spacing before and after semicolons
|
|
3631
|
-
* @see https://eslint.style/rules/
|
|
3646
|
+
* @see https://eslint.style/rules/ts/semi-spacing
|
|
3632
3647
|
*/
|
|
3633
3648
|
'stylistic/semi-spacing'?: Linter.RuleEntry<StylisticSemiSpacing>
|
|
3634
3649
|
/**
|
|
@@ -4059,7 +4074,7 @@ interface Rules {
|
|
|
4059
4074
|
* Disallow using code marked as `@deprecated`
|
|
4060
4075
|
* @see https://typescript-eslint.io/rules/no-deprecated
|
|
4061
4076
|
*/
|
|
4062
|
-
'ts-eslint/no-deprecated'?: Linter.RuleEntry<
|
|
4077
|
+
'ts-eslint/no-deprecated'?: Linter.RuleEntry<TsEslintNoDeprecated>
|
|
4063
4078
|
/**
|
|
4064
4079
|
* Disallow duplicate class members
|
|
4065
4080
|
* @see https://typescript-eslint.io/rules/no-dupe-class-members
|
|
@@ -4122,7 +4137,7 @@ interface Rules {
|
|
|
4122
4137
|
*/
|
|
4123
4138
|
'ts-eslint/no-for-in-array'?: Linter.RuleEntry<[]>
|
|
4124
4139
|
/**
|
|
4125
|
-
* Disallow the use of `eval()`-like
|
|
4140
|
+
* Disallow the use of `eval()`-like functions
|
|
4126
4141
|
* @see https://typescript-eslint.io/rules/no-implied-eval
|
|
4127
4142
|
*/
|
|
4128
4143
|
'ts-eslint/no-implied-eval'?: Linter.RuleEntry<[]>
|
|
@@ -4177,6 +4192,11 @@ interface Rules {
|
|
|
4177
4192
|
* @see https://typescript-eslint.io/rules/no-misused-promises
|
|
4178
4193
|
*/
|
|
4179
4194
|
'ts-eslint/no-misused-promises'?: Linter.RuleEntry<TsEslintNoMisusedPromises>
|
|
4195
|
+
/**
|
|
4196
|
+
* Disallow using the spread operator when it might cause unexpected behavior
|
|
4197
|
+
* @see https://typescript-eslint.io/rules/no-misused-spread
|
|
4198
|
+
*/
|
|
4199
|
+
'ts-eslint/no-misused-spread'?: Linter.RuleEntry<TsEslintNoMisusedSpread>
|
|
4180
4200
|
/**
|
|
4181
4201
|
* Disallow enums from having both number and string members
|
|
4182
4202
|
* @see https://typescript-eslint.io/rules/no-mixed-enums
|
|
@@ -4568,702 +4588,642 @@ interface Rules {
|
|
|
4568
4588
|
'unicode-bom'?: Linter.RuleEntry<UnicodeBom>
|
|
4569
4589
|
/**
|
|
4570
4590
|
* Improve regexes by making them shorter, consistent, and safer.
|
|
4571
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4591
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/better-regex.md
|
|
4572
4592
|
*/
|
|
4573
4593
|
'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>
|
|
4574
4594
|
/**
|
|
4575
4595
|
* Enforce a specific parameter name in catch clauses.
|
|
4576
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4596
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/catch-error-name.md
|
|
4577
4597
|
*/
|
|
4578
4598
|
'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>
|
|
4599
|
+
/**
|
|
4600
|
+
* Enforce consistent assertion style with `node:assert`.
|
|
4601
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-assert.md
|
|
4602
|
+
*/
|
|
4603
|
+
'unicorn/consistent-assert'?: Linter.RuleEntry<[]>
|
|
4604
|
+
/**
|
|
4605
|
+
* Prefer passing `Date` directly to the constructor when cloning.
|
|
4606
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-date-clone.md
|
|
4607
|
+
*/
|
|
4608
|
+
'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>
|
|
4579
4609
|
/**
|
|
4580
4610
|
* Use destructured variables over properties.
|
|
4581
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4611
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-destructuring.md
|
|
4582
4612
|
*/
|
|
4583
4613
|
'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>
|
|
4584
4614
|
/**
|
|
4585
4615
|
* Prefer consistent types when spreading a ternary in an array literal.
|
|
4586
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4616
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-empty-array-spread.md
|
|
4587
4617
|
*/
|
|
4588
4618
|
'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>
|
|
4589
4619
|
/**
|
|
4590
4620
|
* Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
|
|
4591
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4621
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-existence-index-check.md
|
|
4592
4622
|
*/
|
|
4593
4623
|
'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>
|
|
4594
4624
|
/**
|
|
4595
4625
|
* Move function definitions to the highest possible scope.
|
|
4596
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4626
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-function-scoping.md
|
|
4597
4627
|
*/
|
|
4598
4628
|
'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>
|
|
4599
4629
|
/**
|
|
4600
4630
|
* Enforce correct `Error` subclassing.
|
|
4601
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4631
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/custom-error-definition.md
|
|
4602
4632
|
*/
|
|
4603
4633
|
'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>
|
|
4604
4634
|
/**
|
|
4605
4635
|
* Enforce no spaces between braces.
|
|
4606
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4636
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/empty-brace-spaces.md
|
|
4607
4637
|
*/
|
|
4608
4638
|
'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>
|
|
4609
4639
|
/**
|
|
4610
4640
|
* Enforce passing a `message` value when creating a built-in error.
|
|
4611
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4641
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/error-message.md
|
|
4612
4642
|
*/
|
|
4613
4643
|
'unicorn/error-message'?: Linter.RuleEntry<[]>
|
|
4614
4644
|
/**
|
|
4615
4645
|
* Require escape sequences to use uppercase values.
|
|
4616
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4646
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/escape-case.md
|
|
4617
4647
|
*/
|
|
4618
4648
|
'unicorn/escape-case'?: Linter.RuleEntry<[]>
|
|
4619
4649
|
/**
|
|
4620
4650
|
* Add expiration conditions to TODO comments.
|
|
4621
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4651
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/expiring-todo-comments.md
|
|
4622
4652
|
*/
|
|
4623
4653
|
'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>
|
|
4624
4654
|
/**
|
|
4625
4655
|
* Enforce explicitly comparing the `length` or `size` property of a value.
|
|
4626
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4656
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/explicit-length-check.md
|
|
4627
4657
|
*/
|
|
4628
4658
|
'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>
|
|
4629
4659
|
/**
|
|
4630
4660
|
* Enforce a case style for filenames.
|
|
4631
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4661
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/filename-case.md
|
|
4632
4662
|
*/
|
|
4633
4663
|
'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>
|
|
4634
|
-
/**
|
|
4635
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#import-index
|
|
4636
|
-
* @deprecated
|
|
4637
|
-
*/
|
|
4638
|
-
'unicorn/import-index'?: Linter.RuleEntry<[]>
|
|
4639
4664
|
/**
|
|
4640
4665
|
* Enforce specific import styles per module.
|
|
4641
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4666
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/import-style.md
|
|
4642
4667
|
*/
|
|
4643
4668
|
'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>
|
|
4644
4669
|
/**
|
|
4645
4670
|
* Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
|
|
4646
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4671
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/new-for-builtins.md
|
|
4647
4672
|
*/
|
|
4648
4673
|
'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>
|
|
4649
4674
|
/**
|
|
4650
4675
|
* Enforce specifying rules to disable in `eslint-disable` comments.
|
|
4651
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4676
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-abusive-eslint-disable.md
|
|
4652
4677
|
*/
|
|
4653
4678
|
'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>
|
|
4679
|
+
/**
|
|
4680
|
+
* Disallow recursive access to `this` within getters and setters.
|
|
4681
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-accessor-recursion.md
|
|
4682
|
+
*/
|
|
4683
|
+
'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>
|
|
4654
4684
|
/**
|
|
4655
4685
|
* Disallow anonymous functions and classes as the default export.
|
|
4656
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4686
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-anonymous-default-export.md
|
|
4657
4687
|
*/
|
|
4658
4688
|
'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>
|
|
4659
4689
|
/**
|
|
4660
4690
|
* Prevent passing a function reference directly to iterator methods.
|
|
4661
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4691
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-callback-reference.md
|
|
4662
4692
|
*/
|
|
4663
4693
|
'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>
|
|
4664
4694
|
/**
|
|
4665
4695
|
* Prefer `for…of` over the `forEach` method.
|
|
4666
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4696
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-for-each.md
|
|
4667
4697
|
*/
|
|
4668
4698
|
'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>
|
|
4669
|
-
/**
|
|
4670
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#no-array-instanceof
|
|
4671
|
-
* @deprecated
|
|
4672
|
-
*/
|
|
4673
|
-
'unicorn/no-array-instanceof'?: Linter.RuleEntry<[]>
|
|
4674
4699
|
/**
|
|
4675
4700
|
* Disallow using the `this` argument in array methods.
|
|
4676
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4701
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-method-this-argument.md
|
|
4677
4702
|
*/
|
|
4678
4703
|
'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>
|
|
4679
4704
|
/**
|
|
4680
4705
|
* Enforce combining multiple `Array#push()` into one call.
|
|
4681
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4706
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-push-push.md
|
|
4682
4707
|
*/
|
|
4683
4708
|
'unicorn/no-array-push-push'?: Linter.RuleEntry<UnicornNoArrayPushPush>
|
|
4684
4709
|
/**
|
|
4685
4710
|
* Disallow `Array#reduce()` and `Array#reduceRight()`.
|
|
4686
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4711
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-reduce.md
|
|
4687
4712
|
*/
|
|
4688
4713
|
'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>
|
|
4689
4714
|
/**
|
|
4690
4715
|
* Disallow member access from await expression.
|
|
4691
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4716
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-await-expression-member.md
|
|
4692
4717
|
*/
|
|
4693
4718
|
'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>
|
|
4694
4719
|
/**
|
|
4695
4720
|
* Disallow using `await` in `Promise` method parameters.
|
|
4696
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4721
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-await-in-promise-methods.md
|
|
4697
4722
|
*/
|
|
4698
4723
|
'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>
|
|
4699
4724
|
/**
|
|
4700
4725
|
* Do not use leading/trailing space between `console.log` parameters.
|
|
4701
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4726
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-console-spaces.md
|
|
4702
4727
|
*/
|
|
4703
4728
|
'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>
|
|
4704
4729
|
/**
|
|
4705
4730
|
* Do not use `document.cookie` directly.
|
|
4706
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4731
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-document-cookie.md
|
|
4707
4732
|
*/
|
|
4708
4733
|
'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>
|
|
4709
4734
|
/**
|
|
4710
4735
|
* Disallow empty files.
|
|
4711
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4736
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-empty-file.md
|
|
4712
4737
|
*/
|
|
4713
4738
|
'unicorn/no-empty-file'?: Linter.RuleEntry<[]>
|
|
4714
|
-
/**
|
|
4715
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#no-fn-reference-in-iterator
|
|
4716
|
-
* @deprecated
|
|
4717
|
-
*/
|
|
4718
|
-
'unicorn/no-fn-reference-in-iterator'?: Linter.RuleEntry<[]>
|
|
4719
4739
|
/**
|
|
4720
4740
|
* Do not use a `for` loop that can be replaced with a `for-of` loop.
|
|
4721
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4741
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-for-loop.md
|
|
4722
4742
|
*/
|
|
4723
4743
|
'unicorn/no-for-loop'?: Linter.RuleEntry<[]>
|
|
4724
4744
|
/**
|
|
4725
4745
|
* Enforce the use of Unicode escapes instead of hexadecimal escapes.
|
|
4726
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4746
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-hex-escape.md
|
|
4727
4747
|
*/
|
|
4728
4748
|
'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>
|
|
4729
4749
|
/**
|
|
4730
|
-
*
|
|
4731
|
-
* @
|
|
4750
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/deprecated-rules.md#no-instanceof-array
|
|
4751
|
+
* @deprecated
|
|
4732
4752
|
*/
|
|
4733
4753
|
'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>
|
|
4754
|
+
/**
|
|
4755
|
+
* Disallow `instanceof` with built-in objects
|
|
4756
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-instanceof-builtins.md
|
|
4757
|
+
*/
|
|
4758
|
+
'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>
|
|
4734
4759
|
/**
|
|
4735
4760
|
* Disallow invalid options in `fetch()` and `new Request()`.
|
|
4736
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4761
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-invalid-fetch-options.md
|
|
4737
4762
|
*/
|
|
4738
4763
|
'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>
|
|
4739
4764
|
/**
|
|
4740
4765
|
* Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
|
|
4741
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4766
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-invalid-remove-event-listener.md
|
|
4742
4767
|
*/
|
|
4743
4768
|
'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>
|
|
4744
4769
|
/**
|
|
4745
4770
|
* Disallow identifiers starting with `new` or `class`.
|
|
4746
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4771
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-keyword-prefix.md
|
|
4747
4772
|
*/
|
|
4748
4773
|
'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>
|
|
4749
4774
|
/**
|
|
4750
4775
|
* Disallow using `.length` as the `end` argument of `{Array,String,TypedArray}#slice()`.
|
|
4751
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4776
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-length-as-slice-end.md
|
|
4752
4777
|
*/
|
|
4753
4778
|
'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>
|
|
4754
4779
|
/**
|
|
4755
4780
|
* Disallow `if` statements as the only statement in `if` blocks without `else`.
|
|
4756
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4781
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-lonely-if.md
|
|
4757
4782
|
*/
|
|
4758
4783
|
'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>
|
|
4759
4784
|
/**
|
|
4760
4785
|
* Disallow a magic number as the `depth` argument in `Array#flat(…).`
|
|
4761
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4786
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-magic-array-flat-depth.md
|
|
4762
4787
|
*/
|
|
4763
4788
|
'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>
|
|
4789
|
+
/**
|
|
4790
|
+
* Disallow named usage of default import and export.
|
|
4791
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-named-default.md
|
|
4792
|
+
*/
|
|
4793
|
+
'unicorn/no-named-default'?: Linter.RuleEntry<[]>
|
|
4764
4794
|
/**
|
|
4765
4795
|
* Disallow negated conditions.
|
|
4766
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4796
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-negated-condition.md
|
|
4767
4797
|
*/
|
|
4768
4798
|
'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>
|
|
4769
4799
|
/**
|
|
4770
4800
|
* Disallow negated expression in equality check.
|
|
4771
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4801
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-negation-in-equality-check.md
|
|
4772
4802
|
*/
|
|
4773
4803
|
'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>
|
|
4774
4804
|
/**
|
|
4775
4805
|
* Disallow nested ternary expressions.
|
|
4776
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4806
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-nested-ternary.md
|
|
4777
4807
|
*/
|
|
4778
4808
|
'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>
|
|
4779
4809
|
/**
|
|
4780
4810
|
* Disallow `new Array()`.
|
|
4781
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4811
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-new-array.md
|
|
4782
4812
|
*/
|
|
4783
4813
|
'unicorn/no-new-array'?: Linter.RuleEntry<[]>
|
|
4784
4814
|
/**
|
|
4785
4815
|
* Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
|
|
4786
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4816
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-new-buffer.md
|
|
4787
4817
|
*/
|
|
4788
4818
|
'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>
|
|
4789
4819
|
/**
|
|
4790
4820
|
* Disallow the use of the `null` literal.
|
|
4791
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4821
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-null.md
|
|
4792
4822
|
*/
|
|
4793
4823
|
'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>
|
|
4794
4824
|
/**
|
|
4795
4825
|
* Disallow the use of objects as default parameters.
|
|
4796
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4826
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-object-as-default-parameter.md
|
|
4797
4827
|
*/
|
|
4798
4828
|
'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>
|
|
4799
4829
|
/**
|
|
4800
4830
|
* Disallow `process.exit()`.
|
|
4801
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4831
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-process-exit.md
|
|
4802
4832
|
*/
|
|
4803
4833
|
'unicorn/no-process-exit'?: Linter.RuleEntry<[]>
|
|
4804
|
-
/**
|
|
4805
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#no-reduce
|
|
4806
|
-
* @deprecated
|
|
4807
|
-
*/
|
|
4808
|
-
'unicorn/no-reduce'?: Linter.RuleEntry<[]>
|
|
4809
4834
|
/**
|
|
4810
4835
|
* Disallow passing single-element arrays to `Promise` methods.
|
|
4811
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4836
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-single-promise-in-promise-methods.md
|
|
4812
4837
|
*/
|
|
4813
4838
|
'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>
|
|
4814
4839
|
/**
|
|
4815
4840
|
* Disallow classes that only have static members.
|
|
4816
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4841
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-static-only-class.md
|
|
4817
4842
|
*/
|
|
4818
4843
|
'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>
|
|
4819
4844
|
/**
|
|
4820
4845
|
* Disallow `then` property.
|
|
4821
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4846
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-thenable.md
|
|
4822
4847
|
*/
|
|
4823
4848
|
'unicorn/no-thenable'?: Linter.RuleEntry<[]>
|
|
4824
4849
|
/**
|
|
4825
4850
|
* Disallow assigning `this` to a variable.
|
|
4826
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4851
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-this-assignment.md
|
|
4827
4852
|
*/
|
|
4828
4853
|
'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>
|
|
4829
4854
|
/**
|
|
4830
4855
|
* Disallow comparing `undefined` using `typeof`.
|
|
4831
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4856
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-typeof-undefined.md
|
|
4832
4857
|
*/
|
|
4833
4858
|
'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>
|
|
4834
4859
|
/**
|
|
4835
4860
|
* Disallow awaiting non-promise values.
|
|
4836
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4861
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unnecessary-await.md
|
|
4837
4862
|
*/
|
|
4838
4863
|
'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>
|
|
4839
4864
|
/**
|
|
4840
4865
|
* Enforce the use of built-in methods instead of unnecessary polyfills.
|
|
4841
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4866
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unnecessary-polyfills.md
|
|
4842
4867
|
*/
|
|
4843
4868
|
'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>
|
|
4844
4869
|
/**
|
|
4845
4870
|
* Disallow unreadable array destructuring.
|
|
4846
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4871
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unreadable-array-destructuring.md
|
|
4847
4872
|
*/
|
|
4848
4873
|
'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>
|
|
4849
4874
|
/**
|
|
4850
4875
|
* Disallow unreadable IIFEs.
|
|
4851
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4876
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unreadable-iife.md
|
|
4852
4877
|
*/
|
|
4853
4878
|
'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>
|
|
4854
|
-
/**
|
|
4855
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#no-unsafe-regex
|
|
4856
|
-
* @deprecated
|
|
4857
|
-
*/
|
|
4858
|
-
'unicorn/no-unsafe-regex'?: Linter.RuleEntry<[]>
|
|
4859
4879
|
/**
|
|
4860
4880
|
* Disallow unused object properties.
|
|
4861
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4881
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unused-properties.md
|
|
4862
4882
|
*/
|
|
4863
4883
|
'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>
|
|
4864
4884
|
/**
|
|
4865
4885
|
* Disallow useless fallback when spreading in object literals.
|
|
4866
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4886
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-fallback-in-spread.md
|
|
4867
4887
|
*/
|
|
4868
4888
|
'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>
|
|
4869
4889
|
/**
|
|
4870
4890
|
* Disallow useless array length check.
|
|
4871
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4891
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-length-check.md
|
|
4872
4892
|
*/
|
|
4873
4893
|
'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>
|
|
4874
4894
|
/**
|
|
4875
4895
|
* Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
|
|
4876
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4896
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-promise-resolve-reject.md
|
|
4877
4897
|
*/
|
|
4878
4898
|
'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>
|
|
4879
4899
|
/**
|
|
4880
4900
|
* Disallow unnecessary spread.
|
|
4881
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4901
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-spread.md
|
|
4882
4902
|
*/
|
|
4883
4903
|
'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>
|
|
4884
4904
|
/**
|
|
4885
4905
|
* Disallow useless case in switch statements.
|
|
4886
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4906
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-switch-case.md
|
|
4887
4907
|
*/
|
|
4888
4908
|
'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>
|
|
4889
4909
|
/**
|
|
4890
4910
|
* Disallow useless `undefined`.
|
|
4891
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4911
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-undefined.md
|
|
4892
4912
|
*/
|
|
4893
4913
|
'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>
|
|
4894
4914
|
/**
|
|
4895
4915
|
* Disallow number literals with zero fractions or dangling dots.
|
|
4896
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4916
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-zero-fractions.md
|
|
4897
4917
|
*/
|
|
4898
4918
|
'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>
|
|
4899
4919
|
/**
|
|
4900
4920
|
* Enforce proper case for numeric literals.
|
|
4901
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4921
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/number-literal-case.md
|
|
4902
4922
|
*/
|
|
4903
4923
|
'unicorn/number-literal-case'?: Linter.RuleEntry<[]>
|
|
4904
4924
|
/**
|
|
4905
4925
|
* Enforce the style of numeric separators by correctly grouping digits.
|
|
4906
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4926
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/numeric-separators-style.md
|
|
4907
4927
|
*/
|
|
4908
4928
|
'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>
|
|
4909
4929
|
/**
|
|
4910
4930
|
* Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
|
|
4911
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4931
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-add-event-listener.md
|
|
4912
4932
|
*/
|
|
4913
4933
|
'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>
|
|
4914
4934
|
/**
|
|
4915
4935
|
* Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
|
|
4916
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4936
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-find.md
|
|
4917
4937
|
*/
|
|
4918
4938
|
'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>
|
|
4919
4939
|
/**
|
|
4920
4940
|
* Prefer `Array#flat()` over legacy techniques to flatten arrays.
|
|
4921
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4941
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-flat.md
|
|
4922
4942
|
*/
|
|
4923
4943
|
'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>
|
|
4924
4944
|
/**
|
|
4925
4945
|
* Prefer `.flatMap(…)` over `.map(…).flat()`.
|
|
4926
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4946
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-flat-map.md
|
|
4927
4947
|
*/
|
|
4928
4948
|
'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>
|
|
4929
4949
|
/**
|
|
4930
4950
|
* Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
|
|
4931
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4951
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-index-of.md
|
|
4932
4952
|
*/
|
|
4933
4953
|
'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>
|
|
4934
4954
|
/**
|
|
4935
4955
|
* Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
|
|
4936
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4956
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-some.md
|
|
4937
4957
|
*/
|
|
4938
4958
|
'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>
|
|
4939
4959
|
/**
|
|
4940
4960
|
* Prefer `.at()` method for index access and `String#charAt()`.
|
|
4941
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4961
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-at.md
|
|
4942
4962
|
*/
|
|
4943
4963
|
'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>
|
|
4944
4964
|
/**
|
|
4945
4965
|
* Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
|
|
4946
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4966
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-blob-reading-methods.md
|
|
4947
4967
|
*/
|
|
4948
4968
|
'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>
|
|
4949
4969
|
/**
|
|
4950
4970
|
* Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
|
|
4951
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4971
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-code-point.md
|
|
4952
4972
|
*/
|
|
4953
4973
|
'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>
|
|
4954
|
-
/**
|
|
4955
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-dataset
|
|
4956
|
-
* @deprecated
|
|
4957
|
-
*/
|
|
4958
|
-
'unicorn/prefer-dataset'?: Linter.RuleEntry<[]>
|
|
4959
4974
|
/**
|
|
4960
4975
|
* Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
|
|
4961
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4976
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-date-now.md
|
|
4962
4977
|
*/
|
|
4963
4978
|
'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>
|
|
4964
4979
|
/**
|
|
4965
4980
|
* Prefer default parameters over reassignment.
|
|
4966
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4981
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-default-parameters.md
|
|
4967
4982
|
*/
|
|
4968
4983
|
'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>
|
|
4969
4984
|
/**
|
|
4970
4985
|
* Prefer `Node#append()` over `Node#appendChild()`.
|
|
4971
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4986
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-append.md
|
|
4972
4987
|
*/
|
|
4973
4988
|
'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>
|
|
4974
4989
|
/**
|
|
4975
4990
|
* Prefer using `.dataset` on DOM elements over calling attribute methods.
|
|
4976
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4991
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-dataset.md
|
|
4977
4992
|
*/
|
|
4978
4993
|
'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>
|
|
4979
4994
|
/**
|
|
4980
4995
|
* Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
|
|
4981
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4996
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-remove.md
|
|
4982
4997
|
*/
|
|
4983
4998
|
'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>
|
|
4984
4999
|
/**
|
|
4985
5000
|
* Prefer `.textContent` over `.innerText`.
|
|
4986
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5001
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-text-content.md
|
|
4987
5002
|
*/
|
|
4988
5003
|
'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>
|
|
4989
|
-
/**
|
|
4990
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-event-key
|
|
4991
|
-
* @deprecated
|
|
4992
|
-
*/
|
|
4993
|
-
'unicorn/prefer-event-key'?: Linter.RuleEntry<[]>
|
|
4994
5004
|
/**
|
|
4995
5005
|
* Prefer `EventTarget` over `EventEmitter`.
|
|
4996
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5006
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-event-target.md
|
|
4997
5007
|
*/
|
|
4998
5008
|
'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>
|
|
4999
|
-
/**
|
|
5000
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-exponentiation-operator
|
|
5001
|
-
* @deprecated
|
|
5002
|
-
*/
|
|
5003
|
-
'unicorn/prefer-exponentiation-operator'?: Linter.RuleEntry<[]>
|
|
5004
5009
|
/**
|
|
5005
5010
|
* Prefer `export…from` when re-exporting.
|
|
5006
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5011
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-export-from.md
|
|
5007
5012
|
*/
|
|
5008
5013
|
'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>
|
|
5009
|
-
/**
|
|
5010
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-flat-map
|
|
5011
|
-
* @deprecated
|
|
5012
|
-
*/
|
|
5013
|
-
'unicorn/prefer-flat-map'?: Linter.RuleEntry<[]>
|
|
5014
5014
|
/**
|
|
5015
5015
|
* Prefer `globalThis` over `window`, `self`, and `global`.
|
|
5016
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5016
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-global-this.md
|
|
5017
5017
|
*/
|
|
5018
5018
|
'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>
|
|
5019
5019
|
/**
|
|
5020
5020
|
* Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
|
|
5021
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5021
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-includes.md
|
|
5022
5022
|
*/
|
|
5023
5023
|
'unicorn/prefer-includes'?: Linter.RuleEntry<[]>
|
|
5024
5024
|
/**
|
|
5025
5025
|
* Prefer reading a JSON file as a buffer.
|
|
5026
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5026
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-json-parse-buffer.md
|
|
5027
5027
|
*/
|
|
5028
5028
|
'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>
|
|
5029
5029
|
/**
|
|
5030
5030
|
* Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
|
|
5031
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5031
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-keyboard-event-key.md
|
|
5032
5032
|
*/
|
|
5033
5033
|
'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>
|
|
5034
5034
|
/**
|
|
5035
5035
|
* Prefer using a logical operator over a ternary.
|
|
5036
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5036
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-logical-operator-over-ternary.md
|
|
5037
5037
|
*/
|
|
5038
5038
|
'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>
|
|
5039
5039
|
/**
|
|
5040
5040
|
* Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
|
|
5041
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5041
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-math-min-max.md
|
|
5042
5042
|
*/
|
|
5043
5043
|
'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>
|
|
5044
5044
|
/**
|
|
5045
5045
|
* Enforce the use of `Math.trunc` instead of bitwise operators.
|
|
5046
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5046
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-math-trunc.md
|
|
5047
5047
|
*/
|
|
5048
5048
|
'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>
|
|
5049
5049
|
/**
|
|
5050
5050
|
* Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
|
|
5051
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5051
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-modern-dom-apis.md
|
|
5052
5052
|
*/
|
|
5053
5053
|
'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>
|
|
5054
5054
|
/**
|
|
5055
5055
|
* Prefer modern `Math` APIs over legacy patterns.
|
|
5056
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5056
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-modern-math-apis.md
|
|
5057
5057
|
*/
|
|
5058
5058
|
'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>
|
|
5059
5059
|
/**
|
|
5060
5060
|
* Prefer JavaScript modules (ESM) over CommonJS.
|
|
5061
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5061
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-module.md
|
|
5062
5062
|
*/
|
|
5063
5063
|
'unicorn/prefer-module'?: Linter.RuleEntry<[]>
|
|
5064
5064
|
/**
|
|
5065
5065
|
* Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
|
|
5066
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5066
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-native-coercion-functions.md
|
|
5067
5067
|
*/
|
|
5068
5068
|
'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>
|
|
5069
5069
|
/**
|
|
5070
5070
|
* Prefer negative index over `.length - index` when possible.
|
|
5071
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5071
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-negative-index.md
|
|
5072
5072
|
*/
|
|
5073
5073
|
'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>
|
|
5074
|
-
/**
|
|
5075
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-node-append
|
|
5076
|
-
* @deprecated
|
|
5077
|
-
*/
|
|
5078
|
-
'unicorn/prefer-node-append'?: Linter.RuleEntry<[]>
|
|
5079
5074
|
/**
|
|
5080
5075
|
* Prefer using the `node:` protocol when importing Node.js builtin modules.
|
|
5081
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5076
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-node-protocol.md
|
|
5082
5077
|
*/
|
|
5083
5078
|
'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>
|
|
5084
|
-
/**
|
|
5085
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-node-remove
|
|
5086
|
-
* @deprecated
|
|
5087
|
-
*/
|
|
5088
|
-
'unicorn/prefer-node-remove'?: Linter.RuleEntry<[]>
|
|
5089
5079
|
/**
|
|
5090
5080
|
* Prefer `Number` static properties over global ones.
|
|
5091
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5081
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-number-properties.md
|
|
5092
5082
|
*/
|
|
5093
5083
|
'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>
|
|
5094
5084
|
/**
|
|
5095
5085
|
* Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
|
|
5096
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5086
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-object-from-entries.md
|
|
5097
5087
|
*/
|
|
5098
5088
|
'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>
|
|
5099
|
-
/**
|
|
5100
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-object-has-own
|
|
5101
|
-
* @deprecated
|
|
5102
|
-
*/
|
|
5103
|
-
'unicorn/prefer-object-has-own'?: Linter.RuleEntry<[]>
|
|
5104
5089
|
/**
|
|
5105
5090
|
* Prefer omitting the `catch` binding parameter.
|
|
5106
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5091
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-optional-catch-binding.md
|
|
5107
5092
|
*/
|
|
5108
5093
|
'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>
|
|
5109
5094
|
/**
|
|
5110
5095
|
* Prefer borrowing methods from the prototype instead of the instance.
|
|
5111
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5096
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-prototype-methods.md
|
|
5112
5097
|
*/
|
|
5113
5098
|
'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>
|
|
5114
5099
|
/**
|
|
5115
5100
|
* Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
|
|
5116
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5101
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-query-selector.md
|
|
5117
5102
|
*/
|
|
5118
5103
|
'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>
|
|
5119
5104
|
/**
|
|
5120
5105
|
* Prefer `Reflect.apply()` over `Function#apply()`.
|
|
5121
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5106
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-reflect-apply.md
|
|
5122
5107
|
*/
|
|
5123
5108
|
'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>
|
|
5124
5109
|
/**
|
|
5125
5110
|
* Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
|
|
5126
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5111
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-regexp-test.md
|
|
5127
5112
|
*/
|
|
5128
5113
|
'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>
|
|
5129
|
-
/**
|
|
5130
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-replace-all
|
|
5131
|
-
* @deprecated
|
|
5132
|
-
*/
|
|
5133
|
-
'unicorn/prefer-replace-all'?: Linter.RuleEntry<[]>
|
|
5134
5114
|
/**
|
|
5135
5115
|
* Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
|
|
5136
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5116
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-set-has.md
|
|
5137
5117
|
*/
|
|
5138
5118
|
'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>
|
|
5139
5119
|
/**
|
|
5140
5120
|
* Prefer using `Set#size` instead of `Array#length`.
|
|
5141
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5121
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-set-size.md
|
|
5142
5122
|
*/
|
|
5143
5123
|
'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>
|
|
5144
5124
|
/**
|
|
5145
5125
|
* Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
|
|
5146
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5126
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-spread.md
|
|
5147
5127
|
*/
|
|
5148
5128
|
'unicorn/prefer-spread'?: Linter.RuleEntry<[]>
|
|
5149
|
-
/**
|
|
5150
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-starts-ends-with
|
|
5151
|
-
* @deprecated
|
|
5152
|
-
*/
|
|
5153
|
-
'unicorn/prefer-starts-ends-with'?: Linter.RuleEntry<[]>
|
|
5154
5129
|
/**
|
|
5155
5130
|
* Prefer using the `String.raw` tag to avoid escaping `\`.
|
|
5156
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5131
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-raw.md
|
|
5157
5132
|
*/
|
|
5158
5133
|
'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>
|
|
5159
5134
|
/**
|
|
5160
5135
|
* Prefer `String#replaceAll()` over regex searches with the global flag.
|
|
5161
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5136
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-replace-all.md
|
|
5162
5137
|
*/
|
|
5163
5138
|
'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>
|
|
5164
5139
|
/**
|
|
5165
5140
|
* Prefer `String#slice()` over `String#substr()` and `String#substring()`.
|
|
5166
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5141
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-slice.md
|
|
5167
5142
|
*/
|
|
5168
5143
|
'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>
|
|
5169
5144
|
/**
|
|
5170
5145
|
* Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
|
|
5171
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5146
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-starts-ends-with.md
|
|
5172
5147
|
*/
|
|
5173
5148
|
'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>
|
|
5174
5149
|
/**
|
|
5175
5150
|
* Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
|
|
5176
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5151
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-trim-start-end.md
|
|
5177
5152
|
*/
|
|
5178
5153
|
'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>
|
|
5179
5154
|
/**
|
|
5180
5155
|
* Prefer using `structuredClone` to create a deep clone.
|
|
5181
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5156
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-structured-clone.md
|
|
5182
5157
|
*/
|
|
5183
5158
|
'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>
|
|
5184
5159
|
/**
|
|
5185
5160
|
* Prefer `switch` over multiple `else-if`.
|
|
5186
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5161
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-switch.md
|
|
5187
5162
|
*/
|
|
5188
5163
|
'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>
|
|
5189
5164
|
/**
|
|
5190
5165
|
* Prefer ternary expressions over simple `if-else` statements.
|
|
5191
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5166
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-ternary.md
|
|
5192
5167
|
*/
|
|
5193
5168
|
'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>
|
|
5194
|
-
/**
|
|
5195
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-text-content
|
|
5196
|
-
* @deprecated
|
|
5197
|
-
*/
|
|
5198
|
-
'unicorn/prefer-text-content'?: Linter.RuleEntry<[]>
|
|
5199
5169
|
/**
|
|
5200
5170
|
* Prefer top-level await over top-level promises and async function calls.
|
|
5201
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5171
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-top-level-await.md
|
|
5202
5172
|
*/
|
|
5203
5173
|
'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>
|
|
5204
|
-
/**
|
|
5205
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-trim-start-end
|
|
5206
|
-
* @deprecated
|
|
5207
|
-
*/
|
|
5208
|
-
'unicorn/prefer-trim-start-end'?: Linter.RuleEntry<[]>
|
|
5209
5174
|
/**
|
|
5210
5175
|
* Enforce throwing `TypeError` in type checking conditions.
|
|
5211
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5176
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-type-error.md
|
|
5212
5177
|
*/
|
|
5213
5178
|
'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>
|
|
5214
5179
|
/**
|
|
5215
5180
|
* Prevent abbreviations.
|
|
5216
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5181
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prevent-abbreviations.md
|
|
5217
5182
|
*/
|
|
5218
5183
|
'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>
|
|
5219
|
-
/**
|
|
5220
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#regex-shorthand
|
|
5221
|
-
* @deprecated
|
|
5222
|
-
*/
|
|
5223
|
-
'unicorn/regex-shorthand'?: Linter.RuleEntry<[]>
|
|
5224
5184
|
/**
|
|
5225
5185
|
* Enforce consistent relative URL style.
|
|
5226
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5186
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/relative-url-style.md
|
|
5227
5187
|
*/
|
|
5228
5188
|
'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>
|
|
5229
5189
|
/**
|
|
5230
5190
|
* Enforce using the separator argument with `Array#join()`.
|
|
5231
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5191
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/require-array-join-separator.md
|
|
5232
5192
|
*/
|
|
5233
5193
|
'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>
|
|
5234
5194
|
/**
|
|
5235
5195
|
* Enforce using the digits argument with `Number#toFixed()`.
|
|
5236
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5196
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/require-number-to-fixed-digits-argument.md
|
|
5237
5197
|
*/
|
|
5238
5198
|
'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>
|
|
5239
5199
|
/**
|
|
5240
5200
|
* Enforce using the `targetOrigin` argument with `window.postMessage()`.
|
|
5241
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5201
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/require-post-message-target-origin.md
|
|
5242
5202
|
*/
|
|
5243
5203
|
'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>
|
|
5244
5204
|
/**
|
|
5245
5205
|
* Enforce better string content.
|
|
5246
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5206
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/string-content.md
|
|
5247
5207
|
*/
|
|
5248
5208
|
'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>
|
|
5249
5209
|
/**
|
|
5250
5210
|
* Enforce consistent brace style for `case` clauses.
|
|
5251
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5211
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/switch-case-braces.md
|
|
5252
5212
|
*/
|
|
5253
5213
|
'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>
|
|
5254
5214
|
/**
|
|
5255
5215
|
* Fix whitespace-insensitive template indentation.
|
|
5256
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5216
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/template-indent.md
|
|
5257
5217
|
*/
|
|
5258
5218
|
'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>
|
|
5259
5219
|
/**
|
|
5260
5220
|
* Enforce consistent case for text encoding identifiers.
|
|
5261
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5221
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/text-encoding-identifier-case.md
|
|
5262
5222
|
*/
|
|
5263
5223
|
'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<[]>
|
|
5264
5224
|
/**
|
|
5265
5225
|
* Require `new` when creating an error.
|
|
5266
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5226
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/throw-new-error.md
|
|
5267
5227
|
*/
|
|
5268
5228
|
'unicorn/throw-new-error'?: Linter.RuleEntry<[]>
|
|
5269
5229
|
/**
|
|
@@ -5493,7 +5453,7 @@ interface Rules {
|
|
|
5493
5453
|
*/
|
|
5494
5454
|
'vue/jsx-uses-vars'?: Linter.RuleEntry<[]>
|
|
5495
5455
|
/**
|
|
5496
|
-
* Enforce consistent spacing between
|
|
5456
|
+
* Enforce consistent spacing between keys and values in object literal properties in `<template>`
|
|
5497
5457
|
* @see https://eslint.vuejs.org/rules/key-spacing.html
|
|
5498
5458
|
*/
|
|
5499
5459
|
'vue/key-spacing'?: Linter.RuleEntry<VueKeySpacing>
|
|
@@ -6186,7 +6146,7 @@ interface Rules {
|
|
|
6186
6146
|
*/
|
|
6187
6147
|
'vue/prop-name-casing'?: Linter.RuleEntry<VuePropNameCasing>
|
|
6188
6148
|
/**
|
|
6189
|
-
* Require quotes around object literal
|
|
6149
|
+
* Require quotes around object literal property names in `<template>`
|
|
6190
6150
|
* @see https://eslint.vuejs.org/rules/quote-props.html
|
|
6191
6151
|
*/
|
|
6192
6152
|
'vue/quote-props'?: Linter.RuleEntry<VueQuoteProps>
|
|
@@ -9204,11 +9164,25 @@ type PaddingLineBetweenStatements = {
|
|
|
9204
9164
|
// ----- perfectionist/sort-array-includes -----
|
|
9205
9165
|
type PerfectionistSortArrayIncludes = {
|
|
9206
9166
|
|
|
9207
|
-
|
|
9208
|
-
|
|
9209
|
-
|
|
9167
|
+
specialCharacters?: ("remove" | "trim" | "keep")
|
|
9168
|
+
|
|
9169
|
+
fallbackSort?: {
|
|
9170
|
+
|
|
9171
|
+
order?: ("asc" | "desc")
|
|
9172
|
+
|
|
9173
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
9210
9174
|
[k: string]: unknown | undefined
|
|
9211
|
-
}
|
|
9175
|
+
}
|
|
9176
|
+
|
|
9177
|
+
ignoreCase?: boolean
|
|
9178
|
+
|
|
9179
|
+
alphabet?: string
|
|
9180
|
+
|
|
9181
|
+
locales?: (string | string[])
|
|
9182
|
+
|
|
9183
|
+
order?: ("asc" | "desc")
|
|
9184
|
+
|
|
9185
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
9212
9186
|
|
|
9213
9187
|
groupKind?: ("mixed" | "literals-first" | "spreads-first")
|
|
9214
9188
|
|
|
@@ -9225,7 +9199,13 @@ type PerfectionistSortArrayIncludes = {
|
|
|
9225
9199
|
|
|
9226
9200
|
selector?: ("literal" | "spread")
|
|
9227
9201
|
|
|
9228
|
-
elementNamePattern?:
|
|
9202
|
+
elementNamePattern?: (({
|
|
9203
|
+
pattern?: string
|
|
9204
|
+
flags?: string
|
|
9205
|
+
} | string)[] | ({
|
|
9206
|
+
pattern?: string
|
|
9207
|
+
flags?: string
|
|
9208
|
+
} | string))
|
|
9229
9209
|
}[]
|
|
9230
9210
|
} | {
|
|
9231
9211
|
|
|
@@ -9239,38 +9219,79 @@ type PerfectionistSortArrayIncludes = {
|
|
|
9239
9219
|
|
|
9240
9220
|
selector?: ("literal" | "spread")
|
|
9241
9221
|
|
|
9242
|
-
elementNamePattern?:
|
|
9222
|
+
elementNamePattern?: (({
|
|
9223
|
+
pattern?: string
|
|
9224
|
+
flags?: string
|
|
9225
|
+
} | string)[] | ({
|
|
9226
|
+
pattern?: string
|
|
9227
|
+
flags?: string
|
|
9228
|
+
} | string))
|
|
9243
9229
|
})[]
|
|
9244
9230
|
useConfigurationIf?: {
|
|
9245
|
-
|
|
9246
|
-
|
|
9247
|
-
|
|
9248
|
-
|
|
9231
|
+
|
|
9232
|
+
allNamesMatchPattern?: (({
|
|
9233
|
+
pattern?: string
|
|
9234
|
+
flags?: string
|
|
9235
|
+
} | string)[] | ({
|
|
9236
|
+
pattern?: string
|
|
9237
|
+
flags?: string
|
|
9238
|
+
} | string))
|
|
9239
|
+
}
|
|
9240
|
+
|
|
9241
|
+
partitionByComment?: (boolean | (({
|
|
9242
|
+
pattern?: string
|
|
9243
|
+
flags?: string
|
|
9244
|
+
} | string)[] | ({
|
|
9245
|
+
pattern?: string
|
|
9246
|
+
flags?: string
|
|
9247
|
+
} | string)) | {
|
|
9248
|
+
block?: (boolean | (({
|
|
9249
|
+
pattern?: string
|
|
9250
|
+
flags?: string
|
|
9251
|
+
} | string)[] | ({
|
|
9252
|
+
pattern?: string
|
|
9253
|
+
flags?: string
|
|
9254
|
+
} | string)))
|
|
9255
|
+
line?: (boolean | (({
|
|
9256
|
+
pattern?: string
|
|
9257
|
+
flags?: string
|
|
9258
|
+
} | string)[] | ({
|
|
9259
|
+
pattern?: string
|
|
9260
|
+
flags?: string
|
|
9261
|
+
} | string)))
|
|
9262
|
+
})
|
|
9249
9263
|
|
|
9250
9264
|
partitionByNewLine?: boolean
|
|
9251
9265
|
|
|
9266
|
+
newlinesBetween?: ("ignore" | "always" | "never")
|
|
9267
|
+
|
|
9268
|
+
groups?: (string | string[] | {
|
|
9269
|
+
|
|
9270
|
+
newlinesBetween?: ("ignore" | "always" | "never")
|
|
9271
|
+
})[]
|
|
9272
|
+
}[]
|
|
9273
|
+
// ----- perfectionist/sort-classes -----
|
|
9274
|
+
type PerfectionistSortClasses = []|[{
|
|
9275
|
+
|
|
9252
9276
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
9253
9277
|
|
|
9278
|
+
fallbackSort?: {
|
|
9279
|
+
|
|
9280
|
+
order?: ("asc" | "desc")
|
|
9281
|
+
|
|
9282
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
9283
|
+
[k: string]: unknown | undefined
|
|
9284
|
+
}
|
|
9285
|
+
|
|
9254
9286
|
ignoreCase?: boolean
|
|
9255
9287
|
|
|
9256
9288
|
alphabet?: string
|
|
9257
9289
|
|
|
9258
9290
|
locales?: (string | string[])
|
|
9259
9291
|
|
|
9260
|
-
groups?: (string | string[])[]
|
|
9261
|
-
|
|
9262
9292
|
order?: ("asc" | "desc")
|
|
9263
|
-
}[]
|
|
9264
|
-
// ----- perfectionist/sort-classes -----
|
|
9265
|
-
type PerfectionistSortClasses = []|[{
|
|
9266
|
-
|
|
9267
|
-
ignoreCallbackDependenciesPatterns?: string[]
|
|
9268
9293
|
|
|
9269
|
-
|
|
9270
|
-
block?: (string[] | boolean | string)
|
|
9271
|
-
line?: (string[] | boolean | string)
|
|
9272
|
-
[k: string]: unknown | undefined
|
|
9273
|
-
})
|
|
9294
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
9274
9295
|
|
|
9275
9296
|
customGroups?: ({
|
|
9276
9297
|
|
|
@@ -9283,15 +9304,33 @@ type PerfectionistSortClasses = []|[{
|
|
|
9283
9304
|
newlinesInside?: ("always" | "never")
|
|
9284
9305
|
anyOf?: {
|
|
9285
9306
|
|
|
9286
|
-
elementValuePattern?: string
|
|
9287
|
-
|
|
9288
|
-
decoratorNamePattern?: string
|
|
9289
|
-
|
|
9290
9307
|
modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[]
|
|
9291
9308
|
|
|
9292
9309
|
selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method")
|
|
9293
9310
|
|
|
9294
|
-
|
|
9311
|
+
decoratorNamePattern?: (({
|
|
9312
|
+
pattern?: string
|
|
9313
|
+
flags?: string
|
|
9314
|
+
} | string)[] | ({
|
|
9315
|
+
pattern?: string
|
|
9316
|
+
flags?: string
|
|
9317
|
+
} | string))
|
|
9318
|
+
|
|
9319
|
+
elementValuePattern?: (({
|
|
9320
|
+
pattern?: string
|
|
9321
|
+
flags?: string
|
|
9322
|
+
} | string)[] | ({
|
|
9323
|
+
pattern?: string
|
|
9324
|
+
flags?: string
|
|
9325
|
+
} | string))
|
|
9326
|
+
|
|
9327
|
+
elementNamePattern?: (({
|
|
9328
|
+
pattern?: string
|
|
9329
|
+
flags?: string
|
|
9330
|
+
} | string)[] | ({
|
|
9331
|
+
pattern?: string
|
|
9332
|
+
flags?: string
|
|
9333
|
+
} | string))
|
|
9295
9334
|
}[]
|
|
9296
9335
|
} | {
|
|
9297
9336
|
|
|
@@ -9303,43 +9342,97 @@ type PerfectionistSortClasses = []|[{
|
|
|
9303
9342
|
|
|
9304
9343
|
newlinesInside?: ("always" | "never")
|
|
9305
9344
|
|
|
9306
|
-
elementValuePattern?: string
|
|
9307
|
-
|
|
9308
|
-
decoratorNamePattern?: string
|
|
9309
|
-
|
|
9310
9345
|
modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[]
|
|
9311
9346
|
|
|
9312
9347
|
selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method")
|
|
9313
9348
|
|
|
9314
|
-
|
|
9349
|
+
decoratorNamePattern?: (({
|
|
9350
|
+
pattern?: string
|
|
9351
|
+
flags?: string
|
|
9352
|
+
} | string)[] | ({
|
|
9353
|
+
pattern?: string
|
|
9354
|
+
flags?: string
|
|
9355
|
+
} | string))
|
|
9356
|
+
|
|
9357
|
+
elementValuePattern?: (({
|
|
9358
|
+
pattern?: string
|
|
9359
|
+
flags?: string
|
|
9360
|
+
} | string)[] | ({
|
|
9361
|
+
pattern?: string
|
|
9362
|
+
flags?: string
|
|
9363
|
+
} | string))
|
|
9364
|
+
|
|
9365
|
+
elementNamePattern?: (({
|
|
9366
|
+
pattern?: string
|
|
9367
|
+
flags?: string
|
|
9368
|
+
} | string)[] | ({
|
|
9369
|
+
pattern?: string
|
|
9370
|
+
flags?: string
|
|
9371
|
+
} | string))
|
|
9315
9372
|
})[]
|
|
9316
9373
|
|
|
9374
|
+
ignoreCallbackDependenciesPatterns?: (({
|
|
9375
|
+
pattern?: string
|
|
9376
|
+
flags?: string
|
|
9377
|
+
} | string)[] | ({
|
|
9378
|
+
pattern?: string
|
|
9379
|
+
flags?: string
|
|
9380
|
+
} | string))
|
|
9381
|
+
|
|
9382
|
+
partitionByComment?: (boolean | (({
|
|
9383
|
+
pattern?: string
|
|
9384
|
+
flags?: string
|
|
9385
|
+
} | string)[] | ({
|
|
9386
|
+
pattern?: string
|
|
9387
|
+
flags?: string
|
|
9388
|
+
} | string)) | {
|
|
9389
|
+
block?: (boolean | (({
|
|
9390
|
+
pattern?: string
|
|
9391
|
+
flags?: string
|
|
9392
|
+
} | string)[] | ({
|
|
9393
|
+
pattern?: string
|
|
9394
|
+
flags?: string
|
|
9395
|
+
} | string)))
|
|
9396
|
+
line?: (boolean | (({
|
|
9397
|
+
pattern?: string
|
|
9398
|
+
flags?: string
|
|
9399
|
+
} | string)[] | ({
|
|
9400
|
+
pattern?: string
|
|
9401
|
+
flags?: string
|
|
9402
|
+
} | string)))
|
|
9403
|
+
})
|
|
9404
|
+
|
|
9317
9405
|
partitionByNewLine?: boolean
|
|
9318
9406
|
|
|
9407
|
+
newlinesBetween?: ("ignore" | "always" | "never")
|
|
9408
|
+
|
|
9409
|
+
groups?: (string | string[] | {
|
|
9410
|
+
|
|
9411
|
+
newlinesBetween?: ("ignore" | "always" | "never")
|
|
9412
|
+
})[]
|
|
9413
|
+
}]
|
|
9414
|
+
// ----- perfectionist/sort-decorators -----
|
|
9415
|
+
type PerfectionistSortDecorators = []|[{
|
|
9416
|
+
|
|
9319
9417
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
9320
9418
|
|
|
9321
|
-
|
|
9419
|
+
fallbackSort?: {
|
|
9420
|
+
|
|
9421
|
+
order?: ("asc" | "desc")
|
|
9422
|
+
|
|
9423
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
9424
|
+
[k: string]: unknown | undefined
|
|
9425
|
+
}
|
|
9322
9426
|
|
|
9323
9427
|
ignoreCase?: boolean
|
|
9324
9428
|
|
|
9325
9429
|
alphabet?: string
|
|
9326
9430
|
|
|
9327
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom")
|
|
9328
|
-
|
|
9329
9431
|
locales?: (string | string[])
|
|
9330
9432
|
|
|
9331
|
-
groups?: (string | string[])[]
|
|
9332
|
-
|
|
9333
9433
|
order?: ("asc" | "desc")
|
|
9334
|
-
}]
|
|
9335
|
-
// ----- perfectionist/sort-decorators -----
|
|
9336
|
-
type PerfectionistSortDecorators = []|[{
|
|
9337
9434
|
|
|
9338
|
-
|
|
9339
|
-
block?: (string[] | boolean | string)
|
|
9340
|
-
line?: (string[] | boolean | string)
|
|
9341
|
-
[k: string]: unknown | undefined
|
|
9342
|
-
})
|
|
9435
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
9343
9436
|
|
|
9344
9437
|
sortOnParameters?: boolean
|
|
9345
9438
|
|
|
@@ -9351,100 +9444,257 @@ type PerfectionistSortDecorators = []|[{
|
|
|
9351
9444
|
|
|
9352
9445
|
sortOnClasses?: boolean
|
|
9353
9446
|
|
|
9354
|
-
|
|
9447
|
+
partitionByComment?: (boolean | (({
|
|
9448
|
+
pattern?: string
|
|
9449
|
+
flags?: string
|
|
9450
|
+
} | string)[] | ({
|
|
9451
|
+
pattern?: string
|
|
9452
|
+
flags?: string
|
|
9453
|
+
} | string)) | {
|
|
9454
|
+
block?: (boolean | (({
|
|
9455
|
+
pattern?: string
|
|
9456
|
+
flags?: string
|
|
9457
|
+
} | string)[] | ({
|
|
9458
|
+
pattern?: string
|
|
9459
|
+
flags?: string
|
|
9460
|
+
} | string)))
|
|
9461
|
+
line?: (boolean | (({
|
|
9462
|
+
pattern?: string
|
|
9463
|
+
flags?: string
|
|
9464
|
+
} | string)[] | ({
|
|
9465
|
+
pattern?: string
|
|
9466
|
+
flags?: string
|
|
9467
|
+
} | string)))
|
|
9468
|
+
})
|
|
9355
9469
|
|
|
9356
9470
|
customGroups?: {
|
|
9357
9471
|
[k: string]: (string | string[]) | undefined
|
|
9358
9472
|
}
|
|
9359
9473
|
|
|
9474
|
+
groups?: (string | string[] | {
|
|
9475
|
+
|
|
9476
|
+
newlinesBetween?: ("ignore" | "always" | "never")
|
|
9477
|
+
})[]
|
|
9478
|
+
}]
|
|
9479
|
+
// ----- perfectionist/sort-enums -----
|
|
9480
|
+
type PerfectionistSortEnums = []|[{
|
|
9481
|
+
|
|
9482
|
+
specialCharacters?: ("remove" | "trim" | "keep")
|
|
9483
|
+
|
|
9484
|
+
fallbackSort?: {
|
|
9485
|
+
|
|
9486
|
+
order?: ("asc" | "desc")
|
|
9487
|
+
|
|
9488
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
9489
|
+
[k: string]: unknown | undefined
|
|
9490
|
+
}
|
|
9491
|
+
|
|
9360
9492
|
ignoreCase?: boolean
|
|
9361
9493
|
|
|
9362
9494
|
alphabet?: string
|
|
9363
9495
|
|
|
9364
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom")
|
|
9365
|
-
|
|
9366
9496
|
locales?: (string | string[])
|
|
9367
9497
|
|
|
9368
|
-
groups?: (string | string[])[]
|
|
9369
|
-
|
|
9370
9498
|
order?: ("asc" | "desc")
|
|
9371
|
-
}]
|
|
9372
|
-
// ----- perfectionist/sort-enums -----
|
|
9373
|
-
type PerfectionistSortEnums = []|[{
|
|
9374
9499
|
|
|
9375
|
-
|
|
9376
|
-
block?: (string[] | boolean | string)
|
|
9377
|
-
line?: (string[] | boolean | string)
|
|
9378
|
-
[k: string]: unknown | undefined
|
|
9379
|
-
})
|
|
9500
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
9380
9501
|
|
|
9381
9502
|
forceNumericSort?: boolean
|
|
9503
|
+
customGroups?: ({
|
|
9504
|
+
[k: string]: (string | string[]) | undefined
|
|
9505
|
+
} | ({
|
|
9506
|
+
|
|
9507
|
+
groupName?: string
|
|
9508
|
+
|
|
9509
|
+
type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
|
|
9510
|
+
|
|
9511
|
+
order?: ("desc" | "asc")
|
|
9512
|
+
|
|
9513
|
+
newlinesInside?: ("always" | "never")
|
|
9514
|
+
anyOf?: {
|
|
9515
|
+
|
|
9516
|
+
elementValuePattern?: (({
|
|
9517
|
+
pattern?: string
|
|
9518
|
+
flags?: string
|
|
9519
|
+
} | string)[] | ({
|
|
9520
|
+
pattern?: string
|
|
9521
|
+
flags?: string
|
|
9522
|
+
} | string))
|
|
9523
|
+
|
|
9524
|
+
elementNamePattern?: (({
|
|
9525
|
+
pattern?: string
|
|
9526
|
+
flags?: string
|
|
9527
|
+
} | string)[] | ({
|
|
9528
|
+
pattern?: string
|
|
9529
|
+
flags?: string
|
|
9530
|
+
} | string))
|
|
9531
|
+
}[]
|
|
9532
|
+
} | {
|
|
9533
|
+
|
|
9534
|
+
groupName?: string
|
|
9535
|
+
|
|
9536
|
+
type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
|
|
9537
|
+
|
|
9538
|
+
order?: ("desc" | "asc")
|
|
9539
|
+
|
|
9540
|
+
newlinesInside?: ("always" | "never")
|
|
9541
|
+
|
|
9542
|
+
elementValuePattern?: (({
|
|
9543
|
+
pattern?: string
|
|
9544
|
+
flags?: string
|
|
9545
|
+
} | string)[] | ({
|
|
9546
|
+
pattern?: string
|
|
9547
|
+
flags?: string
|
|
9548
|
+
} | string))
|
|
9549
|
+
|
|
9550
|
+
elementNamePattern?: (({
|
|
9551
|
+
pattern?: string
|
|
9552
|
+
flags?: string
|
|
9553
|
+
} | string)[] | ({
|
|
9554
|
+
pattern?: string
|
|
9555
|
+
flags?: string
|
|
9556
|
+
} | string))
|
|
9557
|
+
})[])
|
|
9382
9558
|
|
|
9383
9559
|
sortByValue?: boolean
|
|
9384
9560
|
|
|
9561
|
+
partitionByComment?: (boolean | (({
|
|
9562
|
+
pattern?: string
|
|
9563
|
+
flags?: string
|
|
9564
|
+
} | string)[] | ({
|
|
9565
|
+
pattern?: string
|
|
9566
|
+
flags?: string
|
|
9567
|
+
} | string)) | {
|
|
9568
|
+
block?: (boolean | (({
|
|
9569
|
+
pattern?: string
|
|
9570
|
+
flags?: string
|
|
9571
|
+
} | string)[] | ({
|
|
9572
|
+
pattern?: string
|
|
9573
|
+
flags?: string
|
|
9574
|
+
} | string)))
|
|
9575
|
+
line?: (boolean | (({
|
|
9576
|
+
pattern?: string
|
|
9577
|
+
flags?: string
|
|
9578
|
+
} | string)[] | ({
|
|
9579
|
+
pattern?: string
|
|
9580
|
+
flags?: string
|
|
9581
|
+
} | string)))
|
|
9582
|
+
})
|
|
9583
|
+
|
|
9385
9584
|
partitionByNewLine?: boolean
|
|
9386
9585
|
|
|
9586
|
+
newlinesBetween?: ("ignore" | "always" | "never")
|
|
9587
|
+
|
|
9588
|
+
groups?: (string | string[] | {
|
|
9589
|
+
|
|
9590
|
+
newlinesBetween?: ("ignore" | "always" | "never")
|
|
9591
|
+
})[]
|
|
9592
|
+
}]
|
|
9593
|
+
// ----- perfectionist/sort-exports -----
|
|
9594
|
+
type PerfectionistSortExports = []|[{
|
|
9595
|
+
|
|
9387
9596
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
9388
9597
|
|
|
9598
|
+
fallbackSort?: {
|
|
9599
|
+
|
|
9600
|
+
order?: ("asc" | "desc")
|
|
9601
|
+
|
|
9602
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
9603
|
+
[k: string]: unknown | undefined
|
|
9604
|
+
}
|
|
9605
|
+
|
|
9389
9606
|
ignoreCase?: boolean
|
|
9390
9607
|
|
|
9391
9608
|
alphabet?: string
|
|
9392
9609
|
|
|
9393
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom")
|
|
9394
|
-
|
|
9395
9610
|
locales?: (string | string[])
|
|
9396
9611
|
|
|
9397
9612
|
order?: ("asc" | "desc")
|
|
9398
|
-
}]
|
|
9399
|
-
// ----- perfectionist/sort-exports -----
|
|
9400
|
-
type PerfectionistSortExports = []|[{
|
|
9401
9613
|
|
|
9402
|
-
|
|
9403
|
-
block?: (string[] | boolean | string)
|
|
9404
|
-
line?: (string[] | boolean | string)
|
|
9405
|
-
[k: string]: unknown | undefined
|
|
9406
|
-
})
|
|
9614
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
9407
9615
|
|
|
9408
9616
|
groupKind?: ("mixed" | "values-first" | "types-first")
|
|
9409
9617
|
|
|
9618
|
+
partitionByComment?: (boolean | (({
|
|
9619
|
+
pattern?: string
|
|
9620
|
+
flags?: string
|
|
9621
|
+
} | string)[] | ({
|
|
9622
|
+
pattern?: string
|
|
9623
|
+
flags?: string
|
|
9624
|
+
} | string)) | {
|
|
9625
|
+
block?: (boolean | (({
|
|
9626
|
+
pattern?: string
|
|
9627
|
+
flags?: string
|
|
9628
|
+
} | string)[] | ({
|
|
9629
|
+
pattern?: string
|
|
9630
|
+
flags?: string
|
|
9631
|
+
} | string)))
|
|
9632
|
+
line?: (boolean | (({
|
|
9633
|
+
pattern?: string
|
|
9634
|
+
flags?: string
|
|
9635
|
+
} | string)[] | ({
|
|
9636
|
+
pattern?: string
|
|
9637
|
+
flags?: string
|
|
9638
|
+
} | string)))
|
|
9639
|
+
})
|
|
9640
|
+
|
|
9410
9641
|
partitionByNewLine?: boolean
|
|
9642
|
+
}]
|
|
9643
|
+
// ----- perfectionist/sort-heritage-clauses -----
|
|
9644
|
+
type PerfectionistSortHeritageClauses = []|[{
|
|
9411
9645
|
|
|
9412
9646
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
9413
9647
|
|
|
9648
|
+
fallbackSort?: {
|
|
9649
|
+
|
|
9650
|
+
order?: ("asc" | "desc")
|
|
9651
|
+
|
|
9652
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
9653
|
+
[k: string]: unknown | undefined
|
|
9654
|
+
}
|
|
9655
|
+
|
|
9414
9656
|
ignoreCase?: boolean
|
|
9415
9657
|
|
|
9416
9658
|
alphabet?: string
|
|
9417
9659
|
|
|
9418
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom")
|
|
9419
|
-
|
|
9420
9660
|
locales?: (string | string[])
|
|
9421
9661
|
|
|
9422
9662
|
order?: ("asc" | "desc")
|
|
9423
|
-
}]
|
|
9424
|
-
// ----- perfectionist/sort-heritage-clauses -----
|
|
9425
|
-
type PerfectionistSortHeritageClauses = []|[{
|
|
9426
9663
|
|
|
9427
|
-
|
|
9664
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
9428
9665
|
|
|
9429
9666
|
customGroups?: {
|
|
9430
9667
|
[k: string]: (string | string[]) | undefined
|
|
9431
9668
|
}
|
|
9432
9669
|
|
|
9670
|
+
groups?: (string | string[] | {
|
|
9671
|
+
|
|
9672
|
+
newlinesBetween?: ("ignore" | "always" | "never")
|
|
9673
|
+
})[]
|
|
9674
|
+
}]
|
|
9675
|
+
// ----- perfectionist/sort-imports -----
|
|
9676
|
+
type PerfectionistSortImports = []|[_PerfectionistSortImportsSortImports]
|
|
9677
|
+
type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLengthRequiresLineLengthType & {
|
|
9678
|
+
|
|
9679
|
+
specialCharacters?: ("remove" | "trim" | "keep")
|
|
9680
|
+
|
|
9681
|
+
fallbackSort?: {
|
|
9682
|
+
|
|
9683
|
+
order?: ("asc" | "desc")
|
|
9684
|
+
|
|
9685
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
9686
|
+
[k: string]: unknown | undefined
|
|
9687
|
+
}
|
|
9688
|
+
|
|
9433
9689
|
ignoreCase?: boolean
|
|
9434
9690
|
|
|
9435
9691
|
alphabet?: string
|
|
9436
9692
|
|
|
9437
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom")
|
|
9438
|
-
|
|
9439
9693
|
locales?: (string | string[])
|
|
9440
9694
|
|
|
9441
|
-
groups?: (string | string[])[]
|
|
9442
|
-
|
|
9443
9695
|
order?: ("asc" | "desc")
|
|
9444
|
-
|
|
9445
|
-
|
|
9446
|
-
type PerfectionistSortImports = []|[_PerfectionistSortImportsSortImports]
|
|
9447
|
-
type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLengthRequiresLineLengthType & {
|
|
9696
|
+
|
|
9697
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
9448
9698
|
|
|
9449
9699
|
customGroups?: {
|
|
9450
9700
|
|
|
@@ -9457,14 +9707,6 @@ type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLen
|
|
|
9457
9707
|
}
|
|
9458
9708
|
}
|
|
9459
9709
|
|
|
9460
|
-
partitionByComment?: (string[] | boolean | string | {
|
|
9461
|
-
block?: (string[] | boolean | string)
|
|
9462
|
-
line?: (string[] | boolean | string)
|
|
9463
|
-
[k: string]: unknown | undefined
|
|
9464
|
-
})
|
|
9465
|
-
|
|
9466
|
-
internalPattern?: string[]
|
|
9467
|
-
|
|
9468
9710
|
maxLineLength?: number
|
|
9469
9711
|
|
|
9470
9712
|
sortSideEffects?: boolean
|
|
@@ -9473,23 +9715,45 @@ type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLen
|
|
|
9473
9715
|
|
|
9474
9716
|
tsconfigRootDir?: string
|
|
9475
9717
|
|
|
9476
|
-
|
|
9718
|
+
partitionByComment?: (boolean | (({
|
|
9719
|
+
pattern?: string
|
|
9720
|
+
flags?: string
|
|
9721
|
+
} | string)[] | ({
|
|
9722
|
+
pattern?: string
|
|
9723
|
+
flags?: string
|
|
9724
|
+
} | string)) | {
|
|
9725
|
+
block?: (boolean | (({
|
|
9726
|
+
pattern?: string
|
|
9727
|
+
flags?: string
|
|
9728
|
+
} | string)[] | ({
|
|
9729
|
+
pattern?: string
|
|
9730
|
+
flags?: string
|
|
9731
|
+
} | string)))
|
|
9732
|
+
line?: (boolean | (({
|
|
9733
|
+
pattern?: string
|
|
9734
|
+
flags?: string
|
|
9735
|
+
} | string)[] | ({
|
|
9736
|
+
pattern?: string
|
|
9737
|
+
flags?: string
|
|
9738
|
+
} | string)))
|
|
9739
|
+
})
|
|
9477
9740
|
|
|
9478
|
-
|
|
9741
|
+
partitionByNewLine?: boolean
|
|
9479
9742
|
|
|
9480
9743
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
9481
9744
|
|
|
9482
|
-
|
|
9483
|
-
|
|
9484
|
-
|
|
9485
|
-
|
|
9486
|
-
|
|
9745
|
+
internalPattern?: (({
|
|
9746
|
+
pattern?: string
|
|
9747
|
+
flags?: string
|
|
9748
|
+
} | string)[] | ({
|
|
9749
|
+
pattern?: string
|
|
9750
|
+
flags?: string
|
|
9751
|
+
} | string))
|
|
9487
9752
|
|
|
9488
|
-
|
|
9489
|
-
|
|
9490
|
-
|
|
9491
|
-
|
|
9492
|
-
order?: ("asc" | "desc")
|
|
9753
|
+
groups?: (string | string[] | {
|
|
9754
|
+
|
|
9755
|
+
newlinesBetween?: ("ignore" | "always" | "never")
|
|
9756
|
+
})[]
|
|
9493
9757
|
})
|
|
9494
9758
|
type _PerfectionistSortImportsMaxLineLengthRequiresLineLengthType = ({
|
|
9495
9759
|
[k: string]: unknown | undefined
|
|
@@ -9501,17 +9765,25 @@ interface _PerfectionistSortImports_IsLineLength {
|
|
|
9501
9765
|
// ----- perfectionist/sort-interfaces -----
|
|
9502
9766
|
type PerfectionistSortInterfaces = {
|
|
9503
9767
|
|
|
9504
|
-
|
|
9505
|
-
useConfigurationIf?: {
|
|
9506
|
-
allNamesMatchPattern?: string
|
|
9507
|
-
declarationMatchesPattern?: string
|
|
9508
|
-
}
|
|
9768
|
+
specialCharacters?: ("remove" | "trim" | "keep")
|
|
9509
9769
|
|
|
9510
|
-
|
|
9511
|
-
|
|
9512
|
-
|
|
9770
|
+
fallbackSort?: {
|
|
9771
|
+
|
|
9772
|
+
order?: ("asc" | "desc")
|
|
9773
|
+
|
|
9774
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
9513
9775
|
[k: string]: unknown | undefined
|
|
9514
|
-
}
|
|
9776
|
+
}
|
|
9777
|
+
|
|
9778
|
+
ignoreCase?: boolean
|
|
9779
|
+
|
|
9780
|
+
alphabet?: string
|
|
9781
|
+
|
|
9782
|
+
locales?: (string | string[])
|
|
9783
|
+
|
|
9784
|
+
order?: ("asc" | "desc")
|
|
9785
|
+
|
|
9786
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
9515
9787
|
customGroups?: ({
|
|
9516
9788
|
[k: string]: (string | string[]) | undefined
|
|
9517
9789
|
} | ({
|
|
@@ -9529,7 +9801,13 @@ type PerfectionistSortInterfaces = {
|
|
|
9529
9801
|
|
|
9530
9802
|
selector?: ("index-signature" | "member" | "method" | "multiline" | "property")
|
|
9531
9803
|
|
|
9532
|
-
elementNamePattern?:
|
|
9804
|
+
elementNamePattern?: (({
|
|
9805
|
+
pattern?: string
|
|
9806
|
+
flags?: string
|
|
9807
|
+
} | string)[] | ({
|
|
9808
|
+
pattern?: string
|
|
9809
|
+
flags?: string
|
|
9810
|
+
} | string))
|
|
9533
9811
|
}[]
|
|
9534
9812
|
} | {
|
|
9535
9813
|
|
|
@@ -9545,18 +9823,87 @@ type PerfectionistSortInterfaces = {
|
|
|
9545
9823
|
|
|
9546
9824
|
selector?: ("index-signature" | "member" | "method" | "multiline" | "property")
|
|
9547
9825
|
|
|
9548
|
-
elementNamePattern?:
|
|
9826
|
+
elementNamePattern?: (({
|
|
9827
|
+
pattern?: string
|
|
9828
|
+
flags?: string
|
|
9829
|
+
} | string)[] | ({
|
|
9830
|
+
pattern?: string
|
|
9831
|
+
flags?: string
|
|
9832
|
+
} | string))
|
|
9549
9833
|
})[])
|
|
9834
|
+
useConfigurationIf?: {
|
|
9835
|
+
|
|
9836
|
+
allNamesMatchPattern?: (({
|
|
9837
|
+
pattern?: string
|
|
9838
|
+
flags?: string
|
|
9839
|
+
} | string)[] | ({
|
|
9840
|
+
pattern?: string
|
|
9841
|
+
flags?: string
|
|
9842
|
+
} | string))
|
|
9843
|
+
|
|
9844
|
+
declarationMatchesPattern?: (({
|
|
9845
|
+
pattern?: string
|
|
9846
|
+
flags?: string
|
|
9847
|
+
} | string)[] | ({
|
|
9848
|
+
pattern?: string
|
|
9849
|
+
flags?: string
|
|
9850
|
+
} | string))
|
|
9851
|
+
}
|
|
9550
9852
|
|
|
9551
9853
|
groupKind?: ("mixed" | "required-first" | "optional-first")
|
|
9552
9854
|
|
|
9553
|
-
|
|
9855
|
+
partitionByComment?: (boolean | (({
|
|
9856
|
+
pattern?: string
|
|
9857
|
+
flags?: string
|
|
9858
|
+
} | string)[] | ({
|
|
9859
|
+
pattern?: string
|
|
9860
|
+
flags?: string
|
|
9861
|
+
} | string)) | {
|
|
9862
|
+
block?: (boolean | (({
|
|
9863
|
+
pattern?: string
|
|
9864
|
+
flags?: string
|
|
9865
|
+
} | string)[] | ({
|
|
9866
|
+
pattern?: string
|
|
9867
|
+
flags?: string
|
|
9868
|
+
} | string)))
|
|
9869
|
+
line?: (boolean | (({
|
|
9870
|
+
pattern?: string
|
|
9871
|
+
flags?: string
|
|
9872
|
+
} | string)[] | ({
|
|
9873
|
+
pattern?: string
|
|
9874
|
+
flags?: string
|
|
9875
|
+
} | string)))
|
|
9876
|
+
})
|
|
9554
9877
|
|
|
9555
9878
|
partitionByNewLine?: boolean
|
|
9556
9879
|
|
|
9880
|
+
newlinesBetween?: ("ignore" | "always" | "never")
|
|
9881
|
+
|
|
9882
|
+
ignorePattern?: (({
|
|
9883
|
+
pattern?: string
|
|
9884
|
+
flags?: string
|
|
9885
|
+
} | string)[] | ({
|
|
9886
|
+
pattern?: string
|
|
9887
|
+
flags?: string
|
|
9888
|
+
} | string))
|
|
9889
|
+
|
|
9890
|
+
groups?: (string | string[] | {
|
|
9891
|
+
|
|
9892
|
+
newlinesBetween?: ("ignore" | "always" | "never")
|
|
9893
|
+
})[]
|
|
9894
|
+
}[]
|
|
9895
|
+
// ----- perfectionist/sort-intersection-types -----
|
|
9896
|
+
type PerfectionistSortIntersectionTypes = []|[{
|
|
9897
|
+
|
|
9557
9898
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
9558
9899
|
|
|
9559
|
-
|
|
9900
|
+
fallbackSort?: {
|
|
9901
|
+
|
|
9902
|
+
order?: ("asc" | "desc")
|
|
9903
|
+
|
|
9904
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
9905
|
+
[k: string]: unknown | undefined
|
|
9906
|
+
}
|
|
9560
9907
|
|
|
9561
9908
|
ignoreCase?: boolean
|
|
9562
9909
|
|
|
@@ -9564,91 +9911,229 @@ type PerfectionistSortInterfaces = {
|
|
|
9564
9911
|
|
|
9565
9912
|
locales?: (string | string[])
|
|
9566
9913
|
|
|
9567
|
-
groups?: (string | string[])[]
|
|
9568
|
-
|
|
9569
9914
|
order?: ("asc" | "desc")
|
|
9570
|
-
}[]
|
|
9571
|
-
// ----- perfectionist/sort-intersection-types -----
|
|
9572
|
-
type PerfectionistSortIntersectionTypes = []|[{
|
|
9573
9915
|
|
|
9574
|
-
|
|
9575
|
-
|
|
9576
|
-
|
|
9577
|
-
|
|
9916
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
9917
|
+
|
|
9918
|
+
partitionByComment?: (boolean | (({
|
|
9919
|
+
pattern?: string
|
|
9920
|
+
flags?: string
|
|
9921
|
+
} | string)[] | ({
|
|
9922
|
+
pattern?: string
|
|
9923
|
+
flags?: string
|
|
9924
|
+
} | string)) | {
|
|
9925
|
+
block?: (boolean | (({
|
|
9926
|
+
pattern?: string
|
|
9927
|
+
flags?: string
|
|
9928
|
+
} | string)[] | ({
|
|
9929
|
+
pattern?: string
|
|
9930
|
+
flags?: string
|
|
9931
|
+
} | string)))
|
|
9932
|
+
line?: (boolean | (({
|
|
9933
|
+
pattern?: string
|
|
9934
|
+
flags?: string
|
|
9935
|
+
} | string)[] | ({
|
|
9936
|
+
pattern?: string
|
|
9937
|
+
flags?: string
|
|
9938
|
+
} | string)))
|
|
9578
9939
|
})
|
|
9579
9940
|
|
|
9580
9941
|
partitionByNewLine?: boolean
|
|
9581
9942
|
|
|
9943
|
+
newlinesBetween?: ("ignore" | "always" | "never")
|
|
9944
|
+
|
|
9945
|
+
groups?: (string | string[] | {
|
|
9946
|
+
|
|
9947
|
+
newlinesBetween?: ("ignore" | "always" | "never")
|
|
9948
|
+
})[]
|
|
9949
|
+
}]
|
|
9950
|
+
// ----- perfectionist/sort-jsx-props -----
|
|
9951
|
+
type PerfectionistSortJsxProps = {
|
|
9952
|
+
|
|
9582
9953
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
9583
9954
|
|
|
9584
|
-
|
|
9955
|
+
fallbackSort?: {
|
|
9956
|
+
|
|
9957
|
+
order?: ("asc" | "desc")
|
|
9958
|
+
|
|
9959
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
9960
|
+
[k: string]: unknown | undefined
|
|
9961
|
+
}
|
|
9585
9962
|
|
|
9586
9963
|
ignoreCase?: boolean
|
|
9587
9964
|
|
|
9588
9965
|
alphabet?: string
|
|
9589
9966
|
|
|
9590
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom")
|
|
9591
|
-
|
|
9592
9967
|
locales?: (string | string[])
|
|
9593
9968
|
|
|
9594
|
-
groups?: (string | string[])[]
|
|
9595
|
-
|
|
9596
9969
|
order?: ("asc" | "desc")
|
|
9597
|
-
}]
|
|
9598
|
-
// ----- perfectionist/sort-jsx-props -----
|
|
9599
|
-
type PerfectionistSortJsxProps = []|[{
|
|
9600
9970
|
|
|
9601
|
-
|
|
9971
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
9972
|
+
useConfigurationIf?: {
|
|
9973
|
+
|
|
9974
|
+
allNamesMatchPattern?: (({
|
|
9975
|
+
pattern?: string
|
|
9976
|
+
flags?: string
|
|
9977
|
+
} | string)[] | ({
|
|
9978
|
+
pattern?: string
|
|
9979
|
+
flags?: string
|
|
9980
|
+
} | string))
|
|
9981
|
+
|
|
9982
|
+
tagMatchesPattern?: (({
|
|
9983
|
+
pattern?: string
|
|
9984
|
+
flags?: string
|
|
9985
|
+
} | string)[] | ({
|
|
9986
|
+
pattern?: string
|
|
9987
|
+
flags?: string
|
|
9988
|
+
} | string))
|
|
9989
|
+
}
|
|
9602
9990
|
|
|
9603
|
-
|
|
9991
|
+
partitionByNewLine?: boolean
|
|
9992
|
+
|
|
9993
|
+
newlinesBetween?: ("ignore" | "always" | "never")
|
|
9604
9994
|
|
|
9605
9995
|
customGroups?: {
|
|
9606
9996
|
[k: string]: (string | string[]) | undefined
|
|
9607
9997
|
}
|
|
9608
9998
|
|
|
9999
|
+
ignorePattern?: (({
|
|
10000
|
+
pattern?: string
|
|
10001
|
+
flags?: string
|
|
10002
|
+
} | string)[] | ({
|
|
10003
|
+
pattern?: string
|
|
10004
|
+
flags?: string
|
|
10005
|
+
} | string))
|
|
10006
|
+
|
|
10007
|
+
groups?: (string | string[] | {
|
|
10008
|
+
|
|
10009
|
+
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10010
|
+
})[]
|
|
10011
|
+
}[]
|
|
10012
|
+
// ----- perfectionist/sort-maps -----
|
|
10013
|
+
type PerfectionistSortMaps = {
|
|
10014
|
+
|
|
10015
|
+
specialCharacters?: ("remove" | "trim" | "keep")
|
|
10016
|
+
|
|
10017
|
+
fallbackSort?: {
|
|
10018
|
+
|
|
10019
|
+
order?: ("asc" | "desc")
|
|
10020
|
+
|
|
10021
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10022
|
+
[k: string]: unknown | undefined
|
|
10023
|
+
}
|
|
10024
|
+
|
|
9609
10025
|
ignoreCase?: boolean
|
|
9610
10026
|
|
|
9611
10027
|
alphabet?: string
|
|
9612
10028
|
|
|
9613
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom")
|
|
9614
|
-
|
|
9615
10029
|
locales?: (string | string[])
|
|
9616
10030
|
|
|
9617
|
-
groups?: (string | string[])[]
|
|
9618
|
-
|
|
9619
10031
|
order?: ("asc" | "desc")
|
|
9620
|
-
}]
|
|
9621
|
-
// ----- perfectionist/sort-maps -----
|
|
9622
|
-
type PerfectionistSortMaps = []|[{
|
|
9623
10032
|
|
|
9624
|
-
|
|
9625
|
-
|
|
9626
|
-
|
|
9627
|
-
|
|
10033
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10034
|
+
|
|
10035
|
+
customGroups?: ({
|
|
10036
|
+
|
|
10037
|
+
groupName?: string
|
|
10038
|
+
|
|
10039
|
+
type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
|
|
10040
|
+
|
|
10041
|
+
order?: ("desc" | "asc")
|
|
10042
|
+
|
|
10043
|
+
newlinesInside?: ("always" | "never")
|
|
10044
|
+
anyOf?: {
|
|
10045
|
+
|
|
10046
|
+
elementNamePattern?: (({
|
|
10047
|
+
pattern?: string
|
|
10048
|
+
flags?: string
|
|
10049
|
+
} | string)[] | ({
|
|
10050
|
+
pattern?: string
|
|
10051
|
+
flags?: string
|
|
10052
|
+
} | string))
|
|
10053
|
+
}[]
|
|
10054
|
+
} | {
|
|
10055
|
+
|
|
10056
|
+
groupName?: string
|
|
10057
|
+
|
|
10058
|
+
type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
|
|
10059
|
+
|
|
10060
|
+
order?: ("desc" | "asc")
|
|
10061
|
+
|
|
10062
|
+
newlinesInside?: ("always" | "never")
|
|
10063
|
+
|
|
10064
|
+
elementNamePattern?: (({
|
|
10065
|
+
pattern?: string
|
|
10066
|
+
flags?: string
|
|
10067
|
+
} | string)[] | ({
|
|
10068
|
+
pattern?: string
|
|
10069
|
+
flags?: string
|
|
10070
|
+
} | string))
|
|
10071
|
+
})[]
|
|
10072
|
+
useConfigurationIf?: {
|
|
10073
|
+
|
|
10074
|
+
allNamesMatchPattern?: (({
|
|
10075
|
+
pattern?: string
|
|
10076
|
+
flags?: string
|
|
10077
|
+
} | string)[] | ({
|
|
10078
|
+
pattern?: string
|
|
10079
|
+
flags?: string
|
|
10080
|
+
} | string))
|
|
10081
|
+
}
|
|
10082
|
+
|
|
10083
|
+
partitionByComment?: (boolean | (({
|
|
10084
|
+
pattern?: string
|
|
10085
|
+
flags?: string
|
|
10086
|
+
} | string)[] | ({
|
|
10087
|
+
pattern?: string
|
|
10088
|
+
flags?: string
|
|
10089
|
+
} | string)) | {
|
|
10090
|
+
block?: (boolean | (({
|
|
10091
|
+
pattern?: string
|
|
10092
|
+
flags?: string
|
|
10093
|
+
} | string)[] | ({
|
|
10094
|
+
pattern?: string
|
|
10095
|
+
flags?: string
|
|
10096
|
+
} | string)))
|
|
10097
|
+
line?: (boolean | (({
|
|
10098
|
+
pattern?: string
|
|
10099
|
+
flags?: string
|
|
10100
|
+
} | string)[] | ({
|
|
10101
|
+
pattern?: string
|
|
10102
|
+
flags?: string
|
|
10103
|
+
} | string)))
|
|
9628
10104
|
})
|
|
9629
10105
|
|
|
9630
10106
|
partitionByNewLine?: boolean
|
|
9631
10107
|
|
|
10108
|
+
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10109
|
+
|
|
10110
|
+
groups?: (string | string[] | {
|
|
10111
|
+
|
|
10112
|
+
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10113
|
+
})[]
|
|
10114
|
+
}[]
|
|
10115
|
+
// ----- perfectionist/sort-modules -----
|
|
10116
|
+
type PerfectionistSortModules = []|[{
|
|
10117
|
+
|
|
9632
10118
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
9633
10119
|
|
|
10120
|
+
fallbackSort?: {
|
|
10121
|
+
|
|
10122
|
+
order?: ("asc" | "desc")
|
|
10123
|
+
|
|
10124
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10125
|
+
[k: string]: unknown | undefined
|
|
10126
|
+
}
|
|
10127
|
+
|
|
9634
10128
|
ignoreCase?: boolean
|
|
9635
10129
|
|
|
9636
10130
|
alphabet?: string
|
|
9637
10131
|
|
|
9638
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom")
|
|
9639
|
-
|
|
9640
10132
|
locales?: (string | string[])
|
|
9641
10133
|
|
|
9642
10134
|
order?: ("asc" | "desc")
|
|
9643
|
-
}]
|
|
9644
|
-
// ----- perfectionist/sort-modules -----
|
|
9645
|
-
type PerfectionistSortModules = []|[{
|
|
9646
10135
|
|
|
9647
|
-
|
|
9648
|
-
block?: (string[] | boolean | string)
|
|
9649
|
-
line?: (string[] | boolean | string)
|
|
9650
|
-
[k: string]: unknown | undefined
|
|
9651
|
-
})
|
|
10136
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
9652
10137
|
|
|
9653
10138
|
customGroups?: ({
|
|
9654
10139
|
|
|
@@ -9661,13 +10146,25 @@ type PerfectionistSortModules = []|[{
|
|
|
9661
10146
|
newlinesInside?: ("always" | "never")
|
|
9662
10147
|
anyOf?: {
|
|
9663
10148
|
|
|
9664
|
-
decoratorNamePattern?: string
|
|
9665
|
-
|
|
9666
10149
|
modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[]
|
|
9667
10150
|
|
|
9668
10151
|
selector?: ("enum" | "function" | "interface" | "type" | "class")
|
|
9669
10152
|
|
|
9670
|
-
|
|
10153
|
+
decoratorNamePattern?: (({
|
|
10154
|
+
pattern?: string
|
|
10155
|
+
flags?: string
|
|
10156
|
+
} | string)[] | ({
|
|
10157
|
+
pattern?: string
|
|
10158
|
+
flags?: string
|
|
10159
|
+
} | string))
|
|
10160
|
+
|
|
10161
|
+
elementNamePattern?: (({
|
|
10162
|
+
pattern?: string
|
|
10163
|
+
flags?: string
|
|
10164
|
+
} | string)[] | ({
|
|
10165
|
+
pattern?: string
|
|
10166
|
+
flags?: string
|
|
10167
|
+
} | string))
|
|
9671
10168
|
}[]
|
|
9672
10169
|
} | {
|
|
9673
10170
|
|
|
@@ -9679,99 +10176,185 @@ type PerfectionistSortModules = []|[{
|
|
|
9679
10176
|
|
|
9680
10177
|
newlinesInside?: ("always" | "never")
|
|
9681
10178
|
|
|
9682
|
-
decoratorNamePattern?: string
|
|
9683
|
-
|
|
9684
10179
|
modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[]
|
|
9685
10180
|
|
|
9686
10181
|
selector?: ("enum" | "function" | "interface" | "type" | "class")
|
|
9687
10182
|
|
|
9688
|
-
|
|
10183
|
+
decoratorNamePattern?: (({
|
|
10184
|
+
pattern?: string
|
|
10185
|
+
flags?: string
|
|
10186
|
+
} | string)[] | ({
|
|
10187
|
+
pattern?: string
|
|
10188
|
+
flags?: string
|
|
10189
|
+
} | string))
|
|
10190
|
+
|
|
10191
|
+
elementNamePattern?: (({
|
|
10192
|
+
pattern?: string
|
|
10193
|
+
flags?: string
|
|
10194
|
+
} | string)[] | ({
|
|
10195
|
+
pattern?: string
|
|
10196
|
+
flags?: string
|
|
10197
|
+
} | string))
|
|
9689
10198
|
})[]
|
|
9690
10199
|
|
|
10200
|
+
partitionByComment?: (boolean | (({
|
|
10201
|
+
pattern?: string
|
|
10202
|
+
flags?: string
|
|
10203
|
+
} | string)[] | ({
|
|
10204
|
+
pattern?: string
|
|
10205
|
+
flags?: string
|
|
10206
|
+
} | string)) | {
|
|
10207
|
+
block?: (boolean | (({
|
|
10208
|
+
pattern?: string
|
|
10209
|
+
flags?: string
|
|
10210
|
+
} | string)[] | ({
|
|
10211
|
+
pattern?: string
|
|
10212
|
+
flags?: string
|
|
10213
|
+
} | string)))
|
|
10214
|
+
line?: (boolean | (({
|
|
10215
|
+
pattern?: string
|
|
10216
|
+
flags?: string
|
|
10217
|
+
} | string)[] | ({
|
|
10218
|
+
pattern?: string
|
|
10219
|
+
flags?: string
|
|
10220
|
+
} | string)))
|
|
10221
|
+
})
|
|
10222
|
+
|
|
9691
10223
|
partitionByNewLine?: boolean
|
|
9692
10224
|
|
|
10225
|
+
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10226
|
+
|
|
10227
|
+
groups?: (string | string[] | {
|
|
10228
|
+
|
|
10229
|
+
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10230
|
+
})[]
|
|
10231
|
+
}]
|
|
10232
|
+
// ----- perfectionist/sort-named-exports -----
|
|
10233
|
+
type PerfectionistSortNamedExports = []|[{
|
|
10234
|
+
|
|
9693
10235
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
9694
10236
|
|
|
9695
|
-
|
|
10237
|
+
fallbackSort?: {
|
|
10238
|
+
|
|
10239
|
+
order?: ("asc" | "desc")
|
|
10240
|
+
|
|
10241
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10242
|
+
[k: string]: unknown | undefined
|
|
10243
|
+
}
|
|
9696
10244
|
|
|
9697
10245
|
ignoreCase?: boolean
|
|
9698
10246
|
|
|
9699
10247
|
alphabet?: string
|
|
9700
10248
|
|
|
9701
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom")
|
|
9702
|
-
|
|
9703
10249
|
locales?: (string | string[])
|
|
9704
10250
|
|
|
9705
|
-
groups?: (string | string[])[]
|
|
9706
|
-
|
|
9707
10251
|
order?: ("asc" | "desc")
|
|
9708
|
-
}]
|
|
9709
|
-
// ----- perfectionist/sort-named-exports -----
|
|
9710
|
-
type PerfectionistSortNamedExports = []|[{
|
|
9711
10252
|
|
|
9712
|
-
|
|
9713
|
-
block?: (string[] | boolean | string)
|
|
9714
|
-
line?: (string[] | boolean | string)
|
|
9715
|
-
[k: string]: unknown | undefined
|
|
9716
|
-
})
|
|
10253
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
9717
10254
|
|
|
9718
10255
|
groupKind?: ("mixed" | "values-first" | "types-first")
|
|
9719
10256
|
|
|
10257
|
+
ignoreAlias?: boolean
|
|
10258
|
+
|
|
10259
|
+
partitionByComment?: (boolean | (({
|
|
10260
|
+
pattern?: string
|
|
10261
|
+
flags?: string
|
|
10262
|
+
} | string)[] | ({
|
|
10263
|
+
pattern?: string
|
|
10264
|
+
flags?: string
|
|
10265
|
+
} | string)) | {
|
|
10266
|
+
block?: (boolean | (({
|
|
10267
|
+
pattern?: string
|
|
10268
|
+
flags?: string
|
|
10269
|
+
} | string)[] | ({
|
|
10270
|
+
pattern?: string
|
|
10271
|
+
flags?: string
|
|
10272
|
+
} | string)))
|
|
10273
|
+
line?: (boolean | (({
|
|
10274
|
+
pattern?: string
|
|
10275
|
+
flags?: string
|
|
10276
|
+
} | string)[] | ({
|
|
10277
|
+
pattern?: string
|
|
10278
|
+
flags?: string
|
|
10279
|
+
} | string)))
|
|
10280
|
+
})
|
|
10281
|
+
|
|
9720
10282
|
partitionByNewLine?: boolean
|
|
10283
|
+
}]
|
|
10284
|
+
// ----- perfectionist/sort-named-imports -----
|
|
10285
|
+
type PerfectionistSortNamedImports = []|[{
|
|
9721
10286
|
|
|
9722
10287
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
9723
10288
|
|
|
10289
|
+
fallbackSort?: {
|
|
10290
|
+
|
|
10291
|
+
order?: ("asc" | "desc")
|
|
10292
|
+
|
|
10293
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10294
|
+
[k: string]: unknown | undefined
|
|
10295
|
+
}
|
|
10296
|
+
|
|
9724
10297
|
ignoreCase?: boolean
|
|
9725
10298
|
|
|
9726
10299
|
alphabet?: string
|
|
9727
10300
|
|
|
9728
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom")
|
|
9729
|
-
|
|
9730
10301
|
locales?: (string | string[])
|
|
9731
10302
|
|
|
9732
10303
|
order?: ("asc" | "desc")
|
|
9733
|
-
}]
|
|
9734
|
-
// ----- perfectionist/sort-named-imports -----
|
|
9735
|
-
type PerfectionistSortNamedImports = []|[{
|
|
9736
10304
|
|
|
9737
|
-
|
|
9738
|
-
block?: (string[] | boolean | string)
|
|
9739
|
-
line?: (string[] | boolean | string)
|
|
9740
|
-
[k: string]: unknown | undefined
|
|
9741
|
-
})
|
|
10305
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
9742
10306
|
|
|
9743
10307
|
groupKind?: ("mixed" | "values-first" | "types-first")
|
|
9744
10308
|
|
|
9745
10309
|
ignoreAlias?: boolean
|
|
9746
10310
|
|
|
10311
|
+
partitionByComment?: (boolean | (({
|
|
10312
|
+
pattern?: string
|
|
10313
|
+
flags?: string
|
|
10314
|
+
} | string)[] | ({
|
|
10315
|
+
pattern?: string
|
|
10316
|
+
flags?: string
|
|
10317
|
+
} | string)) | {
|
|
10318
|
+
block?: (boolean | (({
|
|
10319
|
+
pattern?: string
|
|
10320
|
+
flags?: string
|
|
10321
|
+
} | string)[] | ({
|
|
10322
|
+
pattern?: string
|
|
10323
|
+
flags?: string
|
|
10324
|
+
} | string)))
|
|
10325
|
+
line?: (boolean | (({
|
|
10326
|
+
pattern?: string
|
|
10327
|
+
flags?: string
|
|
10328
|
+
} | string)[] | ({
|
|
10329
|
+
pattern?: string
|
|
10330
|
+
flags?: string
|
|
10331
|
+
} | string)))
|
|
10332
|
+
})
|
|
10333
|
+
|
|
9747
10334
|
partitionByNewLine?: boolean
|
|
10335
|
+
}]
|
|
10336
|
+
// ----- perfectionist/sort-object-types -----
|
|
10337
|
+
type PerfectionistSortObjectTypes = {
|
|
9748
10338
|
|
|
9749
10339
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
9750
10340
|
|
|
10341
|
+
fallbackSort?: {
|
|
10342
|
+
|
|
10343
|
+
order?: ("asc" | "desc")
|
|
10344
|
+
|
|
10345
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10346
|
+
[k: string]: unknown | undefined
|
|
10347
|
+
}
|
|
10348
|
+
|
|
9751
10349
|
ignoreCase?: boolean
|
|
9752
10350
|
|
|
9753
10351
|
alphabet?: string
|
|
9754
10352
|
|
|
9755
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom")
|
|
9756
|
-
|
|
9757
10353
|
locales?: (string | string[])
|
|
9758
10354
|
|
|
9759
10355
|
order?: ("asc" | "desc")
|
|
9760
|
-
}]
|
|
9761
|
-
// ----- perfectionist/sort-object-types -----
|
|
9762
|
-
type PerfectionistSortObjectTypes = {
|
|
9763
|
-
|
|
9764
|
-
ignorePattern?: string[]
|
|
9765
|
-
useConfigurationIf?: {
|
|
9766
|
-
allNamesMatchPattern?: string
|
|
9767
|
-
declarationMatchesPattern?: string
|
|
9768
|
-
}
|
|
9769
10356
|
|
|
9770
|
-
|
|
9771
|
-
block?: (string[] | boolean | string)
|
|
9772
|
-
line?: (string[] | boolean | string)
|
|
9773
|
-
[k: string]: unknown | undefined
|
|
9774
|
-
})
|
|
10357
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
9775
10358
|
customGroups?: ({
|
|
9776
10359
|
[k: string]: (string | string[]) | undefined
|
|
9777
10360
|
} | ({
|
|
@@ -9789,7 +10372,13 @@ type PerfectionistSortObjectTypes = {
|
|
|
9789
10372
|
|
|
9790
10373
|
selector?: ("index-signature" | "member" | "method" | "multiline" | "property")
|
|
9791
10374
|
|
|
9792
|
-
elementNamePattern?:
|
|
10375
|
+
elementNamePattern?: (({
|
|
10376
|
+
pattern?: string
|
|
10377
|
+
flags?: string
|
|
10378
|
+
} | string)[] | ({
|
|
10379
|
+
pattern?: string
|
|
10380
|
+
flags?: string
|
|
10381
|
+
} | string))
|
|
9793
10382
|
}[]
|
|
9794
10383
|
} | {
|
|
9795
10384
|
|
|
@@ -9805,18 +10394,87 @@ type PerfectionistSortObjectTypes = {
|
|
|
9805
10394
|
|
|
9806
10395
|
selector?: ("index-signature" | "member" | "method" | "multiline" | "property")
|
|
9807
10396
|
|
|
9808
|
-
elementNamePattern?:
|
|
10397
|
+
elementNamePattern?: (({
|
|
10398
|
+
pattern?: string
|
|
10399
|
+
flags?: string
|
|
10400
|
+
} | string)[] | ({
|
|
10401
|
+
pattern?: string
|
|
10402
|
+
flags?: string
|
|
10403
|
+
} | string))
|
|
9809
10404
|
})[])
|
|
10405
|
+
useConfigurationIf?: {
|
|
10406
|
+
|
|
10407
|
+
allNamesMatchPattern?: (({
|
|
10408
|
+
pattern?: string
|
|
10409
|
+
flags?: string
|
|
10410
|
+
} | string)[] | ({
|
|
10411
|
+
pattern?: string
|
|
10412
|
+
flags?: string
|
|
10413
|
+
} | string))
|
|
10414
|
+
|
|
10415
|
+
declarationMatchesPattern?: (({
|
|
10416
|
+
pattern?: string
|
|
10417
|
+
flags?: string
|
|
10418
|
+
} | string)[] | ({
|
|
10419
|
+
pattern?: string
|
|
10420
|
+
flags?: string
|
|
10421
|
+
} | string))
|
|
10422
|
+
}
|
|
9810
10423
|
|
|
9811
10424
|
groupKind?: ("mixed" | "required-first" | "optional-first")
|
|
9812
10425
|
|
|
9813
|
-
|
|
10426
|
+
partitionByComment?: (boolean | (({
|
|
10427
|
+
pattern?: string
|
|
10428
|
+
flags?: string
|
|
10429
|
+
} | string)[] | ({
|
|
10430
|
+
pattern?: string
|
|
10431
|
+
flags?: string
|
|
10432
|
+
} | string)) | {
|
|
10433
|
+
block?: (boolean | (({
|
|
10434
|
+
pattern?: string
|
|
10435
|
+
flags?: string
|
|
10436
|
+
} | string)[] | ({
|
|
10437
|
+
pattern?: string
|
|
10438
|
+
flags?: string
|
|
10439
|
+
} | string)))
|
|
10440
|
+
line?: (boolean | (({
|
|
10441
|
+
pattern?: string
|
|
10442
|
+
flags?: string
|
|
10443
|
+
} | string)[] | ({
|
|
10444
|
+
pattern?: string
|
|
10445
|
+
flags?: string
|
|
10446
|
+
} | string)))
|
|
10447
|
+
})
|
|
9814
10448
|
|
|
9815
10449
|
partitionByNewLine?: boolean
|
|
9816
10450
|
|
|
10451
|
+
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10452
|
+
|
|
10453
|
+
ignorePattern?: (({
|
|
10454
|
+
pattern?: string
|
|
10455
|
+
flags?: string
|
|
10456
|
+
} | string)[] | ({
|
|
10457
|
+
pattern?: string
|
|
10458
|
+
flags?: string
|
|
10459
|
+
} | string))
|
|
10460
|
+
|
|
10461
|
+
groups?: (string | string[] | {
|
|
10462
|
+
|
|
10463
|
+
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10464
|
+
})[]
|
|
10465
|
+
}[]
|
|
10466
|
+
// ----- perfectionist/sort-objects -----
|
|
10467
|
+
type PerfectionistSortObjects = {
|
|
10468
|
+
|
|
9817
10469
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
9818
10470
|
|
|
9819
|
-
|
|
10471
|
+
fallbackSort?: {
|
|
10472
|
+
|
|
10473
|
+
order?: ("asc" | "desc")
|
|
10474
|
+
|
|
10475
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10476
|
+
[k: string]: unknown | undefined
|
|
10477
|
+
}
|
|
9820
10478
|
|
|
9821
10479
|
ignoreCase?: boolean
|
|
9822
10480
|
|
|
@@ -9824,46 +10482,153 @@ type PerfectionistSortObjectTypes = {
|
|
|
9824
10482
|
|
|
9825
10483
|
locales?: (string | string[])
|
|
9826
10484
|
|
|
9827
|
-
groups?: (string | string[])[]
|
|
9828
|
-
|
|
9829
10485
|
order?: ("asc" | "desc")
|
|
9830
|
-
|
|
9831
|
-
|
|
9832
|
-
type PerfectionistSortObjects = {
|
|
10486
|
+
|
|
10487
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
9833
10488
|
|
|
9834
10489
|
destructuredObjects?: (boolean | {
|
|
9835
10490
|
|
|
9836
10491
|
groups?: boolean
|
|
9837
10492
|
})
|
|
9838
|
-
|
|
9839
|
-
|
|
10493
|
+
customGroups?: ({
|
|
10494
|
+
[k: string]: (string | string[]) | undefined
|
|
10495
|
+
} | ({
|
|
10496
|
+
|
|
10497
|
+
groupName?: string
|
|
10498
|
+
|
|
10499
|
+
type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
|
|
10500
|
+
|
|
10501
|
+
order?: ("desc" | "asc")
|
|
10502
|
+
|
|
10503
|
+
newlinesInside?: ("always" | "never")
|
|
10504
|
+
anyOf?: {
|
|
10505
|
+
|
|
10506
|
+
modifiers?: ("optional" | "required" | "multiline")[]
|
|
10507
|
+
|
|
10508
|
+
selector?: ("member" | "method" | "multiline" | "property")
|
|
10509
|
+
|
|
10510
|
+
elementValuePattern?: (({
|
|
10511
|
+
pattern?: string
|
|
10512
|
+
flags?: string
|
|
10513
|
+
} | string)[] | ({
|
|
10514
|
+
pattern?: string
|
|
10515
|
+
flags?: string
|
|
10516
|
+
} | string))
|
|
10517
|
+
|
|
10518
|
+
elementNamePattern?: (({
|
|
10519
|
+
pattern?: string
|
|
10520
|
+
flags?: string
|
|
10521
|
+
} | string)[] | ({
|
|
10522
|
+
pattern?: string
|
|
10523
|
+
flags?: string
|
|
10524
|
+
} | string))
|
|
10525
|
+
}[]
|
|
10526
|
+
} | {
|
|
10527
|
+
|
|
10528
|
+
groupName?: string
|
|
10529
|
+
|
|
10530
|
+
type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
|
|
10531
|
+
|
|
10532
|
+
order?: ("desc" | "asc")
|
|
10533
|
+
|
|
10534
|
+
newlinesInside?: ("always" | "never")
|
|
10535
|
+
|
|
10536
|
+
modifiers?: ("optional" | "required" | "multiline")[]
|
|
10537
|
+
|
|
10538
|
+
selector?: ("member" | "method" | "multiline" | "property")
|
|
10539
|
+
|
|
10540
|
+
elementValuePattern?: (({
|
|
10541
|
+
pattern?: string
|
|
10542
|
+
flags?: string
|
|
10543
|
+
} | string)[] | ({
|
|
10544
|
+
pattern?: string
|
|
10545
|
+
flags?: string
|
|
10546
|
+
} | string))
|
|
10547
|
+
|
|
10548
|
+
elementNamePattern?: (({
|
|
10549
|
+
pattern?: string
|
|
10550
|
+
flags?: string
|
|
10551
|
+
} | string)[] | ({
|
|
10552
|
+
pattern?: string
|
|
10553
|
+
flags?: string
|
|
10554
|
+
} | string))
|
|
10555
|
+
})[])
|
|
9840
10556
|
useConfigurationIf?: {
|
|
9841
|
-
|
|
9842
|
-
|
|
10557
|
+
|
|
10558
|
+
allNamesMatchPattern?: (({
|
|
10559
|
+
pattern?: string
|
|
10560
|
+
flags?: string
|
|
10561
|
+
} | string)[] | ({
|
|
10562
|
+
pattern?: string
|
|
10563
|
+
flags?: string
|
|
10564
|
+
} | string))
|
|
10565
|
+
|
|
10566
|
+
callingFunctionNamePattern?: (({
|
|
10567
|
+
pattern?: string
|
|
10568
|
+
flags?: string
|
|
10569
|
+
} | string)[] | ({
|
|
10570
|
+
pattern?: string
|
|
10571
|
+
flags?: string
|
|
10572
|
+
} | string))
|
|
9843
10573
|
}
|
|
9844
10574
|
|
|
9845
|
-
partitionByComment?: (string[] | boolean | string | {
|
|
9846
|
-
block?: (string[] | boolean | string)
|
|
9847
|
-
line?: (string[] | boolean | string)
|
|
9848
|
-
[k: string]: unknown | undefined
|
|
9849
|
-
})
|
|
9850
|
-
|
|
9851
10575
|
destructureOnly?: boolean
|
|
9852
10576
|
|
|
9853
10577
|
objectDeclarations?: boolean
|
|
9854
10578
|
|
|
9855
10579
|
styledComponents?: boolean
|
|
9856
10580
|
|
|
9857
|
-
|
|
10581
|
+
partitionByComment?: (boolean | (({
|
|
10582
|
+
pattern?: string
|
|
10583
|
+
flags?: string
|
|
10584
|
+
} | string)[] | ({
|
|
10585
|
+
pattern?: string
|
|
10586
|
+
flags?: string
|
|
10587
|
+
} | string)) | {
|
|
10588
|
+
block?: (boolean | (({
|
|
10589
|
+
pattern?: string
|
|
10590
|
+
flags?: string
|
|
10591
|
+
} | string)[] | ({
|
|
10592
|
+
pattern?: string
|
|
10593
|
+
flags?: string
|
|
10594
|
+
} | string)))
|
|
10595
|
+
line?: (boolean | (({
|
|
10596
|
+
pattern?: string
|
|
10597
|
+
flags?: string
|
|
10598
|
+
} | string)[] | ({
|
|
10599
|
+
pattern?: string
|
|
10600
|
+
flags?: string
|
|
10601
|
+
} | string)))
|
|
10602
|
+
})
|
|
9858
10603
|
|
|
9859
10604
|
partitionByNewLine?: boolean
|
|
9860
10605
|
|
|
9861
|
-
specialCharacters?: ("remove" | "trim" | "keep")
|
|
9862
|
-
|
|
9863
10606
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
9864
10607
|
|
|
9865
|
-
|
|
9866
|
-
|
|
10608
|
+
ignorePattern?: (({
|
|
10609
|
+
pattern?: string
|
|
10610
|
+
flags?: string
|
|
10611
|
+
} | string)[] | ({
|
|
10612
|
+
pattern?: string
|
|
10613
|
+
flags?: string
|
|
10614
|
+
} | string))
|
|
10615
|
+
|
|
10616
|
+
groups?: (string | string[] | {
|
|
10617
|
+
|
|
10618
|
+
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10619
|
+
})[]
|
|
10620
|
+
}[]
|
|
10621
|
+
// ----- perfectionist/sort-sets -----
|
|
10622
|
+
type PerfectionistSortSets = {
|
|
10623
|
+
|
|
10624
|
+
specialCharacters?: ("remove" | "trim" | "keep")
|
|
10625
|
+
|
|
10626
|
+
fallbackSort?: {
|
|
10627
|
+
|
|
10628
|
+
order?: ("asc" | "desc")
|
|
10629
|
+
|
|
10630
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10631
|
+
[k: string]: unknown | undefined
|
|
9867
10632
|
}
|
|
9868
10633
|
|
|
9869
10634
|
ignoreCase?: boolean
|
|
@@ -9872,18 +10637,9 @@ type PerfectionistSortObjects = {
|
|
|
9872
10637
|
|
|
9873
10638
|
locales?: (string | string[])
|
|
9874
10639
|
|
|
9875
|
-
groups?: (string | string[])[]
|
|
9876
|
-
|
|
9877
10640
|
order?: ("asc" | "desc")
|
|
9878
|
-
}[]
|
|
9879
|
-
// ----- perfectionist/sort-sets -----
|
|
9880
|
-
type PerfectionistSortSets = {
|
|
9881
10641
|
|
|
9882
|
-
|
|
9883
|
-
block?: (string[] | boolean | string)
|
|
9884
|
-
line?: (string[] | boolean | string)
|
|
9885
|
-
[k: string]: unknown | undefined
|
|
9886
|
-
})
|
|
10642
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
9887
10643
|
|
|
9888
10644
|
groupKind?: ("mixed" | "literals-first" | "spreads-first")
|
|
9889
10645
|
|
|
@@ -9900,7 +10656,13 @@ type PerfectionistSortSets = {
|
|
|
9900
10656
|
|
|
9901
10657
|
selector?: ("literal" | "spread")
|
|
9902
10658
|
|
|
9903
|
-
elementNamePattern?:
|
|
10659
|
+
elementNamePattern?: (({
|
|
10660
|
+
pattern?: string
|
|
10661
|
+
flags?: string
|
|
10662
|
+
} | string)[] | ({
|
|
10663
|
+
pattern?: string
|
|
10664
|
+
flags?: string
|
|
10665
|
+
} | string))
|
|
9904
10666
|
}[]
|
|
9905
10667
|
} | {
|
|
9906
10668
|
|
|
@@ -9914,92 +10676,182 @@ type PerfectionistSortSets = {
|
|
|
9914
10676
|
|
|
9915
10677
|
selector?: ("literal" | "spread")
|
|
9916
10678
|
|
|
9917
|
-
elementNamePattern?:
|
|
10679
|
+
elementNamePattern?: (({
|
|
10680
|
+
pattern?: string
|
|
10681
|
+
flags?: string
|
|
10682
|
+
} | string)[] | ({
|
|
10683
|
+
pattern?: string
|
|
10684
|
+
flags?: string
|
|
10685
|
+
} | string))
|
|
9918
10686
|
})[]
|
|
9919
10687
|
useConfigurationIf?: {
|
|
9920
|
-
|
|
9921
|
-
|
|
9922
|
-
|
|
9923
|
-
|
|
10688
|
+
|
|
10689
|
+
allNamesMatchPattern?: (({
|
|
10690
|
+
pattern?: string
|
|
10691
|
+
flags?: string
|
|
10692
|
+
} | string)[] | ({
|
|
10693
|
+
pattern?: string
|
|
10694
|
+
flags?: string
|
|
10695
|
+
} | string))
|
|
10696
|
+
}
|
|
10697
|
+
|
|
10698
|
+
partitionByComment?: (boolean | (({
|
|
10699
|
+
pattern?: string
|
|
10700
|
+
flags?: string
|
|
10701
|
+
} | string)[] | ({
|
|
10702
|
+
pattern?: string
|
|
10703
|
+
flags?: string
|
|
10704
|
+
} | string)) | {
|
|
10705
|
+
block?: (boolean | (({
|
|
10706
|
+
pattern?: string
|
|
10707
|
+
flags?: string
|
|
10708
|
+
} | string)[] | ({
|
|
10709
|
+
pattern?: string
|
|
10710
|
+
flags?: string
|
|
10711
|
+
} | string)))
|
|
10712
|
+
line?: (boolean | (({
|
|
10713
|
+
pattern?: string
|
|
10714
|
+
flags?: string
|
|
10715
|
+
} | string)[] | ({
|
|
10716
|
+
pattern?: string
|
|
10717
|
+
flags?: string
|
|
10718
|
+
} | string)))
|
|
10719
|
+
})
|
|
9924
10720
|
|
|
9925
10721
|
partitionByNewLine?: boolean
|
|
9926
10722
|
|
|
9927
|
-
|
|
9928
|
-
|
|
9929
|
-
ignoreCase?: boolean
|
|
9930
|
-
|
|
9931
|
-
alphabet?: string
|
|
9932
|
-
|
|
9933
|
-
locales?: (string | string[])
|
|
9934
|
-
|
|
9935
|
-
groups?: (string | string[])[]
|
|
10723
|
+
newlinesBetween?: ("ignore" | "always" | "never")
|
|
9936
10724
|
|
|
9937
|
-
|
|
10725
|
+
groups?: (string | string[] | {
|
|
10726
|
+
|
|
10727
|
+
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10728
|
+
})[]
|
|
9938
10729
|
}[]
|
|
9939
10730
|
// ----- perfectionist/sort-switch-case -----
|
|
9940
10731
|
type PerfectionistSortSwitchCase = []|[{
|
|
9941
10732
|
|
|
9942
10733
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
9943
10734
|
|
|
10735
|
+
fallbackSort?: {
|
|
10736
|
+
|
|
10737
|
+
order?: ("asc" | "desc")
|
|
10738
|
+
|
|
10739
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10740
|
+
[k: string]: unknown | undefined
|
|
10741
|
+
}
|
|
10742
|
+
|
|
9944
10743
|
ignoreCase?: boolean
|
|
9945
10744
|
|
|
9946
10745
|
alphabet?: string
|
|
9947
10746
|
|
|
9948
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom")
|
|
9949
|
-
|
|
9950
10747
|
locales?: (string | string[])
|
|
9951
10748
|
|
|
9952
10749
|
order?: ("asc" | "desc")
|
|
10750
|
+
|
|
10751
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
9953
10752
|
}]
|
|
9954
10753
|
// ----- perfectionist/sort-union-types -----
|
|
9955
10754
|
type PerfectionistSortUnionTypes = []|[{
|
|
9956
10755
|
|
|
9957
|
-
partitionByComment?: (string[] | boolean | string | {
|
|
9958
|
-
block?: (string[] | boolean | string)
|
|
9959
|
-
line?: (string[] | boolean | string)
|
|
9960
|
-
[k: string]: unknown | undefined
|
|
9961
|
-
})
|
|
9962
|
-
|
|
9963
|
-
partitionByNewLine?: boolean
|
|
9964
|
-
|
|
9965
10756
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
9966
10757
|
|
|
9967
|
-
|
|
10758
|
+
fallbackSort?: {
|
|
10759
|
+
|
|
10760
|
+
order?: ("asc" | "desc")
|
|
10761
|
+
|
|
10762
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10763
|
+
[k: string]: unknown | undefined
|
|
10764
|
+
}
|
|
9968
10765
|
|
|
9969
10766
|
ignoreCase?: boolean
|
|
9970
10767
|
|
|
9971
10768
|
alphabet?: string
|
|
9972
10769
|
|
|
9973
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom")
|
|
9974
|
-
|
|
9975
10770
|
locales?: (string | string[])
|
|
9976
10771
|
|
|
9977
|
-
groups?: (string | string[])[]
|
|
9978
|
-
|
|
9979
10772
|
order?: ("asc" | "desc")
|
|
9980
|
-
}]
|
|
9981
|
-
// ----- perfectionist/sort-variable-declarations -----
|
|
9982
|
-
type PerfectionistSortVariableDeclarations = []|[{
|
|
9983
10773
|
|
|
9984
|
-
|
|
9985
|
-
|
|
9986
|
-
|
|
9987
|
-
|
|
10774
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10775
|
+
|
|
10776
|
+
partitionByComment?: (boolean | (({
|
|
10777
|
+
pattern?: string
|
|
10778
|
+
flags?: string
|
|
10779
|
+
} | string)[] | ({
|
|
10780
|
+
pattern?: string
|
|
10781
|
+
flags?: string
|
|
10782
|
+
} | string)) | {
|
|
10783
|
+
block?: (boolean | (({
|
|
10784
|
+
pattern?: string
|
|
10785
|
+
flags?: string
|
|
10786
|
+
} | string)[] | ({
|
|
10787
|
+
pattern?: string
|
|
10788
|
+
flags?: string
|
|
10789
|
+
} | string)))
|
|
10790
|
+
line?: (boolean | (({
|
|
10791
|
+
pattern?: string
|
|
10792
|
+
flags?: string
|
|
10793
|
+
} | string)[] | ({
|
|
10794
|
+
pattern?: string
|
|
10795
|
+
flags?: string
|
|
10796
|
+
} | string)))
|
|
9988
10797
|
})
|
|
9989
10798
|
|
|
9990
10799
|
partitionByNewLine?: boolean
|
|
9991
10800
|
|
|
10801
|
+
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10802
|
+
|
|
10803
|
+
groups?: (string | string[] | {
|
|
10804
|
+
|
|
10805
|
+
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10806
|
+
})[]
|
|
10807
|
+
}]
|
|
10808
|
+
// ----- perfectionist/sort-variable-declarations -----
|
|
10809
|
+
type PerfectionistSortVariableDeclarations = []|[{
|
|
10810
|
+
|
|
9992
10811
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
9993
10812
|
|
|
10813
|
+
fallbackSort?: {
|
|
10814
|
+
|
|
10815
|
+
order?: ("asc" | "desc")
|
|
10816
|
+
|
|
10817
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10818
|
+
[k: string]: unknown | undefined
|
|
10819
|
+
}
|
|
10820
|
+
|
|
9994
10821
|
ignoreCase?: boolean
|
|
9995
10822
|
|
|
9996
10823
|
alphabet?: string
|
|
9997
10824
|
|
|
9998
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom")
|
|
9999
|
-
|
|
10000
10825
|
locales?: (string | string[])
|
|
10001
10826
|
|
|
10002
10827
|
order?: ("asc" | "desc")
|
|
10828
|
+
|
|
10829
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10830
|
+
|
|
10831
|
+
partitionByComment?: (boolean | (({
|
|
10832
|
+
pattern?: string
|
|
10833
|
+
flags?: string
|
|
10834
|
+
} | string)[] | ({
|
|
10835
|
+
pattern?: string
|
|
10836
|
+
flags?: string
|
|
10837
|
+
} | string)) | {
|
|
10838
|
+
block?: (boolean | (({
|
|
10839
|
+
pattern?: string
|
|
10840
|
+
flags?: string
|
|
10841
|
+
} | string)[] | ({
|
|
10842
|
+
pattern?: string
|
|
10843
|
+
flags?: string
|
|
10844
|
+
} | string)))
|
|
10845
|
+
line?: (boolean | (({
|
|
10846
|
+
pattern?: string
|
|
10847
|
+
flags?: string
|
|
10848
|
+
} | string)[] | ({
|
|
10849
|
+
pattern?: string
|
|
10850
|
+
flags?: string
|
|
10851
|
+
} | string)))
|
|
10852
|
+
})
|
|
10853
|
+
|
|
10854
|
+
partitionByNewLine?: boolean
|
|
10003
10855
|
}]
|
|
10004
10856
|
// ----- prefer-arrow-callback -----
|
|
10005
10857
|
type PreferArrowCallback = []|[{
|
|
@@ -10656,6 +11508,7 @@ type StylisticKeySpacing = []|[({
|
|
|
10656
11508
|
mode?: ("strict" | "minimum")
|
|
10657
11509
|
beforeColon?: boolean
|
|
10658
11510
|
afterColon?: boolean
|
|
11511
|
+
ignoredNodes?: ("ObjectExpression" | "ObjectPattern" | "ImportDeclaration" | "ExportNamedDeclaration" | "ExportAllDeclaration" | "TSTypeLiteral" | "TSInterfaceBody" | "ClassBody")[]
|
|
10659
11512
|
} | {
|
|
10660
11513
|
singleLine?: {
|
|
10661
11514
|
mode?: ("strict" | "minimum")
|
|
@@ -11171,6 +12024,7 @@ type StylisticNoExtraParens = ([]|["functions"] | []|["all"]|["all", {
|
|
|
11171
12024
|
enforceForNewInMemberExpressions?: boolean
|
|
11172
12025
|
enforceForFunctionPrototypeMethods?: boolean
|
|
11173
12026
|
allowParensAfterCommentPattern?: string
|
|
12027
|
+
nestedConditionalExpressions?: boolean
|
|
11174
12028
|
}])
|
|
11175
12029
|
// ----- stylistic/no-mixed-operators -----
|
|
11176
12030
|
type StylisticNoMixedOperators = []|[{
|
|
@@ -11268,14 +12122,14 @@ type StylisticOperatorLinebreak = []|[(("after" | "before" | "none") | null)]|[(
|
|
|
11268
12122
|
}
|
|
11269
12123
|
}]
|
|
11270
12124
|
// ----- stylistic/padded-blocks -----
|
|
11271
|
-
type StylisticPaddedBlocks = []|[(("always" | "never") | {
|
|
11272
|
-
blocks?: ("always" | "never")
|
|
11273
|
-
switches?: ("always" | "never")
|
|
11274
|
-
classes?: ("always" | "never")
|
|
11275
|
-
})]|[(("always" | "never") | {
|
|
11276
|
-
blocks?: ("always" | "never")
|
|
11277
|
-
switches?: ("always" | "never")
|
|
11278
|
-
classes?: ("always" | "never")
|
|
12125
|
+
type StylisticPaddedBlocks = []|[(("always" | "never" | "start" | "end") | {
|
|
12126
|
+
blocks?: ("always" | "never" | "start" | "end")
|
|
12127
|
+
switches?: ("always" | "never" | "start" | "end")
|
|
12128
|
+
classes?: ("always" | "never" | "start" | "end")
|
|
12129
|
+
})]|[(("always" | "never" | "start" | "end") | {
|
|
12130
|
+
blocks?: ("always" | "never" | "start" | "end")
|
|
12131
|
+
switches?: ("always" | "never" | "start" | "end")
|
|
12132
|
+
classes?: ("always" | "never" | "start" | "end")
|
|
11279
12133
|
}), {
|
|
11280
12134
|
allowSingleLineBlocks?: boolean
|
|
11281
12135
|
}]
|
|
@@ -11296,7 +12150,7 @@ type StylisticQuoteProps = ([]|[("always" | "as-needed" | "consistent" | "consis
|
|
|
11296
12150
|
// ----- stylistic/quotes -----
|
|
11297
12151
|
type StylisticQuotes = []|[("single" | "double" | "backtick")]|[("single" | "double" | "backtick"), ("avoid-escape" | {
|
|
11298
12152
|
avoidEscape?: boolean
|
|
11299
|
-
allowTemplateLiterals?: boolean
|
|
12153
|
+
allowTemplateLiterals?: (boolean | ("never" | "avoidEscape" | "always"))
|
|
11300
12154
|
ignoreStringLiterals?: boolean
|
|
11301
12155
|
})]
|
|
11302
12156
|
// ----- stylistic/rest-spread-spacing -----
|
|
@@ -11334,6 +12188,7 @@ type StylisticSpaceInParens = []|[("always" | "never")]|[("always" | "never"), {
|
|
|
11334
12188
|
// ----- stylistic/space-infix-ops -----
|
|
11335
12189
|
type StylisticSpaceInfixOps = []|[{
|
|
11336
12190
|
int32Hint?: boolean
|
|
12191
|
+
ignoreTypes?: boolean
|
|
11337
12192
|
}]
|
|
11338
12193
|
// ----- stylistic/space-unary-ops -----
|
|
11339
12194
|
type StylisticSpaceUnaryOps = []|[{
|
|
@@ -11660,6 +12515,8 @@ type TsEslintConsistentTypeAssertions = []|[({
|
|
|
11660
12515
|
assertionStyle: "never"
|
|
11661
12516
|
} | {
|
|
11662
12517
|
|
|
12518
|
+
arrayLiteralTypeAssertions?: ("allow" | "allow-as-parameter" | "never")
|
|
12519
|
+
|
|
11663
12520
|
assertionStyle?: ("as" | "angle-bracket")
|
|
11664
12521
|
|
|
11665
12522
|
objectLiteralTypeAssertions?: ("allow" | "allow-as-parameter" | "never")
|
|
@@ -12116,6 +12973,22 @@ type TsEslintNoConfusingVoidExpression = []|[{
|
|
|
12116
12973
|
|
|
12117
12974
|
ignoreVoidReturningFunctions?: boolean
|
|
12118
12975
|
}]
|
|
12976
|
+
// ----- ts-eslint/no-deprecated -----
|
|
12977
|
+
type TsEslintNoDeprecated = []|[{
|
|
12978
|
+
|
|
12979
|
+
allow?: (string | {
|
|
12980
|
+
from: "file"
|
|
12981
|
+
name: (string | [string, ...(string)[]])
|
|
12982
|
+
path?: string
|
|
12983
|
+
} | {
|
|
12984
|
+
from: "lib"
|
|
12985
|
+
name: (string | [string, ...(string)[]])
|
|
12986
|
+
} | {
|
|
12987
|
+
from: "package"
|
|
12988
|
+
name: (string | [string, ...(string)[]])
|
|
12989
|
+
package: string
|
|
12990
|
+
})[]
|
|
12991
|
+
}]
|
|
12119
12992
|
// ----- ts-eslint/no-duplicate-type-constituents -----
|
|
12120
12993
|
type TsEslintNoDuplicateTypeConstituents = []|[{
|
|
12121
12994
|
|
|
@@ -12257,6 +13130,22 @@ type TsEslintNoMisusedPromises = []|[{
|
|
|
12257
13130
|
variables?: boolean
|
|
12258
13131
|
})
|
|
12259
13132
|
}]
|
|
13133
|
+
// ----- ts-eslint/no-misused-spread -----
|
|
13134
|
+
type TsEslintNoMisusedSpread = []|[{
|
|
13135
|
+
|
|
13136
|
+
allow?: (string | {
|
|
13137
|
+
from: "file"
|
|
13138
|
+
name: (string | [string, ...(string)[]])
|
|
13139
|
+
path?: string
|
|
13140
|
+
} | {
|
|
13141
|
+
from: "lib"
|
|
13142
|
+
name: (string | [string, ...(string)[]])
|
|
13143
|
+
} | {
|
|
13144
|
+
from: "package"
|
|
13145
|
+
name: (string | [string, ...(string)[]])
|
|
13146
|
+
package: string
|
|
13147
|
+
})[]
|
|
13148
|
+
}]
|
|
12260
13149
|
// ----- ts-eslint/no-namespace -----
|
|
12261
13150
|
type TsEslintNoNamespace = []|[{
|
|
12262
13151
|
|
|
@@ -12332,7 +13221,7 @@ type TsEslintNoShadow = []|[{
|
|
|
12332
13221
|
|
|
12333
13222
|
builtinGlobals?: boolean
|
|
12334
13223
|
|
|
12335
|
-
hoist?: ("all" | "functions" | "never")
|
|
13224
|
+
hoist?: ("all" | "functions" | "functions-and-types" | "never" | "types")
|
|
12336
13225
|
|
|
12337
13226
|
ignoreFunctionTypeParameterNameValueShadow?: boolean
|
|
12338
13227
|
|
|
@@ -12372,11 +13261,13 @@ type TsEslintNoUnnecessaryBooleanLiteralCompare = []|[{
|
|
|
12372
13261
|
allowComparingNullableBooleansToFalse?: boolean
|
|
12373
13262
|
|
|
12374
13263
|
allowComparingNullableBooleansToTrue?: boolean
|
|
13264
|
+
|
|
13265
|
+
allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean
|
|
12375
13266
|
}]
|
|
12376
13267
|
// ----- ts-eslint/no-unnecessary-condition -----
|
|
12377
13268
|
type TsEslintNoUnnecessaryCondition = []|[{
|
|
12378
13269
|
|
|
12379
|
-
allowConstantLoopConditions?: boolean
|
|
13270
|
+
allowConstantLoopConditions?: (boolean | ("always" | "never" | "only-allowed-literals"))
|
|
12380
13271
|
|
|
12381
13272
|
allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean
|
|
12382
13273
|
|
|
@@ -12802,6 +13693,13 @@ type UnicornNoArrayPushPush = []|[{
|
|
|
12802
13693
|
type UnicornNoArrayReduce = []|[{
|
|
12803
13694
|
allowSimpleOperations?: boolean
|
|
12804
13695
|
}]
|
|
13696
|
+
// ----- unicorn/no-instanceof-builtins -----
|
|
13697
|
+
type UnicornNoInstanceofBuiltins = []|[{
|
|
13698
|
+
useErrorIsError?: boolean
|
|
13699
|
+
strategy?: ("loose" | "strict")
|
|
13700
|
+
include?: string[]
|
|
13701
|
+
exclude?: string[]
|
|
13702
|
+
}]
|
|
12805
13703
|
// ----- unicorn/no-keyword-prefix -----
|
|
12806
13704
|
type UnicornNoKeywordPrefix = []|[{
|
|
12807
13705
|
|
|
@@ -12962,7 +13860,6 @@ type VueArrayElementNewline = []|[(_VueArrayElementNewlineBasicConfig | {
|
|
|
12962
13860
|
ArrayPattern?: _VueArrayElementNewlineBasicConfig
|
|
12963
13861
|
})]
|
|
12964
13862
|
type _VueArrayElementNewlineBasicConfig = (("always" | "never" | "consistent") | {
|
|
12965
|
-
consistent?: boolean
|
|
12966
13863
|
multiline?: boolean
|
|
12967
13864
|
minItems?: (number | null)
|
|
12968
13865
|
})
|
|
@@ -13031,14 +13928,9 @@ type VueCommaDangle = []|[(_VueCommaDangleValue | {
|
|
|
13031
13928
|
imports?: _VueCommaDangleValueWithIgnore
|
|
13032
13929
|
exports?: _VueCommaDangleValueWithIgnore
|
|
13033
13930
|
functions?: _VueCommaDangleValueWithIgnore
|
|
13034
|
-
importAttributes?: _VueCommaDangleValueWithIgnore
|
|
13035
|
-
dynamicImports?: _VueCommaDangleValueWithIgnore
|
|
13036
|
-
enums?: _VueCommaDangleValueWithIgnore
|
|
13037
|
-
generics?: _VueCommaDangleValueWithIgnore
|
|
13038
|
-
tuples?: _VueCommaDangleValueWithIgnore
|
|
13039
13931
|
})]
|
|
13040
13932
|
type _VueCommaDangleValue = ("always-multiline" | "always" | "never" | "only-multiline")
|
|
13041
|
-
type _VueCommaDangleValueWithIgnore = ("always-multiline" | "always" | "
|
|
13933
|
+
type _VueCommaDangleValueWithIgnore = ("always-multiline" | "always" | "ignore" | "never" | "only-multiline")
|
|
13042
13934
|
// ----- vue/comma-spacing -----
|
|
13043
13935
|
type VueCommaSpacing = []|[{
|
|
13044
13936
|
before?: boolean
|
|
@@ -13109,10 +14001,6 @@ type VueFirstAttributeLinebreak = []|[{
|
|
|
13109
14001
|
// ----- vue/func-call-spacing -----
|
|
13110
14002
|
type VueFuncCallSpacing = ([]|["never"] | []|["always"]|["always", {
|
|
13111
14003
|
allowNewlines?: boolean
|
|
13112
|
-
optionalChain?: {
|
|
13113
|
-
before?: boolean
|
|
13114
|
-
after?: boolean
|
|
13115
|
-
}
|
|
13116
14004
|
}])
|
|
13117
14005
|
// ----- vue/html-button-has-type -----
|
|
13118
14006
|
type VueHtmlButtonHasType = []|[{
|
|
@@ -13430,10 +14318,6 @@ type VueKeywordSpacing = []|[{
|
|
|
13430
14318
|
before?: boolean
|
|
13431
14319
|
after?: boolean
|
|
13432
14320
|
}
|
|
13433
|
-
satisfies?: {
|
|
13434
|
-
before?: boolean
|
|
13435
|
-
after?: boolean
|
|
13436
|
-
}
|
|
13437
14321
|
set?: {
|
|
13438
14322
|
before?: boolean
|
|
13439
14323
|
after?: boolean
|
|
@@ -13510,10 +14394,6 @@ type VueKeywordSpacing = []|[{
|
|
|
13510
14394
|
before?: boolean
|
|
13511
14395
|
after?: boolean
|
|
13512
14396
|
}
|
|
13513
|
-
type?: {
|
|
13514
|
-
before?: boolean
|
|
13515
|
-
after?: boolean
|
|
13516
|
-
}
|
|
13517
14397
|
}
|
|
13518
14398
|
}]
|
|
13519
14399
|
// ----- vue/match-component-file-name -----
|
|
@@ -13642,10 +14522,7 @@ type VueMultilineHtmlElementContentNewline = []|[{
|
|
|
13642
14522
|
allowEmptyLines?: boolean
|
|
13643
14523
|
}]
|
|
13644
14524
|
// ----- vue/multiline-ternary -----
|
|
13645
|
-
type VueMultilineTernary = []|[("always" | "always-multiline" | "never")]
|
|
13646
|
-
ignoreJSX?: boolean
|
|
13647
|
-
[k: string]: unknown | undefined
|
|
13648
|
-
}]
|
|
14525
|
+
type VueMultilineTernary = []|[("always" | "always-multiline" | "never")]
|
|
13649
14526
|
// ----- vue/mustache-interpolation-spacing -----
|
|
13650
14527
|
type VueMustacheInterpolationSpacing = []|[("always" | "never")]
|
|
13651
14528
|
// ----- vue/new-line-between-multi-line-property -----
|
|
@@ -13962,16 +14839,6 @@ type VueObjectCurlyNewline = []|[((("always" | "never") | {
|
|
|
13962
14839
|
minProperties?: number
|
|
13963
14840
|
consistent?: boolean
|
|
13964
14841
|
})
|
|
13965
|
-
TSTypeLiteral?: (("always" | "never") | {
|
|
13966
|
-
multiline?: boolean
|
|
13967
|
-
minProperties?: number
|
|
13968
|
-
consistent?: boolean
|
|
13969
|
-
})
|
|
13970
|
-
TSInterfaceBody?: (("always" | "never") | {
|
|
13971
|
-
multiline?: boolean
|
|
13972
|
-
minProperties?: number
|
|
13973
|
-
consistent?: boolean
|
|
13974
|
-
})
|
|
13975
14842
|
})]
|
|
13976
14843
|
// ----- vue/object-curly-spacing -----
|
|
13977
14844
|
type VueObjectCurlySpacing = []|[("always" | "never")]|[("always" | "never"), {
|
|
@@ -13993,7 +14860,7 @@ type VueObjectShorthand = ([]|[("always" | "methods" | "properties" | "never" |
|
|
|
13993
14860
|
avoidExplicitReturnArrows?: boolean
|
|
13994
14861
|
}])
|
|
13995
14862
|
// ----- vue/operator-linebreak -----
|
|
13996
|
-
type VueOperatorLinebreak = []|[(
|
|
14863
|
+
type VueOperatorLinebreak = []|[("after" | "before" | "none" | null)]|[("after" | "before" | "none" | null), {
|
|
13997
14864
|
overrides?: {
|
|
13998
14865
|
[k: string]: ("after" | "before" | "none" | "ignore") | undefined
|
|
13999
14866
|
}
|
|
@@ -14374,7 +15241,7 @@ type Yoda = []|[("always" | "never")]|[("always" | "never"), {
|
|
|
14374
15241
|
}]
|
|
14375
15242
|
|
|
14376
15243
|
// Names of all the configs
|
|
14377
|
-
type ConfigNames = "zayne/js-eslint/setup" | "zayne/js-eslint/recommended" | "zayne/js-eslint/rules" | "zayne/unicorn/recommended" | "zayne/unicorn/rules" | "zayne/ts-eslint/setup" | "zayne/ts-eslint/strict" | "zayne/ts-eslint/strict" | "zayne/ts-eslint/strict" | "zayne/ts-eslint/
|
|
15244
|
+
type ConfigNames = "zayne/js-eslint/setup" | "zayne/js-eslint/recommended" | "zayne/js-eslint/rules" | "zayne/unicorn/recommended" | "zayne/unicorn/rules" | "zayne/ts-eslint/setup" | "zayne/ts-eslint/strict" | "zayne/ts-eslint/strict" | "zayne/ts-eslint/strict" | "zayne/ts-eslint/strict" | "zayne/ts-eslint/strict" | "zayne/ts-eslint/strict" | "zayne/ts-eslint/rules" | "zayne/tailwindcss/setup" | "zayne/tailwindcss/recommended" | "zayne/tailwindcss/rules" | "zayne/perfectionist/rules" | "zayne/stylistic/rules" | "zayne/import/setup" | "zayne/import/recommended" | "zayne/import/rules" | "zayne/jsdoc/rules" | "zayne/jsonc/setup" | "zayne/jsonc/rules" | "zayne/react/setup" | "zayne/react/recommended" | "zayne/react/rules" | "zayne/react/refresh" | "zayne/react/nextjs" | "zayne/node/setup" | "zayne/node/recommended" | "zayne/node/rules" | "zayne/tanstack/query-recommended" | "zayne/eslint-comments/rules" | "zayne/toml/setup" | "zayne/toml/rules" | "zayne/yaml/setup" | "zayne/yaml/rules" | "zayne/vue/setup" | "zayne/vue/rules" | "zayne/solid/setup" | "zayne/solid/recommended" | "zayne/solid/rules"
|
|
14378
15245
|
|
|
14379
15246
|
type LiteralUnion<TUnion extends TBase, TBase = string> = TUnion | (TBase & { _ignore?: never });
|
|
14380
15247
|
|
|
@@ -14536,6 +15403,8 @@ interface LanguageOptions extends Linter.LanguageOptions {
|
|
|
14536
15403
|
* @see [Configuring a custom parser and its options](https://eslint.org/docs/latest/user-guide/configuring/configuration-files-new#configuring-a-custom-parser-and-its-options)
|
|
14537
15404
|
*/
|
|
14538
15405
|
parserOptions?: ParserOptions;
|
|
15406
|
+
|
|
15407
|
+
[key: string]: any;
|
|
14539
15408
|
}
|
|
14540
15409
|
|
|
14541
15410
|
/**
|
|
@@ -14783,6 +15652,10 @@ interface OptionsConfig extends OptionsComponentExts {
|
|
|
14783
15652
|
* @default true
|
|
14784
15653
|
*/
|
|
14785
15654
|
autoRenamePlugins?: boolean;
|
|
15655
|
+
/**
|
|
15656
|
+
* Enable linting rules for eslint comments.
|
|
15657
|
+
* @default true
|
|
15658
|
+
*/
|
|
14786
15659
|
comments?: (OptionsAppType & OptionsOverrides) | boolean;
|
|
14787
15660
|
/**
|
|
14788
15661
|
* Enable gitignore support.
|
|
@@ -14923,6 +15796,11 @@ interface OptionsConfig extends OptionsComponentExts {
|
|
|
14923
15796
|
* - `eslint-processor-vue-blocks`
|
|
14924
15797
|
*/
|
|
14925
15798
|
vue?: (OptionsFiles & OptionsHasTypeScript & OptionsOverrides & OptionsStylistic & OptionsVue) | boolean;
|
|
15799
|
+
/**
|
|
15800
|
+
* Controls whether or not configs enabled by defaults should stay enabled or not
|
|
15801
|
+
* @default true
|
|
15802
|
+
*/
|
|
15803
|
+
withDefaults?: boolean;
|
|
14926
15804
|
/**
|
|
14927
15805
|
* Enable YAML support.
|
|
14928
15806
|
* @default true
|
|
@@ -14988,11 +15866,11 @@ declare function vue(options?: ExtractOptions<OptionsConfig["vue"]>): Promise<Ty
|
|
|
14988
15866
|
declare const solid: (options?: ExtractOptions<OptionsConfig["solid"]>) => Promise<TypedFlatConfigItem[]>;
|
|
14989
15867
|
|
|
14990
15868
|
/**
|
|
14991
|
-
* Construct an array of ESLint flat config items.
|
|
15869
|
+
* @description Construct an array of ESLint flat config items.
|
|
14992
15870
|
* @param options
|
|
14993
15871
|
* The options for generating the ESLint configurations.
|
|
14994
15872
|
* @param userConfigs
|
|
14995
|
-
* The user configurations to be merged with the generated configurations.
|
|
15873
|
+
* The extra user configurations to be merged with the generated configurations.
|
|
14996
15874
|
* @returns
|
|
14997
15875
|
* The merged ESLint configurations.
|
|
14998
15876
|
*/
|