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