@antfu/eslint-config 7.4.1 → 7.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.mjs CHANGED
@@ -9,7 +9,7 @@ import parse from "parse-gitignore";
9
9
  import { execSync } from "node:child_process";
10
10
 
11
11
  //#region package.json
12
- var version = "7.4.1";
12
+ var version = "7.4.3";
13
13
 
14
14
  //#endregion
15
15
  //#region src/cli/constants.ts
@@ -172,7 +172,7 @@ async function updateEslintFiles(result) {
172
172
  //#endregion
173
173
  //#region src/cli/constants-generated.ts
174
174
  const versionsMap = {
175
- "@eslint-react/eslint-plugin": "^2.12.2",
175
+ "@eslint-react/eslint-plugin": "^2.12.4",
176
176
  "@next/eslint-plugin-next": "^16.1.6",
177
177
  "@unocss/eslint-plugin": "^66.6.0",
178
178
  "astro-eslint-parser": "^1.2.2",
@@ -182,7 +182,7 @@ const versionsMap = {
182
182
  "eslint-plugin-react-hooks": "^7.0.1",
183
183
  "eslint-plugin-react-refresh": "^0.5.0",
184
184
  "eslint-plugin-solid": "^0.14.5",
185
- "eslint-plugin-svelte": "^3.14.0",
185
+ "eslint-plugin-svelte": "^3.15.0",
186
186
  "prettier-plugin-astro": "^0.14.1",
187
187
  "prettier-plugin-slidev": "^1.0.5",
188
188
  "svelte-eslint-parser": "^1.4.1"
package/dist/index.d.mts CHANGED
@@ -6939,725 +6939,730 @@ interface RuleOptions {
6939
6939
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>;
6940
6940
  /**
6941
6941
  * Improve regexes by making them shorter, consistent, and safer.
6942
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/better-regex.md
6942
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/better-regex.md
6943
6943
  */
6944
6944
  'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>;
6945
6945
  /**
6946
6946
  * Enforce a specific parameter name in catch clauses.
6947
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/catch-error-name.md
6947
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/catch-error-name.md
6948
6948
  */
6949
6949
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
6950
6950
  /**
6951
6951
  * Enforce consistent assertion style with `node:assert`.
6952
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-assert.md
6952
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-assert.md
6953
6953
  */
6954
6954
  'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
6955
6955
  /**
6956
6956
  * Prefer passing `Date` directly to the constructor when cloning.
6957
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-date-clone.md
6957
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-date-clone.md
6958
6958
  */
6959
6959
  'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
6960
6960
  /**
6961
6961
  * Use destructured variables over properties.
6962
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-destructuring.md
6962
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-destructuring.md
6963
6963
  */
6964
6964
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
6965
6965
  /**
6966
6966
  * Prefer consistent types when spreading a ternary in an array literal.
6967
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-empty-array-spread.md
6967
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-empty-array-spread.md
6968
6968
  */
6969
6969
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
6970
6970
  /**
6971
6971
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
6972
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-existence-index-check.md
6972
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-existence-index-check.md
6973
6973
  */
6974
6974
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
6975
6975
  /**
6976
6976
  * Move function definitions to the highest possible scope.
6977
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-function-scoping.md
6977
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-function-scoping.md
6978
6978
  */
6979
6979
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
6980
6980
  /**
6981
6981
  * Enforce correct `Error` subclassing.
6982
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/custom-error-definition.md
6982
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/custom-error-definition.md
6983
6983
  */
6984
6984
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
6985
6985
  /**
6986
6986
  * Enforce no spaces between braces.
6987
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/empty-brace-spaces.md
6987
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/empty-brace-spaces.md
6988
6988
  */
6989
6989
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
6990
6990
  /**
6991
6991
  * Enforce passing a `message` value when creating a built-in error.
6992
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/error-message.md
6992
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/error-message.md
6993
6993
  */
6994
6994
  'unicorn/error-message'?: Linter.RuleEntry<[]>;
6995
6995
  /**
6996
6996
  * Require escape sequences to use uppercase or lowercase values.
6997
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/escape-case.md
6997
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/escape-case.md
6998
6998
  */
6999
6999
  'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
7000
7000
  /**
7001
7001
  * Add expiration conditions to TODO comments.
7002
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/expiring-todo-comments.md
7002
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/expiring-todo-comments.md
7003
7003
  */
7004
7004
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
7005
7005
  /**
7006
7006
  * Enforce explicitly comparing the `length` or `size` property of a value.
7007
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/explicit-length-check.md
7007
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/explicit-length-check.md
7008
7008
  */
7009
7009
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
7010
7010
  /**
7011
7011
  * Enforce a case style for filenames.
7012
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/filename-case.md
7012
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/filename-case.md
7013
7013
  */
7014
7014
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
7015
7015
  /**
7016
7016
  * Enforce specific import styles per module.
7017
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/import-style.md
7017
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/import-style.md
7018
7018
  */
7019
7019
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
7020
+ /**
7021
+ * Prevent usage of variables from outside the scope of isolated functions.
7022
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/isolated-functions.md
7023
+ */
7024
+ 'unicorn/isolated-functions'?: Linter.RuleEntry<UnicornIsolatedFunctions>;
7020
7025
  /**
7021
7026
  * Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
7022
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/new-for-builtins.md
7027
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/new-for-builtins.md
7023
7028
  */
7024
7029
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
7025
7030
  /**
7026
7031
  * Enforce specifying rules to disable in `eslint-disable` comments.
7027
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-abusive-eslint-disable.md
7032
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-abusive-eslint-disable.md
7028
7033
  */
7029
7034
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
7030
7035
  /**
7031
7036
  * Disallow recursive access to `this` within getters and setters.
7032
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-accessor-recursion.md
7037
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-accessor-recursion.md
7033
7038
  */
7034
7039
  'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
7035
7040
  /**
7036
7041
  * Disallow anonymous functions and classes as the default export.
7037
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-anonymous-default-export.md
7042
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-anonymous-default-export.md
7038
7043
  */
7039
7044
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
7040
7045
  /**
7041
7046
  * Prevent passing a function reference directly to iterator methods.
7042
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-callback-reference.md
7047
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-callback-reference.md
7043
7048
  */
7044
7049
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>;
7045
7050
  /**
7046
7051
  * Prefer `for…of` over the `forEach` method.
7047
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-for-each.md
7052
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-for-each.md
7048
7053
  */
7049
7054
  'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>;
7050
7055
  /**
7051
7056
  * Disallow using the `this` argument in array methods.
7052
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-method-this-argument.md
7057
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-method-this-argument.md
7053
7058
  */
7054
7059
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
7055
7060
  /**
7056
7061
  * Replaced by `unicorn/prefer-single-call` which covers more cases.
7057
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/deprecated-rules.md#no-array-push-push
7062
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
7058
7063
  * @deprecated
7059
7064
  */
7060
7065
  'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
7061
7066
  /**
7062
7067
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
7063
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-reduce.md
7068
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-reduce.md
7064
7069
  */
7065
7070
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
7066
7071
  /**
7067
7072
  * Prefer `Array#toReversed()` over `Array#reverse()`.
7068
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-reverse.md
7073
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-reverse.md
7069
7074
  */
7070
7075
  'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
7071
7076
  /**
7072
7077
  * Prefer `Array#toSorted()` over `Array#sort()`.
7073
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-sort.md
7078
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-sort.md
7074
7079
  */
7075
7080
  'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>;
7076
7081
  /**
7077
7082
  * Disallow member access from await expression.
7078
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-await-expression-member.md
7083
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-await-expression-member.md
7079
7084
  */
7080
7085
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
7081
7086
  /**
7082
7087
  * Disallow using `await` in `Promise` method parameters.
7083
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-await-in-promise-methods.md
7088
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-await-in-promise-methods.md
7084
7089
  */
7085
7090
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
7086
7091
  /**
7087
7092
  * Do not use leading/trailing space between `console.log` parameters.
7088
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-console-spaces.md
7093
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-console-spaces.md
7089
7094
  */
7090
7095
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
7091
7096
  /**
7092
7097
  * Do not use `document.cookie` directly.
7093
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-document-cookie.md
7098
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-document-cookie.md
7094
7099
  */
7095
7100
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
7096
7101
  /**
7097
7102
  * Disallow empty files.
7098
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-empty-file.md
7103
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-empty-file.md
7099
7104
  */
7100
7105
  'unicorn/no-empty-file'?: Linter.RuleEntry<[]>;
7101
7106
  /**
7102
7107
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
7103
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-for-loop.md
7108
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-for-loop.md
7104
7109
  */
7105
7110
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
7106
7111
  /**
7107
7112
  * Enforce the use of Unicode escapes instead of hexadecimal escapes.
7108
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-hex-escape.md
7113
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-hex-escape.md
7109
7114
  */
7110
7115
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
7111
7116
  /**
7112
7117
  * Disallow immediate mutation after variable assignment.
7113
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-immediate-mutation.md
7118
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-immediate-mutation.md
7114
7119
  */
7115
7120
  'unicorn/no-immediate-mutation'?: Linter.RuleEntry<[]>;
7116
7121
  /**
7117
7122
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
7118
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/deprecated-rules.md#no-instanceof-array
7123
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
7119
7124
  * @deprecated
7120
7125
  */
7121
7126
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
7122
7127
  /**
7123
7128
  * Disallow `instanceof` with built-in objects
7124
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-instanceof-builtins.md
7129
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-instanceof-builtins.md
7125
7130
  */
7126
7131
  'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
7127
7132
  /**
7128
7133
  * Disallow invalid options in `fetch()` and `new Request()`.
7129
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-invalid-fetch-options.md
7134
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-invalid-fetch-options.md
7130
7135
  */
7131
7136
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
7132
7137
  /**
7133
7138
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
7134
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-invalid-remove-event-listener.md
7139
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-invalid-remove-event-listener.md
7135
7140
  */
7136
7141
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
7137
7142
  /**
7138
7143
  * Disallow identifiers starting with `new` or `class`.
7139
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-keyword-prefix.md
7144
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-keyword-prefix.md
7140
7145
  */
7141
7146
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
7142
7147
  /**
7143
7148
  * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
7144
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/deprecated-rules.md#no-length-as-slice-end
7149
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
7145
7150
  * @deprecated
7146
7151
  */
7147
7152
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
7148
7153
  /**
7149
7154
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
7150
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-lonely-if.md
7155
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-lonely-if.md
7151
7156
  */
7152
7157
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
7153
7158
  /**
7154
7159
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
7155
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-magic-array-flat-depth.md
7160
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-magic-array-flat-depth.md
7156
7161
  */
7157
7162
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
7158
7163
  /**
7159
7164
  * Disallow named usage of default import and export.
7160
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-named-default.md
7165
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-named-default.md
7161
7166
  */
7162
7167
  'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
7163
7168
  /**
7164
7169
  * Disallow negated conditions.
7165
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-negated-condition.md
7170
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-negated-condition.md
7166
7171
  */
7167
7172
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
7168
7173
  /**
7169
7174
  * Disallow negated expression in equality check.
7170
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-negation-in-equality-check.md
7175
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-negation-in-equality-check.md
7171
7176
  */
7172
7177
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
7173
7178
  /**
7174
7179
  * Disallow nested ternary expressions.
7175
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-nested-ternary.md
7180
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-nested-ternary.md
7176
7181
  */
7177
7182
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
7178
7183
  /**
7179
7184
  * Disallow `new Array()`.
7180
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-new-array.md
7185
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-new-array.md
7181
7186
  */
7182
7187
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
7183
7188
  /**
7184
7189
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
7185
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-new-buffer.md
7190
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-new-buffer.md
7186
7191
  */
7187
7192
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
7188
7193
  /**
7189
7194
  * Disallow the use of the `null` literal.
7190
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-null.md
7195
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-null.md
7191
7196
  */
7192
7197
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
7193
7198
  /**
7194
7199
  * Disallow the use of objects as default parameters.
7195
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-object-as-default-parameter.md
7200
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-object-as-default-parameter.md
7196
7201
  */
7197
7202
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
7198
7203
  /**
7199
7204
  * Disallow `process.exit()`.
7200
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-process-exit.md
7205
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-process-exit.md
7201
7206
  */
7202
7207
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
7203
7208
  /**
7204
7209
  * Disallow passing single-element arrays to `Promise` methods.
7205
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-single-promise-in-promise-methods.md
7210
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-single-promise-in-promise-methods.md
7206
7211
  */
7207
7212
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
7208
7213
  /**
7209
7214
  * Disallow classes that only have static members.
7210
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-static-only-class.md
7215
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-static-only-class.md
7211
7216
  */
7212
7217
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
7213
7218
  /**
7214
7219
  * Disallow `then` property.
7215
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-thenable.md
7220
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-thenable.md
7216
7221
  */
7217
7222
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
7218
7223
  /**
7219
7224
  * Disallow assigning `this` to a variable.
7220
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-this-assignment.md
7225
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-this-assignment.md
7221
7226
  */
7222
7227
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
7223
7228
  /**
7224
7229
  * Disallow comparing `undefined` using `typeof`.
7225
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-typeof-undefined.md
7230
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-typeof-undefined.md
7226
7231
  */
7227
7232
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
7228
7233
  /**
7229
7234
  * Disallow using `1` as the `depth` argument of `Array#flat()`.
7230
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-array-flat-depth.md
7235
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-array-flat-depth.md
7231
7236
  */
7232
7237
  'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
7233
7238
  /**
7234
7239
  * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
7235
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-array-splice-count.md
7240
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-array-splice-count.md
7236
7241
  */
7237
7242
  'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
7238
7243
  /**
7239
7244
  * Disallow awaiting non-promise values.
7240
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-await.md
7245
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-await.md
7241
7246
  */
7242
7247
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
7243
7248
  /**
7244
7249
  * Enforce the use of built-in methods instead of unnecessary polyfills.
7245
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-polyfills.md
7250
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-polyfills.md
7246
7251
  */
7247
7252
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
7248
7253
  /**
7249
7254
  * Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
7250
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-slice-end.md
7255
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-slice-end.md
7251
7256
  */
7252
7257
  'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
7253
7258
  /**
7254
7259
  * Disallow unreadable array destructuring.
7255
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unreadable-array-destructuring.md
7260
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unreadable-array-destructuring.md
7256
7261
  */
7257
7262
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>;
7258
7263
  /**
7259
7264
  * Disallow unreadable IIFEs.
7260
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unreadable-iife.md
7265
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unreadable-iife.md
7261
7266
  */
7262
7267
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
7263
7268
  /**
7264
7269
  * Disallow unused object properties.
7265
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unused-properties.md
7270
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unused-properties.md
7266
7271
  */
7267
7272
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
7268
7273
  /**
7269
7274
  * Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
7270
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-collection-argument.md
7275
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-collection-argument.md
7271
7276
  */
7272
7277
  'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>;
7273
7278
  /**
7274
7279
  * Disallow unnecessary `Error.captureStackTrace(…)`.
7275
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-error-capture-stack-trace.md
7280
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-error-capture-stack-trace.md
7276
7281
  */
7277
7282
  'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
7278
7283
  /**
7279
7284
  * Disallow useless fallback when spreading in object literals.
7280
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-fallback-in-spread.md
7285
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-fallback-in-spread.md
7281
7286
  */
7282
7287
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
7283
7288
  /**
7284
7289
  * Disallow useless array length check.
7285
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-length-check.md
7290
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-length-check.md
7286
7291
  */
7287
7292
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
7288
7293
  /**
7289
7294
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
7290
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-promise-resolve-reject.md
7295
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-promise-resolve-reject.md
7291
7296
  */
7292
7297
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
7293
7298
  /**
7294
7299
  * Disallow unnecessary spread.
7295
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-spread.md
7300
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-spread.md
7296
7301
  */
7297
7302
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
7298
7303
  /**
7299
7304
  * Disallow useless case in switch statements.
7300
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-switch-case.md
7305
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-switch-case.md
7301
7306
  */
7302
7307
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
7303
7308
  /**
7304
7309
  * Disallow useless `undefined`.
7305
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-undefined.md
7310
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-undefined.md
7306
7311
  */
7307
7312
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
7308
7313
  /**
7309
7314
  * Disallow number literals with zero fractions or dangling dots.
7310
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-zero-fractions.md
7315
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-zero-fractions.md
7311
7316
  */
7312
7317
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
7313
7318
  /**
7314
7319
  * Enforce proper case for numeric literals.
7315
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/number-literal-case.md
7320
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/number-literal-case.md
7316
7321
  */
7317
7322
  'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
7318
7323
  /**
7319
7324
  * Enforce the style of numeric separators by correctly grouping digits.
7320
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/numeric-separators-style.md
7325
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/numeric-separators-style.md
7321
7326
  */
7322
7327
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
7323
7328
  /**
7324
7329
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
7325
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-add-event-listener.md
7330
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-add-event-listener.md
7326
7331
  */
7327
7332
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
7328
7333
  /**
7329
7334
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
7330
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-find.md
7335
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-find.md
7331
7336
  */
7332
7337
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
7333
7338
  /**
7334
7339
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
7335
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-flat.md
7340
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-flat.md
7336
7341
  */
7337
7342
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
7338
7343
  /**
7339
7344
  * Prefer `.flatMap(…)` over `.map(…).flat()`.
7340
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-flat-map.md
7345
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-flat-map.md
7341
7346
  */
7342
7347
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
7343
7348
  /**
7344
7349
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
7345
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-index-of.md
7350
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-index-of.md
7346
7351
  */
7347
7352
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
7348
7353
  /**
7349
7354
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
7350
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-some.md
7355
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-some.md
7351
7356
  */
7352
7357
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
7353
7358
  /**
7354
7359
  * Prefer `.at()` method for index access and `String#charAt()`.
7355
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-at.md
7360
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-at.md
7356
7361
  */
7357
7362
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
7358
7363
  /**
7359
7364
  * Prefer `BigInt` literals over the constructor.
7360
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-bigint-literals.md
7365
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-bigint-literals.md
7361
7366
  */
7362
7367
  'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>;
7363
7368
  /**
7364
7369
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
7365
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-blob-reading-methods.md
7370
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-blob-reading-methods.md
7366
7371
  */
7367
7372
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
7368
7373
  /**
7369
7374
  * Prefer class field declarations over `this` assignments in constructors.
7370
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-class-fields.md
7375
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-class-fields.md
7371
7376
  */
7372
7377
  'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
7373
7378
  /**
7374
7379
  * Prefer using `Element#classList.toggle()` to toggle class names.
7375
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-classlist-toggle.md
7380
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-classlist-toggle.md
7376
7381
  */
7377
7382
  'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>;
7378
7383
  /**
7379
7384
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
7380
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-code-point.md
7385
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-code-point.md
7381
7386
  */
7382
7387
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
7383
7388
  /**
7384
7389
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
7385
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-date-now.md
7390
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-date-now.md
7386
7391
  */
7387
7392
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
7388
7393
  /**
7389
7394
  * Prefer default parameters over reassignment.
7390
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-default-parameters.md
7395
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-default-parameters.md
7391
7396
  */
7392
7397
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
7393
7398
  /**
7394
7399
  * Prefer `Node#append()` over `Node#appendChild()`.
7395
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-append.md
7400
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-dom-node-append.md
7396
7401
  */
7397
7402
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
7398
7403
  /**
7399
7404
  * Prefer using `.dataset` on DOM elements over calling attribute methods.
7400
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-dataset.md
7405
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-dom-node-dataset.md
7401
7406
  */
7402
7407
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
7403
7408
  /**
7404
7409
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
7405
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-remove.md
7410
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-dom-node-remove.md
7406
7411
  */
7407
7412
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
7408
7413
  /**
7409
7414
  * Prefer `.textContent` over `.innerText`.
7410
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-text-content.md
7415
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-dom-node-text-content.md
7411
7416
  */
7412
7417
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
7413
7418
  /**
7414
7419
  * Prefer `EventTarget` over `EventEmitter`.
7415
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-event-target.md
7420
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-event-target.md
7416
7421
  */
7417
7422
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
7418
7423
  /**
7419
7424
  * Prefer `export…from` when re-exporting.
7420
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-export-from.md
7425
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-export-from.md
7421
7426
  */
7422
7427
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
7423
7428
  /**
7424
7429
  * Prefer `globalThis` over `window`, `self`, and `global`.
7425
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-global-this.md
7430
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-global-this.md
7426
7431
  */
7427
7432
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
7428
7433
  /**
7429
7434
  * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
7430
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-import-meta-properties.md
7435
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-import-meta-properties.md
7431
7436
  */
7432
7437
  'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
7433
7438
  /**
7434
7439
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
7435
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-includes.md
7440
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-includes.md
7436
7441
  */
7437
7442
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
7438
7443
  /**
7439
7444
  * Prefer reading a JSON file as a buffer.
7440
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-json-parse-buffer.md
7445
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-json-parse-buffer.md
7441
7446
  */
7442
7447
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
7443
7448
  /**
7444
7449
  * Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
7445
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-keyboard-event-key.md
7450
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-keyboard-event-key.md
7446
7451
  */
7447
7452
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
7448
7453
  /**
7449
7454
  * Prefer using a logical operator over a ternary.
7450
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-logical-operator-over-ternary.md
7455
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-logical-operator-over-ternary.md
7451
7456
  */
7452
7457
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
7453
7458
  /**
7454
7459
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
7455
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-math-min-max.md
7460
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-math-min-max.md
7456
7461
  */
7457
7462
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
7458
7463
  /**
7459
7464
  * Enforce the use of `Math.trunc` instead of bitwise operators.
7460
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-math-trunc.md
7465
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-math-trunc.md
7461
7466
  */
7462
7467
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
7463
7468
  /**
7464
7469
  * Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
7465
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-modern-dom-apis.md
7470
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-modern-dom-apis.md
7466
7471
  */
7467
7472
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
7468
7473
  /**
7469
7474
  * Prefer modern `Math` APIs over legacy patterns.
7470
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-modern-math-apis.md
7475
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-modern-math-apis.md
7471
7476
  */
7472
7477
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
7473
7478
  /**
7474
7479
  * Prefer JavaScript modules (ESM) over CommonJS.
7475
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-module.md
7480
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-module.md
7476
7481
  */
7477
7482
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
7478
7483
  /**
7479
7484
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
7480
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-native-coercion-functions.md
7485
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-native-coercion-functions.md
7481
7486
  */
7482
7487
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
7483
7488
  /**
7484
7489
  * Prefer negative index over `.length - index` when possible.
7485
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-negative-index.md
7490
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-negative-index.md
7486
7491
  */
7487
7492
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
7488
7493
  /**
7489
7494
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
7490
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-node-protocol.md
7495
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-node-protocol.md
7491
7496
  */
7492
7497
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
7493
7498
  /**
7494
7499
  * Prefer `Number` static properties over global ones.
7495
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-number-properties.md
7500
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-number-properties.md
7496
7501
  */
7497
7502
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
7498
7503
  /**
7499
7504
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
7500
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-object-from-entries.md
7505
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-object-from-entries.md
7501
7506
  */
7502
7507
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
7503
7508
  /**
7504
7509
  * Prefer omitting the `catch` binding parameter.
7505
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-optional-catch-binding.md
7510
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-optional-catch-binding.md
7506
7511
  */
7507
7512
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
7508
7513
  /**
7509
7514
  * Prefer borrowing methods from the prototype instead of the instance.
7510
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-prototype-methods.md
7515
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-prototype-methods.md
7511
7516
  */
7512
7517
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
7513
7518
  /**
7514
7519
  * Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
7515
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-query-selector.md
7520
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-query-selector.md
7516
7521
  */
7517
7522
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>;
7518
7523
  /**
7519
7524
  * Prefer `Reflect.apply()` over `Function#apply()`.
7520
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-reflect-apply.md
7525
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-reflect-apply.md
7521
7526
  */
7522
7527
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
7523
7528
  /**
7524
7529
  * Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
7525
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-regexp-test.md
7530
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-regexp-test.md
7526
7531
  */
7527
7532
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
7528
7533
  /**
7529
7534
  * Prefer `Response.json()` over `new Response(JSON.stringify())`.
7530
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-response-static-json.md
7535
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-response-static-json.md
7531
7536
  */
7532
7537
  'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>;
7533
7538
  /**
7534
7539
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
7535
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-set-has.md
7540
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-set-has.md
7536
7541
  */
7537
7542
  'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>;
7538
7543
  /**
7539
7544
  * Prefer using `Set#size` instead of `Array#length`.
7540
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-set-size.md
7545
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-set-size.md
7541
7546
  */
7542
7547
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
7543
7548
  /**
7544
7549
  * Enforce combining multiple `Array#push()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
7545
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-single-call.md
7550
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-single-call.md
7546
7551
  */
7547
7552
  'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
7548
7553
  /**
7549
7554
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
7550
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-spread.md
7555
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-spread.md
7551
7556
  */
7552
7557
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
7553
7558
  /**
7554
7559
  * Prefer using the `String.raw` tag to avoid escaping `\`.
7555
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-raw.md
7560
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-raw.md
7556
7561
  */
7557
7562
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
7558
7563
  /**
7559
7564
  * Prefer `String#replaceAll()` over regex searches with the global flag.
7560
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-replace-all.md
7565
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-replace-all.md
7561
7566
  */
7562
7567
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
7563
7568
  /**
7564
7569
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
7565
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-slice.md
7570
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-slice.md
7566
7571
  */
7567
7572
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
7568
7573
  /**
7569
7574
  * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
7570
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-starts-ends-with.md
7575
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-starts-ends-with.md
7571
7576
  */
7572
7577
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
7573
7578
  /**
7574
7579
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
7575
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-trim-start-end.md
7580
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-trim-start-end.md
7576
7581
  */
7577
7582
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
7578
7583
  /**
7579
7584
  * Prefer using `structuredClone` to create a deep clone.
7580
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-structured-clone.md
7585
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-structured-clone.md
7581
7586
  */
7582
7587
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
7583
7588
  /**
7584
7589
  * Prefer `switch` over multiple `else-if`.
7585
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-switch.md
7590
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-switch.md
7586
7591
  */
7587
7592
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
7588
7593
  /**
7589
7594
  * Prefer ternary expressions over simple `if-else` statements.
7590
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-ternary.md
7595
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-ternary.md
7591
7596
  */
7592
7597
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
7593
7598
  /**
7594
7599
  * Prefer top-level await over top-level promises and async function calls.
7595
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-top-level-await.md
7600
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-top-level-await.md
7596
7601
  */
7597
7602
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
7598
7603
  /**
7599
7604
  * Enforce throwing `TypeError` in type checking conditions.
7600
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-type-error.md
7605
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-type-error.md
7601
7606
  */
7602
7607
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
7603
7608
  /**
7604
7609
  * Prevent abbreviations.
7605
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prevent-abbreviations.md
7610
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prevent-abbreviations.md
7606
7611
  */
7607
7612
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>;
7608
7613
  /**
7609
7614
  * Enforce consistent relative URL style.
7610
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/relative-url-style.md
7615
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/relative-url-style.md
7611
7616
  */
7612
7617
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
7613
7618
  /**
7614
7619
  * Enforce using the separator argument with `Array#join()`.
7615
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-array-join-separator.md
7620
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-array-join-separator.md
7616
7621
  */
7617
7622
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
7618
7623
  /**
7619
7624
  * Require non-empty module attributes for imports and exports
7620
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-module-attributes.md
7625
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-module-attributes.md
7621
7626
  */
7622
7627
  'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>;
7623
7628
  /**
7624
7629
  * Require non-empty specifier list in import and export statements.
7625
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-module-specifiers.md
7630
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-module-specifiers.md
7626
7631
  */
7627
7632
  'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
7628
7633
  /**
7629
7634
  * Enforce using the digits argument with `Number#toFixed()`.
7630
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-number-to-fixed-digits-argument.md
7635
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-number-to-fixed-digits-argument.md
7631
7636
  */
7632
7637
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
7633
7638
  /**
7634
7639
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
7635
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-post-message-target-origin.md
7640
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-post-message-target-origin.md
7636
7641
  */
7637
7642
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
7638
7643
  /**
7639
7644
  * Enforce better string content.
7640
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/string-content.md
7645
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/string-content.md
7641
7646
  */
7642
7647
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
7643
7648
  /**
7644
7649
  * Enforce consistent brace style for `case` clauses.
7645
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/switch-case-braces.md
7650
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/switch-case-braces.md
7646
7651
  */
7647
7652
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
7648
7653
  /**
7649
7654
  * Fix whitespace-insensitive template indentation.
7650
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/template-indent.md
7655
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/template-indent.md
7651
7656
  */
7652
7657
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
7653
7658
  /**
7654
7659
  * Enforce consistent case for text encoding identifiers.
7655
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/text-encoding-identifier-case.md
7660
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/text-encoding-identifier-case.md
7656
7661
  */
7657
7662
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
7658
7663
  /**
7659
7664
  * Require `new` when creating an error.
7660
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/throw-new-error.md
7665
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/throw-new-error.md
7661
7666
  */
7662
7667
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
7663
7668
  /**
@@ -17996,6 +18001,15 @@ interface _UnicornImportStyle_ModuleStyles {
17996
18001
  interface _UnicornImportStyle_BooleanObject {
17997
18002
  [k: string]: boolean | undefined;
17998
18003
  }
18004
+ // ----- unicorn/isolated-functions -----
18005
+ type UnicornIsolatedFunctions = [] | [{
18006
+ overrideGlobals?: {
18007
+ [k: string]: (boolean | ("readonly" | "writable" | "writeable" | "off")) | undefined;
18008
+ };
18009
+ functions?: string[];
18010
+ selectors?: string[];
18011
+ comments?: string[];
18012
+ }];
17999
18013
  // ----- unicorn/no-array-reduce -----
18000
18014
  type UnicornNoArrayReduce = [] | [{
18001
18015
  allowSimpleOperations?: boolean;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@antfu/eslint-config",
3
3
  "type": "module",
4
- "version": "7.4.1",
4
+ "version": "7.4.3",
5
5
  "description": "Anthony's ESLint config",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
7
7
  "license": "MIT",
@@ -39,7 +39,7 @@
39
39
  "@prettier/plugin-xml": "^3.4.1",
40
40
  "@unocss/eslint-plugin": ">=0.50.0",
41
41
  "astro-eslint-parser": "^1.0.2",
42
- "eslint": "^9.10.0",
42
+ "eslint": "^9.10.0 || ^10.0.0",
43
43
  "eslint-plugin-astro": "^1.2.0",
44
44
  "eslint-plugin-format": ">=0.1.0",
45
45
  "eslint-plugin-jsx-a11y": ">=6.10.2",
@@ -125,7 +125,7 @@
125
125
  "eslint-config-flat-gitignore": "^2.1.0",
126
126
  "eslint-flat-config-utils": "^3.0.1",
127
127
  "eslint-merge-processors": "^2.0.0",
128
- "eslint-plugin-antfu": "^3.2.0",
128
+ "eslint-plugin-antfu": "^3.2.1",
129
129
  "eslint-plugin-command": "^3.4.0",
130
130
  "eslint-plugin-import-lite": "^0.5.0",
131
131
  "eslint-plugin-jsdoc": "^62.5.4",
@@ -136,7 +136,7 @@
136
136
  "eslint-plugin-pnpm": "^1.5.0",
137
137
  "eslint-plugin-regexp": "^3.0.0",
138
138
  "eslint-plugin-toml": "^1.0.4",
139
- "eslint-plugin-unicorn": "^62.0.0",
139
+ "eslint-plugin-unicorn": "^63.0.0",
140
140
  "eslint-plugin-unused-imports": "^4.4.1",
141
141
  "eslint-plugin-vue": "^10.7.0",
142
142
  "eslint-plugin-yml": "^3.1.2",
@@ -155,12 +155,12 @@
155
155
  "@angular-eslint/template-parser": "^21.2.0",
156
156
  "@angular/core": "^21.1.3",
157
157
  "@antfu/ni": "^28.2.0",
158
- "@eslint-react/eslint-plugin": "^2.12.2",
158
+ "@eslint-react/eslint-plugin": "^2.12.4",
159
159
  "@eslint/config-inspector": "^1.4.2",
160
160
  "@next/eslint-plugin-next": "^16.1.6",
161
161
  "@prettier/plugin-xml": "^3.4.2",
162
162
  "@types/eslint-plugin-jsx-a11y": "^6.10.1",
163
- "@types/node": "^25.2.2",
163
+ "@types/node": "^25.2.3",
164
164
  "@unocss/eslint-plugin": "^66.6.0",
165
165
  "astro-eslint-parser": "^1.2.2",
166
166
  "baseline-browser-mapping": "^2.9.19",
@@ -173,7 +173,7 @@
173
173
  "eslint-plugin-react-hooks": "^7.0.1",
174
174
  "eslint-plugin-react-refresh": "^0.5.0",
175
175
  "eslint-plugin-solid": "^0.14.5",
176
- "eslint-plugin-svelte": "^3.14.0",
176
+ "eslint-plugin-svelte": "^3.15.0",
177
177
  "eslint-plugin-vuejs-accessibility": "^2.4.1",
178
178
  "eslint-typegen": "^2.3.0",
179
179
  "execa": "^9.6.1",
@@ -192,7 +192,7 @@
192
192
  "typescript": "^5.9.3",
193
193
  "vitest": "^4.0.18",
194
194
  "vue": "^3.5.28",
195
- "@antfu/eslint-config": "7.4.1"
195
+ "@antfu/eslint-config": "7.4.3"
196
196
  },
197
197
  "resolutions": {
198
198
  "@eslint-community/eslint-utils": "catalog:peer",