@sxzz/eslint-config 7.8.4 → 7.8.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +302 -147
- package/package.json +21 -22
package/dist/index.d.mts
CHANGED
|
@@ -1064,6 +1064,11 @@ interface Rules {
|
|
|
1064
1064
|
*/
|
|
1065
1065
|
"astro/no-exports-from-components"?: Linter.RuleEntry<[]>;
|
|
1066
1066
|
/**
|
|
1067
|
+
* disallow `prerender` export outside of pages/ directory
|
|
1068
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/no-prerender-export-outside-pages/
|
|
1069
|
+
*/
|
|
1070
|
+
"astro/no-prerender-export-outside-pages"?: Linter.RuleEntry<[]>;
|
|
1071
|
+
/**
|
|
1067
1072
|
* disallow use of `set:html` to prevent XSS attack
|
|
1068
1073
|
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/no-set-html-directive/
|
|
1069
1074
|
*/
|
|
@@ -3369,6 +3374,11 @@ interface Rules {
|
|
|
3369
3374
|
*/
|
|
3370
3375
|
"perfectionist/sort-array-includes"?: Linter.RuleEntry<PerfectionistSortArrayIncludes>;
|
|
3371
3376
|
/**
|
|
3377
|
+
* Enforce sorted arrays.
|
|
3378
|
+
* @see https://perfectionist.dev/rules/sort-arrays
|
|
3379
|
+
*/
|
|
3380
|
+
"perfectionist/sort-arrays"?: Linter.RuleEntry<PerfectionistSortArrays>;
|
|
3381
|
+
/**
|
|
3372
3382
|
* Enforce sorted classes.
|
|
3373
3383
|
* @see https://perfectionist.dev/rules/sort-classes
|
|
3374
3384
|
*/
|
|
@@ -4145,730 +4155,750 @@ interface Rules {
|
|
|
4145
4155
|
"unicode-bom"?: Linter.RuleEntry<UnicodeBom>;
|
|
4146
4156
|
/**
|
|
4147
4157
|
* Improve regexes by making them shorter, consistent, and safer.
|
|
4148
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4158
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/better-regex.md
|
|
4149
4159
|
*/
|
|
4150
4160
|
"unicorn/better-regex"?: Linter.RuleEntry<UnicornBetterRegex>;
|
|
4151
4161
|
/**
|
|
4152
4162
|
* Enforce a specific parameter name in catch clauses.
|
|
4153
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4163
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/catch-error-name.md
|
|
4154
4164
|
*/
|
|
4155
4165
|
"unicorn/catch-error-name"?: Linter.RuleEntry<UnicornCatchErrorName>;
|
|
4156
4166
|
/**
|
|
4157
4167
|
* Enforce consistent assertion style with `node:assert`.
|
|
4158
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4168
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-assert.md
|
|
4159
4169
|
*/
|
|
4160
4170
|
"unicorn/consistent-assert"?: Linter.RuleEntry<[]>;
|
|
4161
4171
|
/**
|
|
4162
4172
|
* Prefer passing `Date` directly to the constructor when cloning.
|
|
4163
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4173
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-date-clone.md
|
|
4164
4174
|
*/
|
|
4165
4175
|
"unicorn/consistent-date-clone"?: Linter.RuleEntry<[]>;
|
|
4166
4176
|
/**
|
|
4167
4177
|
* Use destructured variables over properties.
|
|
4168
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4178
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-destructuring.md
|
|
4169
4179
|
*/
|
|
4170
4180
|
"unicorn/consistent-destructuring"?: Linter.RuleEntry<[]>;
|
|
4171
4181
|
/**
|
|
4172
4182
|
* Prefer consistent types when spreading a ternary in an array literal.
|
|
4173
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4183
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-empty-array-spread.md
|
|
4174
4184
|
*/
|
|
4175
4185
|
"unicorn/consistent-empty-array-spread"?: Linter.RuleEntry<[]>;
|
|
4176
4186
|
/**
|
|
4177
4187
|
* Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
|
|
4178
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4188
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-existence-index-check.md
|
|
4179
4189
|
*/
|
|
4180
4190
|
"unicorn/consistent-existence-index-check"?: Linter.RuleEntry<[]>;
|
|
4181
4191
|
/**
|
|
4182
4192
|
* Move function definitions to the highest possible scope.
|
|
4183
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4193
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-function-scoping.md
|
|
4184
4194
|
*/
|
|
4185
4195
|
"unicorn/consistent-function-scoping"?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
|
|
4186
4196
|
/**
|
|
4197
|
+
* Enforce consistent style for escaping `${` in template literals.
|
|
4198
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-template-literal-escape.md
|
|
4199
|
+
*/
|
|
4200
|
+
"unicorn/consistent-template-literal-escape"?: Linter.RuleEntry<[]>;
|
|
4201
|
+
/**
|
|
4187
4202
|
* Enforce correct `Error` subclassing.
|
|
4188
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4203
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/custom-error-definition.md
|
|
4189
4204
|
*/
|
|
4190
4205
|
"unicorn/custom-error-definition"?: Linter.RuleEntry<[]>;
|
|
4191
4206
|
/**
|
|
4192
4207
|
* Enforce no spaces between braces.
|
|
4193
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4208
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/empty-brace-spaces.md
|
|
4194
4209
|
*/
|
|
4195
4210
|
"unicorn/empty-brace-spaces"?: Linter.RuleEntry<[]>;
|
|
4196
4211
|
/**
|
|
4197
4212
|
* Enforce passing a `message` value when creating a built-in error.
|
|
4198
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4213
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/error-message.md
|
|
4199
4214
|
*/
|
|
4200
4215
|
"unicorn/error-message"?: Linter.RuleEntry<[]>;
|
|
4201
4216
|
/**
|
|
4202
4217
|
* Require escape sequences to use uppercase or lowercase values.
|
|
4203
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4218
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/escape-case.md
|
|
4204
4219
|
*/
|
|
4205
4220
|
"unicorn/escape-case"?: Linter.RuleEntry<UnicornEscapeCase>;
|
|
4206
4221
|
/**
|
|
4207
4222
|
* Add expiration conditions to TODO comments.
|
|
4208
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4223
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/expiring-todo-comments.md
|
|
4209
4224
|
*/
|
|
4210
4225
|
"unicorn/expiring-todo-comments"?: Linter.RuleEntry<UnicornExpiringTodoComments>;
|
|
4211
4226
|
/**
|
|
4212
4227
|
* Enforce explicitly comparing the `length` or `size` property of a value.
|
|
4213
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4228
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/explicit-length-check.md
|
|
4214
4229
|
*/
|
|
4215
4230
|
"unicorn/explicit-length-check"?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
|
|
4216
4231
|
/**
|
|
4217
4232
|
* Enforce a case style for filenames.
|
|
4218
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4233
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/filename-case.md
|
|
4219
4234
|
*/
|
|
4220
4235
|
"unicorn/filename-case"?: Linter.RuleEntry<UnicornFilenameCase>;
|
|
4221
4236
|
/**
|
|
4222
4237
|
* Enforce specific import styles per module.
|
|
4223
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4238
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/import-style.md
|
|
4224
4239
|
*/
|
|
4225
4240
|
"unicorn/import-style"?: Linter.RuleEntry<UnicornImportStyle>;
|
|
4226
4241
|
/**
|
|
4227
4242
|
* Prevent usage of variables from outside the scope of isolated functions.
|
|
4228
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4243
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/isolated-functions.md
|
|
4229
4244
|
*/
|
|
4230
4245
|
"unicorn/isolated-functions"?: Linter.RuleEntry<UnicornIsolatedFunctions>;
|
|
4231
4246
|
/**
|
|
4232
4247
|
* Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
|
|
4233
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4248
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/new-for-builtins.md
|
|
4234
4249
|
*/
|
|
4235
4250
|
"unicorn/new-for-builtins"?: Linter.RuleEntry<[]>;
|
|
4236
4251
|
/**
|
|
4237
4252
|
* Enforce specifying rules to disable in `eslint-disable` comments.
|
|
4238
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4253
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-abusive-eslint-disable.md
|
|
4239
4254
|
*/
|
|
4240
4255
|
"unicorn/no-abusive-eslint-disable"?: Linter.RuleEntry<[]>;
|
|
4241
4256
|
/**
|
|
4242
4257
|
* Disallow recursive access to `this` within getters and setters.
|
|
4243
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4258
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-accessor-recursion.md
|
|
4244
4259
|
*/
|
|
4245
4260
|
"unicorn/no-accessor-recursion"?: Linter.RuleEntry<[]>;
|
|
4246
4261
|
/**
|
|
4247
4262
|
* Disallow anonymous functions and classes as the default export.
|
|
4248
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4263
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-anonymous-default-export.md
|
|
4249
4264
|
*/
|
|
4250
4265
|
"unicorn/no-anonymous-default-export"?: Linter.RuleEntry<[]>;
|
|
4251
4266
|
/**
|
|
4252
4267
|
* Prevent passing a function reference directly to iterator methods.
|
|
4253
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4268
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-callback-reference.md
|
|
4254
4269
|
*/
|
|
4255
4270
|
"unicorn/no-array-callback-reference"?: Linter.RuleEntry<[]>;
|
|
4256
4271
|
/**
|
|
4257
4272
|
* Prefer `for…of` over the `forEach` method.
|
|
4258
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4273
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-for-each.md
|
|
4259
4274
|
*/
|
|
4260
4275
|
"unicorn/no-array-for-each"?: Linter.RuleEntry<[]>;
|
|
4261
4276
|
/**
|
|
4262
4277
|
* Disallow using the `this` argument in array methods.
|
|
4263
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4278
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-method-this-argument.md
|
|
4264
4279
|
*/
|
|
4265
4280
|
"unicorn/no-array-method-this-argument"?: Linter.RuleEntry<[]>;
|
|
4266
4281
|
/**
|
|
4267
4282
|
* Replaced by `unicorn/prefer-single-call` which covers more cases.
|
|
4268
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4283
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
|
|
4269
4284
|
* @deprecated
|
|
4270
4285
|
*/
|
|
4271
4286
|
"unicorn/no-array-push-push"?: Linter.RuleEntry<[]>;
|
|
4272
4287
|
/**
|
|
4273
4288
|
* Disallow `Array#reduce()` and `Array#reduceRight()`.
|
|
4274
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4289
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-reduce.md
|
|
4275
4290
|
*/
|
|
4276
4291
|
"unicorn/no-array-reduce"?: Linter.RuleEntry<UnicornNoArrayReduce>;
|
|
4277
4292
|
/**
|
|
4278
4293
|
* Prefer `Array#toReversed()` over `Array#reverse()`.
|
|
4279
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4294
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-reverse.md
|
|
4280
4295
|
*/
|
|
4281
4296
|
"unicorn/no-array-reverse"?: Linter.RuleEntry<UnicornNoArrayReverse>;
|
|
4282
4297
|
/**
|
|
4283
4298
|
* Prefer `Array#toSorted()` over `Array#sort()`.
|
|
4284
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4299
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-sort.md
|
|
4285
4300
|
*/
|
|
4286
4301
|
"unicorn/no-array-sort"?: Linter.RuleEntry<UnicornNoArraySort>;
|
|
4287
4302
|
/**
|
|
4288
4303
|
* Disallow member access from await expression.
|
|
4289
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4304
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-await-expression-member.md
|
|
4290
4305
|
*/
|
|
4291
4306
|
"unicorn/no-await-expression-member"?: Linter.RuleEntry<[]>;
|
|
4292
4307
|
/**
|
|
4293
4308
|
* Disallow using `await` in `Promise` method parameters.
|
|
4294
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4309
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-await-in-promise-methods.md
|
|
4295
4310
|
*/
|
|
4296
4311
|
"unicorn/no-await-in-promise-methods"?: Linter.RuleEntry<[]>;
|
|
4297
4312
|
/**
|
|
4298
4313
|
* Do not use leading/trailing space between `console.log` parameters.
|
|
4299
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4314
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-console-spaces.md
|
|
4300
4315
|
*/
|
|
4301
4316
|
"unicorn/no-console-spaces"?: Linter.RuleEntry<[]>;
|
|
4302
4317
|
/**
|
|
4303
4318
|
* Do not use `document.cookie` directly.
|
|
4304
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4319
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-document-cookie.md
|
|
4305
4320
|
*/
|
|
4306
4321
|
"unicorn/no-document-cookie"?: Linter.RuleEntry<[]>;
|
|
4307
4322
|
/**
|
|
4308
4323
|
* Disallow empty files.
|
|
4309
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4324
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-empty-file.md
|
|
4310
4325
|
*/
|
|
4311
4326
|
"unicorn/no-empty-file"?: Linter.RuleEntry<[]>;
|
|
4312
4327
|
/**
|
|
4313
4328
|
* Do not use a `for` loop that can be replaced with a `for-of` loop.
|
|
4314
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4329
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-for-loop.md
|
|
4315
4330
|
*/
|
|
4316
4331
|
"unicorn/no-for-loop"?: Linter.RuleEntry<[]>;
|
|
4317
4332
|
/**
|
|
4318
4333
|
* Enforce the use of Unicode escapes instead of hexadecimal escapes.
|
|
4319
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4334
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-hex-escape.md
|
|
4320
4335
|
*/
|
|
4321
4336
|
"unicorn/no-hex-escape"?: Linter.RuleEntry<[]>;
|
|
4322
4337
|
/**
|
|
4323
4338
|
* Disallow immediate mutation after variable assignment.
|
|
4324
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4339
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-immediate-mutation.md
|
|
4325
4340
|
*/
|
|
4326
4341
|
"unicorn/no-immediate-mutation"?: Linter.RuleEntry<[]>;
|
|
4327
4342
|
/**
|
|
4328
4343
|
* Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
|
|
4329
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4344
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
|
|
4330
4345
|
* @deprecated
|
|
4331
4346
|
*/
|
|
4332
4347
|
"unicorn/no-instanceof-array"?: Linter.RuleEntry<[]>;
|
|
4333
4348
|
/**
|
|
4334
4349
|
* Disallow `instanceof` with built-in objects
|
|
4335
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4350
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-instanceof-builtins.md
|
|
4336
4351
|
*/
|
|
4337
4352
|
"unicorn/no-instanceof-builtins"?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
|
|
4338
4353
|
/**
|
|
4339
4354
|
* Disallow invalid options in `fetch()` and `new Request()`.
|
|
4340
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4355
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-invalid-fetch-options.md
|
|
4341
4356
|
*/
|
|
4342
4357
|
"unicorn/no-invalid-fetch-options"?: Linter.RuleEntry<[]>;
|
|
4343
4358
|
/**
|
|
4344
4359
|
* Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
|
|
4345
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4360
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-invalid-remove-event-listener.md
|
|
4346
4361
|
*/
|
|
4347
4362
|
"unicorn/no-invalid-remove-event-listener"?: Linter.RuleEntry<[]>;
|
|
4348
4363
|
/**
|
|
4349
4364
|
* Disallow identifiers starting with `new` or `class`.
|
|
4350
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4365
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-keyword-prefix.md
|
|
4351
4366
|
*/
|
|
4352
4367
|
"unicorn/no-keyword-prefix"?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
|
|
4353
4368
|
/**
|
|
4354
4369
|
* Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
|
|
4355
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4370
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
|
|
4356
4371
|
* @deprecated
|
|
4357
4372
|
*/
|
|
4358
4373
|
"unicorn/no-length-as-slice-end"?: Linter.RuleEntry<[]>;
|
|
4359
4374
|
/**
|
|
4360
4375
|
* Disallow `if` statements as the only statement in `if` blocks without `else`.
|
|
4361
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4376
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-lonely-if.md
|
|
4362
4377
|
*/
|
|
4363
4378
|
"unicorn/no-lonely-if"?: Linter.RuleEntry<[]>;
|
|
4364
4379
|
/**
|
|
4365
4380
|
* Disallow a magic number as the `depth` argument in `Array#flat(…).`
|
|
4366
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4381
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-magic-array-flat-depth.md
|
|
4367
4382
|
*/
|
|
4368
4383
|
"unicorn/no-magic-array-flat-depth"?: Linter.RuleEntry<[]>;
|
|
4369
4384
|
/**
|
|
4370
4385
|
* Disallow named usage of default import and export.
|
|
4371
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4386
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-named-default.md
|
|
4372
4387
|
*/
|
|
4373
4388
|
"unicorn/no-named-default"?: Linter.RuleEntry<[]>;
|
|
4374
4389
|
/**
|
|
4375
4390
|
* Disallow negated conditions.
|
|
4376
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4391
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-negated-condition.md
|
|
4377
4392
|
*/
|
|
4378
4393
|
"unicorn/no-negated-condition"?: Linter.RuleEntry<[]>;
|
|
4379
4394
|
/**
|
|
4380
4395
|
* Disallow negated expression in equality check.
|
|
4381
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4396
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-negation-in-equality-check.md
|
|
4382
4397
|
*/
|
|
4383
4398
|
"unicorn/no-negation-in-equality-check"?: Linter.RuleEntry<[]>;
|
|
4384
4399
|
/**
|
|
4385
4400
|
* Disallow nested ternary expressions.
|
|
4386
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4401
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-nested-ternary.md
|
|
4387
4402
|
*/
|
|
4388
4403
|
"unicorn/no-nested-ternary"?: Linter.RuleEntry<[]>;
|
|
4389
4404
|
/**
|
|
4390
4405
|
* Disallow `new Array()`.
|
|
4391
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4406
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-new-array.md
|
|
4392
4407
|
*/
|
|
4393
4408
|
"unicorn/no-new-array"?: Linter.RuleEntry<[]>;
|
|
4394
4409
|
/**
|
|
4395
4410
|
* Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
|
|
4396
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4411
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-new-buffer.md
|
|
4397
4412
|
*/
|
|
4398
4413
|
"unicorn/no-new-buffer"?: Linter.RuleEntry<[]>;
|
|
4399
4414
|
/**
|
|
4400
4415
|
* Disallow the use of the `null` literal.
|
|
4401
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4416
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-null.md
|
|
4402
4417
|
*/
|
|
4403
4418
|
"unicorn/no-null"?: Linter.RuleEntry<UnicornNoNull>;
|
|
4404
4419
|
/**
|
|
4405
4420
|
* Disallow the use of objects as default parameters.
|
|
4406
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4421
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-object-as-default-parameter.md
|
|
4407
4422
|
*/
|
|
4408
4423
|
"unicorn/no-object-as-default-parameter"?: Linter.RuleEntry<[]>;
|
|
4409
4424
|
/**
|
|
4410
4425
|
* Disallow `process.exit()`.
|
|
4411
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4426
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-process-exit.md
|
|
4412
4427
|
*/
|
|
4413
4428
|
"unicorn/no-process-exit"?: Linter.RuleEntry<[]>;
|
|
4414
4429
|
/**
|
|
4415
4430
|
* Disallow passing single-element arrays to `Promise` methods.
|
|
4416
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4431
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-single-promise-in-promise-methods.md
|
|
4417
4432
|
*/
|
|
4418
4433
|
"unicorn/no-single-promise-in-promise-methods"?: Linter.RuleEntry<[]>;
|
|
4419
4434
|
/**
|
|
4420
4435
|
* Disallow classes that only have static members.
|
|
4421
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4436
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-static-only-class.md
|
|
4422
4437
|
*/
|
|
4423
4438
|
"unicorn/no-static-only-class"?: Linter.RuleEntry<[]>;
|
|
4424
4439
|
/**
|
|
4425
4440
|
* Disallow `then` property.
|
|
4426
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4441
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-thenable.md
|
|
4427
4442
|
*/
|
|
4428
4443
|
"unicorn/no-thenable"?: Linter.RuleEntry<[]>;
|
|
4429
4444
|
/**
|
|
4430
4445
|
* Disallow assigning `this` to a variable.
|
|
4431
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4446
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-this-assignment.md
|
|
4432
4447
|
*/
|
|
4433
4448
|
"unicorn/no-this-assignment"?: Linter.RuleEntry<[]>;
|
|
4434
4449
|
/**
|
|
4435
4450
|
* Disallow comparing `undefined` using `typeof`.
|
|
4436
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4451
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-typeof-undefined.md
|
|
4437
4452
|
*/
|
|
4438
4453
|
"unicorn/no-typeof-undefined"?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
|
|
4439
4454
|
/**
|
|
4440
4455
|
* Disallow using `1` as the `depth` argument of `Array#flat()`.
|
|
4441
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4456
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-array-flat-depth.md
|
|
4442
4457
|
*/
|
|
4443
4458
|
"unicorn/no-unnecessary-array-flat-depth"?: Linter.RuleEntry<[]>;
|
|
4444
4459
|
/**
|
|
4445
4460
|
* Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
|
|
4446
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4461
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-array-splice-count.md
|
|
4447
4462
|
*/
|
|
4448
4463
|
"unicorn/no-unnecessary-array-splice-count"?: Linter.RuleEntry<[]>;
|
|
4449
4464
|
/**
|
|
4450
4465
|
* Disallow awaiting non-promise values.
|
|
4451
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4466
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-await.md
|
|
4452
4467
|
*/
|
|
4453
4468
|
"unicorn/no-unnecessary-await"?: Linter.RuleEntry<[]>;
|
|
4454
4469
|
/**
|
|
4455
4470
|
* Enforce the use of built-in methods instead of unnecessary polyfills.
|
|
4456
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4471
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-polyfills.md
|
|
4457
4472
|
*/
|
|
4458
4473
|
"unicorn/no-unnecessary-polyfills"?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
|
|
4459
4474
|
/**
|
|
4460
4475
|
* Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
|
|
4461
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4476
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-slice-end.md
|
|
4462
4477
|
*/
|
|
4463
4478
|
"unicorn/no-unnecessary-slice-end"?: Linter.RuleEntry<[]>;
|
|
4464
4479
|
/**
|
|
4465
4480
|
* Disallow unreadable array destructuring.
|
|
4466
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4481
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unreadable-array-destructuring.md
|
|
4467
4482
|
*/
|
|
4468
4483
|
"unicorn/no-unreadable-array-destructuring"?: Linter.RuleEntry<[]>;
|
|
4469
4484
|
/**
|
|
4470
4485
|
* Disallow unreadable IIFEs.
|
|
4471
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4486
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unreadable-iife.md
|
|
4472
4487
|
*/
|
|
4473
4488
|
"unicorn/no-unreadable-iife"?: Linter.RuleEntry<[]>;
|
|
4474
4489
|
/**
|
|
4475
4490
|
* Disallow unused object properties.
|
|
4476
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4491
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unused-properties.md
|
|
4477
4492
|
*/
|
|
4478
4493
|
"unicorn/no-unused-properties"?: Linter.RuleEntry<[]>;
|
|
4479
4494
|
/**
|
|
4480
4495
|
* Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
|
|
4481
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4496
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-collection-argument.md
|
|
4482
4497
|
*/
|
|
4483
4498
|
"unicorn/no-useless-collection-argument"?: Linter.RuleEntry<[]>;
|
|
4484
4499
|
/**
|
|
4485
4500
|
* Disallow unnecessary `Error.captureStackTrace(…)`.
|
|
4486
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4501
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-error-capture-stack-trace.md
|
|
4487
4502
|
*/
|
|
4488
4503
|
"unicorn/no-useless-error-capture-stack-trace"?: Linter.RuleEntry<[]>;
|
|
4489
4504
|
/**
|
|
4490
4505
|
* Disallow useless fallback when spreading in object literals.
|
|
4491
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4506
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-fallback-in-spread.md
|
|
4492
4507
|
*/
|
|
4493
4508
|
"unicorn/no-useless-fallback-in-spread"?: Linter.RuleEntry<[]>;
|
|
4494
4509
|
/**
|
|
4510
|
+
* Disallow unnecessary `.toArray()` on iterators.
|
|
4511
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-iterator-to-array.md
|
|
4512
|
+
*/
|
|
4513
|
+
"unicorn/no-useless-iterator-to-array"?: Linter.RuleEntry<[]>;
|
|
4514
|
+
/**
|
|
4495
4515
|
* Disallow useless array length check.
|
|
4496
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4516
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-length-check.md
|
|
4497
4517
|
*/
|
|
4498
4518
|
"unicorn/no-useless-length-check"?: Linter.RuleEntry<[]>;
|
|
4499
4519
|
/**
|
|
4500
4520
|
* Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
|
|
4501
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4521
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-promise-resolve-reject.md
|
|
4502
4522
|
*/
|
|
4503
4523
|
"unicorn/no-useless-promise-resolve-reject"?: Linter.RuleEntry<[]>;
|
|
4504
4524
|
/**
|
|
4505
4525
|
* Disallow unnecessary spread.
|
|
4506
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4526
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-spread.md
|
|
4507
4527
|
*/
|
|
4508
4528
|
"unicorn/no-useless-spread"?: Linter.RuleEntry<[]>;
|
|
4509
4529
|
/**
|
|
4510
4530
|
* Disallow useless case in switch statements.
|
|
4511
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4531
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-switch-case.md
|
|
4512
4532
|
*/
|
|
4513
4533
|
"unicorn/no-useless-switch-case"?: Linter.RuleEntry<[]>;
|
|
4514
4534
|
/**
|
|
4515
4535
|
* Disallow useless `undefined`.
|
|
4516
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4536
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-undefined.md
|
|
4517
4537
|
*/
|
|
4518
4538
|
"unicorn/no-useless-undefined"?: Linter.RuleEntry<UnicornNoUselessUndefined>;
|
|
4519
4539
|
/**
|
|
4520
4540
|
* Disallow number literals with zero fractions or dangling dots.
|
|
4521
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4541
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-zero-fractions.md
|
|
4522
4542
|
*/
|
|
4523
4543
|
"unicorn/no-zero-fractions"?: Linter.RuleEntry<[]>;
|
|
4524
4544
|
/**
|
|
4525
4545
|
* Enforce proper case for numeric literals.
|
|
4526
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4546
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/number-literal-case.md
|
|
4527
4547
|
*/
|
|
4528
4548
|
"unicorn/number-literal-case"?: Linter.RuleEntry<UnicornNumberLiteralCase>;
|
|
4529
4549
|
/**
|
|
4530
4550
|
* Enforce the style of numeric separators by correctly grouping digits.
|
|
4531
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4551
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/numeric-separators-style.md
|
|
4532
4552
|
*/
|
|
4533
4553
|
"unicorn/numeric-separators-style"?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
|
|
4534
4554
|
/**
|
|
4535
4555
|
* Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
|
|
4536
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4556
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-add-event-listener.md
|
|
4537
4557
|
*/
|
|
4538
4558
|
"unicorn/prefer-add-event-listener"?: Linter.RuleEntry<UnicornPreferAddEventListener>;
|
|
4539
4559
|
/**
|
|
4540
4560
|
* Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
|
|
4541
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4561
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-find.md
|
|
4542
4562
|
*/
|
|
4543
4563
|
"unicorn/prefer-array-find"?: Linter.RuleEntry<UnicornPreferArrayFind>;
|
|
4544
4564
|
/**
|
|
4545
4565
|
* Prefer `Array#flat()` over legacy techniques to flatten arrays.
|
|
4546
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4566
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-flat.md
|
|
4547
4567
|
*/
|
|
4548
4568
|
"unicorn/prefer-array-flat"?: Linter.RuleEntry<UnicornPreferArrayFlat>;
|
|
4549
4569
|
/**
|
|
4550
4570
|
* Prefer `.flatMap(…)` over `.map(…).flat()`.
|
|
4551
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4571
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-flat-map.md
|
|
4552
4572
|
*/
|
|
4553
4573
|
"unicorn/prefer-array-flat-map"?: Linter.RuleEntry<[]>;
|
|
4554
4574
|
/**
|
|
4555
4575
|
* Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
|
|
4556
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4576
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-index-of.md
|
|
4557
4577
|
*/
|
|
4558
4578
|
"unicorn/prefer-array-index-of"?: Linter.RuleEntry<[]>;
|
|
4559
4579
|
/**
|
|
4560
4580
|
* Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
|
|
4561
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4581
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-some.md
|
|
4562
4582
|
*/
|
|
4563
4583
|
"unicorn/prefer-array-some"?: Linter.RuleEntry<[]>;
|
|
4564
4584
|
/**
|
|
4565
4585
|
* Prefer `.at()` method for index access and `String#charAt()`.
|
|
4566
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4586
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-at.md
|
|
4567
4587
|
*/
|
|
4568
4588
|
"unicorn/prefer-at"?: Linter.RuleEntry<UnicornPreferAt>;
|
|
4569
4589
|
/**
|
|
4570
4590
|
* Prefer `BigInt` literals over the constructor.
|
|
4571
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4591
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-bigint-literals.md
|
|
4572
4592
|
*/
|
|
4573
4593
|
"unicorn/prefer-bigint-literals"?: Linter.RuleEntry<[]>;
|
|
4574
4594
|
/**
|
|
4575
4595
|
* Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
|
|
4576
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4596
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-blob-reading-methods.md
|
|
4577
4597
|
*/
|
|
4578
4598
|
"unicorn/prefer-blob-reading-methods"?: Linter.RuleEntry<[]>;
|
|
4579
4599
|
/**
|
|
4580
4600
|
* Prefer class field declarations over `this` assignments in constructors.
|
|
4581
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4601
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-class-fields.md
|
|
4582
4602
|
*/
|
|
4583
4603
|
"unicorn/prefer-class-fields"?: Linter.RuleEntry<[]>;
|
|
4584
4604
|
/**
|
|
4585
4605
|
* Prefer using `Element#classList.toggle()` to toggle class names.
|
|
4586
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4606
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-classlist-toggle.md
|
|
4587
4607
|
*/
|
|
4588
4608
|
"unicorn/prefer-classlist-toggle"?: Linter.RuleEntry<[]>;
|
|
4589
4609
|
/**
|
|
4590
4610
|
* Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
|
|
4591
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4611
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-code-point.md
|
|
4592
4612
|
*/
|
|
4593
4613
|
"unicorn/prefer-code-point"?: Linter.RuleEntry<[]>;
|
|
4594
4614
|
/**
|
|
4595
4615
|
* Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
|
|
4596
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4616
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-date-now.md
|
|
4597
4617
|
*/
|
|
4598
4618
|
"unicorn/prefer-date-now"?: Linter.RuleEntry<[]>;
|
|
4599
4619
|
/**
|
|
4600
4620
|
* Prefer default parameters over reassignment.
|
|
4601
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4621
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-default-parameters.md
|
|
4602
4622
|
*/
|
|
4603
4623
|
"unicorn/prefer-default-parameters"?: Linter.RuleEntry<[]>;
|
|
4604
4624
|
/**
|
|
4605
4625
|
* Prefer `Node#append()` over `Node#appendChild()`.
|
|
4606
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4626
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-dom-node-append.md
|
|
4607
4627
|
*/
|
|
4608
4628
|
"unicorn/prefer-dom-node-append"?: Linter.RuleEntry<[]>;
|
|
4609
4629
|
/**
|
|
4610
4630
|
* Prefer using `.dataset` on DOM elements over calling attribute methods.
|
|
4611
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4631
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-dom-node-dataset.md
|
|
4612
4632
|
*/
|
|
4613
4633
|
"unicorn/prefer-dom-node-dataset"?: Linter.RuleEntry<[]>;
|
|
4614
4634
|
/**
|
|
4615
4635
|
* Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
|
|
4616
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4636
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-dom-node-remove.md
|
|
4617
4637
|
*/
|
|
4618
4638
|
"unicorn/prefer-dom-node-remove"?: Linter.RuleEntry<[]>;
|
|
4619
4639
|
/**
|
|
4620
4640
|
* Prefer `.textContent` over `.innerText`.
|
|
4621
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4641
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-dom-node-text-content.md
|
|
4622
4642
|
*/
|
|
4623
4643
|
"unicorn/prefer-dom-node-text-content"?: Linter.RuleEntry<[]>;
|
|
4624
4644
|
/**
|
|
4625
4645
|
* Prefer `EventTarget` over `EventEmitter`.
|
|
4626
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4646
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-event-target.md
|
|
4627
4647
|
*/
|
|
4628
4648
|
"unicorn/prefer-event-target"?: Linter.RuleEntry<[]>;
|
|
4629
4649
|
/**
|
|
4630
4650
|
* Prefer `export…from` when re-exporting.
|
|
4631
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4651
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-export-from.md
|
|
4632
4652
|
*/
|
|
4633
4653
|
"unicorn/prefer-export-from"?: Linter.RuleEntry<UnicornPreferExportFrom>;
|
|
4634
4654
|
/**
|
|
4635
4655
|
* Prefer `globalThis` over `window`, `self`, and `global`.
|
|
4636
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4656
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-global-this.md
|
|
4637
4657
|
*/
|
|
4638
4658
|
"unicorn/prefer-global-this"?: Linter.RuleEntry<[]>;
|
|
4639
4659
|
/**
|
|
4640
4660
|
* Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
|
|
4641
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4661
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-import-meta-properties.md
|
|
4642
4662
|
*/
|
|
4643
4663
|
"unicorn/prefer-import-meta-properties"?: Linter.RuleEntry<[]>;
|
|
4644
4664
|
/**
|
|
4645
4665
|
* Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
|
|
4646
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4666
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-includes.md
|
|
4647
4667
|
*/
|
|
4648
4668
|
"unicorn/prefer-includes"?: Linter.RuleEntry<[]>;
|
|
4649
4669
|
/**
|
|
4650
4670
|
* Prefer reading a JSON file as a buffer.
|
|
4651
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4671
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-json-parse-buffer.md
|
|
4652
4672
|
*/
|
|
4653
4673
|
"unicorn/prefer-json-parse-buffer"?: Linter.RuleEntry<[]>;
|
|
4654
4674
|
/**
|
|
4655
4675
|
* Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
|
|
4656
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4676
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-keyboard-event-key.md
|
|
4657
4677
|
*/
|
|
4658
4678
|
"unicorn/prefer-keyboard-event-key"?: Linter.RuleEntry<[]>;
|
|
4659
4679
|
/**
|
|
4660
4680
|
* Prefer using a logical operator over a ternary.
|
|
4661
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4681
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-logical-operator-over-ternary.md
|
|
4662
4682
|
*/
|
|
4663
4683
|
"unicorn/prefer-logical-operator-over-ternary"?: Linter.RuleEntry<[]>;
|
|
4664
4684
|
/**
|
|
4665
4685
|
* Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
|
|
4666
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4686
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-math-min-max.md
|
|
4667
4687
|
*/
|
|
4668
4688
|
"unicorn/prefer-math-min-max"?: Linter.RuleEntry<[]>;
|
|
4669
4689
|
/**
|
|
4670
4690
|
* Enforce the use of `Math.trunc` instead of bitwise operators.
|
|
4671
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4691
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-math-trunc.md
|
|
4672
4692
|
*/
|
|
4673
4693
|
"unicorn/prefer-math-trunc"?: Linter.RuleEntry<[]>;
|
|
4674
4694
|
/**
|
|
4675
4695
|
* Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
|
|
4676
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4696
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-modern-dom-apis.md
|
|
4677
4697
|
*/
|
|
4678
4698
|
"unicorn/prefer-modern-dom-apis"?: Linter.RuleEntry<[]>;
|
|
4679
4699
|
/**
|
|
4680
4700
|
* Prefer modern `Math` APIs over legacy patterns.
|
|
4681
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4701
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-modern-math-apis.md
|
|
4682
4702
|
*/
|
|
4683
4703
|
"unicorn/prefer-modern-math-apis"?: Linter.RuleEntry<[]>;
|
|
4684
4704
|
/**
|
|
4685
4705
|
* Prefer JavaScript modules (ESM) over CommonJS.
|
|
4686
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4706
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-module.md
|
|
4687
4707
|
*/
|
|
4688
4708
|
"unicorn/prefer-module"?: Linter.RuleEntry<[]>;
|
|
4689
4709
|
/**
|
|
4690
4710
|
* Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
|
|
4691
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4711
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-native-coercion-functions.md
|
|
4692
4712
|
*/
|
|
4693
4713
|
"unicorn/prefer-native-coercion-functions"?: Linter.RuleEntry<[]>;
|
|
4694
4714
|
/**
|
|
4695
4715
|
* Prefer negative index over `.length - index` when possible.
|
|
4696
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4716
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-negative-index.md
|
|
4697
4717
|
*/
|
|
4698
4718
|
"unicorn/prefer-negative-index"?: Linter.RuleEntry<[]>;
|
|
4699
4719
|
/**
|
|
4700
4720
|
* Prefer using the `node:` protocol when importing Node.js builtin modules.
|
|
4701
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4721
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-node-protocol.md
|
|
4702
4722
|
*/
|
|
4703
4723
|
"unicorn/prefer-node-protocol"?: Linter.RuleEntry<[]>;
|
|
4704
4724
|
/**
|
|
4705
4725
|
* Prefer `Number` static properties over global ones.
|
|
4706
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4726
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-number-properties.md
|
|
4707
4727
|
*/
|
|
4708
4728
|
"unicorn/prefer-number-properties"?: Linter.RuleEntry<UnicornPreferNumberProperties>;
|
|
4709
4729
|
/**
|
|
4710
4730
|
* Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
|
|
4711
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4731
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-object-from-entries.md
|
|
4712
4732
|
*/
|
|
4713
4733
|
"unicorn/prefer-object-from-entries"?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
|
|
4714
4734
|
/**
|
|
4715
4735
|
* Prefer omitting the `catch` binding parameter.
|
|
4716
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4736
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-optional-catch-binding.md
|
|
4717
4737
|
*/
|
|
4718
4738
|
"unicorn/prefer-optional-catch-binding"?: Linter.RuleEntry<[]>;
|
|
4719
4739
|
/**
|
|
4720
4740
|
* Prefer borrowing methods from the prototype instead of the instance.
|
|
4721
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4741
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-prototype-methods.md
|
|
4722
4742
|
*/
|
|
4723
4743
|
"unicorn/prefer-prototype-methods"?: Linter.RuleEntry<[]>;
|
|
4724
4744
|
/**
|
|
4725
4745
|
* Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
|
|
4726
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4746
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-query-selector.md
|
|
4727
4747
|
*/
|
|
4728
4748
|
"unicorn/prefer-query-selector"?: Linter.RuleEntry<[]>;
|
|
4729
4749
|
/**
|
|
4730
4750
|
* Prefer `Reflect.apply()` over `Function#apply()`.
|
|
4731
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4751
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-reflect-apply.md
|
|
4732
4752
|
*/
|
|
4733
4753
|
"unicorn/prefer-reflect-apply"?: Linter.RuleEntry<[]>;
|
|
4734
4754
|
/**
|
|
4735
4755
|
* Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
|
|
4736
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4756
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-regexp-test.md
|
|
4737
4757
|
*/
|
|
4738
4758
|
"unicorn/prefer-regexp-test"?: Linter.RuleEntry<[]>;
|
|
4739
4759
|
/**
|
|
4740
4760
|
* Prefer `Response.json()` over `new Response(JSON.stringify())`.
|
|
4741
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4761
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-response-static-json.md
|
|
4742
4762
|
*/
|
|
4743
4763
|
"unicorn/prefer-response-static-json"?: Linter.RuleEntry<[]>;
|
|
4744
4764
|
/**
|
|
4745
4765
|
* Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
|
|
4746
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4766
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-set-has.md
|
|
4747
4767
|
*/
|
|
4748
4768
|
"unicorn/prefer-set-has"?: Linter.RuleEntry<[]>;
|
|
4749
4769
|
/**
|
|
4750
4770
|
* Prefer using `Set#size` instead of `Array#length`.
|
|
4751
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4771
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-set-size.md
|
|
4752
4772
|
*/
|
|
4753
4773
|
"unicorn/prefer-set-size"?: Linter.RuleEntry<[]>;
|
|
4754
4774
|
/**
|
|
4775
|
+
* Prefer simple conditions first in logical expressions.
|
|
4776
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-simple-condition-first.md
|
|
4777
|
+
*/
|
|
4778
|
+
"unicorn/prefer-simple-condition-first"?: Linter.RuleEntry<[]>;
|
|
4779
|
+
/**
|
|
4755
4780
|
* Enforce combining multiple `Array#push()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
|
|
4756
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4781
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-single-call.md
|
|
4757
4782
|
*/
|
|
4758
4783
|
"unicorn/prefer-single-call"?: Linter.RuleEntry<UnicornPreferSingleCall>;
|
|
4759
4784
|
/**
|
|
4760
4785
|
* Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
|
|
4761
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4786
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-spread.md
|
|
4762
4787
|
*/
|
|
4763
4788
|
"unicorn/prefer-spread"?: Linter.RuleEntry<[]>;
|
|
4764
4789
|
/**
|
|
4765
4790
|
* Prefer using the `String.raw` tag to avoid escaping `\`.
|
|
4766
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4791
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-raw.md
|
|
4767
4792
|
*/
|
|
4768
4793
|
"unicorn/prefer-string-raw"?: Linter.RuleEntry<[]>;
|
|
4769
4794
|
/**
|
|
4770
4795
|
* Prefer `String#replaceAll()` over regex searches with the global flag.
|
|
4771
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4796
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-replace-all.md
|
|
4772
4797
|
*/
|
|
4773
4798
|
"unicorn/prefer-string-replace-all"?: Linter.RuleEntry<[]>;
|
|
4774
4799
|
/**
|
|
4775
4800
|
* Prefer `String#slice()` over `String#substr()` and `String#substring()`.
|
|
4776
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4801
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-slice.md
|
|
4777
4802
|
*/
|
|
4778
4803
|
"unicorn/prefer-string-slice"?: Linter.RuleEntry<[]>;
|
|
4779
4804
|
/**
|
|
4780
4805
|
* Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
|
|
4781
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4806
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-starts-ends-with.md
|
|
4782
4807
|
*/
|
|
4783
4808
|
"unicorn/prefer-string-starts-ends-with"?: Linter.RuleEntry<[]>;
|
|
4784
4809
|
/**
|
|
4785
4810
|
* Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
|
|
4786
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4811
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-trim-start-end.md
|
|
4787
4812
|
*/
|
|
4788
4813
|
"unicorn/prefer-string-trim-start-end"?: Linter.RuleEntry<[]>;
|
|
4789
4814
|
/**
|
|
4790
4815
|
* Prefer using `structuredClone` to create a deep clone.
|
|
4791
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4816
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-structured-clone.md
|
|
4792
4817
|
*/
|
|
4793
4818
|
"unicorn/prefer-structured-clone"?: Linter.RuleEntry<UnicornPreferStructuredClone>;
|
|
4794
4819
|
/**
|
|
4795
4820
|
* Prefer `switch` over multiple `else-if`.
|
|
4796
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4821
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-switch.md
|
|
4797
4822
|
*/
|
|
4798
4823
|
"unicorn/prefer-switch"?: Linter.RuleEntry<UnicornPreferSwitch>;
|
|
4799
4824
|
/**
|
|
4800
4825
|
* Prefer ternary expressions over simple `if-else` statements.
|
|
4801
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4826
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-ternary.md
|
|
4802
4827
|
*/
|
|
4803
4828
|
"unicorn/prefer-ternary"?: Linter.RuleEntry<UnicornPreferTernary>;
|
|
4804
4829
|
/**
|
|
4805
4830
|
* Prefer top-level await over top-level promises and async function calls.
|
|
4806
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4831
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-top-level-await.md
|
|
4807
4832
|
*/
|
|
4808
4833
|
"unicorn/prefer-top-level-await"?: Linter.RuleEntry<[]>;
|
|
4809
4834
|
/**
|
|
4810
4835
|
* Enforce throwing `TypeError` in type checking conditions.
|
|
4811
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4836
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-type-error.md
|
|
4812
4837
|
*/
|
|
4813
4838
|
"unicorn/prefer-type-error"?: Linter.RuleEntry<[]>;
|
|
4814
4839
|
/**
|
|
4815
4840
|
* Prevent abbreviations.
|
|
4816
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4841
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prevent-abbreviations.md
|
|
4817
4842
|
*/
|
|
4818
4843
|
"unicorn/prevent-abbreviations"?: Linter.RuleEntry<UnicornPreventAbbreviations>;
|
|
4819
4844
|
/**
|
|
4820
4845
|
* Enforce consistent relative URL style.
|
|
4821
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4846
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/relative-url-style.md
|
|
4822
4847
|
*/
|
|
4823
4848
|
"unicorn/relative-url-style"?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
|
|
4824
4849
|
/**
|
|
4825
4850
|
* Enforce using the separator argument with `Array#join()`.
|
|
4826
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4851
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-array-join-separator.md
|
|
4827
4852
|
*/
|
|
4828
4853
|
"unicorn/require-array-join-separator"?: Linter.RuleEntry<[]>;
|
|
4829
4854
|
/**
|
|
4830
4855
|
* Require non-empty module attributes for imports and exports
|
|
4831
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4856
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-module-attributes.md
|
|
4832
4857
|
*/
|
|
4833
4858
|
"unicorn/require-module-attributes"?: Linter.RuleEntry<[]>;
|
|
4834
4859
|
/**
|
|
4835
4860
|
* Require non-empty specifier list in import and export statements.
|
|
4836
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4861
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-module-specifiers.md
|
|
4837
4862
|
*/
|
|
4838
4863
|
"unicorn/require-module-specifiers"?: Linter.RuleEntry<[]>;
|
|
4839
4864
|
/**
|
|
4840
4865
|
* Enforce using the digits argument with `Number#toFixed()`.
|
|
4841
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4866
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-number-to-fixed-digits-argument.md
|
|
4842
4867
|
*/
|
|
4843
4868
|
"unicorn/require-number-to-fixed-digits-argument"?: Linter.RuleEntry<[]>;
|
|
4844
4869
|
/**
|
|
4845
4870
|
* Enforce using the `targetOrigin` argument with `window.postMessage()`.
|
|
4846
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4871
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-post-message-target-origin.md
|
|
4847
4872
|
*/
|
|
4848
4873
|
"unicorn/require-post-message-target-origin"?: Linter.RuleEntry<[]>;
|
|
4849
4874
|
/**
|
|
4850
4875
|
* Enforce better string content.
|
|
4851
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4876
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/string-content.md
|
|
4852
4877
|
*/
|
|
4853
4878
|
"unicorn/string-content"?: Linter.RuleEntry<UnicornStringContent>;
|
|
4854
4879
|
/**
|
|
4855
4880
|
* Enforce consistent brace style for `case` clauses.
|
|
4856
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4881
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/switch-case-braces.md
|
|
4857
4882
|
*/
|
|
4858
4883
|
"unicorn/switch-case-braces"?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
|
|
4859
4884
|
/**
|
|
4885
|
+
* Enforce consistent `break`/`return`/`continue`/`throw` position in `case` clauses.
|
|
4886
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/switch-case-break-position.md
|
|
4887
|
+
*/
|
|
4888
|
+
"unicorn/switch-case-break-position"?: Linter.RuleEntry<[]>;
|
|
4889
|
+
/**
|
|
4860
4890
|
* Fix whitespace-insensitive template indentation.
|
|
4861
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4891
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/template-indent.md
|
|
4862
4892
|
*/
|
|
4863
4893
|
"unicorn/template-indent"?: Linter.RuleEntry<UnicornTemplateIndent>;
|
|
4864
4894
|
/**
|
|
4865
4895
|
* Enforce consistent case for text encoding identifiers.
|
|
4866
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4896
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/text-encoding-identifier-case.md
|
|
4867
4897
|
*/
|
|
4868
4898
|
"unicorn/text-encoding-identifier-case"?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
|
|
4869
4899
|
/**
|
|
4870
4900
|
* Require `new` when creating an error.
|
|
4871
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4901
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/throw-new-error.md
|
|
4872
4902
|
*/
|
|
4873
4903
|
"unicorn/throw-new-error"?: Linter.RuleEntry<[]>;
|
|
4874
4904
|
/**
|
|
@@ -5425,7 +5455,7 @@ interface Rules {
|
|
|
5425
5455
|
* disallow object, array, and function literals in template
|
|
5426
5456
|
* @see https://eslint.vuejs.org/rules/no-literals-in-template.html
|
|
5427
5457
|
*/
|
|
5428
|
-
"vue/no-literals-in-template"?: Linter.RuleEntry<
|
|
5458
|
+
"vue/no-literals-in-template"?: Linter.RuleEntry<VueNoLiteralsInTemplate>;
|
|
5429
5459
|
/**
|
|
5430
5460
|
* disallow unnecessary `<template>`
|
|
5431
5461
|
* @see https://eslint.vuejs.org/rules/no-lone-template.html
|
|
@@ -5819,6 +5849,11 @@ interface Rules {
|
|
|
5819
5849
|
*/
|
|
5820
5850
|
"vue/prefer-separate-static-class"?: Linter.RuleEntry<[]>;
|
|
5821
5851
|
/**
|
|
5852
|
+
* enforce passing a single argument to custom event emissions
|
|
5853
|
+
* @see https://eslint.vuejs.org/rules/prefer-single-event-payload.html
|
|
5854
|
+
*/
|
|
5855
|
+
"vue/prefer-single-event-payload"?: Linter.RuleEntry<[]>;
|
|
5856
|
+
/**
|
|
5822
5857
|
* Require template literals instead of string concatenation in `<template>`
|
|
5823
5858
|
* @see https://eslint.vuejs.org/rules/prefer-template.html
|
|
5824
5859
|
*/
|
|
@@ -5834,6 +5869,11 @@ interface Rules {
|
|
|
5834
5869
|
*/
|
|
5835
5870
|
"vue/prefer-use-template-ref"?: Linter.RuleEntry<[]>;
|
|
5836
5871
|
/**
|
|
5872
|
+
* enforce using `v-model` instead of `:prop`/`@update:prop` pair
|
|
5873
|
+
* @see https://eslint.vuejs.org/rules/prefer-v-model.html
|
|
5874
|
+
*/
|
|
5875
|
+
"vue/prefer-v-model"?: Linter.RuleEntry<[]>;
|
|
5876
|
+
/**
|
|
5837
5877
|
* enforce specific casing for the Prop name in Vue components
|
|
5838
5878
|
* @see https://eslint.vuejs.org/rules/prop-name-casing.html
|
|
5839
5879
|
*/
|
|
@@ -9602,6 +9642,112 @@ type PerfectionistSortArrayIncludes = {
|
|
|
9602
9642
|
});
|
|
9603
9643
|
partitionByNewLine?: boolean;
|
|
9604
9644
|
}[];
|
|
9645
|
+
type PerfectionistSortArrays = {
|
|
9646
|
+
fallbackSort?: {
|
|
9647
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
9648
|
+
order?: ("asc" | "desc");
|
|
9649
|
+
};
|
|
9650
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
9651
|
+
specialCharacters?: ("remove" | "trim" | "keep");
|
|
9652
|
+
ignoreCase?: boolean;
|
|
9653
|
+
alphabet?: string;
|
|
9654
|
+
locales?: (string | string[]);
|
|
9655
|
+
order?: ("asc" | "desc");
|
|
9656
|
+
customGroups?: ({
|
|
9657
|
+
fallbackSort?: {
|
|
9658
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
9659
|
+
order?: ("asc" | "desc");
|
|
9660
|
+
};
|
|
9661
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
9662
|
+
groupName: string;
|
|
9663
|
+
newlinesInside?: ("ignore" | number);
|
|
9664
|
+
order?: ("asc" | "desc");
|
|
9665
|
+
anyOf: [{
|
|
9666
|
+
elementNamePattern?: (({
|
|
9667
|
+
pattern: string;
|
|
9668
|
+
flags?: string;
|
|
9669
|
+
} | string)[] | ({
|
|
9670
|
+
pattern: string;
|
|
9671
|
+
flags?: string;
|
|
9672
|
+
} | string));
|
|
9673
|
+
selector?: "literal";
|
|
9674
|
+
}, ...({
|
|
9675
|
+
elementNamePattern?: (({
|
|
9676
|
+
pattern: string;
|
|
9677
|
+
flags?: string;
|
|
9678
|
+
} | string)[] | ({
|
|
9679
|
+
pattern: string;
|
|
9680
|
+
flags?: string;
|
|
9681
|
+
} | string));
|
|
9682
|
+
selector?: "literal";
|
|
9683
|
+
})[]];
|
|
9684
|
+
} | {
|
|
9685
|
+
fallbackSort?: {
|
|
9686
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
9687
|
+
order?: ("asc" | "desc");
|
|
9688
|
+
};
|
|
9689
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
9690
|
+
groupName: string;
|
|
9691
|
+
newlinesInside?: ("ignore" | number);
|
|
9692
|
+
order?: ("asc" | "desc");
|
|
9693
|
+
elementNamePattern?: (({
|
|
9694
|
+
pattern: string;
|
|
9695
|
+
flags?: string;
|
|
9696
|
+
} | string)[] | ({
|
|
9697
|
+
pattern: string;
|
|
9698
|
+
flags?: string;
|
|
9699
|
+
} | string));
|
|
9700
|
+
selector?: "literal";
|
|
9701
|
+
})[];
|
|
9702
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
9703
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
9704
|
+
newlinesBetween: ("ignore" | number);
|
|
9705
|
+
} | {
|
|
9706
|
+
group: (string | [string, ...(string)[]]);
|
|
9707
|
+
fallbackSort?: {
|
|
9708
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
9709
|
+
order?: ("asc" | "desc");
|
|
9710
|
+
};
|
|
9711
|
+
commentAbove?: string;
|
|
9712
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
9713
|
+
newlinesInside?: ("ignore" | number);
|
|
9714
|
+
order?: ("asc" | "desc");
|
|
9715
|
+
})[];
|
|
9716
|
+
newlinesBetween?: ("ignore" | number);
|
|
9717
|
+
useConfigurationIf: {
|
|
9718
|
+
allNamesMatchPattern?: (({
|
|
9719
|
+
pattern: string;
|
|
9720
|
+
flags?: string;
|
|
9721
|
+
} | string)[] | ({
|
|
9722
|
+
pattern: string;
|
|
9723
|
+
flags?: string;
|
|
9724
|
+
} | string));
|
|
9725
|
+
matchesAstSelector?: string;
|
|
9726
|
+
};
|
|
9727
|
+
partitionByComment?: (boolean | (({
|
|
9728
|
+
pattern: string;
|
|
9729
|
+
flags?: string;
|
|
9730
|
+
} | string)[] | ({
|
|
9731
|
+
pattern: string;
|
|
9732
|
+
flags?: string;
|
|
9733
|
+
} | string)) | {
|
|
9734
|
+
block?: (boolean | (({
|
|
9735
|
+
pattern: string;
|
|
9736
|
+
flags?: string;
|
|
9737
|
+
} | string)[] | ({
|
|
9738
|
+
pattern: string;
|
|
9739
|
+
flags?: string;
|
|
9740
|
+
} | string)));
|
|
9741
|
+
line?: (boolean | (({
|
|
9742
|
+
pattern: string;
|
|
9743
|
+
flags?: string;
|
|
9744
|
+
} | string)[] | ({
|
|
9745
|
+
pattern: string;
|
|
9746
|
+
flags?: string;
|
|
9747
|
+
} | string)));
|
|
9748
|
+
});
|
|
9749
|
+
partitionByNewLine?: boolean;
|
|
9750
|
+
}[];
|
|
9605
9751
|
type PerfectionistSortClasses = {
|
|
9606
9752
|
fallbackSort?: {
|
|
9607
9753
|
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
@@ -9730,6 +9876,7 @@ type PerfectionistSortClasses = {
|
|
|
9730
9876
|
matchesAstSelector?: string;
|
|
9731
9877
|
};
|
|
9732
9878
|
useExperimentalDependencyDetection?: boolean;
|
|
9879
|
+
newlinesBetweenOverloadSignatures?: ("ignore" | number);
|
|
9733
9880
|
ignoreCallbackDependenciesPatterns?: (({
|
|
9734
9881
|
pattern: string;
|
|
9735
9882
|
flags?: string;
|
|
@@ -11093,6 +11240,7 @@ type PerfectionistSortModules = [] | [{
|
|
|
11093
11240
|
})[];
|
|
11094
11241
|
newlinesBetween?: ("ignore" | number);
|
|
11095
11242
|
useExperimentalDependencyDetection?: boolean;
|
|
11243
|
+
newlinesBetweenOverloadSignatures?: ("ignore" | number);
|
|
11096
11244
|
partitionByComment?: (boolean | (({
|
|
11097
11245
|
pattern: string;
|
|
11098
11246
|
flags?: string;
|
|
@@ -12280,6 +12428,7 @@ type UnicornEscapeCase = [] | [("uppercase" | "lowercase")];
|
|
|
12280
12428
|
type UnicornExpiringTodoComments = [] | [{
|
|
12281
12429
|
terms?: string[];
|
|
12282
12430
|
ignore?: unknown[];
|
|
12431
|
+
ignoreDates?: boolean;
|
|
12283
12432
|
ignoreDatesOnPullRequests?: boolean;
|
|
12284
12433
|
allowWarningComments?: boolean;
|
|
12285
12434
|
date?: string;
|
|
@@ -12439,6 +12588,9 @@ interface _UnicornPreventAbbreviations_Abbreviations {
|
|
|
12439
12588
|
interface _UnicornPreventAbbreviations_BooleanObject {
|
|
12440
12589
|
[k: string]: boolean | undefined;
|
|
12441
12590
|
}
|
|
12591
|
+
interface _UnicornPreventAbbreviations_BooleanObject {
|
|
12592
|
+
[k: string]: boolean | undefined;
|
|
12593
|
+
}
|
|
12442
12594
|
type UnicornRelativeUrlStyle = [] | [("never" | "always")];
|
|
12443
12595
|
type UnicornStringContent = [] | [{
|
|
12444
12596
|
patterns?: {
|
|
@@ -13209,6 +13361,9 @@ type VueNoIrregularWhitespace = [] | [{
|
|
|
13209
13361
|
skipHTMLAttributeValues?: boolean;
|
|
13210
13362
|
skipHTMLTextContents?: boolean;
|
|
13211
13363
|
}];
|
|
13364
|
+
type VueNoLiteralsInTemplate = [] | [{
|
|
13365
|
+
ignores?: string[];
|
|
13366
|
+
}];
|
|
13212
13367
|
type VueNoLoneTemplate = [] | [{
|
|
13213
13368
|
ignoreAccessible?: boolean;
|
|
13214
13369
|
}];
|
|
@@ -13362,7 +13517,7 @@ type VueNoUnusedComponents = [] | [{
|
|
|
13362
13517
|
ignoreWhenBindingPresent?: boolean;
|
|
13363
13518
|
}];
|
|
13364
13519
|
type VueNoUnusedProperties = [] | [{
|
|
13365
|
-
groups?: ("props" | "data" | "asyncData" | "computed" | "methods" | "setup")[];
|
|
13520
|
+
groups?: ("props" | "data" | "asyncData" | "computed" | "methods" | "setup" | "inject")[];
|
|
13366
13521
|
deepData?: boolean;
|
|
13367
13522
|
ignorePublicMembers?: boolean;
|
|
13368
13523
|
unreferencedOptions?: ("unknownMemberAsUnreferenced" | "returnAsUnreferenced")[];
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sxzz/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "7.8.
|
|
4
|
+
"version": "7.8.5",
|
|
5
5
|
"description": "ESLint config for @sxzz.",
|
|
6
6
|
"author": "Kevin Deng <sxzz@sxzz.moe>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -44,48 +44,47 @@
|
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.7.1",
|
|
46
46
|
"@eslint/js": "^10.0.1",
|
|
47
|
-
"@eslint/markdown": "^8.0.
|
|
47
|
+
"@eslint/markdown": "^8.0.1",
|
|
48
48
|
"eslint-config-flat-gitignore": "^2.3.0",
|
|
49
49
|
"eslint-config-prettier": "^10.1.8",
|
|
50
|
-
"eslint-flat-config-utils": "^3.0
|
|
50
|
+
"eslint-flat-config-utils": "^3.1.0",
|
|
51
51
|
"eslint-plugin-antfu": "^3.2.2",
|
|
52
|
-
"eslint-plugin-baseline-js": "^0.6.
|
|
52
|
+
"eslint-plugin-baseline-js": "^0.6.2",
|
|
53
53
|
"eslint-plugin-command": "^3.5.2",
|
|
54
54
|
"eslint-plugin-de-morgan": "^2.1.1",
|
|
55
55
|
"eslint-plugin-importer": "^0.3.0",
|
|
56
|
-
"eslint-plugin-jsdoc": "^62.
|
|
56
|
+
"eslint-plugin-jsdoc": "^62.9.0",
|
|
57
57
|
"eslint-plugin-jsonc": "^3.1.2",
|
|
58
58
|
"eslint-plugin-n": "^17.24.0",
|
|
59
|
-
"eslint-plugin-perfectionist": "^5.
|
|
59
|
+
"eslint-plugin-perfectionist": "^5.9.0",
|
|
60
60
|
"eslint-plugin-pnpm": "^1.6.0",
|
|
61
61
|
"eslint-plugin-prettier": "^5.5.5",
|
|
62
62
|
"eslint-plugin-regexp": "^3.1.0",
|
|
63
63
|
"eslint-plugin-sxzz": "^0.4.4",
|
|
64
|
-
"eslint-plugin-unicorn": "^
|
|
64
|
+
"eslint-plugin-unicorn": "^64.0.0",
|
|
65
65
|
"eslint-plugin-unused-imports": "^4.4.1",
|
|
66
|
-
"eslint-plugin-vue": "^10.
|
|
66
|
+
"eslint-plugin-vue": "^10.9.0",
|
|
67
67
|
"eslint-plugin-yml": "^3.3.1",
|
|
68
|
-
"globals": "^17.
|
|
68
|
+
"globals": "^17.5.0",
|
|
69
69
|
"jsonc-eslint-parser": "^3.1.0",
|
|
70
|
-
"typescript-eslint": "^8.
|
|
70
|
+
"typescript-eslint": "^8.59.1",
|
|
71
71
|
"vue-eslint-parser": "^10.4.0"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
|
-
"@eslint/config-inspector": "^
|
|
74
|
+
"@eslint/config-inspector": "^2.0.0",
|
|
75
75
|
"@sxzz/prettier-config": "^2.3.1",
|
|
76
|
-
"@types/node": "^25.
|
|
77
|
-
"@typescript/native-preview": "7.0.0-dev.
|
|
78
|
-
"@unocss/eslint-plugin": "^66.6.
|
|
76
|
+
"@types/node": "^25.6.0",
|
|
77
|
+
"@typescript/native-preview": "7.0.0-dev.20260429.1",
|
|
78
|
+
"@unocss/eslint-plugin": "^66.6.8",
|
|
79
79
|
"bumpp": "^11.0.1",
|
|
80
|
-
"eslint": "^10.1
|
|
81
|
-
"eslint-plugin-astro": "^1.
|
|
80
|
+
"eslint": "^10.2.1",
|
|
81
|
+
"eslint-plugin-astro": "^1.7.0",
|
|
82
82
|
"eslint-typegen": "^2.3.1",
|
|
83
|
-
"prettier": "^3.8.
|
|
83
|
+
"prettier": "^3.8.3",
|
|
84
84
|
"rolldown-plugin-require-cjs": "^0.4.0",
|
|
85
|
-
"tsdown": "^0.21.
|
|
86
|
-
"tsdown-preset-sxzz": "^0.
|
|
87
|
-
"typescript": "^6.0.
|
|
88
|
-
"unrun": "^0.2.34"
|
|
85
|
+
"tsdown": "^0.21.10",
|
|
86
|
+
"tsdown-preset-sxzz": "^0.5.0",
|
|
87
|
+
"typescript": "^6.0.3"
|
|
89
88
|
},
|
|
90
89
|
"resolutions": {
|
|
91
90
|
"@types/eslint": "-"
|
|
@@ -94,7 +93,7 @@
|
|
|
94
93
|
"scripts": {
|
|
95
94
|
"dev": "eslint-config-inspector --config eslint-inspector.config.ts",
|
|
96
95
|
"build": "pnpm run build:typegen && tsdown",
|
|
97
|
-
"build:typegen": "
|
|
96
|
+
"build:typegen": "node scripts/typegen.ts",
|
|
98
97
|
"build:inspector": "eslint-config-inspector build --config eslint-inspector.config.ts",
|
|
99
98
|
"test": "echo Skip",
|
|
100
99
|
"lint": "eslint --max-warnings=0",
|