@ntnyq/eslint-config 5.7.0 → 5.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{index.d.ts → index.d.mts} +202 -208
- package/dist/{index.js → index.mjs} +25 -13
- package/package.json +27 -27
|
@@ -494,8 +494,11 @@ declare const configCommand: (options?: ConfigCommandOptions) => TypedConfigItem
|
|
|
494
494
|
//#region src/configs/ignores.d.ts
|
|
495
495
|
/**
|
|
496
496
|
* Options type for {@link configIgnores}
|
|
497
|
+
*
|
|
498
|
+
* Passing an array to extend the built-in ignores
|
|
499
|
+
* Passing a function to modify the built-in ignores
|
|
497
500
|
*/
|
|
498
|
-
type ConfigIgnoresOptions = string[];
|
|
501
|
+
type ConfigIgnoresOptions = string[] | ((ignores: string[]) => string[]);
|
|
499
502
|
/**
|
|
500
503
|
* Config for ignore files from linting
|
|
501
504
|
*
|
|
@@ -2201,6 +2204,11 @@ interface RuleOptions {
|
|
|
2201
2204
|
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/no-set-text-directive/
|
|
2202
2205
|
*/
|
|
2203
2206
|
'astro/no-set-text-directive'?: Linter.RuleEntry<[]>;
|
|
2207
|
+
/**
|
|
2208
|
+
* disallow inline `<script>` without `src` to encourage CSP-safe patterns
|
|
2209
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/no-unsafe-inline-scripts/
|
|
2210
|
+
*/
|
|
2211
|
+
'astro/no-unsafe-inline-scripts'?: Linter.RuleEntry<AstroNoUnsafeInlineScripts>;
|
|
2204
2212
|
/**
|
|
2205
2213
|
* disallow selectors defined in `style` tag that don't use in HTML
|
|
2206
2214
|
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/no-unused-css-selector/
|
|
@@ -2535,6 +2543,11 @@ interface RuleOptions {
|
|
|
2535
2543
|
* @see https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/require-meta-type.md
|
|
2536
2544
|
*/
|
|
2537
2545
|
'eslint-plugin/require-meta-type'?: Linter.RuleEntry<[]>;
|
|
2546
|
+
/**
|
|
2547
|
+
* require test cases to have a `name` property under certain conditions
|
|
2548
|
+
* @see https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/require-test-case-name.md
|
|
2549
|
+
*/
|
|
2550
|
+
'eslint-plugin/require-test-case-name'?: Linter.RuleEntry<EslintPluginRequireTestCaseName>;
|
|
2538
2551
|
/**
|
|
2539
2552
|
* require the properties of a test case to be placed in a consistent order
|
|
2540
2553
|
* @see https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/test-case-property-ordering.md
|
|
@@ -2545,19 +2558,16 @@ interface RuleOptions {
|
|
|
2545
2558
|
* @see https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/test-case-shorthand-strings.md
|
|
2546
2559
|
*/
|
|
2547
2560
|
'eslint-plugin/test-case-shorthand-strings'?: Linter.RuleEntry<EslintPluginTestCaseShorthandStrings>;
|
|
2561
|
+
/**
|
|
2562
|
+
* enforce that all test cases with names have unique names
|
|
2563
|
+
* @see https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/unique-test-case-names.md
|
|
2564
|
+
*/
|
|
2565
|
+
'eslint-plugin/unique-test-case-names'?: Linter.RuleEntry<[]>;
|
|
2548
2566
|
/**
|
|
2549
2567
|
* Enforce `for` loop update clause moving the counter in the right direction
|
|
2550
2568
|
* @see https://eslint.org/docs/latest/rules/for-direction
|
|
2551
2569
|
*/
|
|
2552
2570
|
'for-direction'?: Linter.RuleEntry<[]>;
|
|
2553
|
-
/**
|
|
2554
|
-
* Use dprint to format code
|
|
2555
|
-
*/
|
|
2556
|
-
'format/dprint'?: Linter.RuleEntry<FormatDprint>;
|
|
2557
|
-
/**
|
|
2558
|
-
* Use Prettier to format code
|
|
2559
|
-
*/
|
|
2560
|
-
'format/prettier'?: Linter.RuleEntry<FormatPrettier>;
|
|
2561
2571
|
/**
|
|
2562
2572
|
* Require or disallow spacing between function identifiers and their invocations
|
|
2563
2573
|
* @see https://eslint.org/docs/latest/rules/func-call-spacing
|
|
@@ -6223,710 +6233,725 @@ interface RuleOptions {
|
|
|
6223
6233
|
'unicode-bom'?: Linter.RuleEntry<UnicodeBom>;
|
|
6224
6234
|
/**
|
|
6225
6235
|
* Improve regexes by making them shorter, consistent, and safer.
|
|
6226
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6236
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/better-regex.md
|
|
6227
6237
|
*/
|
|
6228
6238
|
'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>;
|
|
6229
6239
|
/**
|
|
6230
6240
|
* Enforce a specific parameter name in catch clauses.
|
|
6231
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6241
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/catch-error-name.md
|
|
6232
6242
|
*/
|
|
6233
6243
|
'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
|
|
6234
6244
|
/**
|
|
6235
6245
|
* Enforce consistent assertion style with `node:assert`.
|
|
6236
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6246
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-assert.md
|
|
6237
6247
|
*/
|
|
6238
6248
|
'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
|
|
6239
6249
|
/**
|
|
6240
6250
|
* Prefer passing `Date` directly to the constructor when cloning.
|
|
6241
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6251
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-date-clone.md
|
|
6242
6252
|
*/
|
|
6243
6253
|
'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
|
|
6244
6254
|
/**
|
|
6245
6255
|
* Use destructured variables over properties.
|
|
6246
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6256
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-destructuring.md
|
|
6247
6257
|
*/
|
|
6248
6258
|
'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
|
|
6249
6259
|
/**
|
|
6250
6260
|
* Prefer consistent types when spreading a ternary in an array literal.
|
|
6251
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6261
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-empty-array-spread.md
|
|
6252
6262
|
*/
|
|
6253
6263
|
'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
|
|
6254
6264
|
/**
|
|
6255
6265
|
* Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
|
|
6256
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6266
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-existence-index-check.md
|
|
6257
6267
|
*/
|
|
6258
6268
|
'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
|
|
6259
6269
|
/**
|
|
6260
6270
|
* Move function definitions to the highest possible scope.
|
|
6261
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6271
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-function-scoping.md
|
|
6262
6272
|
*/
|
|
6263
6273
|
'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
|
|
6264
6274
|
/**
|
|
6265
6275
|
* Enforce correct `Error` subclassing.
|
|
6266
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6276
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/custom-error-definition.md
|
|
6267
6277
|
*/
|
|
6268
6278
|
'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
|
|
6269
6279
|
/**
|
|
6270
6280
|
* Enforce no spaces between braces.
|
|
6271
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6281
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/empty-brace-spaces.md
|
|
6272
6282
|
*/
|
|
6273
6283
|
'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
|
|
6274
6284
|
/**
|
|
6275
6285
|
* Enforce passing a `message` value when creating a built-in error.
|
|
6276
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6286
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/error-message.md
|
|
6277
6287
|
*/
|
|
6278
6288
|
'unicorn/error-message'?: Linter.RuleEntry<[]>;
|
|
6279
6289
|
/**
|
|
6280
6290
|
* Require escape sequences to use uppercase or lowercase values.
|
|
6281
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6291
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/escape-case.md
|
|
6282
6292
|
*/
|
|
6283
6293
|
'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
|
|
6284
6294
|
/**
|
|
6285
6295
|
* Add expiration conditions to TODO comments.
|
|
6286
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6296
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/expiring-todo-comments.md
|
|
6287
6297
|
*/
|
|
6288
6298
|
'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
|
|
6289
6299
|
/**
|
|
6290
6300
|
* Enforce explicitly comparing the `length` or `size` property of a value.
|
|
6291
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6301
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/explicit-length-check.md
|
|
6292
6302
|
*/
|
|
6293
6303
|
'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
|
|
6294
6304
|
/**
|
|
6295
6305
|
* Enforce a case style for filenames.
|
|
6296
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6306
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/filename-case.md
|
|
6297
6307
|
*/
|
|
6298
6308
|
'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
|
|
6299
6309
|
/**
|
|
6300
6310
|
* Enforce specific import styles per module.
|
|
6301
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6311
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/import-style.md
|
|
6302
6312
|
*/
|
|
6303
6313
|
'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
|
|
6304
6314
|
/**
|
|
6305
6315
|
* Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
|
|
6306
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6316
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/new-for-builtins.md
|
|
6307
6317
|
*/
|
|
6308
6318
|
'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
|
|
6309
6319
|
/**
|
|
6310
6320
|
* Enforce specifying rules to disable in `eslint-disable` comments.
|
|
6311
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6321
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-abusive-eslint-disable.md
|
|
6312
6322
|
*/
|
|
6313
6323
|
'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
|
|
6314
6324
|
/**
|
|
6315
6325
|
* Disallow recursive access to `this` within getters and setters.
|
|
6316
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6326
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-accessor-recursion.md
|
|
6317
6327
|
*/
|
|
6318
6328
|
'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
|
|
6319
6329
|
/**
|
|
6320
6330
|
* Disallow anonymous functions and classes as the default export.
|
|
6321
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6331
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-anonymous-default-export.md
|
|
6322
6332
|
*/
|
|
6323
6333
|
'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
|
|
6324
6334
|
/**
|
|
6325
6335
|
* Prevent passing a function reference directly to iterator methods.
|
|
6326
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6336
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-callback-reference.md
|
|
6327
6337
|
*/
|
|
6328
6338
|
'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>;
|
|
6329
6339
|
/**
|
|
6330
6340
|
* Prefer `for…of` over the `forEach` method.
|
|
6331
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6341
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-for-each.md
|
|
6332
6342
|
*/
|
|
6333
6343
|
'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>;
|
|
6334
6344
|
/**
|
|
6335
6345
|
* Disallow using the `this` argument in array methods.
|
|
6336
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6346
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-method-this-argument.md
|
|
6337
6347
|
*/
|
|
6338
6348
|
'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
|
|
6339
6349
|
/**
|
|
6340
6350
|
* Replaced by `unicorn/prefer-single-call` which covers more cases.
|
|
6341
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6351
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/deprecated-rules.md#no-array-push-push
|
|
6342
6352
|
* @deprecated
|
|
6343
6353
|
*/
|
|
6344
6354
|
'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
|
|
6345
6355
|
/**
|
|
6346
6356
|
* Disallow `Array#reduce()` and `Array#reduceRight()`.
|
|
6347
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6357
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-reduce.md
|
|
6348
6358
|
*/
|
|
6349
6359
|
'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
|
|
6350
6360
|
/**
|
|
6351
6361
|
* Prefer `Array#toReversed()` over `Array#reverse()`.
|
|
6352
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6362
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-reverse.md
|
|
6353
6363
|
*/
|
|
6354
6364
|
'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
|
|
6355
6365
|
/**
|
|
6356
6366
|
* Prefer `Array#toSorted()` over `Array#sort()`.
|
|
6357
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6367
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-sort.md
|
|
6358
6368
|
*/
|
|
6359
6369
|
'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>;
|
|
6360
6370
|
/**
|
|
6361
6371
|
* Disallow member access from await expression.
|
|
6362
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6372
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-await-expression-member.md
|
|
6363
6373
|
*/
|
|
6364
6374
|
'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
|
|
6365
6375
|
/**
|
|
6366
6376
|
* Disallow using `await` in `Promise` method parameters.
|
|
6367
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6377
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-await-in-promise-methods.md
|
|
6368
6378
|
*/
|
|
6369
6379
|
'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
|
|
6370
6380
|
/**
|
|
6371
6381
|
* Do not use leading/trailing space between `console.log` parameters.
|
|
6372
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6382
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-console-spaces.md
|
|
6373
6383
|
*/
|
|
6374
6384
|
'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
|
|
6375
6385
|
/**
|
|
6376
6386
|
* Do not use `document.cookie` directly.
|
|
6377
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6387
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-document-cookie.md
|
|
6378
6388
|
*/
|
|
6379
6389
|
'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
|
|
6380
6390
|
/**
|
|
6381
6391
|
* Disallow empty files.
|
|
6382
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6392
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-empty-file.md
|
|
6383
6393
|
*/
|
|
6384
6394
|
'unicorn/no-empty-file'?: Linter.RuleEntry<[]>;
|
|
6385
6395
|
/**
|
|
6386
6396
|
* Do not use a `for` loop that can be replaced with a `for-of` loop.
|
|
6387
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6397
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-for-loop.md
|
|
6388
6398
|
*/
|
|
6389
6399
|
'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
|
|
6390
6400
|
/**
|
|
6391
6401
|
* Enforce the use of Unicode escapes instead of hexadecimal escapes.
|
|
6392
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6402
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-hex-escape.md
|
|
6393
6403
|
*/
|
|
6394
6404
|
'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
|
|
6405
|
+
/**
|
|
6406
|
+
* Disallow immediate mutation after variable assignment.
|
|
6407
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-immediate-mutation.md
|
|
6408
|
+
*/
|
|
6409
|
+
'unicorn/no-immediate-mutation'?: Linter.RuleEntry<[]>;
|
|
6395
6410
|
/**
|
|
6396
6411
|
* Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
|
|
6397
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6412
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/deprecated-rules.md#no-instanceof-array
|
|
6398
6413
|
* @deprecated
|
|
6399
6414
|
*/
|
|
6400
6415
|
'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
|
|
6401
6416
|
/**
|
|
6402
6417
|
* Disallow `instanceof` with built-in objects
|
|
6403
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6418
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-instanceof-builtins.md
|
|
6404
6419
|
*/
|
|
6405
6420
|
'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
|
|
6406
6421
|
/**
|
|
6407
6422
|
* Disallow invalid options in `fetch()` and `new Request()`.
|
|
6408
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6423
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-invalid-fetch-options.md
|
|
6409
6424
|
*/
|
|
6410
6425
|
'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
|
|
6411
6426
|
/**
|
|
6412
6427
|
* Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
|
|
6413
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6428
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-invalid-remove-event-listener.md
|
|
6414
6429
|
*/
|
|
6415
6430
|
'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
|
|
6416
6431
|
/**
|
|
6417
6432
|
* Disallow identifiers starting with `new` or `class`.
|
|
6418
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6433
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-keyword-prefix.md
|
|
6419
6434
|
*/
|
|
6420
6435
|
'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
|
|
6421
6436
|
/**
|
|
6422
6437
|
* Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
|
|
6423
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6438
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/deprecated-rules.md#no-length-as-slice-end
|
|
6424
6439
|
* @deprecated
|
|
6425
6440
|
*/
|
|
6426
6441
|
'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
|
|
6427
6442
|
/**
|
|
6428
6443
|
* Disallow `if` statements as the only statement in `if` blocks without `else`.
|
|
6429
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6444
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-lonely-if.md
|
|
6430
6445
|
*/
|
|
6431
6446
|
'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
|
|
6432
6447
|
/**
|
|
6433
6448
|
* Disallow a magic number as the `depth` argument in `Array#flat(…).`
|
|
6434
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6449
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-magic-array-flat-depth.md
|
|
6435
6450
|
*/
|
|
6436
6451
|
'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
|
|
6437
6452
|
/**
|
|
6438
6453
|
* Disallow named usage of default import and export.
|
|
6439
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6454
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-named-default.md
|
|
6440
6455
|
*/
|
|
6441
6456
|
'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
|
|
6442
6457
|
/**
|
|
6443
6458
|
* Disallow negated conditions.
|
|
6444
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6459
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-negated-condition.md
|
|
6445
6460
|
*/
|
|
6446
6461
|
'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
|
|
6447
6462
|
/**
|
|
6448
6463
|
* Disallow negated expression in equality check.
|
|
6449
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6464
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-negation-in-equality-check.md
|
|
6450
6465
|
*/
|
|
6451
6466
|
'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
|
|
6452
6467
|
/**
|
|
6453
6468
|
* Disallow nested ternary expressions.
|
|
6454
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6469
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-nested-ternary.md
|
|
6455
6470
|
*/
|
|
6456
6471
|
'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
|
|
6457
6472
|
/**
|
|
6458
6473
|
* Disallow `new Array()`.
|
|
6459
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6474
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-new-array.md
|
|
6460
6475
|
*/
|
|
6461
6476
|
'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
|
|
6462
6477
|
/**
|
|
6463
6478
|
* Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
|
|
6464
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6479
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-new-buffer.md
|
|
6465
6480
|
*/
|
|
6466
6481
|
'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
|
|
6467
6482
|
/**
|
|
6468
6483
|
* Disallow the use of the `null` literal.
|
|
6469
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6484
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-null.md
|
|
6470
6485
|
*/
|
|
6471
6486
|
'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
|
|
6472
6487
|
/**
|
|
6473
6488
|
* Disallow the use of objects as default parameters.
|
|
6474
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6489
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-object-as-default-parameter.md
|
|
6475
6490
|
*/
|
|
6476
6491
|
'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
|
|
6477
6492
|
/**
|
|
6478
6493
|
* Disallow `process.exit()`.
|
|
6479
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6494
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-process-exit.md
|
|
6480
6495
|
*/
|
|
6481
6496
|
'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
|
|
6482
6497
|
/**
|
|
6483
6498
|
* Disallow passing single-element arrays to `Promise` methods.
|
|
6484
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6499
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-single-promise-in-promise-methods.md
|
|
6485
6500
|
*/
|
|
6486
6501
|
'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
|
|
6487
6502
|
/**
|
|
6488
6503
|
* Disallow classes that only have static members.
|
|
6489
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6504
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-static-only-class.md
|
|
6490
6505
|
*/
|
|
6491
6506
|
'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
|
|
6492
6507
|
/**
|
|
6493
6508
|
* Disallow `then` property.
|
|
6494
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6509
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-thenable.md
|
|
6495
6510
|
*/
|
|
6496
6511
|
'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
|
|
6497
6512
|
/**
|
|
6498
6513
|
* Disallow assigning `this` to a variable.
|
|
6499
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6514
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-this-assignment.md
|
|
6500
6515
|
*/
|
|
6501
6516
|
'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
|
|
6502
6517
|
/**
|
|
6503
6518
|
* Disallow comparing `undefined` using `typeof`.
|
|
6504
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6519
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-typeof-undefined.md
|
|
6505
6520
|
*/
|
|
6506
6521
|
'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
|
|
6507
6522
|
/**
|
|
6508
6523
|
* Disallow using `1` as the `depth` argument of `Array#flat()`.
|
|
6509
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6524
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-array-flat-depth.md
|
|
6510
6525
|
*/
|
|
6511
6526
|
'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
|
|
6512
6527
|
/**
|
|
6513
6528
|
* Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
|
|
6514
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6529
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-array-splice-count.md
|
|
6515
6530
|
*/
|
|
6516
6531
|
'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
|
|
6517
6532
|
/**
|
|
6518
6533
|
* Disallow awaiting non-promise values.
|
|
6519
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6534
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-await.md
|
|
6520
6535
|
*/
|
|
6521
6536
|
'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
|
|
6522
6537
|
/**
|
|
6523
6538
|
* Enforce the use of built-in methods instead of unnecessary polyfills.
|
|
6524
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6539
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-polyfills.md
|
|
6525
6540
|
*/
|
|
6526
6541
|
'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
|
|
6527
6542
|
/**
|
|
6528
6543
|
* Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
|
|
6529
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6544
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-slice-end.md
|
|
6530
6545
|
*/
|
|
6531
6546
|
'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
|
|
6532
6547
|
/**
|
|
6533
6548
|
* Disallow unreadable array destructuring.
|
|
6534
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6549
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unreadable-array-destructuring.md
|
|
6535
6550
|
*/
|
|
6536
6551
|
'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>;
|
|
6537
6552
|
/**
|
|
6538
6553
|
* Disallow unreadable IIFEs.
|
|
6539
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6554
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unreadable-iife.md
|
|
6540
6555
|
*/
|
|
6541
6556
|
'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
|
|
6542
6557
|
/**
|
|
6543
6558
|
* Disallow unused object properties.
|
|
6544
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6559
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unused-properties.md
|
|
6545
6560
|
*/
|
|
6546
6561
|
'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
|
|
6562
|
+
/**
|
|
6563
|
+
* Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
|
|
6564
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-collection-argument.md
|
|
6565
|
+
*/
|
|
6566
|
+
'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>;
|
|
6547
6567
|
/**
|
|
6548
6568
|
* Disallow unnecessary `Error.captureStackTrace(…)`.
|
|
6549
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6569
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-error-capture-stack-trace.md
|
|
6550
6570
|
*/
|
|
6551
6571
|
'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
|
|
6552
6572
|
/**
|
|
6553
6573
|
* Disallow useless fallback when spreading in object literals.
|
|
6554
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6574
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-fallback-in-spread.md
|
|
6555
6575
|
*/
|
|
6556
6576
|
'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
|
|
6557
6577
|
/**
|
|
6558
6578
|
* Disallow useless array length check.
|
|
6559
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6579
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-length-check.md
|
|
6560
6580
|
*/
|
|
6561
6581
|
'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
|
|
6562
6582
|
/**
|
|
6563
6583
|
* Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
|
|
6564
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6584
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-promise-resolve-reject.md
|
|
6565
6585
|
*/
|
|
6566
6586
|
'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
|
|
6567
6587
|
/**
|
|
6568
6588
|
* Disallow unnecessary spread.
|
|
6569
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6589
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-spread.md
|
|
6570
6590
|
*/
|
|
6571
6591
|
'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
|
|
6572
6592
|
/**
|
|
6573
6593
|
* Disallow useless case in switch statements.
|
|
6574
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6594
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-switch-case.md
|
|
6575
6595
|
*/
|
|
6576
6596
|
'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
|
|
6577
6597
|
/**
|
|
6578
6598
|
* Disallow useless `undefined`.
|
|
6579
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6599
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-undefined.md
|
|
6580
6600
|
*/
|
|
6581
6601
|
'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
|
|
6582
6602
|
/**
|
|
6583
6603
|
* Disallow number literals with zero fractions or dangling dots.
|
|
6584
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6604
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-zero-fractions.md
|
|
6585
6605
|
*/
|
|
6586
6606
|
'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
|
|
6587
6607
|
/**
|
|
6588
6608
|
* Enforce proper case for numeric literals.
|
|
6589
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6609
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/number-literal-case.md
|
|
6590
6610
|
*/
|
|
6591
6611
|
'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
|
|
6592
6612
|
/**
|
|
6593
6613
|
* Enforce the style of numeric separators by correctly grouping digits.
|
|
6594
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6614
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/numeric-separators-style.md
|
|
6595
6615
|
*/
|
|
6596
6616
|
'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
|
|
6597
6617
|
/**
|
|
6598
6618
|
* Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
|
|
6599
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6619
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-add-event-listener.md
|
|
6600
6620
|
*/
|
|
6601
6621
|
'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
|
|
6602
6622
|
/**
|
|
6603
6623
|
* Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
|
|
6604
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6624
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-find.md
|
|
6605
6625
|
*/
|
|
6606
6626
|
'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
|
|
6607
6627
|
/**
|
|
6608
6628
|
* Prefer `Array#flat()` over legacy techniques to flatten arrays.
|
|
6609
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6629
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-flat.md
|
|
6610
6630
|
*/
|
|
6611
6631
|
'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
|
|
6612
6632
|
/**
|
|
6613
6633
|
* Prefer `.flatMap(…)` over `.map(…).flat()`.
|
|
6614
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6634
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-flat-map.md
|
|
6615
6635
|
*/
|
|
6616
6636
|
'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
|
|
6617
6637
|
/**
|
|
6618
6638
|
* Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
|
|
6619
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6639
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-index-of.md
|
|
6620
6640
|
*/
|
|
6621
6641
|
'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
|
|
6622
6642
|
/**
|
|
6623
6643
|
* Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
|
|
6624
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6644
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-some.md
|
|
6625
6645
|
*/
|
|
6626
6646
|
'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
|
|
6627
6647
|
/**
|
|
6628
6648
|
* Prefer `.at()` method for index access and `String#charAt()`.
|
|
6629
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6649
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-at.md
|
|
6630
6650
|
*/
|
|
6631
6651
|
'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
|
|
6632
6652
|
/**
|
|
6633
6653
|
* Prefer `BigInt` literals over the constructor.
|
|
6634
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6654
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-bigint-literals.md
|
|
6635
6655
|
*/
|
|
6636
6656
|
'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>;
|
|
6637
6657
|
/**
|
|
6638
6658
|
* Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
|
|
6639
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6659
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-blob-reading-methods.md
|
|
6640
6660
|
*/
|
|
6641
6661
|
'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
|
|
6642
6662
|
/**
|
|
6643
6663
|
* Prefer class field declarations over `this` assignments in constructors.
|
|
6644
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6664
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-class-fields.md
|
|
6645
6665
|
*/
|
|
6646
6666
|
'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
|
|
6647
6667
|
/**
|
|
6648
6668
|
* Prefer using `Element#classList.toggle()` to toggle class names.
|
|
6649
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6669
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-classlist-toggle.md
|
|
6650
6670
|
*/
|
|
6651
6671
|
'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>;
|
|
6652
6672
|
/**
|
|
6653
6673
|
* Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
|
|
6654
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6674
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-code-point.md
|
|
6655
6675
|
*/
|
|
6656
6676
|
'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
|
|
6657
6677
|
/**
|
|
6658
6678
|
* Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
|
|
6659
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6679
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-date-now.md
|
|
6660
6680
|
*/
|
|
6661
6681
|
'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
|
|
6662
6682
|
/**
|
|
6663
6683
|
* Prefer default parameters over reassignment.
|
|
6664
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6684
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-default-parameters.md
|
|
6665
6685
|
*/
|
|
6666
6686
|
'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
|
|
6667
6687
|
/**
|
|
6668
6688
|
* Prefer `Node#append()` over `Node#appendChild()`.
|
|
6669
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6689
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-append.md
|
|
6670
6690
|
*/
|
|
6671
6691
|
'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
|
|
6672
6692
|
/**
|
|
6673
6693
|
* Prefer using `.dataset` on DOM elements over calling attribute methods.
|
|
6674
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6694
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-dataset.md
|
|
6675
6695
|
*/
|
|
6676
6696
|
'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
|
|
6677
6697
|
/**
|
|
6678
6698
|
* Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
|
|
6679
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6699
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-remove.md
|
|
6680
6700
|
*/
|
|
6681
6701
|
'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
|
|
6682
6702
|
/**
|
|
6683
6703
|
* Prefer `.textContent` over `.innerText`.
|
|
6684
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6704
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-text-content.md
|
|
6685
6705
|
*/
|
|
6686
6706
|
'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
|
|
6687
6707
|
/**
|
|
6688
6708
|
* Prefer `EventTarget` over `EventEmitter`.
|
|
6689
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6709
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-event-target.md
|
|
6690
6710
|
*/
|
|
6691
6711
|
'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
|
|
6692
6712
|
/**
|
|
6693
6713
|
* Prefer `export…from` when re-exporting.
|
|
6694
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6714
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-export-from.md
|
|
6695
6715
|
*/
|
|
6696
6716
|
'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
|
|
6697
6717
|
/**
|
|
6698
6718
|
* Prefer `globalThis` over `window`, `self`, and `global`.
|
|
6699
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6719
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-global-this.md
|
|
6700
6720
|
*/
|
|
6701
6721
|
'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
|
|
6702
6722
|
/**
|
|
6703
6723
|
* Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
|
|
6704
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6724
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-import-meta-properties.md
|
|
6705
6725
|
*/
|
|
6706
6726
|
'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
|
|
6707
6727
|
/**
|
|
6708
6728
|
* Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
|
|
6709
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6729
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-includes.md
|
|
6710
6730
|
*/
|
|
6711
6731
|
'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
|
|
6712
6732
|
/**
|
|
6713
6733
|
* Prefer reading a JSON file as a buffer.
|
|
6714
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6734
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-json-parse-buffer.md
|
|
6715
6735
|
*/
|
|
6716
6736
|
'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
|
|
6717
6737
|
/**
|
|
6718
6738
|
* Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
|
|
6719
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6739
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-keyboard-event-key.md
|
|
6720
6740
|
*/
|
|
6721
6741
|
'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
|
|
6722
6742
|
/**
|
|
6723
6743
|
* Prefer using a logical operator over a ternary.
|
|
6724
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6744
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-logical-operator-over-ternary.md
|
|
6725
6745
|
*/
|
|
6726
6746
|
'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
|
|
6727
6747
|
/**
|
|
6728
6748
|
* Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
|
|
6729
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6749
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-math-min-max.md
|
|
6730
6750
|
*/
|
|
6731
6751
|
'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
|
|
6732
6752
|
/**
|
|
6733
6753
|
* Enforce the use of `Math.trunc` instead of bitwise operators.
|
|
6734
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6754
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-math-trunc.md
|
|
6735
6755
|
*/
|
|
6736
6756
|
'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
|
|
6737
6757
|
/**
|
|
6738
6758
|
* Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
|
|
6739
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6759
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-modern-dom-apis.md
|
|
6740
6760
|
*/
|
|
6741
6761
|
'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
|
|
6742
6762
|
/**
|
|
6743
6763
|
* Prefer modern `Math` APIs over legacy patterns.
|
|
6744
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6764
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-modern-math-apis.md
|
|
6745
6765
|
*/
|
|
6746
6766
|
'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
|
|
6747
6767
|
/**
|
|
6748
6768
|
* Prefer JavaScript modules (ESM) over CommonJS.
|
|
6749
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6769
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-module.md
|
|
6750
6770
|
*/
|
|
6751
6771
|
'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
|
|
6752
6772
|
/**
|
|
6753
6773
|
* Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
|
|
6754
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6774
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-native-coercion-functions.md
|
|
6755
6775
|
*/
|
|
6756
6776
|
'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
|
|
6757
6777
|
/**
|
|
6758
6778
|
* Prefer negative index over `.length - index` when possible.
|
|
6759
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6779
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-negative-index.md
|
|
6760
6780
|
*/
|
|
6761
6781
|
'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
|
|
6762
6782
|
/**
|
|
6763
6783
|
* Prefer using the `node:` protocol when importing Node.js builtin modules.
|
|
6764
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6784
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-node-protocol.md
|
|
6765
6785
|
*/
|
|
6766
6786
|
'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
|
|
6767
6787
|
/**
|
|
6768
6788
|
* Prefer `Number` static properties over global ones.
|
|
6769
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6789
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-number-properties.md
|
|
6770
6790
|
*/
|
|
6771
6791
|
'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
|
|
6772
6792
|
/**
|
|
6773
6793
|
* Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
|
|
6774
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6794
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-object-from-entries.md
|
|
6775
6795
|
*/
|
|
6776
6796
|
'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
|
|
6777
6797
|
/**
|
|
6778
6798
|
* Prefer omitting the `catch` binding parameter.
|
|
6779
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6799
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-optional-catch-binding.md
|
|
6780
6800
|
*/
|
|
6781
6801
|
'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
|
|
6782
6802
|
/**
|
|
6783
6803
|
* Prefer borrowing methods from the prototype instead of the instance.
|
|
6784
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6804
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-prototype-methods.md
|
|
6785
6805
|
*/
|
|
6786
6806
|
'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
|
|
6787
6807
|
/**
|
|
6788
6808
|
* Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
|
|
6789
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6809
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-query-selector.md
|
|
6790
6810
|
*/
|
|
6791
6811
|
'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>;
|
|
6792
6812
|
/**
|
|
6793
6813
|
* Prefer `Reflect.apply()` over `Function#apply()`.
|
|
6794
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6814
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-reflect-apply.md
|
|
6795
6815
|
*/
|
|
6796
6816
|
'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
|
|
6797
6817
|
/**
|
|
6798
6818
|
* Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
|
|
6799
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6819
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-regexp-test.md
|
|
6800
6820
|
*/
|
|
6801
6821
|
'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
|
|
6822
|
+
/**
|
|
6823
|
+
* Prefer `Response.json()` over `new Response(JSON.stringify())`.
|
|
6824
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-response-static-json.md
|
|
6825
|
+
*/
|
|
6826
|
+
'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>;
|
|
6802
6827
|
/**
|
|
6803
6828
|
* Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
|
|
6804
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6829
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-set-has.md
|
|
6805
6830
|
*/
|
|
6806
6831
|
'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>;
|
|
6807
6832
|
/**
|
|
6808
6833
|
* Prefer using `Set#size` instead of `Array#length`.
|
|
6809
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6834
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-set-size.md
|
|
6810
6835
|
*/
|
|
6811
6836
|
'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
|
|
6812
6837
|
/**
|
|
6813
6838
|
* Enforce combining multiple `Array#push()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
|
|
6814
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6839
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-single-call.md
|
|
6815
6840
|
*/
|
|
6816
6841
|
'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
|
|
6817
6842
|
/**
|
|
6818
6843
|
* Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
|
|
6819
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6844
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-spread.md
|
|
6820
6845
|
*/
|
|
6821
6846
|
'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
|
|
6822
6847
|
/**
|
|
6823
6848
|
* Prefer using the `String.raw` tag to avoid escaping `\`.
|
|
6824
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6849
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-raw.md
|
|
6825
6850
|
*/
|
|
6826
6851
|
'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
|
|
6827
6852
|
/**
|
|
6828
6853
|
* Prefer `String#replaceAll()` over regex searches with the global flag.
|
|
6829
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6854
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-replace-all.md
|
|
6830
6855
|
*/
|
|
6831
6856
|
'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
|
|
6832
6857
|
/**
|
|
6833
6858
|
* Prefer `String#slice()` over `String#substr()` and `String#substring()`.
|
|
6834
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6859
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-slice.md
|
|
6835
6860
|
*/
|
|
6836
6861
|
'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
|
|
6837
6862
|
/**
|
|
6838
6863
|
* Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
|
|
6839
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6864
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-starts-ends-with.md
|
|
6840
6865
|
*/
|
|
6841
6866
|
'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
|
|
6842
6867
|
/**
|
|
6843
6868
|
* Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
|
|
6844
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6869
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-trim-start-end.md
|
|
6845
6870
|
*/
|
|
6846
6871
|
'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
|
|
6847
6872
|
/**
|
|
6848
6873
|
* Prefer using `structuredClone` to create a deep clone.
|
|
6849
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6874
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-structured-clone.md
|
|
6850
6875
|
*/
|
|
6851
6876
|
'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
|
|
6852
6877
|
/**
|
|
6853
6878
|
* Prefer `switch` over multiple `else-if`.
|
|
6854
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6879
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-switch.md
|
|
6855
6880
|
*/
|
|
6856
6881
|
'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
|
|
6857
6882
|
/**
|
|
6858
6883
|
* Prefer ternary expressions over simple `if-else` statements.
|
|
6859
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6884
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-ternary.md
|
|
6860
6885
|
*/
|
|
6861
6886
|
'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
|
|
6862
6887
|
/**
|
|
6863
6888
|
* Prefer top-level await over top-level promises and async function calls.
|
|
6864
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6889
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-top-level-await.md
|
|
6865
6890
|
*/
|
|
6866
6891
|
'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
|
|
6867
6892
|
/**
|
|
6868
6893
|
* Enforce throwing `TypeError` in type checking conditions.
|
|
6869
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6894
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-type-error.md
|
|
6870
6895
|
*/
|
|
6871
6896
|
'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
|
|
6872
6897
|
/**
|
|
6873
6898
|
* Prevent abbreviations.
|
|
6874
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6899
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prevent-abbreviations.md
|
|
6875
6900
|
*/
|
|
6876
6901
|
'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>;
|
|
6877
6902
|
/**
|
|
6878
6903
|
* Enforce consistent relative URL style.
|
|
6879
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6904
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/relative-url-style.md
|
|
6880
6905
|
*/
|
|
6881
6906
|
'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
|
|
6882
6907
|
/**
|
|
6883
6908
|
* Enforce using the separator argument with `Array#join()`.
|
|
6884
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6909
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-array-join-separator.md
|
|
6885
6910
|
*/
|
|
6886
6911
|
'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
|
|
6887
6912
|
/**
|
|
6888
6913
|
* Require non-empty module attributes for imports and exports
|
|
6889
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6914
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-module-attributes.md
|
|
6890
6915
|
*/
|
|
6891
6916
|
'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>;
|
|
6892
6917
|
/**
|
|
6893
6918
|
* Require non-empty specifier list in import and export statements.
|
|
6894
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6919
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-module-specifiers.md
|
|
6895
6920
|
*/
|
|
6896
6921
|
'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
|
|
6897
6922
|
/**
|
|
6898
6923
|
* Enforce using the digits argument with `Number#toFixed()`.
|
|
6899
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6924
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-number-to-fixed-digits-argument.md
|
|
6900
6925
|
*/
|
|
6901
6926
|
'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
|
|
6902
6927
|
/**
|
|
6903
6928
|
* Enforce using the `targetOrigin` argument with `window.postMessage()`.
|
|
6904
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6929
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-post-message-target-origin.md
|
|
6905
6930
|
*/
|
|
6906
6931
|
'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
|
|
6907
6932
|
/**
|
|
6908
6933
|
* Enforce better string content.
|
|
6909
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6934
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/string-content.md
|
|
6910
6935
|
*/
|
|
6911
6936
|
'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
|
|
6912
6937
|
/**
|
|
6913
6938
|
* Enforce consistent brace style for `case` clauses.
|
|
6914
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6939
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/switch-case-braces.md
|
|
6915
6940
|
*/
|
|
6916
6941
|
'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
|
|
6917
6942
|
/**
|
|
6918
6943
|
* Fix whitespace-insensitive template indentation.
|
|
6919
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6944
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/template-indent.md
|
|
6920
6945
|
*/
|
|
6921
6946
|
'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
|
|
6922
6947
|
/**
|
|
6923
6948
|
* Enforce consistent case for text encoding identifiers.
|
|
6924
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6949
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/text-encoding-identifier-case.md
|
|
6925
6950
|
*/
|
|
6926
|
-
'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<
|
|
6951
|
+
'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
|
|
6927
6952
|
/**
|
|
6928
6953
|
* Require `new` when creating an error.
|
|
6929
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6954
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/throw-new-error.md
|
|
6930
6955
|
*/
|
|
6931
6956
|
'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
|
|
6932
6957
|
/**
|
|
@@ -6949,16 +6974,6 @@ interface RuleOptions {
|
|
|
6949
6974
|
* @see https://unocss.dev/integrations/eslint#rules
|
|
6950
6975
|
*/
|
|
6951
6976
|
'unocss/order-attributify'?: Linter.RuleEntry<[]>;
|
|
6952
|
-
/**
|
|
6953
|
-
* Disallow unused variables
|
|
6954
|
-
* @see https://github.com/sweepline/eslint-plugin-unused-imports/blob/master/docs/rules/no-unused-imports.md
|
|
6955
|
-
*/
|
|
6956
|
-
'unused-imports/no-unused-imports'?: Linter.RuleEntry<UnusedImportsNoUnusedImports>;
|
|
6957
|
-
/**
|
|
6958
|
-
* Disallow unused variables
|
|
6959
|
-
* @see https://github.com/sweepline/eslint-plugin-unused-imports/blob/master/docs/rules/no-unused-vars.md
|
|
6960
|
-
*/
|
|
6961
|
-
'unused-imports/no-unused-vars'?: Linter.RuleEntry<UnusedImportsNoUnusedVars>;
|
|
6962
6977
|
/**
|
|
6963
6978
|
* Require calls to `isNaN()` when checking for `NaN`
|
|
6964
6979
|
* @see https://eslint.org/docs/latest/rules/use-isnan
|
|
@@ -7300,6 +7315,11 @@ interface RuleOptions {
|
|
|
7300
7315
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-vi-mocked.md
|
|
7301
7316
|
*/
|
|
7302
7317
|
'vitest/prefer-vi-mocked'?: Linter.RuleEntry<[]>;
|
|
7318
|
+
/**
|
|
7319
|
+
* ensure that every `expect.poll` call is awaited
|
|
7320
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-awaited-expect-poll.md
|
|
7321
|
+
*/
|
|
7322
|
+
'vitest/require-awaited-expect-poll'?: Linter.RuleEntry<[]>;
|
|
7303
7323
|
/**
|
|
7304
7324
|
* require setup and teardown to be within a hook
|
|
7305
7325
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-hook.md
|
|
@@ -9890,6 +9910,13 @@ type ArrowSpacing = [] | [{
|
|
|
9890
9910
|
before?: boolean;
|
|
9891
9911
|
after?: boolean;
|
|
9892
9912
|
}];
|
|
9913
|
+
// ----- astro/no-unsafe-inline-scripts -----
|
|
9914
|
+
type AstroNoUnsafeInlineScripts = [] | [{
|
|
9915
|
+
allowDefineVars?: boolean;
|
|
9916
|
+
allowModuleScripts?: boolean;
|
|
9917
|
+
allowNonExecutingTypes?: string[];
|
|
9918
|
+
allowNonce?: boolean;
|
|
9919
|
+
}];
|
|
9893
9920
|
// ----- astro/prefer-split-class-list -----
|
|
9894
9921
|
type AstroPreferSplitClassList = [] | [{
|
|
9895
9922
|
splitLiteral?: boolean;
|
|
@@ -10039,23 +10066,14 @@ type EslintPluginRequireMetaFixable = [] | [{
|
|
|
10039
10066
|
type EslintPluginRequireMetaSchema = [] | [{
|
|
10040
10067
|
requireSchemaPropertyWhenOptionless?: boolean;
|
|
10041
10068
|
}];
|
|
10069
|
+
// ----- eslint-plugin/require-test-case-name -----
|
|
10070
|
+
type EslintPluginRequireTestCaseName = [] | [{
|
|
10071
|
+
require?: ("always" | "objects" | "objects-with-config");
|
|
10072
|
+
}];
|
|
10042
10073
|
// ----- eslint-plugin/test-case-property-ordering -----
|
|
10043
10074
|
type EslintPluginTestCasePropertyOrdering = [] | [unknown[]];
|
|
10044
10075
|
// ----- eslint-plugin/test-case-shorthand-strings -----
|
|
10045
10076
|
type EslintPluginTestCaseShorthandStrings = [] | [("as-needed" | "never" | "consistent" | "consistent-as-needed")];
|
|
10046
|
-
// ----- format/dprint -----
|
|
10047
|
-
type FormatDprint = [] | [{
|
|
10048
|
-
language?: string;
|
|
10049
|
-
languageOptions?: {
|
|
10050
|
-
[k: string]: unknown | undefined;
|
|
10051
|
-
};
|
|
10052
|
-
[k: string]: unknown | undefined;
|
|
10053
|
-
}];
|
|
10054
|
-
// ----- format/prettier -----
|
|
10055
|
-
type FormatPrettier = [] | [{
|
|
10056
|
-
parser?: string;
|
|
10057
|
-
[k: string]: unknown | undefined;
|
|
10058
|
-
}];
|
|
10059
10077
|
// ----- func-call-spacing -----
|
|
10060
10078
|
type FuncCallSpacing = ([] | ["never"] | [] | ["always"] | ["always", {
|
|
10061
10079
|
allowNewlines?: boolean;
|
|
@@ -10959,6 +10977,9 @@ type JsdocSortTags = [] | [{
|
|
|
10959
10977
|
linesBetween?: number;
|
|
10960
10978
|
reportIntraTagGroupSpacing?: boolean;
|
|
10961
10979
|
reportTagGroupSpacing?: boolean;
|
|
10980
|
+
tagExceptions?: {
|
|
10981
|
+
[k: string]: number;
|
|
10982
|
+
};
|
|
10962
10983
|
tagSequence?: {
|
|
10963
10984
|
tags?: string[];
|
|
10964
10985
|
}[];
|
|
@@ -15722,6 +15743,10 @@ type UnicornTemplateIndent = [] | [{
|
|
|
15722
15743
|
selectors?: string[];
|
|
15723
15744
|
comments?: string[];
|
|
15724
15745
|
}];
|
|
15746
|
+
// ----- unicorn/text-encoding-identifier-case -----
|
|
15747
|
+
type UnicornTextEncodingIdentifierCase = [] | [{
|
|
15748
|
+
withDash?: boolean;
|
|
15749
|
+
}];
|
|
15725
15750
|
// ----- unocss/enforce-class-compile -----
|
|
15726
15751
|
type UnocssEnforceClassCompile = [] | [{
|
|
15727
15752
|
prefix?: string;
|
|
@@ -15732,34 +15757,6 @@ type UnocssOrder = [] | [{
|
|
|
15732
15757
|
unoFunctions?: string[];
|
|
15733
15758
|
unoVariables?: string[];
|
|
15734
15759
|
}];
|
|
15735
|
-
// ----- unused-imports/no-unused-imports -----
|
|
15736
|
-
type UnusedImportsNoUnusedImports = [] | [(("all" | "local") | {
|
|
15737
|
-
args?: ("all" | "after-used" | "none");
|
|
15738
|
-
argsIgnorePattern?: string;
|
|
15739
|
-
caughtErrors?: ("all" | "none");
|
|
15740
|
-
caughtErrorsIgnorePattern?: string;
|
|
15741
|
-
destructuredArrayIgnorePattern?: string;
|
|
15742
|
-
ignoreClassWithStaticInitBlock?: boolean;
|
|
15743
|
-
ignoreRestSiblings?: boolean;
|
|
15744
|
-
ignoreUsingDeclarations?: boolean;
|
|
15745
|
-
reportUsedIgnorePattern?: boolean;
|
|
15746
|
-
vars?: ("all" | "local");
|
|
15747
|
-
varsIgnorePattern?: string;
|
|
15748
|
-
})];
|
|
15749
|
-
// ----- unused-imports/no-unused-vars -----
|
|
15750
|
-
type UnusedImportsNoUnusedVars = [] | [(("all" | "local") | {
|
|
15751
|
-
args?: ("all" | "after-used" | "none");
|
|
15752
|
-
argsIgnorePattern?: string;
|
|
15753
|
-
caughtErrors?: ("all" | "none");
|
|
15754
|
-
caughtErrorsIgnorePattern?: string;
|
|
15755
|
-
destructuredArrayIgnorePattern?: string;
|
|
15756
|
-
ignoreClassWithStaticInitBlock?: boolean;
|
|
15757
|
-
ignoreRestSiblings?: boolean;
|
|
15758
|
-
ignoreUsingDeclarations?: boolean;
|
|
15759
|
-
reportUsedIgnorePattern?: boolean;
|
|
15760
|
-
vars?: ("all" | "local");
|
|
15761
|
-
varsIgnorePattern?: string;
|
|
15762
|
-
})];
|
|
15763
15760
|
// ----- use-isnan -----
|
|
15764
15761
|
type UseIsnan = [] | [{
|
|
15765
15762
|
enforceForSwitchCase?: boolean;
|
|
@@ -15802,7 +15799,7 @@ type VitestNoFocusedTests = [] | [{
|
|
|
15802
15799
|
}];
|
|
15803
15800
|
// ----- vitest/no-hooks -----
|
|
15804
15801
|
type VitestNoHooks = [] | [{
|
|
15805
|
-
allow?:
|
|
15802
|
+
allow?: ("beforeAll" | "beforeEach" | "afterAll" | "afterEach")[];
|
|
15806
15803
|
}];
|
|
15807
15804
|
// ----- vitest/no-large-snapshots -----
|
|
15808
15805
|
type VitestNoLargeSnapshots = [] | [{
|
|
@@ -17276,7 +17273,7 @@ type Yoda = [] | [("always" | "never")] | [("always" | "never"), {
|
|
|
17276
17273
|
onlyEquality?: boolean;
|
|
17277
17274
|
}];
|
|
17278
17275
|
// Names of all the configs
|
|
17279
|
-
type ConfigNames = 'ntnyq/
|
|
17276
|
+
type ConfigNames = 'ntnyq/gitignore' | 'ntnyq/ignores' | 'ntnyq/jsx' | 'ntnyq/node' | 'ntnyq/command' | 'ntnyq/eslint-comments' | 'ntnyq/js/recommended' | 'ntnyq/js/core' | 'ntnyq/import-x' | 'ntnyq/jsdoc' | 'ntnyq/perfectionist/common' | 'ntnyq/perfectionist/enums' | 'ntnyq/perfectionist/types' | 'ntnyq/perfectionist/constants' | 'ntnyq/unicorn' | 'ntnyq/pinia' | 'ntnyq/de-morgan' | 'ntnyq/regexp' | 'ntnyq/ts/setup' | 'ntnyq/ts/parser' | 'ntnyq/ts/parser-type-aware' | 'ntnyq/ts/rules' | 'ntnyq/ts/rules/type-aware' | 'ntnyq/ts/types' | 'ntnyq/vue/setup' | 'ntnyq/vue/rules' | 'ntnyq/yml' | 'ntnyq/toml' | 'ntnyq/jsonc' | 'ntnyq/astro' | 'ntnyq/svelte' | 'ntnyq/sort/tsconfig' | 'ntnyq/sort/package-json' | 'ntnyq/sort/i18n-locale/json' | 'ntnyq/sort/i18n-locale/yaml' | 'ntnyq/sort/json-schema' | 'ntnyq/sort/pnpm-workspace' | 'ntnyq/test/setup' | 'ntnyq/test/base' | 'ntnyq/test/vitest' | 'ntnyq/unocss' | 'ntnyq/markdown/recommended/plugin' | 'ntnyq/markdown/recommended/processor' | 'ntnyq/markdown/recommended/code-blocks' | 'ntnyq/markdown/processor' | 'ntnyq/markdown/parser' | 'ntnyq/markdown/disabled' | 'ntnyq/antfu' | 'ntnyq/depend' | 'ntnyq/depend/package-json' | 'ntnyq/ntnyq' | 'ntnyq/github-action' | 'ntnyq/eslint-plugin' | 'ntnyq/pnpm/package-json' | 'ntnyq/pnpm/pnpm-workspace-yaml' | 'ntnyq/svgo' | 'ntnyq/html' | 'ntnyq/specials/scripts' | 'ntnyq/specials/cli' | 'ntnyq/specials/bin' | 'ntnyq/specials/userscript' | 'ntnyq/specials/config-file' | 'ntnyq/specials/shadcn-vue' | 'ntnyq/prettier' | 'ntnyq/prettier/disabled';
|
|
17280
17277
|
//#endregion
|
|
17281
17278
|
//#region src/types/eslint.d.ts
|
|
17282
17279
|
/**
|
|
@@ -17491,9 +17488,6 @@ declare const hasVue: ExistChecker;
|
|
|
17491
17488
|
//#region src/utils/getOverrides.d.ts
|
|
17492
17489
|
declare function getOverrides<K extends keyof ConfigOptions>(options: ConfigOptions, key: K): Partial<TypedConfigItem['rules'] & RuleOptions>;
|
|
17493
17490
|
//#endregion
|
|
17494
|
-
//#region src/utils/combineConfigs.d.ts
|
|
17495
|
-
declare function combineConfigs(...configs: Awaitable<TypedConfigItem | TypedConfigItem[]>[]): Promise<TypedConfigItem[]>;
|
|
17496
|
-
//#endregion
|
|
17497
17491
|
//#region src/utils/ensurePackages.d.ts
|
|
17498
17492
|
/**
|
|
17499
17493
|
* @copyright {@link https://github.com/antfu/eslint-config}
|
|
@@ -17555,4 +17549,4 @@ declare const PERFECTIONIST: Readonly<{
|
|
|
17555
17549
|
sortObjectsGroups: string[];
|
|
17556
17550
|
}>;
|
|
17557
17551
|
//#endregion
|
|
17558
|
-
export { Arrayable, Awaitable, ConfigAntfuOptions, ConfigAstroOptions, ConfigCommandOptions, ConfigDeMorganOptions, ConfigDependOptions, ConfigESLintCommentsOptions, ConfigESLintPluginOptions, ConfigFormatOptions, ConfigGitHubActionOptions, ConfigGitIgnoreOptions, ConfigHtmlOptions, ConfigIgnoresOptions, ConfigImportXOptions, ConfigJavaScriptOptions, ConfigJsdocOptions, ConfigJsoncOptions, ConfigMarkdownOptions, ConfigNames, ConfigNodeOptions, ConfigNtnyqOptions, ConfigOptions, ConfigOptionsInternal, ConfigPerfectionistOptions, ConfigPiniaOptions, ConfigPnpmOptions, ConfigPrettierOptions, ConfigRegexpOptions, ConfigSVGOOptions, ConfigSortOptions, ConfigSpecialsOptions, ConfigSvelteOptions, ConfigTestOptions, ConfigTomlOptions, ConfigTypeScriptOptions, ConfigUnicornOptions, ConfigUnoCSSOptions, ConfigUnusedImportsOptions, ConfigVueOptions, ConfigYmlOptions, ESLintConfig, ESLintParser, ESLintParserOptions, ESLintProcessor, ESLintRuleSeverity, ESLintRulesRecord, GLOB_ALL_SRC, GLOB_ASTRO, GLOB_ASTRO_TS, GLOB_CSS, GLOB_DIST, GLOB_DTS, GLOB_EXCLUDE, GLOB_GITHUB_ACTION, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSON_SCHEMA, GLOB_JSX, GLOB_JSX_ONLY, GLOB_LESS, GLOB_LOCKFILE, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_NESTED, GLOB_NODE_MODULES, GLOB_PACKAGE_JSON, GLOB_PINIA_STORE, GLOB_PNPM_WORKSPACE_YAML, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_SVELTE, GLOB_SVG, GLOB_TEST, GLOB_TOML, GLOB_TS, GLOB_TSCONFIG_JSON, GLOB_TSX, GLOB_TSX_ONLY, GLOB_TYPES, GLOB_TYPE_TEST, GLOB_VUE, GLOB_YAML, InteropModuleDefault, OptionsFiles, OptionsIgnores, OptionsOverrides, OptionsShareable, PERFECTIONIST, PRETTIER_DEFAULT_OPTIONS, PerfectionistPartitionByComment, PrettierOptions, Pretty, ResolvedOptions, RuleOptions, TSESLintParserOptions, TypedConfigItem,
|
|
17552
|
+
export { Arrayable, Awaitable, ConfigAntfuOptions, ConfigAstroOptions, ConfigCommandOptions, ConfigDeMorganOptions, ConfigDependOptions, ConfigESLintCommentsOptions, ConfigESLintPluginOptions, ConfigFormatOptions, ConfigGitHubActionOptions, ConfigGitIgnoreOptions, ConfigHtmlOptions, ConfigIgnoresOptions, ConfigImportXOptions, ConfigJavaScriptOptions, ConfigJsdocOptions, ConfigJsoncOptions, ConfigMarkdownOptions, ConfigNames, ConfigNodeOptions, ConfigNtnyqOptions, ConfigOptions, ConfigOptionsInternal, ConfigPerfectionistOptions, ConfigPiniaOptions, ConfigPnpmOptions, ConfigPrettierOptions, ConfigRegexpOptions, ConfigSVGOOptions, ConfigSortOptions, ConfigSpecialsOptions, ConfigSvelteOptions, ConfigTestOptions, ConfigTomlOptions, ConfigTypeScriptOptions, ConfigUnicornOptions, ConfigUnoCSSOptions, ConfigUnusedImportsOptions, ConfigVueOptions, ConfigYmlOptions, ESLintConfig, ESLintParser, ESLintParserOptions, ESLintProcessor, ESLintRuleSeverity, ESLintRulesRecord, GLOB_ALL_SRC, GLOB_ASTRO, GLOB_ASTRO_TS, GLOB_CSS, GLOB_DIST, GLOB_DTS, GLOB_EXCLUDE, GLOB_GITHUB_ACTION, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSON_SCHEMA, GLOB_JSX, GLOB_JSX_ONLY, GLOB_LESS, GLOB_LOCKFILE, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_NESTED, GLOB_NODE_MODULES, GLOB_PACKAGE_JSON, GLOB_PINIA_STORE, GLOB_PNPM_WORKSPACE_YAML, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_SVELTE, GLOB_SVG, GLOB_TEST, GLOB_TOML, GLOB_TS, GLOB_TSCONFIG_JSON, GLOB_TSX, GLOB_TSX_ONLY, GLOB_TYPES, GLOB_TYPE_TEST, GLOB_VUE, GLOB_YAML, InteropModuleDefault, OptionsFiles, OptionsIgnores, OptionsOverrides, OptionsShareable, PERFECTIONIST, PRETTIER_DEFAULT_OPTIONS, PerfectionistPartitionByComment, PrettierOptions, Pretty, ResolvedOptions, RuleOptions, TSESLintParserOptions, TypedConfigItem, configAntfu, configAstro, configCommand, configDeMorgan, configDepend, configESLintComments, configESLintPlugin, configFormat, configGitHubAction, configGitIgnore, configHtml, configIgnores, configImportX, configJSX, configJavaScript, configJsdoc, configJsonc, configMarkdown, configNode, configNtnyq, configPerfectionist, configPinia, configPnpm, configPrettier, configRegexp, configSVGO, configSort, configSpecials, configSvelte, configTest, configToml, configTypeScript, configUnicorn, configUnoCSS, configUnusedImports, configVue, configYml, configsTypeScript, defineESLintConfig, ensurePackages, getOverrides, hasPinia, hasShadcnVue, hasTypeScript, hasUnoCSS, hasVitest, hasVue, interopDefault, isInGitHooksOrRunBySpecifyPackages, mergePrettierOptions, mergeProcessors, parserJsonc, parserPlain, parserToml, parserTypeScript, parserVue, parserYaml, pluginAntfu, pluginComments, pluginDeMorgan, pluginDepend, pluginGitHubAction, pluginImportX, pluginJsdoc, pluginJsonc, pluginMarkdown, pluginNoOnlyTests, pluginNode, pluginNtnyq, pluginPerfectionist, pluginPinia, pluginPrettier, pluginRegexp, pluginSvgo, pluginToml, pluginTypeScript, pluginUnicorn, pluginUnoCSS, pluginVitest, pluginVue, pluginYml, processorPassThrough, processorVueBlocks, resolveSubOptions };
|