@sxzz/eslint-config 4.3.0 → 4.4.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 CHANGED
@@ -3764,687 +3764,702 @@ interface Rules {
3764
3764
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>;
3765
3765
  /**
3766
3766
  * Improve regexes by making them shorter, consistent, and safer.
3767
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/better-regex.md
3767
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/better-regex.md
3768
3768
  */
3769
3769
  'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>;
3770
3770
  /**
3771
3771
  * Enforce a specific parameter name in catch clauses.
3772
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/catch-error-name.md
3772
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/catch-error-name.md
3773
3773
  */
3774
3774
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
3775
3775
  /**
3776
3776
  * Use destructured variables over properties.
3777
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/consistent-destructuring.md
3777
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/consistent-destructuring.md
3778
3778
  */
3779
3779
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
3780
3780
  /**
3781
3781
  * Prefer consistent types when spreading a ternary in an array literal.
3782
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/consistent-empty-array-spread.md
3782
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/consistent-empty-array-spread.md
3783
3783
  */
3784
3784
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
3785
+ /**
3786
+ * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
3787
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/consistent-existence-index-check.md
3788
+ */
3789
+ 'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
3785
3790
  /**
3786
3791
  * Move function definitions to the highest possible scope.
3787
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/consistent-function-scoping.md
3792
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/consistent-function-scoping.md
3788
3793
  */
3789
3794
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
3790
3795
  /**
3791
3796
  * Enforce correct `Error` subclassing.
3792
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/custom-error-definition.md
3797
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/custom-error-definition.md
3793
3798
  */
3794
3799
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
3795
3800
  /**
3796
3801
  * Enforce no spaces between braces.
3797
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/empty-brace-spaces.md
3802
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/empty-brace-spaces.md
3798
3803
  */
3799
3804
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
3800
3805
  /**
3801
3806
  * Enforce passing a `message` value when creating a built-in error.
3802
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/error-message.md
3807
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/error-message.md
3803
3808
  */
3804
3809
  'unicorn/error-message'?: Linter.RuleEntry<[]>;
3805
3810
  /**
3806
3811
  * Require escape sequences to use uppercase values.
3807
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/escape-case.md
3812
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/escape-case.md
3808
3813
  */
3809
3814
  'unicorn/escape-case'?: Linter.RuleEntry<[]>;
3810
3815
  /**
3811
3816
  * Add expiration conditions to TODO comments.
3812
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/expiring-todo-comments.md
3817
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/expiring-todo-comments.md
3813
3818
  */
3814
3819
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
3815
3820
  /**
3816
3821
  * Enforce explicitly comparing the `length` or `size` property of a value.
3817
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/explicit-length-check.md
3822
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/explicit-length-check.md
3818
3823
  */
3819
3824
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
3820
3825
  /**
3821
3826
  * Enforce a case style for filenames.
3822
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/filename-case.md
3827
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/filename-case.md
3823
3828
  */
3824
3829
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
3825
3830
  /**
3826
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#import-index
3831
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#import-index
3827
3832
  * @deprecated
3828
3833
  */
3829
3834
  'unicorn/import-index'?: Linter.RuleEntry<[]>;
3830
3835
  /**
3831
3836
  * Enforce specific import styles per module.
3832
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/import-style.md
3837
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/import-style.md
3833
3838
  */
3834
3839
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
3835
3840
  /**
3836
3841
  * Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
3837
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/new-for-builtins.md
3842
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/new-for-builtins.md
3838
3843
  */
3839
3844
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
3840
3845
  /**
3841
3846
  * Enforce specifying rules to disable in `eslint-disable` comments.
3842
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-abusive-eslint-disable.md
3847
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-abusive-eslint-disable.md
3843
3848
  */
3844
3849
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
3845
3850
  /**
3846
3851
  * Disallow anonymous functions and classes as the default export.
3847
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-anonymous-default-export.md
3852
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-anonymous-default-export.md
3848
3853
  */
3849
3854
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
3850
3855
  /**
3851
3856
  * Prevent passing a function reference directly to iterator methods.
3852
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-array-callback-reference.md
3857
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-array-callback-reference.md
3853
3858
  */
3854
3859
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>;
3855
3860
  /**
3856
3861
  * Prefer `for…of` over the `forEach` method.
3857
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-array-for-each.md
3862
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-array-for-each.md
3858
3863
  */
3859
3864
  'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>;
3860
3865
  /**
3861
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#no-array-instanceof
3866
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#no-array-instanceof
3862
3867
  * @deprecated
3863
3868
  */
3864
3869
  'unicorn/no-array-instanceof'?: Linter.RuleEntry<[]>;
3865
3870
  /**
3866
3871
  * Disallow using the `this` argument in array methods.
3867
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-array-method-this-argument.md
3872
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-array-method-this-argument.md
3868
3873
  */
3869
3874
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
3870
3875
  /**
3871
3876
  * Enforce combining multiple `Array#push()` into one call.
3872
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-array-push-push.md
3877
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-array-push-push.md
3873
3878
  */
3874
3879
  'unicorn/no-array-push-push'?: Linter.RuleEntry<UnicornNoArrayPushPush>;
3875
3880
  /**
3876
3881
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
3877
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-array-reduce.md
3882
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-array-reduce.md
3878
3883
  */
3879
3884
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
3880
3885
  /**
3881
3886
  * Disallow member access from await expression.
3882
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-await-expression-member.md
3887
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-await-expression-member.md
3883
3888
  */
3884
3889
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
3885
3890
  /**
3886
3891
  * Disallow using `await` in `Promise` method parameters.
3887
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-await-in-promise-methods.md
3892
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-await-in-promise-methods.md
3888
3893
  */
3889
3894
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
3890
3895
  /**
3891
3896
  * Do not use leading/trailing space between `console.log` parameters.
3892
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-console-spaces.md
3897
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-console-spaces.md
3893
3898
  */
3894
3899
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
3895
3900
  /**
3896
3901
  * Do not use `document.cookie` directly.
3897
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-document-cookie.md
3902
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-document-cookie.md
3898
3903
  */
3899
3904
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
3900
3905
  /**
3901
3906
  * Disallow empty files.
3902
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-empty-file.md
3907
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-empty-file.md
3903
3908
  */
3904
3909
  'unicorn/no-empty-file'?: Linter.RuleEntry<[]>;
3905
3910
  /**
3906
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#no-fn-reference-in-iterator
3911
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#no-fn-reference-in-iterator
3907
3912
  * @deprecated
3908
3913
  */
3909
3914
  'unicorn/no-fn-reference-in-iterator'?: Linter.RuleEntry<[]>;
3910
3915
  /**
3911
3916
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
3912
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-for-loop.md
3917
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-for-loop.md
3913
3918
  */
3914
3919
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
3915
3920
  /**
3916
3921
  * Enforce the use of Unicode escapes instead of hexadecimal escapes.
3917
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-hex-escape.md
3922
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-hex-escape.md
3918
3923
  */
3919
3924
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
3920
3925
  /**
3921
3926
  * Require `Array.isArray()` instead of `instanceof Array`.
3922
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-instanceof-array.md
3927
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-instanceof-array.md
3923
3928
  */
3924
3929
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
3925
3930
  /**
3926
3931
  * Disallow invalid options in `fetch()` and `new Request()`.
3927
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-invalid-fetch-options.md
3932
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-invalid-fetch-options.md
3928
3933
  */
3929
3934
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
3930
3935
  /**
3931
3936
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
3932
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-invalid-remove-event-listener.md
3937
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-invalid-remove-event-listener.md
3933
3938
  */
3934
3939
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
3935
3940
  /**
3936
3941
  * Disallow identifiers starting with `new` or `class`.
3937
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-keyword-prefix.md
3942
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-keyword-prefix.md
3938
3943
  */
3939
3944
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
3940
3945
  /**
3941
3946
  * Disallow using `.length` as the `end` argument of `{Array,String,TypedArray}#slice()`.
3942
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-length-as-slice-end.md
3947
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-length-as-slice-end.md
3943
3948
  */
3944
3949
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
3945
3950
  /**
3946
3951
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
3947
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-lonely-if.md
3952
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-lonely-if.md
3948
3953
  */
3949
3954
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
3950
3955
  /**
3951
3956
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
3952
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-magic-array-flat-depth.md
3957
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-magic-array-flat-depth.md
3953
3958
  */
3954
3959
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
3955
3960
  /**
3956
3961
  * Disallow negated conditions.
3957
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-negated-condition.md
3962
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-negated-condition.md
3958
3963
  */
3959
3964
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
3960
3965
  /**
3961
3966
  * Disallow negated expression in equality check.
3962
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-negation-in-equality-check.md
3967
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-negation-in-equality-check.md
3963
3968
  */
3964
3969
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
3965
3970
  /**
3966
3971
  * Disallow nested ternary expressions.
3967
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-nested-ternary.md
3972
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-nested-ternary.md
3968
3973
  */
3969
3974
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
3970
3975
  /**
3971
3976
  * Disallow `new Array()`.
3972
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-new-array.md
3977
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-new-array.md
3973
3978
  */
3974
3979
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
3975
3980
  /**
3976
3981
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
3977
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-new-buffer.md
3982
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-new-buffer.md
3978
3983
  */
3979
3984
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
3980
3985
  /**
3981
3986
  * Disallow the use of the `null` literal.
3982
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-null.md
3987
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-null.md
3983
3988
  */
3984
3989
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
3985
3990
  /**
3986
3991
  * Disallow the use of objects as default parameters.
3987
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-object-as-default-parameter.md
3992
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-object-as-default-parameter.md
3988
3993
  */
3989
3994
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
3990
3995
  /**
3991
3996
  * Disallow `process.exit()`.
3992
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-process-exit.md
3997
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-process-exit.md
3993
3998
  */
3994
3999
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
3995
4000
  /**
3996
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#no-reduce
4001
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#no-reduce
3997
4002
  * @deprecated
3998
4003
  */
3999
4004
  'unicorn/no-reduce'?: Linter.RuleEntry<[]>;
4000
4005
  /**
4001
4006
  * Disallow passing single-element arrays to `Promise` methods.
4002
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-single-promise-in-promise-methods.md
4007
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-single-promise-in-promise-methods.md
4003
4008
  */
4004
4009
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
4005
4010
  /**
4006
4011
  * Disallow classes that only have static members.
4007
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-static-only-class.md
4012
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-static-only-class.md
4008
4013
  */
4009
4014
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
4010
4015
  /**
4011
4016
  * Disallow `then` property.
4012
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-thenable.md
4017
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-thenable.md
4013
4018
  */
4014
4019
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
4015
4020
  /**
4016
4021
  * Disallow assigning `this` to a variable.
4017
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-this-assignment.md
4022
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-this-assignment.md
4018
4023
  */
4019
4024
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
4020
4025
  /**
4021
4026
  * Disallow comparing `undefined` using `typeof`.
4022
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-typeof-undefined.md
4027
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-typeof-undefined.md
4023
4028
  */
4024
4029
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
4025
4030
  /**
4026
4031
  * Disallow awaiting non-promise values.
4027
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-unnecessary-await.md
4032
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-unnecessary-await.md
4028
4033
  */
4029
4034
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
4030
4035
  /**
4031
4036
  * Enforce the use of built-in methods instead of unnecessary polyfills.
4032
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-unnecessary-polyfills.md
4037
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-unnecessary-polyfills.md
4033
4038
  */
4034
4039
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
4035
4040
  /**
4036
4041
  * Disallow unreadable array destructuring.
4037
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-unreadable-array-destructuring.md
4042
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-unreadable-array-destructuring.md
4038
4043
  */
4039
4044
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>;
4040
4045
  /**
4041
4046
  * Disallow unreadable IIFEs.
4042
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-unreadable-iife.md
4047
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-unreadable-iife.md
4043
4048
  */
4044
4049
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
4045
4050
  /**
4046
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#no-unsafe-regex
4051
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#no-unsafe-regex
4047
4052
  * @deprecated
4048
4053
  */
4049
4054
  'unicorn/no-unsafe-regex'?: Linter.RuleEntry<[]>;
4050
4055
  /**
4051
4056
  * Disallow unused object properties.
4052
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-unused-properties.md
4057
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-unused-properties.md
4053
4058
  */
4054
4059
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
4055
4060
  /**
4056
4061
  * Disallow useless fallback when spreading in object literals.
4057
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-useless-fallback-in-spread.md
4062
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-useless-fallback-in-spread.md
4058
4063
  */
4059
4064
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
4060
4065
  /**
4061
4066
  * Disallow useless array length check.
4062
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-useless-length-check.md
4067
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-useless-length-check.md
4063
4068
  */
4064
4069
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
4065
4070
  /**
4066
4071
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
4067
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-useless-promise-resolve-reject.md
4072
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-useless-promise-resolve-reject.md
4068
4073
  */
4069
4074
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
4070
4075
  /**
4071
4076
  * Disallow unnecessary spread.
4072
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-useless-spread.md
4077
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-useless-spread.md
4073
4078
  */
4074
4079
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
4075
4080
  /**
4076
4081
  * Disallow useless case in switch statements.
4077
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-useless-switch-case.md
4082
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-useless-switch-case.md
4078
4083
  */
4079
4084
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
4080
4085
  /**
4081
4086
  * Disallow useless `undefined`.
4082
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-useless-undefined.md
4087
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-useless-undefined.md
4083
4088
  */
4084
4089
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
4085
4090
  /**
4086
4091
  * Disallow number literals with zero fractions or dangling dots.
4087
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-zero-fractions.md
4092
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-zero-fractions.md
4088
4093
  */
4089
4094
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
4090
4095
  /**
4091
4096
  * Enforce proper case for numeric literals.
4092
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/number-literal-case.md
4097
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/number-literal-case.md
4093
4098
  */
4094
4099
  'unicorn/number-literal-case'?: Linter.RuleEntry<[]>;
4095
4100
  /**
4096
4101
  * Enforce the style of numeric separators by correctly grouping digits.
4097
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/numeric-separators-style.md
4102
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/numeric-separators-style.md
4098
4103
  */
4099
4104
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
4100
4105
  /**
4101
4106
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
4102
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-add-event-listener.md
4107
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-add-event-listener.md
4103
4108
  */
4104
4109
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
4105
4110
  /**
4106
4111
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
4107
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-array-find.md
4112
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-array-find.md
4108
4113
  */
4109
4114
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
4110
4115
  /**
4111
4116
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
4112
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-array-flat.md
4117
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-array-flat.md
4113
4118
  */
4114
4119
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
4115
4120
  /**
4116
4121
  * Prefer `.flatMap(…)` over `.map(…).flat()`.
4117
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-array-flat-map.md
4122
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-array-flat-map.md
4118
4123
  */
4119
4124
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
4120
4125
  /**
4121
4126
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
4122
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-array-index-of.md
4127
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-array-index-of.md
4123
4128
  */
4124
4129
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
4125
4130
  /**
4126
4131
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
4127
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-array-some.md
4132
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-array-some.md
4128
4133
  */
4129
4134
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
4130
4135
  /**
4131
4136
  * Prefer `.at()` method for index access and `String#charAt()`.
4132
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-at.md
4137
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-at.md
4133
4138
  */
4134
4139
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
4135
4140
  /**
4136
4141
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
4137
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-blob-reading-methods.md
4142
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-blob-reading-methods.md
4138
4143
  */
4139
4144
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
4140
4145
  /**
4141
4146
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
4142
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-code-point.md
4147
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-code-point.md
4143
4148
  */
4144
4149
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
4145
4150
  /**
4146
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#prefer-dataset
4151
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#prefer-dataset
4147
4152
  * @deprecated
4148
4153
  */
4149
4154
  'unicorn/prefer-dataset'?: Linter.RuleEntry<[]>;
4150
4155
  /**
4151
4156
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
4152
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-date-now.md
4157
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-date-now.md
4153
4158
  */
4154
4159
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
4155
4160
  /**
4156
4161
  * Prefer default parameters over reassignment.
4157
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-default-parameters.md
4162
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-default-parameters.md
4158
4163
  */
4159
4164
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
4160
4165
  /**
4161
4166
  * Prefer `Node#append()` over `Node#appendChild()`.
4162
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-dom-node-append.md
4167
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-dom-node-append.md
4163
4168
  */
4164
4169
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
4165
4170
  /**
4166
4171
  * Prefer using `.dataset` on DOM elements over calling attribute methods.
4167
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-dom-node-dataset.md
4172
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-dom-node-dataset.md
4168
4173
  */
4169
4174
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
4170
4175
  /**
4171
4176
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
4172
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-dom-node-remove.md
4177
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-dom-node-remove.md
4173
4178
  */
4174
4179
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
4175
4180
  /**
4176
4181
  * Prefer `.textContent` over `.innerText`.
4177
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-dom-node-text-content.md
4182
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-dom-node-text-content.md
4178
4183
  */
4179
4184
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
4180
4185
  /**
4181
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#prefer-event-key
4186
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#prefer-event-key
4182
4187
  * @deprecated
4183
4188
  */
4184
4189
  'unicorn/prefer-event-key'?: Linter.RuleEntry<[]>;
4185
4190
  /**
4186
4191
  * Prefer `EventTarget` over `EventEmitter`.
4187
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-event-target.md
4192
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-event-target.md
4188
4193
  */
4189
4194
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
4190
4195
  /**
4191
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#prefer-exponentiation-operator
4196
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#prefer-exponentiation-operator
4192
4197
  * @deprecated
4193
4198
  */
4194
4199
  'unicorn/prefer-exponentiation-operator'?: Linter.RuleEntry<[]>;
4195
4200
  /**
4196
4201
  * Prefer `export…from` when re-exporting.
4197
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-export-from.md
4202
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-export-from.md
4198
4203
  */
4199
4204
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
4200
4205
  /**
4201
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#prefer-flat-map
4206
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#prefer-flat-map
4202
4207
  * @deprecated
4203
4208
  */
4204
4209
  'unicorn/prefer-flat-map'?: Linter.RuleEntry<[]>;
4210
+ /**
4211
+ * Prefer `globalThis` over `window`, `self`, and `global`.
4212
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-global-this.md
4213
+ */
4214
+ 'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
4205
4215
  /**
4206
4216
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
4207
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-includes.md
4217
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-includes.md
4208
4218
  */
4209
4219
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
4210
4220
  /**
4211
4221
  * Prefer reading a JSON file as a buffer.
4212
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-json-parse-buffer.md
4222
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-json-parse-buffer.md
4213
4223
  */
4214
4224
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
4215
4225
  /**
4216
4226
  * Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
4217
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-keyboard-event-key.md
4227
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-keyboard-event-key.md
4218
4228
  */
4219
4229
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
4220
4230
  /**
4221
4231
  * Prefer using a logical operator over a ternary.
4222
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-logical-operator-over-ternary.md
4232
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-logical-operator-over-ternary.md
4223
4233
  */
4224
4234
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
4235
+ /**
4236
+ * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
4237
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-math-min-max.md
4238
+ */
4239
+ 'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
4225
4240
  /**
4226
4241
  * Enforce the use of `Math.trunc` instead of bitwise operators.
4227
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-math-trunc.md
4242
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-math-trunc.md
4228
4243
  */
4229
4244
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
4230
4245
  /**
4231
4246
  * Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
4232
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-modern-dom-apis.md
4247
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-modern-dom-apis.md
4233
4248
  */
4234
4249
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
4235
4250
  /**
4236
4251
  * Prefer modern `Math` APIs over legacy patterns.
4237
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-modern-math-apis.md
4252
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-modern-math-apis.md
4238
4253
  */
4239
4254
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
4240
4255
  /**
4241
4256
  * Prefer JavaScript modules (ESM) over CommonJS.
4242
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-module.md
4257
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-module.md
4243
4258
  */
4244
4259
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
4245
4260
  /**
4246
4261
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
4247
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-native-coercion-functions.md
4262
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-native-coercion-functions.md
4248
4263
  */
4249
4264
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
4250
4265
  /**
4251
4266
  * Prefer negative index over `.length - index` when possible.
4252
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-negative-index.md
4267
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-negative-index.md
4253
4268
  */
4254
4269
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
4255
4270
  /**
4256
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#prefer-node-append
4271
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#prefer-node-append
4257
4272
  * @deprecated
4258
4273
  */
4259
4274
  'unicorn/prefer-node-append'?: Linter.RuleEntry<[]>;
4260
4275
  /**
4261
4276
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
4262
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-node-protocol.md
4277
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-node-protocol.md
4263
4278
  */
4264
4279
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
4265
4280
  /**
4266
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#prefer-node-remove
4281
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#prefer-node-remove
4267
4282
  * @deprecated
4268
4283
  */
4269
4284
  'unicorn/prefer-node-remove'?: Linter.RuleEntry<[]>;
4270
4285
  /**
4271
4286
  * Prefer `Number` static properties over global ones.
4272
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-number-properties.md
4287
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-number-properties.md
4273
4288
  */
4274
4289
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
4275
4290
  /**
4276
4291
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
4277
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-object-from-entries.md
4292
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-object-from-entries.md
4278
4293
  */
4279
4294
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
4280
4295
  /**
4281
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#prefer-object-has-own
4296
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#prefer-object-has-own
4282
4297
  * @deprecated
4283
4298
  */
4284
4299
  'unicorn/prefer-object-has-own'?: Linter.RuleEntry<[]>;
4285
4300
  /**
4286
4301
  * Prefer omitting the `catch` binding parameter.
4287
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-optional-catch-binding.md
4302
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-optional-catch-binding.md
4288
4303
  */
4289
4304
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
4290
4305
  /**
4291
4306
  * Prefer borrowing methods from the prototype instead of the instance.
4292
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-prototype-methods.md
4307
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-prototype-methods.md
4293
4308
  */
4294
4309
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
4295
4310
  /**
4296
- * Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()`.
4297
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-query-selector.md
4311
+ * Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
4312
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-query-selector.md
4298
4313
  */
4299
4314
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>;
4300
4315
  /**
4301
4316
  * Prefer `Reflect.apply()` over `Function#apply()`.
4302
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-reflect-apply.md
4317
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-reflect-apply.md
4303
4318
  */
4304
4319
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
4305
4320
  /**
4306
4321
  * Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
4307
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-regexp-test.md
4322
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-regexp-test.md
4308
4323
  */
4309
4324
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
4310
4325
  /**
4311
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#prefer-replace-all
4326
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#prefer-replace-all
4312
4327
  * @deprecated
4313
4328
  */
4314
4329
  'unicorn/prefer-replace-all'?: Linter.RuleEntry<[]>;
4315
4330
  /**
4316
4331
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
4317
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-set-has.md
4332
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-set-has.md
4318
4333
  */
4319
4334
  'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>;
4320
4335
  /**
4321
4336
  * Prefer using `Set#size` instead of `Array#length`.
4322
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-set-size.md
4337
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-set-size.md
4323
4338
  */
4324
4339
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
4325
4340
  /**
4326
4341
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
4327
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-spread.md
4342
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-spread.md
4328
4343
  */
4329
4344
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
4330
4345
  /**
4331
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#prefer-starts-ends-with
4346
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#prefer-starts-ends-with
4332
4347
  * @deprecated
4333
4348
  */
4334
4349
  'unicorn/prefer-starts-ends-with'?: Linter.RuleEntry<[]>;
4335
4350
  /**
4336
4351
  * Prefer using the `String.raw` tag to avoid escaping `\`.
4337
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-string-raw.md
4352
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-string-raw.md
4338
4353
  */
4339
4354
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
4340
4355
  /**
4341
4356
  * Prefer `String#replaceAll()` over regex searches with the global flag.
4342
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-string-replace-all.md
4357
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-string-replace-all.md
4343
4358
  */
4344
4359
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
4345
4360
  /**
4346
4361
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
4347
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-string-slice.md
4362
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-string-slice.md
4348
4363
  */
4349
4364
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
4350
4365
  /**
4351
4366
  * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
4352
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-string-starts-ends-with.md
4367
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-string-starts-ends-with.md
4353
4368
  */
4354
4369
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
4355
4370
  /**
4356
4371
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
4357
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-string-trim-start-end.md
4372
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-string-trim-start-end.md
4358
4373
  */
4359
4374
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
4360
4375
  /**
4361
4376
  * Prefer using `structuredClone` to create a deep clone.
4362
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-structured-clone.md
4377
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-structured-clone.md
4363
4378
  */
4364
4379
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
4365
4380
  /**
4366
4381
  * Prefer `switch` over multiple `else-if`.
4367
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-switch.md
4382
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-switch.md
4368
4383
  */
4369
4384
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
4370
4385
  /**
4371
4386
  * Prefer ternary expressions over simple `if-else` statements.
4372
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-ternary.md
4387
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-ternary.md
4373
4388
  */
4374
4389
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
4375
4390
  /**
4376
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#prefer-text-content
4391
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#prefer-text-content
4377
4392
  * @deprecated
4378
4393
  */
4379
4394
  'unicorn/prefer-text-content'?: Linter.RuleEntry<[]>;
4380
4395
  /**
4381
4396
  * Prefer top-level await over top-level promises and async function calls.
4382
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-top-level-await.md
4397
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-top-level-await.md
4383
4398
  */
4384
4399
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
4385
4400
  /**
4386
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#prefer-trim-start-end
4401
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#prefer-trim-start-end
4387
4402
  * @deprecated
4388
4403
  */
4389
4404
  'unicorn/prefer-trim-start-end'?: Linter.RuleEntry<[]>;
4390
4405
  /**
4391
4406
  * Enforce throwing `TypeError` in type checking conditions.
4392
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-type-error.md
4407
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-type-error.md
4393
4408
  */
4394
4409
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
4395
4410
  /**
4396
4411
  * Prevent abbreviations.
4397
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prevent-abbreviations.md
4412
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prevent-abbreviations.md
4398
4413
  */
4399
4414
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>;
4400
4415
  /**
4401
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#regex-shorthand
4416
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#regex-shorthand
4402
4417
  * @deprecated
4403
4418
  */
4404
4419
  'unicorn/regex-shorthand'?: Linter.RuleEntry<[]>;
4405
4420
  /**
4406
4421
  * Enforce consistent relative URL style.
4407
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/relative-url-style.md
4422
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/relative-url-style.md
4408
4423
  */
4409
4424
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
4410
4425
  /**
4411
4426
  * Enforce using the separator argument with `Array#join()`.
4412
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/require-array-join-separator.md
4427
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/require-array-join-separator.md
4413
4428
  */
4414
4429
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
4415
4430
  /**
4416
4431
  * Enforce using the digits argument with `Number#toFixed()`.
4417
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/require-number-to-fixed-digits-argument.md
4432
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/require-number-to-fixed-digits-argument.md
4418
4433
  */
4419
4434
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
4420
4435
  /**
4421
4436
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
4422
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/require-post-message-target-origin.md
4437
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/require-post-message-target-origin.md
4423
4438
  */
4424
4439
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
4425
4440
  /**
4426
4441
  * Enforce better string content.
4427
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/string-content.md
4442
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/string-content.md
4428
4443
  */
4429
4444
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
4430
4445
  /**
4431
4446
  * Enforce consistent brace style for `case` clauses.
4432
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/switch-case-braces.md
4447
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/switch-case-braces.md
4433
4448
  */
4434
4449
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
4435
4450
  /**
4436
4451
  * Fix whitespace-insensitive template indentation.
4437
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/template-indent.md
4452
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/template-indent.md
4438
4453
  */
4439
4454
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
4440
4455
  /**
4441
4456
  * Enforce consistent case for text encoding identifiers.
4442
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/text-encoding-identifier-case.md
4457
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/text-encoding-identifier-case.md
4443
4458
  */
4444
4459
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<[]>;
4445
4460
  /**
4446
4461
  * Require `new` when creating an error.
4447
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/throw-new-error.md
4462
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/throw-new-error.md
4448
4463
  */
4449
4464
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
4450
4465
  /**
package/dist/index.js CHANGED
@@ -205,7 +205,7 @@ var javascript = [
205
205
  "dot-notation": "warn",
206
206
  eqeqeq: ["error", "smart"],
207
207
  "no-alert": "warn",
208
- "no-console": ["warn", { allow: ["warn", "error"] }],
208
+ "no-console": ["warn", { allow: ["warn", "error", "info", "clear"] }],
209
209
  "no-debugger": "warn",
210
210
  "no-duplicate-imports": "error",
211
211
  "no-empty": ["error", { allowEmptyCatch: true }],
@@ -748,6 +748,7 @@ var unicorn = [
748
748
  rules: {
749
749
  "unicorn/catch-error-name": "error",
750
750
  "unicorn/consistent-empty-array-spread": "error",
751
+ "unicorn/consistent-existence-index-check": "error",
751
752
  "unicorn/consistent-function-scoping": [
752
753
  "error",
753
754
  { checkArrowFunctions: false }
@@ -797,6 +798,7 @@ var unicorn = [
797
798
  "unicorn/prefer-dom-node-text-content": "error",
798
799
  "unicorn/prefer-includes": "error",
799
800
  "unicorn/prefer-keyboard-event-key": "error",
801
+ "unicorn/prefer-math-min-max": "error",
800
802
  "unicorn/prefer-math-trunc": "error",
801
803
  "unicorn/prefer-modern-dom-apis": "error",
802
804
  "unicorn/prefer-modern-math-apis": "error",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sxzz/eslint-config",
3
- "version": "4.3.0",
3
+ "version": "4.4.0",
4
4
  "description": "ESLint config for @sxzz.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -46,7 +46,7 @@
46
46
  "eslint-plugin-prettier": "^5.2.1",
47
47
  "eslint-plugin-regexp": "^2.6.0",
48
48
  "eslint-plugin-sxzz": "^0.1.0",
49
- "eslint-plugin-unicorn": "^55.0.0",
49
+ "eslint-plugin-unicorn": "^56.0.0",
50
50
  "eslint-plugin-unused-imports": "^4.1.4",
51
51
  "eslint-plugin-vue": "^9.28.0",
52
52
  "eslint-plugin-yml": "^1.14.0",