@sxzz/eslint-config 5.1.1 → 5.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +983 -378
- package/dist/index.js +2 -1
- package/package.json +25 -25
package/dist/index.d.ts
CHANGED
|
@@ -288,7 +288,7 @@ interface Rules {
|
|
|
288
288
|
*/
|
|
289
289
|
'@typescript-eslint/no-for-in-array'?: Linter.RuleEntry<[]>;
|
|
290
290
|
/**
|
|
291
|
-
* Disallow the use of `eval()`-like
|
|
291
|
+
* Disallow the use of `eval()`-like functions
|
|
292
292
|
* @see https://typescript-eslint.io/rules/no-implied-eval
|
|
293
293
|
*/
|
|
294
294
|
'@typescript-eslint/no-implied-eval'?: Linter.RuleEntry<[]>;
|
|
@@ -3794,702 +3794,642 @@ interface Rules {
|
|
|
3794
3794
|
'unicode-bom'?: Linter.RuleEntry<UnicodeBom>;
|
|
3795
3795
|
/**
|
|
3796
3796
|
* Improve regexes by making them shorter, consistent, and safer.
|
|
3797
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3797
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/better-regex.md
|
|
3798
3798
|
*/
|
|
3799
3799
|
'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>;
|
|
3800
3800
|
/**
|
|
3801
3801
|
* Enforce a specific parameter name in catch clauses.
|
|
3802
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3802
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/catch-error-name.md
|
|
3803
3803
|
*/
|
|
3804
3804
|
'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
|
|
3805
|
+
/**
|
|
3806
|
+
* Enforce consistent assertion style with `node:assert`.
|
|
3807
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-assert.md
|
|
3808
|
+
*/
|
|
3809
|
+
'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
|
|
3810
|
+
/**
|
|
3811
|
+
* Prefer passing `Date` directly to the constructor when cloning.
|
|
3812
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-date-clone.md
|
|
3813
|
+
*/
|
|
3814
|
+
'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
|
|
3805
3815
|
/**
|
|
3806
3816
|
* Use destructured variables over properties.
|
|
3807
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3817
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-destructuring.md
|
|
3808
3818
|
*/
|
|
3809
3819
|
'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
|
|
3810
3820
|
/**
|
|
3811
3821
|
* Prefer consistent types when spreading a ternary in an array literal.
|
|
3812
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3822
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-empty-array-spread.md
|
|
3813
3823
|
*/
|
|
3814
3824
|
'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
|
|
3815
3825
|
/**
|
|
3816
3826
|
* Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
|
|
3817
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3827
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-existence-index-check.md
|
|
3818
3828
|
*/
|
|
3819
3829
|
'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
|
|
3820
3830
|
/**
|
|
3821
3831
|
* Move function definitions to the highest possible scope.
|
|
3822
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3832
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-function-scoping.md
|
|
3823
3833
|
*/
|
|
3824
3834
|
'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
|
|
3825
3835
|
/**
|
|
3826
3836
|
* Enforce correct `Error` subclassing.
|
|
3827
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3837
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/custom-error-definition.md
|
|
3828
3838
|
*/
|
|
3829
3839
|
'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
|
|
3830
3840
|
/**
|
|
3831
3841
|
* Enforce no spaces between braces.
|
|
3832
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3842
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/empty-brace-spaces.md
|
|
3833
3843
|
*/
|
|
3834
3844
|
'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
|
|
3835
3845
|
/**
|
|
3836
3846
|
* Enforce passing a `message` value when creating a built-in error.
|
|
3837
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3847
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/error-message.md
|
|
3838
3848
|
*/
|
|
3839
3849
|
'unicorn/error-message'?: Linter.RuleEntry<[]>;
|
|
3840
3850
|
/**
|
|
3841
3851
|
* Require escape sequences to use uppercase values.
|
|
3842
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3852
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/escape-case.md
|
|
3843
3853
|
*/
|
|
3844
3854
|
'unicorn/escape-case'?: Linter.RuleEntry<[]>;
|
|
3845
3855
|
/**
|
|
3846
3856
|
* Add expiration conditions to TODO comments.
|
|
3847
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3857
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/expiring-todo-comments.md
|
|
3848
3858
|
*/
|
|
3849
3859
|
'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
|
|
3850
3860
|
/**
|
|
3851
3861
|
* Enforce explicitly comparing the `length` or `size` property of a value.
|
|
3852
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3862
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/explicit-length-check.md
|
|
3853
3863
|
*/
|
|
3854
3864
|
'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
|
|
3855
3865
|
/**
|
|
3856
3866
|
* Enforce a case style for filenames.
|
|
3857
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3867
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/filename-case.md
|
|
3858
3868
|
*/
|
|
3859
3869
|
'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
|
|
3860
|
-
/**
|
|
3861
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#import-index
|
|
3862
|
-
* @deprecated
|
|
3863
|
-
*/
|
|
3864
|
-
'unicorn/import-index'?: Linter.RuleEntry<[]>;
|
|
3865
3870
|
/**
|
|
3866
3871
|
* Enforce specific import styles per module.
|
|
3867
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3872
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/import-style.md
|
|
3868
3873
|
*/
|
|
3869
3874
|
'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
|
|
3870
3875
|
/**
|
|
3871
3876
|
* Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
|
|
3872
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3877
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/new-for-builtins.md
|
|
3873
3878
|
*/
|
|
3874
3879
|
'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
|
|
3875
3880
|
/**
|
|
3876
3881
|
* Enforce specifying rules to disable in `eslint-disable` comments.
|
|
3877
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3882
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-abusive-eslint-disable.md
|
|
3878
3883
|
*/
|
|
3879
3884
|
'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
|
|
3885
|
+
/**
|
|
3886
|
+
* Disallow recursive access to `this` within getters and setters.
|
|
3887
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-accessor-recursion.md
|
|
3888
|
+
*/
|
|
3889
|
+
'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
|
|
3880
3890
|
/**
|
|
3881
3891
|
* Disallow anonymous functions and classes as the default export.
|
|
3882
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3892
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-anonymous-default-export.md
|
|
3883
3893
|
*/
|
|
3884
3894
|
'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
|
|
3885
3895
|
/**
|
|
3886
3896
|
* Prevent passing a function reference directly to iterator methods.
|
|
3887
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3897
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-callback-reference.md
|
|
3888
3898
|
*/
|
|
3889
3899
|
'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>;
|
|
3890
3900
|
/**
|
|
3891
3901
|
* Prefer `for…of` over the `forEach` method.
|
|
3892
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3902
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-for-each.md
|
|
3893
3903
|
*/
|
|
3894
3904
|
'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>;
|
|
3895
|
-
/**
|
|
3896
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#no-array-instanceof
|
|
3897
|
-
* @deprecated
|
|
3898
|
-
*/
|
|
3899
|
-
'unicorn/no-array-instanceof'?: Linter.RuleEntry<[]>;
|
|
3900
3905
|
/**
|
|
3901
3906
|
* Disallow using the `this` argument in array methods.
|
|
3902
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3907
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-method-this-argument.md
|
|
3903
3908
|
*/
|
|
3904
3909
|
'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
|
|
3905
3910
|
/**
|
|
3906
3911
|
* Enforce combining multiple `Array#push()` into one call.
|
|
3907
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3912
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-push-push.md
|
|
3908
3913
|
*/
|
|
3909
3914
|
'unicorn/no-array-push-push'?: Linter.RuleEntry<UnicornNoArrayPushPush>;
|
|
3910
3915
|
/**
|
|
3911
3916
|
* Disallow `Array#reduce()` and `Array#reduceRight()`.
|
|
3912
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3917
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-reduce.md
|
|
3913
3918
|
*/
|
|
3914
3919
|
'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
|
|
3915
3920
|
/**
|
|
3916
3921
|
* Disallow member access from await expression.
|
|
3917
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3922
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-await-expression-member.md
|
|
3918
3923
|
*/
|
|
3919
3924
|
'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
|
|
3920
3925
|
/**
|
|
3921
3926
|
* Disallow using `await` in `Promise` method parameters.
|
|
3922
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3927
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-await-in-promise-methods.md
|
|
3923
3928
|
*/
|
|
3924
3929
|
'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
|
|
3925
3930
|
/**
|
|
3926
3931
|
* Do not use leading/trailing space between `console.log` parameters.
|
|
3927
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3932
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-console-spaces.md
|
|
3928
3933
|
*/
|
|
3929
3934
|
'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
|
|
3930
3935
|
/**
|
|
3931
3936
|
* Do not use `document.cookie` directly.
|
|
3932
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3937
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-document-cookie.md
|
|
3933
3938
|
*/
|
|
3934
3939
|
'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
|
|
3935
3940
|
/**
|
|
3936
3941
|
* Disallow empty files.
|
|
3937
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3942
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-empty-file.md
|
|
3938
3943
|
*/
|
|
3939
3944
|
'unicorn/no-empty-file'?: Linter.RuleEntry<[]>;
|
|
3940
|
-
/**
|
|
3941
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#no-fn-reference-in-iterator
|
|
3942
|
-
* @deprecated
|
|
3943
|
-
*/
|
|
3944
|
-
'unicorn/no-fn-reference-in-iterator'?: Linter.RuleEntry<[]>;
|
|
3945
3945
|
/**
|
|
3946
3946
|
* Do not use a `for` loop that can be replaced with a `for-of` loop.
|
|
3947
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3947
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-for-loop.md
|
|
3948
3948
|
*/
|
|
3949
3949
|
'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
|
|
3950
3950
|
/**
|
|
3951
3951
|
* Enforce the use of Unicode escapes instead of hexadecimal escapes.
|
|
3952
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3952
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-hex-escape.md
|
|
3953
3953
|
*/
|
|
3954
3954
|
'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
|
|
3955
3955
|
/**
|
|
3956
|
-
*
|
|
3957
|
-
* @
|
|
3956
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/deprecated-rules.md#no-instanceof-array
|
|
3957
|
+
* @deprecated
|
|
3958
3958
|
*/
|
|
3959
3959
|
'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
|
|
3960
|
+
/**
|
|
3961
|
+
* Disallow `instanceof` with built-in objects
|
|
3962
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-instanceof-builtins.md
|
|
3963
|
+
*/
|
|
3964
|
+
'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
|
|
3960
3965
|
/**
|
|
3961
3966
|
* Disallow invalid options in `fetch()` and `new Request()`.
|
|
3962
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3967
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-invalid-fetch-options.md
|
|
3963
3968
|
*/
|
|
3964
3969
|
'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
|
|
3965
3970
|
/**
|
|
3966
3971
|
* Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
|
|
3967
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3972
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-invalid-remove-event-listener.md
|
|
3968
3973
|
*/
|
|
3969
3974
|
'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
|
|
3970
3975
|
/**
|
|
3971
3976
|
* Disallow identifiers starting with `new` or `class`.
|
|
3972
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3977
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-keyword-prefix.md
|
|
3973
3978
|
*/
|
|
3974
3979
|
'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
|
|
3975
3980
|
/**
|
|
3976
3981
|
* Disallow using `.length` as the `end` argument of `{Array,String,TypedArray}#slice()`.
|
|
3977
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3982
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-length-as-slice-end.md
|
|
3978
3983
|
*/
|
|
3979
3984
|
'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
|
|
3980
3985
|
/**
|
|
3981
3986
|
* Disallow `if` statements as the only statement in `if` blocks without `else`.
|
|
3982
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3987
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-lonely-if.md
|
|
3983
3988
|
*/
|
|
3984
3989
|
'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
|
|
3985
3990
|
/**
|
|
3986
3991
|
* Disallow a magic number as the `depth` argument in `Array#flat(…).`
|
|
3987
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3992
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-magic-array-flat-depth.md
|
|
3988
3993
|
*/
|
|
3989
3994
|
'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
|
|
3995
|
+
/**
|
|
3996
|
+
* Disallow named usage of default import and export.
|
|
3997
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-named-default.md
|
|
3998
|
+
*/
|
|
3999
|
+
'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
|
|
3990
4000
|
/**
|
|
3991
4001
|
* Disallow negated conditions.
|
|
3992
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4002
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-negated-condition.md
|
|
3993
4003
|
*/
|
|
3994
4004
|
'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
|
|
3995
4005
|
/**
|
|
3996
4006
|
* Disallow negated expression in equality check.
|
|
3997
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4007
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-negation-in-equality-check.md
|
|
3998
4008
|
*/
|
|
3999
4009
|
'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
|
|
4000
4010
|
/**
|
|
4001
4011
|
* Disallow nested ternary expressions.
|
|
4002
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4012
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-nested-ternary.md
|
|
4003
4013
|
*/
|
|
4004
4014
|
'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
|
|
4005
4015
|
/**
|
|
4006
4016
|
* Disallow `new Array()`.
|
|
4007
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4017
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-new-array.md
|
|
4008
4018
|
*/
|
|
4009
4019
|
'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
|
|
4010
4020
|
/**
|
|
4011
4021
|
* Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
|
|
4012
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4022
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-new-buffer.md
|
|
4013
4023
|
*/
|
|
4014
4024
|
'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
|
|
4015
4025
|
/**
|
|
4016
4026
|
* Disallow the use of the `null` literal.
|
|
4017
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4027
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-null.md
|
|
4018
4028
|
*/
|
|
4019
4029
|
'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
|
|
4020
4030
|
/**
|
|
4021
4031
|
* Disallow the use of objects as default parameters.
|
|
4022
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4032
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-object-as-default-parameter.md
|
|
4023
4033
|
*/
|
|
4024
4034
|
'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
|
|
4025
4035
|
/**
|
|
4026
4036
|
* Disallow `process.exit()`.
|
|
4027
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4037
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-process-exit.md
|
|
4028
4038
|
*/
|
|
4029
4039
|
'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
|
|
4030
|
-
/**
|
|
4031
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#no-reduce
|
|
4032
|
-
* @deprecated
|
|
4033
|
-
*/
|
|
4034
|
-
'unicorn/no-reduce'?: Linter.RuleEntry<[]>;
|
|
4035
4040
|
/**
|
|
4036
4041
|
* Disallow passing single-element arrays to `Promise` methods.
|
|
4037
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4042
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-single-promise-in-promise-methods.md
|
|
4038
4043
|
*/
|
|
4039
4044
|
'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
|
|
4040
4045
|
/**
|
|
4041
4046
|
* Disallow classes that only have static members.
|
|
4042
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4047
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-static-only-class.md
|
|
4043
4048
|
*/
|
|
4044
4049
|
'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
|
|
4045
4050
|
/**
|
|
4046
4051
|
* Disallow `then` property.
|
|
4047
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4052
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-thenable.md
|
|
4048
4053
|
*/
|
|
4049
4054
|
'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
|
|
4050
4055
|
/**
|
|
4051
4056
|
* Disallow assigning `this` to a variable.
|
|
4052
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4057
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-this-assignment.md
|
|
4053
4058
|
*/
|
|
4054
4059
|
'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
|
|
4055
4060
|
/**
|
|
4056
4061
|
* Disallow comparing `undefined` using `typeof`.
|
|
4057
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4062
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-typeof-undefined.md
|
|
4058
4063
|
*/
|
|
4059
4064
|
'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
|
|
4060
4065
|
/**
|
|
4061
4066
|
* Disallow awaiting non-promise values.
|
|
4062
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4067
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unnecessary-await.md
|
|
4063
4068
|
*/
|
|
4064
4069
|
'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
|
|
4065
4070
|
/**
|
|
4066
4071
|
* Enforce the use of built-in methods instead of unnecessary polyfills.
|
|
4067
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4072
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unnecessary-polyfills.md
|
|
4068
4073
|
*/
|
|
4069
4074
|
'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
|
|
4070
4075
|
/**
|
|
4071
4076
|
* Disallow unreadable array destructuring.
|
|
4072
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4077
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unreadable-array-destructuring.md
|
|
4073
4078
|
*/
|
|
4074
4079
|
'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>;
|
|
4075
4080
|
/**
|
|
4076
4081
|
* Disallow unreadable IIFEs.
|
|
4077
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4082
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unreadable-iife.md
|
|
4078
4083
|
*/
|
|
4079
4084
|
'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
|
|
4080
|
-
/**
|
|
4081
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#no-unsafe-regex
|
|
4082
|
-
* @deprecated
|
|
4083
|
-
*/
|
|
4084
|
-
'unicorn/no-unsafe-regex'?: Linter.RuleEntry<[]>;
|
|
4085
4085
|
/**
|
|
4086
4086
|
* Disallow unused object properties.
|
|
4087
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4087
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unused-properties.md
|
|
4088
4088
|
*/
|
|
4089
4089
|
'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
|
|
4090
4090
|
/**
|
|
4091
4091
|
* Disallow useless fallback when spreading in object literals.
|
|
4092
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4092
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-fallback-in-spread.md
|
|
4093
4093
|
*/
|
|
4094
4094
|
'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
|
|
4095
4095
|
/**
|
|
4096
4096
|
* Disallow useless array length check.
|
|
4097
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4097
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-length-check.md
|
|
4098
4098
|
*/
|
|
4099
4099
|
'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
|
|
4100
4100
|
/**
|
|
4101
4101
|
* Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
|
|
4102
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4102
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-promise-resolve-reject.md
|
|
4103
4103
|
*/
|
|
4104
4104
|
'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
|
|
4105
4105
|
/**
|
|
4106
4106
|
* Disallow unnecessary spread.
|
|
4107
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4107
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-spread.md
|
|
4108
4108
|
*/
|
|
4109
4109
|
'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
|
|
4110
4110
|
/**
|
|
4111
4111
|
* Disallow useless case in switch statements.
|
|
4112
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4112
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-switch-case.md
|
|
4113
4113
|
*/
|
|
4114
4114
|
'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
|
|
4115
4115
|
/**
|
|
4116
4116
|
* Disallow useless `undefined`.
|
|
4117
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4117
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-undefined.md
|
|
4118
4118
|
*/
|
|
4119
4119
|
'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
|
|
4120
4120
|
/**
|
|
4121
4121
|
* Disallow number literals with zero fractions or dangling dots.
|
|
4122
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4122
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-zero-fractions.md
|
|
4123
4123
|
*/
|
|
4124
4124
|
'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
|
|
4125
4125
|
/**
|
|
4126
4126
|
* Enforce proper case for numeric literals.
|
|
4127
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4127
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/number-literal-case.md
|
|
4128
4128
|
*/
|
|
4129
4129
|
'unicorn/number-literal-case'?: Linter.RuleEntry<[]>;
|
|
4130
4130
|
/**
|
|
4131
4131
|
* Enforce the style of numeric separators by correctly grouping digits.
|
|
4132
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4132
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/numeric-separators-style.md
|
|
4133
4133
|
*/
|
|
4134
4134
|
'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
|
|
4135
4135
|
/**
|
|
4136
4136
|
* Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
|
|
4137
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4137
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-add-event-listener.md
|
|
4138
4138
|
*/
|
|
4139
4139
|
'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
|
|
4140
4140
|
/**
|
|
4141
4141
|
* Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
|
|
4142
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4142
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-find.md
|
|
4143
4143
|
*/
|
|
4144
4144
|
'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
|
|
4145
4145
|
/**
|
|
4146
4146
|
* Prefer `Array#flat()` over legacy techniques to flatten arrays.
|
|
4147
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4147
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-flat.md
|
|
4148
4148
|
*/
|
|
4149
4149
|
'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
|
|
4150
4150
|
/**
|
|
4151
4151
|
* Prefer `.flatMap(…)` over `.map(…).flat()`.
|
|
4152
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4152
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-flat-map.md
|
|
4153
4153
|
*/
|
|
4154
4154
|
'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
|
|
4155
4155
|
/**
|
|
4156
4156
|
* Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
|
|
4157
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4157
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-index-of.md
|
|
4158
4158
|
*/
|
|
4159
4159
|
'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
|
|
4160
4160
|
/**
|
|
4161
4161
|
* Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
|
|
4162
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4162
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-some.md
|
|
4163
4163
|
*/
|
|
4164
4164
|
'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
|
|
4165
4165
|
/**
|
|
4166
4166
|
* Prefer `.at()` method for index access and `String#charAt()`.
|
|
4167
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4167
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-at.md
|
|
4168
4168
|
*/
|
|
4169
4169
|
'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
|
|
4170
4170
|
/**
|
|
4171
4171
|
* Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
|
|
4172
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4172
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-blob-reading-methods.md
|
|
4173
4173
|
*/
|
|
4174
4174
|
'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
|
|
4175
4175
|
/**
|
|
4176
4176
|
* Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
|
|
4177
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4177
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-code-point.md
|
|
4178
4178
|
*/
|
|
4179
4179
|
'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
|
|
4180
|
-
/**
|
|
4181
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-dataset
|
|
4182
|
-
* @deprecated
|
|
4183
|
-
*/
|
|
4184
|
-
'unicorn/prefer-dataset'?: Linter.RuleEntry<[]>;
|
|
4185
4180
|
/**
|
|
4186
4181
|
* Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
|
|
4187
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4182
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-date-now.md
|
|
4188
4183
|
*/
|
|
4189
4184
|
'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
|
|
4190
4185
|
/**
|
|
4191
4186
|
* Prefer default parameters over reassignment.
|
|
4192
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4187
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-default-parameters.md
|
|
4193
4188
|
*/
|
|
4194
4189
|
'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
|
|
4195
4190
|
/**
|
|
4196
4191
|
* Prefer `Node#append()` over `Node#appendChild()`.
|
|
4197
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4192
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-append.md
|
|
4198
4193
|
*/
|
|
4199
4194
|
'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
|
|
4200
4195
|
/**
|
|
4201
4196
|
* Prefer using `.dataset` on DOM elements over calling attribute methods.
|
|
4202
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4197
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-dataset.md
|
|
4203
4198
|
*/
|
|
4204
4199
|
'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
|
|
4205
4200
|
/**
|
|
4206
4201
|
* Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
|
|
4207
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4202
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-remove.md
|
|
4208
4203
|
*/
|
|
4209
4204
|
'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
|
|
4210
4205
|
/**
|
|
4211
4206
|
* Prefer `.textContent` over `.innerText`.
|
|
4212
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4207
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-text-content.md
|
|
4213
4208
|
*/
|
|
4214
4209
|
'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
|
|
4215
|
-
/**
|
|
4216
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-event-key
|
|
4217
|
-
* @deprecated
|
|
4218
|
-
*/
|
|
4219
|
-
'unicorn/prefer-event-key'?: Linter.RuleEntry<[]>;
|
|
4220
4210
|
/**
|
|
4221
4211
|
* Prefer `EventTarget` over `EventEmitter`.
|
|
4222
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4212
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-event-target.md
|
|
4223
4213
|
*/
|
|
4224
4214
|
'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
|
|
4225
|
-
/**
|
|
4226
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-exponentiation-operator
|
|
4227
|
-
* @deprecated
|
|
4228
|
-
*/
|
|
4229
|
-
'unicorn/prefer-exponentiation-operator'?: Linter.RuleEntry<[]>;
|
|
4230
4215
|
/**
|
|
4231
4216
|
* Prefer `export…from` when re-exporting.
|
|
4232
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4217
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-export-from.md
|
|
4233
4218
|
*/
|
|
4234
4219
|
'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
|
|
4235
|
-
/**
|
|
4236
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-flat-map
|
|
4237
|
-
* @deprecated
|
|
4238
|
-
*/
|
|
4239
|
-
'unicorn/prefer-flat-map'?: Linter.RuleEntry<[]>;
|
|
4240
4220
|
/**
|
|
4241
4221
|
* Prefer `globalThis` over `window`, `self`, and `global`.
|
|
4242
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4222
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-global-this.md
|
|
4243
4223
|
*/
|
|
4244
4224
|
'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
|
|
4245
4225
|
/**
|
|
4246
4226
|
* Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
|
|
4247
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4227
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-includes.md
|
|
4248
4228
|
*/
|
|
4249
4229
|
'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
|
|
4250
4230
|
/**
|
|
4251
4231
|
* Prefer reading a JSON file as a buffer.
|
|
4252
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4232
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-json-parse-buffer.md
|
|
4253
4233
|
*/
|
|
4254
4234
|
'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
|
|
4255
4235
|
/**
|
|
4256
4236
|
* Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
|
|
4257
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4237
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-keyboard-event-key.md
|
|
4258
4238
|
*/
|
|
4259
4239
|
'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
|
|
4260
4240
|
/**
|
|
4261
4241
|
* Prefer using a logical operator over a ternary.
|
|
4262
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4242
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-logical-operator-over-ternary.md
|
|
4263
4243
|
*/
|
|
4264
4244
|
'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
|
|
4265
4245
|
/**
|
|
4266
4246
|
* Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
|
|
4267
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4247
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-math-min-max.md
|
|
4268
4248
|
*/
|
|
4269
4249
|
'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
|
|
4270
4250
|
/**
|
|
4271
4251
|
* Enforce the use of `Math.trunc` instead of bitwise operators.
|
|
4272
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4252
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-math-trunc.md
|
|
4273
4253
|
*/
|
|
4274
4254
|
'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
|
|
4275
4255
|
/**
|
|
4276
4256
|
* Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
|
|
4277
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4257
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-modern-dom-apis.md
|
|
4278
4258
|
*/
|
|
4279
4259
|
'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
|
|
4280
4260
|
/**
|
|
4281
4261
|
* Prefer modern `Math` APIs over legacy patterns.
|
|
4282
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4262
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-modern-math-apis.md
|
|
4283
4263
|
*/
|
|
4284
4264
|
'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
|
|
4285
4265
|
/**
|
|
4286
4266
|
* Prefer JavaScript modules (ESM) over CommonJS.
|
|
4287
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4267
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-module.md
|
|
4288
4268
|
*/
|
|
4289
4269
|
'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
|
|
4290
4270
|
/**
|
|
4291
4271
|
* Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
|
|
4292
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4272
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-native-coercion-functions.md
|
|
4293
4273
|
*/
|
|
4294
4274
|
'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
|
|
4295
4275
|
/**
|
|
4296
4276
|
* Prefer negative index over `.length - index` when possible.
|
|
4297
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4277
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-negative-index.md
|
|
4298
4278
|
*/
|
|
4299
4279
|
'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
|
|
4300
|
-
/**
|
|
4301
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-node-append
|
|
4302
|
-
* @deprecated
|
|
4303
|
-
*/
|
|
4304
|
-
'unicorn/prefer-node-append'?: Linter.RuleEntry<[]>;
|
|
4305
4280
|
/**
|
|
4306
4281
|
* Prefer using the `node:` protocol when importing Node.js builtin modules.
|
|
4307
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4282
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-node-protocol.md
|
|
4308
4283
|
*/
|
|
4309
4284
|
'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
|
|
4310
|
-
/**
|
|
4311
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-node-remove
|
|
4312
|
-
* @deprecated
|
|
4313
|
-
*/
|
|
4314
|
-
'unicorn/prefer-node-remove'?: Linter.RuleEntry<[]>;
|
|
4315
4285
|
/**
|
|
4316
4286
|
* Prefer `Number` static properties over global ones.
|
|
4317
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4287
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-number-properties.md
|
|
4318
4288
|
*/
|
|
4319
4289
|
'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
|
|
4320
4290
|
/**
|
|
4321
4291
|
* Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
|
|
4322
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4292
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-object-from-entries.md
|
|
4323
4293
|
*/
|
|
4324
4294
|
'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
|
|
4325
|
-
/**
|
|
4326
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-object-has-own
|
|
4327
|
-
* @deprecated
|
|
4328
|
-
*/
|
|
4329
|
-
'unicorn/prefer-object-has-own'?: Linter.RuleEntry<[]>;
|
|
4330
4295
|
/**
|
|
4331
4296
|
* Prefer omitting the `catch` binding parameter.
|
|
4332
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4297
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-optional-catch-binding.md
|
|
4333
4298
|
*/
|
|
4334
4299
|
'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
|
|
4335
4300
|
/**
|
|
4336
4301
|
* Prefer borrowing methods from the prototype instead of the instance.
|
|
4337
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4302
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-prototype-methods.md
|
|
4338
4303
|
*/
|
|
4339
4304
|
'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
|
|
4340
4305
|
/**
|
|
4341
4306
|
* Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
|
|
4342
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4307
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-query-selector.md
|
|
4343
4308
|
*/
|
|
4344
4309
|
'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>;
|
|
4345
4310
|
/**
|
|
4346
4311
|
* Prefer `Reflect.apply()` over `Function#apply()`.
|
|
4347
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4312
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-reflect-apply.md
|
|
4348
4313
|
*/
|
|
4349
4314
|
'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
|
|
4350
4315
|
/**
|
|
4351
4316
|
* Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
|
|
4352
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4317
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-regexp-test.md
|
|
4353
4318
|
*/
|
|
4354
4319
|
'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
|
|
4355
|
-
/**
|
|
4356
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-replace-all
|
|
4357
|
-
* @deprecated
|
|
4358
|
-
*/
|
|
4359
|
-
'unicorn/prefer-replace-all'?: Linter.RuleEntry<[]>;
|
|
4360
4320
|
/**
|
|
4361
4321
|
* Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
|
|
4362
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4322
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-set-has.md
|
|
4363
4323
|
*/
|
|
4364
4324
|
'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>;
|
|
4365
4325
|
/**
|
|
4366
4326
|
* Prefer using `Set#size` instead of `Array#length`.
|
|
4367
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4327
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-set-size.md
|
|
4368
4328
|
*/
|
|
4369
4329
|
'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
|
|
4370
4330
|
/**
|
|
4371
4331
|
* Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
|
|
4372
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4332
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-spread.md
|
|
4373
4333
|
*/
|
|
4374
4334
|
'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
|
|
4375
|
-
/**
|
|
4376
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-starts-ends-with
|
|
4377
|
-
* @deprecated
|
|
4378
|
-
*/
|
|
4379
|
-
'unicorn/prefer-starts-ends-with'?: Linter.RuleEntry<[]>;
|
|
4380
4335
|
/**
|
|
4381
4336
|
* Prefer using the `String.raw` tag to avoid escaping `\`.
|
|
4382
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4337
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-raw.md
|
|
4383
4338
|
*/
|
|
4384
4339
|
'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
|
|
4385
4340
|
/**
|
|
4386
4341
|
* Prefer `String#replaceAll()` over regex searches with the global flag.
|
|
4387
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4342
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-replace-all.md
|
|
4388
4343
|
*/
|
|
4389
4344
|
'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
|
|
4390
4345
|
/**
|
|
4391
4346
|
* Prefer `String#slice()` over `String#substr()` and `String#substring()`.
|
|
4392
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4347
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-slice.md
|
|
4393
4348
|
*/
|
|
4394
4349
|
'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
|
|
4395
4350
|
/**
|
|
4396
4351
|
* Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
|
|
4397
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4352
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-starts-ends-with.md
|
|
4398
4353
|
*/
|
|
4399
4354
|
'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
|
|
4400
4355
|
/**
|
|
4401
4356
|
* Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
|
|
4402
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4357
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-trim-start-end.md
|
|
4403
4358
|
*/
|
|
4404
4359
|
'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
|
|
4405
4360
|
/**
|
|
4406
4361
|
* Prefer using `structuredClone` to create a deep clone.
|
|
4407
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4362
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-structured-clone.md
|
|
4408
4363
|
*/
|
|
4409
4364
|
'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
|
|
4410
4365
|
/**
|
|
4411
4366
|
* Prefer `switch` over multiple `else-if`.
|
|
4412
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4367
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-switch.md
|
|
4413
4368
|
*/
|
|
4414
4369
|
'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
|
|
4415
4370
|
/**
|
|
4416
4371
|
* Prefer ternary expressions over simple `if-else` statements.
|
|
4417
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4372
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-ternary.md
|
|
4418
4373
|
*/
|
|
4419
4374
|
'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
|
|
4420
|
-
/**
|
|
4421
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-text-content
|
|
4422
|
-
* @deprecated
|
|
4423
|
-
*/
|
|
4424
|
-
'unicorn/prefer-text-content'?: Linter.RuleEntry<[]>;
|
|
4425
4375
|
/**
|
|
4426
4376
|
* Prefer top-level await over top-level promises and async function calls.
|
|
4427
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4377
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-top-level-await.md
|
|
4428
4378
|
*/
|
|
4429
4379
|
'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
|
|
4430
|
-
/**
|
|
4431
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-trim-start-end
|
|
4432
|
-
* @deprecated
|
|
4433
|
-
*/
|
|
4434
|
-
'unicorn/prefer-trim-start-end'?: Linter.RuleEntry<[]>;
|
|
4435
4380
|
/**
|
|
4436
4381
|
* Enforce throwing `TypeError` in type checking conditions.
|
|
4437
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4382
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-type-error.md
|
|
4438
4383
|
*/
|
|
4439
4384
|
'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
|
|
4440
4385
|
/**
|
|
4441
4386
|
* Prevent abbreviations.
|
|
4442
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4387
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prevent-abbreviations.md
|
|
4443
4388
|
*/
|
|
4444
4389
|
'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>;
|
|
4445
|
-
/**
|
|
4446
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#regex-shorthand
|
|
4447
|
-
* @deprecated
|
|
4448
|
-
*/
|
|
4449
|
-
'unicorn/regex-shorthand'?: Linter.RuleEntry<[]>;
|
|
4450
4390
|
/**
|
|
4451
4391
|
* Enforce consistent relative URL style.
|
|
4452
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4392
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/relative-url-style.md
|
|
4453
4393
|
*/
|
|
4454
4394
|
'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
|
|
4455
4395
|
/**
|
|
4456
4396
|
* Enforce using the separator argument with `Array#join()`.
|
|
4457
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4397
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/require-array-join-separator.md
|
|
4458
4398
|
*/
|
|
4459
4399
|
'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
|
|
4460
4400
|
/**
|
|
4461
4401
|
* Enforce using the digits argument with `Number#toFixed()`.
|
|
4462
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4402
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/require-number-to-fixed-digits-argument.md
|
|
4463
4403
|
*/
|
|
4464
4404
|
'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
|
|
4465
4405
|
/**
|
|
4466
4406
|
* Enforce using the `targetOrigin` argument with `window.postMessage()`.
|
|
4467
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4407
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/require-post-message-target-origin.md
|
|
4468
4408
|
*/
|
|
4469
4409
|
'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
|
|
4470
4410
|
/**
|
|
4471
4411
|
* Enforce better string content.
|
|
4472
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4412
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/string-content.md
|
|
4473
4413
|
*/
|
|
4474
4414
|
'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
|
|
4475
4415
|
/**
|
|
4476
4416
|
* Enforce consistent brace style for `case` clauses.
|
|
4477
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4417
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/switch-case-braces.md
|
|
4478
4418
|
*/
|
|
4479
4419
|
'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
|
|
4480
4420
|
/**
|
|
4481
4421
|
* Fix whitespace-insensitive template indentation.
|
|
4482
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4422
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/template-indent.md
|
|
4483
4423
|
*/
|
|
4484
4424
|
'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
|
|
4485
4425
|
/**
|
|
4486
4426
|
* Enforce consistent case for text encoding identifiers.
|
|
4487
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4427
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/text-encoding-identifier-case.md
|
|
4488
4428
|
*/
|
|
4489
4429
|
'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<[]>;
|
|
4490
4430
|
/**
|
|
4491
4431
|
* Require `new` when creating an error.
|
|
4492
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4432
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/throw-new-error.md
|
|
4493
4433
|
*/
|
|
4494
4434
|
'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
|
|
4495
4435
|
/**
|
|
@@ -9498,7 +9438,18 @@ type NodeNoRestrictedRequire = [] | [
|
|
|
9498
9438
|
type NodeNoSync = [] | [
|
|
9499
9439
|
{
|
|
9500
9440
|
allowAtRootLevel?: boolean;
|
|
9501
|
-
ignores?: string
|
|
9441
|
+
ignores?: (string | {
|
|
9442
|
+
from?: "file";
|
|
9443
|
+
path?: string;
|
|
9444
|
+
name?: string[];
|
|
9445
|
+
} | {
|
|
9446
|
+
from?: "lib";
|
|
9447
|
+
name?: string[];
|
|
9448
|
+
} | {
|
|
9449
|
+
from?: "package";
|
|
9450
|
+
package?: string;
|
|
9451
|
+
name?: string[];
|
|
9452
|
+
})[];
|
|
9502
9453
|
}
|
|
9503
9454
|
];
|
|
9504
9455
|
type NodeNoUnpublishedBin = [] | [
|
|
@@ -9737,10 +9688,16 @@ type PaddingLineBetweenStatements = {
|
|
|
9737
9688
|
}[];
|
|
9738
9689
|
type PerfectionistSortArrayIncludes = {
|
|
9739
9690
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
9691
|
+
fallbackSort?: {
|
|
9692
|
+
order?: ("asc" | "desc");
|
|
9693
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9694
|
+
[k: string]: unknown | undefined;
|
|
9695
|
+
};
|
|
9740
9696
|
ignoreCase?: boolean;
|
|
9741
9697
|
alphabet?: string;
|
|
9742
9698
|
locales?: (string | string[]);
|
|
9743
9699
|
order?: ("asc" | "desc");
|
|
9700
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9744
9701
|
groupKind?: ("mixed" | "literals-first" | "spreads-first");
|
|
9745
9702
|
customGroups?: ({
|
|
9746
9703
|
groupName?: string;
|
|
@@ -9749,7 +9706,13 @@ type PerfectionistSortArrayIncludes = {
|
|
|
9749
9706
|
newlinesInside?: ("always" | "never");
|
|
9750
9707
|
anyOf?: {
|
|
9751
9708
|
selector?: ("literal" | "spread");
|
|
9752
|
-
elementNamePattern?:
|
|
9709
|
+
elementNamePattern?: (({
|
|
9710
|
+
pattern?: string;
|
|
9711
|
+
flags?: string;
|
|
9712
|
+
} | string)[] | ({
|
|
9713
|
+
pattern?: string;
|
|
9714
|
+
flags?: string;
|
|
9715
|
+
} | string));
|
|
9753
9716
|
}[];
|
|
9754
9717
|
} | {
|
|
9755
9718
|
groupName?: string;
|
|
@@ -9757,103 +9720,220 @@ type PerfectionistSortArrayIncludes = {
|
|
|
9757
9720
|
order?: ("desc" | "asc");
|
|
9758
9721
|
newlinesInside?: ("always" | "never");
|
|
9759
9722
|
selector?: ("literal" | "spread");
|
|
9760
|
-
elementNamePattern?:
|
|
9723
|
+
elementNamePattern?: (({
|
|
9724
|
+
pattern?: string;
|
|
9725
|
+
flags?: string;
|
|
9726
|
+
} | string)[] | ({
|
|
9727
|
+
pattern?: string;
|
|
9728
|
+
flags?: string;
|
|
9729
|
+
} | string));
|
|
9761
9730
|
})[];
|
|
9762
9731
|
useConfigurationIf?: {
|
|
9763
|
-
allNamesMatchPattern?:
|
|
9732
|
+
allNamesMatchPattern?: (({
|
|
9733
|
+
pattern?: string;
|
|
9734
|
+
flags?: string;
|
|
9735
|
+
} | string)[] | ({
|
|
9736
|
+
pattern?: string;
|
|
9737
|
+
flags?: string;
|
|
9738
|
+
} | string));
|
|
9764
9739
|
};
|
|
9765
|
-
|
|
9766
|
-
|
|
9767
|
-
|
|
9768
|
-
|
|
9769
|
-
|
|
9740
|
+
partitionByComment?: (boolean | (({
|
|
9741
|
+
pattern?: string;
|
|
9742
|
+
flags?: string;
|
|
9743
|
+
} | string)[] | ({
|
|
9744
|
+
pattern?: string;
|
|
9745
|
+
flags?: string;
|
|
9746
|
+
} | string)) | {
|
|
9747
|
+
block?: (boolean | (({
|
|
9748
|
+
pattern?: string;
|
|
9749
|
+
flags?: string;
|
|
9750
|
+
} | string)[] | ({
|
|
9751
|
+
pattern?: string;
|
|
9752
|
+
flags?: string;
|
|
9753
|
+
} | string)));
|
|
9754
|
+
line?: (boolean | (({
|
|
9755
|
+
pattern?: string;
|
|
9756
|
+
flags?: string;
|
|
9757
|
+
} | string)[] | ({
|
|
9758
|
+
pattern?: string;
|
|
9759
|
+
flags?: string;
|
|
9760
|
+
} | string)));
|
|
9770
9761
|
});
|
|
9771
9762
|
partitionByNewLine?: boolean;
|
|
9772
9763
|
newlinesBetween?: ("ignore" | "always" | "never");
|
|
9773
9764
|
groups?: (string | string[] | {
|
|
9774
9765
|
newlinesBetween?: ("ignore" | "always" | "never");
|
|
9775
|
-
[k: string]: unknown | undefined;
|
|
9776
9766
|
})[];
|
|
9777
9767
|
}[];
|
|
9778
9768
|
type PerfectionistSortClasses = [] | [
|
|
9779
9769
|
{
|
|
9780
9770
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
9771
|
+
fallbackSort?: {
|
|
9772
|
+
order?: ("asc" | "desc");
|
|
9773
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9774
|
+
[k: string]: unknown | undefined;
|
|
9775
|
+
};
|
|
9781
9776
|
ignoreCase?: boolean;
|
|
9782
9777
|
alphabet?: string;
|
|
9783
9778
|
locales?: (string | string[]);
|
|
9784
9779
|
order?: ("asc" | "desc");
|
|
9785
|
-
|
|
9780
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9786
9781
|
customGroups?: ({
|
|
9787
9782
|
groupName?: string;
|
|
9788
9783
|
type?: ("alphabetical" | "line-length" | "natural" | "unsorted");
|
|
9789
9784
|
order?: ("desc" | "asc");
|
|
9790
9785
|
newlinesInside?: ("always" | "never");
|
|
9791
9786
|
anyOf?: {
|
|
9792
|
-
decoratorNamePattern?: string;
|
|
9793
9787
|
modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[];
|
|
9794
9788
|
selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method");
|
|
9795
|
-
|
|
9796
|
-
|
|
9789
|
+
decoratorNamePattern?: (({
|
|
9790
|
+
pattern?: string;
|
|
9791
|
+
flags?: string;
|
|
9792
|
+
} | string)[] | ({
|
|
9793
|
+
pattern?: string;
|
|
9794
|
+
flags?: string;
|
|
9795
|
+
} | string));
|
|
9796
|
+
elementValuePattern?: (({
|
|
9797
|
+
pattern?: string;
|
|
9798
|
+
flags?: string;
|
|
9799
|
+
} | string)[] | ({
|
|
9800
|
+
pattern?: string;
|
|
9801
|
+
flags?: string;
|
|
9802
|
+
} | string));
|
|
9803
|
+
elementNamePattern?: (({
|
|
9804
|
+
pattern?: string;
|
|
9805
|
+
flags?: string;
|
|
9806
|
+
} | string)[] | ({
|
|
9807
|
+
pattern?: string;
|
|
9808
|
+
flags?: string;
|
|
9809
|
+
} | string));
|
|
9797
9810
|
}[];
|
|
9798
9811
|
} | {
|
|
9799
9812
|
groupName?: string;
|
|
9800
9813
|
type?: ("alphabetical" | "line-length" | "natural" | "unsorted");
|
|
9801
9814
|
order?: ("desc" | "asc");
|
|
9802
9815
|
newlinesInside?: ("always" | "never");
|
|
9803
|
-
decoratorNamePattern?: string;
|
|
9804
9816
|
modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[];
|
|
9805
9817
|
selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method");
|
|
9806
|
-
|
|
9807
|
-
|
|
9818
|
+
decoratorNamePattern?: (({
|
|
9819
|
+
pattern?: string;
|
|
9820
|
+
flags?: string;
|
|
9821
|
+
} | string)[] | ({
|
|
9822
|
+
pattern?: string;
|
|
9823
|
+
flags?: string;
|
|
9824
|
+
} | string));
|
|
9825
|
+
elementValuePattern?: (({
|
|
9826
|
+
pattern?: string;
|
|
9827
|
+
flags?: string;
|
|
9828
|
+
} | string)[] | ({
|
|
9829
|
+
pattern?: string;
|
|
9830
|
+
flags?: string;
|
|
9831
|
+
} | string));
|
|
9832
|
+
elementNamePattern?: (({
|
|
9833
|
+
pattern?: string;
|
|
9834
|
+
flags?: string;
|
|
9835
|
+
} | string)[] | ({
|
|
9836
|
+
pattern?: string;
|
|
9837
|
+
flags?: string;
|
|
9838
|
+
} | string));
|
|
9808
9839
|
})[];
|
|
9809
|
-
|
|
9810
|
-
|
|
9811
|
-
|
|
9812
|
-
|
|
9840
|
+
ignoreCallbackDependenciesPatterns?: (({
|
|
9841
|
+
pattern?: string;
|
|
9842
|
+
flags?: string;
|
|
9843
|
+
} | string)[] | ({
|
|
9844
|
+
pattern?: string;
|
|
9845
|
+
flags?: string;
|
|
9846
|
+
} | string));
|
|
9847
|
+
partitionByComment?: (boolean | (({
|
|
9848
|
+
pattern?: string;
|
|
9849
|
+
flags?: string;
|
|
9850
|
+
} | string)[] | ({
|
|
9851
|
+
pattern?: string;
|
|
9852
|
+
flags?: string;
|
|
9853
|
+
} | string)) | {
|
|
9854
|
+
block?: (boolean | (({
|
|
9855
|
+
pattern?: string;
|
|
9856
|
+
flags?: string;
|
|
9857
|
+
} | string)[] | ({
|
|
9858
|
+
pattern?: string;
|
|
9859
|
+
flags?: string;
|
|
9860
|
+
} | string)));
|
|
9861
|
+
line?: (boolean | (({
|
|
9862
|
+
pattern?: string;
|
|
9863
|
+
flags?: string;
|
|
9864
|
+
} | string)[] | ({
|
|
9865
|
+
pattern?: string;
|
|
9866
|
+
flags?: string;
|
|
9867
|
+
} | string)));
|
|
9813
9868
|
});
|
|
9814
9869
|
partitionByNewLine?: boolean;
|
|
9815
9870
|
newlinesBetween?: ("ignore" | "always" | "never");
|
|
9816
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom");
|
|
9817
9871
|
groups?: (string | string[] | {
|
|
9818
9872
|
newlinesBetween?: ("ignore" | "always" | "never");
|
|
9819
|
-
[k: string]: unknown | undefined;
|
|
9820
9873
|
})[];
|
|
9821
9874
|
}
|
|
9822
9875
|
];
|
|
9823
9876
|
type PerfectionistSortDecorators = [] | [
|
|
9824
9877
|
{
|
|
9825
9878
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
9879
|
+
fallbackSort?: {
|
|
9880
|
+
order?: ("asc" | "desc");
|
|
9881
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9882
|
+
[k: string]: unknown | undefined;
|
|
9883
|
+
};
|
|
9826
9884
|
ignoreCase?: boolean;
|
|
9827
9885
|
alphabet?: string;
|
|
9828
9886
|
locales?: (string | string[]);
|
|
9829
9887
|
order?: ("asc" | "desc");
|
|
9888
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9830
9889
|
sortOnParameters?: boolean;
|
|
9831
9890
|
sortOnProperties?: boolean;
|
|
9832
9891
|
sortOnAccessors?: boolean;
|
|
9833
9892
|
sortOnMethods?: boolean;
|
|
9834
9893
|
sortOnClasses?: boolean;
|
|
9835
|
-
partitionByComment?: (
|
|
9836
|
-
|
|
9837
|
-
|
|
9838
|
-
|
|
9894
|
+
partitionByComment?: (boolean | (({
|
|
9895
|
+
pattern?: string;
|
|
9896
|
+
flags?: string;
|
|
9897
|
+
} | string)[] | ({
|
|
9898
|
+
pattern?: string;
|
|
9899
|
+
flags?: string;
|
|
9900
|
+
} | string)) | {
|
|
9901
|
+
block?: (boolean | (({
|
|
9902
|
+
pattern?: string;
|
|
9903
|
+
flags?: string;
|
|
9904
|
+
} | string)[] | ({
|
|
9905
|
+
pattern?: string;
|
|
9906
|
+
flags?: string;
|
|
9907
|
+
} | string)));
|
|
9908
|
+
line?: (boolean | (({
|
|
9909
|
+
pattern?: string;
|
|
9910
|
+
flags?: string;
|
|
9911
|
+
} | string)[] | ({
|
|
9912
|
+
pattern?: string;
|
|
9913
|
+
flags?: string;
|
|
9914
|
+
} | string)));
|
|
9839
9915
|
});
|
|
9840
9916
|
customGroups?: {
|
|
9841
9917
|
[k: string]: (string | string[]) | undefined;
|
|
9842
9918
|
};
|
|
9843
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom");
|
|
9844
9919
|
groups?: (string | string[] | {
|
|
9845
9920
|
newlinesBetween?: ("ignore" | "always" | "never");
|
|
9846
|
-
[k: string]: unknown | undefined;
|
|
9847
9921
|
})[];
|
|
9848
9922
|
}
|
|
9849
9923
|
];
|
|
9850
9924
|
type PerfectionistSortEnums = [] | [
|
|
9851
9925
|
{
|
|
9852
9926
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
9927
|
+
fallbackSort?: {
|
|
9928
|
+
order?: ("asc" | "desc");
|
|
9929
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9930
|
+
[k: string]: unknown | undefined;
|
|
9931
|
+
};
|
|
9853
9932
|
ignoreCase?: boolean;
|
|
9854
9933
|
alphabet?: string;
|
|
9855
9934
|
locales?: (string | string[]);
|
|
9856
9935
|
order?: ("asc" | "desc");
|
|
9936
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9857
9937
|
forceNumericSort?: boolean;
|
|
9858
9938
|
customGroups?: ({
|
|
9859
9939
|
[k: string]: (string | string[]) | undefined;
|
|
@@ -9863,73 +9943,144 @@ type PerfectionistSortEnums = [] | [
|
|
|
9863
9943
|
order?: ("desc" | "asc");
|
|
9864
9944
|
newlinesInside?: ("always" | "never");
|
|
9865
9945
|
anyOf?: {
|
|
9866
|
-
elementValuePattern?:
|
|
9867
|
-
|
|
9946
|
+
elementValuePattern?: (({
|
|
9947
|
+
pattern?: string;
|
|
9948
|
+
flags?: string;
|
|
9949
|
+
} | string)[] | ({
|
|
9950
|
+
pattern?: string;
|
|
9951
|
+
flags?: string;
|
|
9952
|
+
} | string));
|
|
9953
|
+
elementNamePattern?: (({
|
|
9954
|
+
pattern?: string;
|
|
9955
|
+
flags?: string;
|
|
9956
|
+
} | string)[] | ({
|
|
9957
|
+
pattern?: string;
|
|
9958
|
+
flags?: string;
|
|
9959
|
+
} | string));
|
|
9868
9960
|
}[];
|
|
9869
9961
|
} | {
|
|
9870
9962
|
groupName?: string;
|
|
9871
9963
|
type?: ("alphabetical" | "line-length" | "natural" | "unsorted");
|
|
9872
9964
|
order?: ("desc" | "asc");
|
|
9873
9965
|
newlinesInside?: ("always" | "never");
|
|
9874
|
-
elementValuePattern?:
|
|
9875
|
-
|
|
9966
|
+
elementValuePattern?: (({
|
|
9967
|
+
pattern?: string;
|
|
9968
|
+
flags?: string;
|
|
9969
|
+
} | string)[] | ({
|
|
9970
|
+
pattern?: string;
|
|
9971
|
+
flags?: string;
|
|
9972
|
+
} | string));
|
|
9973
|
+
elementNamePattern?: (({
|
|
9974
|
+
pattern?: string;
|
|
9975
|
+
flags?: string;
|
|
9976
|
+
} | string)[] | ({
|
|
9977
|
+
pattern?: string;
|
|
9978
|
+
flags?: string;
|
|
9979
|
+
} | string));
|
|
9876
9980
|
})[]);
|
|
9877
9981
|
sortByValue?: boolean;
|
|
9878
|
-
partitionByComment?: (
|
|
9879
|
-
|
|
9880
|
-
|
|
9881
|
-
|
|
9982
|
+
partitionByComment?: (boolean | (({
|
|
9983
|
+
pattern?: string;
|
|
9984
|
+
flags?: string;
|
|
9985
|
+
} | string)[] | ({
|
|
9986
|
+
pattern?: string;
|
|
9987
|
+
flags?: string;
|
|
9988
|
+
} | string)) | {
|
|
9989
|
+
block?: (boolean | (({
|
|
9990
|
+
pattern?: string;
|
|
9991
|
+
flags?: string;
|
|
9992
|
+
} | string)[] | ({
|
|
9993
|
+
pattern?: string;
|
|
9994
|
+
flags?: string;
|
|
9995
|
+
} | string)));
|
|
9996
|
+
line?: (boolean | (({
|
|
9997
|
+
pattern?: string;
|
|
9998
|
+
flags?: string;
|
|
9999
|
+
} | string)[] | ({
|
|
10000
|
+
pattern?: string;
|
|
10001
|
+
flags?: string;
|
|
10002
|
+
} | string)));
|
|
9882
10003
|
});
|
|
9883
10004
|
partitionByNewLine?: boolean;
|
|
9884
10005
|
newlinesBetween?: ("ignore" | "always" | "never");
|
|
9885
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom");
|
|
9886
10006
|
groups?: (string | string[] | {
|
|
9887
10007
|
newlinesBetween?: ("ignore" | "always" | "never");
|
|
9888
|
-
[k: string]: unknown | undefined;
|
|
9889
10008
|
})[];
|
|
9890
10009
|
}
|
|
9891
10010
|
];
|
|
9892
10011
|
type PerfectionistSortExports = [] | [
|
|
9893
10012
|
{
|
|
9894
10013
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10014
|
+
fallbackSort?: {
|
|
10015
|
+
order?: ("asc" | "desc");
|
|
10016
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10017
|
+
[k: string]: unknown | undefined;
|
|
10018
|
+
};
|
|
9895
10019
|
ignoreCase?: boolean;
|
|
9896
10020
|
alphabet?: string;
|
|
9897
10021
|
locales?: (string | string[]);
|
|
9898
10022
|
order?: ("asc" | "desc");
|
|
10023
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9899
10024
|
groupKind?: ("mixed" | "values-first" | "types-first");
|
|
9900
|
-
partitionByComment?: (
|
|
9901
|
-
|
|
9902
|
-
|
|
9903
|
-
|
|
10025
|
+
partitionByComment?: (boolean | (({
|
|
10026
|
+
pattern?: string;
|
|
10027
|
+
flags?: string;
|
|
10028
|
+
} | string)[] | ({
|
|
10029
|
+
pattern?: string;
|
|
10030
|
+
flags?: string;
|
|
10031
|
+
} | string)) | {
|
|
10032
|
+
block?: (boolean | (({
|
|
10033
|
+
pattern?: string;
|
|
10034
|
+
flags?: string;
|
|
10035
|
+
} | string)[] | ({
|
|
10036
|
+
pattern?: string;
|
|
10037
|
+
flags?: string;
|
|
10038
|
+
} | string)));
|
|
10039
|
+
line?: (boolean | (({
|
|
10040
|
+
pattern?: string;
|
|
10041
|
+
flags?: string;
|
|
10042
|
+
} | string)[] | ({
|
|
10043
|
+
pattern?: string;
|
|
10044
|
+
flags?: string;
|
|
10045
|
+
} | string)));
|
|
9904
10046
|
});
|
|
9905
10047
|
partitionByNewLine?: boolean;
|
|
9906
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom");
|
|
9907
10048
|
}
|
|
9908
10049
|
];
|
|
9909
10050
|
type PerfectionistSortHeritageClauses = [] | [
|
|
9910
10051
|
{
|
|
9911
10052
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10053
|
+
fallbackSort?: {
|
|
10054
|
+
order?: ("asc" | "desc");
|
|
10055
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10056
|
+
[k: string]: unknown | undefined;
|
|
10057
|
+
};
|
|
9912
10058
|
ignoreCase?: boolean;
|
|
9913
10059
|
alphabet?: string;
|
|
9914
10060
|
locales?: (string | string[]);
|
|
9915
10061
|
order?: ("asc" | "desc");
|
|
10062
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9916
10063
|
customGroups?: {
|
|
9917
10064
|
[k: string]: (string | string[]) | undefined;
|
|
9918
10065
|
};
|
|
9919
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom");
|
|
9920
10066
|
groups?: (string | string[] | {
|
|
9921
10067
|
newlinesBetween?: ("ignore" | "always" | "never");
|
|
9922
|
-
[k: string]: unknown | undefined;
|
|
9923
10068
|
})[];
|
|
9924
10069
|
}
|
|
9925
10070
|
];
|
|
9926
10071
|
type PerfectionistSortImports = [] | [_PerfectionistSortImportsSortImports];
|
|
9927
10072
|
type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLengthRequiresLineLengthType & {
|
|
9928
10073
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10074
|
+
fallbackSort?: {
|
|
10075
|
+
order?: ("asc" | "desc");
|
|
10076
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10077
|
+
[k: string]: unknown | undefined;
|
|
10078
|
+
};
|
|
9929
10079
|
ignoreCase?: boolean;
|
|
9930
10080
|
alphabet?: string;
|
|
9931
10081
|
locales?: (string | string[]);
|
|
9932
10082
|
order?: ("asc" | "desc");
|
|
10083
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9933
10084
|
customGroups?: {
|
|
9934
10085
|
value?: {
|
|
9935
10086
|
[k: string]: unknown | undefined;
|
|
@@ -9938,22 +10089,43 @@ type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLen
|
|
|
9938
10089
|
[k: string]: unknown | undefined;
|
|
9939
10090
|
};
|
|
9940
10091
|
};
|
|
9941
|
-
internalPattern?: string[];
|
|
9942
10092
|
maxLineLength?: number;
|
|
9943
10093
|
sortSideEffects?: boolean;
|
|
9944
10094
|
environment?: ("node" | "bun");
|
|
9945
10095
|
tsconfigRootDir?: string;
|
|
9946
|
-
partitionByComment?: (
|
|
9947
|
-
|
|
9948
|
-
|
|
9949
|
-
|
|
10096
|
+
partitionByComment?: (boolean | (({
|
|
10097
|
+
pattern?: string;
|
|
10098
|
+
flags?: string;
|
|
10099
|
+
} | string)[] | ({
|
|
10100
|
+
pattern?: string;
|
|
10101
|
+
flags?: string;
|
|
10102
|
+
} | string)) | {
|
|
10103
|
+
block?: (boolean | (({
|
|
10104
|
+
pattern?: string;
|
|
10105
|
+
flags?: string;
|
|
10106
|
+
} | string)[] | ({
|
|
10107
|
+
pattern?: string;
|
|
10108
|
+
flags?: string;
|
|
10109
|
+
} | string)));
|
|
10110
|
+
line?: (boolean | (({
|
|
10111
|
+
pattern?: string;
|
|
10112
|
+
flags?: string;
|
|
10113
|
+
} | string)[] | ({
|
|
10114
|
+
pattern?: string;
|
|
10115
|
+
flags?: string;
|
|
10116
|
+
} | string)));
|
|
9950
10117
|
});
|
|
9951
10118
|
partitionByNewLine?: boolean;
|
|
9952
10119
|
newlinesBetween?: ("ignore" | "always" | "never");
|
|
9953
|
-
|
|
10120
|
+
internalPattern?: (({
|
|
10121
|
+
pattern?: string;
|
|
10122
|
+
flags?: string;
|
|
10123
|
+
} | string)[] | ({
|
|
10124
|
+
pattern?: string;
|
|
10125
|
+
flags?: string;
|
|
10126
|
+
} | string));
|
|
9954
10127
|
groups?: (string | string[] | {
|
|
9955
10128
|
newlinesBetween?: ("ignore" | "always" | "never");
|
|
9956
|
-
[k: string]: unknown | undefined;
|
|
9957
10129
|
})[];
|
|
9958
10130
|
});
|
|
9959
10131
|
type _PerfectionistSortImportsMaxLineLengthRequiresLineLengthType = ({
|
|
@@ -9965,15 +10137,16 @@ interface _PerfectionistSortImports_IsLineLength {
|
|
|
9965
10137
|
}
|
|
9966
10138
|
type PerfectionistSortInterfaces = {
|
|
9967
10139
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10140
|
+
fallbackSort?: {
|
|
10141
|
+
order?: ("asc" | "desc");
|
|
10142
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10143
|
+
[k: string]: unknown | undefined;
|
|
10144
|
+
};
|
|
9968
10145
|
ignoreCase?: boolean;
|
|
9969
10146
|
alphabet?: string;
|
|
9970
10147
|
locales?: (string | string[]);
|
|
9971
10148
|
order?: ("asc" | "desc");
|
|
9972
|
-
|
|
9973
|
-
useConfigurationIf?: {
|
|
9974
|
-
allNamesMatchPattern?: string;
|
|
9975
|
-
declarationMatchesPattern?: string;
|
|
9976
|
-
};
|
|
10149
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9977
10150
|
customGroups?: ({
|
|
9978
10151
|
[k: string]: (string | string[]) | undefined;
|
|
9979
10152
|
} | ({
|
|
@@ -9984,7 +10157,13 @@ type PerfectionistSortInterfaces = {
|
|
|
9984
10157
|
anyOf?: {
|
|
9985
10158
|
modifiers?: ("optional" | "required" | "multiline")[];
|
|
9986
10159
|
selector?: ("index-signature" | "member" | "method" | "multiline" | "property");
|
|
9987
|
-
elementNamePattern?:
|
|
10160
|
+
elementNamePattern?: (({
|
|
10161
|
+
pattern?: string;
|
|
10162
|
+
flags?: string;
|
|
10163
|
+
} | string)[] | ({
|
|
10164
|
+
pattern?: string;
|
|
10165
|
+
flags?: string;
|
|
10166
|
+
} | string));
|
|
9988
10167
|
}[];
|
|
9989
10168
|
} | {
|
|
9990
10169
|
groupName?: string;
|
|
@@ -9993,189 +10172,407 @@ type PerfectionistSortInterfaces = {
|
|
|
9993
10172
|
newlinesInside?: ("always" | "never");
|
|
9994
10173
|
modifiers?: ("optional" | "required" | "multiline")[];
|
|
9995
10174
|
selector?: ("index-signature" | "member" | "method" | "multiline" | "property");
|
|
9996
|
-
elementNamePattern?:
|
|
10175
|
+
elementNamePattern?: (({
|
|
10176
|
+
pattern?: string;
|
|
10177
|
+
flags?: string;
|
|
10178
|
+
} | string)[] | ({
|
|
10179
|
+
pattern?: string;
|
|
10180
|
+
flags?: string;
|
|
10181
|
+
} | string));
|
|
9997
10182
|
})[]);
|
|
10183
|
+
useConfigurationIf?: {
|
|
10184
|
+
allNamesMatchPattern?: (({
|
|
10185
|
+
pattern?: string;
|
|
10186
|
+
flags?: string;
|
|
10187
|
+
} | string)[] | ({
|
|
10188
|
+
pattern?: string;
|
|
10189
|
+
flags?: string;
|
|
10190
|
+
} | string));
|
|
10191
|
+
declarationMatchesPattern?: (({
|
|
10192
|
+
pattern?: string;
|
|
10193
|
+
flags?: string;
|
|
10194
|
+
} | string)[] | ({
|
|
10195
|
+
pattern?: string;
|
|
10196
|
+
flags?: string;
|
|
10197
|
+
} | string));
|
|
10198
|
+
};
|
|
9998
10199
|
groupKind?: ("mixed" | "required-first" | "optional-first");
|
|
9999
|
-
|
|
10000
|
-
|
|
10001
|
-
|
|
10002
|
-
|
|
10003
|
-
|
|
10200
|
+
partitionByComment?: (boolean | (({
|
|
10201
|
+
pattern?: string;
|
|
10202
|
+
flags?: string;
|
|
10203
|
+
} | string)[] | ({
|
|
10204
|
+
pattern?: string;
|
|
10205
|
+
flags?: string;
|
|
10206
|
+
} | string)) | {
|
|
10207
|
+
block?: (boolean | (({
|
|
10208
|
+
pattern?: string;
|
|
10209
|
+
flags?: string;
|
|
10210
|
+
} | string)[] | ({
|
|
10211
|
+
pattern?: string;
|
|
10212
|
+
flags?: string;
|
|
10213
|
+
} | string)));
|
|
10214
|
+
line?: (boolean | (({
|
|
10215
|
+
pattern?: string;
|
|
10216
|
+
flags?: string;
|
|
10217
|
+
} | string)[] | ({
|
|
10218
|
+
pattern?: string;
|
|
10219
|
+
flags?: string;
|
|
10220
|
+
} | string)));
|
|
10004
10221
|
});
|
|
10005
10222
|
partitionByNewLine?: boolean;
|
|
10006
10223
|
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10224
|
+
ignorePattern?: (({
|
|
10225
|
+
pattern?: string;
|
|
10226
|
+
flags?: string;
|
|
10227
|
+
} | string)[] | ({
|
|
10228
|
+
pattern?: string;
|
|
10229
|
+
flags?: string;
|
|
10230
|
+
} | string));
|
|
10007
10231
|
groups?: (string | string[] | {
|
|
10008
10232
|
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10009
|
-
[k: string]: unknown | undefined;
|
|
10010
10233
|
})[];
|
|
10011
10234
|
}[];
|
|
10012
10235
|
type PerfectionistSortIntersectionTypes = [] | [
|
|
10013
10236
|
{
|
|
10014
10237
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10238
|
+
fallbackSort?: {
|
|
10239
|
+
order?: ("asc" | "desc");
|
|
10240
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10241
|
+
[k: string]: unknown | undefined;
|
|
10242
|
+
};
|
|
10015
10243
|
ignoreCase?: boolean;
|
|
10016
10244
|
alphabet?: string;
|
|
10017
10245
|
locales?: (string | string[]);
|
|
10018
10246
|
order?: ("asc" | "desc");
|
|
10019
|
-
|
|
10020
|
-
|
|
10021
|
-
|
|
10022
|
-
|
|
10247
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10248
|
+
partitionByComment?: (boolean | (({
|
|
10249
|
+
pattern?: string;
|
|
10250
|
+
flags?: string;
|
|
10251
|
+
} | string)[] | ({
|
|
10252
|
+
pattern?: string;
|
|
10253
|
+
flags?: string;
|
|
10254
|
+
} | string)) | {
|
|
10255
|
+
block?: (boolean | (({
|
|
10256
|
+
pattern?: string;
|
|
10257
|
+
flags?: string;
|
|
10258
|
+
} | string)[] | ({
|
|
10259
|
+
pattern?: string;
|
|
10260
|
+
flags?: string;
|
|
10261
|
+
} | string)));
|
|
10262
|
+
line?: (boolean | (({
|
|
10263
|
+
pattern?: string;
|
|
10264
|
+
flags?: string;
|
|
10265
|
+
} | string)[] | ({
|
|
10266
|
+
pattern?: string;
|
|
10267
|
+
flags?: string;
|
|
10268
|
+
} | string)));
|
|
10023
10269
|
});
|
|
10024
10270
|
partitionByNewLine?: boolean;
|
|
10025
10271
|
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10026
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom");
|
|
10027
10272
|
groups?: (string | string[] | {
|
|
10028
10273
|
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10029
|
-
[k: string]: unknown | undefined;
|
|
10030
10274
|
})[];
|
|
10031
10275
|
}
|
|
10032
10276
|
];
|
|
10033
|
-
type PerfectionistSortJsxProps =
|
|
10034
|
-
|
|
10035
|
-
|
|
10036
|
-
ignoreCase?: boolean;
|
|
10037
|
-
alphabet?: string;
|
|
10038
|
-
locales?: (string | string[]);
|
|
10277
|
+
type PerfectionistSortJsxProps = {
|
|
10278
|
+
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10279
|
+
fallbackSort?: {
|
|
10039
10280
|
order?: ("asc" | "desc");
|
|
10040
|
-
|
|
10041
|
-
|
|
10281
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10282
|
+
[k: string]: unknown | undefined;
|
|
10283
|
+
};
|
|
10284
|
+
ignoreCase?: boolean;
|
|
10285
|
+
alphabet?: string;
|
|
10286
|
+
locales?: (string | string[]);
|
|
10287
|
+
order?: ("asc" | "desc");
|
|
10288
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10289
|
+
useConfigurationIf?: {
|
|
10290
|
+
allNamesMatchPattern?: (({
|
|
10291
|
+
pattern?: string;
|
|
10292
|
+
flags?: string;
|
|
10293
|
+
} | string)[] | ({
|
|
10294
|
+
pattern?: string;
|
|
10295
|
+
flags?: string;
|
|
10296
|
+
} | string));
|
|
10297
|
+
tagMatchesPattern?: (({
|
|
10298
|
+
pattern?: string;
|
|
10299
|
+
flags?: string;
|
|
10300
|
+
} | string)[] | ({
|
|
10301
|
+
pattern?: string;
|
|
10302
|
+
flags?: string;
|
|
10303
|
+
} | string));
|
|
10304
|
+
};
|
|
10305
|
+
partitionByNewLine?: boolean;
|
|
10306
|
+
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10307
|
+
customGroups?: {
|
|
10308
|
+
[k: string]: (string | string[]) | undefined;
|
|
10309
|
+
};
|
|
10310
|
+
ignorePattern?: (({
|
|
10311
|
+
pattern?: string;
|
|
10312
|
+
flags?: string;
|
|
10313
|
+
} | string)[] | ({
|
|
10314
|
+
pattern?: string;
|
|
10315
|
+
flags?: string;
|
|
10316
|
+
} | string));
|
|
10317
|
+
groups?: (string | string[] | {
|
|
10042
10318
|
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10043
|
-
|
|
10044
|
-
|
|
10045
|
-
};
|
|
10046
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom");
|
|
10047
|
-
groups?: (string | string[] | {
|
|
10048
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10049
|
-
[k: string]: unknown | undefined;
|
|
10050
|
-
})[];
|
|
10051
|
-
}
|
|
10052
|
-
];
|
|
10319
|
+
})[];
|
|
10320
|
+
}[];
|
|
10053
10321
|
type PerfectionistSortMaps = {
|
|
10054
10322
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10323
|
+
fallbackSort?: {
|
|
10324
|
+
order?: ("asc" | "desc");
|
|
10325
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10326
|
+
[k: string]: unknown | undefined;
|
|
10327
|
+
};
|
|
10055
10328
|
ignoreCase?: boolean;
|
|
10056
10329
|
alphabet?: string;
|
|
10057
10330
|
locales?: (string | string[]);
|
|
10058
10331
|
order?: ("asc" | "desc");
|
|
10332
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10059
10333
|
customGroups?: ({
|
|
10060
10334
|
groupName?: string;
|
|
10061
10335
|
type?: ("alphabetical" | "line-length" | "natural" | "unsorted");
|
|
10062
10336
|
order?: ("desc" | "asc");
|
|
10063
10337
|
newlinesInside?: ("always" | "never");
|
|
10064
10338
|
anyOf?: {
|
|
10065
|
-
elementNamePattern?:
|
|
10339
|
+
elementNamePattern?: (({
|
|
10340
|
+
pattern?: string;
|
|
10341
|
+
flags?: string;
|
|
10342
|
+
} | string)[] | ({
|
|
10343
|
+
pattern?: string;
|
|
10344
|
+
flags?: string;
|
|
10345
|
+
} | string));
|
|
10066
10346
|
}[];
|
|
10067
10347
|
} | {
|
|
10068
10348
|
groupName?: string;
|
|
10069
10349
|
type?: ("alphabetical" | "line-length" | "natural" | "unsorted");
|
|
10070
10350
|
order?: ("desc" | "asc");
|
|
10071
10351
|
newlinesInside?: ("always" | "never");
|
|
10072
|
-
elementNamePattern?:
|
|
10352
|
+
elementNamePattern?: (({
|
|
10353
|
+
pattern?: string;
|
|
10354
|
+
flags?: string;
|
|
10355
|
+
} | string)[] | ({
|
|
10356
|
+
pattern?: string;
|
|
10357
|
+
flags?: string;
|
|
10358
|
+
} | string));
|
|
10073
10359
|
})[];
|
|
10074
10360
|
useConfigurationIf?: {
|
|
10075
|
-
allNamesMatchPattern?:
|
|
10361
|
+
allNamesMatchPattern?: (({
|
|
10362
|
+
pattern?: string;
|
|
10363
|
+
flags?: string;
|
|
10364
|
+
} | string)[] | ({
|
|
10365
|
+
pattern?: string;
|
|
10366
|
+
flags?: string;
|
|
10367
|
+
} | string));
|
|
10076
10368
|
};
|
|
10077
|
-
partitionByComment?: (
|
|
10078
|
-
|
|
10079
|
-
|
|
10080
|
-
|
|
10369
|
+
partitionByComment?: (boolean | (({
|
|
10370
|
+
pattern?: string;
|
|
10371
|
+
flags?: string;
|
|
10372
|
+
} | string)[] | ({
|
|
10373
|
+
pattern?: string;
|
|
10374
|
+
flags?: string;
|
|
10375
|
+
} | string)) | {
|
|
10376
|
+
block?: (boolean | (({
|
|
10377
|
+
pattern?: string;
|
|
10378
|
+
flags?: string;
|
|
10379
|
+
} | string)[] | ({
|
|
10380
|
+
pattern?: string;
|
|
10381
|
+
flags?: string;
|
|
10382
|
+
} | string)));
|
|
10383
|
+
line?: (boolean | (({
|
|
10384
|
+
pattern?: string;
|
|
10385
|
+
flags?: string;
|
|
10386
|
+
} | string)[] | ({
|
|
10387
|
+
pattern?: string;
|
|
10388
|
+
flags?: string;
|
|
10389
|
+
} | string)));
|
|
10081
10390
|
});
|
|
10082
10391
|
partitionByNewLine?: boolean;
|
|
10083
10392
|
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10084
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom");
|
|
10085
10393
|
groups?: (string | string[] | {
|
|
10086
10394
|
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10087
|
-
[k: string]: unknown | undefined;
|
|
10088
10395
|
})[];
|
|
10089
10396
|
}[];
|
|
10090
10397
|
type PerfectionistSortModules = [] | [
|
|
10091
10398
|
{
|
|
10092
10399
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10400
|
+
fallbackSort?: {
|
|
10401
|
+
order?: ("asc" | "desc");
|
|
10402
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10403
|
+
[k: string]: unknown | undefined;
|
|
10404
|
+
};
|
|
10093
10405
|
ignoreCase?: boolean;
|
|
10094
10406
|
alphabet?: string;
|
|
10095
10407
|
locales?: (string | string[]);
|
|
10096
10408
|
order?: ("asc" | "desc");
|
|
10409
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10097
10410
|
customGroups?: ({
|
|
10098
10411
|
groupName?: string;
|
|
10099
10412
|
type?: ("alphabetical" | "line-length" | "natural" | "unsorted");
|
|
10100
10413
|
order?: ("desc" | "asc");
|
|
10101
10414
|
newlinesInside?: ("always" | "never");
|
|
10102
10415
|
anyOf?: {
|
|
10103
|
-
decoratorNamePattern?: string;
|
|
10104
10416
|
modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[];
|
|
10105
10417
|
selector?: ("enum" | "function" | "interface" | "type" | "class");
|
|
10106
|
-
|
|
10418
|
+
decoratorNamePattern?: (({
|
|
10419
|
+
pattern?: string;
|
|
10420
|
+
flags?: string;
|
|
10421
|
+
} | string)[] | ({
|
|
10422
|
+
pattern?: string;
|
|
10423
|
+
flags?: string;
|
|
10424
|
+
} | string));
|
|
10425
|
+
elementNamePattern?: (({
|
|
10426
|
+
pattern?: string;
|
|
10427
|
+
flags?: string;
|
|
10428
|
+
} | string)[] | ({
|
|
10429
|
+
pattern?: string;
|
|
10430
|
+
flags?: string;
|
|
10431
|
+
} | string));
|
|
10107
10432
|
}[];
|
|
10108
10433
|
} | {
|
|
10109
10434
|
groupName?: string;
|
|
10110
10435
|
type?: ("alphabetical" | "line-length" | "natural" | "unsorted");
|
|
10111
10436
|
order?: ("desc" | "asc");
|
|
10112
10437
|
newlinesInside?: ("always" | "never");
|
|
10113
|
-
decoratorNamePattern?: string;
|
|
10114
10438
|
modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[];
|
|
10115
10439
|
selector?: ("enum" | "function" | "interface" | "type" | "class");
|
|
10116
|
-
|
|
10440
|
+
decoratorNamePattern?: (({
|
|
10441
|
+
pattern?: string;
|
|
10442
|
+
flags?: string;
|
|
10443
|
+
} | string)[] | ({
|
|
10444
|
+
pattern?: string;
|
|
10445
|
+
flags?: string;
|
|
10446
|
+
} | string));
|
|
10447
|
+
elementNamePattern?: (({
|
|
10448
|
+
pattern?: string;
|
|
10449
|
+
flags?: string;
|
|
10450
|
+
} | string)[] | ({
|
|
10451
|
+
pattern?: string;
|
|
10452
|
+
flags?: string;
|
|
10453
|
+
} | string));
|
|
10117
10454
|
})[];
|
|
10118
|
-
partitionByComment?: (
|
|
10119
|
-
|
|
10120
|
-
|
|
10121
|
-
|
|
10455
|
+
partitionByComment?: (boolean | (({
|
|
10456
|
+
pattern?: string;
|
|
10457
|
+
flags?: string;
|
|
10458
|
+
} | string)[] | ({
|
|
10459
|
+
pattern?: string;
|
|
10460
|
+
flags?: string;
|
|
10461
|
+
} | string)) | {
|
|
10462
|
+
block?: (boolean | (({
|
|
10463
|
+
pattern?: string;
|
|
10464
|
+
flags?: string;
|
|
10465
|
+
} | string)[] | ({
|
|
10466
|
+
pattern?: string;
|
|
10467
|
+
flags?: string;
|
|
10468
|
+
} | string)));
|
|
10469
|
+
line?: (boolean | (({
|
|
10470
|
+
pattern?: string;
|
|
10471
|
+
flags?: string;
|
|
10472
|
+
} | string)[] | ({
|
|
10473
|
+
pattern?: string;
|
|
10474
|
+
flags?: string;
|
|
10475
|
+
} | string)));
|
|
10122
10476
|
});
|
|
10123
10477
|
partitionByNewLine?: boolean;
|
|
10124
10478
|
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10125
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom");
|
|
10126
10479
|
groups?: (string | string[] | {
|
|
10127
10480
|
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10128
|
-
[k: string]: unknown | undefined;
|
|
10129
10481
|
})[];
|
|
10130
10482
|
}
|
|
10131
10483
|
];
|
|
10132
10484
|
type PerfectionistSortNamedExports = [] | [
|
|
10133
10485
|
{
|
|
10134
10486
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10487
|
+
fallbackSort?: {
|
|
10488
|
+
order?: ("asc" | "desc");
|
|
10489
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10490
|
+
[k: string]: unknown | undefined;
|
|
10491
|
+
};
|
|
10135
10492
|
ignoreCase?: boolean;
|
|
10136
10493
|
alphabet?: string;
|
|
10137
10494
|
locales?: (string | string[]);
|
|
10138
10495
|
order?: ("asc" | "desc");
|
|
10496
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10139
10497
|
groupKind?: ("mixed" | "values-first" | "types-first");
|
|
10140
10498
|
ignoreAlias?: boolean;
|
|
10141
|
-
partitionByComment?: (
|
|
10142
|
-
|
|
10143
|
-
|
|
10144
|
-
|
|
10499
|
+
partitionByComment?: (boolean | (({
|
|
10500
|
+
pattern?: string;
|
|
10501
|
+
flags?: string;
|
|
10502
|
+
} | string)[] | ({
|
|
10503
|
+
pattern?: string;
|
|
10504
|
+
flags?: string;
|
|
10505
|
+
} | string)) | {
|
|
10506
|
+
block?: (boolean | (({
|
|
10507
|
+
pattern?: string;
|
|
10508
|
+
flags?: string;
|
|
10509
|
+
} | string)[] | ({
|
|
10510
|
+
pattern?: string;
|
|
10511
|
+
flags?: string;
|
|
10512
|
+
} | string)));
|
|
10513
|
+
line?: (boolean | (({
|
|
10514
|
+
pattern?: string;
|
|
10515
|
+
flags?: string;
|
|
10516
|
+
} | string)[] | ({
|
|
10517
|
+
pattern?: string;
|
|
10518
|
+
flags?: string;
|
|
10519
|
+
} | string)));
|
|
10145
10520
|
});
|
|
10146
10521
|
partitionByNewLine?: boolean;
|
|
10147
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom");
|
|
10148
10522
|
}
|
|
10149
10523
|
];
|
|
10150
10524
|
type PerfectionistSortNamedImports = [] | [
|
|
10151
10525
|
{
|
|
10152
10526
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10527
|
+
fallbackSort?: {
|
|
10528
|
+
order?: ("asc" | "desc");
|
|
10529
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10530
|
+
[k: string]: unknown | undefined;
|
|
10531
|
+
};
|
|
10153
10532
|
ignoreCase?: boolean;
|
|
10154
10533
|
alphabet?: string;
|
|
10155
10534
|
locales?: (string | string[]);
|
|
10156
10535
|
order?: ("asc" | "desc");
|
|
10536
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10157
10537
|
groupKind?: ("mixed" | "values-first" | "types-first");
|
|
10158
10538
|
ignoreAlias?: boolean;
|
|
10159
|
-
partitionByComment?: (
|
|
10160
|
-
|
|
10161
|
-
|
|
10162
|
-
|
|
10539
|
+
partitionByComment?: (boolean | (({
|
|
10540
|
+
pattern?: string;
|
|
10541
|
+
flags?: string;
|
|
10542
|
+
} | string)[] | ({
|
|
10543
|
+
pattern?: string;
|
|
10544
|
+
flags?: string;
|
|
10545
|
+
} | string)) | {
|
|
10546
|
+
block?: (boolean | (({
|
|
10547
|
+
pattern?: string;
|
|
10548
|
+
flags?: string;
|
|
10549
|
+
} | string)[] | ({
|
|
10550
|
+
pattern?: string;
|
|
10551
|
+
flags?: string;
|
|
10552
|
+
} | string)));
|
|
10553
|
+
line?: (boolean | (({
|
|
10554
|
+
pattern?: string;
|
|
10555
|
+
flags?: string;
|
|
10556
|
+
} | string)[] | ({
|
|
10557
|
+
pattern?: string;
|
|
10558
|
+
flags?: string;
|
|
10559
|
+
} | string)));
|
|
10163
10560
|
});
|
|
10164
10561
|
partitionByNewLine?: boolean;
|
|
10165
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom");
|
|
10166
10562
|
}
|
|
10167
10563
|
];
|
|
10168
10564
|
type PerfectionistSortObjectTypes = {
|
|
10169
10565
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10566
|
+
fallbackSort?: {
|
|
10567
|
+
order?: ("asc" | "desc");
|
|
10568
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10569
|
+
[k: string]: unknown | undefined;
|
|
10570
|
+
};
|
|
10170
10571
|
ignoreCase?: boolean;
|
|
10171
10572
|
alphabet?: string;
|
|
10172
10573
|
locales?: (string | string[]);
|
|
10173
10574
|
order?: ("asc" | "desc");
|
|
10174
|
-
|
|
10175
|
-
useConfigurationIf?: {
|
|
10176
|
-
allNamesMatchPattern?: string;
|
|
10177
|
-
declarationMatchesPattern?: string;
|
|
10178
|
-
};
|
|
10575
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10179
10576
|
customGroups?: ({
|
|
10180
10577
|
[k: string]: (string | string[]) | undefined;
|
|
10181
10578
|
} | ({
|
|
@@ -10186,7 +10583,13 @@ type PerfectionistSortObjectTypes = {
|
|
|
10186
10583
|
anyOf?: {
|
|
10187
10584
|
modifiers?: ("optional" | "required" | "multiline")[];
|
|
10188
10585
|
selector?: ("index-signature" | "member" | "method" | "multiline" | "property");
|
|
10189
|
-
elementNamePattern?:
|
|
10586
|
+
elementNamePattern?: (({
|
|
10587
|
+
pattern?: string;
|
|
10588
|
+
flags?: string;
|
|
10589
|
+
} | string)[] | ({
|
|
10590
|
+
pattern?: string;
|
|
10591
|
+
flags?: string;
|
|
10592
|
+
} | string));
|
|
10190
10593
|
}[];
|
|
10191
10594
|
} | {
|
|
10192
10595
|
groupName?: string;
|
|
@@ -10195,36 +10598,81 @@ type PerfectionistSortObjectTypes = {
|
|
|
10195
10598
|
newlinesInside?: ("always" | "never");
|
|
10196
10599
|
modifiers?: ("optional" | "required" | "multiline")[];
|
|
10197
10600
|
selector?: ("index-signature" | "member" | "method" | "multiline" | "property");
|
|
10198
|
-
elementNamePattern?:
|
|
10601
|
+
elementNamePattern?: (({
|
|
10602
|
+
pattern?: string;
|
|
10603
|
+
flags?: string;
|
|
10604
|
+
} | string)[] | ({
|
|
10605
|
+
pattern?: string;
|
|
10606
|
+
flags?: string;
|
|
10607
|
+
} | string));
|
|
10199
10608
|
})[]);
|
|
10609
|
+
useConfigurationIf?: {
|
|
10610
|
+
allNamesMatchPattern?: (({
|
|
10611
|
+
pattern?: string;
|
|
10612
|
+
flags?: string;
|
|
10613
|
+
} | string)[] | ({
|
|
10614
|
+
pattern?: string;
|
|
10615
|
+
flags?: string;
|
|
10616
|
+
} | string));
|
|
10617
|
+
declarationMatchesPattern?: (({
|
|
10618
|
+
pattern?: string;
|
|
10619
|
+
flags?: string;
|
|
10620
|
+
} | string)[] | ({
|
|
10621
|
+
pattern?: string;
|
|
10622
|
+
flags?: string;
|
|
10623
|
+
} | string));
|
|
10624
|
+
};
|
|
10200
10625
|
groupKind?: ("mixed" | "required-first" | "optional-first");
|
|
10201
|
-
|
|
10202
|
-
|
|
10203
|
-
|
|
10204
|
-
|
|
10205
|
-
|
|
10626
|
+
partitionByComment?: (boolean | (({
|
|
10627
|
+
pattern?: string;
|
|
10628
|
+
flags?: string;
|
|
10629
|
+
} | string)[] | ({
|
|
10630
|
+
pattern?: string;
|
|
10631
|
+
flags?: string;
|
|
10632
|
+
} | string)) | {
|
|
10633
|
+
block?: (boolean | (({
|
|
10634
|
+
pattern?: string;
|
|
10635
|
+
flags?: string;
|
|
10636
|
+
} | string)[] | ({
|
|
10637
|
+
pattern?: string;
|
|
10638
|
+
flags?: string;
|
|
10639
|
+
} | string)));
|
|
10640
|
+
line?: (boolean | (({
|
|
10641
|
+
pattern?: string;
|
|
10642
|
+
flags?: string;
|
|
10643
|
+
} | string)[] | ({
|
|
10644
|
+
pattern?: string;
|
|
10645
|
+
flags?: string;
|
|
10646
|
+
} | string)));
|
|
10206
10647
|
});
|
|
10207
10648
|
partitionByNewLine?: boolean;
|
|
10208
10649
|
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10650
|
+
ignorePattern?: (({
|
|
10651
|
+
pattern?: string;
|
|
10652
|
+
flags?: string;
|
|
10653
|
+
} | string)[] | ({
|
|
10654
|
+
pattern?: string;
|
|
10655
|
+
flags?: string;
|
|
10656
|
+
} | string));
|
|
10209
10657
|
groups?: (string | string[] | {
|
|
10210
10658
|
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10211
|
-
[k: string]: unknown | undefined;
|
|
10212
10659
|
})[];
|
|
10213
10660
|
}[];
|
|
10214
10661
|
type PerfectionistSortObjects = {
|
|
10215
10662
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10663
|
+
fallbackSort?: {
|
|
10664
|
+
order?: ("asc" | "desc");
|
|
10665
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10666
|
+
[k: string]: unknown | undefined;
|
|
10667
|
+
};
|
|
10216
10668
|
ignoreCase?: boolean;
|
|
10217
10669
|
alphabet?: string;
|
|
10218
10670
|
locales?: (string | string[]);
|
|
10219
10671
|
order?: ("asc" | "desc");
|
|
10672
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10220
10673
|
destructuredObjects?: (boolean | {
|
|
10221
10674
|
groups?: boolean;
|
|
10222
10675
|
});
|
|
10223
|
-
ignorePattern?: string[];
|
|
10224
|
-
useConfigurationIf?: {
|
|
10225
|
-
allNamesMatchPattern?: string;
|
|
10226
|
-
callingFunctionNamePattern?: string;
|
|
10227
|
-
};
|
|
10228
10676
|
customGroups?: ({
|
|
10229
10677
|
[k: string]: (string | string[]) | undefined;
|
|
10230
10678
|
} | ({
|
|
@@ -10235,8 +10683,20 @@ type PerfectionistSortObjects = {
|
|
|
10235
10683
|
anyOf?: {
|
|
10236
10684
|
modifiers?: ("optional" | "required" | "multiline")[];
|
|
10237
10685
|
selector?: ("member" | "method" | "multiline" | "property");
|
|
10238
|
-
elementValuePattern?:
|
|
10239
|
-
|
|
10686
|
+
elementValuePattern?: (({
|
|
10687
|
+
pattern?: string;
|
|
10688
|
+
flags?: string;
|
|
10689
|
+
} | string)[] | ({
|
|
10690
|
+
pattern?: string;
|
|
10691
|
+
flags?: string;
|
|
10692
|
+
} | string));
|
|
10693
|
+
elementNamePattern?: (({
|
|
10694
|
+
pattern?: string;
|
|
10695
|
+
flags?: string;
|
|
10696
|
+
} | string)[] | ({
|
|
10697
|
+
pattern?: string;
|
|
10698
|
+
flags?: string;
|
|
10699
|
+
} | string));
|
|
10240
10700
|
}[];
|
|
10241
10701
|
} | {
|
|
10242
10702
|
groupName?: string;
|
|
@@ -10245,31 +10705,87 @@ type PerfectionistSortObjects = {
|
|
|
10245
10705
|
newlinesInside?: ("always" | "never");
|
|
10246
10706
|
modifiers?: ("optional" | "required" | "multiline")[];
|
|
10247
10707
|
selector?: ("member" | "method" | "multiline" | "property");
|
|
10248
|
-
elementValuePattern?:
|
|
10249
|
-
|
|
10708
|
+
elementValuePattern?: (({
|
|
10709
|
+
pattern?: string;
|
|
10710
|
+
flags?: string;
|
|
10711
|
+
} | string)[] | ({
|
|
10712
|
+
pattern?: string;
|
|
10713
|
+
flags?: string;
|
|
10714
|
+
} | string));
|
|
10715
|
+
elementNamePattern?: (({
|
|
10716
|
+
pattern?: string;
|
|
10717
|
+
flags?: string;
|
|
10718
|
+
} | string)[] | ({
|
|
10719
|
+
pattern?: string;
|
|
10720
|
+
flags?: string;
|
|
10721
|
+
} | string));
|
|
10250
10722
|
})[]);
|
|
10723
|
+
useConfigurationIf?: {
|
|
10724
|
+
allNamesMatchPattern?: (({
|
|
10725
|
+
pattern?: string;
|
|
10726
|
+
flags?: string;
|
|
10727
|
+
} | string)[] | ({
|
|
10728
|
+
pattern?: string;
|
|
10729
|
+
flags?: string;
|
|
10730
|
+
} | string));
|
|
10731
|
+
callingFunctionNamePattern?: (({
|
|
10732
|
+
pattern?: string;
|
|
10733
|
+
flags?: string;
|
|
10734
|
+
} | string)[] | ({
|
|
10735
|
+
pattern?: string;
|
|
10736
|
+
flags?: string;
|
|
10737
|
+
} | string));
|
|
10738
|
+
};
|
|
10251
10739
|
destructureOnly?: boolean;
|
|
10252
10740
|
objectDeclarations?: boolean;
|
|
10253
10741
|
styledComponents?: boolean;
|
|
10254
|
-
|
|
10255
|
-
|
|
10256
|
-
|
|
10257
|
-
|
|
10258
|
-
|
|
10742
|
+
partitionByComment?: (boolean | (({
|
|
10743
|
+
pattern?: string;
|
|
10744
|
+
flags?: string;
|
|
10745
|
+
} | string)[] | ({
|
|
10746
|
+
pattern?: string;
|
|
10747
|
+
flags?: string;
|
|
10748
|
+
} | string)) | {
|
|
10749
|
+
block?: (boolean | (({
|
|
10750
|
+
pattern?: string;
|
|
10751
|
+
flags?: string;
|
|
10752
|
+
} | string)[] | ({
|
|
10753
|
+
pattern?: string;
|
|
10754
|
+
flags?: string;
|
|
10755
|
+
} | string)));
|
|
10756
|
+
line?: (boolean | (({
|
|
10757
|
+
pattern?: string;
|
|
10758
|
+
flags?: string;
|
|
10759
|
+
} | string)[] | ({
|
|
10760
|
+
pattern?: string;
|
|
10761
|
+
flags?: string;
|
|
10762
|
+
} | string)));
|
|
10259
10763
|
});
|
|
10260
10764
|
partitionByNewLine?: boolean;
|
|
10261
10765
|
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10766
|
+
ignorePattern?: (({
|
|
10767
|
+
pattern?: string;
|
|
10768
|
+
flags?: string;
|
|
10769
|
+
} | string)[] | ({
|
|
10770
|
+
pattern?: string;
|
|
10771
|
+
flags?: string;
|
|
10772
|
+
} | string));
|
|
10262
10773
|
groups?: (string | string[] | {
|
|
10263
10774
|
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10264
|
-
[k: string]: unknown | undefined;
|
|
10265
10775
|
})[];
|
|
10266
10776
|
}[];
|
|
10267
10777
|
type PerfectionistSortSets = {
|
|
10268
10778
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10779
|
+
fallbackSort?: {
|
|
10780
|
+
order?: ("asc" | "desc");
|
|
10781
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10782
|
+
[k: string]: unknown | undefined;
|
|
10783
|
+
};
|
|
10269
10784
|
ignoreCase?: boolean;
|
|
10270
10785
|
alphabet?: string;
|
|
10271
10786
|
locales?: (string | string[]);
|
|
10272
10787
|
order?: ("asc" | "desc");
|
|
10788
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10273
10789
|
groupKind?: ("mixed" | "literals-first" | "spreads-first");
|
|
10274
10790
|
customGroups?: ({
|
|
10275
10791
|
groupName?: string;
|
|
@@ -10278,7 +10794,13 @@ type PerfectionistSortSets = {
|
|
|
10278
10794
|
newlinesInside?: ("always" | "never");
|
|
10279
10795
|
anyOf?: {
|
|
10280
10796
|
selector?: ("literal" | "spread");
|
|
10281
|
-
elementNamePattern?:
|
|
10797
|
+
elementNamePattern?: (({
|
|
10798
|
+
pattern?: string;
|
|
10799
|
+
flags?: string;
|
|
10800
|
+
} | string)[] | ({
|
|
10801
|
+
pattern?: string;
|
|
10802
|
+
flags?: string;
|
|
10803
|
+
} | string));
|
|
10282
10804
|
}[];
|
|
10283
10805
|
} | {
|
|
10284
10806
|
groupName?: string;
|
|
@@ -10286,69 +10808,144 @@ type PerfectionistSortSets = {
|
|
|
10286
10808
|
order?: ("desc" | "asc");
|
|
10287
10809
|
newlinesInside?: ("always" | "never");
|
|
10288
10810
|
selector?: ("literal" | "spread");
|
|
10289
|
-
elementNamePattern?:
|
|
10811
|
+
elementNamePattern?: (({
|
|
10812
|
+
pattern?: string;
|
|
10813
|
+
flags?: string;
|
|
10814
|
+
} | string)[] | ({
|
|
10815
|
+
pattern?: string;
|
|
10816
|
+
flags?: string;
|
|
10817
|
+
} | string));
|
|
10290
10818
|
})[];
|
|
10291
10819
|
useConfigurationIf?: {
|
|
10292
|
-
allNamesMatchPattern?:
|
|
10820
|
+
allNamesMatchPattern?: (({
|
|
10821
|
+
pattern?: string;
|
|
10822
|
+
flags?: string;
|
|
10823
|
+
} | string)[] | ({
|
|
10824
|
+
pattern?: string;
|
|
10825
|
+
flags?: string;
|
|
10826
|
+
} | string));
|
|
10293
10827
|
};
|
|
10294
|
-
|
|
10295
|
-
|
|
10296
|
-
|
|
10297
|
-
|
|
10298
|
-
|
|
10828
|
+
partitionByComment?: (boolean | (({
|
|
10829
|
+
pattern?: string;
|
|
10830
|
+
flags?: string;
|
|
10831
|
+
} | string)[] | ({
|
|
10832
|
+
pattern?: string;
|
|
10833
|
+
flags?: string;
|
|
10834
|
+
} | string)) | {
|
|
10835
|
+
block?: (boolean | (({
|
|
10836
|
+
pattern?: string;
|
|
10837
|
+
flags?: string;
|
|
10838
|
+
} | string)[] | ({
|
|
10839
|
+
pattern?: string;
|
|
10840
|
+
flags?: string;
|
|
10841
|
+
} | string)));
|
|
10842
|
+
line?: (boolean | (({
|
|
10843
|
+
pattern?: string;
|
|
10844
|
+
flags?: string;
|
|
10845
|
+
} | string)[] | ({
|
|
10846
|
+
pattern?: string;
|
|
10847
|
+
flags?: string;
|
|
10848
|
+
} | string)));
|
|
10299
10849
|
});
|
|
10300
10850
|
partitionByNewLine?: boolean;
|
|
10301
10851
|
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10302
10852
|
groups?: (string | string[] | {
|
|
10303
10853
|
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10304
|
-
[k: string]: unknown | undefined;
|
|
10305
10854
|
})[];
|
|
10306
10855
|
}[];
|
|
10307
10856
|
type PerfectionistSortSwitchCase = [] | [
|
|
10308
10857
|
{
|
|
10309
10858
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10859
|
+
fallbackSort?: {
|
|
10860
|
+
order?: ("asc" | "desc");
|
|
10861
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10862
|
+
[k: string]: unknown | undefined;
|
|
10863
|
+
};
|
|
10310
10864
|
ignoreCase?: boolean;
|
|
10311
10865
|
alphabet?: string;
|
|
10312
10866
|
locales?: (string | string[]);
|
|
10313
10867
|
order?: ("asc" | "desc");
|
|
10314
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom");
|
|
10868
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10315
10869
|
}
|
|
10316
10870
|
];
|
|
10317
10871
|
type PerfectionistSortUnionTypes = [] | [
|
|
10318
10872
|
{
|
|
10319
10873
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10874
|
+
fallbackSort?: {
|
|
10875
|
+
order?: ("asc" | "desc");
|
|
10876
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10877
|
+
[k: string]: unknown | undefined;
|
|
10878
|
+
};
|
|
10320
10879
|
ignoreCase?: boolean;
|
|
10321
10880
|
alphabet?: string;
|
|
10322
10881
|
locales?: (string | string[]);
|
|
10323
10882
|
order?: ("asc" | "desc");
|
|
10324
|
-
|
|
10325
|
-
|
|
10326
|
-
|
|
10327
|
-
|
|
10883
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10884
|
+
partitionByComment?: (boolean | (({
|
|
10885
|
+
pattern?: string;
|
|
10886
|
+
flags?: string;
|
|
10887
|
+
} | string)[] | ({
|
|
10888
|
+
pattern?: string;
|
|
10889
|
+
flags?: string;
|
|
10890
|
+
} | string)) | {
|
|
10891
|
+
block?: (boolean | (({
|
|
10892
|
+
pattern?: string;
|
|
10893
|
+
flags?: string;
|
|
10894
|
+
} | string)[] | ({
|
|
10895
|
+
pattern?: string;
|
|
10896
|
+
flags?: string;
|
|
10897
|
+
} | string)));
|
|
10898
|
+
line?: (boolean | (({
|
|
10899
|
+
pattern?: string;
|
|
10900
|
+
flags?: string;
|
|
10901
|
+
} | string)[] | ({
|
|
10902
|
+
pattern?: string;
|
|
10903
|
+
flags?: string;
|
|
10904
|
+
} | string)));
|
|
10328
10905
|
});
|
|
10329
10906
|
partitionByNewLine?: boolean;
|
|
10330
10907
|
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10331
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom");
|
|
10332
10908
|
groups?: (string | string[] | {
|
|
10333
10909
|
newlinesBetween?: ("ignore" | "always" | "never");
|
|
10334
|
-
[k: string]: unknown | undefined;
|
|
10335
10910
|
})[];
|
|
10336
10911
|
}
|
|
10337
10912
|
];
|
|
10338
10913
|
type PerfectionistSortVariableDeclarations = [] | [
|
|
10339
10914
|
{
|
|
10340
10915
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10916
|
+
fallbackSort?: {
|
|
10917
|
+
order?: ("asc" | "desc");
|
|
10918
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10919
|
+
[k: string]: unknown | undefined;
|
|
10920
|
+
};
|
|
10341
10921
|
ignoreCase?: boolean;
|
|
10342
10922
|
alphabet?: string;
|
|
10343
10923
|
locales?: (string | string[]);
|
|
10344
10924
|
order?: ("asc" | "desc");
|
|
10345
|
-
|
|
10346
|
-
|
|
10347
|
-
|
|
10348
|
-
|
|
10925
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10926
|
+
partitionByComment?: (boolean | (({
|
|
10927
|
+
pattern?: string;
|
|
10928
|
+
flags?: string;
|
|
10929
|
+
} | string)[] | ({
|
|
10930
|
+
pattern?: string;
|
|
10931
|
+
flags?: string;
|
|
10932
|
+
} | string)) | {
|
|
10933
|
+
block?: (boolean | (({
|
|
10934
|
+
pattern?: string;
|
|
10935
|
+
flags?: string;
|
|
10936
|
+
} | string)[] | ({
|
|
10937
|
+
pattern?: string;
|
|
10938
|
+
flags?: string;
|
|
10939
|
+
} | string)));
|
|
10940
|
+
line?: (boolean | (({
|
|
10941
|
+
pattern?: string;
|
|
10942
|
+
flags?: string;
|
|
10943
|
+
} | string)[] | ({
|
|
10944
|
+
pattern?: string;
|
|
10945
|
+
flags?: string;
|
|
10946
|
+
} | string)));
|
|
10349
10947
|
});
|
|
10350
10948
|
partitionByNewLine?: boolean;
|
|
10351
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom");
|
|
10352
10949
|
}
|
|
10353
10950
|
];
|
|
10354
10951
|
type PreferArrowCallback = [] | [
|
|
@@ -10768,6 +11365,14 @@ type UnicornNoArrayReduce = [] | [
|
|
|
10768
11365
|
allowSimpleOperations?: boolean;
|
|
10769
11366
|
}
|
|
10770
11367
|
];
|
|
11368
|
+
type UnicornNoInstanceofBuiltins = [] | [
|
|
11369
|
+
{
|
|
11370
|
+
useErrorIsError?: boolean;
|
|
11371
|
+
strategy?: ("loose" | "strict");
|
|
11372
|
+
include?: string[];
|
|
11373
|
+
exclude?: string[];
|
|
11374
|
+
}
|
|
11375
|
+
];
|
|
10771
11376
|
type UnicornNoKeywordPrefix = [] | [
|
|
10772
11377
|
{
|
|
10773
11378
|
disallowedPrefixes?: [] | [string];
|