@sxzz/eslint-config 6.2.0 → 7.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 (3) hide show
  1. package/dist/index.d.ts +157 -140
  2. package/dist/index.js +16 -16
  3. package/package.json +12 -12
package/dist/index.d.ts CHANGED
@@ -451,6 +451,11 @@ interface Rules {
451
451
  */
452
452
  "@typescript-eslint/no-unnecessary-type-constraint"?: Linter.RuleEntry<[]>;
453
453
  /**
454
+ * Disallow conversion idioms when they do not change the type or value of the expression
455
+ * @see https://typescript-eslint.io/rules/no-unnecessary-type-conversion
456
+ */
457
+ "@typescript-eslint/no-unnecessary-type-conversion"?: Linter.RuleEntry<[]>;
458
+ /**
454
459
  * Disallow type parameters that aren't used multiple times
455
460
  * @see https://typescript-eslint.io/rules/no-unnecessary-type-parameters
456
461
  */
@@ -2584,7 +2589,7 @@ interface Rules {
2584
2589
  * Disallow identifiers from shadowing restricted names
2585
2590
  * @see https://eslint.org/docs/latest/rules/no-shadow-restricted-names
2586
2591
  */
2587
- "no-shadow-restricted-names"?: Linter.RuleEntry<[]>;
2592
+ "no-shadow-restricted-names"?: Linter.RuleEntry<NoShadowRestrictedNames>;
2588
2593
  /**
2589
2594
  * Disallow spacing between function identifiers and their applications (deprecated)
2590
2595
  * @see https://eslint.org/docs/latest/rules/no-spaced-func
@@ -3827,670 +3832,670 @@ interface Rules {
3827
3832
  "unicode-bom"?: Linter.RuleEntry<UnicodeBom>;
3828
3833
  /**
3829
3834
  * Improve regexes by making them shorter, consistent, and safer.
3830
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/better-regex.md
3835
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/better-regex.md
3831
3836
  */
3832
3837
  "unicorn/better-regex"?: Linter.RuleEntry<UnicornBetterRegex>;
3833
3838
  /**
3834
3839
  * Enforce a specific parameter name in catch clauses.
3835
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/catch-error-name.md
3840
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/catch-error-name.md
3836
3841
  */
3837
3842
  "unicorn/catch-error-name"?: Linter.RuleEntry<UnicornCatchErrorName>;
3838
3843
  /**
3839
3844
  * Enforce consistent assertion style with `node:assert`.
3840
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/consistent-assert.md
3845
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-assert.md
3841
3846
  */
3842
3847
  "unicorn/consistent-assert"?: Linter.RuleEntry<[]>;
3843
3848
  /**
3844
3849
  * Prefer passing `Date` directly to the constructor when cloning.
3845
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/consistent-date-clone.md
3850
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-date-clone.md
3846
3851
  */
3847
3852
  "unicorn/consistent-date-clone"?: Linter.RuleEntry<[]>;
3848
3853
  /**
3849
3854
  * Use destructured variables over properties.
3850
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/consistent-destructuring.md
3855
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-destructuring.md
3851
3856
  */
3852
3857
  "unicorn/consistent-destructuring"?: Linter.RuleEntry<[]>;
3853
3858
  /**
3854
3859
  * Prefer consistent types when spreading a ternary in an array literal.
3855
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/consistent-empty-array-spread.md
3860
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-empty-array-spread.md
3856
3861
  */
3857
3862
  "unicorn/consistent-empty-array-spread"?: Linter.RuleEntry<[]>;
3858
3863
  /**
3859
3864
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
3860
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/consistent-existence-index-check.md
3865
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-existence-index-check.md
3861
3866
  */
3862
3867
  "unicorn/consistent-existence-index-check"?: Linter.RuleEntry<[]>;
3863
3868
  /**
3864
3869
  * Move function definitions to the highest possible scope.
3865
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/consistent-function-scoping.md
3870
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-function-scoping.md
3866
3871
  */
3867
3872
  "unicorn/consistent-function-scoping"?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
3868
3873
  /**
3869
3874
  * Enforce correct `Error` subclassing.
3870
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/custom-error-definition.md
3875
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/custom-error-definition.md
3871
3876
  */
3872
3877
  "unicorn/custom-error-definition"?: Linter.RuleEntry<[]>;
3873
3878
  /**
3874
3879
  * Enforce no spaces between braces.
3875
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/empty-brace-spaces.md
3880
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/empty-brace-spaces.md
3876
3881
  */
3877
3882
  "unicorn/empty-brace-spaces"?: Linter.RuleEntry<[]>;
3878
3883
  /**
3879
3884
  * Enforce passing a `message` value when creating a built-in error.
3880
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/error-message.md
3885
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/error-message.md
3881
3886
  */
3882
3887
  "unicorn/error-message"?: Linter.RuleEntry<[]>;
3883
3888
  /**
3884
3889
  * Require escape sequences to use uppercase or lowercase values.
3885
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/escape-case.md
3890
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/escape-case.md
3886
3891
  */
3887
3892
  "unicorn/escape-case"?: Linter.RuleEntry<UnicornEscapeCase>;
3888
3893
  /**
3889
3894
  * Add expiration conditions to TODO comments.
3890
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/expiring-todo-comments.md
3895
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/expiring-todo-comments.md
3891
3896
  */
3892
3897
  "unicorn/expiring-todo-comments"?: Linter.RuleEntry<UnicornExpiringTodoComments>;
3893
3898
  /**
3894
3899
  * Enforce explicitly comparing the `length` or `size` property of a value.
3895
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/explicit-length-check.md
3900
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/explicit-length-check.md
3896
3901
  */
3897
3902
  "unicorn/explicit-length-check"?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
3898
3903
  /**
3899
3904
  * Enforce a case style for filenames.
3900
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/filename-case.md
3905
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/filename-case.md
3901
3906
  */
3902
3907
  "unicorn/filename-case"?: Linter.RuleEntry<UnicornFilenameCase>;
3903
3908
  /**
3904
3909
  * Enforce specific import styles per module.
3905
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/import-style.md
3910
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/import-style.md
3906
3911
  */
3907
3912
  "unicorn/import-style"?: Linter.RuleEntry<UnicornImportStyle>;
3908
3913
  /**
3909
3914
  * Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
3910
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/new-for-builtins.md
3915
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/new-for-builtins.md
3911
3916
  */
3912
3917
  "unicorn/new-for-builtins"?: Linter.RuleEntry<[]>;
3913
3918
  /**
3914
3919
  * Enforce specifying rules to disable in `eslint-disable` comments.
3915
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-abusive-eslint-disable.md
3920
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-abusive-eslint-disable.md
3916
3921
  */
3917
3922
  "unicorn/no-abusive-eslint-disable"?: Linter.RuleEntry<[]>;
3918
3923
  /**
3919
3924
  * Disallow recursive access to `this` within getters and setters.
3920
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-accessor-recursion.md
3925
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-accessor-recursion.md
3921
3926
  */
3922
3927
  "unicorn/no-accessor-recursion"?: Linter.RuleEntry<[]>;
3923
3928
  /**
3924
3929
  * Disallow anonymous functions and classes as the default export.
3925
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-anonymous-default-export.md
3930
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-anonymous-default-export.md
3926
3931
  */
3927
3932
  "unicorn/no-anonymous-default-export"?: Linter.RuleEntry<[]>;
3928
3933
  /**
3929
3934
  * Prevent passing a function reference directly to iterator methods.
3930
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-array-callback-reference.md
3935
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-array-callback-reference.md
3931
3936
  */
3932
3937
  "unicorn/no-array-callback-reference"?: Linter.RuleEntry<[]>;
3933
3938
  /**
3934
3939
  * Prefer `for…of` over the `forEach` method.
3935
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-array-for-each.md
3940
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-array-for-each.md
3936
3941
  */
3937
3942
  "unicorn/no-array-for-each"?: Linter.RuleEntry<[]>;
3938
3943
  /**
3939
3944
  * Disallow using the `this` argument in array methods.
3940
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-array-method-this-argument.md
3945
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-array-method-this-argument.md
3941
3946
  */
3942
3947
  "unicorn/no-array-method-this-argument"?: Linter.RuleEntry<[]>;
3943
3948
  /**
3944
3949
  * Replaced by `unicorn/prefer-single-call` which covers more cases.
3945
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/deprecated-rules.md#no-array-push-push
3950
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/deprecated-rules.md#no-array-push-push
3946
3951
  * @deprecated
3947
3952
  */
3948
3953
  "unicorn/no-array-push-push"?: Linter.RuleEntry<[]>;
3949
3954
  /**
3950
3955
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
3951
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-array-reduce.md
3956
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-array-reduce.md
3952
3957
  */
3953
3958
  "unicorn/no-array-reduce"?: Linter.RuleEntry<UnicornNoArrayReduce>;
3954
3959
  /**
3955
3960
  * Disallow member access from await expression.
3956
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-await-expression-member.md
3961
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-await-expression-member.md
3957
3962
  */
3958
3963
  "unicorn/no-await-expression-member"?: Linter.RuleEntry<[]>;
3959
3964
  /**
3960
3965
  * Disallow using `await` in `Promise` method parameters.
3961
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-await-in-promise-methods.md
3966
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-await-in-promise-methods.md
3962
3967
  */
3963
3968
  "unicorn/no-await-in-promise-methods"?: Linter.RuleEntry<[]>;
3964
3969
  /**
3965
3970
  * Do not use leading/trailing space between `console.log` parameters.
3966
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-console-spaces.md
3971
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-console-spaces.md
3967
3972
  */
3968
3973
  "unicorn/no-console-spaces"?: Linter.RuleEntry<[]>;
3969
3974
  /**
3970
3975
  * Do not use `document.cookie` directly.
3971
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-document-cookie.md
3976
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-document-cookie.md
3972
3977
  */
3973
3978
  "unicorn/no-document-cookie"?: Linter.RuleEntry<[]>;
3974
3979
  /**
3975
3980
  * Disallow empty files.
3976
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-empty-file.md
3981
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-empty-file.md
3977
3982
  */
3978
3983
  "unicorn/no-empty-file"?: Linter.RuleEntry<[]>;
3979
3984
  /**
3980
3985
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
3981
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-for-loop.md
3986
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-for-loop.md
3982
3987
  */
3983
3988
  "unicorn/no-for-loop"?: Linter.RuleEntry<[]>;
3984
3989
  /**
3985
3990
  * Enforce the use of Unicode escapes instead of hexadecimal escapes.
3986
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-hex-escape.md
3991
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-hex-escape.md
3987
3992
  */
3988
3993
  "unicorn/no-hex-escape"?: Linter.RuleEntry<[]>;
3989
3994
  /**
3990
3995
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
3991
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/deprecated-rules.md#no-instanceof-array
3996
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/deprecated-rules.md#no-instanceof-array
3992
3997
  * @deprecated
3993
3998
  */
3994
3999
  "unicorn/no-instanceof-array"?: Linter.RuleEntry<[]>;
3995
4000
  /**
3996
4001
  * Disallow `instanceof` with built-in objects
3997
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-instanceof-builtins.md
4002
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-instanceof-builtins.md
3998
4003
  */
3999
4004
  "unicorn/no-instanceof-builtins"?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
4000
4005
  /**
4001
4006
  * Disallow invalid options in `fetch()` and `new Request()`.
4002
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-invalid-fetch-options.md
4007
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-invalid-fetch-options.md
4003
4008
  */
4004
4009
  "unicorn/no-invalid-fetch-options"?: Linter.RuleEntry<[]>;
4005
4010
  /**
4006
4011
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
4007
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-invalid-remove-event-listener.md
4012
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-invalid-remove-event-listener.md
4008
4013
  */
4009
4014
  "unicorn/no-invalid-remove-event-listener"?: Linter.RuleEntry<[]>;
4010
4015
  /**
4011
4016
  * Disallow identifiers starting with `new` or `class`.
4012
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-keyword-prefix.md
4017
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-keyword-prefix.md
4013
4018
  */
4014
4019
  "unicorn/no-keyword-prefix"?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
4015
4020
  /**
4016
4021
  * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
4017
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/deprecated-rules.md#no-length-as-slice-end
4022
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/deprecated-rules.md#no-length-as-slice-end
4018
4023
  * @deprecated
4019
4024
  */
4020
4025
  "unicorn/no-length-as-slice-end"?: Linter.RuleEntry<[]>;
4021
4026
  /**
4022
4027
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
4023
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-lonely-if.md
4028
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-lonely-if.md
4024
4029
  */
4025
4030
  "unicorn/no-lonely-if"?: Linter.RuleEntry<[]>;
4026
4031
  /**
4027
4032
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
4028
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-magic-array-flat-depth.md
4033
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-magic-array-flat-depth.md
4029
4034
  */
4030
4035
  "unicorn/no-magic-array-flat-depth"?: Linter.RuleEntry<[]>;
4031
4036
  /**
4032
4037
  * Disallow named usage of default import and export.
4033
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-named-default.md
4038
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-named-default.md
4034
4039
  */
4035
4040
  "unicorn/no-named-default"?: Linter.RuleEntry<[]>;
4036
4041
  /**
4037
4042
  * Disallow negated conditions.
4038
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-negated-condition.md
4043
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-negated-condition.md
4039
4044
  */
4040
4045
  "unicorn/no-negated-condition"?: Linter.RuleEntry<[]>;
4041
4046
  /**
4042
4047
  * Disallow negated expression in equality check.
4043
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-negation-in-equality-check.md
4048
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-negation-in-equality-check.md
4044
4049
  */
4045
4050
  "unicorn/no-negation-in-equality-check"?: Linter.RuleEntry<[]>;
4046
4051
  /**
4047
4052
  * Disallow nested ternary expressions.
4048
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-nested-ternary.md
4053
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-nested-ternary.md
4049
4054
  */
4050
4055
  "unicorn/no-nested-ternary"?: Linter.RuleEntry<[]>;
4051
4056
  /**
4052
4057
  * Disallow `new Array()`.
4053
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-new-array.md
4058
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-new-array.md
4054
4059
  */
4055
4060
  "unicorn/no-new-array"?: Linter.RuleEntry<[]>;
4056
4061
  /**
4057
4062
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
4058
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-new-buffer.md
4063
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-new-buffer.md
4059
4064
  */
4060
4065
  "unicorn/no-new-buffer"?: Linter.RuleEntry<[]>;
4061
4066
  /**
4062
4067
  * Disallow the use of the `null` literal.
4063
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-null.md
4068
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-null.md
4064
4069
  */
4065
4070
  "unicorn/no-null"?: Linter.RuleEntry<UnicornNoNull>;
4066
4071
  /**
4067
4072
  * Disallow the use of objects as default parameters.
4068
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-object-as-default-parameter.md
4073
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-object-as-default-parameter.md
4069
4074
  */
4070
4075
  "unicorn/no-object-as-default-parameter"?: Linter.RuleEntry<[]>;
4071
4076
  /**
4072
4077
  * Disallow `process.exit()`.
4073
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-process-exit.md
4078
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-process-exit.md
4074
4079
  */
4075
4080
  "unicorn/no-process-exit"?: Linter.RuleEntry<[]>;
4076
4081
  /**
4077
4082
  * Disallow passing single-element arrays to `Promise` methods.
4078
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-single-promise-in-promise-methods.md
4083
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-single-promise-in-promise-methods.md
4079
4084
  */
4080
4085
  "unicorn/no-single-promise-in-promise-methods"?: Linter.RuleEntry<[]>;
4081
4086
  /**
4082
4087
  * Disallow classes that only have static members.
4083
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-static-only-class.md
4088
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-static-only-class.md
4084
4089
  */
4085
4090
  "unicorn/no-static-only-class"?: Linter.RuleEntry<[]>;
4086
4091
  /**
4087
4092
  * Disallow `then` property.
4088
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-thenable.md
4093
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-thenable.md
4089
4094
  */
4090
4095
  "unicorn/no-thenable"?: Linter.RuleEntry<[]>;
4091
4096
  /**
4092
4097
  * Disallow assigning `this` to a variable.
4093
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-this-assignment.md
4098
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-this-assignment.md
4094
4099
  */
4095
4100
  "unicorn/no-this-assignment"?: Linter.RuleEntry<[]>;
4096
4101
  /**
4097
4102
  * Disallow comparing `undefined` using `typeof`.
4098
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-typeof-undefined.md
4103
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-typeof-undefined.md
4099
4104
  */
4100
4105
  "unicorn/no-typeof-undefined"?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
4101
4106
  /**
4102
4107
  * Disallow using `1` as the `depth` argument of `Array#flat()`.
4103
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-unnecessary-array-flat-depth.md
4108
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unnecessary-array-flat-depth.md
4104
4109
  */
4105
4110
  "unicorn/no-unnecessary-array-flat-depth"?: Linter.RuleEntry<[]>;
4106
4111
  /**
4107
4112
  * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
4108
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-unnecessary-array-splice-count.md
4113
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unnecessary-array-splice-count.md
4109
4114
  */
4110
4115
  "unicorn/no-unnecessary-array-splice-count"?: Linter.RuleEntry<[]>;
4111
4116
  /**
4112
4117
  * Disallow awaiting non-promise values.
4113
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-unnecessary-await.md
4118
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unnecessary-await.md
4114
4119
  */
4115
4120
  "unicorn/no-unnecessary-await"?: Linter.RuleEntry<[]>;
4116
4121
  /**
4117
4122
  * Enforce the use of built-in methods instead of unnecessary polyfills.
4118
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-unnecessary-polyfills.md
4123
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unnecessary-polyfills.md
4119
4124
  */
4120
4125
  "unicorn/no-unnecessary-polyfills"?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
4121
4126
  /**
4122
4127
  * Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
4123
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-unnecessary-slice-end.md
4128
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unnecessary-slice-end.md
4124
4129
  */
4125
4130
  "unicorn/no-unnecessary-slice-end"?: Linter.RuleEntry<[]>;
4126
4131
  /**
4127
4132
  * Disallow unreadable array destructuring.
4128
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-unreadable-array-destructuring.md
4133
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unreadable-array-destructuring.md
4129
4134
  */
4130
4135
  "unicorn/no-unreadable-array-destructuring"?: Linter.RuleEntry<[]>;
4131
4136
  /**
4132
4137
  * Disallow unreadable IIFEs.
4133
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-unreadable-iife.md
4138
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unreadable-iife.md
4134
4139
  */
4135
4140
  "unicorn/no-unreadable-iife"?: Linter.RuleEntry<[]>;
4136
4141
  /**
4137
4142
  * Disallow unused object properties.
4138
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-unused-properties.md
4143
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unused-properties.md
4139
4144
  */
4140
4145
  "unicorn/no-unused-properties"?: Linter.RuleEntry<[]>;
4141
4146
  /**
4142
4147
  * Disallow useless fallback when spreading in object literals.
4143
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-useless-fallback-in-spread.md
4148
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-fallback-in-spread.md
4144
4149
  */
4145
4150
  "unicorn/no-useless-fallback-in-spread"?: Linter.RuleEntry<[]>;
4146
4151
  /**
4147
4152
  * Disallow useless array length check.
4148
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-useless-length-check.md
4153
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-length-check.md
4149
4154
  */
4150
4155
  "unicorn/no-useless-length-check"?: Linter.RuleEntry<[]>;
4151
4156
  /**
4152
4157
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
4153
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-useless-promise-resolve-reject.md
4158
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-promise-resolve-reject.md
4154
4159
  */
4155
4160
  "unicorn/no-useless-promise-resolve-reject"?: Linter.RuleEntry<[]>;
4156
4161
  /**
4157
4162
  * Disallow unnecessary spread.
4158
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-useless-spread.md
4163
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-spread.md
4159
4164
  */
4160
4165
  "unicorn/no-useless-spread"?: Linter.RuleEntry<[]>;
4161
4166
  /**
4162
4167
  * Disallow useless case in switch statements.
4163
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-useless-switch-case.md
4168
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-switch-case.md
4164
4169
  */
4165
4170
  "unicorn/no-useless-switch-case"?: Linter.RuleEntry<[]>;
4166
4171
  /**
4167
4172
  * Disallow useless `undefined`.
4168
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-useless-undefined.md
4173
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-undefined.md
4169
4174
  */
4170
4175
  "unicorn/no-useless-undefined"?: Linter.RuleEntry<UnicornNoUselessUndefined>;
4171
4176
  /**
4172
4177
  * Disallow number literals with zero fractions or dangling dots.
4173
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-zero-fractions.md
4178
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-zero-fractions.md
4174
4179
  */
4175
4180
  "unicorn/no-zero-fractions"?: Linter.RuleEntry<[]>;
4176
4181
  /**
4177
4182
  * Enforce proper case for numeric literals.
4178
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/number-literal-case.md
4183
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/number-literal-case.md
4179
4184
  */
4180
4185
  "unicorn/number-literal-case"?: Linter.RuleEntry<UnicornNumberLiteralCase>;
4181
4186
  /**
4182
4187
  * Enforce the style of numeric separators by correctly grouping digits.
4183
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/numeric-separators-style.md
4188
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/numeric-separators-style.md
4184
4189
  */
4185
4190
  "unicorn/numeric-separators-style"?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
4186
4191
  /**
4187
4192
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
4188
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-add-event-listener.md
4193
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-add-event-listener.md
4189
4194
  */
4190
4195
  "unicorn/prefer-add-event-listener"?: Linter.RuleEntry<UnicornPreferAddEventListener>;
4191
4196
  /**
4192
4197
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
4193
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-array-find.md
4198
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-array-find.md
4194
4199
  */
4195
4200
  "unicorn/prefer-array-find"?: Linter.RuleEntry<UnicornPreferArrayFind>;
4196
4201
  /**
4197
4202
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
4198
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-array-flat.md
4203
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-array-flat.md
4199
4204
  */
4200
4205
  "unicorn/prefer-array-flat"?: Linter.RuleEntry<UnicornPreferArrayFlat>;
4201
4206
  /**
4202
4207
  * Prefer `.flatMap(…)` over `.map(…).flat()`.
4203
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-array-flat-map.md
4208
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-array-flat-map.md
4204
4209
  */
4205
4210
  "unicorn/prefer-array-flat-map"?: Linter.RuleEntry<[]>;
4206
4211
  /**
4207
4212
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
4208
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-array-index-of.md
4213
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-array-index-of.md
4209
4214
  */
4210
4215
  "unicorn/prefer-array-index-of"?: Linter.RuleEntry<[]>;
4211
4216
  /**
4212
4217
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
4213
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-array-some.md
4218
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-array-some.md
4214
4219
  */
4215
4220
  "unicorn/prefer-array-some"?: Linter.RuleEntry<[]>;
4216
4221
  /**
4217
4222
  * Prefer `.at()` method for index access and `String#charAt()`.
4218
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-at.md
4223
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-at.md
4219
4224
  */
4220
4225
  "unicorn/prefer-at"?: Linter.RuleEntry<UnicornPreferAt>;
4221
4226
  /**
4222
4227
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
4223
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-blob-reading-methods.md
4228
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-blob-reading-methods.md
4224
4229
  */
4225
4230
  "unicorn/prefer-blob-reading-methods"?: Linter.RuleEntry<[]>;
4226
4231
  /**
4227
4232
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
4228
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-code-point.md
4233
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-code-point.md
4229
4234
  */
4230
4235
  "unicorn/prefer-code-point"?: Linter.RuleEntry<[]>;
4231
4236
  /**
4232
4237
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
4233
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-date-now.md
4238
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-date-now.md
4234
4239
  */
4235
4240
  "unicorn/prefer-date-now"?: Linter.RuleEntry<[]>;
4236
4241
  /**
4237
4242
  * Prefer default parameters over reassignment.
4238
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-default-parameters.md
4243
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-default-parameters.md
4239
4244
  */
4240
4245
  "unicorn/prefer-default-parameters"?: Linter.RuleEntry<[]>;
4241
4246
  /**
4242
4247
  * Prefer `Node#append()` over `Node#appendChild()`.
4243
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-dom-node-append.md
4248
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-dom-node-append.md
4244
4249
  */
4245
4250
  "unicorn/prefer-dom-node-append"?: Linter.RuleEntry<[]>;
4246
4251
  /**
4247
4252
  * Prefer using `.dataset` on DOM elements over calling attribute methods.
4248
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-dom-node-dataset.md
4253
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-dom-node-dataset.md
4249
4254
  */
4250
4255
  "unicorn/prefer-dom-node-dataset"?: Linter.RuleEntry<[]>;
4251
4256
  /**
4252
4257
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
4253
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-dom-node-remove.md
4258
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-dom-node-remove.md
4254
4259
  */
4255
4260
  "unicorn/prefer-dom-node-remove"?: Linter.RuleEntry<[]>;
4256
4261
  /**
4257
4262
  * Prefer `.textContent` over `.innerText`.
4258
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-dom-node-text-content.md
4263
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-dom-node-text-content.md
4259
4264
  */
4260
4265
  "unicorn/prefer-dom-node-text-content"?: Linter.RuleEntry<[]>;
4261
4266
  /**
4262
4267
  * Prefer `EventTarget` over `EventEmitter`.
4263
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-event-target.md
4268
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-event-target.md
4264
4269
  */
4265
4270
  "unicorn/prefer-event-target"?: Linter.RuleEntry<[]>;
4266
4271
  /**
4267
4272
  * Prefer `export…from` when re-exporting.
4268
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-export-from.md
4273
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-export-from.md
4269
4274
  */
4270
4275
  "unicorn/prefer-export-from"?: Linter.RuleEntry<UnicornPreferExportFrom>;
4271
4276
  /**
4272
4277
  * Prefer `globalThis` over `window`, `self`, and `global`.
4273
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-global-this.md
4278
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-global-this.md
4274
4279
  */
4275
4280
  "unicorn/prefer-global-this"?: Linter.RuleEntry<[]>;
4276
4281
  /**
4277
4282
  * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
4278
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-import-meta-properties.md
4283
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-import-meta-properties.md
4279
4284
  */
4280
4285
  "unicorn/prefer-import-meta-properties"?: Linter.RuleEntry<[]>;
4281
4286
  /**
4282
4287
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
4283
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-includes.md
4288
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-includes.md
4284
4289
  */
4285
4290
  "unicorn/prefer-includes"?: Linter.RuleEntry<[]>;
4286
4291
  /**
4287
4292
  * Prefer reading a JSON file as a buffer.
4288
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-json-parse-buffer.md
4293
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-json-parse-buffer.md
4289
4294
  */
4290
4295
  "unicorn/prefer-json-parse-buffer"?: Linter.RuleEntry<[]>;
4291
4296
  /**
4292
4297
  * Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
4293
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-keyboard-event-key.md
4298
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-keyboard-event-key.md
4294
4299
  */
4295
4300
  "unicorn/prefer-keyboard-event-key"?: Linter.RuleEntry<[]>;
4296
4301
  /**
4297
4302
  * Prefer using a logical operator over a ternary.
4298
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-logical-operator-over-ternary.md
4303
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-logical-operator-over-ternary.md
4299
4304
  */
4300
4305
  "unicorn/prefer-logical-operator-over-ternary"?: Linter.RuleEntry<[]>;
4301
4306
  /**
4302
4307
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
4303
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-math-min-max.md
4308
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-math-min-max.md
4304
4309
  */
4305
4310
  "unicorn/prefer-math-min-max"?: Linter.RuleEntry<[]>;
4306
4311
  /**
4307
4312
  * Enforce the use of `Math.trunc` instead of bitwise operators.
4308
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-math-trunc.md
4313
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-math-trunc.md
4309
4314
  */
4310
4315
  "unicorn/prefer-math-trunc"?: Linter.RuleEntry<[]>;
4311
4316
  /**
4312
4317
  * Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
4313
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-modern-dom-apis.md
4318
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-modern-dom-apis.md
4314
4319
  */
4315
4320
  "unicorn/prefer-modern-dom-apis"?: Linter.RuleEntry<[]>;
4316
4321
  /**
4317
4322
  * Prefer modern `Math` APIs over legacy patterns.
4318
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-modern-math-apis.md
4323
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-modern-math-apis.md
4319
4324
  */
4320
4325
  "unicorn/prefer-modern-math-apis"?: Linter.RuleEntry<[]>;
4321
4326
  /**
4322
4327
  * Prefer JavaScript modules (ESM) over CommonJS.
4323
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-module.md
4328
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-module.md
4324
4329
  */
4325
4330
  "unicorn/prefer-module"?: Linter.RuleEntry<[]>;
4326
4331
  /**
4327
4332
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
4328
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-native-coercion-functions.md
4333
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-native-coercion-functions.md
4329
4334
  */
4330
4335
  "unicorn/prefer-native-coercion-functions"?: Linter.RuleEntry<[]>;
4331
4336
  /**
4332
4337
  * Prefer negative index over `.length - index` when possible.
4333
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-negative-index.md
4338
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-negative-index.md
4334
4339
  */
4335
4340
  "unicorn/prefer-negative-index"?: Linter.RuleEntry<[]>;
4336
4341
  /**
4337
4342
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
4338
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-node-protocol.md
4343
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-node-protocol.md
4339
4344
  */
4340
4345
  "unicorn/prefer-node-protocol"?: Linter.RuleEntry<[]>;
4341
4346
  /**
4342
4347
  * Prefer `Number` static properties over global ones.
4343
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-number-properties.md
4348
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-number-properties.md
4344
4349
  */
4345
4350
  "unicorn/prefer-number-properties"?: Linter.RuleEntry<UnicornPreferNumberProperties>;
4346
4351
  /**
4347
4352
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
4348
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-object-from-entries.md
4353
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-object-from-entries.md
4349
4354
  */
4350
4355
  "unicorn/prefer-object-from-entries"?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
4351
4356
  /**
4352
4357
  * Prefer omitting the `catch` binding parameter.
4353
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-optional-catch-binding.md
4358
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-optional-catch-binding.md
4354
4359
  */
4355
4360
  "unicorn/prefer-optional-catch-binding"?: Linter.RuleEntry<[]>;
4356
4361
  /**
4357
4362
  * Prefer borrowing methods from the prototype instead of the instance.
4358
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-prototype-methods.md
4363
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-prototype-methods.md
4359
4364
  */
4360
4365
  "unicorn/prefer-prototype-methods"?: Linter.RuleEntry<[]>;
4361
4366
  /**
4362
4367
  * Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
4363
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-query-selector.md
4368
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-query-selector.md
4364
4369
  */
4365
4370
  "unicorn/prefer-query-selector"?: Linter.RuleEntry<[]>;
4366
4371
  /**
4367
4372
  * Prefer `Reflect.apply()` over `Function#apply()`.
4368
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-reflect-apply.md
4373
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-reflect-apply.md
4369
4374
  */
4370
4375
  "unicorn/prefer-reflect-apply"?: Linter.RuleEntry<[]>;
4371
4376
  /**
4372
4377
  * Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
4373
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-regexp-test.md
4378
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-regexp-test.md
4374
4379
  */
4375
4380
  "unicorn/prefer-regexp-test"?: Linter.RuleEntry<[]>;
4376
4381
  /**
4377
4382
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
4378
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-set-has.md
4383
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-set-has.md
4379
4384
  */
4380
4385
  "unicorn/prefer-set-has"?: Linter.RuleEntry<[]>;
4381
4386
  /**
4382
4387
  * Prefer using `Set#size` instead of `Array#length`.
4383
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-set-size.md
4388
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-set-size.md
4384
4389
  */
4385
4390
  "unicorn/prefer-set-size"?: Linter.RuleEntry<[]>;
4386
4391
  /**
4387
4392
  * Enforce combining multiple `Array#push()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
4388
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-single-call.md
4393
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-single-call.md
4389
4394
  */
4390
4395
  "unicorn/prefer-single-call"?: Linter.RuleEntry<UnicornPreferSingleCall>;
4391
4396
  /**
4392
4397
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
4393
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-spread.md
4398
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-spread.md
4394
4399
  */
4395
4400
  "unicorn/prefer-spread"?: Linter.RuleEntry<[]>;
4396
4401
  /**
4397
4402
  * Prefer using the `String.raw` tag to avoid escaping `\`.
4398
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-string-raw.md
4403
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-string-raw.md
4399
4404
  */
4400
4405
  "unicorn/prefer-string-raw"?: Linter.RuleEntry<[]>;
4401
4406
  /**
4402
4407
  * Prefer `String#replaceAll()` over regex searches with the global flag.
4403
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-string-replace-all.md
4408
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-string-replace-all.md
4404
4409
  */
4405
4410
  "unicorn/prefer-string-replace-all"?: Linter.RuleEntry<[]>;
4406
4411
  /**
4407
4412
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
4408
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-string-slice.md
4413
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-string-slice.md
4409
4414
  */
4410
4415
  "unicorn/prefer-string-slice"?: Linter.RuleEntry<[]>;
4411
4416
  /**
4412
4417
  * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
4413
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-string-starts-ends-with.md
4418
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-string-starts-ends-with.md
4414
4419
  */
4415
4420
  "unicorn/prefer-string-starts-ends-with"?: Linter.RuleEntry<[]>;
4416
4421
  /**
4417
4422
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
4418
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-string-trim-start-end.md
4423
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-string-trim-start-end.md
4419
4424
  */
4420
4425
  "unicorn/prefer-string-trim-start-end"?: Linter.RuleEntry<[]>;
4421
4426
  /**
4422
4427
  * Prefer using `structuredClone` to create a deep clone.
4423
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-structured-clone.md
4428
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-structured-clone.md
4424
4429
  */
4425
4430
  "unicorn/prefer-structured-clone"?: Linter.RuleEntry<UnicornPreferStructuredClone>;
4426
4431
  /**
4427
4432
  * Prefer `switch` over multiple `else-if`.
4428
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-switch.md
4433
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-switch.md
4429
4434
  */
4430
4435
  "unicorn/prefer-switch"?: Linter.RuleEntry<UnicornPreferSwitch>;
4431
4436
  /**
4432
4437
  * Prefer ternary expressions over simple `if-else` statements.
4433
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-ternary.md
4438
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-ternary.md
4434
4439
  */
4435
4440
  "unicorn/prefer-ternary"?: Linter.RuleEntry<UnicornPreferTernary>;
4436
4441
  /**
4437
4442
  * Prefer top-level await over top-level promises and async function calls.
4438
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-top-level-await.md
4443
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-top-level-await.md
4439
4444
  */
4440
4445
  "unicorn/prefer-top-level-await"?: Linter.RuleEntry<[]>;
4441
4446
  /**
4442
4447
  * Enforce throwing `TypeError` in type checking conditions.
4443
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-type-error.md
4448
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-type-error.md
4444
4449
  */
4445
4450
  "unicorn/prefer-type-error"?: Linter.RuleEntry<[]>;
4446
4451
  /**
4447
4452
  * Prevent abbreviations.
4448
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prevent-abbreviations.md
4453
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prevent-abbreviations.md
4449
4454
  */
4450
4455
  "unicorn/prevent-abbreviations"?: Linter.RuleEntry<UnicornPreventAbbreviations>;
4451
4456
  /**
4452
4457
  * Enforce consistent relative URL style.
4453
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/relative-url-style.md
4458
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/relative-url-style.md
4454
4459
  */
4455
4460
  "unicorn/relative-url-style"?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
4456
4461
  /**
4457
4462
  * Enforce using the separator argument with `Array#join()`.
4458
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/require-array-join-separator.md
4463
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/require-array-join-separator.md
4459
4464
  */
4460
4465
  "unicorn/require-array-join-separator"?: Linter.RuleEntry<[]>;
4461
4466
  /**
4462
4467
  * Enforce using the digits argument with `Number#toFixed()`.
4463
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/require-number-to-fixed-digits-argument.md
4468
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/require-number-to-fixed-digits-argument.md
4464
4469
  */
4465
4470
  "unicorn/require-number-to-fixed-digits-argument"?: Linter.RuleEntry<[]>;
4466
4471
  /**
4467
4472
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
4468
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/require-post-message-target-origin.md
4473
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/require-post-message-target-origin.md
4469
4474
  */
4470
4475
  "unicorn/require-post-message-target-origin"?: Linter.RuleEntry<[]>;
4471
4476
  /**
4472
4477
  * Enforce better string content.
4473
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/string-content.md
4478
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/string-content.md
4474
4479
  */
4475
4480
  "unicorn/string-content"?: Linter.RuleEntry<UnicornStringContent>;
4476
4481
  /**
4477
4482
  * Enforce consistent brace style for `case` clauses.
4478
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/switch-case-braces.md
4483
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/switch-case-braces.md
4479
4484
  */
4480
4485
  "unicorn/switch-case-braces"?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
4481
4486
  /**
4482
4487
  * Fix whitespace-insensitive template indentation.
4483
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/template-indent.md
4488
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/template-indent.md
4484
4489
  */
4485
4490
  "unicorn/template-indent"?: Linter.RuleEntry<UnicornTemplateIndent>;
4486
4491
  /**
4487
4492
  * Enforce consistent case for text encoding identifiers.
4488
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/text-encoding-identifier-case.md
4493
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/text-encoding-identifier-case.md
4489
4494
  */
4490
4495
  "unicorn/text-encoding-identifier-case"?: Linter.RuleEntry<[]>;
4491
4496
  /**
4492
4497
  * Require `new` when creating an error.
4493
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/throw-new-error.md
4498
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/throw-new-error.md
4494
4499
  */
4495
4500
  "unicorn/throw-new-error"?: Linter.RuleEntry<[]>;
4496
4501
  /**
@@ -4659,6 +4664,11 @@ interface Rules {
4659
4664
  */
4660
4665
  "vue/define-props-declaration"?: Linter.RuleEntry<VueDefinePropsDeclaration>;
4661
4666
  /**
4667
+ * enforce consistent style for props destructuring
4668
+ * @see https://eslint.vuejs.org/rules/define-props-destructuring.html
4669
+ */
4670
+ "vue/define-props-destructuring"?: Linter.RuleEntry<VueDefinePropsDestructuring>;
4671
+ /**
4662
4672
  * Enforce consistent newlines before and after dots in `<template>`
4663
4673
  * @see https://eslint.vuejs.org/rules/dot-location.html
4664
4674
  */
@@ -5062,7 +5072,7 @@ interface Rules {
5062
5072
  * disallow adding multiple root nodes to the template
5063
5073
  * @see https://eslint.vuejs.org/rules/no-multiple-template-root.html
5064
5074
  */
5065
- "vue/no-multiple-template-root"?: Linter.RuleEntry<[]>;
5075
+ "vue/no-multiple-template-root"?: Linter.RuleEntry<VueNoMultipleTemplateRoot>;
5066
5076
  /**
5067
5077
  * disallow mutation of component props
5068
5078
  * @see https://eslint.vuejs.org/rules/no-mutating-props.html
@@ -6589,6 +6599,7 @@ type TypescriptEslintNoUnusedExpressions = [] | [{
6589
6599
  allowTernary?: boolean;
6590
6600
  allowTaggedTemplates?: boolean;
6591
6601
  enforceForJSX?: boolean;
6602
+ ignoreDirectives?: boolean;
6592
6603
  }];
6593
6604
  type TypescriptEslintNoUnusedVars = [] | [(("all" | "local") | {
6594
6605
  args?: ("all" | "after-used" | "none");
@@ -6627,6 +6638,7 @@ type TypescriptEslintOnlyThrowError = [] | [{
6627
6638
  name: (string | [string, ...(string)[]]);
6628
6639
  package: string;
6629
6640
  })[];
6641
+ allowRethrowing?: boolean;
6630
6642
  allowThrowingAny?: boolean;
6631
6643
  allowThrowingUnknown?: boolean;
6632
6644
  }];
@@ -8645,6 +8657,9 @@ type NoShadow = [] | [{
8645
8657
  allow?: string[];
8646
8658
  ignoreOnInitialization?: boolean;
8647
8659
  }];
8660
+ type NoShadowRestrictedNames = [] | [{
8661
+ reportGlobalThis?: boolean;
8662
+ }];
8648
8663
  type NoSync = [] | [{
8649
8664
  allowAtRootLevel?: boolean;
8650
8665
  }];
@@ -8686,6 +8701,7 @@ type NoUnusedExpressions = [] | [{
8686
8701
  allowTernary?: boolean;
8687
8702
  allowTaggedTemplates?: boolean;
8688
8703
  enforceForJSX?: boolean;
8704
+ ignoreDirectives?: boolean;
8689
8705
  }];
8690
8706
  type NoUnusedVars = [] | [(("all" | "local") | {
8691
8707
  vars?: ("all" | "local");
@@ -11078,6 +11094,9 @@ type VueDefineMacrosOrder = [] | [{
11078
11094
  defineExposeLast?: boolean;
11079
11095
  }];
11080
11096
  type VueDefinePropsDeclaration = [] | [("type-based" | "runtime")];
11097
+ type VueDefinePropsDestructuring = [] | [{
11098
+ destructure?: ("always" | "never");
11099
+ }];
11081
11100
  type VueDotLocation = [] | [("object" | "property")];
11082
11101
  type VueDotNotation = [] | [{
11083
11102
  allowKeywords?: boolean;
@@ -11674,6 +11693,9 @@ type VueNoLoneTemplate = [] | [{
11674
11693
  type VueNoMultiSpaces = [] | [{
11675
11694
  ignoreProperties?: boolean;
11676
11695
  }];
11696
+ type VueNoMultipleTemplateRoot = [] | [{
11697
+ disallowComments?: boolean;
11698
+ }];
11677
11699
  type VueNoMutatingProps = [] | [{
11678
11700
  shallowOnly?: boolean;
11679
11701
  }];
@@ -12338,16 +12360,12 @@ declare const GLOB_EXCLUDE: string[];
12338
12360
  //#region src/presets.d.ts
12339
12361
  /** Ignore common files and include javascript support */
12340
12362
  declare const presetJavaScript: () => Config[];
12341
-
12342
12363
  /** Includes basic json(c) file support and sorting json keys */
12343
12364
  declare const presetJsonc: () => Config[];
12344
-
12345
12365
  /** Includes markdown, yaml + `presetJsonc` support */
12346
12366
  declare const presetLangsExtensions: () => Config[];
12347
-
12348
12367
  /** Includes `presetJavaScript` and typescript support */
12349
12368
  declare const presetBasic: () => Config[];
12350
-
12351
12369
  /**
12352
12370
  * Includes
12353
12371
  * - `presetBasic` (JS+TS) support
@@ -12370,7 +12388,6 @@ interface Options {
12370
12388
  command?: boolean;
12371
12389
  pnpm?: boolean;
12372
12390
  }
12373
-
12374
12391
  /** `@sxzz`'s preset. */
12375
12392
  declare function sxzz(options?: Options, ...userConfigs: Awaitable<Arrayable<Config> | FlatConfigComposer<any, any> | Linter.Config[]>[]): FlatConfigComposer<Config, ConfigNames>;
12376
12393
 
package/dist/index.js CHANGED
@@ -23,9 +23,9 @@ import * as parserVue from "vue-eslint-parser";
23
23
  import * as parserYml from "yaml-eslint-parser";
24
24
  import * as parserJsonc from "jsonc-eslint-parser";
25
25
  import globals from "globals";
26
+ import { configs } from "eslint-plugin-regexp";
26
27
  import process from "node:process";
27
28
  import { isPackageExists } from "local-pkg";
28
- import { configs } from "eslint-plugin-regexp";
29
29
  import { FlatConfigComposer } from "eslint-flat-config-utils";
30
30
 
31
31
  //#region src/configs/command.ts
@@ -142,20 +142,6 @@ const imports = () => [{
142
142
  }
143
143
  }];
144
144
 
145
- //#endregion
146
- //#region src/env.ts
147
- const hasTypeScript = () => isPackageExists("typescript");
148
- const hasVue = () => isPackageExists("vue") || isPackageExists("nuxt") || isPackageExists("vitepress") || isPackageExists("@slidev/cli");
149
- const hasUnocss = () => isPackageExists("unocss") || isPackageExists("@unocss/webpack") || isPackageExists("@unocss/nuxt") || isPackageExists("@unocss/eslint-plugin");
150
- function isInEditorEnv() {
151
- if (process.env.CI) return false;
152
- if (isInGitHooksOrLintStaged()) return false;
153
- return !!(process.env.VSCODE_PID || process.env.VSCODE_CWD || process.env.JETBRAINS_IDE || process.env.VIM || process.env.NVIM);
154
- }
155
- function isInGitHooksOrLintStaged() {
156
- return !!(process.env.GIT_PARAMS || process.env.VSCODE_GIT_COMMAND || process.env.npm_lifecycle_script?.startsWith("lint-staged"));
157
- }
158
-
159
145
  //#endregion
160
146
  //#region src/configs/javascript.ts
161
147
  const restrictedSyntaxJs = [
@@ -235,7 +221,7 @@ const javascript = () => [{
235
221
  "require-await": "error",
236
222
  "sxzz/prefer-string-function": "warn",
237
223
  "unicode-bom": ["error", "never"],
238
- "unused-imports/no-unused-imports": isInEditorEnv() ? "off" : "error",
224
+ "unused-imports/no-unused-imports": "warn",
239
225
  "unused-imports/no-unused-vars": ["error", {
240
226
  args: "after-used",
241
227
  ignoreRestSiblings: true
@@ -937,6 +923,20 @@ const yml = () => [{
937
923
  }
938
924
  }];
939
925
 
926
+ //#endregion
927
+ //#region src/env.ts
928
+ const hasTypeScript = () => isPackageExists("typescript");
929
+ const hasVue = () => isPackageExists("vue") || isPackageExists("nuxt") || isPackageExists("vitepress") || isPackageExists("@slidev/cli");
930
+ const hasUnocss = () => isPackageExists("unocss") || isPackageExists("@unocss/webpack") || isPackageExists("@unocss/nuxt") || isPackageExists("@unocss/eslint-plugin");
931
+ function isInEditorEnv() {
932
+ if (process.env.CI) return false;
933
+ if (isInGitHooksOrLintStaged()) return false;
934
+ return !!(process.env.VSCODE_PID || process.env.VSCODE_CWD || process.env.JETBRAINS_IDE || process.env.VIM || process.env.NVIM);
935
+ }
936
+ function isInGitHooksOrLintStaged() {
937
+ return !!(process.env.GIT_PARAMS || process.env.VSCODE_GIT_COMMAND || process.env.npm_lifecycle_script?.startsWith("lint-staged"));
938
+ }
939
+
940
940
  //#endregion
941
941
  //#region src/presets.ts
942
942
  /** Ignore common files and include javascript support */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sxzz/eslint-config",
3
- "version": "6.2.0",
3
+ "version": "7.0.0",
4
4
  "description": "ESLint config for @sxzz.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -38,7 +38,7 @@
38
38
  },
39
39
  "dependencies": {
40
40
  "@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
41
- "@eslint/js": "^9.25.1",
41
+ "@eslint/js": "^9.26.0",
42
42
  "@eslint/markdown": "^6.4.0",
43
43
  "eslint-config-flat-gitignore": "^2.1.0",
44
44
  "eslint-config-prettier": "^10.1.2",
@@ -52,36 +52,36 @@
52
52
  "eslint-plugin-n": "^17.17.0",
53
53
  "eslint-plugin-perfectionist": "^4.12.3",
54
54
  "eslint-plugin-pnpm": "^0.3.1",
55
- "eslint-plugin-prettier": "^5.2.6",
55
+ "eslint-plugin-prettier": "^5.4.0",
56
56
  "eslint-plugin-regexp": "^2.7.0",
57
57
  "eslint-plugin-sxzz": "^0.2.2",
58
- "eslint-plugin-unicorn": "^59.0.0",
58
+ "eslint-plugin-unicorn": "^59.0.1",
59
59
  "eslint-plugin-unused-imports": "^4.1.4",
60
- "eslint-plugin-vue": "^10.0.1",
60
+ "eslint-plugin-vue": "^10.1.0",
61
61
  "eslint-plugin-yml": "^1.18.0",
62
62
  "globals": "^16.0.0",
63
63
  "jsonc-eslint-parser": "^2.4.0",
64
64
  "local-pkg": "^1.1.1",
65
65
  "prettier": "^3.5.3",
66
- "typescript-eslint": "^8.31.1",
66
+ "typescript-eslint": "^8.32.0",
67
67
  "vue-eslint-parser": "^10.1.3",
68
68
  "yaml-eslint-parser": "^1.3.0"
69
69
  },
70
70
  "devDependencies": {
71
71
  "@eslint/config-inspector": "^1.0.2",
72
72
  "@sxzz/prettier-config": "^2.2.1",
73
- "@types/node": "^22.15.3",
74
- "@unocss/eslint-plugin": "^66.1.0-beta.12",
73
+ "@types/node": "^22.15.14",
74
+ "@unocss/eslint-plugin": "^66.1.0",
75
75
  "ansis": "^3.17.0",
76
76
  "bumpp": "^10.1.0",
77
- "eslint": "^9.25.1",
77
+ "eslint": "^9.26.0",
78
78
  "eslint-typegen": "^2.1.0",
79
- "tsdown": "^0.10.0",
80
- "tsx": "^4.19.3",
79
+ "tsdown": "^0.11.1",
80
+ "tsx": "^4.19.4",
81
81
  "typescript": "^5.8.3"
82
82
  },
83
83
  "engines": {
84
- "node": "^18.18.0 || >=20.0.0"
84
+ "node": ">=20.0.0"
85
85
  },
86
86
  "prettier": "@sxzz/prettier-config",
87
87
  "scripts": {