@kitschpatrol/eslint-config 8.10.0 → 8.11.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/bin/cli.js +1 -1
- package/dist/index.d.ts +616 -407
- package/dist/index.js +1 -1
- package/package.json +14 -14
- package/readme.md +2 -6
package/dist/index.d.ts
CHANGED
|
@@ -1632,7 +1632,7 @@ interface RuleOptions {
|
|
|
1632
1632
|
*
|
|
1633
1633
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/check-syntax.md#repos-sticky-header
|
|
1634
1634
|
*/
|
|
1635
|
-
'jsdoc/check-syntax'?: Linter.RuleEntry<
|
|
1635
|
+
'jsdoc/check-syntax'?: Linter.RuleEntry<JsdocCheckSyntax>;
|
|
1636
1636
|
/**
|
|
1637
1637
|
* Reports invalid block tag names.
|
|
1638
1638
|
*
|
|
@@ -2317,6 +2317,13 @@ interface RuleOptions {
|
|
|
2317
2317
|
* @see https://eslint-plugin-package-json.dev/rules/require-properties/require-os
|
|
2318
2318
|
*/
|
|
2319
2319
|
'json-package/require-os'?: Linter.RuleEntry<JsonPackageRequireOs>;
|
|
2320
|
+
/**
|
|
2321
|
+
* Ensures that if a package specifies `exports` (or `publishConfig.exports`),
|
|
2322
|
+
* an explicit `package.json` export is included.
|
|
2323
|
+
*
|
|
2324
|
+
* @see https://eslint-plugin-package-json.dev/rules/require-package-json-export
|
|
2325
|
+
*/
|
|
2326
|
+
'json-package/require-package-json-export'?: Linter.RuleEntry<[]>;
|
|
2320
2327
|
/**
|
|
2321
2328
|
* Requires the `packageManager` property to be present.
|
|
2322
2329
|
*
|
|
@@ -8947,6 +8954,12 @@ interface RuleOptions {
|
|
|
8947
8954
|
* @see https://typescript-eslint.io/rules/no-unsafe-declaration-merging
|
|
8948
8955
|
*/
|
|
8949
8956
|
'ts/no-unsafe-declaration-merging'?: Linter.RuleEntry<[]>;
|
|
8957
|
+
/**
|
|
8958
|
+
* Disallow assigning non-enum values to enum typed locations
|
|
8959
|
+
*
|
|
8960
|
+
* @see https://typescript-eslint.io/rules/no-unsafe-enum-assignment
|
|
8961
|
+
*/
|
|
8962
|
+
'ts/no-unsafe-enum-assignment'?: Linter.RuleEntry<[]>;
|
|
8950
8963
|
/**
|
|
8951
8964
|
* Disallow comparing an enum value with a non-enum value
|
|
8952
8965
|
*
|
|
@@ -9295,2283 +9308,2465 @@ interface RuleOptions {
|
|
|
9295
9308
|
/**
|
|
9296
9309
|
* Prefer better DOM traversal APIs.
|
|
9297
9310
|
*
|
|
9298
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9311
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/better-dom-traversing.md
|
|
9299
9312
|
*/
|
|
9300
9313
|
'unicorn/better-dom-traversing'?: Linter.RuleEntry<[]>;
|
|
9301
9314
|
/**
|
|
9302
9315
|
* Removed. Prefer `eslint-plugin-regexp`
|
|
9303
9316
|
*
|
|
9304
9317
|
* @deprecated
|
|
9305
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9318
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#better-regex
|
|
9306
9319
|
*/
|
|
9307
9320
|
'unicorn/better-regex'?: Linter.RuleEntry<[]>;
|
|
9308
9321
|
/**
|
|
9309
9322
|
* Enforce a specific parameter name in catch clauses.
|
|
9310
9323
|
*
|
|
9311
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9324
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/catch-error-name.md
|
|
9312
9325
|
*/
|
|
9313
9326
|
'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
|
|
9314
9327
|
/**
|
|
9315
9328
|
* Enforce consistent class references in static methods.
|
|
9316
9329
|
*
|
|
9317
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9330
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/class-reference-in-static-methods.md
|
|
9318
9331
|
*/
|
|
9319
9332
|
'unicorn/class-reference-in-static-methods'?: Linter.RuleEntry<UnicornClassReferenceInStaticMethods>;
|
|
9333
|
+
/**
|
|
9334
|
+
* Enforce consistent spacing before and after commas in JSON.
|
|
9335
|
+
*
|
|
9336
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/comma-spacing.md
|
|
9337
|
+
*/
|
|
9338
|
+
'unicorn/comma-spacing'?: Linter.RuleEntry<[]>;
|
|
9320
9339
|
/**
|
|
9321
9340
|
* Enforce better comment content.
|
|
9322
9341
|
*
|
|
9323
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9342
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/comment-content.md
|
|
9324
9343
|
*/
|
|
9325
9344
|
'unicorn/comment-content'?: Linter.RuleEntry<UnicornCommentContent>;
|
|
9326
9345
|
/**
|
|
9327
9346
|
* Enforce a consistent return style for multiline arrow function bodies.
|
|
9328
9347
|
*
|
|
9329
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9348
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-arrow-return-style.md
|
|
9330
9349
|
*/
|
|
9331
9350
|
'unicorn/consistent-arrow-return-style'?: Linter.RuleEntry<[]>;
|
|
9332
9351
|
/**
|
|
9333
9352
|
* Enforce consistent assertion style with `node:assert`.
|
|
9334
9353
|
*
|
|
9335
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9354
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-assert.md
|
|
9336
9355
|
*/
|
|
9337
9356
|
'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
|
|
9338
9357
|
/**
|
|
9339
9358
|
* Enforce consistent naming for boolean names.
|
|
9340
9359
|
*
|
|
9341
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9360
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-boolean-name.md
|
|
9342
9361
|
*/
|
|
9343
9362
|
'unicorn/consistent-boolean-name'?: Linter.RuleEntry<UnicornConsistentBooleanName>;
|
|
9344
9363
|
/**
|
|
9345
9364
|
* Enforce consistent class member order.
|
|
9346
9365
|
*
|
|
9347
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9366
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-class-member-order.md
|
|
9348
9367
|
*/
|
|
9349
9368
|
'unicorn/consistent-class-member-order'?: Linter.RuleEntry<UnicornConsistentClassMemberOrder>;
|
|
9350
9369
|
/**
|
|
9351
9370
|
* Enforce consistent spelling of compound words in identifiers.
|
|
9352
9371
|
*
|
|
9353
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9372
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-compound-words.md
|
|
9354
9373
|
*/
|
|
9355
9374
|
'unicorn/consistent-compound-words'?: Linter.RuleEntry<UnicornConsistentCompoundWords>;
|
|
9356
9375
|
/**
|
|
9357
9376
|
* Enforce consistent conditional object spread style.
|
|
9358
9377
|
*
|
|
9359
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9378
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-conditional-object-spread.md
|
|
9360
9379
|
*/
|
|
9361
9380
|
'unicorn/consistent-conditional-object-spread'?: Linter.RuleEntry<UnicornConsistentConditionalObjectSpread>;
|
|
9362
9381
|
/**
|
|
9363
9382
|
* Prefer passing `Date` directly to the constructor when cloning.
|
|
9364
9383
|
*
|
|
9365
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9384
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-date-clone.md
|
|
9366
9385
|
*/
|
|
9367
9386
|
'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
|
|
9368
9387
|
/**
|
|
9369
9388
|
* Use destructured variables over properties.
|
|
9370
9389
|
*
|
|
9371
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9390
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-destructuring.md
|
|
9372
9391
|
*/
|
|
9373
9392
|
'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
|
|
9374
9393
|
/**
|
|
9375
9394
|
* Prefer consistent types when spreading a ternary in an array literal.
|
|
9376
9395
|
*
|
|
9377
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9396
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-empty-array-spread.md
|
|
9378
9397
|
*/
|
|
9379
9398
|
'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
|
|
9380
9399
|
/**
|
|
9381
9400
|
* Enforce consistent style for element existence checks with `indexOf()`,
|
|
9382
9401
|
* `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
|
|
9383
9402
|
*
|
|
9384
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9403
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-existence-index-check.md
|
|
9385
9404
|
*/
|
|
9386
9405
|
'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
|
|
9387
9406
|
/**
|
|
9388
9407
|
* Enforce consistent decorator position on exported classes.
|
|
9389
9408
|
*
|
|
9390
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9409
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-export-decorator-position.md
|
|
9391
9410
|
*/
|
|
9392
9411
|
'unicorn/consistent-export-decorator-position'?: Linter.RuleEntry<UnicornConsistentExportDecoratorPosition>;
|
|
9393
9412
|
/**
|
|
9394
9413
|
* Move function definitions to the highest possible scope.
|
|
9395
9414
|
*
|
|
9396
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9415
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-function-scoping.md
|
|
9397
9416
|
*/
|
|
9398
9417
|
'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
|
|
9399
9418
|
/**
|
|
9400
9419
|
* Enforce function syntax by role.
|
|
9401
9420
|
*
|
|
9402
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9421
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-function-style.md
|
|
9403
9422
|
*/
|
|
9404
9423
|
'unicorn/consistent-function-style'?: Linter.RuleEntry<UnicornConsistentFunctionStyle>;
|
|
9405
9424
|
/**
|
|
9406
9425
|
* Enforce consistent JSON file reads before `JSON.parse()`.
|
|
9407
9426
|
*
|
|
9408
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9427
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-json-file-read.md
|
|
9409
9428
|
*/
|
|
9410
9429
|
'unicorn/consistent-json-file-read'?: Linter.RuleEntry<UnicornConsistentJsonFileRead>;
|
|
9411
9430
|
/**
|
|
9412
9431
|
* Enforce consistent optional chaining for same-base member access.
|
|
9413
9432
|
*
|
|
9414
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9433
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-optional-chaining.md
|
|
9415
9434
|
*/
|
|
9416
9435
|
'unicorn/consistent-optional-chaining'?: Linter.RuleEntry<[]>;
|
|
9417
9436
|
/**
|
|
9418
9437
|
* Enforce consistent style for escaping `${` in template literals.
|
|
9419
9438
|
*
|
|
9420
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9439
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-template-literal-escape.md
|
|
9421
9440
|
*/
|
|
9422
9441
|
'unicorn/consistent-template-literal-escape'?: Linter.RuleEntry<[]>;
|
|
9423
9442
|
/**
|
|
9424
9443
|
* Enforce consistent labels on tuple type elements.
|
|
9425
9444
|
*
|
|
9426
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9445
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-tuple-labels.md
|
|
9427
9446
|
*/
|
|
9428
9447
|
'unicorn/consistent-tuple-labels'?: Linter.RuleEntry<[]>;
|
|
9429
9448
|
/**
|
|
9430
9449
|
* Enforce correct `Error` subclassing.
|
|
9431
9450
|
*
|
|
9432
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9451
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/custom-error-definition.md
|
|
9433
9452
|
*/
|
|
9434
9453
|
'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
|
|
9435
9454
|
/**
|
|
9436
9455
|
* Enforce consistent default export declarations.
|
|
9437
9456
|
*
|
|
9438
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9457
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/default-export-style.md
|
|
9439
9458
|
*/
|
|
9440
9459
|
'unicorn/default-export-style'?: Linter.RuleEntry<UnicornDefaultExportStyle>;
|
|
9441
9460
|
/**
|
|
9442
9461
|
* Enforce consistent style for DOM element dataset access.
|
|
9443
9462
|
*
|
|
9444
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9463
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/dom-node-dataset.md
|
|
9445
9464
|
*/
|
|
9446
9465
|
'unicorn/dom-node-dataset'?: Linter.RuleEntry<UnicornDomNodeDataset>;
|
|
9447
9466
|
/**
|
|
9448
9467
|
* Enforce no spaces between braces.
|
|
9449
9468
|
*
|
|
9450
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9469
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/empty-brace-spaces.md
|
|
9451
9470
|
*/
|
|
9452
9471
|
'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
|
|
9453
9472
|
/**
|
|
9454
9473
|
* Enforce passing a `message` value when creating a built-in error.
|
|
9455
9474
|
*
|
|
9456
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9475
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/error-message.md
|
|
9457
9476
|
*/
|
|
9458
9477
|
'unicorn/error-message'?: Linter.RuleEntry<[]>;
|
|
9459
9478
|
/**
|
|
9460
9479
|
* Require escape sequences to use uppercase or lowercase values.
|
|
9461
9480
|
*
|
|
9462
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9481
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/escape-case.md
|
|
9463
9482
|
*/
|
|
9464
9483
|
'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
|
|
9465
9484
|
/**
|
|
9466
9485
|
* Add expiration conditions to TODO comments.
|
|
9467
9486
|
*
|
|
9468
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9487
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/expiring-todo-comments.md
|
|
9469
9488
|
*/
|
|
9470
9489
|
'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
|
|
9471
9490
|
/**
|
|
9472
9491
|
* Enforce explicitly comparing the `length` or `size` property of a value.
|
|
9473
9492
|
*
|
|
9474
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9493
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/explicit-length-check.md
|
|
9475
9494
|
*/
|
|
9476
9495
|
'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
|
|
9477
9496
|
/**
|
|
9478
9497
|
* Enforce or disallow explicit `delay` argument for `setTimeout()` and
|
|
9479
9498
|
* `setInterval()`.
|
|
9480
9499
|
*
|
|
9481
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9500
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/explicit-timer-delay.md
|
|
9482
9501
|
*/
|
|
9483
9502
|
'unicorn/explicit-timer-delay'?: Linter.RuleEntry<UnicornExplicitTimerDelay>;
|
|
9484
9503
|
/**
|
|
9485
9504
|
* Enforce a case style for filenames and directory names.
|
|
9486
9505
|
*
|
|
9487
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9506
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/filename-case.md
|
|
9488
9507
|
*/
|
|
9489
9508
|
'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
|
|
9490
9509
|
/**
|
|
9491
9510
|
* Require identifiers to match a specified regular expression.
|
|
9492
9511
|
*
|
|
9493
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9512
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/id-match.md
|
|
9494
9513
|
*/
|
|
9495
9514
|
'unicorn/id-match'?: Linter.RuleEntry<UnicornIdMatch>;
|
|
9496
9515
|
/**
|
|
9497
9516
|
* Enforce specific import styles per module.
|
|
9498
9517
|
*
|
|
9499
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9518
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/import-style.md
|
|
9500
9519
|
*/
|
|
9501
9520
|
'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
|
|
9521
|
+
/**
|
|
9522
|
+
* Enforce consistent indentation in JSON and CSS.
|
|
9523
|
+
*
|
|
9524
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/indent.md
|
|
9525
|
+
*/
|
|
9526
|
+
'unicorn/indent'?: Linter.RuleEntry<UnicornIndent>;
|
|
9502
9527
|
/**
|
|
9503
9528
|
* Prevent usage of variables from outside the scope of isolated functions.
|
|
9504
9529
|
*
|
|
9505
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9530
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/isolated-functions.md
|
|
9506
9531
|
*/
|
|
9507
9532
|
'unicorn/isolated-functions'?: Linter.RuleEntry<UnicornIsolatedFunctions>;
|
|
9508
9533
|
/**
|
|
9509
9534
|
* Enforce a consistent style for optional loop sources.
|
|
9510
9535
|
*
|
|
9511
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9536
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/iteration-fallback-style.md
|
|
9512
9537
|
*/
|
|
9513
9538
|
'unicorn/iteration-fallback-style'?: Linter.RuleEntry<UnicornIterationFallbackStyle>;
|
|
9539
|
+
/**
|
|
9540
|
+
* Enforce a case style for data keys.
|
|
9541
|
+
*
|
|
9542
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/key-name-casing.md
|
|
9543
|
+
*/
|
|
9544
|
+
'unicorn/key-name-casing'?: Linter.RuleEntry<UnicornKeyNameCasing>;
|
|
9514
9545
|
/**
|
|
9515
9546
|
* Require or disallow logical assignment operator shorthand
|
|
9516
9547
|
*
|
|
9517
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9548
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/logical-assignment-operators.md
|
|
9518
9549
|
*/
|
|
9519
9550
|
'unicorn/logical-assignment-operators'?: Linter.RuleEntry<UnicornLogicalAssignmentOperators>;
|
|
9520
9551
|
/**
|
|
9521
9552
|
* Limit the depth of nested calls.
|
|
9522
9553
|
*
|
|
9523
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9554
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/max-nested-calls.md
|
|
9524
9555
|
*/
|
|
9525
9556
|
'unicorn/max-nested-calls'?: Linter.RuleEntry<UnicornMaxNestedCalls>;
|
|
9526
9557
|
/**
|
|
9527
9558
|
* Enforce replacements for variable, property, and filenames.
|
|
9528
9559
|
*
|
|
9529
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9560
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/name-replacements.md
|
|
9530
9561
|
*/
|
|
9531
9562
|
'unicorn/name-replacements'?: Linter.RuleEntry<UnicornNameReplacements>;
|
|
9532
9563
|
/**
|
|
9533
9564
|
* Enforce correct use of `new` for builtin constructors.
|
|
9534
9565
|
*
|
|
9535
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9566
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/new-for-builtins.md
|
|
9536
9567
|
*/
|
|
9537
9568
|
'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
|
|
9538
9569
|
/**
|
|
9539
9570
|
* Enforce specifying rules to disable in `eslint-disable` comments.
|
|
9540
9571
|
*
|
|
9541
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9572
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-abusive-eslint-disable.md
|
|
9542
9573
|
*/
|
|
9543
9574
|
'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
|
|
9544
9575
|
/**
|
|
9545
9576
|
* Disallow recursive access to `this` within getters and setters.
|
|
9546
9577
|
*
|
|
9547
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9578
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-accessor-recursion.md
|
|
9548
9579
|
*/
|
|
9549
9580
|
'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
|
|
9550
9581
|
/**
|
|
9551
9582
|
* Disallow bitwise operators where a logical operator was likely intended.
|
|
9552
9583
|
*
|
|
9553
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9584
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-accidental-bitwise-operator.md
|
|
9554
9585
|
*/
|
|
9555
9586
|
'unicorn/no-accidental-bitwise-operator'?: Linter.RuleEntry<[]>;
|
|
9556
9587
|
/**
|
|
9557
9588
|
* Disallow anonymous functions and classes as the default export.
|
|
9558
9589
|
*
|
|
9559
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9590
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-anonymous-default-export.md
|
|
9560
9591
|
*/
|
|
9561
9592
|
'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
|
|
9562
9593
|
/**
|
|
9563
9594
|
* Prevent passing a function reference directly to iterator methods.
|
|
9564
9595
|
*
|
|
9565
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9596
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-callback-reference.md
|
|
9566
9597
|
*/
|
|
9567
9598
|
'unicorn/no-array-callback-reference'?: Linter.RuleEntry<UnicornNoArrayCallbackReference>;
|
|
9568
9599
|
/**
|
|
9569
9600
|
* Disallow array accumulation with `Array#concat()` in loops.
|
|
9570
9601
|
*
|
|
9571
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9602
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-concat-in-loop.md
|
|
9572
9603
|
*/
|
|
9573
9604
|
'unicorn/no-array-concat-in-loop'?: Linter.RuleEntry<[]>;
|
|
9574
9605
|
/**
|
|
9575
9606
|
* Disallow using reference values as `Array#fill()` values.
|
|
9576
9607
|
*
|
|
9577
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9608
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-fill-with-reference-type.md
|
|
9578
9609
|
*/
|
|
9579
9610
|
'unicorn/no-array-fill-with-reference-type'?: Linter.RuleEntry<[]>;
|
|
9580
9611
|
/**
|
|
9581
9612
|
* Disallow `.fill()` after `Array.from({length: …})`.
|
|
9582
9613
|
*
|
|
9583
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9614
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-from-fill.md
|
|
9584
9615
|
*/
|
|
9585
9616
|
'unicorn/no-array-from-fill'?: Linter.RuleEntry<[]>;
|
|
9586
9617
|
/**
|
|
9587
9618
|
* Disallow front-of-array mutation.
|
|
9588
9619
|
*
|
|
9589
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9620
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-front-mutation.md
|
|
9590
9621
|
*/
|
|
9591
9622
|
'unicorn/no-array-front-mutation'?: Linter.RuleEntry<[]>;
|
|
9592
9623
|
/**
|
|
9593
9624
|
* Disallow using the `this` argument in array methods.
|
|
9594
9625
|
*
|
|
9595
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9626
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-method-this-argument.md
|
|
9596
9627
|
*/
|
|
9597
9628
|
'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
|
|
9598
9629
|
/**
|
|
9599
9630
|
* Replaced by `unicorn/prefer-single-call` which covers more cases.
|
|
9600
9631
|
*
|
|
9601
9632
|
* @deprecated
|
|
9602
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9633
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
|
|
9603
9634
|
*/
|
|
9604
9635
|
'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
|
|
9605
9636
|
/**
|
|
9606
9637
|
* Disallow `Array#reduce()` and `Array#reduceRight()`.
|
|
9607
9638
|
*
|
|
9608
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9639
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-reduce.md
|
|
9609
9640
|
*/
|
|
9610
9641
|
'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
|
|
9611
9642
|
/**
|
|
9612
9643
|
* Prefer `Array#toReversed()` over `Array#reverse()`.
|
|
9613
9644
|
*
|
|
9614
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9645
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-reverse.md
|
|
9615
9646
|
*/
|
|
9616
9647
|
'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
|
|
9617
9648
|
/**
|
|
9618
9649
|
* Prefer `Array#toSorted()` over `Array#sort()`.
|
|
9619
9650
|
*
|
|
9620
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9651
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-sort.md
|
|
9621
9652
|
*/
|
|
9622
9653
|
'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>;
|
|
9623
9654
|
/**
|
|
9624
9655
|
* Disallow sorting arrays to get the minimum or maximum value.
|
|
9625
9656
|
*
|
|
9626
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9657
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-sort-for-min-max.md
|
|
9627
9658
|
*/
|
|
9628
9659
|
'unicorn/no-array-sort-for-min-max'?: Linter.RuleEntry<[]>;
|
|
9629
9660
|
/**
|
|
9630
9661
|
* Prefer `Array#toSpliced()` over `Array#splice()`.
|
|
9631
9662
|
*
|
|
9632
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9663
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-splice.md
|
|
9633
9664
|
*/
|
|
9634
9665
|
'unicorn/no-array-splice'?: Linter.RuleEntry<[]>;
|
|
9635
9666
|
/**
|
|
9636
|
-
* Disallow asterisk prefixes in
|
|
9667
|
+
* Disallow asterisk prefixes in multiline comments.
|
|
9637
9668
|
*
|
|
9638
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9669
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
|
|
9639
9670
|
*/
|
|
9640
9671
|
'unicorn/no-asterisk-prefix-in-documentation-comments'?: Linter.RuleEntry<[]>;
|
|
9641
9672
|
/**
|
|
9642
9673
|
* Disallow asynchronous callbacks in synchronous iterator helpers.
|
|
9643
9674
|
*
|
|
9644
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9675
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-async-iterator-callback.md
|
|
9645
9676
|
*/
|
|
9646
9677
|
'unicorn/no-async-iterator-callback'?: Linter.RuleEntry<[]>;
|
|
9647
9678
|
/**
|
|
9648
9679
|
* Disallow async functions as `Promise#finally()` callbacks.
|
|
9649
9680
|
*
|
|
9650
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9681
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-async-promise-finally.md
|
|
9651
9682
|
*/
|
|
9652
9683
|
'unicorn/no-async-promise-finally'?: Linter.RuleEntry<[]>;
|
|
9653
9684
|
/**
|
|
9654
9685
|
* Disallow member access from await expression.
|
|
9655
9686
|
*
|
|
9656
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9687
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-await-expression-member.md
|
|
9657
9688
|
*/
|
|
9658
9689
|
'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
|
|
9659
9690
|
/**
|
|
9660
9691
|
* Disallow using `await` in `Promise` method parameters.
|
|
9661
9692
|
*
|
|
9662
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9693
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-await-in-promise-methods.md
|
|
9663
9694
|
*/
|
|
9664
9695
|
'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
|
|
9665
9696
|
/**
|
|
9666
9697
|
* Disallow barrel files.
|
|
9667
9698
|
*
|
|
9668
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9699
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-barrel-files.md
|
|
9669
9700
|
*/
|
|
9670
9701
|
'unicorn/no-barrel-files'?: Linter.RuleEntry<[]>;
|
|
9671
9702
|
/**
|
|
9672
9703
|
* Disallow unnecessary `Blob` to `File` conversion.
|
|
9673
9704
|
*
|
|
9674
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9705
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-blob-to-file.md
|
|
9675
9706
|
*/
|
|
9676
9707
|
'unicorn/no-blob-to-file'?: Linter.RuleEntry<[]>;
|
|
9677
9708
|
/**
|
|
9678
9709
|
* Disallow boolean-returning sort comparators.
|
|
9679
9710
|
*
|
|
9680
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9711
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-boolean-sort-comparator.md
|
|
9681
9712
|
*/
|
|
9682
9713
|
'unicorn/no-boolean-sort-comparator'?: Linter.RuleEntry<[]>;
|
|
9683
9714
|
/**
|
|
9684
9715
|
* Disallow `break` and optionally `continue` in nested loops and switches
|
|
9685
9716
|
* inside loops.
|
|
9686
9717
|
*
|
|
9687
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9718
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-break-in-nested-loop.md
|
|
9688
9719
|
*/
|
|
9689
9720
|
'unicorn/no-break-in-nested-loop'?: Linter.RuleEntry<UnicornNoBreakInNestedLoop>;
|
|
9690
9721
|
/**
|
|
9691
9722
|
* Prefer drawing canvases directly instead of converting them to images.
|
|
9692
9723
|
*
|
|
9693
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9724
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-canvas-to-image.md
|
|
9694
9725
|
*/
|
|
9695
9726
|
'unicorn/no-canvas-to-image'?: Linter.RuleEntry<[]>;
|
|
9696
9727
|
/**
|
|
9697
9728
|
* Disallow chained comparisons such as `a < b < c`.
|
|
9698
9729
|
*
|
|
9699
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9730
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-chained-comparison.md
|
|
9700
9731
|
*/
|
|
9701
9732
|
'unicorn/no-chained-comparison'?: Linter.RuleEntry<[]>;
|
|
9702
9733
|
/**
|
|
9703
9734
|
* Disallow accessing `Map`, `Set`, `WeakMap`, and `WeakSet` entries with
|
|
9704
9735
|
* bracket notation.
|
|
9705
9736
|
*
|
|
9706
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9737
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-collection-bracket-access.md
|
|
9707
9738
|
*/
|
|
9708
9739
|
'unicorn/no-collection-bracket-access'?: Linter.RuleEntry<[]>;
|
|
9709
9740
|
/**
|
|
9710
9741
|
* Disallow dynamic object property existence checks.
|
|
9711
9742
|
*
|
|
9712
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9743
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-computed-property-existence-check.md
|
|
9713
9744
|
*/
|
|
9714
9745
|
'unicorn/no-computed-property-existence-check'?: Linter.RuleEntry<[]>;
|
|
9746
|
+
/**
|
|
9747
|
+
* Disallow conflicting CSS query and HTML form constraints.
|
|
9748
|
+
*
|
|
9749
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-conflicting-constraints.md
|
|
9750
|
+
*/
|
|
9751
|
+
'unicorn/no-conflicting-constraints'?: Linter.RuleEntry<[]>;
|
|
9715
9752
|
/**
|
|
9716
9753
|
* Disallow confusing uses of `Array#{splice,toSpliced}()`.
|
|
9717
9754
|
*
|
|
9718
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9755
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-confusing-array-splice.md
|
|
9719
9756
|
*/
|
|
9720
9757
|
'unicorn/no-confusing-array-splice'?: Linter.RuleEntry<[]>;
|
|
9721
9758
|
/**
|
|
9722
9759
|
* Disallow confusing uses of `Array#with()`.
|
|
9723
9760
|
*
|
|
9724
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9761
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-confusing-array-with.md
|
|
9725
9762
|
*/
|
|
9726
9763
|
'unicorn/no-confusing-array-with'?: Linter.RuleEntry<[]>;
|
|
9727
9764
|
/**
|
|
9728
9765
|
* Do not use leading/trailing space between `console.log` parameters.
|
|
9729
9766
|
*
|
|
9730
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9767
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-console-spaces.md
|
|
9731
9768
|
*/
|
|
9732
9769
|
'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
|
|
9733
9770
|
/**
|
|
9734
9771
|
* Disallow arithmetic and bitwise operations that always evaluate to `0`.
|
|
9735
9772
|
*
|
|
9736
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9773
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-constant-zero-expression.md
|
|
9737
9774
|
*/
|
|
9738
9775
|
'unicorn/no-constant-zero-expression'?: Linter.RuleEntry<[]>;
|
|
9739
9776
|
/**
|
|
9740
9777
|
* Disallow declarations before conditional early exits when they are only
|
|
9741
9778
|
* used after the exit.
|
|
9742
9779
|
*
|
|
9743
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9780
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-declarations-before-early-exit.md
|
|
9744
9781
|
*/
|
|
9745
9782
|
'unicorn/no-declarations-before-early-exit'?: Linter.RuleEntry<[]>;
|
|
9746
9783
|
/**
|
|
9747
|
-
*
|
|
9784
|
+
* Moved to `eslint-cssicorn` as `cssicorn/no-deprecated-features`.
|
|
9748
9785
|
*
|
|
9749
|
-
* @
|
|
9786
|
+
* @deprecated
|
|
9787
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-deprecated-css-features
|
|
9750
9788
|
*/
|
|
9751
|
-
'unicorn/no-deprecated-css-features'?: Linter.RuleEntry<
|
|
9789
|
+
'unicorn/no-deprecated-css-features'?: Linter.RuleEntry<[]>;
|
|
9752
9790
|
/**
|
|
9753
9791
|
* Do not use `document.cookie` directly.
|
|
9754
9792
|
*
|
|
9755
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9793
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-document-cookie.md
|
|
9756
9794
|
*/
|
|
9757
9795
|
'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
|
|
9758
9796
|
/**
|
|
9759
9797
|
* Disallow two comparisons of the same operands that can be combined into
|
|
9760
9798
|
* one.
|
|
9761
9799
|
*
|
|
9762
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9800
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-double-comparison.md
|
|
9763
9801
|
*/
|
|
9764
9802
|
'unicorn/no-double-comparison'?: Linter.RuleEntry<[]>;
|
|
9765
9803
|
/**
|
|
9766
|
-
*
|
|
9804
|
+
* Moved to `eslint-cssicorn` as `cssicorn/no-duplicate-selectors`.
|
|
9767
9805
|
*
|
|
9768
|
-
* @
|
|
9806
|
+
* @deprecated
|
|
9807
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-duplicate-css-selectors
|
|
9769
9808
|
*/
|
|
9770
9809
|
'unicorn/no-duplicate-css-selectors'?: Linter.RuleEntry<[]>;
|
|
9771
9810
|
/**
|
|
9772
|
-
*
|
|
9811
|
+
* Moved to `eslint-cssicorn` as `cssicorn/no-duplicate-font-family-names`.
|
|
9773
9812
|
*
|
|
9774
|
-
* @
|
|
9813
|
+
* @deprecated
|
|
9814
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-duplicate-font-family-names
|
|
9775
9815
|
*/
|
|
9776
9816
|
'unicorn/no-duplicate-font-family-names'?: Linter.RuleEntry<[]>;
|
|
9777
9817
|
/**
|
|
9778
9818
|
* Disallow duplicate adjacent branches in if chains.
|
|
9779
9819
|
*
|
|
9780
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9820
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-duplicate-if-branches.md
|
|
9781
9821
|
*/
|
|
9782
9822
|
'unicorn/no-duplicate-if-branches'?: Linter.RuleEntry<[]>;
|
|
9783
9823
|
/**
|
|
9784
9824
|
* Disallow adjacent duplicate operands in logical expressions.
|
|
9785
9825
|
*
|
|
9786
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9826
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-duplicate-logical-operands.md
|
|
9787
9827
|
*/
|
|
9788
9828
|
'unicorn/no-duplicate-logical-operands'?: Linter.RuleEntry<[]>;
|
|
9789
9829
|
/**
|
|
9790
9830
|
* Disallow `.map()` and `.filter()` in `for…of` and `for await…of` loop
|
|
9791
9831
|
* headers.
|
|
9792
9832
|
*
|
|
9793
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9833
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-duplicate-loops.md
|
|
9794
9834
|
*/
|
|
9795
9835
|
'unicorn/no-duplicate-loops'?: Linter.RuleEntry<[]>;
|
|
9796
9836
|
/**
|
|
9797
9837
|
* Disallow duplicate values in `Set` constructor array literals.
|
|
9798
9838
|
*
|
|
9799
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9839
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-duplicate-set-values.md
|
|
9800
9840
|
*/
|
|
9801
9841
|
'unicorn/no-duplicate-set-values'?: Linter.RuleEntry<[]>;
|
|
9802
9842
|
/**
|
|
9803
9843
|
* Disallow empty files.
|
|
9804
9844
|
*
|
|
9805
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9845
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-empty-file.md
|
|
9806
9846
|
*/
|
|
9807
9847
|
'unicorn/no-empty-file'?: Linter.RuleEntry<UnicornNoEmptyFile>;
|
|
9848
|
+
/**
|
|
9849
|
+
* Disallow empty link text in Markdown.
|
|
9850
|
+
*
|
|
9851
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-empty-link-text.md
|
|
9852
|
+
*/
|
|
9853
|
+
'unicorn/no-empty-link-text'?: Linter.RuleEntry<[]>;
|
|
9808
9854
|
/**
|
|
9809
9855
|
* Disallow assigning to built-in error properties.
|
|
9810
9856
|
*
|
|
9811
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9857
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-error-property-assignment.md
|
|
9812
9858
|
*/
|
|
9813
9859
|
'unicorn/no-error-property-assignment'?: Linter.RuleEntry<[]>;
|
|
9814
9860
|
/**
|
|
9815
9861
|
* Disallow exports in scripts.
|
|
9816
9862
|
*
|
|
9817
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9863
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-exports-in-scripts.md
|
|
9818
9864
|
*/
|
|
9819
9865
|
'unicorn/no-exports-in-scripts'?: Linter.RuleEntry<[]>;
|
|
9820
9866
|
/**
|
|
9821
9867
|
* Prefer `for…of` over the `forEach` method.
|
|
9822
9868
|
*
|
|
9823
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9869
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-for-each.md
|
|
9824
9870
|
*/
|
|
9825
9871
|
'unicorn/no-for-each'?: Linter.RuleEntry<[]>;
|
|
9826
9872
|
/**
|
|
9827
9873
|
* Do not use a `for` loop that can be replaced with a `for-of` loop.
|
|
9828
9874
|
*
|
|
9829
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9875
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-for-loop.md
|
|
9830
9876
|
*/
|
|
9831
9877
|
'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
|
|
9832
9878
|
/**
|
|
9833
9879
|
* Disallow assigning properties on the global object.
|
|
9834
9880
|
*
|
|
9835
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9881
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-global-object-property-assignment.md
|
|
9836
9882
|
*/
|
|
9837
9883
|
'unicorn/no-global-object-property-assignment'?: Linter.RuleEntry<[]>;
|
|
9838
9884
|
/**
|
|
9839
|
-
* Replaced by `unicorn/prefer-
|
|
9840
|
-
* cases.
|
|
9885
|
+
* Replaced by `unicorn/prefer-literal-ascii` and
|
|
9886
|
+
* `unicorn/prefer-unicode-code-point-escapes`, which cover more cases.
|
|
9841
9887
|
*
|
|
9842
9888
|
* @deprecated
|
|
9843
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9889
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
|
|
9844
9890
|
*/
|
|
9845
9891
|
'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
|
|
9846
9892
|
/**
|
|
9847
9893
|
* Disallow immediate mutation after variable assignment.
|
|
9848
9894
|
*
|
|
9849
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9895
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-immediate-mutation.md
|
|
9850
9896
|
*/
|
|
9851
9897
|
'unicorn/no-immediate-mutation'?: Linter.RuleEntry<UnicornNoImmediateMutation>;
|
|
9852
9898
|
/**
|
|
9853
9899
|
* Disallow impossible comparisons against `.length` or `.size`.
|
|
9854
9900
|
*
|
|
9855
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9901
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-impossible-length-comparison.md
|
|
9856
9902
|
*/
|
|
9857
9903
|
'unicorn/no-impossible-length-comparison'?: Linter.RuleEntry<[]>;
|
|
9904
|
+
/**
|
|
9905
|
+
* Disallow class accessors that hide an inherited getter or setter.
|
|
9906
|
+
*
|
|
9907
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-incomplete-accessor-override.md
|
|
9908
|
+
*/
|
|
9909
|
+
'unicorn/no-incomplete-accessor-override'?: Linter.RuleEntry<[]>;
|
|
9858
9910
|
/**
|
|
9859
9911
|
* Disallow incorrect `querySelector()` and `querySelectorAll()` usage.
|
|
9860
9912
|
*
|
|
9861
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9913
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-incorrect-query-selector.md
|
|
9862
9914
|
*/
|
|
9863
9915
|
'unicorn/no-incorrect-query-selector'?: Linter.RuleEntry<[]>;
|
|
9864
9916
|
/**
|
|
9865
9917
|
* Disallow incorrect template literal interpolation syntax.
|
|
9866
9918
|
*
|
|
9867
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9919
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-incorrect-template-string-interpolation.md
|
|
9868
9920
|
*/
|
|
9869
9921
|
'unicorn/no-incorrect-template-string-interpolation'?: Linter.RuleEntry<[]>;
|
|
9922
|
+
/**
|
|
9923
|
+
* Disallow ineffective CSP directives in `<meta>` elements.
|
|
9924
|
+
*
|
|
9925
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-ineffective-csp-directives.md
|
|
9926
|
+
*/
|
|
9927
|
+
'unicorn/no-ineffective-csp-directives'?: Linter.RuleEntry<[]>;
|
|
9870
9928
|
/**
|
|
9871
9929
|
* Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
|
|
9872
9930
|
*
|
|
9873
9931
|
* @deprecated
|
|
9874
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9932
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
|
|
9875
9933
|
*/
|
|
9876
9934
|
'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
|
|
9877
9935
|
/**
|
|
9878
9936
|
* Disallow `instanceof` with built-in objects
|
|
9879
9937
|
*
|
|
9880
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9938
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-instanceof-builtins.md
|
|
9881
9939
|
*/
|
|
9882
9940
|
'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
|
|
9883
9941
|
/**
|
|
9884
9942
|
* Disallow calling functions and constructors with an invalid number of
|
|
9885
9943
|
* arguments.
|
|
9886
9944
|
*
|
|
9887
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9945
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-argument-count.md
|
|
9888
9946
|
*/
|
|
9889
9947
|
'unicorn/no-invalid-argument-count'?: Linter.RuleEntry<UnicornNoInvalidArgumentCount>;
|
|
9948
|
+
/**
|
|
9949
|
+
* Disallow invalid values for HTML boolean attributes.
|
|
9950
|
+
*
|
|
9951
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-boolean-attribute-value.md
|
|
9952
|
+
*/
|
|
9953
|
+
'unicorn/no-invalid-boolean-attribute-value'?: Linter.RuleEntry<[]>;
|
|
9890
9954
|
/**
|
|
9891
9955
|
* Disallow comparing a single character from a string to a multi-character
|
|
9892
9956
|
* string.
|
|
9893
9957
|
*
|
|
9894
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9958
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-character-comparison.md
|
|
9895
9959
|
*/
|
|
9896
9960
|
'unicorn/no-invalid-character-comparison'?: Linter.RuleEntry<[]>;
|
|
9961
|
+
/**
|
|
9962
|
+
* Disallow invalid DOM tokens.
|
|
9963
|
+
*
|
|
9964
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-dom-token.md
|
|
9965
|
+
*/
|
|
9966
|
+
'unicorn/no-invalid-dom-token'?: Linter.RuleEntry<[]>;
|
|
9897
9967
|
/**
|
|
9898
9968
|
* Disallow invalid options in `fetch()` and `new Request()`.
|
|
9899
9969
|
*
|
|
9900
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9970
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-fetch-options.md
|
|
9901
9971
|
*/
|
|
9902
9972
|
'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
|
|
9903
9973
|
/**
|
|
9904
9974
|
* Disallow invalid `accept` values on file inputs.
|
|
9905
9975
|
*
|
|
9906
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9976
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-file-input-accept.md
|
|
9907
9977
|
*/
|
|
9908
9978
|
'unicorn/no-invalid-file-input-accept'?: Linter.RuleEntry<[]>;
|
|
9909
9979
|
/**
|
|
9910
|
-
* Disallow
|
|
9911
|
-
* features.
|
|
9980
|
+
* Disallow invalid subresource integrity metadata.
|
|
9912
9981
|
*
|
|
9913
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9982
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-integrity.md
|
|
9983
|
+
*/
|
|
9984
|
+
'unicorn/no-invalid-integrity'?: Linter.RuleEntry<[]>;
|
|
9985
|
+
/**
|
|
9986
|
+
* Disallow invalid or ignored Intl options.
|
|
9987
|
+
*
|
|
9988
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-intl-options.md
|
|
9989
|
+
*/
|
|
9990
|
+
'unicorn/no-invalid-intl-options'?: Linter.RuleEntry<[]>;
|
|
9991
|
+
/**
|
|
9992
|
+
* Moved to `eslint-cssicorn` as `cssicorn/no-invalid-media-features`.
|
|
9993
|
+
*
|
|
9994
|
+
* @deprecated
|
|
9995
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-invalid-media-features
|
|
9914
9996
|
*/
|
|
9915
9997
|
'unicorn/no-invalid-media-features'?: Linter.RuleEntry<[]>;
|
|
9998
|
+
/**
|
|
9999
|
+
* Disallow invalid property descriptors.
|
|
10000
|
+
*
|
|
10001
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-property-descriptor.md
|
|
10002
|
+
*/
|
|
10003
|
+
'unicorn/no-invalid-property-descriptor'?: Linter.RuleEntry<[]>;
|
|
9916
10004
|
/**
|
|
9917
10005
|
* Prevent calling `EventTarget#removeEventListener()` with the result of an
|
|
9918
10006
|
* expression.
|
|
9919
10007
|
*
|
|
9920
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10008
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-remove-event-listener.md
|
|
9921
10009
|
*/
|
|
9922
10010
|
'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
|
|
10011
|
+
/**
|
|
10012
|
+
* Disallow invalid options in `new Response()`, `Response.json()`, and
|
|
10013
|
+
* `Response.redirect()`.
|
|
10014
|
+
*
|
|
10015
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-response-options.md
|
|
10016
|
+
*/
|
|
10017
|
+
'unicorn/no-invalid-response-options'?: Linter.RuleEntry<[]>;
|
|
10018
|
+
/**
|
|
10019
|
+
* Disallow invalid arguments to `CSSStyleDeclaration#setProperty()`.
|
|
10020
|
+
*
|
|
10021
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-style-set-property.md
|
|
10022
|
+
*/
|
|
10023
|
+
'unicorn/no-invalid-style-set-property'?: Linter.RuleEntry<[]>;
|
|
10024
|
+
/**
|
|
10025
|
+
* Disallow statically known invalid Temporal arithmetic.
|
|
10026
|
+
*
|
|
10027
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-temporal-arithmetic.md
|
|
10028
|
+
*/
|
|
10029
|
+
'unicorn/no-invalid-temporal-arithmetic'?: Linter.RuleEntry<[]>;
|
|
10030
|
+
/**
|
|
10031
|
+
* Disallow invalid protocol strings in comparisons with `URL#protocol`.
|
|
10032
|
+
*
|
|
10033
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-url-protocol-comparison.md
|
|
10034
|
+
*/
|
|
10035
|
+
'unicorn/no-invalid-url-protocol-comparison'?: Linter.RuleEntry<[]>;
|
|
9923
10036
|
/**
|
|
9924
10037
|
* Disallow invalid implementations of well-known symbol methods.
|
|
9925
10038
|
*
|
|
9926
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10039
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
|
|
9927
10040
|
*/
|
|
9928
10041
|
'unicorn/no-invalid-well-known-symbol-methods'?: Linter.RuleEntry<[]>;
|
|
10042
|
+
/**
|
|
10043
|
+
* Disallow `javascript:` URLs in Markdown.
|
|
10044
|
+
*
|
|
10045
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-javascript-url.md
|
|
10046
|
+
*/
|
|
10047
|
+
'unicorn/no-javascript-url'?: Linter.RuleEntry<[]>;
|
|
9929
10048
|
/**
|
|
9930
10049
|
* Disallow identifiers starting with `new` or `class`.
|
|
9931
10050
|
*
|
|
9932
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10051
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-keyword-prefix.md
|
|
9933
10052
|
*/
|
|
9934
10053
|
'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
|
|
9935
10054
|
/**
|
|
9936
10055
|
* Disallow accessing `event.currentTarget` after the synchronous event
|
|
9937
10056
|
* dispatch has finished.
|
|
9938
10057
|
*
|
|
9939
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10058
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-late-current-target-access.md
|
|
9940
10059
|
*/
|
|
9941
10060
|
'unicorn/no-late-current-target-access'?: Linter.RuleEntry<[]>;
|
|
9942
10061
|
/**
|
|
9943
10062
|
* Disallow event-control method calls after the synchronous event dispatch
|
|
9944
10063
|
* has finished.
|
|
9945
10064
|
*
|
|
9946
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10065
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-late-event-control.md
|
|
9947
10066
|
*/
|
|
9948
10067
|
'unicorn/no-late-event-control'?: Linter.RuleEntry<[]>;
|
|
10068
|
+
/**
|
|
10069
|
+
* Disallow empty lines at the beginning of a file.
|
|
10070
|
+
*
|
|
10071
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-leading-empty-lines.md
|
|
10072
|
+
*/
|
|
10073
|
+
'unicorn/no-leading-empty-lines'?: Linter.RuleEntry<[]>;
|
|
9949
10074
|
/**
|
|
9950
10075
|
* Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
|
|
9951
10076
|
*
|
|
9952
10077
|
* @deprecated
|
|
9953
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10078
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
|
|
9954
10079
|
*/
|
|
9955
10080
|
'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
|
|
9956
10081
|
/**
|
|
9957
10082
|
* Disallow `if` statements as the only statement in `if` blocks without
|
|
9958
10083
|
* `else`.
|
|
9959
10084
|
*
|
|
9960
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10085
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-lonely-if.md
|
|
9961
10086
|
*/
|
|
9962
10087
|
'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
|
|
9963
10088
|
/**
|
|
9964
10089
|
* Disallow mutating a loop iterable during iteration.
|
|
9965
10090
|
*
|
|
9966
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10091
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-loop-iterable-mutation.md
|
|
9967
10092
|
*/
|
|
9968
10093
|
'unicorn/no-loop-iterable-mutation'?: Linter.RuleEntry<[]>;
|
|
10094
|
+
/**
|
|
10095
|
+
* Disallow numeric literals that lose precision when represented as IEEE 754
|
|
10096
|
+
* binary64 values.
|
|
10097
|
+
*
|
|
10098
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-loss-of-precision.md
|
|
10099
|
+
*/
|
|
10100
|
+
'unicorn/no-loss-of-precision'?: Linter.RuleEntry<[]>;
|
|
9969
10101
|
/**
|
|
9970
10102
|
* Disallow a magic number as the `depth` argument in `Array#flat(…).`
|
|
9971
10103
|
*
|
|
9972
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10104
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-magic-array-flat-depth.md
|
|
9973
10105
|
*/
|
|
9974
10106
|
'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
|
|
9975
10107
|
/**
|
|
9976
10108
|
* Disallow manually wrapped comments.
|
|
9977
10109
|
*
|
|
9978
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10110
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-manually-wrapped-comments.md
|
|
9979
10111
|
*/
|
|
9980
10112
|
'unicorn/no-manually-wrapped-comments'?: Linter.RuleEntry<[]>;
|
|
9981
10113
|
/**
|
|
9982
10114
|
* Disallow checking a Map key before accessing a different key.
|
|
9983
10115
|
*
|
|
9984
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10116
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-mismatched-map-key.md
|
|
9985
10117
|
*/
|
|
9986
10118
|
'unicorn/no-mismatched-map-key'?: Linter.RuleEntry<[]>;
|
|
9987
10119
|
/**
|
|
9988
10120
|
* Disallow misrefactored compound assignments where the target is duplicated
|
|
9989
10121
|
* in the right-hand side.
|
|
9990
10122
|
*
|
|
9991
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10123
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-misrefactored-assignment.md
|
|
9992
10124
|
*/
|
|
9993
10125
|
'unicorn/no-misrefactored-assignment'?: Linter.RuleEntry<[]>;
|
|
9994
10126
|
/**
|
|
9995
10127
|
* Disallow references to missing local resources.
|
|
9996
10128
|
*
|
|
9997
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10129
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-missing-local-resource.md
|
|
9998
10130
|
*/
|
|
9999
10131
|
'unicorn/no-missing-local-resource'?: Linter.RuleEntry<[]>;
|
|
10000
10132
|
/**
|
|
10001
10133
|
* Disallow calling Promise executor resolver functions more than once on the
|
|
10002
10134
|
* same execution path.
|
|
10003
10135
|
*
|
|
10004
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10136
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-multiple-promise-resolver-calls.md
|
|
10005
10137
|
*/
|
|
10006
10138
|
'unicorn/no-multiple-promise-resolver-calls'?: Linter.RuleEntry<[]>;
|
|
10007
10139
|
/**
|
|
10008
10140
|
* Disallow named usage of default import and export.
|
|
10009
10141
|
*
|
|
10010
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10142
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-named-default.md
|
|
10011
10143
|
*/
|
|
10012
10144
|
'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
|
|
10013
10145
|
/**
|
|
10014
10146
|
* Disallow negated array predicate calls.
|
|
10015
10147
|
*
|
|
10016
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10148
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-negated-array-predicate.md
|
|
10017
10149
|
*/
|
|
10018
10150
|
'unicorn/no-negated-array-predicate'?: Linter.RuleEntry<[]>;
|
|
10019
10151
|
/**
|
|
10020
10152
|
* Disallow negated comparisons.
|
|
10021
10153
|
*
|
|
10022
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10154
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-negated-comparison.md
|
|
10023
10155
|
*/
|
|
10024
10156
|
'unicorn/no-negated-comparison'?: Linter.RuleEntry<UnicornNoNegatedComparison>;
|
|
10025
10157
|
/**
|
|
10026
10158
|
* Disallow negated conditions.
|
|
10027
10159
|
*
|
|
10028
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10160
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-negated-condition.md
|
|
10029
10161
|
*/
|
|
10030
10162
|
'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
|
|
10031
10163
|
/**
|
|
10032
10164
|
* Disallow negated expression in equality check.
|
|
10033
10165
|
*
|
|
10034
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10166
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-negation-in-equality-check.md
|
|
10035
10167
|
*/
|
|
10036
10168
|
'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
|
|
10037
10169
|
/**
|
|
10038
10170
|
* Disallow nested ternary expressions.
|
|
10039
10171
|
*
|
|
10040
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10172
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-nested-ternary.md
|
|
10041
10173
|
*/
|
|
10042
10174
|
'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
|
|
10043
10175
|
/**
|
|
10044
|
-
*
|
|
10176
|
+
* Moved to `eslint-cssicorn` as `cssicorn/no-nesting-with-mixed-specificity`.
|
|
10045
10177
|
*
|
|
10046
|
-
* @
|
|
10178
|
+
* @deprecated
|
|
10179
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-nesting-with-mixed-specificity
|
|
10047
10180
|
*/
|
|
10048
10181
|
'unicorn/no-nesting-with-mixed-specificity'?: Linter.RuleEntry<[]>;
|
|
10049
10182
|
/**
|
|
10050
10183
|
* Disallow `new Array()`.
|
|
10051
10184
|
*
|
|
10052
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10185
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-new-array.md
|
|
10053
10186
|
*/
|
|
10054
10187
|
'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
|
|
10055
10188
|
/**
|
|
10056
10189
|
* Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the
|
|
10057
10190
|
* deprecated `new Buffer()`.
|
|
10058
10191
|
*
|
|
10059
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10192
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-new-buffer.md
|
|
10060
10193
|
*/
|
|
10061
10194
|
'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
|
|
10062
10195
|
/**
|
|
10063
10196
|
* Disallow non-function values with function-style verb prefixes.
|
|
10064
10197
|
*
|
|
10065
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10198
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-non-function-verb-prefix.md
|
|
10066
10199
|
*/
|
|
10067
10200
|
'unicorn/no-non-function-verb-prefix'?: Linter.RuleEntry<UnicornNoNonFunctionVerbPrefix>;
|
|
10068
10201
|
/**
|
|
10069
10202
|
* Disallow non-standard properties on built-in objects.
|
|
10070
10203
|
*
|
|
10071
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10204
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-nonstandard-builtin-properties.md
|
|
10072
10205
|
*/
|
|
10073
10206
|
'unicorn/no-nonstandard-builtin-properties'?: Linter.RuleEntry<[]>;
|
|
10074
10207
|
/**
|
|
10075
10208
|
* Disallow the use of the `null` literal.
|
|
10076
10209
|
*
|
|
10077
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10210
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-null.md
|
|
10078
10211
|
*/
|
|
10079
10212
|
'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
|
|
10080
10213
|
/**
|
|
10081
10214
|
* Disallow the use of objects as default parameters.
|
|
10082
10215
|
*
|
|
10083
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10216
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-object-as-default-parameter.md
|
|
10084
10217
|
*/
|
|
10085
10218
|
'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
|
|
10086
10219
|
/**
|
|
10087
10220
|
* Disallow `Object` methods with `Map` or `Set`.
|
|
10088
10221
|
*
|
|
10089
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10222
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-object-methods-with-collections.md
|
|
10090
10223
|
*/
|
|
10091
10224
|
'unicorn/no-object-methods-with-collections'?: Linter.RuleEntry<[]>;
|
|
10092
10225
|
/**
|
|
10093
10226
|
* Disallow optional chaining on undeclared variables.
|
|
10094
10227
|
*
|
|
10095
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10228
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
|
|
10096
10229
|
*/
|
|
10097
10230
|
'unicorn/no-optional-chaining-on-undeclared-variable'?: Linter.RuleEntry<[]>;
|
|
10231
|
+
/**
|
|
10232
|
+
* Disallow ineffective `preventDefault()` calls in passive event listeners.
|
|
10233
|
+
*
|
|
10234
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-prevent-default-in-passive-listener.md
|
|
10235
|
+
*/
|
|
10236
|
+
'unicorn/no-prevent-default-in-passive-listener'?: Linter.RuleEntry<[]>;
|
|
10098
10237
|
/**
|
|
10099
10238
|
* Disallow `process.exit()`.
|
|
10100
10239
|
*
|
|
10101
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10240
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-process-exit.md
|
|
10102
10241
|
*/
|
|
10103
10242
|
'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
|
|
10104
10243
|
/**
|
|
10105
10244
|
* Disallow comparisons made redundant by an equality check in the same
|
|
10106
10245
|
* logical AND.
|
|
10107
10246
|
*
|
|
10108
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10247
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-redundant-comparison.md
|
|
10109
10248
|
*/
|
|
10110
10249
|
'unicorn/no-redundant-comparison'?: Linter.RuleEntry<[]>;
|
|
10111
10250
|
/**
|
|
10112
|
-
*
|
|
10251
|
+
* Moved to `eslint-cssicorn` as `cssicorn/no-redundant-nested-style-rules`.
|
|
10113
10252
|
*
|
|
10114
|
-
* @
|
|
10253
|
+
* @deprecated
|
|
10254
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-redundant-nested-style-rules
|
|
10115
10255
|
*/
|
|
10116
10256
|
'unicorn/no-redundant-nested-style-rules'?: Linter.RuleEntry<[]>;
|
|
10117
10257
|
/**
|
|
10118
10258
|
* Disallow using the return value of `Array#push()` and `Array#unshift()`.
|
|
10119
10259
|
*
|
|
10120
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10260
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-return-array-push.md
|
|
10121
10261
|
*/
|
|
10122
10262
|
'unicorn/no-return-array-push'?: Linter.RuleEntry<[]>;
|
|
10123
10263
|
/**
|
|
10124
10264
|
* Disallow selector syntax in DOM names.
|
|
10125
10265
|
*
|
|
10126
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10266
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-selector-as-dom-name.md
|
|
10127
10267
|
*/
|
|
10128
10268
|
'unicorn/no-selector-as-dom-name'?: Linter.RuleEntry<[]>;
|
|
10129
10269
|
/**
|
|
10130
10270
|
* Disallow shorthand properties that override related longhand properties.
|
|
10131
10271
|
*
|
|
10132
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10272
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-shorthand-property-overrides.md
|
|
10133
10273
|
*/
|
|
10134
10274
|
'unicorn/no-shorthand-property-overrides'?: Linter.RuleEntry<[]>;
|
|
10135
10275
|
/**
|
|
10136
10276
|
* Disallow passing single-element arrays to `Promise` methods.
|
|
10137
10277
|
*
|
|
10138
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10278
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-single-promise-in-promise-methods.md
|
|
10139
10279
|
*/
|
|
10140
10280
|
'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
|
|
10141
10281
|
/**
|
|
10142
10282
|
* Disallow classes that only have static members.
|
|
10143
10283
|
*
|
|
10144
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10284
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-static-only-class.md
|
|
10145
10285
|
*/
|
|
10146
10286
|
'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
|
|
10147
10287
|
/**
|
|
10148
10288
|
* Prefer comparing values directly over subtracting and comparing to `0`.
|
|
10149
10289
|
*
|
|
10150
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10290
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-subtraction-comparison.md
|
|
10151
10291
|
*/
|
|
10152
10292
|
'unicorn/no-subtraction-comparison'?: Linter.RuleEntry<[]>;
|
|
10153
10293
|
/**
|
|
10154
10294
|
* Disallow `then` property.
|
|
10155
10295
|
*
|
|
10156
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10296
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-thenable.md
|
|
10157
10297
|
*/
|
|
10158
10298
|
'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
|
|
10159
10299
|
/**
|
|
10160
10300
|
* Disallow assigning `this` to a variable.
|
|
10161
10301
|
*
|
|
10162
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10302
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-this-assignment.md
|
|
10163
10303
|
*/
|
|
10164
10304
|
'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
|
|
10165
10305
|
/**
|
|
10166
10306
|
* Disallow `this` outside of classes.
|
|
10167
10307
|
*
|
|
10168
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10308
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-this-outside-of-class.md
|
|
10169
10309
|
*/
|
|
10170
10310
|
'unicorn/no-this-outside-of-class'?: Linter.RuleEntry<[]>;
|
|
10171
10311
|
/**
|
|
10172
10312
|
* Disallow assigning to top-level variables from inside functions.
|
|
10173
10313
|
*
|
|
10174
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10314
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-top-level-assignment-in-function.md
|
|
10175
10315
|
*/
|
|
10176
10316
|
'unicorn/no-top-level-assignment-in-function'?: Linter.RuleEntry<[]>;
|
|
10177
10317
|
/**
|
|
10178
10318
|
* Disallow top-level side effects in exported modules.
|
|
10179
10319
|
*
|
|
10180
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10320
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-top-level-side-effects.md
|
|
10181
10321
|
*/
|
|
10182
10322
|
'unicorn/no-top-level-side-effects'?: Linter.RuleEntry<[]>;
|
|
10183
10323
|
/**
|
|
10184
10324
|
* Disallow `all` as a transition property.
|
|
10185
10325
|
*
|
|
10186
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10326
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-transition-all.md
|
|
10187
10327
|
*/
|
|
10188
10328
|
'unicorn/no-transition-all'?: Linter.RuleEntry<[]>;
|
|
10189
10329
|
/**
|
|
10190
10330
|
* Disallow comparing `undefined` using `typeof`.
|
|
10191
10331
|
*
|
|
10192
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10332
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-typeof-undefined.md
|
|
10193
10333
|
*/
|
|
10194
10334
|
'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
|
|
10195
10335
|
/**
|
|
10196
10336
|
* Disallow referencing methods without calling them.
|
|
10197
10337
|
*
|
|
10198
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10338
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-uncalled-method.md
|
|
10199
10339
|
*/
|
|
10200
10340
|
'unicorn/no-uncalled-method'?: Linter.RuleEntry<[]>;
|
|
10201
10341
|
/**
|
|
10202
10342
|
* Require class members to be declared.
|
|
10203
10343
|
*
|
|
10204
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10344
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-undeclared-class-members.md
|
|
10205
10345
|
*/
|
|
10206
10346
|
'unicorn/no-undeclared-class-members'?: Linter.RuleEntry<[]>;
|
|
10207
10347
|
/**
|
|
10208
|
-
*
|
|
10348
|
+
* Moved to `eslint-cssicorn` as `cssicorn/no-unknown-annotations`.
|
|
10209
10349
|
*
|
|
10210
|
-
* @
|
|
10350
|
+
* @deprecated
|
|
10351
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-unknown-css-annotations
|
|
10211
10352
|
*/
|
|
10212
10353
|
'unicorn/no-unknown-css-annotations'?: Linter.RuleEntry<[]>;
|
|
10213
10354
|
/**
|
|
10214
|
-
*
|
|
10355
|
+
* Moved to `eslint-cssicorn` as `cssicorn/no-unknown-pseudo-selectors`.
|
|
10215
10356
|
*
|
|
10216
|
-
* @
|
|
10357
|
+
* @deprecated
|
|
10358
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-unknown-pseudo-selectors
|
|
10217
10359
|
*/
|
|
10218
|
-
'unicorn/no-unknown-pseudo-selectors'?: Linter.RuleEntry<
|
|
10360
|
+
'unicorn/no-unknown-pseudo-selectors'?: Linter.RuleEntry<[]>;
|
|
10219
10361
|
/**
|
|
10220
10362
|
* Disallow using `1` as the `depth` argument of `Array#flat()`.
|
|
10221
10363
|
*
|
|
10222
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10364
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-array-flat-depth.md
|
|
10223
10365
|
*/
|
|
10224
10366
|
'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
|
|
10225
10367
|
/**
|
|
10226
|
-
* Disallow `Array#flatMap()
|
|
10368
|
+
* Disallow unnecessary use of `Array#flatMap()`.
|
|
10227
10369
|
*
|
|
10228
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10370
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-array-flat-map.md
|
|
10229
10371
|
*/
|
|
10230
10372
|
'unicorn/no-unnecessary-array-flat-map'?: Linter.RuleEntry<[]>;
|
|
10231
10373
|
/**
|
|
10232
10374
|
* Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount`
|
|
10233
10375
|
* argument of `Array#{splice,toSpliced}()`.
|
|
10234
10376
|
*
|
|
10235
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10377
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-array-splice-count.md
|
|
10236
10378
|
*/
|
|
10237
10379
|
'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
|
|
10238
10380
|
/**
|
|
10239
10381
|
* Disallow awaiting non-promise values.
|
|
10240
10382
|
*
|
|
10241
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10383
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-await.md
|
|
10242
10384
|
*/
|
|
10243
10385
|
'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
|
|
10244
10386
|
/**
|
|
10245
10387
|
* Disallow unnecessary comparisons against boolean literals.
|
|
10246
10388
|
*
|
|
10247
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10389
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-boolean-comparison.md
|
|
10248
10390
|
*/
|
|
10249
10391
|
'unicorn/no-unnecessary-boolean-comparison'?: Linter.RuleEntry<[]>;
|
|
10250
10392
|
/**
|
|
10251
10393
|
* Disallow unnecessary options in `fetch()` and `new Request()`.
|
|
10252
10394
|
*
|
|
10253
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10395
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-fetch-options.md
|
|
10254
10396
|
*/
|
|
10255
10397
|
'unicorn/no-unnecessary-fetch-options'?: Linter.RuleEntry<[]>;
|
|
10256
10398
|
/**
|
|
10257
10399
|
* Disallow unnecessary `globalThis` references.
|
|
10258
10400
|
*
|
|
10259
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10401
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-global-this.md
|
|
10260
10402
|
*/
|
|
10261
10403
|
'unicorn/no-unnecessary-global-this'?: Linter.RuleEntry<[]>;
|
|
10262
10404
|
/**
|
|
10263
10405
|
* Disallow unnecessary nested ternary expressions.
|
|
10264
10406
|
*
|
|
10265
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10407
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-nested-ternary.md
|
|
10266
10408
|
*/
|
|
10267
10409
|
'unicorn/no-unnecessary-nested-ternary'?: Linter.RuleEntry<[]>;
|
|
10410
|
+
/**
|
|
10411
|
+
* Disallow parameters that receive the same value at every call.
|
|
10412
|
+
*
|
|
10413
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-parameters.md
|
|
10414
|
+
*/
|
|
10415
|
+
'unicorn/no-unnecessary-parameters'?: Linter.RuleEntry<UnicornNoUnnecessaryParameters>;
|
|
10268
10416
|
/**
|
|
10269
10417
|
* Enforce the use of built-in methods instead of unnecessary polyfills.
|
|
10270
10418
|
*
|
|
10271
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10419
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-polyfills.md
|
|
10272
10420
|
*/
|
|
10273
10421
|
'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
|
|
10274
10422
|
/**
|
|
10275
10423
|
* Disallow using `.length` or `Infinity` as the `end` argument of
|
|
10276
10424
|
* `{Array,String,TypedArray}#slice()`.
|
|
10277
10425
|
*
|
|
10278
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10426
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-slice-end.md
|
|
10279
10427
|
*/
|
|
10280
10428
|
'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
|
|
10281
10429
|
/**
|
|
10282
10430
|
* Disallow `Array#splice()` when simpler alternatives exist.
|
|
10283
10431
|
*
|
|
10284
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10432
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-splice.md
|
|
10285
10433
|
*/
|
|
10286
10434
|
'unicorn/no-unnecessary-splice'?: Linter.RuleEntry<[]>;
|
|
10287
10435
|
/**
|
|
10288
10436
|
* Disallow `String#trim()` before `String#startsWith()` or
|
|
10289
10437
|
* `String#endsWith()`.
|
|
10290
10438
|
*
|
|
10291
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10439
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-string-trim.md
|
|
10292
10440
|
*/
|
|
10293
10441
|
'unicorn/no-unnecessary-string-trim'?: Linter.RuleEntry<[]>;
|
|
10294
10442
|
/**
|
|
10295
10443
|
* Disallow unreadable array destructuring.
|
|
10296
10444
|
*
|
|
10297
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10445
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unreadable-array-destructuring.md
|
|
10298
10446
|
*/
|
|
10299
10447
|
'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<UnicornNoUnreadableArrayDestructuring>;
|
|
10300
10448
|
/**
|
|
10301
10449
|
* Disallow unreadable iterable expressions in `for…of` and `for await…of`
|
|
10302
10450
|
* loop headers.
|
|
10303
10451
|
*
|
|
10304
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10452
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unreadable-for-of-expression.md
|
|
10305
10453
|
*/
|
|
10306
10454
|
'unicorn/no-unreadable-for-of-expression'?: Linter.RuleEntry<[]>;
|
|
10307
10455
|
/**
|
|
10308
10456
|
* Disallow unreadable IIFEs.
|
|
10309
10457
|
*
|
|
10310
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10458
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unreadable-iife.md
|
|
10311
10459
|
*/
|
|
10312
10460
|
'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
|
|
10313
10461
|
/**
|
|
10314
10462
|
* Disallow unreadable `new` expressions.
|
|
10315
10463
|
*
|
|
10316
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10464
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unreadable-new-expression.md
|
|
10317
10465
|
*/
|
|
10318
10466
|
'unicorn/no-unreadable-new-expression'?: Linter.RuleEntry<[]>;
|
|
10319
10467
|
/**
|
|
10320
10468
|
* Disallow unreadable object destructuring.
|
|
10321
10469
|
*
|
|
10322
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10470
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unreadable-object-destructuring.md
|
|
10323
10471
|
*/
|
|
10324
10472
|
'unicorn/no-unreadable-object-destructuring'?: Linter.RuleEntry<[]>;
|
|
10325
10473
|
/**
|
|
10326
10474
|
* Prevent unsafe use of ArrayBuffer view `.buffer`.
|
|
10327
10475
|
*
|
|
10328
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10476
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-buffer-conversion.md
|
|
10329
10477
|
*/
|
|
10330
10478
|
'unicorn/no-unsafe-buffer-conversion'?: Linter.RuleEntry<[]>;
|
|
10331
10479
|
/**
|
|
10332
10480
|
* Disallow unsafe DOM HTML APIs.
|
|
10333
10481
|
*
|
|
10334
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10482
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-dom-html.md
|
|
10335
10483
|
*/
|
|
10336
10484
|
'unicorn/no-unsafe-dom-html'?: Linter.RuleEntry<[]>;
|
|
10485
|
+
/**
|
|
10486
|
+
* Disallow known values that JSON serialization cannot represent faithfully.
|
|
10487
|
+
*
|
|
10488
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-json-serialization.md
|
|
10489
|
+
*/
|
|
10490
|
+
'unicorn/no-unsafe-json-serialization'?: Linter.RuleEntry<[]>;
|
|
10337
10491
|
/**
|
|
10338
10492
|
* Disallow reading `.value` from `Promise.allSettled()` results without a
|
|
10339
10493
|
* fulfilled status guard.
|
|
10340
10494
|
*
|
|
10341
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10495
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-promise-all-settled-values.md
|
|
10342
10496
|
*/
|
|
10343
10497
|
'unicorn/no-unsafe-promise-all-settled-values'?: Linter.RuleEntry<[]>;
|
|
10344
10498
|
/**
|
|
10345
10499
|
* Disallow unsafe values as property keys.
|
|
10346
10500
|
*
|
|
10347
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10501
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-property-key.md
|
|
10348
10502
|
*/
|
|
10349
10503
|
'unicorn/no-unsafe-property-key'?: Linter.RuleEntry<[]>;
|
|
10350
10504
|
/**
|
|
10351
10505
|
* Disallow interpolation into SQL strings passed to Node’s `node:sqlite`
|
|
10352
10506
|
* APIs.
|
|
10353
10507
|
*
|
|
10354
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10508
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-sqlite-interpolation.md
|
|
10355
10509
|
*/
|
|
10356
10510
|
'unicorn/no-unsafe-sqlite-interpolation'?: Linter.RuleEntry<[]>;
|
|
10357
10511
|
/**
|
|
10358
10512
|
* Disallow non-literal replacement values in `String#replace()` and
|
|
10359
10513
|
* `String#replaceAll()`.
|
|
10360
10514
|
*
|
|
10361
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10515
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-string-replacement.md
|
|
10362
10516
|
*/
|
|
10363
10517
|
'unicorn/no-unsafe-string-replacement'?: Linter.RuleEntry<[]>;
|
|
10364
10518
|
/**
|
|
10365
|
-
*
|
|
10519
|
+
* Moved to `eslint-cssicorn` as `cssicorn/no-unscoped-nesting-selector`.
|
|
10366
10520
|
*
|
|
10367
|
-
* @
|
|
10521
|
+
* @deprecated
|
|
10522
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-unscoped-css-nesting-selector
|
|
10368
10523
|
*/
|
|
10369
|
-
'unicorn/no-unscoped-css-nesting-selector'?: Linter.RuleEntry<
|
|
10524
|
+
'unicorn/no-unscoped-css-nesting-selector'?: Linter.RuleEntry<[]>;
|
|
10370
10525
|
/**
|
|
10371
10526
|
* Replaced by `unicorn/no-unused-builtin-method-return` which covers more
|
|
10372
10527
|
* cases.
|
|
10373
10528
|
*
|
|
10374
10529
|
* @deprecated
|
|
10375
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10530
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-unused-array-method-return
|
|
10376
10531
|
*/
|
|
10377
10532
|
'unicorn/no-unused-array-method-return'?: Linter.RuleEntry<[]>;
|
|
10378
10533
|
/**
|
|
10379
10534
|
* Disallow ignoring the return value of selected built-in methods.
|
|
10380
10535
|
*
|
|
10381
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10536
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unused-builtin-method-return.md
|
|
10382
10537
|
*/
|
|
10383
10538
|
'unicorn/no-unused-builtin-method-return'?: Linter.RuleEntry<[]>;
|
|
10384
10539
|
/**
|
|
10385
10540
|
* Disallow discarding lazy iterator helpers.
|
|
10386
10541
|
*
|
|
10387
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10542
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unused-iterator-helper.md
|
|
10388
10543
|
*/
|
|
10389
10544
|
'unicorn/no-unused-iterator-helper'?: Linter.RuleEntry<[]>;
|
|
10390
10545
|
/**
|
|
10391
10546
|
* Disallow unused object properties.
|
|
10392
10547
|
*
|
|
10393
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10548
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unused-properties.md
|
|
10394
10549
|
*/
|
|
10395
10550
|
'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
|
|
10551
|
+
/**
|
|
10552
|
+
* Disallow passing full URLs to `URLSearchParams`.
|
|
10553
|
+
*
|
|
10554
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-url-in-search-params.md
|
|
10555
|
+
*/
|
|
10556
|
+
'unicorn/no-url-in-search-params'?: Linter.RuleEntry<[]>;
|
|
10396
10557
|
/**
|
|
10397
10558
|
* Disallow unnecessary `Boolean()` casts in array predicate callbacks.
|
|
10398
10559
|
*
|
|
10399
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10560
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-boolean-cast.md
|
|
10400
10561
|
*/
|
|
10401
10562
|
'unicorn/no-useless-boolean-cast'?: Linter.RuleEntry<[]>;
|
|
10402
10563
|
/**
|
|
10403
10564
|
* Disallow useless type coercions of values that are already of the target
|
|
10404
10565
|
* type.
|
|
10405
10566
|
*
|
|
10406
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10567
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-coercion.md
|
|
10407
10568
|
*/
|
|
10408
10569
|
'unicorn/no-useless-coercion'?: Linter.RuleEntry<[]>;
|
|
10409
10570
|
/**
|
|
10410
10571
|
* Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or
|
|
10411
10572
|
* `WeakMap`.
|
|
10412
10573
|
*
|
|
10413
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10574
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-collection-argument.md
|
|
10414
10575
|
*/
|
|
10415
10576
|
'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>;
|
|
10416
10577
|
/**
|
|
10417
10578
|
* Disallow useless compound assignments such as `x += 0`.
|
|
10418
10579
|
*
|
|
10419
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10580
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-compound-assignment.md
|
|
10420
10581
|
*/
|
|
10421
10582
|
'unicorn/no-useless-compound-assignment'?: Linter.RuleEntry<[]>;
|
|
10422
10583
|
/**
|
|
10423
10584
|
* Disallow useless concatenation of literals.
|
|
10424
10585
|
*
|
|
10425
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10586
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-concat.md
|
|
10426
10587
|
*/
|
|
10427
10588
|
'unicorn/no-useless-concat'?: Linter.RuleEntry<[]>;
|
|
10428
10589
|
/**
|
|
10429
10590
|
* Disallow useless `continue` statements.
|
|
10430
10591
|
*
|
|
10431
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10592
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-continue.md
|
|
10432
10593
|
*/
|
|
10433
10594
|
'unicorn/no-useless-continue'?: Linter.RuleEntry<[]>;
|
|
10434
10595
|
/**
|
|
10435
10596
|
* Disallow unnecessary existence checks before deletion.
|
|
10436
10597
|
*
|
|
10437
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10598
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-delete-check.md
|
|
10438
10599
|
*/
|
|
10439
10600
|
'unicorn/no-useless-delete-check'?: Linter.RuleEntry<[]>;
|
|
10440
10601
|
/**
|
|
10441
10602
|
* Disallow `else` after a statement that exits.
|
|
10442
10603
|
*
|
|
10443
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10604
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-else.md
|
|
10444
10605
|
*/
|
|
10445
10606
|
'unicorn/no-useless-else'?: Linter.RuleEntry<[]>;
|
|
10446
10607
|
/**
|
|
10447
10608
|
* Disallow unnecessary `Error.captureStackTrace(…)`.
|
|
10448
10609
|
*
|
|
10449
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10610
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-error-capture-stack-trace.md
|
|
10450
10611
|
*/
|
|
10451
10612
|
'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
|
|
10452
10613
|
/**
|
|
10453
10614
|
* Disallow useless fallback when spreading in object literals.
|
|
10454
10615
|
*
|
|
10455
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10616
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-fallback-in-spread.md
|
|
10456
10617
|
*/
|
|
10457
10618
|
'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
|
|
10458
10619
|
/**
|
|
10459
10620
|
* Disallow unnecessary `.toArray()` on iterators.
|
|
10460
10621
|
*
|
|
10461
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10622
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-iterator-to-array.md
|
|
10462
10623
|
*/
|
|
10463
10624
|
'unicorn/no-useless-iterator-to-array'?: Linter.RuleEntry<[]>;
|
|
10464
10625
|
/**
|
|
10465
10626
|
* Disallow useless array length check.
|
|
10466
10627
|
*
|
|
10467
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10628
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-length-check.md
|
|
10468
10629
|
*/
|
|
10469
10630
|
'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
|
|
10470
10631
|
/**
|
|
10471
10632
|
* Disallow unnecessary operands in logical expressions involving boolean
|
|
10472
10633
|
* literals.
|
|
10473
10634
|
*
|
|
10474
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10635
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-logical-operand.md
|
|
10475
10636
|
*/
|
|
10476
10637
|
'unicorn/no-useless-logical-operand'?: Linter.RuleEntry<[]>;
|
|
10477
10638
|
/**
|
|
10478
10639
|
* Disallow useless overrides of class methods.
|
|
10479
10640
|
*
|
|
10480
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10641
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-override.md
|
|
10481
10642
|
*/
|
|
10482
10643
|
'unicorn/no-useless-override'?: Linter.RuleEntry<[]>;
|
|
10483
10644
|
/**
|
|
10484
10645
|
* Disallow returning/yielding `Promise.resolve/reject()` in async functions
|
|
10485
10646
|
* or promise callbacks
|
|
10486
10647
|
*
|
|
10487
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10648
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-promise-resolve-reject.md
|
|
10488
10649
|
*/
|
|
10489
10650
|
'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
|
|
10490
10651
|
/**
|
|
10491
10652
|
* Disallow redundant re-exports.
|
|
10492
10653
|
*
|
|
10493
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10654
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-re-export.md
|
|
10494
10655
|
*/
|
|
10495
10656
|
'unicorn/no-useless-re-export'?: Linter.RuleEntry<[]>;
|
|
10496
10657
|
/**
|
|
10497
10658
|
* Disallow simple recursive function calls that can be replaced with a loop.
|
|
10498
10659
|
*
|
|
10499
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10660
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-recursion.md
|
|
10500
10661
|
*/
|
|
10501
10662
|
'unicorn/no-useless-recursion'?: Linter.RuleEntry<[]>;
|
|
10502
10663
|
/**
|
|
10503
10664
|
* Disallow unnecessary `Set` construction around `Set` methods.
|
|
10504
10665
|
*
|
|
10505
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10666
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-set-construction.md
|
|
10506
10667
|
*/
|
|
10507
10668
|
'unicorn/no-useless-set-construction'?: Linter.RuleEntry<[]>;
|
|
10508
10669
|
/**
|
|
10509
10670
|
* Disallow unnecessary spread.
|
|
10510
10671
|
*
|
|
10511
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10672
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-spread.md
|
|
10512
10673
|
*/
|
|
10513
10674
|
'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
|
|
10514
10675
|
/**
|
|
10515
10676
|
* Disallow useless case in switch statements.
|
|
10516
10677
|
*
|
|
10517
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10678
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-switch-case.md
|
|
10518
10679
|
*/
|
|
10519
10680
|
'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
|
|
10520
10681
|
/**
|
|
10521
10682
|
* Disallow useless template literal expressions.
|
|
10522
10683
|
*
|
|
10523
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10684
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-template-literals.md
|
|
10524
10685
|
*/
|
|
10525
10686
|
'unicorn/no-useless-template-literals'?: Linter.RuleEntry<[]>;
|
|
10526
10687
|
/**
|
|
10527
10688
|
* Disallow useless `undefined`.
|
|
10528
10689
|
*
|
|
10529
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10690
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-undefined.md
|
|
10530
10691
|
*/
|
|
10531
10692
|
'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
|
|
10532
10693
|
/**
|
|
10533
10694
|
* Disallow returning or exporting resources declared with `using`, including
|
|
10534
10695
|
* through capturing functions.
|
|
10535
10696
|
*
|
|
10536
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10697
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-using-resource-escape.md
|
|
10537
10698
|
*/
|
|
10538
10699
|
'unicorn/no-using-resource-escape'?: Linter.RuleEntry<[]>;
|
|
10539
10700
|
/**
|
|
10540
10701
|
* Disallow the bitwise XOR operator where exponentiation was likely intended.
|
|
10541
10702
|
*
|
|
10542
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10703
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-xor-as-exponentiation.md
|
|
10543
10704
|
*/
|
|
10544
10705
|
'unicorn/no-xor-as-exponentiation'?: Linter.RuleEntry<[]>;
|
|
10545
10706
|
/**
|
|
10546
|
-
*
|
|
10707
|
+
* Require consistent decimal numbers without redundant zeros.
|
|
10547
10708
|
*
|
|
10548
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10709
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-zero-fractions.md
|
|
10549
10710
|
*/
|
|
10550
10711
|
'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
|
|
10551
10712
|
/**
|
|
10552
10713
|
* Enforce proper case for numeric literals.
|
|
10553
10714
|
*
|
|
10554
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10715
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/number-literal-case.md
|
|
10555
10716
|
*/
|
|
10556
10717
|
'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
|
|
10557
10718
|
/**
|
|
10558
10719
|
* Enforce the style of numeric separators by correctly grouping digits.
|
|
10559
10720
|
*
|
|
10560
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10721
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/numeric-separators-style.md
|
|
10561
10722
|
*/
|
|
10562
10723
|
'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
|
|
10563
10724
|
/**
|
|
10564
10725
|
* Require assignment operator shorthand where possible.
|
|
10565
10726
|
*
|
|
10566
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10727
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/operator-assignment.md
|
|
10567
10728
|
*/
|
|
10568
10729
|
'unicorn/operator-assignment'?: Linter.RuleEntry<UnicornOperatorAssignment>;
|
|
10569
10730
|
/**
|
|
10570
10731
|
* Prefer `AbortSignal.any()` over manually forwarding abort events between
|
|
10571
10732
|
* signals.
|
|
10572
10733
|
*
|
|
10573
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10734
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-abort-signal-any.md
|
|
10574
10735
|
*/
|
|
10575
10736
|
'unicorn/prefer-abort-signal-any'?: Linter.RuleEntry<[]>;
|
|
10576
10737
|
/**
|
|
10577
10738
|
* Prefer `AbortSignal.timeout()` over manually aborting an `AbortController`
|
|
10578
10739
|
* with `setTimeout()`.
|
|
10579
10740
|
*
|
|
10580
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10741
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-abort-signal-timeout.md
|
|
10581
10742
|
*/
|
|
10582
10743
|
'unicorn/prefer-abort-signal-timeout'?: Linter.RuleEntry<[]>;
|
|
10583
10744
|
/**
|
|
10584
10745
|
* Prefer `.addEventListener()` and `.removeEventListener()` over
|
|
10585
10746
|
* `on`-functions.
|
|
10586
10747
|
*
|
|
10587
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10748
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-add-event-listener.md
|
|
10588
10749
|
*/
|
|
10589
10750
|
'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
|
|
10590
10751
|
/**
|
|
10591
10752
|
* Prefer an options object over a boolean in `.addEventListener()`.
|
|
10592
10753
|
*
|
|
10593
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10754
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-add-event-listener-options.md
|
|
10594
10755
|
*/
|
|
10595
10756
|
'unicorn/prefer-add-event-listener-options'?: Linter.RuleEntry<[]>;
|
|
10596
10757
|
/**
|
|
10597
10758
|
* Prefer `AggregateError` when throwing collected errors.
|
|
10598
10759
|
*
|
|
10599
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10760
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-aggregate-error.md
|
|
10600
10761
|
*/
|
|
10601
10762
|
'unicorn/prefer-aggregate-error'?: Linter.RuleEntry<[]>;
|
|
10602
10763
|
/**
|
|
10603
10764
|
* Prefer `.find(…)` and `.findLast(…)` over the first or last element from
|
|
10604
10765
|
* `.filter(…)`.
|
|
10605
10766
|
*
|
|
10606
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10767
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-find.md
|
|
10607
10768
|
*/
|
|
10608
10769
|
'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
|
|
10609
10770
|
/**
|
|
10610
10771
|
* Prefer `Array#flat()` over legacy techniques to flatten arrays.
|
|
10611
10772
|
*
|
|
10612
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10773
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-flat.md
|
|
10613
10774
|
*/
|
|
10614
10775
|
'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
|
|
10615
10776
|
/**
|
|
10616
10777
|
* Prefer `.flatMap(…)` over `.map(…).flat()` and `.filter(…).flatMap(…)`.
|
|
10617
10778
|
*
|
|
10618
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10779
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-flat-map.md
|
|
10619
10780
|
*/
|
|
10620
10781
|
'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
|
|
10621
10782
|
/**
|
|
10622
10783
|
* Prefer `Array.fromAsync()` over array accumulation loops.
|
|
10623
10784
|
*
|
|
10624
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10785
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-from-async.md
|
|
10625
10786
|
*/
|
|
10626
10787
|
'unicorn/prefer-array-from-async'?: Linter.RuleEntry<[]>;
|
|
10627
10788
|
/**
|
|
10628
10789
|
* Prefer using the `Array.from()` mapping function argument.
|
|
10629
10790
|
*
|
|
10630
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10791
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-from-map.md
|
|
10631
10792
|
*/
|
|
10632
10793
|
'unicorn/prefer-array-from-map'?: Linter.RuleEntry<[]>;
|
|
10633
10794
|
/**
|
|
10634
10795
|
* Prefer `Array.from({length}, …)` when creating range arrays.
|
|
10635
10796
|
*
|
|
10636
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10797
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-from-range.md
|
|
10637
10798
|
*/
|
|
10638
10799
|
'unicorn/prefer-array-from-range'?: Linter.RuleEntry<[]>;
|
|
10639
10800
|
/**
|
|
10640
10801
|
* Prefer `Array#{indexOf,lastIndexOf}()` over
|
|
10641
10802
|
* `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
|
|
10642
10803
|
*
|
|
10643
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10804
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-index-of.md
|
|
10644
10805
|
*/
|
|
10645
10806
|
'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
|
|
10646
10807
|
/**
|
|
10647
10808
|
* Prefer iterating an array directly or with `Array#keys()` over
|
|
10648
10809
|
* `Array#entries()` when the index or value is unused.
|
|
10649
10810
|
*
|
|
10650
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10811
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-iterable-methods.md
|
|
10651
10812
|
*/
|
|
10652
10813
|
'unicorn/prefer-array-iterable-methods'?: Linter.RuleEntry<[]>;
|
|
10653
10814
|
/**
|
|
10654
10815
|
* Prefer last-oriented array methods over `Array#reverse()` or
|
|
10655
10816
|
* `Array#toReversed()` followed by a method.
|
|
10656
10817
|
*
|
|
10657
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10818
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-last-methods.md
|
|
10658
10819
|
*/
|
|
10659
10820
|
'unicorn/prefer-array-last-methods'?: Linter.RuleEntry<[]>;
|
|
10660
10821
|
/**
|
|
10661
10822
|
* Prefer `Array#slice()` over `Array#splice()` when reading from the returned
|
|
10662
10823
|
* array.
|
|
10663
10824
|
*
|
|
10664
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10825
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-slice.md
|
|
10665
10826
|
*/
|
|
10666
10827
|
'unicorn/prefer-array-slice'?: Linter.RuleEntry<[]>;
|
|
10667
10828
|
/**
|
|
10668
10829
|
* Prefer `.some(…)` over `.filter(…).length` check and
|
|
10669
10830
|
* `.{find,findLast,findIndex,findLastIndex}(…)`.
|
|
10670
10831
|
*
|
|
10671
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10832
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-some.md
|
|
10672
10833
|
*/
|
|
10673
10834
|
'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
|
|
10674
10835
|
/**
|
|
10675
10836
|
* Prefer `.at()` method for index access and `String#charAt()`.
|
|
10676
10837
|
*
|
|
10677
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10838
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-at.md
|
|
10678
10839
|
*/
|
|
10679
10840
|
'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
|
|
10680
10841
|
/**
|
|
10681
10842
|
* Prefer `await` over promise chaining.
|
|
10682
10843
|
*
|
|
10683
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10844
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-await.md
|
|
10684
10845
|
*/
|
|
10685
10846
|
'unicorn/prefer-await'?: Linter.RuleEntry<[]>;
|
|
10686
10847
|
/**
|
|
10687
10848
|
* Prefer `BigInt` literals over the constructor.
|
|
10688
10849
|
*
|
|
10689
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10850
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-bigint-literals.md
|
|
10690
10851
|
*/
|
|
10691
10852
|
'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>;
|
|
10692
10853
|
/**
|
|
10693
10854
|
* Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and
|
|
10694
10855
|
* `Blob#text()` over `FileReader#readAsText(…)`.
|
|
10695
10856
|
*
|
|
10696
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10857
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-blob-reading-methods.md
|
|
10697
10858
|
*/
|
|
10698
10859
|
'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
|
|
10699
10860
|
/**
|
|
10700
10861
|
* Prefer block statements over IIFEs used only for scoping.
|
|
10701
10862
|
*
|
|
10702
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10863
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-block-statement-over-iife.md
|
|
10703
10864
|
*/
|
|
10704
10865
|
'unicorn/prefer-block-statement-over-iife'?: Linter.RuleEntry<[]>;
|
|
10705
10866
|
/**
|
|
10706
10867
|
* Prefer directly returning boolean expressions over `if` statements.
|
|
10707
10868
|
*
|
|
10708
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10869
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-boolean-return.md
|
|
10709
10870
|
*/
|
|
10710
10871
|
'unicorn/prefer-boolean-return'?: Linter.RuleEntry<[]>;
|
|
10711
10872
|
/**
|
|
10712
10873
|
* Prefer class field declarations over `this` assignments in constructors.
|
|
10713
10874
|
*
|
|
10714
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10875
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-class-fields.md
|
|
10715
10876
|
*/
|
|
10716
10877
|
'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
|
|
10717
10878
|
/**
|
|
10718
10879
|
* Prefer using `Element#classList.toggle()` to toggle class names.
|
|
10719
10880
|
*
|
|
10720
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10881
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-classlist-toggle.md
|
|
10721
10882
|
*/
|
|
10722
10883
|
'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>;
|
|
10723
10884
|
/**
|
|
10724
10885
|
* Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and
|
|
10725
10886
|
* `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
|
|
10726
10887
|
*
|
|
10727
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10888
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-code-point.md
|
|
10728
10889
|
*/
|
|
10729
10890
|
'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
|
|
10730
10891
|
/**
|
|
10731
10892
|
* Prefer combining consecutive guards with identical exit statements.
|
|
10732
10893
|
*
|
|
10733
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10894
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-combined-guards.md
|
|
10734
10895
|
*/
|
|
10735
10896
|
'unicorn/prefer-combined-guards'?: Linter.RuleEntry<UnicornPreferCombinedGuards>;
|
|
10736
10897
|
/**
|
|
10737
10898
|
* Prefer early continues over conditionals wrapping the remainder of the loop
|
|
10738
10899
|
* body.
|
|
10739
10900
|
*
|
|
10740
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10901
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-continue.md
|
|
10741
10902
|
*/
|
|
10742
10903
|
'unicorn/prefer-continue'?: Linter.RuleEntry<UnicornPreferContinue>;
|
|
10743
10904
|
/**
|
|
10744
10905
|
* Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
|
|
10745
10906
|
*
|
|
10746
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10907
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-date-now.md
|
|
10747
10908
|
*/
|
|
10748
10909
|
'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
|
|
10749
10910
|
/**
|
|
10750
|
-
* Prefer default parameters over reassignment
|
|
10911
|
+
* Prefer default parameters and destructuring defaults over reassignment and
|
|
10912
|
+
* fallback expressions.
|
|
10751
10913
|
*
|
|
10752
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10914
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-default-parameters.md
|
|
10753
10915
|
*/
|
|
10754
10916
|
'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
|
|
10755
10917
|
/**
|
|
10756
10918
|
* Prefer direct iteration over default iterator method calls.
|
|
10757
10919
|
*
|
|
10758
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10920
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-direct-iteration.md
|
|
10759
10921
|
*/
|
|
10760
10922
|
'unicorn/prefer-direct-iteration'?: Linter.RuleEntry<[]>;
|
|
10761
10923
|
/**
|
|
10762
10924
|
* Prefer using `using`/`await using` over manual `try`/`finally` resource
|
|
10763
10925
|
* disposal.
|
|
10764
10926
|
*
|
|
10765
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10927
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-dispose.md
|
|
10766
10928
|
*/
|
|
10767
10929
|
'unicorn/prefer-dispose'?: Linter.RuleEntry<[]>;
|
|
10768
10930
|
/**
|
|
10769
10931
|
* Prefer `Element#append()` over `Node#appendChild()`.
|
|
10770
10932
|
*
|
|
10771
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10933
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-dom-node-append.md
|
|
10772
10934
|
*/
|
|
10773
10935
|
'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
|
|
10774
10936
|
/**
|
|
10775
10937
|
* Renamed to `unicorn/dom-node-dataset`.
|
|
10776
10938
|
*
|
|
10777
10939
|
* @deprecated
|
|
10778
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10940
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
|
|
10779
10941
|
*/
|
|
10780
10942
|
'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
|
|
10781
10943
|
/**
|
|
10782
10944
|
* Prefer `.getHTML()` and `.setHTML()` over `.innerHTML`.
|
|
10783
10945
|
*
|
|
10784
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10946
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-dom-node-html-methods.md
|
|
10785
10947
|
*/
|
|
10786
10948
|
'unicorn/prefer-dom-node-html-methods'?: Linter.RuleEntry<UnicornPreferDomNodeHtmlMethods>;
|
|
10787
10949
|
/**
|
|
10788
10950
|
* Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
|
|
10789
10951
|
*
|
|
10790
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10952
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-dom-node-remove.md
|
|
10791
10953
|
*/
|
|
10792
10954
|
'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
|
|
10793
10955
|
/**
|
|
10794
10956
|
* Prefer `.replaceChildren()` when replacing DOM children.
|
|
10795
10957
|
*
|
|
10796
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10958
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-dom-node-replace-children.md
|
|
10797
10959
|
*/
|
|
10798
10960
|
'unicorn/prefer-dom-node-replace-children'?: Linter.RuleEntry<[]>;
|
|
10799
10961
|
/**
|
|
10800
10962
|
* Prefer `.textContent` over `.innerText`.
|
|
10801
10963
|
*
|
|
10802
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10964
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-dom-node-text-content.md
|
|
10803
10965
|
*/
|
|
10804
10966
|
'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
|
|
10805
10967
|
/**
|
|
10806
10968
|
* Prefer early returns over conditionals wrapping the remainder of the
|
|
10807
10969
|
* function body.
|
|
10808
10970
|
*
|
|
10809
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10971
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-early-return.md
|
|
10810
10972
|
*/
|
|
10811
10973
|
'unicorn/prefer-early-return'?: Linter.RuleEntry<UnicornPreferEarlyReturn>;
|
|
10812
10974
|
/**
|
|
10813
10975
|
* Prefer `else if` over adjacent `if` statements with related conditions.
|
|
10814
10976
|
*
|
|
10815
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10977
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-else-if.md
|
|
10816
10978
|
*/
|
|
10817
10979
|
'unicorn/prefer-else-if'?: Linter.RuleEntry<[]>;
|
|
10818
10980
|
/**
|
|
10819
10981
|
* Prefer `Error.isError()` when checking for errors.
|
|
10820
10982
|
*
|
|
10821
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10983
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-error-is-error.md
|
|
10822
10984
|
*/
|
|
10823
10985
|
'unicorn/prefer-error-is-error'?: Linter.RuleEntry<[]>;
|
|
10986
|
+
/**
|
|
10987
|
+
* Prefer escape sequences for irregular whitespace characters.
|
|
10988
|
+
*
|
|
10989
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-escaped-irregular-whitespace.md
|
|
10990
|
+
*/
|
|
10991
|
+
'unicorn/prefer-escaped-irregular-whitespace'?: Linter.RuleEntry<[]>;
|
|
10824
10992
|
/**
|
|
10825
10993
|
* Prefer `EventTarget` over `EventEmitter`.
|
|
10826
10994
|
*
|
|
10827
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10995
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-event-target.md
|
|
10828
10996
|
*/
|
|
10829
10997
|
'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
|
|
10830
10998
|
/**
|
|
10831
|
-
*
|
|
10999
|
+
* Moved to `eslint-cssicorn` as `cssicorn/prefer-explicit-viewport-units`.
|
|
10832
11000
|
*
|
|
10833
|
-
* @
|
|
11001
|
+
* @deprecated
|
|
11002
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#prefer-explicit-viewport-units
|
|
10834
11003
|
*/
|
|
10835
|
-
'unicorn/prefer-explicit-viewport-units'?: Linter.RuleEntry<
|
|
11004
|
+
'unicorn/prefer-explicit-viewport-units'?: Linter.RuleEntry<[]>;
|
|
10836
11005
|
/**
|
|
10837
11006
|
* Prefer `export…from` when re-exporting.
|
|
10838
11007
|
*
|
|
10839
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11008
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-export-from.md
|
|
10840
11009
|
*/
|
|
10841
11010
|
'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
|
|
10842
11011
|
/**
|
|
10843
11012
|
* Prefer flat `Math.min()` and `Math.max()` calls over nested calls.
|
|
10844
11013
|
*
|
|
10845
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11014
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-flat-math-min-max.md
|
|
10846
11015
|
*/
|
|
10847
11016
|
'unicorn/prefer-flat-math-min-max'?: Linter.RuleEntry<[]>;
|
|
10848
11017
|
/**
|
|
10849
11018
|
* Prefer `.getOrInsertComputed()` when the default value has side effects.
|
|
10850
11019
|
*
|
|
10851
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11020
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-get-or-insert-computed.md
|
|
10852
11021
|
*/
|
|
10853
11022
|
'unicorn/prefer-get-or-insert-computed'?: Linter.RuleEntry<[]>;
|
|
10854
11023
|
/**
|
|
10855
11024
|
* Prefer global numeric constants over `Number` static properties.
|
|
10856
11025
|
*
|
|
10857
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11026
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-global-number-constants.md
|
|
10858
11027
|
*/
|
|
10859
11028
|
'unicorn/prefer-global-number-constants'?: Linter.RuleEntry<[]>;
|
|
10860
11029
|
/**
|
|
10861
11030
|
* Prefer `globalThis` over `window`, `self`, and `global`.
|
|
10862
11031
|
*
|
|
10863
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11032
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-global-this.md
|
|
10864
11033
|
*/
|
|
10865
11034
|
'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
|
|
10866
11035
|
/**
|
|
10867
11036
|
* Prefer `Object.groupBy()` or `Map.groupBy()` over manual grouping.
|
|
10868
11037
|
*
|
|
10869
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11038
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-group-by.md
|
|
10870
11039
|
*/
|
|
10871
11040
|
'unicorn/prefer-group-by'?: Linter.RuleEntry<[]>;
|
|
10872
11041
|
/**
|
|
10873
11042
|
* Prefer `.has()` when checking existence.
|
|
10874
11043
|
*
|
|
10875
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11044
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-has-check.md
|
|
10876
11045
|
*/
|
|
10877
11046
|
'unicorn/prefer-has-check'?: Linter.RuleEntry<[]>;
|
|
10878
11047
|
/**
|
|
10879
11048
|
* Prefer moving code shared by all branches of an `if` statement out of the
|
|
10880
11049
|
* branches.
|
|
10881
11050
|
*
|
|
10882
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11051
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-hoisting-branch-code.md
|
|
10883
11052
|
*/
|
|
10884
11053
|
'unicorn/prefer-hoisting-branch-code'?: Linter.RuleEntry<[]>;
|
|
10885
11054
|
/**
|
|
10886
11055
|
* Prefer HTTPS over HTTP.
|
|
10887
11056
|
*
|
|
10888
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11057
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-https.md
|
|
10889
11058
|
*/
|
|
10890
11059
|
'unicorn/prefer-https'?: Linter.RuleEntry<UnicornPreferHttps>;
|
|
10891
11060
|
/**
|
|
10892
11061
|
* Prefer identifiers over string literals in import and export specifiers.
|
|
10893
11062
|
*
|
|
10894
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11063
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
|
|
10895
11064
|
*/
|
|
10896
11065
|
'unicorn/prefer-identifier-import-export-specifiers'?: Linter.RuleEntry<[]>;
|
|
10897
11066
|
/**
|
|
10898
11067
|
* Prefer `import.meta.{dirname,filename}` over legacy techniques for getting
|
|
10899
11068
|
* file paths.
|
|
10900
11069
|
*
|
|
10901
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11070
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-import-meta-properties.md
|
|
10902
11071
|
*/
|
|
10903
11072
|
'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
|
|
10904
11073
|
/**
|
|
10905
11074
|
* Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and
|
|
10906
11075
|
* `Array#some()` when checking for existence or non-existence.
|
|
10907
11076
|
*
|
|
10908
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11077
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-includes.md
|
|
10909
11078
|
*/
|
|
10910
11079
|
'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
|
|
10911
11080
|
/**
|
|
10912
11081
|
* Prefer `.includes()` over repeated equality comparisons.
|
|
10913
11082
|
*
|
|
10914
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11083
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
|
|
10915
11084
|
*/
|
|
10916
11085
|
'unicorn/prefer-includes-over-repeated-comparisons'?: Linter.RuleEntry<UnicornPreferIncludesOverRepeatedComparisons>;
|
|
10917
11086
|
/**
|
|
10918
11087
|
* Prefer passing iterables directly to constructors instead of filling empty
|
|
10919
11088
|
* collections.
|
|
10920
11089
|
*
|
|
10921
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11090
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-iterable-in-constructor.md
|
|
10922
11091
|
*/
|
|
10923
11092
|
'unicorn/prefer-iterable-in-constructor'?: Linter.RuleEntry<[]>;
|
|
10924
11093
|
/**
|
|
10925
11094
|
* Prefer `Iterator.concat(…)` over temporary spread arrays.
|
|
10926
11095
|
*
|
|
10927
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11096
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-iterator-concat.md
|
|
10928
11097
|
*/
|
|
10929
11098
|
'unicorn/prefer-iterator-concat'?: Linter.RuleEntry<[]>;
|
|
10930
11099
|
/**
|
|
10931
11100
|
* Prefer iterator helpers over temporary arrays from iterators.
|
|
10932
11101
|
*
|
|
10933
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11102
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-iterator-helpers.md
|
|
10934
11103
|
*/
|
|
10935
11104
|
'unicorn/prefer-iterator-helpers'?: Linter.RuleEntry<[]>;
|
|
10936
11105
|
/**
|
|
10937
11106
|
* Prefer `Iterator#toArray()` over temporary arrays from iterator spreads.
|
|
10938
11107
|
*
|
|
10939
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11108
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-iterator-to-array.md
|
|
10940
11109
|
*/
|
|
10941
11110
|
'unicorn/prefer-iterator-to-array'?: Linter.RuleEntry<[]>;
|
|
10942
11111
|
/**
|
|
10943
11112
|
* Prefer moving `.toArray()` to the end of iterator helper chains.
|
|
10944
11113
|
*
|
|
10945
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11114
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-iterator-to-array-at-end.md
|
|
10946
11115
|
*/
|
|
10947
11116
|
'unicorn/prefer-iterator-to-array-at-end'?: Linter.RuleEntry<[]>;
|
|
10948
11117
|
/**
|
|
10949
11118
|
* Prefer `Iterator.zip()` over parallel-array indexing.
|
|
10950
11119
|
*
|
|
10951
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11120
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-iterator-zip.md
|
|
10952
11121
|
*/
|
|
10953
11122
|
'unicorn/prefer-iterator-zip'?: Linter.RuleEntry<[]>;
|
|
10954
11123
|
/**
|
|
10955
11124
|
* Prefer JSON imports over reading and parsing JSON files.
|
|
10956
11125
|
*
|
|
10957
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11126
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-json-import.md
|
|
10958
11127
|
*/
|
|
10959
11128
|
'unicorn/prefer-json-import'?: Linter.RuleEntry<[]>;
|
|
10960
11129
|
/**
|
|
10961
11130
|
* Renamed to `unicorn/consistent-json-file-read`.
|
|
10962
11131
|
*
|
|
10963
11132
|
* @deprecated
|
|
10964
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11133
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
|
|
10965
11134
|
*/
|
|
10966
11135
|
'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
|
|
10967
11136
|
/**
|
|
10968
11137
|
* Prefer `KeyboardEvent#key` over deprecated keyboard event properties.
|
|
10969
11138
|
*
|
|
10970
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11139
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-keyboard-event-key.md
|
|
10971
11140
|
*/
|
|
10972
11141
|
'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
|
|
11142
|
+
/**
|
|
11143
|
+
* Prefer literal printable ASCII characters over escape sequences.
|
|
11144
|
+
*
|
|
11145
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-literal-ascii.md
|
|
11146
|
+
*/
|
|
11147
|
+
'unicorn/prefer-literal-ascii'?: Linter.RuleEntry<[]>;
|
|
10973
11148
|
/**
|
|
10974
11149
|
* Prefer `location.assign()` over assigning to `location.href`.
|
|
10975
11150
|
*
|
|
10976
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11151
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-location-assign.md
|
|
10977
11152
|
*/
|
|
10978
11153
|
'unicorn/prefer-location-assign'?: Linter.RuleEntry<[]>;
|
|
10979
11154
|
/**
|
|
10980
11155
|
* Prefer using a logical operator over a ternary.
|
|
10981
11156
|
*
|
|
10982
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11157
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-logical-operator-over-ternary.md
|
|
10983
11158
|
*/
|
|
10984
11159
|
'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
|
|
10985
11160
|
/**
|
|
10986
11161
|
* Prefer `new Map()` over `Object.fromEntries()` when using the result as a
|
|
10987
11162
|
* map.
|
|
10988
11163
|
*
|
|
10989
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11164
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-map-from-entries.md
|
|
10990
11165
|
*/
|
|
10991
11166
|
'unicorn/prefer-map-from-entries'?: Linter.RuleEntry<[]>;
|
|
10992
11167
|
/**
|
|
10993
11168
|
* Prefer `Math.abs()` over manual absolute value expressions and symmetric
|
|
10994
11169
|
* range checks.
|
|
10995
11170
|
*
|
|
10996
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11171
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-math-abs.md
|
|
10997
11172
|
*/
|
|
10998
11173
|
'unicorn/prefer-math-abs'?: Linter.RuleEntry<[]>;
|
|
10999
11174
|
/**
|
|
11000
11175
|
* Prefer `Math` constants over their approximate numeric values.
|
|
11001
11176
|
*
|
|
11002
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11177
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-math-constants.md
|
|
11003
11178
|
*/
|
|
11004
11179
|
'unicorn/prefer-math-constants'?: Linter.RuleEntry<[]>;
|
|
11005
11180
|
/**
|
|
11006
11181
|
* Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
|
|
11007
11182
|
*
|
|
11008
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11183
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-math-min-max.md
|
|
11009
11184
|
*/
|
|
11010
11185
|
'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
|
|
11011
11186
|
/**
|
|
11012
11187
|
* Prefer `Math.trunc()` for truncating numbers.
|
|
11013
11188
|
*
|
|
11014
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11189
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-math-trunc.md
|
|
11015
11190
|
*/
|
|
11016
11191
|
'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
|
|
11017
11192
|
/**
|
|
11018
|
-
*
|
|
11193
|
+
* Moved to `eslint-cssicorn` as `cssicorn/prefer-media-feature-range-syntax`.
|
|
11019
11194
|
*
|
|
11020
|
-
* @
|
|
11195
|
+
* @deprecated
|
|
11196
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#prefer-media-feature-range-syntax
|
|
11021
11197
|
*/
|
|
11022
11198
|
'unicorn/prefer-media-feature-range-syntax'?: Linter.RuleEntry<[]>;
|
|
11023
11199
|
/**
|
|
11024
11200
|
* Prefer moving ternaries into the minimal varying part of an expression.
|
|
11025
11201
|
*
|
|
11026
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11202
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-minimal-ternary.md
|
|
11027
11203
|
*/
|
|
11028
11204
|
'unicorn/prefer-minimal-ternary'?: Linter.RuleEntry<UnicornPreferMinimalTernary>;
|
|
11029
11205
|
/**
|
|
11030
11206
|
* Prefer modern DOM APIs.
|
|
11031
11207
|
*
|
|
11032
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11208
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-modern-dom-apis.md
|
|
11033
11209
|
*/
|
|
11034
11210
|
'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
|
|
11035
11211
|
/**
|
|
11036
11212
|
* Prefer modern `Math` APIs over legacy patterns.
|
|
11037
11213
|
*
|
|
11038
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11214
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-modern-math-apis.md
|
|
11039
11215
|
*/
|
|
11040
11216
|
'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
|
|
11041
11217
|
/**
|
|
11042
11218
|
* Prefer JavaScript modules (ESM) over CommonJS.
|
|
11043
11219
|
*
|
|
11044
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11220
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-module.md
|
|
11045
11221
|
*/
|
|
11046
11222
|
'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
|
|
11047
11223
|
/**
|
|
11048
11224
|
* Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol`
|
|
11049
11225
|
* directly.
|
|
11050
11226
|
*
|
|
11051
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11227
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-native-coercion-functions.md
|
|
11052
11228
|
*/
|
|
11053
11229
|
'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
|
|
11054
11230
|
/**
|
|
11055
11231
|
* Prefer negative index over `.length - index` when possible.
|
|
11056
11232
|
*
|
|
11057
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11233
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-negative-index.md
|
|
11058
11234
|
*/
|
|
11059
11235
|
'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
|
|
11060
11236
|
/**
|
|
11061
11237
|
* Prefer using the `node:` protocol when importing Node.js builtin modules.
|
|
11062
11238
|
*
|
|
11063
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11239
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-node-protocol.md
|
|
11064
11240
|
*/
|
|
11065
11241
|
'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
|
|
11066
11242
|
/**
|
|
11067
11243
|
* Prefer `Number()` over `parseFloat()` and base-10 `parseInt()`.
|
|
11068
11244
|
*
|
|
11069
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11245
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-number-coercion.md
|
|
11070
11246
|
*/
|
|
11071
11247
|
'unicorn/prefer-number-coercion'?: Linter.RuleEntry<[]>;
|
|
11072
11248
|
/**
|
|
11073
11249
|
* Prefer `Number.isSafeInteger()` over integer checks.
|
|
11074
11250
|
*
|
|
11075
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11251
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-number-is-safe-integer.md
|
|
11076
11252
|
*/
|
|
11077
11253
|
'unicorn/prefer-number-is-safe-integer'?: Linter.RuleEntry<[]>;
|
|
11078
11254
|
/**
|
|
11079
11255
|
* Prefer `Number` static methods over global functions and optionally static
|
|
11080
11256
|
* properties over global constants.
|
|
11081
11257
|
*
|
|
11082
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11258
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-number-properties.md
|
|
11083
11259
|
*/
|
|
11084
11260
|
'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
|
|
11085
11261
|
/**
|
|
11086
11262
|
* Prefer `Object.defineProperties()` over multiple `Object.defineProperty()`
|
|
11087
11263
|
* calls.
|
|
11088
11264
|
*
|
|
11089
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11265
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-object-define-properties.md
|
|
11090
11266
|
*/
|
|
11091
11267
|
'unicorn/prefer-object-define-properties'?: Linter.RuleEntry<[]>;
|
|
11092
11268
|
/**
|
|
11093
11269
|
* Prefer object destructuring defaults over default object literals with
|
|
11094
11270
|
* spread.
|
|
11095
11271
|
*
|
|
11096
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11272
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-object-destructuring-defaults.md
|
|
11097
11273
|
*/
|
|
11098
11274
|
'unicorn/prefer-object-destructuring-defaults'?: Linter.RuleEntry<[]>;
|
|
11099
11275
|
/**
|
|
11100
11276
|
* Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs
|
|
11101
11277
|
* into an object.
|
|
11102
11278
|
*
|
|
11103
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11279
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-object-from-entries.md
|
|
11104
11280
|
*/
|
|
11105
11281
|
'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
|
|
11106
11282
|
/**
|
|
11107
11283
|
* Prefer the most specific `Object` iterable method.
|
|
11108
11284
|
*
|
|
11109
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11285
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-object-iterable-methods.md
|
|
11110
11286
|
*/
|
|
11111
11287
|
'unicorn/prefer-object-iterable-methods'?: Linter.RuleEntry<[]>;
|
|
11112
11288
|
/**
|
|
11113
11289
|
* Prefer observer APIs over resize and scroll listeners with layout reads.
|
|
11114
11290
|
*
|
|
11115
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11291
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-observer-apis.md
|
|
11116
11292
|
*/
|
|
11117
11293
|
'unicorn/prefer-observer-apis'?: Linter.RuleEntry<[]>;
|
|
11118
11294
|
/**
|
|
11119
11295
|
* Prefer omitting the `catch` binding parameter.
|
|
11120
11296
|
*
|
|
11121
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11297
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-optional-catch-binding.md
|
|
11122
11298
|
*/
|
|
11123
11299
|
'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
|
|
11124
11300
|
/**
|
|
11125
11301
|
* Prefer `Path2D` for repeatedly drawn canvas paths.
|
|
11126
11302
|
*
|
|
11127
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11303
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-path2d.md
|
|
11128
11304
|
*/
|
|
11129
11305
|
'unicorn/prefer-path2d'?: Linter.RuleEntry<[]>;
|
|
11130
11306
|
/**
|
|
11131
11307
|
* Prefer private class fields over the underscore-prefix convention.
|
|
11132
11308
|
*
|
|
11133
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11309
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-private-class-fields.md
|
|
11134
11310
|
*/
|
|
11135
11311
|
'unicorn/prefer-private-class-fields'?: Linter.RuleEntry<[]>;
|
|
11312
|
+
/**
|
|
11313
|
+
* Prefer `Promise.resolve()` and `Promise.reject()` over trivial `new
|
|
11314
|
+
* Promise()` calls.
|
|
11315
|
+
*
|
|
11316
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-promise-static-methods.md
|
|
11317
|
+
*/
|
|
11318
|
+
'unicorn/prefer-promise-static-methods'?: Linter.RuleEntry<[]>;
|
|
11136
11319
|
/**
|
|
11137
11320
|
* Prefer `Promise.try()` over promise-wrapping boilerplate.
|
|
11138
11321
|
*
|
|
11139
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11322
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-promise-try.md
|
|
11140
11323
|
*/
|
|
11141
11324
|
'unicorn/prefer-promise-try'?: Linter.RuleEntry<[]>;
|
|
11142
11325
|
/**
|
|
11143
11326
|
* Prefer `Promise.withResolvers()` when extracting resolver functions from
|
|
11144
11327
|
* `new Promise()`.
|
|
11145
11328
|
*
|
|
11146
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11329
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-promise-with-resolvers.md
|
|
11147
11330
|
*/
|
|
11148
11331
|
'unicorn/prefer-promise-with-resolvers'?: Linter.RuleEntry<[]>;
|
|
11149
11332
|
/**
|
|
11150
11333
|
* Prefer borrowing methods from the prototype instead of the instance.
|
|
11151
11334
|
*
|
|
11152
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11335
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-prototype-methods.md
|
|
11153
11336
|
*/
|
|
11154
11337
|
'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
|
|
11155
11338
|
/**
|
|
11156
11339
|
* Prefer `.querySelector()` and `.querySelectorAll()` over older DOM query
|
|
11157
11340
|
* methods.
|
|
11158
11341
|
*
|
|
11159
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11342
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-query-selector.md
|
|
11160
11343
|
*/
|
|
11161
11344
|
'unicorn/prefer-query-selector'?: Linter.RuleEntry<UnicornPreferQuerySelector>;
|
|
11162
11345
|
/**
|
|
11163
11346
|
* Prefer `queueMicrotask()` over `process.nextTick()`, `setImmediate()`, and
|
|
11164
11347
|
* `setTimeout(…, 0)`.
|
|
11165
11348
|
*
|
|
11166
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11349
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-queue-microtask.md
|
|
11167
11350
|
*/
|
|
11168
11351
|
'unicorn/prefer-queue-microtask'?: Linter.RuleEntry<UnicornPreferQueueMicrotask>;
|
|
11169
11352
|
/**
|
|
11170
11353
|
* Prefer `Reflect.apply()` over `Function#apply()`.
|
|
11171
11354
|
*
|
|
11172
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11355
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-reflect-apply.md
|
|
11173
11356
|
*/
|
|
11174
11357
|
'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
|
|
11175
11358
|
/**
|
|
11176
11359
|
* Prefer `RegExp.escape()` for escaping strings to use in regular
|
|
11177
11360
|
* expressions.
|
|
11178
11361
|
*
|
|
11179
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11362
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-regexp-escape.md
|
|
11180
11363
|
*/
|
|
11181
11364
|
'unicorn/prefer-regexp-escape'?: Linter.RuleEntry<[]>;
|
|
11182
11365
|
/**
|
|
11183
11366
|
* Prefer `RegExp#test()` over `String#match()`, `String#search()`, and
|
|
11184
11367
|
* `RegExp#exec()`.
|
|
11185
11368
|
*
|
|
11186
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11369
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-regexp-test.md
|
|
11187
11370
|
*/
|
|
11188
11371
|
'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
|
|
11189
11372
|
/**
|
|
11190
11373
|
* Prefer `Response.json()` over `new Response(JSON.stringify())`.
|
|
11191
11374
|
*
|
|
11192
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11375
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-response-static-json.md
|
|
11193
11376
|
*/
|
|
11194
11377
|
'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>;
|
|
11195
11378
|
/**
|
|
11196
11379
|
* Prefer `:scope` when using element query selector methods.
|
|
11197
11380
|
*
|
|
11198
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11381
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-scoped-selector.md
|
|
11199
11382
|
*/
|
|
11200
11383
|
'unicorn/prefer-scoped-selector'?: Linter.RuleEntry<[]>;
|
|
11201
11384
|
/**
|
|
11202
11385
|
* Prefer `Set#has()` over `Array#includes()` when checking for existence or
|
|
11203
11386
|
* non-existence.
|
|
11204
11387
|
*
|
|
11205
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11388
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-set-has.md
|
|
11206
11389
|
*/
|
|
11207
11390
|
'unicorn/prefer-set-has'?: Linter.RuleEntry<UnicornPreferSetHas>;
|
|
11208
11391
|
/**
|
|
11209
11392
|
* Prefer `Set` methods for Set operations.
|
|
11210
11393
|
*
|
|
11211
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11394
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-set-methods.md
|
|
11212
11395
|
*/
|
|
11213
11396
|
'unicorn/prefer-set-methods'?: Linter.RuleEntry<[]>;
|
|
11214
11397
|
/**
|
|
11215
11398
|
* Prefer using `Set#size` instead of `Array#length`.
|
|
11216
11399
|
*
|
|
11217
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11400
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-set-size.md
|
|
11218
11401
|
*/
|
|
11219
11402
|
'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
|
|
11220
11403
|
/**
|
|
11221
11404
|
* Prefer arrow function properties over methods with a single return.
|
|
11222
11405
|
*
|
|
11223
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11406
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-short-arrow-method.md
|
|
11224
11407
|
*/
|
|
11225
11408
|
'unicorn/prefer-short-arrow-method'?: Linter.RuleEntry<UnicornPreferShortArrowMethod>;
|
|
11409
|
+
/**
|
|
11410
|
+
* Prefer shorter alternatives to Unicode escape sequences.
|
|
11411
|
+
*
|
|
11412
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-short-escape-sequences.md
|
|
11413
|
+
*/
|
|
11414
|
+
'unicorn/prefer-short-escape-sequences'?: Linter.RuleEntry<[]>;
|
|
11226
11415
|
/**
|
|
11227
11416
|
* Prefer simple conditions first in logical expressions.
|
|
11228
11417
|
*
|
|
11229
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11418
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-simple-condition-first.md
|
|
11230
11419
|
*/
|
|
11231
11420
|
'unicorn/prefer-simple-condition-first'?: Linter.RuleEntry<[]>;
|
|
11232
11421
|
/**
|
|
11233
11422
|
* Prefer a simple comparison function for `Array#sort()`.
|
|
11234
11423
|
*
|
|
11235
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11424
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-simple-sort-comparator.md
|
|
11236
11425
|
*/
|
|
11237
11426
|
'unicorn/prefer-simple-sort-comparator'?: Linter.RuleEntry<[]>;
|
|
11238
11427
|
/**
|
|
11239
11428
|
* Prefer simplified conditions.
|
|
11240
11429
|
*
|
|
11241
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11430
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-simplified-conditions.md
|
|
11242
11431
|
*/
|
|
11243
|
-
'unicorn/prefer-simplified-conditions'?: Linter.RuleEntry<
|
|
11432
|
+
'unicorn/prefer-simplified-conditions'?: Linter.RuleEntry<UnicornPreferSimplifiedConditions>;
|
|
11244
11433
|
/**
|
|
11245
11434
|
* Prefer a single `Array#some()` or `Array#every()` with a combined
|
|
11246
11435
|
* predicate.
|
|
11247
11436
|
*
|
|
11248
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11437
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-single-array-predicate.md
|
|
11249
11438
|
*/
|
|
11250
11439
|
'unicorn/prefer-single-array-predicate'?: Linter.RuleEntry<[]>;
|
|
11251
11440
|
/**
|
|
11252
11441
|
* Enforce combining multiple `Array#{push,unshift}()`,
|
|
11253
11442
|
* `Element#classList.{add,remove}()`, and `importScripts()` into one call.
|
|
11254
11443
|
*
|
|
11255
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11444
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-single-call.md
|
|
11256
11445
|
*/
|
|
11257
11446
|
'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
|
|
11258
11447
|
/**
|
|
11259
11448
|
* Prefer a single object destructuring declaration per local const source.
|
|
11260
11449
|
*
|
|
11261
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11450
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-single-object-destructuring.md
|
|
11262
11451
|
*/
|
|
11263
11452
|
'unicorn/prefer-single-object-destructuring'?: Linter.RuleEntry<[]>;
|
|
11264
11453
|
/**
|
|
11265
11454
|
* Enforce combining multiple single-character replacements into a single
|
|
11266
11455
|
* `String#replaceAll()` with a regular expression.
|
|
11267
11456
|
*
|
|
11268
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11457
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-single-replace.md
|
|
11269
11458
|
*/
|
|
11270
11459
|
'unicorn/prefer-single-replace'?: Linter.RuleEntry<[]>;
|
|
11271
11460
|
/**
|
|
11272
11461
|
* Prefer declaring variables in the smallest possible scope.
|
|
11273
11462
|
*
|
|
11274
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11463
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-smaller-scope.md
|
|
11275
11464
|
*/
|
|
11276
11465
|
'unicorn/prefer-smaller-scope'?: Linter.RuleEntry<[]>;
|
|
11277
11466
|
/**
|
|
11278
11467
|
* Prefer `String#split()` with a limit.
|
|
11279
11468
|
*
|
|
11280
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11469
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-split-limit.md
|
|
11281
11470
|
*/
|
|
11282
11471
|
'unicorn/prefer-split-limit'?: Linter.RuleEntry<[]>;
|
|
11283
11472
|
/**
|
|
11284
11473
|
* Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`,
|
|
11285
11474
|
* `Array#{slice,toSpliced}()`, and trivial `for…of` copies.
|
|
11286
11475
|
*
|
|
11287
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11476
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-spread.md
|
|
11288
11477
|
*/
|
|
11289
11478
|
'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
|
|
11290
11479
|
/**
|
|
11291
11480
|
* Prefer `String#matchAll()` over `RegExp#exec()` loops.
|
|
11292
11481
|
*
|
|
11293
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11482
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-match-all.md
|
|
11294
11483
|
*/
|
|
11295
11484
|
'unicorn/prefer-string-match-all'?: Linter.RuleEntry<[]>;
|
|
11296
11485
|
/**
|
|
11297
11486
|
* Prefer `String#padStart()` and `String#padEnd()` over manual string
|
|
11298
11487
|
* padding.
|
|
11299
11488
|
*
|
|
11300
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11489
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-pad-start-end.md
|
|
11301
11490
|
*/
|
|
11302
11491
|
'unicorn/prefer-string-pad-start-end'?: Linter.RuleEntry<[]>;
|
|
11303
11492
|
/**
|
|
11304
11493
|
* Prefer using the `String.raw` tag to avoid escaping `\`.
|
|
11305
11494
|
*
|
|
11306
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11495
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-raw.md
|
|
11307
11496
|
*/
|
|
11308
11497
|
'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
|
|
11309
11498
|
/**
|
|
11310
11499
|
* Prefer `String#repeat()` for repeated whitespace.
|
|
11311
11500
|
*
|
|
11312
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11501
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-repeat.md
|
|
11313
11502
|
*/
|
|
11314
11503
|
'unicorn/prefer-string-repeat'?: Linter.RuleEntry<UnicornPreferStringRepeat>;
|
|
11315
11504
|
/**
|
|
11316
11505
|
* Prefer `String#replaceAll()` over regex searches with the global flag and
|
|
11317
11506
|
* `String#split().join()`.
|
|
11318
11507
|
*
|
|
11319
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11508
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-replace-all.md
|
|
11320
11509
|
*/
|
|
11321
11510
|
'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
|
|
11322
11511
|
/**
|
|
11323
11512
|
* Prefer `String#slice()` over `String#substr()` and `String#substring()`.
|
|
11324
11513
|
*
|
|
11325
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11514
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-slice.md
|
|
11326
11515
|
*/
|
|
11327
11516
|
'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
|
|
11328
11517
|
/**
|
|
11329
11518
|
* Prefer `String#startsWith()` & `String#endsWith()` over regexes,
|
|
11330
11519
|
* `String#indexOf() === 0`, and slice checks.
|
|
11331
11520
|
*
|
|
11332
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11521
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-starts-ends-with.md
|
|
11333
11522
|
*/
|
|
11334
11523
|
'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
|
|
11335
11524
|
/**
|
|
11336
11525
|
* Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` /
|
|
11337
11526
|
* `String#trimRight()`.
|
|
11338
11527
|
*
|
|
11339
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11528
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-trim-start-end.md
|
|
11340
11529
|
*/
|
|
11341
11530
|
'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
|
|
11342
11531
|
/**
|
|
11343
11532
|
* Prefer using `structuredClone` to create a deep clone.
|
|
11344
11533
|
*
|
|
11345
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11534
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-structured-clone.md
|
|
11346
11535
|
*/
|
|
11347
11536
|
'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
|
|
11348
11537
|
/**
|
|
11349
11538
|
* Prefer `switch` over multiple `else-if`.
|
|
11350
11539
|
*
|
|
11351
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11540
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-switch.md
|
|
11352
11541
|
*/
|
|
11353
11542
|
'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
|
|
11354
11543
|
/**
|
|
11355
11544
|
* Prefer `Temporal` over `Date`.
|
|
11356
11545
|
*
|
|
11357
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11546
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-temporal.md
|
|
11358
11547
|
*/
|
|
11359
11548
|
'unicorn/prefer-temporal'?: Linter.RuleEntry<UnicornPreferTemporal>;
|
|
11360
11549
|
/**
|
|
11361
11550
|
* Prefer direct Temporal conversion methods.
|
|
11362
11551
|
*
|
|
11363
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11552
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-temporal-conversion.md
|
|
11364
11553
|
*/
|
|
11365
11554
|
'unicorn/prefer-temporal-conversion'?: Linter.RuleEntry<[]>;
|
|
11366
11555
|
/**
|
|
11367
11556
|
* Prefer ternary expressions over simple `if` statements that return or
|
|
11368
11557
|
* assign values.
|
|
11369
11558
|
*
|
|
11370
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11559
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-ternary.md
|
|
11371
11560
|
*/
|
|
11372
11561
|
'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
|
|
11373
11562
|
/**
|
|
11374
11563
|
* Prefer `.then().catch()` over `.then(…, …)` for error handling.
|
|
11375
11564
|
*
|
|
11376
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11565
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-then-catch.md
|
|
11377
11566
|
*/
|
|
11378
11567
|
'unicorn/prefer-then-catch'?: Linter.RuleEntry<[]>;
|
|
11379
11568
|
/**
|
|
11380
11569
|
* Prefer using `Element#toggleAttribute()` to toggle attributes.
|
|
11381
11570
|
*
|
|
11382
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11571
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-toggle-attribute.md
|
|
11383
11572
|
*/
|
|
11384
11573
|
'unicorn/prefer-toggle-attribute'?: Linter.RuleEntry<[]>;
|
|
11385
11574
|
/**
|
|
11386
11575
|
* Prefer top-level await over top-level promises and async function calls.
|
|
11387
11576
|
*
|
|
11388
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11577
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-top-level-await.md
|
|
11389
11578
|
*/
|
|
11390
11579
|
'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
|
|
11391
11580
|
/**
|
|
11392
11581
|
* Enforce throwing `TypeError` in type checking conditions.
|
|
11393
11582
|
*
|
|
11394
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11583
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-type-error.md
|
|
11395
11584
|
*/
|
|
11396
11585
|
'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
|
|
11397
11586
|
/**
|
|
11398
11587
|
* Require type literals to be last in union types.
|
|
11399
11588
|
*
|
|
11400
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11589
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-type-literal-last.md
|
|
11401
11590
|
*/
|
|
11402
11591
|
'unicorn/prefer-type-literal-last'?: Linter.RuleEntry<[]>;
|
|
11403
11592
|
/**
|
|
11404
11593
|
* Prefer `Uint8Array#toBase64()` and `Uint8Array.fromBase64()` over legacy
|
|
11405
11594
|
* base64 conversions and manual postprocessing.
|
|
11406
11595
|
*
|
|
11407
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11596
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-uint8array-base64.md
|
|
11408
11597
|
*/
|
|
11409
11598
|
'unicorn/prefer-uint8array-base64'?: Linter.RuleEntry<[]>;
|
|
11410
11599
|
/**
|
|
11411
11600
|
* Prefer `Uint8Array#toHex()` and `Uint8Array.fromHex()` over manual and
|
|
11412
11601
|
* Buffer hex conversions.
|
|
11413
11602
|
*
|
|
11414
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11603
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-uint8array-hex.md
|
|
11415
11604
|
*/
|
|
11416
11605
|
'unicorn/prefer-uint8array-hex'?: Linter.RuleEntry<[]>;
|
|
11417
11606
|
/**
|
|
11418
11607
|
* Prefer the unary minus operator over multiplying or dividing by `-1`.
|
|
11419
11608
|
*
|
|
11420
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11609
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-unary-minus.md
|
|
11421
11610
|
*/
|
|
11422
11611
|
'unicorn/prefer-unary-minus'?: Linter.RuleEntry<[]>;
|
|
11423
11612
|
/**
|
|
11424
11613
|
* Prefer Unicode code point escapes over legacy escape sequences.
|
|
11425
11614
|
*
|
|
11426
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11615
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-unicode-code-point-escapes.md
|
|
11427
11616
|
*/
|
|
11428
11617
|
'unicorn/prefer-unicode-code-point-escapes'?: Linter.RuleEntry<[]>;
|
|
11429
11618
|
/**
|
|
11430
11619
|
* Prefer `URL.canParse()` over constructing a `URL` in a try/catch for
|
|
11431
11620
|
* validation.
|
|
11432
11621
|
*
|
|
11433
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11622
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-url-can-parse.md
|
|
11434
11623
|
*/
|
|
11435
11624
|
'unicorn/prefer-url-can-parse'?: Linter.RuleEntry<[]>;
|
|
11436
11625
|
/**
|
|
11437
11626
|
* Prefer `URL#href` over stringifying a `URL`.
|
|
11438
11627
|
*
|
|
11439
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11628
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-url-href.md
|
|
11440
11629
|
*/
|
|
11441
11630
|
'unicorn/prefer-url-href'?: Linter.RuleEntry<[]>;
|
|
11442
11631
|
/**
|
|
11443
11632
|
* Prefer `URLSearchParams` over manually splitting query strings.
|
|
11444
11633
|
*
|
|
11445
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11634
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-url-search-parameters.md
|
|
11446
11635
|
*/
|
|
11447
11636
|
'unicorn/prefer-url-search-parameters'?: Linter.RuleEntry<[]>;
|
|
11448
11637
|
/**
|
|
11449
11638
|
* Prefer putting the condition in the while statement.
|
|
11450
11639
|
*
|
|
11451
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11640
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-while-loop-condition.md
|
|
11452
11641
|
*/
|
|
11453
11642
|
'unicorn/prefer-while-loop-condition'?: Linter.RuleEntry<[]>;
|
|
11454
11643
|
/**
|
|
11455
11644
|
* Renamed to `unicorn/name-replacements`.
|
|
11456
11645
|
*
|
|
11457
11646
|
* @deprecated
|
|
11458
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11647
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
|
|
11459
11648
|
*/
|
|
11460
11649
|
'unicorn/prevent-abbreviations'?: Linter.RuleEntry<[]>;
|
|
11461
11650
|
/**
|
|
11462
11651
|
* Enforce consistent relative URL style.
|
|
11463
11652
|
*
|
|
11464
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11653
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/relative-url-style.md
|
|
11465
11654
|
*/
|
|
11466
11655
|
'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
|
|
11467
11656
|
/**
|
|
11468
11657
|
* Enforce using the separator argument with `Array#join()`.
|
|
11469
11658
|
*
|
|
11470
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11659
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-array-join-separator.md
|
|
11471
11660
|
*/
|
|
11472
11661
|
'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
|
|
11473
11662
|
/**
|
|
11474
11663
|
* Require a compare function when calling `Array#sort()` or
|
|
11475
11664
|
* `Array#toSorted()`.
|
|
11476
11665
|
*
|
|
11477
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11666
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-array-sort-compare.md
|
|
11478
11667
|
*/
|
|
11479
11668
|
'unicorn/require-array-sort-compare'?: Linter.RuleEntry<[]>;
|
|
11480
11669
|
/**
|
|
11481
11670
|
* Require `CSS.escape()` for interpolated values in CSS selectors.
|
|
11482
11671
|
*
|
|
11483
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11672
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-css-escape.md
|
|
11484
11673
|
*/
|
|
11485
11674
|
'unicorn/require-css-escape'?: Linter.RuleEntry<UnicornRequireCssEscape>;
|
|
11486
11675
|
/**
|
|
11487
11676
|
* Require configured YAML frontmatter fields.
|
|
11488
11677
|
*
|
|
11489
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11678
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-frontmatter-fields.md
|
|
11490
11679
|
*/
|
|
11491
11680
|
'unicorn/require-frontmatter-fields'?: Linter.RuleEntry<UnicornRequireFrontmatterFields>;
|
|
11492
11681
|
/**
|
|
11493
11682
|
* Require non-empty module attributes for imports and exports
|
|
11494
11683
|
*
|
|
11495
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11684
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-module-attributes.md
|
|
11496
11685
|
*/
|
|
11497
11686
|
'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>;
|
|
11498
11687
|
/**
|
|
11499
11688
|
* Require non-empty specifier list in import and export statements.
|
|
11500
11689
|
*
|
|
11501
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11690
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-module-specifiers.md
|
|
11502
11691
|
*/
|
|
11503
11692
|
'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
|
|
11504
11693
|
/**
|
|
11505
11694
|
* Enforce using the digits argument with `Number#toFixed()`.
|
|
11506
11695
|
*
|
|
11507
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11696
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-number-to-fixed-digits-argument.md
|
|
11508
11697
|
*/
|
|
11509
11698
|
'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
|
|
11510
11699
|
/**
|
|
11511
11700
|
* Require passive event listeners for high-frequency events.
|
|
11512
11701
|
*
|
|
11513
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11702
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-passive-events.md
|
|
11514
11703
|
*/
|
|
11515
11704
|
'unicorn/require-passive-events'?: Linter.RuleEntry<[]>;
|
|
11516
11705
|
/**
|
|
11517
11706
|
* Enforce using the `targetOrigin` argument with `window.postMessage()`.
|
|
11518
11707
|
*
|
|
11519
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11708
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-post-message-target-origin.md
|
|
11520
11709
|
*/
|
|
11521
11710
|
'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
|
|
11522
11711
|
/**
|
|
11523
11712
|
* Require boolean-returning Proxy traps to return booleans.
|
|
11524
11713
|
*
|
|
11525
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11714
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-proxy-trap-boolean-return.md
|
|
11526
11715
|
*/
|
|
11527
11716
|
'unicorn/require-proxy-trap-boolean-return'?: Linter.RuleEntry<[]>;
|
|
11717
|
+
/**
|
|
11718
|
+
* Require streaming decoding of fetch-body chunks with `TextDecoder`.
|
|
11719
|
+
*
|
|
11720
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-text-decoder-streaming.md
|
|
11721
|
+
*/
|
|
11722
|
+
'unicorn/require-text-decoder-streaming'?: Linter.RuleEntry<[]>;
|
|
11528
11723
|
/**
|
|
11529
11724
|
* Enforce a consistent style for single-line block comments.
|
|
11530
11725
|
*
|
|
11531
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11726
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/single-line-block-comment-style.md
|
|
11532
11727
|
*/
|
|
11533
11728
|
'unicorn/single-line-block-comment-style'?: Linter.RuleEntry<UnicornSingleLineBlockCommentStyle>;
|
|
11534
11729
|
/**
|
|
11535
11730
|
* Enforce better string content.
|
|
11536
11731
|
*
|
|
11537
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11732
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/string-content.md
|
|
11538
11733
|
*/
|
|
11539
11734
|
'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
|
|
11540
11735
|
/**
|
|
11541
11736
|
* Enforce consistent brace style for `case` clauses.
|
|
11542
11737
|
*
|
|
11543
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11738
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/switch-case-braces.md
|
|
11544
11739
|
*/
|
|
11545
11740
|
'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
|
|
11546
11741
|
/**
|
|
11547
11742
|
* Enforce consistent `break`/`return`/`continue`/`throw` position in `case`
|
|
11548
11743
|
* clauses.
|
|
11549
11744
|
*
|
|
11550
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11745
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/switch-case-break-position.md
|
|
11551
11746
|
*/
|
|
11552
11747
|
'unicorn/switch-case-break-position'?: Linter.RuleEntry<[]>;
|
|
11553
11748
|
/**
|
|
11554
11749
|
* Fix whitespace-insensitive template indentation.
|
|
11555
11750
|
*
|
|
11556
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11751
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/template-indent.md
|
|
11557
11752
|
*/
|
|
11558
11753
|
'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
|
|
11559
11754
|
/**
|
|
11560
11755
|
* Enforce consistent case for text encoding identifiers.
|
|
11561
11756
|
*
|
|
11562
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11757
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/text-encoding-identifier-case.md
|
|
11563
11758
|
*/
|
|
11564
11759
|
'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
|
|
11565
11760
|
/**
|
|
11566
11761
|
* Require `new` when creating an error.
|
|
11567
11762
|
*
|
|
11568
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11763
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/throw-new-error.md
|
|
11569
11764
|
*/
|
|
11570
11765
|
'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
|
|
11571
11766
|
/**
|
|
11572
11767
|
* Limit the complexity of `try` blocks.
|
|
11573
11768
|
*
|
|
11574
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11769
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/try-complexity.md
|
|
11575
11770
|
*/
|
|
11576
11771
|
'unicorn/try-complexity'?: Linter.RuleEntry<UnicornTryComplexity>;
|
|
11577
11772
|
/**
|
|
@@ -12735,6 +12930,7 @@ type JsdocCheckExamples = [] | [{
|
|
|
12735
12930
|
// ----- jsdoc/check-indentation -----
|
|
12736
12931
|
type JsdocCheckIndentation = [] | [{
|
|
12737
12932
|
allowIndentedSections?: boolean;
|
|
12933
|
+
allowNoSpaceAfterAsterisk?: boolean;
|
|
12738
12934
|
excludeTags?: string[];
|
|
12739
12935
|
}];
|
|
12740
12936
|
// ----- jsdoc/check-line-alignment -----
|
|
@@ -12770,6 +12966,10 @@ type JsdocCheckParamNames = [] | [{
|
|
|
12770
12966
|
type JsdocCheckPropertyNames = [] | [{
|
|
12771
12967
|
enableFixer?: boolean;
|
|
12772
12968
|
}];
|
|
12969
|
+
// ----- jsdoc/check-syntax -----
|
|
12970
|
+
type JsdocCheckSyntax = [] | [{
|
|
12971
|
+
enableFixer?: boolean;
|
|
12972
|
+
}];
|
|
12773
12973
|
// ----- jsdoc/check-tag-names -----
|
|
12774
12974
|
type JsdocCheckTagNames = [] | [{
|
|
12775
12975
|
definedTags?: string[];
|
|
@@ -13154,7 +13354,6 @@ type JsdocRequireTags = [] | [{
|
|
|
13154
13354
|
tags?: (string | {
|
|
13155
13355
|
context?: string;
|
|
13156
13356
|
tag?: string;
|
|
13157
|
-
[k: string]: unknown | undefined;
|
|
13158
13357
|
})[];
|
|
13159
13358
|
}];
|
|
13160
13359
|
// ----- jsdoc/require-template -----
|
|
@@ -21253,6 +21452,11 @@ interface _UnicornImportStyle_ModuleStyles {
|
|
|
21253
21452
|
interface _UnicornImportStyle_BooleanObject {
|
|
21254
21453
|
[k: string]: boolean | undefined;
|
|
21255
21454
|
}
|
|
21455
|
+
// ----- unicorn/indent -----
|
|
21456
|
+
type UnicornIndent = [] | [{
|
|
21457
|
+
indent?: 'tab' | number;
|
|
21458
|
+
tabWidth?: number;
|
|
21459
|
+
}];
|
|
21256
21460
|
// ----- unicorn/isolated-functions -----
|
|
21257
21461
|
type UnicornIsolatedFunctions = [] | [{
|
|
21258
21462
|
overrideGlobals?: {
|
|
@@ -21264,6 +21468,15 @@ type UnicornIsolatedFunctions = [] | [{
|
|
|
21264
21468
|
}];
|
|
21265
21469
|
// ----- unicorn/iteration-fallback-style -----
|
|
21266
21470
|
type UnicornIterationFallbackStyle = [] | ['guard' | 'fallback'];
|
|
21471
|
+
// ----- unicorn/key-name-casing -----
|
|
21472
|
+
type UnicornKeyNameCasing = [] | [{
|
|
21473
|
+
camelCase?: boolean;
|
|
21474
|
+
PascalCase?: boolean;
|
|
21475
|
+
SCREAMING_SNAKE_CASE?: boolean;
|
|
21476
|
+
'kebab-case'?: boolean;
|
|
21477
|
+
snake_case?: boolean;
|
|
21478
|
+
ignore?: string[];
|
|
21479
|
+
}];
|
|
21267
21480
|
// ----- unicorn/logical-assignment-operators -----
|
|
21268
21481
|
type UnicornLogicalAssignmentOperators = ([] | ['always'] | ['always', {
|
|
21269
21482
|
enforceForIfStatements?: boolean;
|
|
@@ -21318,10 +21531,6 @@ type UnicornNoArraySort = [] | [{
|
|
|
21318
21531
|
type UnicornNoBreakInNestedLoop = [] | [{
|
|
21319
21532
|
checkContinue?: boolean;
|
|
21320
21533
|
}];
|
|
21321
|
-
// ----- unicorn/no-deprecated-css-features -----
|
|
21322
|
-
type UnicornNoDeprecatedCssFeatures = [] | [{
|
|
21323
|
-
allow?: string[];
|
|
21324
|
-
}];
|
|
21325
21534
|
// ----- unicorn/no-empty-file -----
|
|
21326
21535
|
type UnicornNoEmptyFile = [] | [{
|
|
21327
21536
|
allowComments?: boolean;
|
|
@@ -21370,9 +21579,9 @@ type UnicornNoNull = [] | [{
|
|
|
21370
21579
|
type UnicornNoTypeofUndefined = [] | [{
|
|
21371
21580
|
checkGlobalVariables?: boolean;
|
|
21372
21581
|
}];
|
|
21373
|
-
// ----- unicorn/no-
|
|
21374
|
-
type
|
|
21375
|
-
|
|
21582
|
+
// ----- unicorn/no-unnecessary-parameters -----
|
|
21583
|
+
type UnicornNoUnnecessaryParameters = [] | [{
|
|
21584
|
+
minimumCallCount?: number;
|
|
21376
21585
|
}];
|
|
21377
21586
|
// ----- unicorn/no-unnecessary-polyfills -----
|
|
21378
21587
|
type UnicornNoUnnecessaryPolyfills = [] | [{
|
|
@@ -21384,10 +21593,6 @@ type UnicornNoUnnecessaryPolyfills = [] | [{
|
|
|
21384
21593
|
type UnicornNoUnreadableArrayDestructuring = [] | [{
|
|
21385
21594
|
maximumIgnoredElements?: number;
|
|
21386
21595
|
}];
|
|
21387
|
-
// ----- unicorn/no-unscoped-css-nesting-selector -----
|
|
21388
|
-
type UnicornNoUnscopedCssNestingSelector = [] | [{
|
|
21389
|
-
scopingRootAtRules?: string[];
|
|
21390
|
-
}];
|
|
21391
21596
|
// ----- unicorn/no-useless-undefined -----
|
|
21392
21597
|
type UnicornNoUselessUndefined = [] | [{
|
|
21393
21598
|
checkArguments?: boolean;
|
|
@@ -21444,6 +21649,7 @@ type UnicornPreferAt = [] | [{
|
|
|
21444
21649
|
// ----- unicorn/prefer-combined-guards -----
|
|
21445
21650
|
type UnicornPreferCombinedGuards = [] | [{
|
|
21446
21651
|
checkCompoundConditions?: boolean;
|
|
21652
|
+
checkMultiStatementBodies?: boolean;
|
|
21447
21653
|
}];
|
|
21448
21654
|
// ----- unicorn/prefer-continue -----
|
|
21449
21655
|
type UnicornPreferContinue = [] | [{
|
|
@@ -21460,10 +21666,6 @@ type UnicornPreferEarlyReturn = [] | [{
|
|
|
21460
21666
|
maximumStatements?: number;
|
|
21461
21667
|
checkShortBodies?: boolean;
|
|
21462
21668
|
}];
|
|
21463
|
-
// ----- unicorn/prefer-explicit-viewport-units -----
|
|
21464
|
-
type UnicornPreferExplicitViewportUnits = [] | [{
|
|
21465
|
-
unit?: 'dvh' | 'svh' | 'lvh';
|
|
21466
|
-
}];
|
|
21467
21669
|
// ----- unicorn/prefer-export-from -----
|
|
21468
21670
|
type UnicornPreferExportFrom = [] | [{
|
|
21469
21671
|
checkUsedVariables?: boolean;
|
|
@@ -21507,6 +21709,10 @@ type UnicornPreferSetHas = [] | [{
|
|
|
21507
21709
|
}];
|
|
21508
21710
|
// ----- unicorn/prefer-short-arrow-method -----
|
|
21509
21711
|
type UnicornPreferShortArrowMethod = [] | ['always' | 'consistent-as-needed'];
|
|
21712
|
+
// ----- unicorn/prefer-simplified-conditions -----
|
|
21713
|
+
type UnicornPreferSimplifiedConditions = [] | [{
|
|
21714
|
+
negatedConditions?: 'simplify' | 'expand';
|
|
21715
|
+
}];
|
|
21510
21716
|
// ----- unicorn/prefer-single-call -----
|
|
21511
21717
|
type UnicornPreferSingleCall = [] | [{
|
|
21512
21718
|
ignore?: string[];
|
|
@@ -21828,7 +22034,7 @@ type Yoda = [] | ['always' | 'never'] | ['always' | 'never', {
|
|
|
21828
22034
|
onlyEquality?: boolean;
|
|
21829
22035
|
}];
|
|
21830
22036
|
// Names of all the configs
|
|
21831
|
-
type ConfigNames = 'kp/astro/setup' | 'kp/astro/component' | 'kp/astro/rules' | 'kp/astro/script-ts' | 'kp/disables/stylelint-config' | 'kp/disables/prettier' | 'kp/extra-file-extensions' | 'kp/html-script' | 'kp/html/setup' | 'kp/html' | 'kp/html/markdown-code-blocks' | 'kp/ignores' | 'kp/js/rules' | 'kp/js/cjs' | 'kp/json/setup' | 'kp/json/rules-json' | 'kp/json/rules-jsonc' | 'kp/json/rules-json5' | 'kp/json/rules' | 'kp/json/rules-settings' | 'kp/json/rules-package' | 'kp/json/rules-tsconfig' | 'kp/json/rules-overrides' | 'kp/jsx/rules' | 'kp/markdown/remark' | 'kp/markdown/code-blocks' | 'kp/mdx/remark' | 'kp/mdx/code-blocks' | 'kp/react/setup' | 'kp/react/rules' | 'kp/react/disable-type-aware' | 'kp/svelte/setup' | 'kp/svelte/scripts' | 'kp/svelte/component' | 'kp/svelte/rules' | 'kp/svelte/sveltekit-routes' | 'kp/svelte/sveltekit-app' | 'kp/svelte/modules' | 'kp/test/setup' | 'kp/test/rules' | 'kp/toml/setup' | 'kp/toml/rules' | 'kp/ts/rules' | 'kp/ts/dts' | 'kp/tsx/rules' | 'kp/yaml/setup' | 'kp/yaml/rules';
|
|
22037
|
+
type ConfigNames = 'kp/astro/setup' | 'kp/astro/component' | 'kp/astro/rules' | 'kp/astro/script-ts' | 'kp/disables/config-files' | 'kp/disables/stylelint-config' | 'kp/disables/prettier' | 'kp/extra-file-extensions' | 'kp/html-script' | 'kp/html/setup' | 'kp/html' | 'kp/html/markdown-code-blocks' | 'kp/ignores' | 'kp/js/rules' | 'kp/js/cjs' | 'kp/json/setup' | 'kp/json/rules-json' | 'kp/json/rules-jsonc' | 'kp/json/rules-json5' | 'kp/json/rules' | 'kp/json/rules-settings' | 'kp/json/rules-package' | 'kp/json/rules-tsconfig' | 'kp/json/rules-overrides' | 'kp/jsx/rules' | 'kp/markdown/remark' | 'kp/markdown/code-blocks' | 'kp/markdown/agent-skills' | 'kp/markdown/agent-skills-code-blocks' | 'kp/mdx/remark' | 'kp/mdx/code-blocks' | 'kp/react/setup' | 'kp/react/rules' | 'kp/react/disable-type-aware' | 'kp/svelte/setup' | 'kp/svelte/scripts' | 'kp/svelte/component' | 'kp/svelte/rules' | 'kp/svelte/sveltekit-routes' | 'kp/svelte/sveltekit-app' | 'kp/svelte/modules' | 'kp/test/setup' | 'kp/test/rules' | 'kp/toml/setup' | 'kp/toml/rules' | 'kp/ts/rules' | 'kp/ts/dts' | 'kp/tsx/rules' | 'kp/yaml/setup' | 'kp/yaml/rules';
|
|
21832
22038
|
//#endregion
|
|
21833
22039
|
//#region src/types.d.ts
|
|
21834
22040
|
type Awaitable<T> = Promise<T> | T;
|
|
@@ -22167,6 +22373,9 @@ export declare const GLOB_MARKDOWN_CODE = "**/*.md/**/*.?([cm])[jt]s?(x)";
|
|
|
22167
22373
|
export declare const GLOB_MDX_CODE = "**/*.mdx/**/*.?([cm])[jt]s?(x)";
|
|
22168
22374
|
export declare const GLOB_MARKDOWN_HTML_CODE = "**/*.md/**/*.htm?(l)";
|
|
22169
22375
|
export declare const GLOB_MDX_HTML_CODE = "**/*.mdx/**/*.htm?(l)";
|
|
22376
|
+
export declare const GLOB_AGENT_SKILL = "**/skills/*/SKILL.md";
|
|
22377
|
+
export declare const GLOB_AGENT_SKILL_MARKDOWN_CODE = "**/skills/**/*.md/**/*.?([cm])[jt]s?(x)";
|
|
22378
|
+
export declare const GLOB_CONFIG_FILES: string[];
|
|
22170
22379
|
export declare const GLOB_TESTS: string[];
|
|
22171
22380
|
export declare const GLOB_ALL_SRC: string[];
|
|
22172
22381
|
export declare const GLOB_EXCLUDE: string[];
|