@kitschpatrol/eslint-config 5.0.5 → 5.0.6
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/bin/cli.js +9 -9
- package/dist/index.d.ts +1953 -435
- package/dist/index.js +29 -18
- package/package.json +19 -19
package/dist/index.d.ts
CHANGED
|
@@ -1326,6 +1326,10 @@ interface RuleOptions {
|
|
|
1326
1326
|
* Requires the `author` property to be present.
|
|
1327
1327
|
*/
|
|
1328
1328
|
'json-package/require-author'?: Linter.RuleEntry<[]>
|
|
1329
|
+
/**
|
|
1330
|
+
* Requires the `files` property to be present.
|
|
1331
|
+
*/
|
|
1332
|
+
'json-package/require-files'?: Linter.RuleEntry<[]>
|
|
1329
1333
|
/**
|
|
1330
1334
|
* Requires the `keywords` property to be present.
|
|
1331
1335
|
*/
|
|
@@ -3344,7 +3348,7 @@ interface RuleOptions {
|
|
|
3344
3348
|
*/
|
|
3345
3349
|
'react-naming-convention/filename-extension'?: Linter.RuleEntry<ReactNamingConventionFilenameExtension>
|
|
3346
3350
|
/**
|
|
3347
|
-
* enforce destructuring and symmetric naming of 'useState' hook value and setter
|
|
3351
|
+
* enforce destructuring and symmetric naming of 'useState' hook value and setter
|
|
3348
3352
|
* @see https://eslint-react.xyz/docs/rules/naming-convention-use-state
|
|
3349
3353
|
*/
|
|
3350
3354
|
'react-naming-convention/use-state'?: Linter.RuleEntry<[]>
|
|
@@ -3389,7 +3393,7 @@ interface RuleOptions {
|
|
|
3389
3393
|
*/
|
|
3390
3394
|
'react/jsx-no-duplicate-props'?: Linter.RuleEntry<[]>
|
|
3391
3395
|
/**
|
|
3392
|
-
*
|
|
3396
|
+
* marks variables used in JSX as used
|
|
3393
3397
|
* @see https://eslint-react.xyz/docs/rules/use-jsx-vars
|
|
3394
3398
|
*/
|
|
3395
3399
|
'react/jsx-uses-vars'?: Linter.RuleEntry<[]>
|
|
@@ -3523,6 +3527,11 @@ interface RuleOptions {
|
|
|
3523
3527
|
* @see https://eslint-react.xyz/docs/rules/no-missing-component-display-name
|
|
3524
3528
|
*/
|
|
3525
3529
|
'react/no-missing-component-display-name'?: Linter.RuleEntry<[]>
|
|
3530
|
+
/**
|
|
3531
|
+
* require 'displayName' for contexts.
|
|
3532
|
+
* @see https://eslint-react.xyz/docs/rules/no-missing-context-display-name
|
|
3533
|
+
*/
|
|
3534
|
+
'react/no-missing-context-display-name'?: Linter.RuleEntry<[]>
|
|
3526
3535
|
/**
|
|
3527
3536
|
* require 'key' when rendering list
|
|
3528
3537
|
* @see https://eslint-react.xyz/docs/rules/no-missing-key
|
|
@@ -3604,7 +3613,7 @@ interface RuleOptions {
|
|
|
3604
3613
|
*/
|
|
3605
3614
|
'react/no-use-context'?: Linter.RuleEntry<[]>
|
|
3606
3615
|
/**
|
|
3607
|
-
* disallow
|
|
3616
|
+
* disallow useless fragments
|
|
3608
3617
|
* @see https://eslint-react.xyz/docs/rules/no-useless-fragment
|
|
3609
3618
|
*/
|
|
3610
3619
|
'react/no-useless-fragment'?: Linter.RuleEntry<ReactNoUselessFragment>
|
|
@@ -3634,7 +3643,7 @@ interface RuleOptions {
|
|
|
3634
3643
|
*/
|
|
3635
3644
|
'react/prefer-shorthand-fragment'?: Linter.RuleEntry<[]>
|
|
3636
3645
|
/**
|
|
3637
|
-
*
|
|
3646
|
+
* marks variables used in JSX as used
|
|
3638
3647
|
* @see https://eslint-react.xyz/docs/rules/use-jsx-vars
|
|
3639
3648
|
*/
|
|
3640
3649
|
'react/use-jsx-vars'?: Linter.RuleEntry<[]>
|
|
@@ -5146,7 +5155,7 @@ interface RuleOptions {
|
|
|
5146
5155
|
*/
|
|
5147
5156
|
'ts/no-for-in-array'?: Linter.RuleEntry<[]>
|
|
5148
5157
|
/**
|
|
5149
|
-
* Disallow the use of `eval()`-like
|
|
5158
|
+
* Disallow the use of `eval()`-like functions
|
|
5150
5159
|
* @see https://typescript-eslint.io/rules/no-implied-eval
|
|
5151
5160
|
*/
|
|
5152
5161
|
'ts/no-implied-eval'?: Linter.RuleEntry<[]>
|
|
@@ -5597,702 +5606,642 @@ interface RuleOptions {
|
|
|
5597
5606
|
'unicode-bom'?: Linter.RuleEntry<UnicodeBom>
|
|
5598
5607
|
/**
|
|
5599
5608
|
* Improve regexes by making them shorter, consistent, and safer.
|
|
5600
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5609
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/better-regex.md
|
|
5601
5610
|
*/
|
|
5602
5611
|
'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>
|
|
5603
5612
|
/**
|
|
5604
5613
|
* Enforce a specific parameter name in catch clauses.
|
|
5605
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5614
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/catch-error-name.md
|
|
5606
5615
|
*/
|
|
5607
5616
|
'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>
|
|
5617
|
+
/**
|
|
5618
|
+
* Enforce consistent assertion style with `node:assert`.
|
|
5619
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-assert.md
|
|
5620
|
+
*/
|
|
5621
|
+
'unicorn/consistent-assert'?: Linter.RuleEntry<[]>
|
|
5622
|
+
/**
|
|
5623
|
+
* Prefer passing `Date` directly to the constructor when cloning.
|
|
5624
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-date-clone.md
|
|
5625
|
+
*/
|
|
5626
|
+
'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>
|
|
5608
5627
|
/**
|
|
5609
5628
|
* Use destructured variables over properties.
|
|
5610
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5629
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-destructuring.md
|
|
5611
5630
|
*/
|
|
5612
5631
|
'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>
|
|
5613
5632
|
/**
|
|
5614
5633
|
* Prefer consistent types when spreading a ternary in an array literal.
|
|
5615
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5634
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-empty-array-spread.md
|
|
5616
5635
|
*/
|
|
5617
5636
|
'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>
|
|
5618
5637
|
/**
|
|
5619
5638
|
* Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
|
|
5620
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5639
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-existence-index-check.md
|
|
5621
5640
|
*/
|
|
5622
5641
|
'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>
|
|
5623
5642
|
/**
|
|
5624
5643
|
* Move function definitions to the highest possible scope.
|
|
5625
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5644
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-function-scoping.md
|
|
5626
5645
|
*/
|
|
5627
5646
|
'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>
|
|
5628
5647
|
/**
|
|
5629
5648
|
* Enforce correct `Error` subclassing.
|
|
5630
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5649
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/custom-error-definition.md
|
|
5631
5650
|
*/
|
|
5632
5651
|
'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>
|
|
5633
5652
|
/**
|
|
5634
5653
|
* Enforce no spaces between braces.
|
|
5635
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5654
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/empty-brace-spaces.md
|
|
5636
5655
|
*/
|
|
5637
5656
|
'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>
|
|
5638
5657
|
/**
|
|
5639
5658
|
* Enforce passing a `message` value when creating a built-in error.
|
|
5640
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5659
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/error-message.md
|
|
5641
5660
|
*/
|
|
5642
5661
|
'unicorn/error-message'?: Linter.RuleEntry<[]>
|
|
5643
5662
|
/**
|
|
5644
5663
|
* Require escape sequences to use uppercase values.
|
|
5645
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5664
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/escape-case.md
|
|
5646
5665
|
*/
|
|
5647
5666
|
'unicorn/escape-case'?: Linter.RuleEntry<[]>
|
|
5648
5667
|
/**
|
|
5649
5668
|
* Add expiration conditions to TODO comments.
|
|
5650
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5669
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/expiring-todo-comments.md
|
|
5651
5670
|
*/
|
|
5652
5671
|
'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>
|
|
5653
5672
|
/**
|
|
5654
5673
|
* Enforce explicitly comparing the `length` or `size` property of a value.
|
|
5655
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5674
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/explicit-length-check.md
|
|
5656
5675
|
*/
|
|
5657
5676
|
'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>
|
|
5658
5677
|
/**
|
|
5659
5678
|
* Enforce a case style for filenames.
|
|
5660
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5679
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/filename-case.md
|
|
5661
5680
|
*/
|
|
5662
5681
|
'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>
|
|
5663
|
-
/**
|
|
5664
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#import-index
|
|
5665
|
-
* @deprecated
|
|
5666
|
-
*/
|
|
5667
|
-
'unicorn/import-index'?: Linter.RuleEntry<[]>
|
|
5668
5682
|
/**
|
|
5669
5683
|
* Enforce specific import styles per module.
|
|
5670
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5684
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/import-style.md
|
|
5671
5685
|
*/
|
|
5672
5686
|
'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>
|
|
5673
5687
|
/**
|
|
5674
5688
|
* Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
|
|
5675
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5689
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/new-for-builtins.md
|
|
5676
5690
|
*/
|
|
5677
5691
|
'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>
|
|
5678
5692
|
/**
|
|
5679
5693
|
* Enforce specifying rules to disable in `eslint-disable` comments.
|
|
5680
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5694
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-abusive-eslint-disable.md
|
|
5681
5695
|
*/
|
|
5682
5696
|
'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>
|
|
5697
|
+
/**
|
|
5698
|
+
* Disallow recursive access to `this` within getters and setters.
|
|
5699
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-accessor-recursion.md
|
|
5700
|
+
*/
|
|
5701
|
+
'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>
|
|
5683
5702
|
/**
|
|
5684
5703
|
* Disallow anonymous functions and classes as the default export.
|
|
5685
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5704
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-anonymous-default-export.md
|
|
5686
5705
|
*/
|
|
5687
5706
|
'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>
|
|
5688
5707
|
/**
|
|
5689
5708
|
* Prevent passing a function reference directly to iterator methods.
|
|
5690
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5709
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-callback-reference.md
|
|
5691
5710
|
*/
|
|
5692
5711
|
'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>
|
|
5693
5712
|
/**
|
|
5694
5713
|
* Prefer `for…of` over the `forEach` method.
|
|
5695
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5714
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-for-each.md
|
|
5696
5715
|
*/
|
|
5697
5716
|
'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>
|
|
5698
|
-
/**
|
|
5699
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#no-array-instanceof
|
|
5700
|
-
* @deprecated
|
|
5701
|
-
*/
|
|
5702
|
-
'unicorn/no-array-instanceof'?: Linter.RuleEntry<[]>
|
|
5703
5717
|
/**
|
|
5704
5718
|
* Disallow using the `this` argument in array methods.
|
|
5705
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5719
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-method-this-argument.md
|
|
5706
5720
|
*/
|
|
5707
5721
|
'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>
|
|
5708
5722
|
/**
|
|
5709
5723
|
* Enforce combining multiple `Array#push()` into one call.
|
|
5710
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5724
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-push-push.md
|
|
5711
5725
|
*/
|
|
5712
5726
|
'unicorn/no-array-push-push'?: Linter.RuleEntry<UnicornNoArrayPushPush>
|
|
5713
5727
|
/**
|
|
5714
5728
|
* Disallow `Array#reduce()` and `Array#reduceRight()`.
|
|
5715
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5729
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-reduce.md
|
|
5716
5730
|
*/
|
|
5717
5731
|
'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>
|
|
5718
5732
|
/**
|
|
5719
5733
|
* Disallow member access from await expression.
|
|
5720
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5734
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-await-expression-member.md
|
|
5721
5735
|
*/
|
|
5722
5736
|
'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>
|
|
5723
5737
|
/**
|
|
5724
5738
|
* Disallow using `await` in `Promise` method parameters.
|
|
5725
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5739
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-await-in-promise-methods.md
|
|
5726
5740
|
*/
|
|
5727
5741
|
'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>
|
|
5728
5742
|
/**
|
|
5729
5743
|
* Do not use leading/trailing space between `console.log` parameters.
|
|
5730
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5744
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-console-spaces.md
|
|
5731
5745
|
*/
|
|
5732
5746
|
'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>
|
|
5733
5747
|
/**
|
|
5734
5748
|
* Do not use `document.cookie` directly.
|
|
5735
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5749
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-document-cookie.md
|
|
5736
5750
|
*/
|
|
5737
5751
|
'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>
|
|
5738
5752
|
/**
|
|
5739
5753
|
* Disallow empty files.
|
|
5740
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5754
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-empty-file.md
|
|
5741
5755
|
*/
|
|
5742
5756
|
'unicorn/no-empty-file'?: Linter.RuleEntry<[]>
|
|
5743
|
-
/**
|
|
5744
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#no-fn-reference-in-iterator
|
|
5745
|
-
* @deprecated
|
|
5746
|
-
*/
|
|
5747
|
-
'unicorn/no-fn-reference-in-iterator'?: Linter.RuleEntry<[]>
|
|
5748
5757
|
/**
|
|
5749
5758
|
* Do not use a `for` loop that can be replaced with a `for-of` loop.
|
|
5750
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5759
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-for-loop.md
|
|
5751
5760
|
*/
|
|
5752
5761
|
'unicorn/no-for-loop'?: Linter.RuleEntry<[]>
|
|
5753
5762
|
/**
|
|
5754
5763
|
* Enforce the use of Unicode escapes instead of hexadecimal escapes.
|
|
5755
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5764
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-hex-escape.md
|
|
5756
5765
|
*/
|
|
5757
5766
|
'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>
|
|
5758
5767
|
/**
|
|
5759
|
-
*
|
|
5760
|
-
* @
|
|
5768
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/deprecated-rules.md#no-instanceof-array
|
|
5769
|
+
* @deprecated
|
|
5761
5770
|
*/
|
|
5762
5771
|
'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>
|
|
5772
|
+
/**
|
|
5773
|
+
* Disallow `instanceof` with built-in objects
|
|
5774
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-instanceof-builtins.md
|
|
5775
|
+
*/
|
|
5776
|
+
'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>
|
|
5763
5777
|
/**
|
|
5764
5778
|
* Disallow invalid options in `fetch()` and `new Request()`.
|
|
5765
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5779
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-invalid-fetch-options.md
|
|
5766
5780
|
*/
|
|
5767
5781
|
'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>
|
|
5768
5782
|
/**
|
|
5769
5783
|
* Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
|
|
5770
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5784
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-invalid-remove-event-listener.md
|
|
5771
5785
|
*/
|
|
5772
5786
|
'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>
|
|
5773
5787
|
/**
|
|
5774
5788
|
* Disallow identifiers starting with `new` or `class`.
|
|
5775
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5789
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-keyword-prefix.md
|
|
5776
5790
|
*/
|
|
5777
5791
|
'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>
|
|
5778
5792
|
/**
|
|
5779
5793
|
* Disallow using `.length` as the `end` argument of `{Array,String,TypedArray}#slice()`.
|
|
5780
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5794
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-length-as-slice-end.md
|
|
5781
5795
|
*/
|
|
5782
5796
|
'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>
|
|
5783
5797
|
/**
|
|
5784
5798
|
* Disallow `if` statements as the only statement in `if` blocks without `else`.
|
|
5785
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5799
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-lonely-if.md
|
|
5786
5800
|
*/
|
|
5787
5801
|
'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>
|
|
5788
5802
|
/**
|
|
5789
5803
|
* Disallow a magic number as the `depth` argument in `Array#flat(…).`
|
|
5790
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5804
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-magic-array-flat-depth.md
|
|
5791
5805
|
*/
|
|
5792
5806
|
'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>
|
|
5807
|
+
/**
|
|
5808
|
+
* Disallow named usage of default import and export.
|
|
5809
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-named-default.md
|
|
5810
|
+
*/
|
|
5811
|
+
'unicorn/no-named-default'?: Linter.RuleEntry<[]>
|
|
5793
5812
|
/**
|
|
5794
5813
|
* Disallow negated conditions.
|
|
5795
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5814
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-negated-condition.md
|
|
5796
5815
|
*/
|
|
5797
5816
|
'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>
|
|
5798
5817
|
/**
|
|
5799
5818
|
* Disallow negated expression in equality check.
|
|
5800
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5819
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-negation-in-equality-check.md
|
|
5801
5820
|
*/
|
|
5802
5821
|
'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>
|
|
5803
5822
|
/**
|
|
5804
5823
|
* Disallow nested ternary expressions.
|
|
5805
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5824
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-nested-ternary.md
|
|
5806
5825
|
*/
|
|
5807
5826
|
'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>
|
|
5808
5827
|
/**
|
|
5809
5828
|
* Disallow `new Array()`.
|
|
5810
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5829
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-new-array.md
|
|
5811
5830
|
*/
|
|
5812
5831
|
'unicorn/no-new-array'?: Linter.RuleEntry<[]>
|
|
5813
5832
|
/**
|
|
5814
5833
|
* Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
|
|
5815
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5834
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-new-buffer.md
|
|
5816
5835
|
*/
|
|
5817
5836
|
'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>
|
|
5818
5837
|
/**
|
|
5819
5838
|
* Disallow the use of the `null` literal.
|
|
5820
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5839
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-null.md
|
|
5821
5840
|
*/
|
|
5822
5841
|
'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>
|
|
5823
5842
|
/**
|
|
5824
5843
|
* Disallow the use of objects as default parameters.
|
|
5825
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5844
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-object-as-default-parameter.md
|
|
5826
5845
|
*/
|
|
5827
5846
|
'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>
|
|
5828
5847
|
/**
|
|
5829
5848
|
* Disallow `process.exit()`.
|
|
5830
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5849
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-process-exit.md
|
|
5831
5850
|
*/
|
|
5832
5851
|
'unicorn/no-process-exit'?: Linter.RuleEntry<[]>
|
|
5833
|
-
/**
|
|
5834
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#no-reduce
|
|
5835
|
-
* @deprecated
|
|
5836
|
-
*/
|
|
5837
|
-
'unicorn/no-reduce'?: Linter.RuleEntry<[]>
|
|
5838
5852
|
/**
|
|
5839
5853
|
* Disallow passing single-element arrays to `Promise` methods.
|
|
5840
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5854
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-single-promise-in-promise-methods.md
|
|
5841
5855
|
*/
|
|
5842
5856
|
'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>
|
|
5843
5857
|
/**
|
|
5844
5858
|
* Disallow classes that only have static members.
|
|
5845
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5859
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-static-only-class.md
|
|
5846
5860
|
*/
|
|
5847
5861
|
'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>
|
|
5848
5862
|
/**
|
|
5849
5863
|
* Disallow `then` property.
|
|
5850
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5864
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-thenable.md
|
|
5851
5865
|
*/
|
|
5852
5866
|
'unicorn/no-thenable'?: Linter.RuleEntry<[]>
|
|
5853
5867
|
/**
|
|
5854
5868
|
* Disallow assigning `this` to a variable.
|
|
5855
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5869
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-this-assignment.md
|
|
5856
5870
|
*/
|
|
5857
5871
|
'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>
|
|
5858
5872
|
/**
|
|
5859
5873
|
* Disallow comparing `undefined` using `typeof`.
|
|
5860
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5874
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-typeof-undefined.md
|
|
5861
5875
|
*/
|
|
5862
5876
|
'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>
|
|
5863
5877
|
/**
|
|
5864
5878
|
* Disallow awaiting non-promise values.
|
|
5865
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5879
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unnecessary-await.md
|
|
5866
5880
|
*/
|
|
5867
5881
|
'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>
|
|
5868
5882
|
/**
|
|
5869
5883
|
* Enforce the use of built-in methods instead of unnecessary polyfills.
|
|
5870
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5884
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unnecessary-polyfills.md
|
|
5871
5885
|
*/
|
|
5872
5886
|
'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>
|
|
5873
5887
|
/**
|
|
5874
5888
|
* Disallow unreadable array destructuring.
|
|
5875
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5889
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unreadable-array-destructuring.md
|
|
5876
5890
|
*/
|
|
5877
5891
|
'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>
|
|
5878
5892
|
/**
|
|
5879
5893
|
* Disallow unreadable IIFEs.
|
|
5880
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5894
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unreadable-iife.md
|
|
5881
5895
|
*/
|
|
5882
5896
|
'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>
|
|
5883
|
-
/**
|
|
5884
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#no-unsafe-regex
|
|
5885
|
-
* @deprecated
|
|
5886
|
-
*/
|
|
5887
|
-
'unicorn/no-unsafe-regex'?: Linter.RuleEntry<[]>
|
|
5888
5897
|
/**
|
|
5889
5898
|
* Disallow unused object properties.
|
|
5890
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5899
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unused-properties.md
|
|
5891
5900
|
*/
|
|
5892
5901
|
'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>
|
|
5893
5902
|
/**
|
|
5894
5903
|
* Disallow useless fallback when spreading in object literals.
|
|
5895
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5904
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-fallback-in-spread.md
|
|
5896
5905
|
*/
|
|
5897
5906
|
'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>
|
|
5898
5907
|
/**
|
|
5899
5908
|
* Disallow useless array length check.
|
|
5900
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5909
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-length-check.md
|
|
5901
5910
|
*/
|
|
5902
5911
|
'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>
|
|
5903
5912
|
/**
|
|
5904
5913
|
* Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
|
|
5905
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5914
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-promise-resolve-reject.md
|
|
5906
5915
|
*/
|
|
5907
5916
|
'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>
|
|
5908
5917
|
/**
|
|
5909
5918
|
* Disallow unnecessary spread.
|
|
5910
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5919
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-spread.md
|
|
5911
5920
|
*/
|
|
5912
5921
|
'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>
|
|
5913
5922
|
/**
|
|
5914
5923
|
* Disallow useless case in switch statements.
|
|
5915
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5924
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-switch-case.md
|
|
5916
5925
|
*/
|
|
5917
5926
|
'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>
|
|
5918
5927
|
/**
|
|
5919
5928
|
* Disallow useless `undefined`.
|
|
5920
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5929
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-undefined.md
|
|
5921
5930
|
*/
|
|
5922
5931
|
'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>
|
|
5923
5932
|
/**
|
|
5924
5933
|
* Disallow number literals with zero fractions or dangling dots.
|
|
5925
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5934
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-zero-fractions.md
|
|
5926
5935
|
*/
|
|
5927
5936
|
'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>
|
|
5928
5937
|
/**
|
|
5929
5938
|
* Enforce proper case for numeric literals.
|
|
5930
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5939
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/number-literal-case.md
|
|
5931
5940
|
*/
|
|
5932
5941
|
'unicorn/number-literal-case'?: Linter.RuleEntry<[]>
|
|
5933
5942
|
/**
|
|
5934
5943
|
* Enforce the style of numeric separators by correctly grouping digits.
|
|
5935
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5944
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/numeric-separators-style.md
|
|
5936
5945
|
*/
|
|
5937
5946
|
'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>
|
|
5938
5947
|
/**
|
|
5939
5948
|
* Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
|
|
5940
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5949
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-add-event-listener.md
|
|
5941
5950
|
*/
|
|
5942
5951
|
'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>
|
|
5943
5952
|
/**
|
|
5944
5953
|
* Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
|
|
5945
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5954
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-find.md
|
|
5946
5955
|
*/
|
|
5947
5956
|
'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>
|
|
5948
5957
|
/**
|
|
5949
5958
|
* Prefer `Array#flat()` over legacy techniques to flatten arrays.
|
|
5950
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5959
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-flat.md
|
|
5951
5960
|
*/
|
|
5952
5961
|
'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>
|
|
5953
5962
|
/**
|
|
5954
5963
|
* Prefer `.flatMap(…)` over `.map(…).flat()`.
|
|
5955
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5964
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-flat-map.md
|
|
5956
5965
|
*/
|
|
5957
5966
|
'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>
|
|
5958
5967
|
/**
|
|
5959
5968
|
* Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
|
|
5960
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5969
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-index-of.md
|
|
5961
5970
|
*/
|
|
5962
5971
|
'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>
|
|
5963
5972
|
/**
|
|
5964
5973
|
* Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
|
|
5965
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5974
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-some.md
|
|
5966
5975
|
*/
|
|
5967
5976
|
'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>
|
|
5968
5977
|
/**
|
|
5969
5978
|
* Prefer `.at()` method for index access and `String#charAt()`.
|
|
5970
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5979
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-at.md
|
|
5971
5980
|
*/
|
|
5972
5981
|
'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>
|
|
5973
5982
|
/**
|
|
5974
5983
|
* Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
|
|
5975
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5984
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-blob-reading-methods.md
|
|
5976
5985
|
*/
|
|
5977
5986
|
'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>
|
|
5978
5987
|
/**
|
|
5979
5988
|
* Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
|
|
5980
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5989
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-code-point.md
|
|
5981
5990
|
*/
|
|
5982
5991
|
'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>
|
|
5983
|
-
/**
|
|
5984
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-dataset
|
|
5985
|
-
* @deprecated
|
|
5986
|
-
*/
|
|
5987
|
-
'unicorn/prefer-dataset'?: Linter.RuleEntry<[]>
|
|
5988
5992
|
/**
|
|
5989
5993
|
* Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
|
|
5990
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5994
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-date-now.md
|
|
5991
5995
|
*/
|
|
5992
5996
|
'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>
|
|
5993
5997
|
/**
|
|
5994
5998
|
* Prefer default parameters over reassignment.
|
|
5995
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5999
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-default-parameters.md
|
|
5996
6000
|
*/
|
|
5997
6001
|
'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>
|
|
5998
6002
|
/**
|
|
5999
6003
|
* Prefer `Node#append()` over `Node#appendChild()`.
|
|
6000
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6004
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-append.md
|
|
6001
6005
|
*/
|
|
6002
6006
|
'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>
|
|
6003
6007
|
/**
|
|
6004
6008
|
* Prefer using `.dataset` on DOM elements over calling attribute methods.
|
|
6005
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6009
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-dataset.md
|
|
6006
6010
|
*/
|
|
6007
6011
|
'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>
|
|
6008
6012
|
/**
|
|
6009
6013
|
* Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
|
|
6010
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6014
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-remove.md
|
|
6011
6015
|
*/
|
|
6012
6016
|
'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>
|
|
6013
6017
|
/**
|
|
6014
6018
|
* Prefer `.textContent` over `.innerText`.
|
|
6015
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6019
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-text-content.md
|
|
6016
6020
|
*/
|
|
6017
6021
|
'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>
|
|
6018
|
-
/**
|
|
6019
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-event-key
|
|
6020
|
-
* @deprecated
|
|
6021
|
-
*/
|
|
6022
|
-
'unicorn/prefer-event-key'?: Linter.RuleEntry<[]>
|
|
6023
6022
|
/**
|
|
6024
6023
|
* Prefer `EventTarget` over `EventEmitter`.
|
|
6025
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6024
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-event-target.md
|
|
6026
6025
|
*/
|
|
6027
6026
|
'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>
|
|
6028
|
-
/**
|
|
6029
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-exponentiation-operator
|
|
6030
|
-
* @deprecated
|
|
6031
|
-
*/
|
|
6032
|
-
'unicorn/prefer-exponentiation-operator'?: Linter.RuleEntry<[]>
|
|
6033
6027
|
/**
|
|
6034
6028
|
* Prefer `export…from` when re-exporting.
|
|
6035
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6029
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-export-from.md
|
|
6036
6030
|
*/
|
|
6037
6031
|
'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>
|
|
6038
|
-
/**
|
|
6039
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-flat-map
|
|
6040
|
-
* @deprecated
|
|
6041
|
-
*/
|
|
6042
|
-
'unicorn/prefer-flat-map'?: Linter.RuleEntry<[]>
|
|
6043
6032
|
/**
|
|
6044
6033
|
* Prefer `globalThis` over `window`, `self`, and `global`.
|
|
6045
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6034
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-global-this.md
|
|
6046
6035
|
*/
|
|
6047
6036
|
'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>
|
|
6048
6037
|
/**
|
|
6049
6038
|
* Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
|
|
6050
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6039
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-includes.md
|
|
6051
6040
|
*/
|
|
6052
6041
|
'unicorn/prefer-includes'?: Linter.RuleEntry<[]>
|
|
6053
6042
|
/**
|
|
6054
6043
|
* Prefer reading a JSON file as a buffer.
|
|
6055
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6044
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-json-parse-buffer.md
|
|
6056
6045
|
*/
|
|
6057
6046
|
'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>
|
|
6058
6047
|
/**
|
|
6059
6048
|
* Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
|
|
6060
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6049
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-keyboard-event-key.md
|
|
6061
6050
|
*/
|
|
6062
6051
|
'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>
|
|
6063
6052
|
/**
|
|
6064
6053
|
* Prefer using a logical operator over a ternary.
|
|
6065
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6054
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-logical-operator-over-ternary.md
|
|
6066
6055
|
*/
|
|
6067
6056
|
'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>
|
|
6068
6057
|
/**
|
|
6069
6058
|
* Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
|
|
6070
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6059
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-math-min-max.md
|
|
6071
6060
|
*/
|
|
6072
6061
|
'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>
|
|
6073
6062
|
/**
|
|
6074
6063
|
* Enforce the use of `Math.trunc` instead of bitwise operators.
|
|
6075
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6064
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-math-trunc.md
|
|
6076
6065
|
*/
|
|
6077
6066
|
'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>
|
|
6078
6067
|
/**
|
|
6079
6068
|
* Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
|
|
6080
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6069
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-modern-dom-apis.md
|
|
6081
6070
|
*/
|
|
6082
6071
|
'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>
|
|
6083
6072
|
/**
|
|
6084
6073
|
* Prefer modern `Math` APIs over legacy patterns.
|
|
6085
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6074
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-modern-math-apis.md
|
|
6086
6075
|
*/
|
|
6087
6076
|
'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>
|
|
6088
6077
|
/**
|
|
6089
6078
|
* Prefer JavaScript modules (ESM) over CommonJS.
|
|
6090
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6079
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-module.md
|
|
6091
6080
|
*/
|
|
6092
6081
|
'unicorn/prefer-module'?: Linter.RuleEntry<[]>
|
|
6093
6082
|
/**
|
|
6094
6083
|
* Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
|
|
6095
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6084
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-native-coercion-functions.md
|
|
6096
6085
|
*/
|
|
6097
6086
|
'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>
|
|
6098
6087
|
/**
|
|
6099
6088
|
* Prefer negative index over `.length - index` when possible.
|
|
6100
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6089
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-negative-index.md
|
|
6101
6090
|
*/
|
|
6102
6091
|
'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>
|
|
6103
|
-
/**
|
|
6104
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-node-append
|
|
6105
|
-
* @deprecated
|
|
6106
|
-
*/
|
|
6107
|
-
'unicorn/prefer-node-append'?: Linter.RuleEntry<[]>
|
|
6108
6092
|
/**
|
|
6109
6093
|
* Prefer using the `node:` protocol when importing Node.js builtin modules.
|
|
6110
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6094
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-node-protocol.md
|
|
6111
6095
|
*/
|
|
6112
6096
|
'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>
|
|
6113
|
-
/**
|
|
6114
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-node-remove
|
|
6115
|
-
* @deprecated
|
|
6116
|
-
*/
|
|
6117
|
-
'unicorn/prefer-node-remove'?: Linter.RuleEntry<[]>
|
|
6118
6097
|
/**
|
|
6119
6098
|
* Prefer `Number` static properties over global ones.
|
|
6120
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6099
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-number-properties.md
|
|
6121
6100
|
*/
|
|
6122
6101
|
'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>
|
|
6123
6102
|
/**
|
|
6124
6103
|
* Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
|
|
6125
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6104
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-object-from-entries.md
|
|
6126
6105
|
*/
|
|
6127
6106
|
'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>
|
|
6128
|
-
/**
|
|
6129
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-object-has-own
|
|
6130
|
-
* @deprecated
|
|
6131
|
-
*/
|
|
6132
|
-
'unicorn/prefer-object-has-own'?: Linter.RuleEntry<[]>
|
|
6133
6107
|
/**
|
|
6134
6108
|
* Prefer omitting the `catch` binding parameter.
|
|
6135
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6109
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-optional-catch-binding.md
|
|
6136
6110
|
*/
|
|
6137
6111
|
'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>
|
|
6138
6112
|
/**
|
|
6139
6113
|
* Prefer borrowing methods from the prototype instead of the instance.
|
|
6140
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6114
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-prototype-methods.md
|
|
6141
6115
|
*/
|
|
6142
6116
|
'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>
|
|
6143
6117
|
/**
|
|
6144
6118
|
* Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
|
|
6145
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6119
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-query-selector.md
|
|
6146
6120
|
*/
|
|
6147
6121
|
'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>
|
|
6148
6122
|
/**
|
|
6149
6123
|
* Prefer `Reflect.apply()` over `Function#apply()`.
|
|
6150
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6124
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-reflect-apply.md
|
|
6151
6125
|
*/
|
|
6152
6126
|
'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>
|
|
6153
6127
|
/**
|
|
6154
6128
|
* Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
|
|
6155
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6129
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-regexp-test.md
|
|
6156
6130
|
*/
|
|
6157
6131
|
'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>
|
|
6158
|
-
/**
|
|
6159
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-replace-all
|
|
6160
|
-
* @deprecated
|
|
6161
|
-
*/
|
|
6162
|
-
'unicorn/prefer-replace-all'?: Linter.RuleEntry<[]>
|
|
6163
6132
|
/**
|
|
6164
6133
|
* Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
|
|
6165
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6134
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-set-has.md
|
|
6166
6135
|
*/
|
|
6167
6136
|
'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>
|
|
6168
6137
|
/**
|
|
6169
6138
|
* Prefer using `Set#size` instead of `Array#length`.
|
|
6170
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6139
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-set-size.md
|
|
6171
6140
|
*/
|
|
6172
6141
|
'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>
|
|
6173
6142
|
/**
|
|
6174
6143
|
* Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
|
|
6175
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6144
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-spread.md
|
|
6176
6145
|
*/
|
|
6177
6146
|
'unicorn/prefer-spread'?: Linter.RuleEntry<[]>
|
|
6178
|
-
/**
|
|
6179
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-starts-ends-with
|
|
6180
|
-
* @deprecated
|
|
6181
|
-
*/
|
|
6182
|
-
'unicorn/prefer-starts-ends-with'?: Linter.RuleEntry<[]>
|
|
6183
6147
|
/**
|
|
6184
6148
|
* Prefer using the `String.raw` tag to avoid escaping `\`.
|
|
6185
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6149
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-raw.md
|
|
6186
6150
|
*/
|
|
6187
6151
|
'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>
|
|
6188
6152
|
/**
|
|
6189
6153
|
* Prefer `String#replaceAll()` over regex searches with the global flag.
|
|
6190
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6154
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-replace-all.md
|
|
6191
6155
|
*/
|
|
6192
6156
|
'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>
|
|
6193
6157
|
/**
|
|
6194
6158
|
* Prefer `String#slice()` over `String#substr()` and `String#substring()`.
|
|
6195
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6159
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-slice.md
|
|
6196
6160
|
*/
|
|
6197
6161
|
'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>
|
|
6198
6162
|
/**
|
|
6199
6163
|
* Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
|
|
6200
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6164
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-starts-ends-with.md
|
|
6201
6165
|
*/
|
|
6202
6166
|
'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>
|
|
6203
6167
|
/**
|
|
6204
6168
|
* Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
|
|
6205
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6169
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-trim-start-end.md
|
|
6206
6170
|
*/
|
|
6207
6171
|
'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>
|
|
6208
6172
|
/**
|
|
6209
6173
|
* Prefer using `structuredClone` to create a deep clone.
|
|
6210
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6174
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-structured-clone.md
|
|
6211
6175
|
*/
|
|
6212
6176
|
'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>
|
|
6213
6177
|
/**
|
|
6214
6178
|
* Prefer `switch` over multiple `else-if`.
|
|
6215
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6179
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-switch.md
|
|
6216
6180
|
*/
|
|
6217
6181
|
'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>
|
|
6218
6182
|
/**
|
|
6219
6183
|
* Prefer ternary expressions over simple `if-else` statements.
|
|
6220
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6184
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-ternary.md
|
|
6221
6185
|
*/
|
|
6222
6186
|
'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>
|
|
6223
|
-
/**
|
|
6224
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-text-content
|
|
6225
|
-
* @deprecated
|
|
6226
|
-
*/
|
|
6227
|
-
'unicorn/prefer-text-content'?: Linter.RuleEntry<[]>
|
|
6228
6187
|
/**
|
|
6229
6188
|
* Prefer top-level await over top-level promises and async function calls.
|
|
6230
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6189
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-top-level-await.md
|
|
6231
6190
|
*/
|
|
6232
6191
|
'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>
|
|
6233
|
-
/**
|
|
6234
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-trim-start-end
|
|
6235
|
-
* @deprecated
|
|
6236
|
-
*/
|
|
6237
|
-
'unicorn/prefer-trim-start-end'?: Linter.RuleEntry<[]>
|
|
6238
6192
|
/**
|
|
6239
6193
|
* Enforce throwing `TypeError` in type checking conditions.
|
|
6240
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6194
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-type-error.md
|
|
6241
6195
|
*/
|
|
6242
6196
|
'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>
|
|
6243
6197
|
/**
|
|
6244
6198
|
* Prevent abbreviations.
|
|
6245
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6199
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prevent-abbreviations.md
|
|
6246
6200
|
*/
|
|
6247
6201
|
'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>
|
|
6248
|
-
/**
|
|
6249
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#regex-shorthand
|
|
6250
|
-
* @deprecated
|
|
6251
|
-
*/
|
|
6252
|
-
'unicorn/regex-shorthand'?: Linter.RuleEntry<[]>
|
|
6253
6202
|
/**
|
|
6254
6203
|
* Enforce consistent relative URL style.
|
|
6255
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6204
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/relative-url-style.md
|
|
6256
6205
|
*/
|
|
6257
6206
|
'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>
|
|
6258
6207
|
/**
|
|
6259
6208
|
* Enforce using the separator argument with `Array#join()`.
|
|
6260
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6209
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/require-array-join-separator.md
|
|
6261
6210
|
*/
|
|
6262
6211
|
'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>
|
|
6263
6212
|
/**
|
|
6264
6213
|
* Enforce using the digits argument with `Number#toFixed()`.
|
|
6265
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6214
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/require-number-to-fixed-digits-argument.md
|
|
6266
6215
|
*/
|
|
6267
6216
|
'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>
|
|
6268
6217
|
/**
|
|
6269
6218
|
* Enforce using the `targetOrigin` argument with `window.postMessage()`.
|
|
6270
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6219
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/require-post-message-target-origin.md
|
|
6271
6220
|
*/
|
|
6272
6221
|
'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>
|
|
6273
6222
|
/**
|
|
6274
6223
|
* Enforce better string content.
|
|
6275
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6224
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/string-content.md
|
|
6276
6225
|
*/
|
|
6277
6226
|
'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>
|
|
6278
6227
|
/**
|
|
6279
6228
|
* Enforce consistent brace style for `case` clauses.
|
|
6280
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6229
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/switch-case-braces.md
|
|
6281
6230
|
*/
|
|
6282
6231
|
'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>
|
|
6283
6232
|
/**
|
|
6284
6233
|
* Fix whitespace-insensitive template indentation.
|
|
6285
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6234
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/template-indent.md
|
|
6286
6235
|
*/
|
|
6287
6236
|
'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>
|
|
6288
6237
|
/**
|
|
6289
6238
|
* Enforce consistent case for text encoding identifiers.
|
|
6290
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6239
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/text-encoding-identifier-case.md
|
|
6291
6240
|
*/
|
|
6292
6241
|
'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<[]>
|
|
6293
6242
|
/**
|
|
6294
6243
|
* Require `new` when creating an error.
|
|
6295
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6244
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/throw-new-error.md
|
|
6296
6245
|
*/
|
|
6297
6246
|
'unicorn/throw-new-error'?: Linter.RuleEntry<[]>
|
|
6298
6247
|
/**
|
|
@@ -14085,6 +14034,13 @@ type PaddingLineBetweenStatements = {
|
|
|
14085
14034
|
type PerfectionistSortArrayIncludes = {
|
|
14086
14035
|
specialCharacters?: 'remove' | 'trim' | 'keep'
|
|
14087
14036
|
|
|
14037
|
+
fallbackSort?: {
|
|
14038
|
+
order?: 'asc' | 'desc'
|
|
14039
|
+
|
|
14040
|
+
type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
|
|
14041
|
+
[k: string]: unknown | undefined
|
|
14042
|
+
}
|
|
14043
|
+
|
|
14088
14044
|
ignoreCase?: boolean
|
|
14089
14045
|
|
|
14090
14046
|
alphabet?: string
|
|
@@ -14093,6 +14049,8 @@ type PerfectionistSortArrayIncludes = {
|
|
|
14093
14049
|
|
|
14094
14050
|
order?: 'asc' | 'desc'
|
|
14095
14051
|
|
|
14052
|
+
type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
|
|
14053
|
+
|
|
14096
14054
|
groupKind?: 'mixed' | 'literals-first' | 'spreads-first'
|
|
14097
14055
|
|
|
14098
14056
|
customGroups?: (
|
|
@@ -14107,7 +14065,21 @@ type PerfectionistSortArrayIncludes = {
|
|
|
14107
14065
|
anyOf?: {
|
|
14108
14066
|
selector?: 'literal' | 'spread'
|
|
14109
14067
|
|
|
14110
|
-
elementNamePattern?:
|
|
14068
|
+
elementNamePattern?:
|
|
14069
|
+
| (
|
|
14070
|
+
| {
|
|
14071
|
+
pattern?: string
|
|
14072
|
+
flags?: string
|
|
14073
|
+
}
|
|
14074
|
+
| string
|
|
14075
|
+
)[]
|
|
14076
|
+
| (
|
|
14077
|
+
| {
|
|
14078
|
+
pattern?: string
|
|
14079
|
+
flags?: string
|
|
14080
|
+
}
|
|
14081
|
+
| string
|
|
14082
|
+
)
|
|
14111
14083
|
}[]
|
|
14112
14084
|
}
|
|
14113
14085
|
| {
|
|
@@ -14121,23 +14093,96 @@ type PerfectionistSortArrayIncludes = {
|
|
|
14121
14093
|
|
|
14122
14094
|
selector?: 'literal' | 'spread'
|
|
14123
14095
|
|
|
14124
|
-
elementNamePattern?:
|
|
14096
|
+
elementNamePattern?:
|
|
14097
|
+
| (
|
|
14098
|
+
| {
|
|
14099
|
+
pattern?: string
|
|
14100
|
+
flags?: string
|
|
14101
|
+
}
|
|
14102
|
+
| string
|
|
14103
|
+
)[]
|
|
14104
|
+
| (
|
|
14105
|
+
| {
|
|
14106
|
+
pattern?: string
|
|
14107
|
+
flags?: string
|
|
14108
|
+
}
|
|
14109
|
+
| string
|
|
14110
|
+
)
|
|
14125
14111
|
}
|
|
14126
14112
|
)[]
|
|
14127
14113
|
useConfigurationIf?: {
|
|
14128
|
-
allNamesMatchPattern?:
|
|
14114
|
+
allNamesMatchPattern?:
|
|
14115
|
+
| (
|
|
14116
|
+
| {
|
|
14117
|
+
pattern?: string
|
|
14118
|
+
flags?: string
|
|
14119
|
+
}
|
|
14120
|
+
| string
|
|
14121
|
+
)[]
|
|
14122
|
+
| (
|
|
14123
|
+
| {
|
|
14124
|
+
pattern?: string
|
|
14125
|
+
flags?: string
|
|
14126
|
+
}
|
|
14127
|
+
| string
|
|
14128
|
+
)
|
|
14129
14129
|
}
|
|
14130
14130
|
|
|
14131
|
-
type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
|
|
14132
|
-
|
|
14133
14131
|
partitionByComment?:
|
|
14134
|
-
| string[]
|
|
14135
14132
|
| boolean
|
|
14136
|
-
|
|
|
14133
|
+
| (
|
|
14134
|
+
| (
|
|
14135
|
+
| {
|
|
14136
|
+
pattern?: string
|
|
14137
|
+
flags?: string
|
|
14138
|
+
}
|
|
14139
|
+
| string
|
|
14140
|
+
)[]
|
|
14141
|
+
| (
|
|
14142
|
+
| {
|
|
14143
|
+
pattern?: string
|
|
14144
|
+
flags?: string
|
|
14145
|
+
}
|
|
14146
|
+
| string
|
|
14147
|
+
)
|
|
14148
|
+
)
|
|
14137
14149
|
| {
|
|
14138
|
-
block?:
|
|
14139
|
-
|
|
14140
|
-
|
|
14150
|
+
block?:
|
|
14151
|
+
| boolean
|
|
14152
|
+
| (
|
|
14153
|
+
| (
|
|
14154
|
+
| {
|
|
14155
|
+
pattern?: string
|
|
14156
|
+
flags?: string
|
|
14157
|
+
}
|
|
14158
|
+
| string
|
|
14159
|
+
)[]
|
|
14160
|
+
| (
|
|
14161
|
+
| {
|
|
14162
|
+
pattern?: string
|
|
14163
|
+
flags?: string
|
|
14164
|
+
}
|
|
14165
|
+
| string
|
|
14166
|
+
)
|
|
14167
|
+
)
|
|
14168
|
+
line?:
|
|
14169
|
+
| boolean
|
|
14170
|
+
| (
|
|
14171
|
+
| (
|
|
14172
|
+
| {
|
|
14173
|
+
pattern?: string
|
|
14174
|
+
flags?: string
|
|
14175
|
+
}
|
|
14176
|
+
| string
|
|
14177
|
+
)[]
|
|
14178
|
+
| (
|
|
14179
|
+
| {
|
|
14180
|
+
pattern?: string
|
|
14181
|
+
flags?: string
|
|
14182
|
+
}
|
|
14183
|
+
| string
|
|
14184
|
+
)
|
|
14185
|
+
)
|
|
14141
14186
|
}
|
|
14142
14187
|
|
|
14143
14188
|
partitionByNewLine?: boolean
|
|
@@ -14149,7 +14194,6 @@ type PerfectionistSortArrayIncludes = {
|
|
|
14149
14194
|
| string[]
|
|
14150
14195
|
| {
|
|
14151
14196
|
newlinesBetween?: 'ignore' | 'always' | 'never'
|
|
14152
|
-
[k: string]: unknown | undefined
|
|
14153
14197
|
}
|
|
14154
14198
|
)[]
|
|
14155
14199
|
}[]
|
|
@@ -14160,6 +14204,13 @@ type PerfectionistSortClasses =
|
|
|
14160
14204
|
{
|
|
14161
14205
|
specialCharacters?: 'remove' | 'trim' | 'keep'
|
|
14162
14206
|
|
|
14207
|
+
fallbackSort?: {
|
|
14208
|
+
order?: 'asc' | 'desc'
|
|
14209
|
+
|
|
14210
|
+
type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
|
|
14211
|
+
[k: string]: unknown | undefined
|
|
14212
|
+
}
|
|
14213
|
+
|
|
14163
14214
|
ignoreCase?: boolean
|
|
14164
14215
|
|
|
14165
14216
|
alphabet?: string
|
|
@@ -14168,7 +14219,7 @@ type PerfectionistSortClasses =
|
|
|
14168
14219
|
|
|
14169
14220
|
order?: 'asc' | 'desc'
|
|
14170
14221
|
|
|
14171
|
-
|
|
14222
|
+
type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
|
|
14172
14223
|
|
|
14173
14224
|
customGroups?: (
|
|
14174
14225
|
| {
|
|
@@ -14180,8 +14231,6 @@ type PerfectionistSortClasses =
|
|
|
14180
14231
|
|
|
14181
14232
|
newlinesInside?: 'always' | 'never'
|
|
14182
14233
|
anyOf?: {
|
|
14183
|
-
decoratorNamePattern?: string
|
|
14184
|
-
|
|
14185
14234
|
modifiers?: (
|
|
14186
14235
|
| 'async'
|
|
14187
14236
|
| 'protected'
|
|
@@ -14207,9 +14256,53 @@ type PerfectionistSortClasses =
|
|
|
14207
14256
|
| 'property'
|
|
14208
14257
|
| 'method'
|
|
14209
14258
|
|
|
14210
|
-
|
|
14211
|
-
|
|
14212
|
-
|
|
14259
|
+
decoratorNamePattern?:
|
|
14260
|
+
| (
|
|
14261
|
+
| {
|
|
14262
|
+
pattern?: string
|
|
14263
|
+
flags?: string
|
|
14264
|
+
}
|
|
14265
|
+
| string
|
|
14266
|
+
)[]
|
|
14267
|
+
| (
|
|
14268
|
+
| {
|
|
14269
|
+
pattern?: string
|
|
14270
|
+
flags?: string
|
|
14271
|
+
}
|
|
14272
|
+
| string
|
|
14273
|
+
)
|
|
14274
|
+
|
|
14275
|
+
elementValuePattern?:
|
|
14276
|
+
| (
|
|
14277
|
+
| {
|
|
14278
|
+
pattern?: string
|
|
14279
|
+
flags?: string
|
|
14280
|
+
}
|
|
14281
|
+
| string
|
|
14282
|
+
)[]
|
|
14283
|
+
| (
|
|
14284
|
+
| {
|
|
14285
|
+
pattern?: string
|
|
14286
|
+
flags?: string
|
|
14287
|
+
}
|
|
14288
|
+
| string
|
|
14289
|
+
)
|
|
14290
|
+
|
|
14291
|
+
elementNamePattern?:
|
|
14292
|
+
| (
|
|
14293
|
+
| {
|
|
14294
|
+
pattern?: string
|
|
14295
|
+
flags?: string
|
|
14296
|
+
}
|
|
14297
|
+
| string
|
|
14298
|
+
)[]
|
|
14299
|
+
| (
|
|
14300
|
+
| {
|
|
14301
|
+
pattern?: string
|
|
14302
|
+
flags?: string
|
|
14303
|
+
}
|
|
14304
|
+
| string
|
|
14305
|
+
)
|
|
14213
14306
|
}[]
|
|
14214
14307
|
}
|
|
14215
14308
|
| {
|
|
@@ -14221,8 +14314,6 @@ type PerfectionistSortClasses =
|
|
|
14221
14314
|
|
|
14222
14315
|
newlinesInside?: 'always' | 'never'
|
|
14223
14316
|
|
|
14224
|
-
decoratorNamePattern?: string
|
|
14225
|
-
|
|
14226
14317
|
modifiers?: (
|
|
14227
14318
|
| 'async'
|
|
14228
14319
|
| 'protected'
|
|
@@ -14248,34 +14339,138 @@ type PerfectionistSortClasses =
|
|
|
14248
14339
|
| 'property'
|
|
14249
14340
|
| 'method'
|
|
14250
14341
|
|
|
14251
|
-
|
|
14252
|
-
|
|
14253
|
-
|
|
14342
|
+
decoratorNamePattern?:
|
|
14343
|
+
| (
|
|
14344
|
+
| {
|
|
14345
|
+
pattern?: string
|
|
14346
|
+
flags?: string
|
|
14347
|
+
}
|
|
14348
|
+
| string
|
|
14349
|
+
)[]
|
|
14350
|
+
| (
|
|
14351
|
+
| {
|
|
14352
|
+
pattern?: string
|
|
14353
|
+
flags?: string
|
|
14354
|
+
}
|
|
14355
|
+
| string
|
|
14356
|
+
)
|
|
14357
|
+
|
|
14358
|
+
elementValuePattern?:
|
|
14359
|
+
| (
|
|
14360
|
+
| {
|
|
14361
|
+
pattern?: string
|
|
14362
|
+
flags?: string
|
|
14363
|
+
}
|
|
14364
|
+
| string
|
|
14365
|
+
)[]
|
|
14366
|
+
| (
|
|
14367
|
+
| {
|
|
14368
|
+
pattern?: string
|
|
14369
|
+
flags?: string
|
|
14370
|
+
}
|
|
14371
|
+
| string
|
|
14372
|
+
)
|
|
14373
|
+
|
|
14374
|
+
elementNamePattern?:
|
|
14375
|
+
| (
|
|
14376
|
+
| {
|
|
14377
|
+
pattern?: string
|
|
14378
|
+
flags?: string
|
|
14379
|
+
}
|
|
14380
|
+
| string
|
|
14381
|
+
)[]
|
|
14382
|
+
| (
|
|
14383
|
+
| {
|
|
14384
|
+
pattern?: string
|
|
14385
|
+
flags?: string
|
|
14386
|
+
}
|
|
14387
|
+
| string
|
|
14388
|
+
)
|
|
14254
14389
|
}
|
|
14255
14390
|
)[]
|
|
14256
14391
|
|
|
14392
|
+
ignoreCallbackDependenciesPatterns?:
|
|
14393
|
+
| (
|
|
14394
|
+
| {
|
|
14395
|
+
pattern?: string
|
|
14396
|
+
flags?: string
|
|
14397
|
+
}
|
|
14398
|
+
| string
|
|
14399
|
+
)[]
|
|
14400
|
+
| (
|
|
14401
|
+
| {
|
|
14402
|
+
pattern?: string
|
|
14403
|
+
flags?: string
|
|
14404
|
+
}
|
|
14405
|
+
| string
|
|
14406
|
+
)
|
|
14407
|
+
|
|
14257
14408
|
partitionByComment?:
|
|
14258
|
-
| string[]
|
|
14259
14409
|
| boolean
|
|
14260
|
-
|
|
|
14410
|
+
| (
|
|
14411
|
+
| (
|
|
14412
|
+
| {
|
|
14413
|
+
pattern?: string
|
|
14414
|
+
flags?: string
|
|
14415
|
+
}
|
|
14416
|
+
| string
|
|
14417
|
+
)[]
|
|
14418
|
+
| (
|
|
14419
|
+
| {
|
|
14420
|
+
pattern?: string
|
|
14421
|
+
flags?: string
|
|
14422
|
+
}
|
|
14423
|
+
| string
|
|
14424
|
+
)
|
|
14425
|
+
)
|
|
14261
14426
|
| {
|
|
14262
|
-
block?:
|
|
14263
|
-
|
|
14264
|
-
|
|
14427
|
+
block?:
|
|
14428
|
+
| boolean
|
|
14429
|
+
| (
|
|
14430
|
+
| (
|
|
14431
|
+
| {
|
|
14432
|
+
pattern?: string
|
|
14433
|
+
flags?: string
|
|
14434
|
+
}
|
|
14435
|
+
| string
|
|
14436
|
+
)[]
|
|
14437
|
+
| (
|
|
14438
|
+
| {
|
|
14439
|
+
pattern?: string
|
|
14440
|
+
flags?: string
|
|
14441
|
+
}
|
|
14442
|
+
| string
|
|
14443
|
+
)
|
|
14444
|
+
)
|
|
14445
|
+
line?:
|
|
14446
|
+
| boolean
|
|
14447
|
+
| (
|
|
14448
|
+
| (
|
|
14449
|
+
| {
|
|
14450
|
+
pattern?: string
|
|
14451
|
+
flags?: string
|
|
14452
|
+
}
|
|
14453
|
+
| string
|
|
14454
|
+
)[]
|
|
14455
|
+
| (
|
|
14456
|
+
| {
|
|
14457
|
+
pattern?: string
|
|
14458
|
+
flags?: string
|
|
14459
|
+
}
|
|
14460
|
+
| string
|
|
14461
|
+
)
|
|
14462
|
+
)
|
|
14265
14463
|
}
|
|
14266
14464
|
|
|
14267
14465
|
partitionByNewLine?: boolean
|
|
14268
14466
|
|
|
14269
14467
|
newlinesBetween?: 'ignore' | 'always' | 'never'
|
|
14270
14468
|
|
|
14271
|
-
type?: 'alphabetical' | 'natural' | 'line-length' | 'custom'
|
|
14272
|
-
|
|
14273
14469
|
groups?: (
|
|
14274
14470
|
| string
|
|
14275
14471
|
| string[]
|
|
14276
14472
|
| {
|
|
14277
14473
|
newlinesBetween?: 'ignore' | 'always' | 'never'
|
|
14278
|
-
[k: string]: unknown | undefined
|
|
14279
14474
|
}
|
|
14280
14475
|
)[]
|
|
14281
14476
|
},
|
|
@@ -14287,6 +14482,13 @@ type PerfectionistSortDecorators =
|
|
|
14287
14482
|
{
|
|
14288
14483
|
specialCharacters?: 'remove' | 'trim' | 'keep'
|
|
14289
14484
|
|
|
14485
|
+
fallbackSort?: {
|
|
14486
|
+
order?: 'asc' | 'desc'
|
|
14487
|
+
|
|
14488
|
+
type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
|
|
14489
|
+
[k: string]: unknown | undefined
|
|
14490
|
+
}
|
|
14491
|
+
|
|
14290
14492
|
ignoreCase?: boolean
|
|
14291
14493
|
|
|
14292
14494
|
alphabet?: string
|
|
@@ -14295,6 +14497,8 @@ type PerfectionistSortDecorators =
|
|
|
14295
14497
|
|
|
14296
14498
|
order?: 'asc' | 'desc'
|
|
14297
14499
|
|
|
14500
|
+
type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
|
|
14501
|
+
|
|
14298
14502
|
sortOnParameters?: boolean
|
|
14299
14503
|
|
|
14300
14504
|
sortOnProperties?: boolean
|
|
@@ -14306,27 +14510,71 @@ type PerfectionistSortDecorators =
|
|
|
14306
14510
|
sortOnClasses?: boolean
|
|
14307
14511
|
|
|
14308
14512
|
partitionByComment?:
|
|
14309
|
-
| string[]
|
|
14310
14513
|
| boolean
|
|
14311
|
-
|
|
|
14514
|
+
| (
|
|
14515
|
+
| (
|
|
14516
|
+
| {
|
|
14517
|
+
pattern?: string
|
|
14518
|
+
flags?: string
|
|
14519
|
+
}
|
|
14520
|
+
| string
|
|
14521
|
+
)[]
|
|
14522
|
+
| (
|
|
14523
|
+
| {
|
|
14524
|
+
pattern?: string
|
|
14525
|
+
flags?: string
|
|
14526
|
+
}
|
|
14527
|
+
| string
|
|
14528
|
+
)
|
|
14529
|
+
)
|
|
14312
14530
|
| {
|
|
14313
|
-
block?:
|
|
14314
|
-
|
|
14315
|
-
|
|
14531
|
+
block?:
|
|
14532
|
+
| boolean
|
|
14533
|
+
| (
|
|
14534
|
+
| (
|
|
14535
|
+
| {
|
|
14536
|
+
pattern?: string
|
|
14537
|
+
flags?: string
|
|
14538
|
+
}
|
|
14539
|
+
| string
|
|
14540
|
+
)[]
|
|
14541
|
+
| (
|
|
14542
|
+
| {
|
|
14543
|
+
pattern?: string
|
|
14544
|
+
flags?: string
|
|
14545
|
+
}
|
|
14546
|
+
| string
|
|
14547
|
+
)
|
|
14548
|
+
)
|
|
14549
|
+
line?:
|
|
14550
|
+
| boolean
|
|
14551
|
+
| (
|
|
14552
|
+
| (
|
|
14553
|
+
| {
|
|
14554
|
+
pattern?: string
|
|
14555
|
+
flags?: string
|
|
14556
|
+
}
|
|
14557
|
+
| string
|
|
14558
|
+
)[]
|
|
14559
|
+
| (
|
|
14560
|
+
| {
|
|
14561
|
+
pattern?: string
|
|
14562
|
+
flags?: string
|
|
14563
|
+
}
|
|
14564
|
+
| string
|
|
14565
|
+
)
|
|
14566
|
+
)
|
|
14316
14567
|
}
|
|
14317
14568
|
|
|
14318
14569
|
customGroups?: {
|
|
14319
14570
|
[k: string]: (string | string[]) | undefined
|
|
14320
14571
|
}
|
|
14321
14572
|
|
|
14322
|
-
type?: 'alphabetical' | 'natural' | 'line-length' | 'custom'
|
|
14323
|
-
|
|
14324
14573
|
groups?: (
|
|
14325
14574
|
| string
|
|
14326
14575
|
| string[]
|
|
14327
14576
|
| {
|
|
14328
14577
|
newlinesBetween?: 'ignore' | 'always' | 'never'
|
|
14329
|
-
[k: string]: unknown | undefined
|
|
14330
14578
|
}
|
|
14331
14579
|
)[]
|
|
14332
14580
|
},
|
|
@@ -14338,6 +14586,13 @@ type PerfectionistSortEnums =
|
|
|
14338
14586
|
{
|
|
14339
14587
|
specialCharacters?: 'remove' | 'trim' | 'keep'
|
|
14340
14588
|
|
|
14589
|
+
fallbackSort?: {
|
|
14590
|
+
order?: 'asc' | 'desc'
|
|
14591
|
+
|
|
14592
|
+
type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
|
|
14593
|
+
[k: string]: unknown | undefined
|
|
14594
|
+
}
|
|
14595
|
+
|
|
14341
14596
|
ignoreCase?: boolean
|
|
14342
14597
|
|
|
14343
14598
|
alphabet?: string
|
|
@@ -14346,6 +14601,8 @@ type PerfectionistSortEnums =
|
|
|
14346
14601
|
|
|
14347
14602
|
order?: 'asc' | 'desc'
|
|
14348
14603
|
|
|
14604
|
+
type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
|
|
14605
|
+
|
|
14349
14606
|
forceNumericSort?: boolean
|
|
14350
14607
|
customGroups?:
|
|
14351
14608
|
| {
|
|
@@ -14361,9 +14618,37 @@ type PerfectionistSortEnums =
|
|
|
14361
14618
|
|
|
14362
14619
|
newlinesInside?: 'always' | 'never'
|
|
14363
14620
|
anyOf?: {
|
|
14364
|
-
elementValuePattern?:
|
|
14365
|
-
|
|
14366
|
-
|
|
14621
|
+
elementValuePattern?:
|
|
14622
|
+
| (
|
|
14623
|
+
| {
|
|
14624
|
+
pattern?: string
|
|
14625
|
+
flags?: string
|
|
14626
|
+
}
|
|
14627
|
+
| string
|
|
14628
|
+
)[]
|
|
14629
|
+
| (
|
|
14630
|
+
| {
|
|
14631
|
+
pattern?: string
|
|
14632
|
+
flags?: string
|
|
14633
|
+
}
|
|
14634
|
+
| string
|
|
14635
|
+
)
|
|
14636
|
+
|
|
14637
|
+
elementNamePattern?:
|
|
14638
|
+
| (
|
|
14639
|
+
| {
|
|
14640
|
+
pattern?: string
|
|
14641
|
+
flags?: string
|
|
14642
|
+
}
|
|
14643
|
+
| string
|
|
14644
|
+
)[]
|
|
14645
|
+
| (
|
|
14646
|
+
| {
|
|
14647
|
+
pattern?: string
|
|
14648
|
+
flags?: string
|
|
14649
|
+
}
|
|
14650
|
+
| string
|
|
14651
|
+
)
|
|
14367
14652
|
}[]
|
|
14368
14653
|
}
|
|
14369
14654
|
| {
|
|
@@ -14375,36 +14660,108 @@ type PerfectionistSortEnums =
|
|
|
14375
14660
|
|
|
14376
14661
|
newlinesInside?: 'always' | 'never'
|
|
14377
14662
|
|
|
14378
|
-
elementValuePattern?:
|
|
14663
|
+
elementValuePattern?:
|
|
14664
|
+
| (
|
|
14665
|
+
| {
|
|
14666
|
+
pattern?: string
|
|
14667
|
+
flags?: string
|
|
14668
|
+
}
|
|
14669
|
+
| string
|
|
14670
|
+
)[]
|
|
14671
|
+
| (
|
|
14672
|
+
| {
|
|
14673
|
+
pattern?: string
|
|
14674
|
+
flags?: string
|
|
14675
|
+
}
|
|
14676
|
+
| string
|
|
14677
|
+
)
|
|
14379
14678
|
|
|
14380
|
-
elementNamePattern?:
|
|
14679
|
+
elementNamePattern?:
|
|
14680
|
+
| (
|
|
14681
|
+
| {
|
|
14682
|
+
pattern?: string
|
|
14683
|
+
flags?: string
|
|
14684
|
+
}
|
|
14685
|
+
| string
|
|
14686
|
+
)[]
|
|
14687
|
+
| (
|
|
14688
|
+
| {
|
|
14689
|
+
pattern?: string
|
|
14690
|
+
flags?: string
|
|
14691
|
+
}
|
|
14692
|
+
| string
|
|
14693
|
+
)
|
|
14381
14694
|
}
|
|
14382
14695
|
)[]
|
|
14383
14696
|
|
|
14384
14697
|
sortByValue?: boolean
|
|
14385
14698
|
|
|
14386
14699
|
partitionByComment?:
|
|
14387
|
-
| string[]
|
|
14388
14700
|
| boolean
|
|
14389
|
-
|
|
|
14701
|
+
| (
|
|
14702
|
+
| (
|
|
14703
|
+
| {
|
|
14704
|
+
pattern?: string
|
|
14705
|
+
flags?: string
|
|
14706
|
+
}
|
|
14707
|
+
| string
|
|
14708
|
+
)[]
|
|
14709
|
+
| (
|
|
14710
|
+
| {
|
|
14711
|
+
pattern?: string
|
|
14712
|
+
flags?: string
|
|
14713
|
+
}
|
|
14714
|
+
| string
|
|
14715
|
+
)
|
|
14716
|
+
)
|
|
14390
14717
|
| {
|
|
14391
|
-
block?:
|
|
14392
|
-
|
|
14393
|
-
|
|
14718
|
+
block?:
|
|
14719
|
+
| boolean
|
|
14720
|
+
| (
|
|
14721
|
+
| (
|
|
14722
|
+
| {
|
|
14723
|
+
pattern?: string
|
|
14724
|
+
flags?: string
|
|
14725
|
+
}
|
|
14726
|
+
| string
|
|
14727
|
+
)[]
|
|
14728
|
+
| (
|
|
14729
|
+
| {
|
|
14730
|
+
pattern?: string
|
|
14731
|
+
flags?: string
|
|
14732
|
+
}
|
|
14733
|
+
| string
|
|
14734
|
+
)
|
|
14735
|
+
)
|
|
14736
|
+
line?:
|
|
14737
|
+
| boolean
|
|
14738
|
+
| (
|
|
14739
|
+
| (
|
|
14740
|
+
| {
|
|
14741
|
+
pattern?: string
|
|
14742
|
+
flags?: string
|
|
14743
|
+
}
|
|
14744
|
+
| string
|
|
14745
|
+
)[]
|
|
14746
|
+
| (
|
|
14747
|
+
| {
|
|
14748
|
+
pattern?: string
|
|
14749
|
+
flags?: string
|
|
14750
|
+
}
|
|
14751
|
+
| string
|
|
14752
|
+
)
|
|
14753
|
+
)
|
|
14394
14754
|
}
|
|
14395
14755
|
|
|
14396
14756
|
partitionByNewLine?: boolean
|
|
14397
14757
|
|
|
14398
14758
|
newlinesBetween?: 'ignore' | 'always' | 'never'
|
|
14399
14759
|
|
|
14400
|
-
type?: 'alphabetical' | 'natural' | 'line-length' | 'custom'
|
|
14401
|
-
|
|
14402
14760
|
groups?: (
|
|
14403
14761
|
| string
|
|
14404
14762
|
| string[]
|
|
14405
14763
|
| {
|
|
14406
14764
|
newlinesBetween?: 'ignore' | 'always' | 'never'
|
|
14407
|
-
[k: string]: unknown | undefined
|
|
14408
14765
|
}
|
|
14409
14766
|
)[]
|
|
14410
14767
|
},
|
|
@@ -14416,6 +14773,13 @@ type PerfectionistSortExports =
|
|
|
14416
14773
|
{
|
|
14417
14774
|
specialCharacters?: 'remove' | 'trim' | 'keep'
|
|
14418
14775
|
|
|
14776
|
+
fallbackSort?: {
|
|
14777
|
+
order?: 'asc' | 'desc'
|
|
14778
|
+
|
|
14779
|
+
type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
|
|
14780
|
+
[k: string]: unknown | undefined
|
|
14781
|
+
}
|
|
14782
|
+
|
|
14419
14783
|
ignoreCase?: boolean
|
|
14420
14784
|
|
|
14421
14785
|
alphabet?: string
|
|
@@ -14424,21 +14788,68 @@ type PerfectionistSortExports =
|
|
|
14424
14788
|
|
|
14425
14789
|
order?: 'asc' | 'desc'
|
|
14426
14790
|
|
|
14791
|
+
type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
|
|
14792
|
+
|
|
14427
14793
|
groupKind?: 'mixed' | 'values-first' | 'types-first'
|
|
14428
14794
|
|
|
14429
14795
|
partitionByComment?:
|
|
14430
|
-
| string[]
|
|
14431
14796
|
| boolean
|
|
14432
|
-
|
|
|
14797
|
+
| (
|
|
14798
|
+
| (
|
|
14799
|
+
| {
|
|
14800
|
+
pattern?: string
|
|
14801
|
+
flags?: string
|
|
14802
|
+
}
|
|
14803
|
+
| string
|
|
14804
|
+
)[]
|
|
14805
|
+
| (
|
|
14806
|
+
| {
|
|
14807
|
+
pattern?: string
|
|
14808
|
+
flags?: string
|
|
14809
|
+
}
|
|
14810
|
+
| string
|
|
14811
|
+
)
|
|
14812
|
+
)
|
|
14433
14813
|
| {
|
|
14434
|
-
block?:
|
|
14435
|
-
|
|
14436
|
-
|
|
14814
|
+
block?:
|
|
14815
|
+
| boolean
|
|
14816
|
+
| (
|
|
14817
|
+
| (
|
|
14818
|
+
| {
|
|
14819
|
+
pattern?: string
|
|
14820
|
+
flags?: string
|
|
14821
|
+
}
|
|
14822
|
+
| string
|
|
14823
|
+
)[]
|
|
14824
|
+
| (
|
|
14825
|
+
| {
|
|
14826
|
+
pattern?: string
|
|
14827
|
+
flags?: string
|
|
14828
|
+
}
|
|
14829
|
+
| string
|
|
14830
|
+
)
|
|
14831
|
+
)
|
|
14832
|
+
line?:
|
|
14833
|
+
| boolean
|
|
14834
|
+
| (
|
|
14835
|
+
| (
|
|
14836
|
+
| {
|
|
14837
|
+
pattern?: string
|
|
14838
|
+
flags?: string
|
|
14839
|
+
}
|
|
14840
|
+
| string
|
|
14841
|
+
)[]
|
|
14842
|
+
| (
|
|
14843
|
+
| {
|
|
14844
|
+
pattern?: string
|
|
14845
|
+
flags?: string
|
|
14846
|
+
}
|
|
14847
|
+
| string
|
|
14848
|
+
)
|
|
14849
|
+
)
|
|
14437
14850
|
}
|
|
14438
14851
|
|
|
14439
14852
|
partitionByNewLine?: boolean
|
|
14440
|
-
|
|
14441
|
-
type?: 'alphabetical' | 'natural' | 'line-length' | 'custom'
|
|
14442
14853
|
},
|
|
14443
14854
|
]
|
|
14444
14855
|
// ----- perfectionist/sort-heritage-clauses -----
|
|
@@ -14448,6 +14859,13 @@ type PerfectionistSortHeritageClauses =
|
|
|
14448
14859
|
{
|
|
14449
14860
|
specialCharacters?: 'remove' | 'trim' | 'keep'
|
|
14450
14861
|
|
|
14862
|
+
fallbackSort?: {
|
|
14863
|
+
order?: 'asc' | 'desc'
|
|
14864
|
+
|
|
14865
|
+
type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
|
|
14866
|
+
[k: string]: unknown | undefined
|
|
14867
|
+
}
|
|
14868
|
+
|
|
14451
14869
|
ignoreCase?: boolean
|
|
14452
14870
|
|
|
14453
14871
|
alphabet?: string
|
|
@@ -14456,18 +14874,17 @@ type PerfectionistSortHeritageClauses =
|
|
|
14456
14874
|
|
|
14457
14875
|
order?: 'asc' | 'desc'
|
|
14458
14876
|
|
|
14877
|
+
type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
|
|
14878
|
+
|
|
14459
14879
|
customGroups?: {
|
|
14460
14880
|
[k: string]: (string | string[]) | undefined
|
|
14461
14881
|
}
|
|
14462
14882
|
|
|
14463
|
-
type?: 'alphabetical' | 'natural' | 'line-length' | 'custom'
|
|
14464
|
-
|
|
14465
14883
|
groups?: (
|
|
14466
14884
|
| string
|
|
14467
14885
|
| string[]
|
|
14468
14886
|
| {
|
|
14469
14887
|
newlinesBetween?: 'ignore' | 'always' | 'never'
|
|
14470
|
-
[k: string]: unknown | undefined
|
|
14471
14888
|
}
|
|
14472
14889
|
)[]
|
|
14473
14890
|
},
|
|
@@ -14478,6 +14895,13 @@ type _PerfectionistSortImportsSortImports =
|
|
|
14478
14895
|
_PerfectionistSortImportsMaxLineLengthRequiresLineLengthType & {
|
|
14479
14896
|
specialCharacters?: 'remove' | 'trim' | 'keep'
|
|
14480
14897
|
|
|
14898
|
+
fallbackSort?: {
|
|
14899
|
+
order?: 'asc' | 'desc'
|
|
14900
|
+
|
|
14901
|
+
type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
|
|
14902
|
+
[k: string]: unknown | undefined
|
|
14903
|
+
}
|
|
14904
|
+
|
|
14481
14905
|
ignoreCase?: boolean
|
|
14482
14906
|
|
|
14483
14907
|
alphabet?: string
|
|
@@ -14486,6 +14910,8 @@ type _PerfectionistSortImportsSortImports =
|
|
|
14486
14910
|
|
|
14487
14911
|
order?: 'asc' | 'desc'
|
|
14488
14912
|
|
|
14913
|
+
type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
|
|
14914
|
+
|
|
14489
14915
|
customGroups?: {
|
|
14490
14916
|
value?: {
|
|
14491
14917
|
[k: string]: unknown | undefined
|
|
@@ -14496,8 +14922,6 @@ type _PerfectionistSortImportsSortImports =
|
|
|
14496
14922
|
}
|
|
14497
14923
|
}
|
|
14498
14924
|
|
|
14499
|
-
internalPattern?: string[]
|
|
14500
|
-
|
|
14501
14925
|
maxLineLength?: number
|
|
14502
14926
|
|
|
14503
14927
|
sortSideEffects?: boolean
|
|
@@ -14507,27 +14931,87 @@ type _PerfectionistSortImportsSortImports =
|
|
|
14507
14931
|
tsconfigRootDir?: string
|
|
14508
14932
|
|
|
14509
14933
|
partitionByComment?:
|
|
14510
|
-
| string[]
|
|
14511
14934
|
| boolean
|
|
14512
|
-
|
|
|
14935
|
+
| (
|
|
14936
|
+
| (
|
|
14937
|
+
| {
|
|
14938
|
+
pattern?: string
|
|
14939
|
+
flags?: string
|
|
14940
|
+
}
|
|
14941
|
+
| string
|
|
14942
|
+
)[]
|
|
14943
|
+
| (
|
|
14944
|
+
| {
|
|
14945
|
+
pattern?: string
|
|
14946
|
+
flags?: string
|
|
14947
|
+
}
|
|
14948
|
+
| string
|
|
14949
|
+
)
|
|
14950
|
+
)
|
|
14513
14951
|
| {
|
|
14514
|
-
block?:
|
|
14515
|
-
|
|
14516
|
-
|
|
14952
|
+
block?:
|
|
14953
|
+
| boolean
|
|
14954
|
+
| (
|
|
14955
|
+
| (
|
|
14956
|
+
| {
|
|
14957
|
+
pattern?: string
|
|
14958
|
+
flags?: string
|
|
14959
|
+
}
|
|
14960
|
+
| string
|
|
14961
|
+
)[]
|
|
14962
|
+
| (
|
|
14963
|
+
| {
|
|
14964
|
+
pattern?: string
|
|
14965
|
+
flags?: string
|
|
14966
|
+
}
|
|
14967
|
+
| string
|
|
14968
|
+
)
|
|
14969
|
+
)
|
|
14970
|
+
line?:
|
|
14971
|
+
| boolean
|
|
14972
|
+
| (
|
|
14973
|
+
| (
|
|
14974
|
+
| {
|
|
14975
|
+
pattern?: string
|
|
14976
|
+
flags?: string
|
|
14977
|
+
}
|
|
14978
|
+
| string
|
|
14979
|
+
)[]
|
|
14980
|
+
| (
|
|
14981
|
+
| {
|
|
14982
|
+
pattern?: string
|
|
14983
|
+
flags?: string
|
|
14984
|
+
}
|
|
14985
|
+
| string
|
|
14986
|
+
)
|
|
14987
|
+
)
|
|
14517
14988
|
}
|
|
14518
14989
|
|
|
14519
14990
|
partitionByNewLine?: boolean
|
|
14520
14991
|
|
|
14521
14992
|
newlinesBetween?: 'ignore' | 'always' | 'never'
|
|
14522
14993
|
|
|
14523
|
-
|
|
14994
|
+
internalPattern?:
|
|
14995
|
+
| (
|
|
14996
|
+
| {
|
|
14997
|
+
pattern?: string
|
|
14998
|
+
flags?: string
|
|
14999
|
+
}
|
|
15000
|
+
| string
|
|
15001
|
+
)[]
|
|
15002
|
+
| (
|
|
15003
|
+
| {
|
|
15004
|
+
pattern?: string
|
|
15005
|
+
flags?: string
|
|
15006
|
+
}
|
|
15007
|
+
| string
|
|
15008
|
+
)
|
|
14524
15009
|
|
|
14525
15010
|
groups?: (
|
|
14526
15011
|
| string
|
|
14527
15012
|
| string[]
|
|
14528
15013
|
| {
|
|
14529
15014
|
newlinesBetween?: 'ignore' | 'always' | 'never'
|
|
14530
|
-
[k: string]: unknown | undefined
|
|
14531
15015
|
}
|
|
14532
15016
|
)[]
|
|
14533
15017
|
}
|
|
@@ -14544,6 +15028,13 @@ interface _PerfectionistSortImports_IsLineLength {
|
|
|
14544
15028
|
type PerfectionistSortInterfaces = {
|
|
14545
15029
|
specialCharacters?: 'remove' | 'trim' | 'keep'
|
|
14546
15030
|
|
|
15031
|
+
fallbackSort?: {
|
|
15032
|
+
order?: 'asc' | 'desc'
|
|
15033
|
+
|
|
15034
|
+
type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
|
|
15035
|
+
[k: string]: unknown | undefined
|
|
15036
|
+
}
|
|
15037
|
+
|
|
14547
15038
|
ignoreCase?: boolean
|
|
14548
15039
|
|
|
14549
15040
|
alphabet?: string
|
|
@@ -14552,11 +15043,7 @@ type PerfectionistSortInterfaces = {
|
|
|
14552
15043
|
|
|
14553
15044
|
order?: 'asc' | 'desc'
|
|
14554
15045
|
|
|
14555
|
-
|
|
14556
|
-
useConfigurationIf?: {
|
|
14557
|
-
allNamesMatchPattern?: string
|
|
14558
|
-
declarationMatchesPattern?: string
|
|
14559
|
-
}
|
|
15046
|
+
type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
|
|
14560
15047
|
customGroups?:
|
|
14561
15048
|
| {
|
|
14562
15049
|
[k: string]: (string | string[]) | undefined
|
|
@@ -14575,7 +15062,21 @@ type PerfectionistSortInterfaces = {
|
|
|
14575
15062
|
|
|
14576
15063
|
selector?: 'index-signature' | 'member' | 'method' | 'multiline' | 'property'
|
|
14577
15064
|
|
|
14578
|
-
elementNamePattern?:
|
|
15065
|
+
elementNamePattern?:
|
|
15066
|
+
| (
|
|
15067
|
+
| {
|
|
15068
|
+
pattern?: string
|
|
15069
|
+
flags?: string
|
|
15070
|
+
}
|
|
15071
|
+
| string
|
|
15072
|
+
)[]
|
|
15073
|
+
| (
|
|
15074
|
+
| {
|
|
15075
|
+
pattern?: string
|
|
15076
|
+
flags?: string
|
|
15077
|
+
}
|
|
15078
|
+
| string
|
|
15079
|
+
)
|
|
14579
15080
|
}[]
|
|
14580
15081
|
}
|
|
14581
15082
|
| {
|
|
@@ -14591,34 +15092,141 @@ type PerfectionistSortInterfaces = {
|
|
|
14591
15092
|
|
|
14592
15093
|
selector?: 'index-signature' | 'member' | 'method' | 'multiline' | 'property'
|
|
14593
15094
|
|
|
14594
|
-
elementNamePattern?:
|
|
15095
|
+
elementNamePattern?:
|
|
15096
|
+
| (
|
|
15097
|
+
| {
|
|
15098
|
+
pattern?: string
|
|
15099
|
+
flags?: string
|
|
15100
|
+
}
|
|
15101
|
+
| string
|
|
15102
|
+
)[]
|
|
15103
|
+
| (
|
|
15104
|
+
| {
|
|
15105
|
+
pattern?: string
|
|
15106
|
+
flags?: string
|
|
15107
|
+
}
|
|
15108
|
+
| string
|
|
15109
|
+
)
|
|
14595
15110
|
}
|
|
14596
15111
|
)[]
|
|
15112
|
+
useConfigurationIf?: {
|
|
15113
|
+
allNamesMatchPattern?:
|
|
15114
|
+
| (
|
|
15115
|
+
| {
|
|
15116
|
+
pattern?: string
|
|
15117
|
+
flags?: string
|
|
15118
|
+
}
|
|
15119
|
+
| string
|
|
15120
|
+
)[]
|
|
15121
|
+
| (
|
|
15122
|
+
| {
|
|
15123
|
+
pattern?: string
|
|
15124
|
+
flags?: string
|
|
15125
|
+
}
|
|
15126
|
+
| string
|
|
15127
|
+
)
|
|
14597
15128
|
|
|
14598
|
-
|
|
15129
|
+
declarationMatchesPattern?:
|
|
15130
|
+
| (
|
|
15131
|
+
| {
|
|
15132
|
+
pattern?: string
|
|
15133
|
+
flags?: string
|
|
15134
|
+
}
|
|
15135
|
+
| string
|
|
15136
|
+
)[]
|
|
15137
|
+
| (
|
|
15138
|
+
| {
|
|
15139
|
+
pattern?: string
|
|
15140
|
+
flags?: string
|
|
15141
|
+
}
|
|
15142
|
+
| string
|
|
15143
|
+
)
|
|
15144
|
+
}
|
|
14599
15145
|
|
|
14600
|
-
|
|
15146
|
+
groupKind?: 'mixed' | 'required-first' | 'optional-first'
|
|
14601
15147
|
|
|
14602
15148
|
partitionByComment?:
|
|
14603
|
-
| string[]
|
|
14604
15149
|
| boolean
|
|
14605
|
-
|
|
|
15150
|
+
| (
|
|
15151
|
+
| (
|
|
15152
|
+
| {
|
|
15153
|
+
pattern?: string
|
|
15154
|
+
flags?: string
|
|
15155
|
+
}
|
|
15156
|
+
| string
|
|
15157
|
+
)[]
|
|
15158
|
+
| (
|
|
15159
|
+
| {
|
|
15160
|
+
pattern?: string
|
|
15161
|
+
flags?: string
|
|
15162
|
+
}
|
|
15163
|
+
| string
|
|
15164
|
+
)
|
|
15165
|
+
)
|
|
14606
15166
|
| {
|
|
14607
|
-
block?:
|
|
14608
|
-
|
|
14609
|
-
|
|
15167
|
+
block?:
|
|
15168
|
+
| boolean
|
|
15169
|
+
| (
|
|
15170
|
+
| (
|
|
15171
|
+
| {
|
|
15172
|
+
pattern?: string
|
|
15173
|
+
flags?: string
|
|
15174
|
+
}
|
|
15175
|
+
| string
|
|
15176
|
+
)[]
|
|
15177
|
+
| (
|
|
15178
|
+
| {
|
|
15179
|
+
pattern?: string
|
|
15180
|
+
flags?: string
|
|
15181
|
+
}
|
|
15182
|
+
| string
|
|
15183
|
+
)
|
|
15184
|
+
)
|
|
15185
|
+
line?:
|
|
15186
|
+
| boolean
|
|
15187
|
+
| (
|
|
15188
|
+
| (
|
|
15189
|
+
| {
|
|
15190
|
+
pattern?: string
|
|
15191
|
+
flags?: string
|
|
15192
|
+
}
|
|
15193
|
+
| string
|
|
15194
|
+
)[]
|
|
15195
|
+
| (
|
|
15196
|
+
| {
|
|
15197
|
+
pattern?: string
|
|
15198
|
+
flags?: string
|
|
15199
|
+
}
|
|
15200
|
+
| string
|
|
15201
|
+
)
|
|
15202
|
+
)
|
|
14610
15203
|
}
|
|
14611
15204
|
|
|
14612
15205
|
partitionByNewLine?: boolean
|
|
14613
15206
|
|
|
14614
15207
|
newlinesBetween?: 'ignore' | 'always' | 'never'
|
|
14615
15208
|
|
|
15209
|
+
ignorePattern?:
|
|
15210
|
+
| (
|
|
15211
|
+
| {
|
|
15212
|
+
pattern?: string
|
|
15213
|
+
flags?: string
|
|
15214
|
+
}
|
|
15215
|
+
| string
|
|
15216
|
+
)[]
|
|
15217
|
+
| (
|
|
15218
|
+
| {
|
|
15219
|
+
pattern?: string
|
|
15220
|
+
flags?: string
|
|
15221
|
+
}
|
|
15222
|
+
| string
|
|
15223
|
+
)
|
|
15224
|
+
|
|
14616
15225
|
groups?: (
|
|
14617
15226
|
| string
|
|
14618
15227
|
| string[]
|
|
14619
15228
|
| {
|
|
14620
15229
|
newlinesBetween?: 'ignore' | 'always' | 'never'
|
|
14621
|
-
[k: string]: unknown | undefined
|
|
14622
15230
|
}
|
|
14623
15231
|
)[]
|
|
14624
15232
|
}[]
|
|
@@ -14629,6 +15237,13 @@ type PerfectionistSortIntersectionTypes =
|
|
|
14629
15237
|
{
|
|
14630
15238
|
specialCharacters?: 'remove' | 'trim' | 'keep'
|
|
14631
15239
|
|
|
15240
|
+
fallbackSort?: {
|
|
15241
|
+
order?: 'asc' | 'desc'
|
|
15242
|
+
|
|
15243
|
+
type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
|
|
15244
|
+
[k: string]: unknown | undefined
|
|
15245
|
+
}
|
|
15246
|
+
|
|
14632
15247
|
ignoreCase?: boolean
|
|
14633
15248
|
|
|
14634
15249
|
alphabet?: string
|
|
@@ -14637,73 +15252,175 @@ type PerfectionistSortIntersectionTypes =
|
|
|
14637
15252
|
|
|
14638
15253
|
order?: 'asc' | 'desc'
|
|
14639
15254
|
|
|
15255
|
+
type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
|
|
15256
|
+
|
|
14640
15257
|
partitionByComment?:
|
|
14641
|
-
| string[]
|
|
14642
15258
|
| boolean
|
|
14643
|
-
|
|
|
15259
|
+
| (
|
|
15260
|
+
| (
|
|
15261
|
+
| {
|
|
15262
|
+
pattern?: string
|
|
15263
|
+
flags?: string
|
|
15264
|
+
}
|
|
15265
|
+
| string
|
|
15266
|
+
)[]
|
|
15267
|
+
| (
|
|
15268
|
+
| {
|
|
15269
|
+
pattern?: string
|
|
15270
|
+
flags?: string
|
|
15271
|
+
}
|
|
15272
|
+
| string
|
|
15273
|
+
)
|
|
15274
|
+
)
|
|
14644
15275
|
| {
|
|
14645
|
-
block?:
|
|
14646
|
-
|
|
14647
|
-
|
|
15276
|
+
block?:
|
|
15277
|
+
| boolean
|
|
15278
|
+
| (
|
|
15279
|
+
| (
|
|
15280
|
+
| {
|
|
15281
|
+
pattern?: string
|
|
15282
|
+
flags?: string
|
|
15283
|
+
}
|
|
15284
|
+
| string
|
|
15285
|
+
)[]
|
|
15286
|
+
| (
|
|
15287
|
+
| {
|
|
15288
|
+
pattern?: string
|
|
15289
|
+
flags?: string
|
|
15290
|
+
}
|
|
15291
|
+
| string
|
|
15292
|
+
)
|
|
15293
|
+
)
|
|
15294
|
+
line?:
|
|
15295
|
+
| boolean
|
|
15296
|
+
| (
|
|
15297
|
+
| (
|
|
15298
|
+
| {
|
|
15299
|
+
pattern?: string
|
|
15300
|
+
flags?: string
|
|
15301
|
+
}
|
|
15302
|
+
| string
|
|
15303
|
+
)[]
|
|
15304
|
+
| (
|
|
15305
|
+
| {
|
|
15306
|
+
pattern?: string
|
|
15307
|
+
flags?: string
|
|
15308
|
+
}
|
|
15309
|
+
| string
|
|
15310
|
+
)
|
|
15311
|
+
)
|
|
14648
15312
|
}
|
|
14649
15313
|
|
|
14650
15314
|
partitionByNewLine?: boolean
|
|
14651
15315
|
|
|
14652
15316
|
newlinesBetween?: 'ignore' | 'always' | 'never'
|
|
14653
15317
|
|
|
14654
|
-
type?: 'alphabetical' | 'natural' | 'line-length' | 'custom'
|
|
14655
|
-
|
|
14656
15318
|
groups?: (
|
|
14657
15319
|
| string
|
|
14658
15320
|
| string[]
|
|
14659
15321
|
| {
|
|
14660
15322
|
newlinesBetween?: 'ignore' | 'always' | 'never'
|
|
14661
|
-
[k: string]: unknown | undefined
|
|
14662
15323
|
}
|
|
14663
15324
|
)[]
|
|
14664
15325
|
},
|
|
14665
15326
|
]
|
|
14666
15327
|
// ----- perfectionist/sort-jsx-props -----
|
|
14667
|
-
type PerfectionistSortJsxProps =
|
|
14668
|
-
|
|
|
14669
|
-
| [
|
|
14670
|
-
{
|
|
14671
|
-
specialCharacters?: 'remove' | 'trim' | 'keep'
|
|
14672
|
-
|
|
14673
|
-
ignoreCase?: boolean
|
|
14674
|
-
|
|
14675
|
-
alphabet?: string
|
|
15328
|
+
type PerfectionistSortJsxProps = {
|
|
15329
|
+
specialCharacters?: 'remove' | 'trim' | 'keep'
|
|
14676
15330
|
|
|
14677
|
-
|
|
15331
|
+
fallbackSort?: {
|
|
15332
|
+
order?: 'asc' | 'desc'
|
|
14678
15333
|
|
|
14679
|
-
|
|
15334
|
+
type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
|
|
15335
|
+
[k: string]: unknown | undefined
|
|
15336
|
+
}
|
|
14680
15337
|
|
|
14681
|
-
|
|
15338
|
+
ignoreCase?: boolean
|
|
14682
15339
|
|
|
14683
|
-
|
|
15340
|
+
alphabet?: string
|
|
14684
15341
|
|
|
14685
|
-
|
|
15342
|
+
locales?: string | string[]
|
|
14686
15343
|
|
|
14687
|
-
|
|
14688
|
-
[k: string]: (string | string[]) | undefined
|
|
14689
|
-
}
|
|
15344
|
+
order?: 'asc' | 'desc'
|
|
14690
15345
|
|
|
14691
|
-
|
|
15346
|
+
type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
|
|
15347
|
+
useConfigurationIf?: {
|
|
15348
|
+
allNamesMatchPattern?:
|
|
15349
|
+
| (
|
|
15350
|
+
| {
|
|
15351
|
+
pattern?: string
|
|
15352
|
+
flags?: string
|
|
15353
|
+
}
|
|
15354
|
+
| string
|
|
15355
|
+
)[]
|
|
15356
|
+
| (
|
|
15357
|
+
| {
|
|
15358
|
+
pattern?: string
|
|
15359
|
+
flags?: string
|
|
15360
|
+
}
|
|
15361
|
+
| string
|
|
15362
|
+
)
|
|
14692
15363
|
|
|
14693
|
-
|
|
15364
|
+
tagMatchesPattern?:
|
|
15365
|
+
| (
|
|
15366
|
+
| {
|
|
15367
|
+
pattern?: string
|
|
15368
|
+
flags?: string
|
|
15369
|
+
}
|
|
14694
15370
|
| string
|
|
14695
|
-
|
|
15371
|
+
)[]
|
|
15372
|
+
| (
|
|
14696
15373
|
| {
|
|
14697
|
-
|
|
14698
|
-
|
|
15374
|
+
pattern?: string
|
|
15375
|
+
flags?: string
|
|
14699
15376
|
}
|
|
14700
|
-
|
|
14701
|
-
|
|
14702
|
-
|
|
15377
|
+
| string
|
|
15378
|
+
)
|
|
15379
|
+
}
|
|
15380
|
+
|
|
15381
|
+
partitionByNewLine?: boolean
|
|
15382
|
+
|
|
15383
|
+
newlinesBetween?: 'ignore' | 'always' | 'never'
|
|
15384
|
+
|
|
15385
|
+
customGroups?: {
|
|
15386
|
+
[k: string]: (string | string[]) | undefined
|
|
15387
|
+
}
|
|
15388
|
+
|
|
15389
|
+
ignorePattern?:
|
|
15390
|
+
| (
|
|
15391
|
+
| {
|
|
15392
|
+
pattern?: string
|
|
15393
|
+
flags?: string
|
|
15394
|
+
}
|
|
15395
|
+
| string
|
|
15396
|
+
)[]
|
|
15397
|
+
| (
|
|
15398
|
+
| {
|
|
15399
|
+
pattern?: string
|
|
15400
|
+
flags?: string
|
|
15401
|
+
}
|
|
15402
|
+
| string
|
|
15403
|
+
)
|
|
15404
|
+
|
|
15405
|
+
groups?: (
|
|
15406
|
+
| string
|
|
15407
|
+
| string[]
|
|
15408
|
+
| {
|
|
15409
|
+
newlinesBetween?: 'ignore' | 'always' | 'never'
|
|
15410
|
+
}
|
|
15411
|
+
)[]
|
|
15412
|
+
}[]
|
|
14703
15413
|
// ----- perfectionist/sort-maps -----
|
|
14704
15414
|
type PerfectionistSortMaps = {
|
|
14705
15415
|
specialCharacters?: 'remove' | 'trim' | 'keep'
|
|
14706
15416
|
|
|
15417
|
+
fallbackSort?: {
|
|
15418
|
+
order?: 'asc' | 'desc'
|
|
15419
|
+
|
|
15420
|
+
type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
|
|
15421
|
+
[k: string]: unknown | undefined
|
|
15422
|
+
}
|
|
15423
|
+
|
|
14707
15424
|
ignoreCase?: boolean
|
|
14708
15425
|
|
|
14709
15426
|
alphabet?: string
|
|
@@ -14712,6 +15429,8 @@ type PerfectionistSortMaps = {
|
|
|
14712
15429
|
|
|
14713
15430
|
order?: 'asc' | 'desc'
|
|
14714
15431
|
|
|
15432
|
+
type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
|
|
15433
|
+
|
|
14715
15434
|
customGroups?: (
|
|
14716
15435
|
| {
|
|
14717
15436
|
groupName?: string
|
|
@@ -14722,7 +15441,21 @@ type PerfectionistSortMaps = {
|
|
|
14722
15441
|
|
|
14723
15442
|
newlinesInside?: 'always' | 'never'
|
|
14724
15443
|
anyOf?: {
|
|
14725
|
-
elementNamePattern?:
|
|
15444
|
+
elementNamePattern?:
|
|
15445
|
+
| (
|
|
15446
|
+
| {
|
|
15447
|
+
pattern?: string
|
|
15448
|
+
flags?: string
|
|
15449
|
+
}
|
|
15450
|
+
| string
|
|
15451
|
+
)[]
|
|
15452
|
+
| (
|
|
15453
|
+
| {
|
|
15454
|
+
pattern?: string
|
|
15455
|
+
flags?: string
|
|
15456
|
+
}
|
|
15457
|
+
| string
|
|
15458
|
+
)
|
|
14726
15459
|
}[]
|
|
14727
15460
|
}
|
|
14728
15461
|
| {
|
|
@@ -14734,35 +15467,107 @@ type PerfectionistSortMaps = {
|
|
|
14734
15467
|
|
|
14735
15468
|
newlinesInside?: 'always' | 'never'
|
|
14736
15469
|
|
|
14737
|
-
elementNamePattern?:
|
|
15470
|
+
elementNamePattern?:
|
|
15471
|
+
| (
|
|
15472
|
+
| {
|
|
15473
|
+
pattern?: string
|
|
15474
|
+
flags?: string
|
|
15475
|
+
}
|
|
15476
|
+
| string
|
|
15477
|
+
)[]
|
|
15478
|
+
| (
|
|
15479
|
+
| {
|
|
15480
|
+
pattern?: string
|
|
15481
|
+
flags?: string
|
|
15482
|
+
}
|
|
15483
|
+
| string
|
|
15484
|
+
)
|
|
14738
15485
|
}
|
|
14739
15486
|
)[]
|
|
14740
15487
|
useConfigurationIf?: {
|
|
14741
|
-
allNamesMatchPattern?:
|
|
15488
|
+
allNamesMatchPattern?:
|
|
15489
|
+
| (
|
|
15490
|
+
| {
|
|
15491
|
+
pattern?: string
|
|
15492
|
+
flags?: string
|
|
15493
|
+
}
|
|
15494
|
+
| string
|
|
15495
|
+
)[]
|
|
15496
|
+
| (
|
|
15497
|
+
| {
|
|
15498
|
+
pattern?: string
|
|
15499
|
+
flags?: string
|
|
15500
|
+
}
|
|
15501
|
+
| string
|
|
15502
|
+
)
|
|
14742
15503
|
}
|
|
14743
15504
|
|
|
14744
15505
|
partitionByComment?:
|
|
14745
|
-
| string[]
|
|
14746
15506
|
| boolean
|
|
14747
|
-
|
|
|
15507
|
+
| (
|
|
15508
|
+
| (
|
|
15509
|
+
| {
|
|
15510
|
+
pattern?: string
|
|
15511
|
+
flags?: string
|
|
15512
|
+
}
|
|
15513
|
+
| string
|
|
15514
|
+
)[]
|
|
15515
|
+
| (
|
|
15516
|
+
| {
|
|
15517
|
+
pattern?: string
|
|
15518
|
+
flags?: string
|
|
15519
|
+
}
|
|
15520
|
+
| string
|
|
15521
|
+
)
|
|
15522
|
+
)
|
|
14748
15523
|
| {
|
|
14749
|
-
block?:
|
|
14750
|
-
|
|
14751
|
-
|
|
15524
|
+
block?:
|
|
15525
|
+
| boolean
|
|
15526
|
+
| (
|
|
15527
|
+
| (
|
|
15528
|
+
| {
|
|
15529
|
+
pattern?: string
|
|
15530
|
+
flags?: string
|
|
15531
|
+
}
|
|
15532
|
+
| string
|
|
15533
|
+
)[]
|
|
15534
|
+
| (
|
|
15535
|
+
| {
|
|
15536
|
+
pattern?: string
|
|
15537
|
+
flags?: string
|
|
15538
|
+
}
|
|
15539
|
+
| string
|
|
15540
|
+
)
|
|
15541
|
+
)
|
|
15542
|
+
line?:
|
|
15543
|
+
| boolean
|
|
15544
|
+
| (
|
|
15545
|
+
| (
|
|
15546
|
+
| {
|
|
15547
|
+
pattern?: string
|
|
15548
|
+
flags?: string
|
|
15549
|
+
}
|
|
15550
|
+
| string
|
|
15551
|
+
)[]
|
|
15552
|
+
| (
|
|
15553
|
+
| {
|
|
15554
|
+
pattern?: string
|
|
15555
|
+
flags?: string
|
|
15556
|
+
}
|
|
15557
|
+
| string
|
|
15558
|
+
)
|
|
15559
|
+
)
|
|
14752
15560
|
}
|
|
14753
15561
|
|
|
14754
15562
|
partitionByNewLine?: boolean
|
|
14755
15563
|
|
|
14756
15564
|
newlinesBetween?: 'ignore' | 'always' | 'never'
|
|
14757
15565
|
|
|
14758
|
-
type?: 'alphabetical' | 'natural' | 'line-length' | 'custom'
|
|
14759
|
-
|
|
14760
15566
|
groups?: (
|
|
14761
15567
|
| string
|
|
14762
15568
|
| string[]
|
|
14763
15569
|
| {
|
|
14764
15570
|
newlinesBetween?: 'ignore' | 'always' | 'never'
|
|
14765
|
-
[k: string]: unknown | undefined
|
|
14766
15571
|
}
|
|
14767
15572
|
)[]
|
|
14768
15573
|
}[]
|
|
@@ -14773,6 +15578,13 @@ type PerfectionistSortModules =
|
|
|
14773
15578
|
{
|
|
14774
15579
|
specialCharacters?: 'remove' | 'trim' | 'keep'
|
|
14775
15580
|
|
|
15581
|
+
fallbackSort?: {
|
|
15582
|
+
order?: 'asc' | 'desc'
|
|
15583
|
+
|
|
15584
|
+
type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
|
|
15585
|
+
[k: string]: unknown | undefined
|
|
15586
|
+
}
|
|
15587
|
+
|
|
14776
15588
|
ignoreCase?: boolean
|
|
14777
15589
|
|
|
14778
15590
|
alphabet?: string
|
|
@@ -14781,6 +15593,8 @@ type PerfectionistSortModules =
|
|
|
14781
15593
|
|
|
14782
15594
|
order?: 'asc' | 'desc'
|
|
14783
15595
|
|
|
15596
|
+
type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
|
|
15597
|
+
|
|
14784
15598
|
customGroups?: (
|
|
14785
15599
|
| {
|
|
14786
15600
|
groupName?: string
|
|
@@ -14791,13 +15605,41 @@ type PerfectionistSortModules =
|
|
|
14791
15605
|
|
|
14792
15606
|
newlinesInside?: 'always' | 'never'
|
|
14793
15607
|
anyOf?: {
|
|
14794
|
-
decoratorNamePattern?: string
|
|
14795
|
-
|
|
14796
15608
|
modifiers?: ('async' | 'declare' | 'decorated' | 'default' | 'export')[]
|
|
14797
15609
|
|
|
14798
15610
|
selector?: 'enum' | 'function' | 'interface' | 'type' | 'class'
|
|
14799
15611
|
|
|
14800
|
-
|
|
15612
|
+
decoratorNamePattern?:
|
|
15613
|
+
| (
|
|
15614
|
+
| {
|
|
15615
|
+
pattern?: string
|
|
15616
|
+
flags?: string
|
|
15617
|
+
}
|
|
15618
|
+
| string
|
|
15619
|
+
)[]
|
|
15620
|
+
| (
|
|
15621
|
+
| {
|
|
15622
|
+
pattern?: string
|
|
15623
|
+
flags?: string
|
|
15624
|
+
}
|
|
15625
|
+
| string
|
|
15626
|
+
)
|
|
15627
|
+
|
|
15628
|
+
elementNamePattern?:
|
|
15629
|
+
| (
|
|
15630
|
+
| {
|
|
15631
|
+
pattern?: string
|
|
15632
|
+
flags?: string
|
|
15633
|
+
}
|
|
15634
|
+
| string
|
|
15635
|
+
)[]
|
|
15636
|
+
| (
|
|
15637
|
+
| {
|
|
15638
|
+
pattern?: string
|
|
15639
|
+
flags?: string
|
|
15640
|
+
}
|
|
15641
|
+
| string
|
|
15642
|
+
)
|
|
14801
15643
|
}[]
|
|
14802
15644
|
}
|
|
14803
15645
|
| {
|
|
@@ -14809,38 +15651,110 @@ type PerfectionistSortModules =
|
|
|
14809
15651
|
|
|
14810
15652
|
newlinesInside?: 'always' | 'never'
|
|
14811
15653
|
|
|
14812
|
-
decoratorNamePattern?: string
|
|
14813
|
-
|
|
14814
15654
|
modifiers?: ('async' | 'declare' | 'decorated' | 'default' | 'export')[]
|
|
14815
15655
|
|
|
14816
15656
|
selector?: 'enum' | 'function' | 'interface' | 'type' | 'class'
|
|
14817
15657
|
|
|
14818
|
-
|
|
15658
|
+
decoratorNamePattern?:
|
|
15659
|
+
| (
|
|
15660
|
+
| {
|
|
15661
|
+
pattern?: string
|
|
15662
|
+
flags?: string
|
|
15663
|
+
}
|
|
15664
|
+
| string
|
|
15665
|
+
)[]
|
|
15666
|
+
| (
|
|
15667
|
+
| {
|
|
15668
|
+
pattern?: string
|
|
15669
|
+
flags?: string
|
|
15670
|
+
}
|
|
15671
|
+
| string
|
|
15672
|
+
)
|
|
15673
|
+
|
|
15674
|
+
elementNamePattern?:
|
|
15675
|
+
| (
|
|
15676
|
+
| {
|
|
15677
|
+
pattern?: string
|
|
15678
|
+
flags?: string
|
|
15679
|
+
}
|
|
15680
|
+
| string
|
|
15681
|
+
)[]
|
|
15682
|
+
| (
|
|
15683
|
+
| {
|
|
15684
|
+
pattern?: string
|
|
15685
|
+
flags?: string
|
|
15686
|
+
}
|
|
15687
|
+
| string
|
|
15688
|
+
)
|
|
14819
15689
|
}
|
|
14820
15690
|
)[]
|
|
14821
15691
|
|
|
14822
15692
|
partitionByComment?:
|
|
14823
|
-
| string[]
|
|
14824
15693
|
| boolean
|
|
14825
|
-
|
|
|
15694
|
+
| (
|
|
15695
|
+
| (
|
|
15696
|
+
| {
|
|
15697
|
+
pattern?: string
|
|
15698
|
+
flags?: string
|
|
15699
|
+
}
|
|
15700
|
+
| string
|
|
15701
|
+
)[]
|
|
15702
|
+
| (
|
|
15703
|
+
| {
|
|
15704
|
+
pattern?: string
|
|
15705
|
+
flags?: string
|
|
15706
|
+
}
|
|
15707
|
+
| string
|
|
15708
|
+
)
|
|
15709
|
+
)
|
|
14826
15710
|
| {
|
|
14827
|
-
block?:
|
|
14828
|
-
|
|
14829
|
-
|
|
15711
|
+
block?:
|
|
15712
|
+
| boolean
|
|
15713
|
+
| (
|
|
15714
|
+
| (
|
|
15715
|
+
| {
|
|
15716
|
+
pattern?: string
|
|
15717
|
+
flags?: string
|
|
15718
|
+
}
|
|
15719
|
+
| string
|
|
15720
|
+
)[]
|
|
15721
|
+
| (
|
|
15722
|
+
| {
|
|
15723
|
+
pattern?: string
|
|
15724
|
+
flags?: string
|
|
15725
|
+
}
|
|
15726
|
+
| string
|
|
15727
|
+
)
|
|
15728
|
+
)
|
|
15729
|
+
line?:
|
|
15730
|
+
| boolean
|
|
15731
|
+
| (
|
|
15732
|
+
| (
|
|
15733
|
+
| {
|
|
15734
|
+
pattern?: string
|
|
15735
|
+
flags?: string
|
|
15736
|
+
}
|
|
15737
|
+
| string
|
|
15738
|
+
)[]
|
|
15739
|
+
| (
|
|
15740
|
+
| {
|
|
15741
|
+
pattern?: string
|
|
15742
|
+
flags?: string
|
|
15743
|
+
}
|
|
15744
|
+
| string
|
|
15745
|
+
)
|
|
15746
|
+
)
|
|
14830
15747
|
}
|
|
14831
15748
|
|
|
14832
15749
|
partitionByNewLine?: boolean
|
|
14833
15750
|
|
|
14834
15751
|
newlinesBetween?: 'ignore' | 'always' | 'never'
|
|
14835
15752
|
|
|
14836
|
-
type?: 'alphabetical' | 'natural' | 'line-length' | 'custom'
|
|
14837
|
-
|
|
14838
15753
|
groups?: (
|
|
14839
15754
|
| string
|
|
14840
15755
|
| string[]
|
|
14841
15756
|
| {
|
|
14842
15757
|
newlinesBetween?: 'ignore' | 'always' | 'never'
|
|
14843
|
-
[k: string]: unknown | undefined
|
|
14844
15758
|
}
|
|
14845
15759
|
)[]
|
|
14846
15760
|
},
|
|
@@ -14852,6 +15766,13 @@ type PerfectionistSortNamedExports =
|
|
|
14852
15766
|
{
|
|
14853
15767
|
specialCharacters?: 'remove' | 'trim' | 'keep'
|
|
14854
15768
|
|
|
15769
|
+
fallbackSort?: {
|
|
15770
|
+
order?: 'asc' | 'desc'
|
|
15771
|
+
|
|
15772
|
+
type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
|
|
15773
|
+
[k: string]: unknown | undefined
|
|
15774
|
+
}
|
|
15775
|
+
|
|
14855
15776
|
ignoreCase?: boolean
|
|
14856
15777
|
|
|
14857
15778
|
alphabet?: string
|
|
@@ -14860,23 +15781,70 @@ type PerfectionistSortNamedExports =
|
|
|
14860
15781
|
|
|
14861
15782
|
order?: 'asc' | 'desc'
|
|
14862
15783
|
|
|
15784
|
+
type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
|
|
15785
|
+
|
|
14863
15786
|
groupKind?: 'mixed' | 'values-first' | 'types-first'
|
|
14864
15787
|
|
|
14865
15788
|
ignoreAlias?: boolean
|
|
14866
15789
|
|
|
14867
15790
|
partitionByComment?:
|
|
14868
|
-
| string[]
|
|
14869
15791
|
| boolean
|
|
14870
|
-
|
|
|
15792
|
+
| (
|
|
15793
|
+
| (
|
|
15794
|
+
| {
|
|
15795
|
+
pattern?: string
|
|
15796
|
+
flags?: string
|
|
15797
|
+
}
|
|
15798
|
+
| string
|
|
15799
|
+
)[]
|
|
15800
|
+
| (
|
|
15801
|
+
| {
|
|
15802
|
+
pattern?: string
|
|
15803
|
+
flags?: string
|
|
15804
|
+
}
|
|
15805
|
+
| string
|
|
15806
|
+
)
|
|
15807
|
+
)
|
|
14871
15808
|
| {
|
|
14872
|
-
block?:
|
|
14873
|
-
|
|
14874
|
-
|
|
15809
|
+
block?:
|
|
15810
|
+
| boolean
|
|
15811
|
+
| (
|
|
15812
|
+
| (
|
|
15813
|
+
| {
|
|
15814
|
+
pattern?: string
|
|
15815
|
+
flags?: string
|
|
15816
|
+
}
|
|
15817
|
+
| string
|
|
15818
|
+
)[]
|
|
15819
|
+
| (
|
|
15820
|
+
| {
|
|
15821
|
+
pattern?: string
|
|
15822
|
+
flags?: string
|
|
15823
|
+
}
|
|
15824
|
+
| string
|
|
15825
|
+
)
|
|
15826
|
+
)
|
|
15827
|
+
line?:
|
|
15828
|
+
| boolean
|
|
15829
|
+
| (
|
|
15830
|
+
| (
|
|
15831
|
+
| {
|
|
15832
|
+
pattern?: string
|
|
15833
|
+
flags?: string
|
|
15834
|
+
}
|
|
15835
|
+
| string
|
|
15836
|
+
)[]
|
|
15837
|
+
| (
|
|
15838
|
+
| {
|
|
15839
|
+
pattern?: string
|
|
15840
|
+
flags?: string
|
|
15841
|
+
}
|
|
15842
|
+
| string
|
|
15843
|
+
)
|
|
15844
|
+
)
|
|
14875
15845
|
}
|
|
14876
15846
|
|
|
14877
15847
|
partitionByNewLine?: boolean
|
|
14878
|
-
|
|
14879
|
-
type?: 'alphabetical' | 'natural' | 'line-length' | 'custom'
|
|
14880
15848
|
},
|
|
14881
15849
|
]
|
|
14882
15850
|
// ----- perfectionist/sort-named-imports -----
|
|
@@ -14886,6 +15854,13 @@ type PerfectionistSortNamedImports =
|
|
|
14886
15854
|
{
|
|
14887
15855
|
specialCharacters?: 'remove' | 'trim' | 'keep'
|
|
14888
15856
|
|
|
15857
|
+
fallbackSort?: {
|
|
15858
|
+
order?: 'asc' | 'desc'
|
|
15859
|
+
|
|
15860
|
+
type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
|
|
15861
|
+
[k: string]: unknown | undefined
|
|
15862
|
+
}
|
|
15863
|
+
|
|
14889
15864
|
ignoreCase?: boolean
|
|
14890
15865
|
|
|
14891
15866
|
alphabet?: string
|
|
@@ -14894,29 +15869,83 @@ type PerfectionistSortNamedImports =
|
|
|
14894
15869
|
|
|
14895
15870
|
order?: 'asc' | 'desc'
|
|
14896
15871
|
|
|
15872
|
+
type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
|
|
15873
|
+
|
|
14897
15874
|
groupKind?: 'mixed' | 'values-first' | 'types-first'
|
|
14898
15875
|
|
|
14899
15876
|
ignoreAlias?: boolean
|
|
14900
15877
|
|
|
14901
15878
|
partitionByComment?:
|
|
14902
|
-
| string[]
|
|
14903
15879
|
| boolean
|
|
14904
|
-
|
|
|
15880
|
+
| (
|
|
15881
|
+
| (
|
|
15882
|
+
| {
|
|
15883
|
+
pattern?: string
|
|
15884
|
+
flags?: string
|
|
15885
|
+
}
|
|
15886
|
+
| string
|
|
15887
|
+
)[]
|
|
15888
|
+
| (
|
|
15889
|
+
| {
|
|
15890
|
+
pattern?: string
|
|
15891
|
+
flags?: string
|
|
15892
|
+
}
|
|
15893
|
+
| string
|
|
15894
|
+
)
|
|
15895
|
+
)
|
|
14905
15896
|
| {
|
|
14906
|
-
block?:
|
|
14907
|
-
|
|
14908
|
-
|
|
15897
|
+
block?:
|
|
15898
|
+
| boolean
|
|
15899
|
+
| (
|
|
15900
|
+
| (
|
|
15901
|
+
| {
|
|
15902
|
+
pattern?: string
|
|
15903
|
+
flags?: string
|
|
15904
|
+
}
|
|
15905
|
+
| string
|
|
15906
|
+
)[]
|
|
15907
|
+
| (
|
|
15908
|
+
| {
|
|
15909
|
+
pattern?: string
|
|
15910
|
+
flags?: string
|
|
15911
|
+
}
|
|
15912
|
+
| string
|
|
15913
|
+
)
|
|
15914
|
+
)
|
|
15915
|
+
line?:
|
|
15916
|
+
| boolean
|
|
15917
|
+
| (
|
|
15918
|
+
| (
|
|
15919
|
+
| {
|
|
15920
|
+
pattern?: string
|
|
15921
|
+
flags?: string
|
|
15922
|
+
}
|
|
15923
|
+
| string
|
|
15924
|
+
)[]
|
|
15925
|
+
| (
|
|
15926
|
+
| {
|
|
15927
|
+
pattern?: string
|
|
15928
|
+
flags?: string
|
|
15929
|
+
}
|
|
15930
|
+
| string
|
|
15931
|
+
)
|
|
15932
|
+
)
|
|
14909
15933
|
}
|
|
14910
15934
|
|
|
14911
15935
|
partitionByNewLine?: boolean
|
|
14912
|
-
|
|
14913
|
-
type?: 'alphabetical' | 'natural' | 'line-length' | 'custom'
|
|
14914
15936
|
},
|
|
14915
15937
|
]
|
|
14916
15938
|
// ----- perfectionist/sort-object-types -----
|
|
14917
15939
|
type PerfectionistSortObjectTypes = {
|
|
14918
15940
|
specialCharacters?: 'remove' | 'trim' | 'keep'
|
|
14919
15941
|
|
|
15942
|
+
fallbackSort?: {
|
|
15943
|
+
order?: 'asc' | 'desc'
|
|
15944
|
+
|
|
15945
|
+
type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
|
|
15946
|
+
[k: string]: unknown | undefined
|
|
15947
|
+
}
|
|
15948
|
+
|
|
14920
15949
|
ignoreCase?: boolean
|
|
14921
15950
|
|
|
14922
15951
|
alphabet?: string
|
|
@@ -14925,11 +15954,7 @@ type PerfectionistSortObjectTypes = {
|
|
|
14925
15954
|
|
|
14926
15955
|
order?: 'asc' | 'desc'
|
|
14927
15956
|
|
|
14928
|
-
|
|
14929
|
-
useConfigurationIf?: {
|
|
14930
|
-
allNamesMatchPattern?: string
|
|
14931
|
-
declarationMatchesPattern?: string
|
|
14932
|
-
}
|
|
15957
|
+
type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
|
|
14933
15958
|
customGroups?:
|
|
14934
15959
|
| {
|
|
14935
15960
|
[k: string]: (string | string[]) | undefined
|
|
@@ -14948,7 +15973,21 @@ type PerfectionistSortObjectTypes = {
|
|
|
14948
15973
|
|
|
14949
15974
|
selector?: 'index-signature' | 'member' | 'method' | 'multiline' | 'property'
|
|
14950
15975
|
|
|
14951
|
-
elementNamePattern?:
|
|
15976
|
+
elementNamePattern?:
|
|
15977
|
+
| (
|
|
15978
|
+
| {
|
|
15979
|
+
pattern?: string
|
|
15980
|
+
flags?: string
|
|
15981
|
+
}
|
|
15982
|
+
| string
|
|
15983
|
+
)[]
|
|
15984
|
+
| (
|
|
15985
|
+
| {
|
|
15986
|
+
pattern?: string
|
|
15987
|
+
flags?: string
|
|
15988
|
+
}
|
|
15989
|
+
| string
|
|
15990
|
+
)
|
|
14952
15991
|
}[]
|
|
14953
15992
|
}
|
|
14954
15993
|
| {
|
|
@@ -14964,34 +16003,141 @@ type PerfectionistSortObjectTypes = {
|
|
|
14964
16003
|
|
|
14965
16004
|
selector?: 'index-signature' | 'member' | 'method' | 'multiline' | 'property'
|
|
14966
16005
|
|
|
14967
|
-
elementNamePattern?:
|
|
14968
|
-
|
|
14969
|
-
|
|
16006
|
+
elementNamePattern?:
|
|
16007
|
+
| (
|
|
16008
|
+
| {
|
|
16009
|
+
pattern?: string
|
|
16010
|
+
flags?: string
|
|
16011
|
+
}
|
|
16012
|
+
| string
|
|
16013
|
+
)[]
|
|
16014
|
+
| (
|
|
16015
|
+
| {
|
|
16016
|
+
pattern?: string
|
|
16017
|
+
flags?: string
|
|
16018
|
+
}
|
|
16019
|
+
| string
|
|
16020
|
+
)
|
|
16021
|
+
}
|
|
16022
|
+
)[]
|
|
16023
|
+
useConfigurationIf?: {
|
|
16024
|
+
allNamesMatchPattern?:
|
|
16025
|
+
| (
|
|
16026
|
+
| {
|
|
16027
|
+
pattern?: string
|
|
16028
|
+
flags?: string
|
|
16029
|
+
}
|
|
16030
|
+
| string
|
|
16031
|
+
)[]
|
|
16032
|
+
| (
|
|
16033
|
+
| {
|
|
16034
|
+
pattern?: string
|
|
16035
|
+
flags?: string
|
|
16036
|
+
}
|
|
16037
|
+
| string
|
|
16038
|
+
)
|
|
16039
|
+
|
|
16040
|
+
declarationMatchesPattern?:
|
|
16041
|
+
| (
|
|
16042
|
+
| {
|
|
16043
|
+
pattern?: string
|
|
16044
|
+
flags?: string
|
|
16045
|
+
}
|
|
16046
|
+
| string
|
|
16047
|
+
)[]
|
|
16048
|
+
| (
|
|
16049
|
+
| {
|
|
16050
|
+
pattern?: string
|
|
16051
|
+
flags?: string
|
|
16052
|
+
}
|
|
16053
|
+
| string
|
|
16054
|
+
)
|
|
16055
|
+
}
|
|
14970
16056
|
|
|
14971
16057
|
groupKind?: 'mixed' | 'required-first' | 'optional-first'
|
|
14972
16058
|
|
|
14973
|
-
type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
|
|
14974
|
-
|
|
14975
16059
|
partitionByComment?:
|
|
14976
|
-
| string[]
|
|
14977
16060
|
| boolean
|
|
14978
|
-
|
|
|
16061
|
+
| (
|
|
16062
|
+
| (
|
|
16063
|
+
| {
|
|
16064
|
+
pattern?: string
|
|
16065
|
+
flags?: string
|
|
16066
|
+
}
|
|
16067
|
+
| string
|
|
16068
|
+
)[]
|
|
16069
|
+
| (
|
|
16070
|
+
| {
|
|
16071
|
+
pattern?: string
|
|
16072
|
+
flags?: string
|
|
16073
|
+
}
|
|
16074
|
+
| string
|
|
16075
|
+
)
|
|
16076
|
+
)
|
|
14979
16077
|
| {
|
|
14980
|
-
block?:
|
|
14981
|
-
|
|
14982
|
-
|
|
16078
|
+
block?:
|
|
16079
|
+
| boolean
|
|
16080
|
+
| (
|
|
16081
|
+
| (
|
|
16082
|
+
| {
|
|
16083
|
+
pattern?: string
|
|
16084
|
+
flags?: string
|
|
16085
|
+
}
|
|
16086
|
+
| string
|
|
16087
|
+
)[]
|
|
16088
|
+
| (
|
|
16089
|
+
| {
|
|
16090
|
+
pattern?: string
|
|
16091
|
+
flags?: string
|
|
16092
|
+
}
|
|
16093
|
+
| string
|
|
16094
|
+
)
|
|
16095
|
+
)
|
|
16096
|
+
line?:
|
|
16097
|
+
| boolean
|
|
16098
|
+
| (
|
|
16099
|
+
| (
|
|
16100
|
+
| {
|
|
16101
|
+
pattern?: string
|
|
16102
|
+
flags?: string
|
|
16103
|
+
}
|
|
16104
|
+
| string
|
|
16105
|
+
)[]
|
|
16106
|
+
| (
|
|
16107
|
+
| {
|
|
16108
|
+
pattern?: string
|
|
16109
|
+
flags?: string
|
|
16110
|
+
}
|
|
16111
|
+
| string
|
|
16112
|
+
)
|
|
16113
|
+
)
|
|
14983
16114
|
}
|
|
14984
16115
|
|
|
14985
16116
|
partitionByNewLine?: boolean
|
|
14986
16117
|
|
|
14987
16118
|
newlinesBetween?: 'ignore' | 'always' | 'never'
|
|
14988
16119
|
|
|
16120
|
+
ignorePattern?:
|
|
16121
|
+
| (
|
|
16122
|
+
| {
|
|
16123
|
+
pattern?: string
|
|
16124
|
+
flags?: string
|
|
16125
|
+
}
|
|
16126
|
+
| string
|
|
16127
|
+
)[]
|
|
16128
|
+
| (
|
|
16129
|
+
| {
|
|
16130
|
+
pattern?: string
|
|
16131
|
+
flags?: string
|
|
16132
|
+
}
|
|
16133
|
+
| string
|
|
16134
|
+
)
|
|
16135
|
+
|
|
14989
16136
|
groups?: (
|
|
14990
16137
|
| string
|
|
14991
16138
|
| string[]
|
|
14992
16139
|
| {
|
|
14993
16140
|
newlinesBetween?: 'ignore' | 'always' | 'never'
|
|
14994
|
-
[k: string]: unknown | undefined
|
|
14995
16141
|
}
|
|
14996
16142
|
)[]
|
|
14997
16143
|
}[]
|
|
@@ -14999,6 +16145,13 @@ type PerfectionistSortObjectTypes = {
|
|
|
14999
16145
|
type PerfectionistSortObjects = {
|
|
15000
16146
|
specialCharacters?: 'remove' | 'trim' | 'keep'
|
|
15001
16147
|
|
|
16148
|
+
fallbackSort?: {
|
|
16149
|
+
order?: 'asc' | 'desc'
|
|
16150
|
+
|
|
16151
|
+
type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
|
|
16152
|
+
[k: string]: unknown | undefined
|
|
16153
|
+
}
|
|
16154
|
+
|
|
15002
16155
|
ignoreCase?: boolean
|
|
15003
16156
|
|
|
15004
16157
|
alphabet?: string
|
|
@@ -15007,17 +16160,13 @@ type PerfectionistSortObjects = {
|
|
|
15007
16160
|
|
|
15008
16161
|
order?: 'asc' | 'desc'
|
|
15009
16162
|
|
|
16163
|
+
type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
|
|
16164
|
+
|
|
15010
16165
|
destructuredObjects?:
|
|
15011
16166
|
| boolean
|
|
15012
16167
|
| {
|
|
15013
16168
|
groups?: boolean
|
|
15014
16169
|
}
|
|
15015
|
-
|
|
15016
|
-
ignorePattern?: string[]
|
|
15017
|
-
useConfigurationIf?: {
|
|
15018
|
-
allNamesMatchPattern?: string
|
|
15019
|
-
callingFunctionNamePattern?: string
|
|
15020
|
-
}
|
|
15021
16170
|
customGroups?:
|
|
15022
16171
|
| {
|
|
15023
16172
|
[k: string]: (string | string[]) | undefined
|
|
@@ -15036,9 +16185,37 @@ type PerfectionistSortObjects = {
|
|
|
15036
16185
|
|
|
15037
16186
|
selector?: 'member' | 'method' | 'multiline' | 'property'
|
|
15038
16187
|
|
|
15039
|
-
elementValuePattern?:
|
|
15040
|
-
|
|
15041
|
-
|
|
16188
|
+
elementValuePattern?:
|
|
16189
|
+
| (
|
|
16190
|
+
| {
|
|
16191
|
+
pattern?: string
|
|
16192
|
+
flags?: string
|
|
16193
|
+
}
|
|
16194
|
+
| string
|
|
16195
|
+
)[]
|
|
16196
|
+
| (
|
|
16197
|
+
| {
|
|
16198
|
+
pattern?: string
|
|
16199
|
+
flags?: string
|
|
16200
|
+
}
|
|
16201
|
+
| string
|
|
16202
|
+
)
|
|
16203
|
+
|
|
16204
|
+
elementNamePattern?:
|
|
16205
|
+
| (
|
|
16206
|
+
| {
|
|
16207
|
+
pattern?: string
|
|
16208
|
+
flags?: string
|
|
16209
|
+
}
|
|
16210
|
+
| string
|
|
16211
|
+
)[]
|
|
16212
|
+
| (
|
|
16213
|
+
| {
|
|
16214
|
+
pattern?: string
|
|
16215
|
+
flags?: string
|
|
16216
|
+
}
|
|
16217
|
+
| string
|
|
16218
|
+
)
|
|
15042
16219
|
}[]
|
|
15043
16220
|
}
|
|
15044
16221
|
| {
|
|
@@ -15054,11 +16231,72 @@ type PerfectionistSortObjects = {
|
|
|
15054
16231
|
|
|
15055
16232
|
selector?: 'member' | 'method' | 'multiline' | 'property'
|
|
15056
16233
|
|
|
15057
|
-
elementValuePattern?:
|
|
16234
|
+
elementValuePattern?:
|
|
16235
|
+
| (
|
|
16236
|
+
| {
|
|
16237
|
+
pattern?: string
|
|
16238
|
+
flags?: string
|
|
16239
|
+
}
|
|
16240
|
+
| string
|
|
16241
|
+
)[]
|
|
16242
|
+
| (
|
|
16243
|
+
| {
|
|
16244
|
+
pattern?: string
|
|
16245
|
+
flags?: string
|
|
16246
|
+
}
|
|
16247
|
+
| string
|
|
16248
|
+
)
|
|
15058
16249
|
|
|
15059
|
-
elementNamePattern?:
|
|
16250
|
+
elementNamePattern?:
|
|
16251
|
+
| (
|
|
16252
|
+
| {
|
|
16253
|
+
pattern?: string
|
|
16254
|
+
flags?: string
|
|
16255
|
+
}
|
|
16256
|
+
| string
|
|
16257
|
+
)[]
|
|
16258
|
+
| (
|
|
16259
|
+
| {
|
|
16260
|
+
pattern?: string
|
|
16261
|
+
flags?: string
|
|
16262
|
+
}
|
|
16263
|
+
| string
|
|
16264
|
+
)
|
|
15060
16265
|
}
|
|
15061
16266
|
)[]
|
|
16267
|
+
useConfigurationIf?: {
|
|
16268
|
+
allNamesMatchPattern?:
|
|
16269
|
+
| (
|
|
16270
|
+
| {
|
|
16271
|
+
pattern?: string
|
|
16272
|
+
flags?: string
|
|
16273
|
+
}
|
|
16274
|
+
| string
|
|
16275
|
+
)[]
|
|
16276
|
+
| (
|
|
16277
|
+
| {
|
|
16278
|
+
pattern?: string
|
|
16279
|
+
flags?: string
|
|
16280
|
+
}
|
|
16281
|
+
| string
|
|
16282
|
+
)
|
|
16283
|
+
|
|
16284
|
+
callingFunctionNamePattern?:
|
|
16285
|
+
| (
|
|
16286
|
+
| {
|
|
16287
|
+
pattern?: string
|
|
16288
|
+
flags?: string
|
|
16289
|
+
}
|
|
16290
|
+
| string
|
|
16291
|
+
)[]
|
|
16292
|
+
| (
|
|
16293
|
+
| {
|
|
16294
|
+
pattern?: string
|
|
16295
|
+
flags?: string
|
|
16296
|
+
}
|
|
16297
|
+
| string
|
|
16298
|
+
)
|
|
16299
|
+
}
|
|
15062
16300
|
|
|
15063
16301
|
destructureOnly?: boolean
|
|
15064
16302
|
|
|
@@ -15066,28 +16304,88 @@ type PerfectionistSortObjects = {
|
|
|
15066
16304
|
|
|
15067
16305
|
styledComponents?: boolean
|
|
15068
16306
|
|
|
15069
|
-
type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
|
|
15070
|
-
|
|
15071
16307
|
partitionByComment?:
|
|
15072
|
-
| string[]
|
|
15073
16308
|
| boolean
|
|
15074
|
-
|
|
|
16309
|
+
| (
|
|
16310
|
+
| (
|
|
16311
|
+
| {
|
|
16312
|
+
pattern?: string
|
|
16313
|
+
flags?: string
|
|
16314
|
+
}
|
|
16315
|
+
| string
|
|
16316
|
+
)[]
|
|
16317
|
+
| (
|
|
16318
|
+
| {
|
|
16319
|
+
pattern?: string
|
|
16320
|
+
flags?: string
|
|
16321
|
+
}
|
|
16322
|
+
| string
|
|
16323
|
+
)
|
|
16324
|
+
)
|
|
15075
16325
|
| {
|
|
15076
|
-
block?:
|
|
15077
|
-
|
|
15078
|
-
|
|
16326
|
+
block?:
|
|
16327
|
+
| boolean
|
|
16328
|
+
| (
|
|
16329
|
+
| (
|
|
16330
|
+
| {
|
|
16331
|
+
pattern?: string
|
|
16332
|
+
flags?: string
|
|
16333
|
+
}
|
|
16334
|
+
| string
|
|
16335
|
+
)[]
|
|
16336
|
+
| (
|
|
16337
|
+
| {
|
|
16338
|
+
pattern?: string
|
|
16339
|
+
flags?: string
|
|
16340
|
+
}
|
|
16341
|
+
| string
|
|
16342
|
+
)
|
|
16343
|
+
)
|
|
16344
|
+
line?:
|
|
16345
|
+
| boolean
|
|
16346
|
+
| (
|
|
16347
|
+
| (
|
|
16348
|
+
| {
|
|
16349
|
+
pattern?: string
|
|
16350
|
+
flags?: string
|
|
16351
|
+
}
|
|
16352
|
+
| string
|
|
16353
|
+
)[]
|
|
16354
|
+
| (
|
|
16355
|
+
| {
|
|
16356
|
+
pattern?: string
|
|
16357
|
+
flags?: string
|
|
16358
|
+
}
|
|
16359
|
+
| string
|
|
16360
|
+
)
|
|
16361
|
+
)
|
|
15079
16362
|
}
|
|
15080
16363
|
|
|
15081
16364
|
partitionByNewLine?: boolean
|
|
15082
16365
|
|
|
15083
16366
|
newlinesBetween?: 'ignore' | 'always' | 'never'
|
|
15084
16367
|
|
|
16368
|
+
ignorePattern?:
|
|
16369
|
+
| (
|
|
16370
|
+
| {
|
|
16371
|
+
pattern?: string
|
|
16372
|
+
flags?: string
|
|
16373
|
+
}
|
|
16374
|
+
| string
|
|
16375
|
+
)[]
|
|
16376
|
+
| (
|
|
16377
|
+
| {
|
|
16378
|
+
pattern?: string
|
|
16379
|
+
flags?: string
|
|
16380
|
+
}
|
|
16381
|
+
| string
|
|
16382
|
+
)
|
|
16383
|
+
|
|
15085
16384
|
groups?: (
|
|
15086
16385
|
| string
|
|
15087
16386
|
| string[]
|
|
15088
16387
|
| {
|
|
15089
16388
|
newlinesBetween?: 'ignore' | 'always' | 'never'
|
|
15090
|
-
[k: string]: unknown | undefined
|
|
15091
16389
|
}
|
|
15092
16390
|
)[]
|
|
15093
16391
|
}[]
|
|
@@ -15095,6 +16393,13 @@ type PerfectionistSortObjects = {
|
|
|
15095
16393
|
type PerfectionistSortSets = {
|
|
15096
16394
|
specialCharacters?: 'remove' | 'trim' | 'keep'
|
|
15097
16395
|
|
|
16396
|
+
fallbackSort?: {
|
|
16397
|
+
order?: 'asc' | 'desc'
|
|
16398
|
+
|
|
16399
|
+
type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
|
|
16400
|
+
[k: string]: unknown | undefined
|
|
16401
|
+
}
|
|
16402
|
+
|
|
15098
16403
|
ignoreCase?: boolean
|
|
15099
16404
|
|
|
15100
16405
|
alphabet?: string
|
|
@@ -15103,6 +16408,8 @@ type PerfectionistSortSets = {
|
|
|
15103
16408
|
|
|
15104
16409
|
order?: 'asc' | 'desc'
|
|
15105
16410
|
|
|
16411
|
+
type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
|
|
16412
|
+
|
|
15106
16413
|
groupKind?: 'mixed' | 'literals-first' | 'spreads-first'
|
|
15107
16414
|
|
|
15108
16415
|
customGroups?: (
|
|
@@ -15117,7 +16424,21 @@ type PerfectionistSortSets = {
|
|
|
15117
16424
|
anyOf?: {
|
|
15118
16425
|
selector?: 'literal' | 'spread'
|
|
15119
16426
|
|
|
15120
|
-
elementNamePattern?:
|
|
16427
|
+
elementNamePattern?:
|
|
16428
|
+
| (
|
|
16429
|
+
| {
|
|
16430
|
+
pattern?: string
|
|
16431
|
+
flags?: string
|
|
16432
|
+
}
|
|
16433
|
+
| string
|
|
16434
|
+
)[]
|
|
16435
|
+
| (
|
|
16436
|
+
| {
|
|
16437
|
+
pattern?: string
|
|
16438
|
+
flags?: string
|
|
16439
|
+
}
|
|
16440
|
+
| string
|
|
16441
|
+
)
|
|
15121
16442
|
}[]
|
|
15122
16443
|
}
|
|
15123
16444
|
| {
|
|
@@ -15131,23 +16452,96 @@ type PerfectionistSortSets = {
|
|
|
15131
16452
|
|
|
15132
16453
|
selector?: 'literal' | 'spread'
|
|
15133
16454
|
|
|
15134
|
-
elementNamePattern?:
|
|
16455
|
+
elementNamePattern?:
|
|
16456
|
+
| (
|
|
16457
|
+
| {
|
|
16458
|
+
pattern?: string
|
|
16459
|
+
flags?: string
|
|
16460
|
+
}
|
|
16461
|
+
| string
|
|
16462
|
+
)[]
|
|
16463
|
+
| (
|
|
16464
|
+
| {
|
|
16465
|
+
pattern?: string
|
|
16466
|
+
flags?: string
|
|
16467
|
+
}
|
|
16468
|
+
| string
|
|
16469
|
+
)
|
|
15135
16470
|
}
|
|
15136
16471
|
)[]
|
|
15137
16472
|
useConfigurationIf?: {
|
|
15138
|
-
allNamesMatchPattern?:
|
|
16473
|
+
allNamesMatchPattern?:
|
|
16474
|
+
| (
|
|
16475
|
+
| {
|
|
16476
|
+
pattern?: string
|
|
16477
|
+
flags?: string
|
|
16478
|
+
}
|
|
16479
|
+
| string
|
|
16480
|
+
)[]
|
|
16481
|
+
| (
|
|
16482
|
+
| {
|
|
16483
|
+
pattern?: string
|
|
16484
|
+
flags?: string
|
|
16485
|
+
}
|
|
16486
|
+
| string
|
|
16487
|
+
)
|
|
15139
16488
|
}
|
|
15140
16489
|
|
|
15141
|
-
type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
|
|
15142
|
-
|
|
15143
16490
|
partitionByComment?:
|
|
15144
|
-
| string[]
|
|
15145
16491
|
| boolean
|
|
15146
|
-
|
|
|
16492
|
+
| (
|
|
16493
|
+
| (
|
|
16494
|
+
| {
|
|
16495
|
+
pattern?: string
|
|
16496
|
+
flags?: string
|
|
16497
|
+
}
|
|
16498
|
+
| string
|
|
16499
|
+
)[]
|
|
16500
|
+
| (
|
|
16501
|
+
| {
|
|
16502
|
+
pattern?: string
|
|
16503
|
+
flags?: string
|
|
16504
|
+
}
|
|
16505
|
+
| string
|
|
16506
|
+
)
|
|
16507
|
+
)
|
|
15147
16508
|
| {
|
|
15148
|
-
block?:
|
|
15149
|
-
|
|
15150
|
-
|
|
16509
|
+
block?:
|
|
16510
|
+
| boolean
|
|
16511
|
+
| (
|
|
16512
|
+
| (
|
|
16513
|
+
| {
|
|
16514
|
+
pattern?: string
|
|
16515
|
+
flags?: string
|
|
16516
|
+
}
|
|
16517
|
+
| string
|
|
16518
|
+
)[]
|
|
16519
|
+
| (
|
|
16520
|
+
| {
|
|
16521
|
+
pattern?: string
|
|
16522
|
+
flags?: string
|
|
16523
|
+
}
|
|
16524
|
+
| string
|
|
16525
|
+
)
|
|
16526
|
+
)
|
|
16527
|
+
line?:
|
|
16528
|
+
| boolean
|
|
16529
|
+
| (
|
|
16530
|
+
| (
|
|
16531
|
+
| {
|
|
16532
|
+
pattern?: string
|
|
16533
|
+
flags?: string
|
|
16534
|
+
}
|
|
16535
|
+
| string
|
|
16536
|
+
)[]
|
|
16537
|
+
| (
|
|
16538
|
+
| {
|
|
16539
|
+
pattern?: string
|
|
16540
|
+
flags?: string
|
|
16541
|
+
}
|
|
16542
|
+
| string
|
|
16543
|
+
)
|
|
16544
|
+
)
|
|
15151
16545
|
}
|
|
15152
16546
|
|
|
15153
16547
|
partitionByNewLine?: boolean
|
|
@@ -15159,7 +16553,6 @@ type PerfectionistSortSets = {
|
|
|
15159
16553
|
| string[]
|
|
15160
16554
|
| {
|
|
15161
16555
|
newlinesBetween?: 'ignore' | 'always' | 'never'
|
|
15162
|
-
[k: string]: unknown | undefined
|
|
15163
16556
|
}
|
|
15164
16557
|
)[]
|
|
15165
16558
|
}[]
|
|
@@ -15170,6 +16563,13 @@ type PerfectionistSortSwitchCase =
|
|
|
15170
16563
|
{
|
|
15171
16564
|
specialCharacters?: 'remove' | 'trim' | 'keep'
|
|
15172
16565
|
|
|
16566
|
+
fallbackSort?: {
|
|
16567
|
+
order?: 'asc' | 'desc'
|
|
16568
|
+
|
|
16569
|
+
type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
|
|
16570
|
+
[k: string]: unknown | undefined
|
|
16571
|
+
}
|
|
16572
|
+
|
|
15173
16573
|
ignoreCase?: boolean
|
|
15174
16574
|
|
|
15175
16575
|
alphabet?: string
|
|
@@ -15178,7 +16578,7 @@ type PerfectionistSortSwitchCase =
|
|
|
15178
16578
|
|
|
15179
16579
|
order?: 'asc' | 'desc'
|
|
15180
16580
|
|
|
15181
|
-
type?: 'alphabetical' | 'natural' | 'line-length' | 'custom'
|
|
16581
|
+
type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
|
|
15182
16582
|
},
|
|
15183
16583
|
]
|
|
15184
16584
|
// ----- perfectionist/sort-union-types -----
|
|
@@ -15188,6 +16588,13 @@ type PerfectionistSortUnionTypes =
|
|
|
15188
16588
|
{
|
|
15189
16589
|
specialCharacters?: 'remove' | 'trim' | 'keep'
|
|
15190
16590
|
|
|
16591
|
+
fallbackSort?: {
|
|
16592
|
+
order?: 'asc' | 'desc'
|
|
16593
|
+
|
|
16594
|
+
type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
|
|
16595
|
+
[k: string]: unknown | undefined
|
|
16596
|
+
}
|
|
16597
|
+
|
|
15191
16598
|
ignoreCase?: boolean
|
|
15192
16599
|
|
|
15193
16600
|
alphabet?: string
|
|
@@ -15196,28 +16603,74 @@ type PerfectionistSortUnionTypes =
|
|
|
15196
16603
|
|
|
15197
16604
|
order?: 'asc' | 'desc'
|
|
15198
16605
|
|
|
16606
|
+
type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
|
|
16607
|
+
|
|
15199
16608
|
partitionByComment?:
|
|
15200
|
-
| string[]
|
|
15201
16609
|
| boolean
|
|
15202
|
-
|
|
|
16610
|
+
| (
|
|
16611
|
+
| (
|
|
16612
|
+
| {
|
|
16613
|
+
pattern?: string
|
|
16614
|
+
flags?: string
|
|
16615
|
+
}
|
|
16616
|
+
| string
|
|
16617
|
+
)[]
|
|
16618
|
+
| (
|
|
16619
|
+
| {
|
|
16620
|
+
pattern?: string
|
|
16621
|
+
flags?: string
|
|
16622
|
+
}
|
|
16623
|
+
| string
|
|
16624
|
+
)
|
|
16625
|
+
)
|
|
15203
16626
|
| {
|
|
15204
|
-
block?:
|
|
15205
|
-
|
|
15206
|
-
|
|
16627
|
+
block?:
|
|
16628
|
+
| boolean
|
|
16629
|
+
| (
|
|
16630
|
+
| (
|
|
16631
|
+
| {
|
|
16632
|
+
pattern?: string
|
|
16633
|
+
flags?: string
|
|
16634
|
+
}
|
|
16635
|
+
| string
|
|
16636
|
+
)[]
|
|
16637
|
+
| (
|
|
16638
|
+
| {
|
|
16639
|
+
pattern?: string
|
|
16640
|
+
flags?: string
|
|
16641
|
+
}
|
|
16642
|
+
| string
|
|
16643
|
+
)
|
|
16644
|
+
)
|
|
16645
|
+
line?:
|
|
16646
|
+
| boolean
|
|
16647
|
+
| (
|
|
16648
|
+
| (
|
|
16649
|
+
| {
|
|
16650
|
+
pattern?: string
|
|
16651
|
+
flags?: string
|
|
16652
|
+
}
|
|
16653
|
+
| string
|
|
16654
|
+
)[]
|
|
16655
|
+
| (
|
|
16656
|
+
| {
|
|
16657
|
+
pattern?: string
|
|
16658
|
+
flags?: string
|
|
16659
|
+
}
|
|
16660
|
+
| string
|
|
16661
|
+
)
|
|
16662
|
+
)
|
|
15207
16663
|
}
|
|
15208
16664
|
|
|
15209
16665
|
partitionByNewLine?: boolean
|
|
15210
16666
|
|
|
15211
16667
|
newlinesBetween?: 'ignore' | 'always' | 'never'
|
|
15212
16668
|
|
|
15213
|
-
type?: 'alphabetical' | 'natural' | 'line-length' | 'custom'
|
|
15214
|
-
|
|
15215
16669
|
groups?: (
|
|
15216
16670
|
| string
|
|
15217
16671
|
| string[]
|
|
15218
16672
|
| {
|
|
15219
16673
|
newlinesBetween?: 'ignore' | 'always' | 'never'
|
|
15220
|
-
[k: string]: unknown | undefined
|
|
15221
16674
|
}
|
|
15222
16675
|
)[]
|
|
15223
16676
|
},
|
|
@@ -15229,6 +16682,13 @@ type PerfectionistSortVariableDeclarations =
|
|
|
15229
16682
|
{
|
|
15230
16683
|
specialCharacters?: 'remove' | 'trim' | 'keep'
|
|
15231
16684
|
|
|
16685
|
+
fallbackSort?: {
|
|
16686
|
+
order?: 'asc' | 'desc'
|
|
16687
|
+
|
|
16688
|
+
type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
|
|
16689
|
+
[k: string]: unknown | undefined
|
|
16690
|
+
}
|
|
16691
|
+
|
|
15232
16692
|
ignoreCase?: boolean
|
|
15233
16693
|
|
|
15234
16694
|
alphabet?: string
|
|
@@ -15237,19 +16697,66 @@ type PerfectionistSortVariableDeclarations =
|
|
|
15237
16697
|
|
|
15238
16698
|
order?: 'asc' | 'desc'
|
|
15239
16699
|
|
|
16700
|
+
type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
|
|
16701
|
+
|
|
15240
16702
|
partitionByComment?:
|
|
15241
|
-
| string[]
|
|
15242
16703
|
| boolean
|
|
15243
|
-
|
|
|
16704
|
+
| (
|
|
16705
|
+
| (
|
|
16706
|
+
| {
|
|
16707
|
+
pattern?: string
|
|
16708
|
+
flags?: string
|
|
16709
|
+
}
|
|
16710
|
+
| string
|
|
16711
|
+
)[]
|
|
16712
|
+
| (
|
|
16713
|
+
| {
|
|
16714
|
+
pattern?: string
|
|
16715
|
+
flags?: string
|
|
16716
|
+
}
|
|
16717
|
+
| string
|
|
16718
|
+
)
|
|
16719
|
+
)
|
|
15244
16720
|
| {
|
|
15245
|
-
block?:
|
|
15246
|
-
|
|
15247
|
-
|
|
16721
|
+
block?:
|
|
16722
|
+
| boolean
|
|
16723
|
+
| (
|
|
16724
|
+
| (
|
|
16725
|
+
| {
|
|
16726
|
+
pattern?: string
|
|
16727
|
+
flags?: string
|
|
16728
|
+
}
|
|
16729
|
+
| string
|
|
16730
|
+
)[]
|
|
16731
|
+
| (
|
|
16732
|
+
| {
|
|
16733
|
+
pattern?: string
|
|
16734
|
+
flags?: string
|
|
16735
|
+
}
|
|
16736
|
+
| string
|
|
16737
|
+
)
|
|
16738
|
+
)
|
|
16739
|
+
line?:
|
|
16740
|
+
| boolean
|
|
16741
|
+
| (
|
|
16742
|
+
| (
|
|
16743
|
+
| {
|
|
16744
|
+
pattern?: string
|
|
16745
|
+
flags?: string
|
|
16746
|
+
}
|
|
16747
|
+
| string
|
|
16748
|
+
)[]
|
|
16749
|
+
| (
|
|
16750
|
+
| {
|
|
16751
|
+
pattern?: string
|
|
16752
|
+
flags?: string
|
|
16753
|
+
}
|
|
16754
|
+
| string
|
|
16755
|
+
)
|
|
16756
|
+
)
|
|
15248
16757
|
}
|
|
15249
16758
|
|
|
15250
16759
|
partitionByNewLine?: boolean
|
|
15251
|
-
|
|
15252
|
-
type?: 'alphabetical' | 'natural' | 'line-length' | 'custom'
|
|
15253
16760
|
},
|
|
15254
16761
|
]
|
|
15255
16762
|
// ----- prefer-arrow-callback -----
|
|
@@ -19674,7 +21181,7 @@ type TsNoUnnecessaryCondition =
|
|
|
19674
21181
|
| []
|
|
19675
21182
|
| [
|
|
19676
21183
|
{
|
|
19677
|
-
allowConstantLoopConditions?: boolean
|
|
21184
|
+
allowConstantLoopConditions?: boolean | ('always' | 'never' | 'only-allowed-literals')
|
|
19678
21185
|
|
|
19679
21186
|
allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean
|
|
19680
21187
|
|
|
@@ -20266,6 +21773,17 @@ type UnicornNoArrayReduce =
|
|
|
20266
21773
|
allowSimpleOperations?: boolean
|
|
20267
21774
|
},
|
|
20268
21775
|
]
|
|
21776
|
+
// ----- unicorn/no-instanceof-builtins -----
|
|
21777
|
+
type UnicornNoInstanceofBuiltins =
|
|
21778
|
+
| []
|
|
21779
|
+
| [
|
|
21780
|
+
{
|
|
21781
|
+
useErrorIsError?: boolean
|
|
21782
|
+
strategy?: 'loose' | 'strict'
|
|
21783
|
+
include?: string[]
|
|
21784
|
+
exclude?: string[]
|
|
21785
|
+
},
|
|
21786
|
+
]
|
|
20269
21787
|
// ----- unicorn/no-keyword-prefix -----
|
|
20270
21788
|
type UnicornNoKeywordPrefix =
|
|
20271
21789
|
| []
|