@cany748/eslint-config 4.3.0 → 5.0.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.
Files changed (2) hide show
  1. package/dist/index.d.mts +178 -146
  2. package/package.json +22 -24
package/dist/index.d.mts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { FlatConfigComposer } from "eslint-flat-config-utils";
2
- import { ParserOptions } from "@typescript-eslint/parser";
3
2
  import { FlatGitignoreOptions } from "eslint-config-flat-gitignore";
3
+ import { ParserOptions } from "@typescript-eslint/parser";
4
4
  import { Linter } from "eslint";
5
5
 
6
6
  //#region src/typegen.d.ts
@@ -3711,6 +3711,11 @@ interface RuleOptions {
3711
3711
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-top-level-describe.md
3712
3712
  */
3713
3713
  'test/require-top-level-describe'?: Linter.RuleEntry<TestRequireTopLevelDescribe>;
3714
+ /**
3715
+ * enforce unbound methods are called with their expected scope
3716
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/unbound-method.md
3717
+ */
3718
+ 'test/unbound-method'?: Linter.RuleEntry<TestUnboundMethod>;
3714
3719
  /**
3715
3720
  * enforce valid describe callback
3716
3721
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/valid-describe-callback.md
@@ -3743,730 +3748,750 @@ interface RuleOptions {
3743
3748
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>;
3744
3749
  /**
3745
3750
  * Improve regexes by making them shorter, consistent, and safer.
3746
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/better-regex.md
3751
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/better-regex.md
3747
3752
  */
3748
3753
  'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>;
3749
3754
  /**
3750
3755
  * Enforce a specific parameter name in catch clauses.
3751
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/catch-error-name.md
3756
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/catch-error-name.md
3752
3757
  */
3753
3758
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
3754
3759
  /**
3755
3760
  * Enforce consistent assertion style with `node:assert`.
3756
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-assert.md
3761
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-assert.md
3757
3762
  */
3758
3763
  'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
3759
3764
  /**
3760
3765
  * Prefer passing `Date` directly to the constructor when cloning.
3761
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-date-clone.md
3766
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-date-clone.md
3762
3767
  */
3763
3768
  'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
3764
3769
  /**
3765
3770
  * Use destructured variables over properties.
3766
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-destructuring.md
3771
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-destructuring.md
3767
3772
  */
3768
3773
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
3769
3774
  /**
3770
3775
  * Prefer consistent types when spreading a ternary in an array literal.
3771
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-empty-array-spread.md
3776
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-empty-array-spread.md
3772
3777
  */
3773
3778
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
3774
3779
  /**
3775
3780
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
3776
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-existence-index-check.md
3781
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-existence-index-check.md
3777
3782
  */
3778
3783
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
3779
3784
  /**
3780
3785
  * Move function definitions to the highest possible scope.
3781
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-function-scoping.md
3786
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-function-scoping.md
3782
3787
  */
3783
3788
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
3789
+ /**
3790
+ * Enforce consistent style for escaping `${` in template literals.
3791
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-template-literal-escape.md
3792
+ */
3793
+ 'unicorn/consistent-template-literal-escape'?: Linter.RuleEntry<[]>;
3784
3794
  /**
3785
3795
  * Enforce correct `Error` subclassing.
3786
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/custom-error-definition.md
3796
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/custom-error-definition.md
3787
3797
  */
3788
3798
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
3789
3799
  /**
3790
3800
  * Enforce no spaces between braces.
3791
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/empty-brace-spaces.md
3801
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/empty-brace-spaces.md
3792
3802
  */
3793
3803
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
3794
3804
  /**
3795
3805
  * Enforce passing a `message` value when creating a built-in error.
3796
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/error-message.md
3806
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/error-message.md
3797
3807
  */
3798
3808
  'unicorn/error-message'?: Linter.RuleEntry<[]>;
3799
3809
  /**
3800
3810
  * Require escape sequences to use uppercase or lowercase values.
3801
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/escape-case.md
3811
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/escape-case.md
3802
3812
  */
3803
3813
  'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
3804
3814
  /**
3805
3815
  * Add expiration conditions to TODO comments.
3806
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/expiring-todo-comments.md
3816
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/expiring-todo-comments.md
3807
3817
  */
3808
3818
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
3809
3819
  /**
3810
3820
  * Enforce explicitly comparing the `length` or `size` property of a value.
3811
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/explicit-length-check.md
3821
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/explicit-length-check.md
3812
3822
  */
3813
3823
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
3814
3824
  /**
3815
3825
  * Enforce a case style for filenames.
3816
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/filename-case.md
3826
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/filename-case.md
3817
3827
  */
3818
3828
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
3819
3829
  /**
3820
3830
  * Enforce specific import styles per module.
3821
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/import-style.md
3831
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/import-style.md
3822
3832
  */
3823
3833
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
3824
3834
  /**
3825
3835
  * Prevent usage of variables from outside the scope of isolated functions.
3826
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/isolated-functions.md
3836
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/isolated-functions.md
3827
3837
  */
3828
3838
  'unicorn/isolated-functions'?: Linter.RuleEntry<UnicornIsolatedFunctions>;
3829
3839
  /**
3830
3840
  * Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
3831
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/new-for-builtins.md
3841
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/new-for-builtins.md
3832
3842
  */
3833
3843
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
3834
3844
  /**
3835
3845
  * Enforce specifying rules to disable in `eslint-disable` comments.
3836
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-abusive-eslint-disable.md
3846
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-abusive-eslint-disable.md
3837
3847
  */
3838
3848
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
3839
3849
  /**
3840
3850
  * Disallow recursive access to `this` within getters and setters.
3841
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-accessor-recursion.md
3851
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-accessor-recursion.md
3842
3852
  */
3843
3853
  'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
3844
3854
  /**
3845
3855
  * Disallow anonymous functions and classes as the default export.
3846
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-anonymous-default-export.md
3856
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-anonymous-default-export.md
3847
3857
  */
3848
3858
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
3849
3859
  /**
3850
3860
  * Prevent passing a function reference directly to iterator methods.
3851
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-callback-reference.md
3861
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-callback-reference.md
3852
3862
  */
3853
3863
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>;
3854
3864
  /**
3855
3865
  * Prefer `for…of` over the `forEach` method.
3856
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-for-each.md
3866
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-for-each.md
3857
3867
  */
3858
3868
  'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>;
3859
3869
  /**
3860
3870
  * Disallow using the `this` argument in array methods.
3861
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-method-this-argument.md
3871
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-method-this-argument.md
3862
3872
  */
3863
3873
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
3864
3874
  /**
3865
3875
  * Replaced by `unicorn/prefer-single-call` which covers more cases.
3866
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
3876
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
3867
3877
  * @deprecated
3868
3878
  */
3869
3879
  'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
3870
3880
  /**
3871
3881
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
3872
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-reduce.md
3882
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-reduce.md
3873
3883
  */
3874
3884
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
3875
3885
  /**
3876
3886
  * Prefer `Array#toReversed()` over `Array#reverse()`.
3877
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-reverse.md
3887
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-reverse.md
3878
3888
  */
3879
3889
  'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
3880
3890
  /**
3881
3891
  * Prefer `Array#toSorted()` over `Array#sort()`.
3882
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-sort.md
3892
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-sort.md
3883
3893
  */
3884
3894
  'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>;
3885
3895
  /**
3886
3896
  * Disallow member access from await expression.
3887
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-await-expression-member.md
3897
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-await-expression-member.md
3888
3898
  */
3889
3899
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
3890
3900
  /**
3891
3901
  * Disallow using `await` in `Promise` method parameters.
3892
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-await-in-promise-methods.md
3902
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-await-in-promise-methods.md
3893
3903
  */
3894
3904
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
3895
3905
  /**
3896
3906
  * Do not use leading/trailing space between `console.log` parameters.
3897
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-console-spaces.md
3907
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-console-spaces.md
3898
3908
  */
3899
3909
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
3900
3910
  /**
3901
3911
  * Do not use `document.cookie` directly.
3902
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-document-cookie.md
3912
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-document-cookie.md
3903
3913
  */
3904
3914
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
3905
3915
  /**
3906
3916
  * Disallow empty files.
3907
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-empty-file.md
3917
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-empty-file.md
3908
3918
  */
3909
3919
  'unicorn/no-empty-file'?: Linter.RuleEntry<[]>;
3910
3920
  /**
3911
3921
  * 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/v63.0.0/docs/rules/no-for-loop.md
3922
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-for-loop.md
3913
3923
  */
3914
3924
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
3915
3925
  /**
3916
3926
  * Enforce the use of Unicode escapes instead of hexadecimal escapes.
3917
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-hex-escape.md
3927
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-hex-escape.md
3918
3928
  */
3919
3929
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
3920
3930
  /**
3921
3931
  * Disallow immediate mutation after variable assignment.
3922
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-immediate-mutation.md
3932
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-immediate-mutation.md
3923
3933
  */
3924
3934
  'unicorn/no-immediate-mutation'?: Linter.RuleEntry<[]>;
3925
3935
  /**
3926
3936
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
3927
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
3937
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
3928
3938
  * @deprecated
3929
3939
  */
3930
3940
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
3931
3941
  /**
3932
3942
  * Disallow `instanceof` with built-in objects
3933
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-instanceof-builtins.md
3943
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-instanceof-builtins.md
3934
3944
  */
3935
3945
  'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
3936
3946
  /**
3937
3947
  * Disallow invalid options in `fetch()` and `new Request()`.
3938
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-invalid-fetch-options.md
3948
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-invalid-fetch-options.md
3939
3949
  */
3940
3950
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
3941
3951
  /**
3942
3952
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
3943
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-invalid-remove-event-listener.md
3953
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-invalid-remove-event-listener.md
3944
3954
  */
3945
3955
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
3946
3956
  /**
3947
3957
  * Disallow identifiers starting with `new` or `class`.
3948
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-keyword-prefix.md
3958
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-keyword-prefix.md
3949
3959
  */
3950
3960
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
3951
3961
  /**
3952
3962
  * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
3953
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
3963
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
3954
3964
  * @deprecated
3955
3965
  */
3956
3966
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
3957
3967
  /**
3958
3968
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
3959
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-lonely-if.md
3969
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-lonely-if.md
3960
3970
  */
3961
3971
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
3962
3972
  /**
3963
3973
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
3964
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-magic-array-flat-depth.md
3974
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-magic-array-flat-depth.md
3965
3975
  */
3966
3976
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
3967
3977
  /**
3968
3978
  * Disallow named usage of default import and export.
3969
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-named-default.md
3979
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-named-default.md
3970
3980
  */
3971
3981
  'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
3972
3982
  /**
3973
3983
  * Disallow negated conditions.
3974
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-negated-condition.md
3984
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-negated-condition.md
3975
3985
  */
3976
3986
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
3977
3987
  /**
3978
3988
  * Disallow negated expression in equality check.
3979
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-negation-in-equality-check.md
3989
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-negation-in-equality-check.md
3980
3990
  */
3981
3991
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
3982
3992
  /**
3983
3993
  * Disallow nested ternary expressions.
3984
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-nested-ternary.md
3994
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-nested-ternary.md
3985
3995
  */
3986
3996
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
3987
3997
  /**
3988
3998
  * Disallow `new Array()`.
3989
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-new-array.md
3999
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-new-array.md
3990
4000
  */
3991
4001
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
3992
4002
  /**
3993
4003
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
3994
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-new-buffer.md
4004
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-new-buffer.md
3995
4005
  */
3996
4006
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
3997
4007
  /**
3998
4008
  * Disallow the use of the `null` literal.
3999
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-null.md
4009
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-null.md
4000
4010
  */
4001
4011
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
4002
4012
  /**
4003
4013
  * Disallow the use of objects as default parameters.
4004
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-object-as-default-parameter.md
4014
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-object-as-default-parameter.md
4005
4015
  */
4006
4016
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
4007
4017
  /**
4008
4018
  * Disallow `process.exit()`.
4009
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-process-exit.md
4019
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-process-exit.md
4010
4020
  */
4011
4021
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
4012
4022
  /**
4013
4023
  * Disallow passing single-element arrays to `Promise` methods.
4014
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-single-promise-in-promise-methods.md
4024
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-single-promise-in-promise-methods.md
4015
4025
  */
4016
4026
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
4017
4027
  /**
4018
4028
  * Disallow classes that only have static members.
4019
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-static-only-class.md
4029
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-static-only-class.md
4020
4030
  */
4021
4031
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
4022
4032
  /**
4023
4033
  * Disallow `then` property.
4024
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-thenable.md
4034
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-thenable.md
4025
4035
  */
4026
4036
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
4027
4037
  /**
4028
4038
  * Disallow assigning `this` to a variable.
4029
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-this-assignment.md
4039
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-this-assignment.md
4030
4040
  */
4031
4041
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
4032
4042
  /**
4033
4043
  * Disallow comparing `undefined` using `typeof`.
4034
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-typeof-undefined.md
4044
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-typeof-undefined.md
4035
4045
  */
4036
4046
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
4037
4047
  /**
4038
4048
  * Disallow using `1` as the `depth` argument of `Array#flat()`.
4039
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-array-flat-depth.md
4049
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-array-flat-depth.md
4040
4050
  */
4041
4051
  'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
4042
4052
  /**
4043
4053
  * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
4044
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-array-splice-count.md
4054
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-array-splice-count.md
4045
4055
  */
4046
4056
  'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
4047
4057
  /**
4048
4058
  * Disallow awaiting non-promise values.
4049
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-await.md
4059
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-await.md
4050
4060
  */
4051
4061
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
4052
4062
  /**
4053
4063
  * Enforce the use of built-in methods instead of unnecessary polyfills.
4054
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-polyfills.md
4064
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-polyfills.md
4055
4065
  */
4056
4066
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
4057
4067
  /**
4058
4068
  * Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
4059
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-slice-end.md
4069
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-slice-end.md
4060
4070
  */
4061
4071
  'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
4062
4072
  /**
4063
4073
  * Disallow unreadable array destructuring.
4064
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unreadable-array-destructuring.md
4074
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unreadable-array-destructuring.md
4065
4075
  */
4066
4076
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>;
4067
4077
  /**
4068
4078
  * Disallow unreadable IIFEs.
4069
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unreadable-iife.md
4079
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unreadable-iife.md
4070
4080
  */
4071
4081
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
4072
4082
  /**
4073
4083
  * Disallow unused object properties.
4074
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unused-properties.md
4084
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unused-properties.md
4075
4085
  */
4076
4086
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
4077
4087
  /**
4078
4088
  * Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
4079
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-collection-argument.md
4089
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-collection-argument.md
4080
4090
  */
4081
4091
  'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>;
4082
4092
  /**
4083
4093
  * Disallow unnecessary `Error.captureStackTrace(…)`.
4084
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-error-capture-stack-trace.md
4094
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-error-capture-stack-trace.md
4085
4095
  */
4086
4096
  'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
4087
4097
  /**
4088
4098
  * Disallow useless fallback when spreading in object literals.
4089
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-fallback-in-spread.md
4099
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-fallback-in-spread.md
4090
4100
  */
4091
4101
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
4102
+ /**
4103
+ * Disallow unnecessary `.toArray()` on iterators.
4104
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-iterator-to-array.md
4105
+ */
4106
+ 'unicorn/no-useless-iterator-to-array'?: Linter.RuleEntry<[]>;
4092
4107
  /**
4093
4108
  * Disallow useless array length check.
4094
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-length-check.md
4109
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-length-check.md
4095
4110
  */
4096
4111
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
4097
4112
  /**
4098
4113
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
4099
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-promise-resolve-reject.md
4114
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-promise-resolve-reject.md
4100
4115
  */
4101
4116
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
4102
4117
  /**
4103
4118
  * Disallow unnecessary spread.
4104
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-spread.md
4119
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-spread.md
4105
4120
  */
4106
4121
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
4107
4122
  /**
4108
4123
  * Disallow useless case in switch statements.
4109
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-switch-case.md
4124
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-switch-case.md
4110
4125
  */
4111
4126
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
4112
4127
  /**
4113
4128
  * Disallow useless `undefined`.
4114
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-undefined.md
4129
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-undefined.md
4115
4130
  */
4116
4131
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
4117
4132
  /**
4118
4133
  * Disallow number literals with zero fractions or dangling dots.
4119
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-zero-fractions.md
4134
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-zero-fractions.md
4120
4135
  */
4121
4136
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
4122
4137
  /**
4123
4138
  * Enforce proper case for numeric literals.
4124
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/number-literal-case.md
4139
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/number-literal-case.md
4125
4140
  */
4126
4141
  'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
4127
4142
  /**
4128
4143
  * Enforce the style of numeric separators by correctly grouping digits.
4129
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/numeric-separators-style.md
4144
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/numeric-separators-style.md
4130
4145
  */
4131
4146
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
4132
4147
  /**
4133
4148
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
4134
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-add-event-listener.md
4149
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-add-event-listener.md
4135
4150
  */
4136
4151
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
4137
4152
  /**
4138
4153
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
4139
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-find.md
4154
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-find.md
4140
4155
  */
4141
4156
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
4142
4157
  /**
4143
4158
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
4144
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-flat.md
4159
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-flat.md
4145
4160
  */
4146
4161
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
4147
4162
  /**
4148
4163
  * Prefer `.flatMap(…)` over `.map(…).flat()`.
4149
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-flat-map.md
4164
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-flat-map.md
4150
4165
  */
4151
4166
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
4152
4167
  /**
4153
4168
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
4154
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-index-of.md
4169
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-index-of.md
4155
4170
  */
4156
4171
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
4157
4172
  /**
4158
4173
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
4159
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-some.md
4174
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-some.md
4160
4175
  */
4161
4176
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
4162
4177
  /**
4163
4178
  * Prefer `.at()` method for index access and `String#charAt()`.
4164
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-at.md
4179
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-at.md
4165
4180
  */
4166
4181
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
4167
4182
  /**
4168
4183
  * Prefer `BigInt` literals over the constructor.
4169
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-bigint-literals.md
4184
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-bigint-literals.md
4170
4185
  */
4171
4186
  'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>;
4172
4187
  /**
4173
4188
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
4174
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-blob-reading-methods.md
4189
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-blob-reading-methods.md
4175
4190
  */
4176
4191
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
4177
4192
  /**
4178
4193
  * Prefer class field declarations over `this` assignments in constructors.
4179
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-class-fields.md
4194
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-class-fields.md
4180
4195
  */
4181
4196
  'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
4182
4197
  /**
4183
4198
  * Prefer using `Element#classList.toggle()` to toggle class names.
4184
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-classlist-toggle.md
4199
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-classlist-toggle.md
4185
4200
  */
4186
4201
  'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>;
4187
4202
  /**
4188
4203
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
4189
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-code-point.md
4204
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-code-point.md
4190
4205
  */
4191
4206
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
4192
4207
  /**
4193
4208
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
4194
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-date-now.md
4209
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-date-now.md
4195
4210
  */
4196
4211
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
4197
4212
  /**
4198
4213
  * Prefer default parameters over reassignment.
4199
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-default-parameters.md
4214
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-default-parameters.md
4200
4215
  */
4201
4216
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
4202
4217
  /**
4203
4218
  * Prefer `Node#append()` over `Node#appendChild()`.
4204
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-dom-node-append.md
4219
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-dom-node-append.md
4205
4220
  */
4206
4221
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
4207
4222
  /**
4208
4223
  * Prefer using `.dataset` on DOM elements over calling attribute methods.
4209
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-dom-node-dataset.md
4224
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-dom-node-dataset.md
4210
4225
  */
4211
4226
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
4212
4227
  /**
4213
4228
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
4214
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-dom-node-remove.md
4229
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-dom-node-remove.md
4215
4230
  */
4216
4231
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
4217
4232
  /**
4218
4233
  * Prefer `.textContent` over `.innerText`.
4219
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-dom-node-text-content.md
4234
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-dom-node-text-content.md
4220
4235
  */
4221
4236
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
4222
4237
  /**
4223
4238
  * Prefer `EventTarget` over `EventEmitter`.
4224
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-event-target.md
4239
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-event-target.md
4225
4240
  */
4226
4241
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
4227
4242
  /**
4228
4243
  * Prefer `export…from` when re-exporting.
4229
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-export-from.md
4244
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-export-from.md
4230
4245
  */
4231
4246
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
4232
4247
  /**
4233
4248
  * Prefer `globalThis` over `window`, `self`, and `global`.
4234
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-global-this.md
4249
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-global-this.md
4235
4250
  */
4236
4251
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
4237
4252
  /**
4238
4253
  * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
4239
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-import-meta-properties.md
4254
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-import-meta-properties.md
4240
4255
  */
4241
4256
  'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
4242
4257
  /**
4243
4258
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
4244
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-includes.md
4259
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-includes.md
4245
4260
  */
4246
4261
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
4247
4262
  /**
4248
4263
  * Prefer reading a JSON file as a buffer.
4249
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-json-parse-buffer.md
4264
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-json-parse-buffer.md
4250
4265
  */
4251
4266
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
4252
4267
  /**
4253
4268
  * Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
4254
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-keyboard-event-key.md
4269
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-keyboard-event-key.md
4255
4270
  */
4256
4271
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
4257
4272
  /**
4258
4273
  * Prefer using a logical operator over a ternary.
4259
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-logical-operator-over-ternary.md
4274
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-logical-operator-over-ternary.md
4260
4275
  */
4261
4276
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
4262
4277
  /**
4263
4278
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
4264
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-math-min-max.md
4279
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-math-min-max.md
4265
4280
  */
4266
4281
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
4267
4282
  /**
4268
4283
  * Enforce the use of `Math.trunc` instead of bitwise operators.
4269
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-math-trunc.md
4284
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-math-trunc.md
4270
4285
  */
4271
4286
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
4272
4287
  /**
4273
4288
  * Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
4274
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-modern-dom-apis.md
4289
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-modern-dom-apis.md
4275
4290
  */
4276
4291
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
4277
4292
  /**
4278
4293
  * Prefer modern `Math` APIs over legacy patterns.
4279
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-modern-math-apis.md
4294
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-modern-math-apis.md
4280
4295
  */
4281
4296
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
4282
4297
  /**
4283
4298
  * Prefer JavaScript modules (ESM) over CommonJS.
4284
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-module.md
4299
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-module.md
4285
4300
  */
4286
4301
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
4287
4302
  /**
4288
4303
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
4289
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-native-coercion-functions.md
4304
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-native-coercion-functions.md
4290
4305
  */
4291
4306
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
4292
4307
  /**
4293
4308
  * Prefer negative index over `.length - index` when possible.
4294
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-negative-index.md
4309
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-negative-index.md
4295
4310
  */
4296
4311
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
4297
4312
  /**
4298
4313
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
4299
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-node-protocol.md
4314
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-node-protocol.md
4300
4315
  */
4301
4316
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
4302
4317
  /**
4303
4318
  * Prefer `Number` static properties over global ones.
4304
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-number-properties.md
4319
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-number-properties.md
4305
4320
  */
4306
4321
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
4307
4322
  /**
4308
4323
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
4309
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-object-from-entries.md
4324
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-object-from-entries.md
4310
4325
  */
4311
4326
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
4312
4327
  /**
4313
4328
  * Prefer omitting the `catch` binding parameter.
4314
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-optional-catch-binding.md
4329
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-optional-catch-binding.md
4315
4330
  */
4316
4331
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
4317
4332
  /**
4318
4333
  * Prefer borrowing methods from the prototype instead of the instance.
4319
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-prototype-methods.md
4334
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-prototype-methods.md
4320
4335
  */
4321
4336
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
4322
4337
  /**
4323
4338
  * Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
4324
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-query-selector.md
4339
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-query-selector.md
4325
4340
  */
4326
4341
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>;
4327
4342
  /**
4328
4343
  * Prefer `Reflect.apply()` over `Function#apply()`.
4329
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-reflect-apply.md
4344
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-reflect-apply.md
4330
4345
  */
4331
4346
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
4332
4347
  /**
4333
4348
  * Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
4334
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-regexp-test.md
4349
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-regexp-test.md
4335
4350
  */
4336
4351
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
4337
4352
  /**
4338
4353
  * Prefer `Response.json()` over `new Response(JSON.stringify())`.
4339
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-response-static-json.md
4354
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-response-static-json.md
4340
4355
  */
4341
4356
  'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>;
4342
4357
  /**
4343
4358
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
4344
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-set-has.md
4359
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-set-has.md
4345
4360
  */
4346
4361
  'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>;
4347
4362
  /**
4348
4363
  * Prefer using `Set#size` instead of `Array#length`.
4349
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-set-size.md
4364
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-set-size.md
4350
4365
  */
4351
4366
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
4367
+ /**
4368
+ * Prefer simple conditions first in logical expressions.
4369
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-simple-condition-first.md
4370
+ */
4371
+ 'unicorn/prefer-simple-condition-first'?: Linter.RuleEntry<[]>;
4352
4372
  /**
4353
4373
  * Enforce combining multiple `Array#push()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
4354
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-single-call.md
4374
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-single-call.md
4355
4375
  */
4356
4376
  'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
4357
4377
  /**
4358
4378
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
4359
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-spread.md
4379
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-spread.md
4360
4380
  */
4361
4381
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
4362
4382
  /**
4363
4383
  * Prefer using the `String.raw` tag to avoid escaping `\`.
4364
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-raw.md
4384
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-raw.md
4365
4385
  */
4366
4386
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
4367
4387
  /**
4368
4388
  * Prefer `String#replaceAll()` over regex searches with the global flag.
4369
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-replace-all.md
4389
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-replace-all.md
4370
4390
  */
4371
4391
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
4372
4392
  /**
4373
4393
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
4374
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-slice.md
4394
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-slice.md
4375
4395
  */
4376
4396
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
4377
4397
  /**
4378
4398
  * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
4379
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-starts-ends-with.md
4399
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-starts-ends-with.md
4380
4400
  */
4381
4401
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
4382
4402
  /**
4383
4403
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
4384
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-trim-start-end.md
4404
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-trim-start-end.md
4385
4405
  */
4386
4406
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
4387
4407
  /**
4388
4408
  * Prefer using `structuredClone` to create a deep clone.
4389
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-structured-clone.md
4409
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-structured-clone.md
4390
4410
  */
4391
4411
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
4392
4412
  /**
4393
4413
  * Prefer `switch` over multiple `else-if`.
4394
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-switch.md
4414
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-switch.md
4395
4415
  */
4396
4416
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
4397
4417
  /**
4398
4418
  * Prefer ternary expressions over simple `if-else` statements.
4399
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-ternary.md
4419
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-ternary.md
4400
4420
  */
4401
4421
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
4402
4422
  /**
4403
4423
  * Prefer top-level await over top-level promises and async function calls.
4404
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-top-level-await.md
4424
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-top-level-await.md
4405
4425
  */
4406
4426
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
4407
4427
  /**
4408
4428
  * Enforce throwing `TypeError` in type checking conditions.
4409
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-type-error.md
4429
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-type-error.md
4410
4430
  */
4411
4431
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
4412
4432
  /**
4413
4433
  * Prevent abbreviations.
4414
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prevent-abbreviations.md
4434
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prevent-abbreviations.md
4415
4435
  */
4416
4436
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>;
4417
4437
  /**
4418
4438
  * Enforce consistent relative URL style.
4419
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/relative-url-style.md
4439
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/relative-url-style.md
4420
4440
  */
4421
4441
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
4422
4442
  /**
4423
4443
  * Enforce using the separator argument with `Array#join()`.
4424
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-array-join-separator.md
4444
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-array-join-separator.md
4425
4445
  */
4426
4446
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
4427
4447
  /**
4428
4448
  * Require non-empty module attributes for imports and exports
4429
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-module-attributes.md
4449
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-module-attributes.md
4430
4450
  */
4431
4451
  'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>;
4432
4452
  /**
4433
4453
  * Require non-empty specifier list in import and export statements.
4434
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-module-specifiers.md
4454
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-module-specifiers.md
4435
4455
  */
4436
4456
  'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
4437
4457
  /**
4438
4458
  * Enforce using the digits argument with `Number#toFixed()`.
4439
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-number-to-fixed-digits-argument.md
4459
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-number-to-fixed-digits-argument.md
4440
4460
  */
4441
4461
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
4442
4462
  /**
4443
4463
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
4444
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-post-message-target-origin.md
4464
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-post-message-target-origin.md
4445
4465
  */
4446
4466
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
4447
4467
  /**
4448
4468
  * Enforce better string content.
4449
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/string-content.md
4469
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/string-content.md
4450
4470
  */
4451
4471
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
4452
4472
  /**
4453
4473
  * Enforce consistent brace style for `case` clauses.
4454
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/switch-case-braces.md
4474
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/switch-case-braces.md
4455
4475
  */
4456
4476
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
4477
+ /**
4478
+ * Enforce consistent `break`/`return`/`continue`/`throw` position in `case` clauses.
4479
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/switch-case-break-position.md
4480
+ */
4481
+ 'unicorn/switch-case-break-position'?: Linter.RuleEntry<[]>;
4457
4482
  /**
4458
4483
  * Fix whitespace-insensitive template indentation.
4459
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/template-indent.md
4484
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/template-indent.md
4460
4485
  */
4461
4486
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
4462
4487
  /**
4463
4488
  * Enforce consistent case for text encoding identifiers.
4464
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/text-encoding-identifier-case.md
4489
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/text-encoding-identifier-case.md
4465
4490
  */
4466
4491
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
4467
4492
  /**
4468
4493
  * Require `new` when creating an error.
4469
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/throw-new-error.md
4494
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/throw-new-error.md
4470
4495
  */
4471
4496
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
4472
4497
  /**
@@ -8867,6 +8892,9 @@ type TestRequireMockTypeParameters = [] | [{
8867
8892
  }]; // ----- test/require-top-level-describe -----
8868
8893
  type TestRequireTopLevelDescribe = [] | [{
8869
8894
  maxNumberOfTopLevelDescribes?: number;
8895
+ }]; // ----- test/unbound-method -----
8896
+ type TestUnboundMethod = [] | [{
8897
+ ignoreStatic?: boolean;
8870
8898
  }]; // ----- test/valid-expect -----
8871
8899
  type TestValidExpect = [] | [{
8872
8900
  alwaysAwait?: boolean;
@@ -8897,6 +8925,7 @@ type UnicornEscapeCase = [] | [("uppercase" | "lowercase")]; // ----- unicorn/ex
8897
8925
  type UnicornExpiringTodoComments = [] | [{
8898
8926
  terms?: string[];
8899
8927
  ignore?: unknown[];
8928
+ ignoreDates?: boolean;
8900
8929
  ignoreDatesOnPullRequests?: boolean;
8901
8930
  allowWarningComments?: boolean;
8902
8931
  date?: string;
@@ -9053,6 +9082,9 @@ type _UnicornPreventAbbreviationsReplacements = (false | _UnicornPreventAbbrevia
9053
9082
  interface _UnicornPreventAbbreviations_Abbreviations {
9054
9083
  [k: string]: _UnicornPreventAbbreviationsReplacements | undefined;
9055
9084
  }
9085
+ interface _UnicornPreventAbbreviations_BooleanObject {
9086
+ [k: string]: boolean | undefined;
9087
+ }
9056
9088
  interface _UnicornPreventAbbreviations_BooleanObject {
9057
9089
  [k: string]: boolean | undefined;
9058
9090
  } // ----- unicorn/relative-url-style -----
package/package.json CHANGED
@@ -1,8 +1,7 @@
1
1
  {
2
2
  "name": "@cany748/eslint-config",
3
3
  "type": "module",
4
- "version": "4.3.0",
5
- "packageManager": "pnpm@10.32.1",
4
+ "version": "5.0.0",
6
5
  "exports": {
7
6
  ".": "./dist/index.mjs"
8
7
  },
@@ -12,20 +11,10 @@
12
11
  "files": [
13
12
  "dist"
14
13
  ],
15
- "scripts": {
16
- "build": "pnpm typegen && tsdown --clean --dts",
17
- "typegen": "bun scripts/typegen.ts",
18
- "dev": "npx @eslint/config-inspector --config eslint.config.ts",
19
- "lint": "eslint",
20
- "lint:fix": "eslint --fix",
21
- "release": "bumpp && pnpm publish",
22
- "typecheck": "tsc --noEmit",
23
- "prepare": "simple-git-hooks"
24
- },
25
14
  "peerDependencies": {
26
15
  "@unocss/eslint-plugin": "^66.6.7",
27
16
  "eslint-plugin-vue": "^10.8.0",
28
- "typescript-eslint": "^8.57.1"
17
+ "typescript-eslint": "^8.58.0"
29
18
  },
30
19
  "peerDependenciesMeta": {
31
20
  "@unocss/eslint-plugin": {
@@ -39,20 +28,20 @@
39
28
  }
40
29
  },
41
30
  "dependencies": {
42
- "@e18e/eslint-plugin": "^0.2.0",
31
+ "@e18e/eslint-plugin": "^0.3.0",
43
32
  "@eslint-community/eslint-plugin-eslint-comments": "^4.7.1",
44
- "@vitest/eslint-plugin": "^1.6.12",
45
- "eslint": "^10.0.3",
46
- "eslint-config-flat-gitignore": "^2.2.1",
33
+ "@vitest/eslint-plugin": "^1.6.14",
34
+ "eslint": "^10.2.0",
35
+ "eslint-config-flat-gitignore": "^2.3.0",
47
36
  "eslint-config-prettier": "^10.1.8",
48
- "eslint-flat-config-utils": "^3.0.2",
37
+ "eslint-flat-config-utils": "^3.1.0",
49
38
  "eslint-plugin-import-x": "^4.16.2",
50
39
  "eslint-plugin-jsonc": "^3.1.2",
51
40
  "eslint-plugin-n": "^17.24.0",
52
41
  "eslint-plugin-no-only-tests": "^3.3.0",
53
42
  "eslint-plugin-prettier": "^5.5.5",
54
43
  "eslint-plugin-regexp": "^3.1.0",
55
- "eslint-plugin-unicorn": "^63.0.0",
44
+ "eslint-plugin-unicorn": "^64.0.0",
56
45
  "eslint-plugin-unused-imports": "^4.4.1",
57
46
  "globals": "^17.4.0",
58
47
  "jiti": "^2.6.1",
@@ -60,21 +49,30 @@
60
49
  "prettier": "^3.8.1"
61
50
  },
62
51
  "devDependencies": {
63
- "@types/node": "^25.5.0",
52
+ "@types/node": "^25.5.2",
64
53
  "@unocss/eslint-plugin": "^66.6.7",
65
54
  "bumpp": "^11.0.1",
66
55
  "eslint-plugin-vue": "^10.8.0",
67
56
  "eslint-typegen": "^2.3.1",
68
57
  "lint-staged": "^16.4.0",
69
58
  "simple-git-hooks": "^2.13.1",
70
- "tsdown": "^0.21.4",
71
- "typescript": "^5.9.3",
72
- "typescript-eslint": "^8.57.1"
59
+ "tsdown": "^0.21.7",
60
+ "typescript": "^6.0.2",
61
+ "typescript-eslint": "^8.58.0"
73
62
  },
74
63
  "simple-git-hooks": {
75
64
  "pre-commit": "pnpm lint-staged"
76
65
  },
77
66
  "lint-staged": {
78
67
  "*": "eslint --fix"
68
+ },
69
+ "scripts": {
70
+ "build": "pnpm typegen && tsdown --clean --dts",
71
+ "typegen": "bun scripts/typegen.ts",
72
+ "dev": "pnpm dlx @eslint/config-inspector --config eslint.config.ts",
73
+ "lint": "eslint",
74
+ "lint:fix": "eslint --fix",
75
+ "release": "bumpp && pnpm publish",
76
+ "typecheck": "tsc --noEmit"
79
77
  }
80
- }
78
+ }