@eienjs/eslint-config 2.0.0 → 2.1.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.
Files changed (98) hide show
  1. package/LICENSE +1 -1
  2. package/bin/index.mjs +3 -0
  3. package/dist/cli/{constants.js → constants.mjs} +3 -0
  4. package/dist/cli/{constants_generated.js → constants_generated.mjs} +7 -4
  5. package/dist/cli/index.d.mts +2 -0
  6. package/dist/cli/{index.js → index.mjs} +5 -2
  7. package/dist/cli/{run.js → run.mjs} +12 -9
  8. package/dist/cli/stages/{update_eslint_files.js → update_eslint_files.mjs} +4 -1
  9. package/dist/cli/stages/{update_package_json.js → update_package_json.mjs} +15 -13
  10. package/dist/cli/stages/{update_vscode_settings.js → update_vscode_settings.mjs} +5 -2
  11. package/dist/cli/{utils.js → utils.mjs} +3 -0
  12. package/dist/config_presets.d.mts +9 -0
  13. package/dist/{config_presets.js → config_presets.mjs} +3 -0
  14. package/dist/configs/adonisjs.d.mts +8 -0
  15. package/dist/configs/{adonisjs.js → adonisjs.mjs} +27 -24
  16. package/dist/configs/{astro.d.ts → astro.d.mts} +3 -1
  17. package/dist/configs/{astro.js → astro.mjs} +6 -3
  18. package/dist/configs/command.d.mts +8 -0
  19. package/dist/configs/{command.js → command.mjs} +3 -0
  20. package/dist/configs/comments.d.mts +8 -0
  21. package/dist/configs/{comments.js → comments.mjs} +4 -1
  22. package/dist/configs/disables.d.mts +8 -0
  23. package/dist/configs/{disables.js → disables.mjs} +4 -1
  24. package/dist/configs/e18e.d.mts +8 -0
  25. package/dist/configs/{e18e.js → e18e.mjs} +7 -4
  26. package/dist/configs/{formatters.d.ts → formatters.d.mts} +3 -1
  27. package/dist/configs/{formatters.js → formatters.mjs} +6 -3
  28. package/dist/configs/ignores.d.mts +8 -0
  29. package/dist/configs/{ignores.js → ignores.mjs} +6 -3
  30. package/dist/configs/{imports.d.ts → imports.d.mts} +3 -1
  31. package/dist/configs/{imports.js → imports.mjs} +5 -2
  32. package/dist/configs/index.d.mts +29 -0
  33. package/dist/configs/index.mjs +30 -0
  34. package/dist/configs/{javascript.d.ts → javascript.d.mts} +3 -1
  35. package/dist/configs/{javascript.js → javascript.mjs} +5 -7
  36. package/dist/configs/{jsdoc.d.ts → jsdoc.d.mts} +3 -1
  37. package/dist/configs/{jsdoc.js → jsdoc.mjs} +7 -4
  38. package/dist/configs/{jsonc.d.ts → jsonc.d.mts} +3 -1
  39. package/dist/configs/{jsonc.js → jsonc.mjs} +7 -4
  40. package/dist/configs/{markdown.d.ts → markdown.d.mts} +3 -1
  41. package/dist/configs/{markdown.js → markdown.mjs} +5 -2
  42. package/dist/configs/node.d.mts +8 -0
  43. package/dist/configs/{node.js → node.mjs} +5 -2
  44. package/dist/configs/{nuxt.d.ts → nuxt.d.mts} +3 -1
  45. package/dist/configs/{nuxt.js → nuxt.mjs} +18 -15
  46. package/dist/configs/{perfectionist.d.ts → perfectionist.d.mts} +3 -1
  47. package/dist/configs/{perfectionist.js → perfectionist.mjs} +4 -1
  48. package/dist/configs/pnpm.d.mts +8 -0
  49. package/dist/configs/{pnpm.js → pnpm.mjs} +6 -6
  50. package/dist/configs/{regexp.d.ts → regexp.d.mts} +3 -1
  51. package/dist/configs/{regexp.js → regexp.mjs} +3 -0
  52. package/dist/configs/{sort.d.ts → sort.d.mts} +3 -1
  53. package/dist/configs/{sort.js → sort.mjs} +3 -0
  54. package/dist/configs/{stylistic.d.ts → stylistic.d.mts} +3 -1
  55. package/dist/configs/{stylistic.js → stylistic.mjs} +5 -2
  56. package/dist/configs/{test.d.ts → test.d.mts} +3 -1
  57. package/dist/configs/{test.js → test.mjs} +5 -2
  58. package/dist/configs/{toml.d.ts → toml.d.mts} +3 -1
  59. package/dist/configs/{toml.js → toml.mjs} +7 -4
  60. package/dist/configs/{typescript.d.ts → typescript.d.mts} +3 -1
  61. package/dist/configs/{typescript.js → typescript.mjs} +17 -14
  62. package/dist/configs/unicorn.d.mts +8 -0
  63. package/dist/configs/unicorn.mjs +66 -0
  64. package/dist/configs/{vue.d.ts → vue.d.mts} +3 -1
  65. package/dist/configs/{vue.js → vue.mjs} +22 -11
  66. package/dist/configs/{yaml.d.ts → yaml.d.mts} +3 -1
  67. package/dist/configs/{yaml.js → yaml.mjs} +7 -4
  68. package/dist/{factory.d.ts → factory.d.mts} +4 -2
  69. package/dist/{factory.js → factory.mjs} +36 -33
  70. package/dist/{globs.d.ts → globs.d.mts} +2 -0
  71. package/dist/{globs.js → globs.mjs} +3 -0
  72. package/dist/{index.d.ts → index.d.mts} +9 -7
  73. package/dist/{index.js → index.mjs} +7 -4
  74. package/dist/node_modules/.pnpm/find-up-simple@1.0.1/node_modules/find-up-simple/{index.js → index.mjs} +3 -0
  75. package/dist/package.mjs +7 -0
  76. package/dist/{plugins.js → plugins.mjs} +3 -0
  77. package/dist/{typegen.d.ts → typegen.d.mts} +1248 -218
  78. package/dist/{types.d.ts → types.d.mts} +14 -4
  79. package/dist/{utils.d.ts → utils.d.mts} +3 -1
  80. package/dist/{utils.js → utils.mjs} +4 -1
  81. package/dist/vendored/{prettier_types.d.ts → prettier_types.d.mts} +3 -1
  82. package/package.json +80 -49
  83. package/bin/index.js +0 -3
  84. package/dist/cli/index.d.ts +0 -1
  85. package/dist/config_presets.d.ts +0 -7
  86. package/dist/configs/adonisjs.d.ts +0 -6
  87. package/dist/configs/command.d.ts +0 -6
  88. package/dist/configs/comments.d.ts +0 -6
  89. package/dist/configs/disables.d.ts +0 -6
  90. package/dist/configs/e18e.d.ts +0 -6
  91. package/dist/configs/ignores.d.ts +0 -6
  92. package/dist/configs/index.d.ts +0 -27
  93. package/dist/configs/index.js +0 -27
  94. package/dist/configs/node.d.ts +0 -6
  95. package/dist/configs/pnpm.d.ts +0 -6
  96. package/dist/configs/unicorn.d.ts +0 -6
  97. package/dist/configs/unicorn.js +0 -40
  98. package/dist/package.js +0 -4
@@ -1,3 +1,5 @@
1
+ import __tsdown_shims_path from 'node:path';
2
+ import __tsdown_shims_url from 'node:url';
1
3
  import { Linter } from "eslint";
2
4
 
3
5
  //#region src/typegen.d.ts
@@ -1553,6 +1555,11 @@ interface RuleOptions {
1553
1555
  * @see https://ota-meshi.github.io/eslint-plugin-astro/rules/no-exports-from-components/
1554
1556
  */
1555
1557
  'astro/no-exports-from-components'?: Linter.RuleEntry<[]>;
1558
+ /**
1559
+ * disallow omitted end tags
1560
+ * @see https://ota-meshi.github.io/eslint-plugin-astro/rules/no-omitted-end-tags/
1561
+ */
1562
+ 'astro/no-omitted-end-tags'?: Linter.RuleEntry<[]>;
1556
1563
  /**
1557
1564
  * disallow `prerender` export outside of pages/ directory
1558
1565
  * @see https://ota-meshi.github.io/eslint-plugin-astro/rules/no-prerender-export-outside-pages/
@@ -1783,6 +1790,14 @@ interface RuleOptions {
1783
1790
  * Prefer the exponentiation operator ** over Math.pow()
1784
1791
  */
1785
1792
  'e18e/prefer-exponentiation-operator'?: Linter.RuleEntry<[]>;
1793
+ /**
1794
+ * Prefer Array.prototype.flatMap() over .map(fn).flat() to avoid the intermediate array
1795
+ */
1796
+ 'e18e/prefer-flatmap-over-map-flat'?: Linter.RuleEntry<[]>;
1797
+ /**
1798
+ * Prefer `Map.prototype.getOrInsert()` over reading an entry with a default and writing it back
1799
+ */
1800
+ 'e18e/prefer-get-or-insert'?: Linter.RuleEntry<[]>;
1786
1801
  /**
1787
1802
  * Prefer .includes() over indexOf() comparisons for arrays and strings
1788
1803
  */
@@ -5300,753 +5315,1623 @@ interface RuleOptions {
5300
5315
  */
5301
5316
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>;
5302
5317
  /**
5303
- * Improve regexes by making them shorter, consistent, and safer.
5304
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/better-regex.md
5318
+ * Prefer better DOM traversal APIs.
5319
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/better-dom-traversing.md
5320
+ */
5321
+ 'unicorn/better-dom-traversing'?: Linter.RuleEntry<[]>;
5322
+ /**
5323
+ * Removed. Prefer `eslint-plugin-regexp`
5324
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/deleted-and-deprecated-rules.md#better-regex
5325
+ * @deprecated
5305
5326
  */
5306
- 'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>;
5327
+ 'unicorn/better-regex'?: Linter.RuleEntry<[]>;
5307
5328
  /**
5308
5329
  * Enforce a specific parameter name in catch clauses.
5309
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/catch-error-name.md
5330
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/catch-error-name.md
5310
5331
  */
5311
5332
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
5333
+ /**
5334
+ * Enforce consistent class references in static methods.
5335
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/class-reference-in-static-methods.md
5336
+ */
5337
+ 'unicorn/class-reference-in-static-methods'?: Linter.RuleEntry<UnicornClassReferenceInStaticMethods>;
5338
+ /**
5339
+ * Enforce better comment content.
5340
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/comment-content.md
5341
+ */
5342
+ 'unicorn/comment-content'?: Linter.RuleEntry<UnicornCommentContent>;
5312
5343
  /**
5313
5344
  * Enforce consistent assertion style with `node:assert`.
5314
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-assert.md
5345
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-assert.md
5315
5346
  */
5316
5347
  'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
5348
+ /**
5349
+ * Enforce consistent naming for boolean names.
5350
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-boolean-name.md
5351
+ */
5352
+ 'unicorn/consistent-boolean-name'?: Linter.RuleEntry<UnicornConsistentBooleanName>;
5353
+ /**
5354
+ * Enforce consistent class member order.
5355
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-class-member-order.md
5356
+ */
5357
+ 'unicorn/consistent-class-member-order'?: Linter.RuleEntry<UnicornConsistentClassMemberOrder>;
5358
+ /**
5359
+ * Enforce consistent spelling of compound words in identifiers.
5360
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-compound-words.md
5361
+ */
5362
+ 'unicorn/consistent-compound-words'?: Linter.RuleEntry<UnicornConsistentCompoundWords>;
5363
+ /**
5364
+ * Enforce consistent conditional object spread style.
5365
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-conditional-object-spread.md
5366
+ */
5367
+ 'unicorn/consistent-conditional-object-spread'?: Linter.RuleEntry<UnicornConsistentConditionalObjectSpread>;
5317
5368
  /**
5318
5369
  * Prefer passing `Date` directly to the constructor when cloning.
5319
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-date-clone.md
5370
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-date-clone.md
5320
5371
  */
5321
5372
  'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
5322
5373
  /**
5323
5374
  * Use destructured variables over properties.
5324
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-destructuring.md
5375
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-destructuring.md
5325
5376
  */
5326
5377
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
5327
5378
  /**
5328
5379
  * Prefer consistent types when spreading a ternary in an array literal.
5329
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-empty-array-spread.md
5380
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-empty-array-spread.md
5330
5381
  */
5331
5382
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
5332
5383
  /**
5333
5384
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
5334
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-existence-index-check.md
5385
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-existence-index-check.md
5335
5386
  */
5336
5387
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
5388
+ /**
5389
+ * Enforce consistent decorator position on exported classes.
5390
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-export-decorator-position.md
5391
+ */
5392
+ 'unicorn/consistent-export-decorator-position'?: Linter.RuleEntry<UnicornConsistentExportDecoratorPosition>;
5337
5393
  /**
5338
5394
  * Move function definitions to the highest possible scope.
5339
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-function-scoping.md
5395
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-function-scoping.md
5340
5396
  */
5341
5397
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
5398
+ /**
5399
+ * Enforce function syntax by role.
5400
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-function-style.md
5401
+ */
5402
+ 'unicorn/consistent-function-style'?: Linter.RuleEntry<UnicornConsistentFunctionStyle>;
5403
+ /**
5404
+ * Enforce consistent JSON file reads before `JSON.parse()`.
5405
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-json-file-read.md
5406
+ */
5407
+ 'unicorn/consistent-json-file-read'?: Linter.RuleEntry<UnicornConsistentJsonFileRead>;
5408
+ /**
5409
+ * Enforce consistent optional chaining for same-base member access.
5410
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-optional-chaining.md
5411
+ */
5412
+ 'unicorn/consistent-optional-chaining'?: Linter.RuleEntry<[]>;
5342
5413
  /**
5343
5414
  * Enforce consistent style for escaping `${` in template literals.
5344
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-template-literal-escape.md
5415
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-template-literal-escape.md
5345
5416
  */
5346
5417
  'unicorn/consistent-template-literal-escape'?: Linter.RuleEntry<[]>;
5418
+ /**
5419
+ * Enforce consistent labels on tuple type elements.
5420
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-tuple-labels.md
5421
+ */
5422
+ 'unicorn/consistent-tuple-labels'?: Linter.RuleEntry<[]>;
5347
5423
  /**
5348
5424
  * Enforce correct `Error` subclassing.
5349
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/custom-error-definition.md
5425
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/custom-error-definition.md
5350
5426
  */
5351
5427
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
5428
+ /**
5429
+ * Enforce consistent default export declarations.
5430
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/default-export-style.md
5431
+ */
5432
+ 'unicorn/default-export-style'?: Linter.RuleEntry<UnicornDefaultExportStyle>;
5433
+ /**
5434
+ * Enforce consistent style for DOM element dataset access.
5435
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/dom-node-dataset.md
5436
+ */
5437
+ 'unicorn/dom-node-dataset'?: Linter.RuleEntry<UnicornDomNodeDataset>;
5352
5438
  /**
5353
5439
  * Enforce no spaces between braces.
5354
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/empty-brace-spaces.md
5440
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/empty-brace-spaces.md
5355
5441
  */
5356
5442
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
5357
5443
  /**
5358
5444
  * Enforce passing a `message` value when creating a built-in error.
5359
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/error-message.md
5445
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/error-message.md
5360
5446
  */
5361
5447
  'unicorn/error-message'?: Linter.RuleEntry<[]>;
5362
5448
  /**
5363
5449
  * Require escape sequences to use uppercase or lowercase values.
5364
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/escape-case.md
5450
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/escape-case.md
5365
5451
  */
5366
5452
  'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
5367
5453
  /**
5368
5454
  * Add expiration conditions to TODO comments.
5369
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/expiring-todo-comments.md
5455
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/expiring-todo-comments.md
5370
5456
  */
5371
5457
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
5372
5458
  /**
5373
5459
  * Enforce explicitly comparing the `length` or `size` property of a value.
5374
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/explicit-length-check.md
5460
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/explicit-length-check.md
5375
5461
  */
5376
5462
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
5377
5463
  /**
5378
- * Enforce a case style for filenames.
5379
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/filename-case.md
5464
+ * Enforce or disallow explicit `delay` argument for `setTimeout()` and `setInterval()`.
5465
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/explicit-timer-delay.md
5466
+ */
5467
+ 'unicorn/explicit-timer-delay'?: Linter.RuleEntry<UnicornExplicitTimerDelay>;
5468
+ /**
5469
+ * Enforce a case style for filenames and directory names.
5470
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/filename-case.md
5380
5471
  */
5381
5472
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
5473
+ /**
5474
+ * Require identifiers to match a specified regular expression.
5475
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/id-match.md
5476
+ */
5477
+ 'unicorn/id-match'?: Linter.RuleEntry<UnicornIdMatch>;
5382
5478
  /**
5383
5479
  * Enforce specific import styles per module.
5384
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/import-style.md
5480
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/import-style.md
5385
5481
  */
5386
5482
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
5387
5483
  /**
5388
5484
  * Prevent usage of variables from outside the scope of isolated functions.
5389
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/isolated-functions.md
5485
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/isolated-functions.md
5390
5486
  */
5391
5487
  'unicorn/isolated-functions'?: Linter.RuleEntry<UnicornIsolatedFunctions>;
5392
5488
  /**
5393
- * Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
5394
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/new-for-builtins.md
5489
+ * Require or disallow logical assignment operator shorthand
5490
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/logical-assignment-operators.md
5491
+ */
5492
+ 'unicorn/logical-assignment-operators'?: Linter.RuleEntry<UnicornLogicalAssignmentOperators>;
5493
+ /**
5494
+ * Limit the depth of nested calls.
5495
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/max-nested-calls.md
5496
+ */
5497
+ 'unicorn/max-nested-calls'?: Linter.RuleEntry<UnicornMaxNestedCalls>;
5498
+ /**
5499
+ * Enforce replacements for variable, property, and filenames.
5500
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/name-replacements.md
5501
+ */
5502
+ 'unicorn/name-replacements'?: Linter.RuleEntry<UnicornNameReplacements>;
5503
+ /**
5504
+ * Enforce correct use of `new` for builtin constructors.
5505
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/new-for-builtins.md
5395
5506
  */
5396
5507
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
5397
5508
  /**
5398
5509
  * Enforce specifying rules to disable in `eslint-disable` comments.
5399
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-abusive-eslint-disable.md
5510
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-abusive-eslint-disable.md
5400
5511
  */
5401
5512
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
5402
5513
  /**
5403
5514
  * Disallow recursive access to `this` within getters and setters.
5404
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-accessor-recursion.md
5515
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-accessor-recursion.md
5405
5516
  */
5406
5517
  'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
5518
+ /**
5519
+ * Disallow bitwise operators where a logical operator was likely intended.
5520
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-accidental-bitwise-operator.md
5521
+ */
5522
+ 'unicorn/no-accidental-bitwise-operator'?: Linter.RuleEntry<[]>;
5407
5523
  /**
5408
5524
  * Disallow anonymous functions and classes as the default export.
5409
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-anonymous-default-export.md
5525
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-anonymous-default-export.md
5410
5526
  */
5411
5527
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
5412
5528
  /**
5413
5529
  * Prevent passing a function reference directly to iterator methods.
5414
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-callback-reference.md
5530
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-callback-reference.md
5415
5531
  */
5416
- 'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>;
5532
+ 'unicorn/no-array-callback-reference'?: Linter.RuleEntry<UnicornNoArrayCallbackReference>;
5417
5533
  /**
5418
- * Prefer `for…of` over the `forEach` method.
5419
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-for-each.md
5534
+ * Disallow array accumulation with `Array#concat()` in loops.
5535
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-concat-in-loop.md
5536
+ */
5537
+ 'unicorn/no-array-concat-in-loop'?: Linter.RuleEntry<[]>;
5538
+ /**
5539
+ * Disallow using reference values as `Array#fill()` values.
5540
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-fill-with-reference-type.md
5541
+ */
5542
+ 'unicorn/no-array-fill-with-reference-type'?: Linter.RuleEntry<[]>;
5543
+ /**
5544
+ * Disallow `.fill()` after `Array.from({length: …})`.
5545
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-from-fill.md
5420
5546
  */
5421
- 'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>;
5547
+ 'unicorn/no-array-from-fill'?: Linter.RuleEntry<[]>;
5548
+ /**
5549
+ * Disallow front-of-array mutation.
5550
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-front-mutation.md
5551
+ */
5552
+ 'unicorn/no-array-front-mutation'?: Linter.RuleEntry<[]>;
5422
5553
  /**
5423
5554
  * Disallow using the `this` argument in array methods.
5424
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-method-this-argument.md
5555
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-method-this-argument.md
5425
5556
  */
5426
5557
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
5427
5558
  /**
5428
5559
  * Replaced by `unicorn/prefer-single-call` which covers more cases.
5429
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
5560
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
5430
5561
  * @deprecated
5431
5562
  */
5432
5563
  'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
5433
5564
  /**
5434
5565
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
5435
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-reduce.md
5566
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-reduce.md
5436
5567
  */
5437
5568
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
5438
5569
  /**
5439
5570
  * Prefer `Array#toReversed()` over `Array#reverse()`.
5440
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-reverse.md
5571
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-reverse.md
5441
5572
  */
5442
5573
  'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
5443
5574
  /**
5444
5575
  * Prefer `Array#toSorted()` over `Array#sort()`.
5445
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-sort.md
5576
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-sort.md
5446
5577
  */
5447
5578
  'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>;
5579
+ /**
5580
+ * Disallow sorting arrays to get the minimum or maximum value.
5581
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-sort-for-min-max.md
5582
+ */
5583
+ 'unicorn/no-array-sort-for-min-max'?: Linter.RuleEntry<[]>;
5584
+ /**
5585
+ * Prefer `Array#toSpliced()` over `Array#splice()`.
5586
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-splice.md
5587
+ */
5588
+ 'unicorn/no-array-splice'?: Linter.RuleEntry<[]>;
5589
+ /**
5590
+ * Disallow asterisk prefixes in documentation comments.
5591
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
5592
+ */
5593
+ 'unicorn/no-asterisk-prefix-in-documentation-comments'?: Linter.RuleEntry<[]>;
5448
5594
  /**
5449
5595
  * Disallow member access from await expression.
5450
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-await-expression-member.md
5596
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-await-expression-member.md
5451
5597
  */
5452
5598
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
5453
5599
  /**
5454
5600
  * Disallow using `await` in `Promise` method parameters.
5455
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-await-in-promise-methods.md
5601
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-await-in-promise-methods.md
5456
5602
  */
5457
5603
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
5604
+ /**
5605
+ * Disallow unnecessary `Blob` to `File` conversion.
5606
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-blob-to-file.md
5607
+ */
5608
+ 'unicorn/no-blob-to-file'?: Linter.RuleEntry<[]>;
5609
+ /**
5610
+ * Disallow boolean-returning sort comparators.
5611
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-boolean-sort-comparator.md
5612
+ */
5613
+ 'unicorn/no-boolean-sort-comparator'?: Linter.RuleEntry<[]>;
5614
+ /**
5615
+ * Disallow `break` and `continue` in nested loops and switches inside loops.
5616
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-break-in-nested-loop.md
5617
+ */
5618
+ 'unicorn/no-break-in-nested-loop'?: Linter.RuleEntry<[]>;
5619
+ /**
5620
+ * Prefer drawing canvases directly instead of converting them to images.
5621
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-canvas-to-image.md
5622
+ */
5623
+ 'unicorn/no-canvas-to-image'?: Linter.RuleEntry<[]>;
5624
+ /**
5625
+ * Disallow chained comparisons such as `a < b < c`.
5626
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-chained-comparison.md
5627
+ */
5628
+ 'unicorn/no-chained-comparison'?: Linter.RuleEntry<[]>;
5629
+ /**
5630
+ * Disallow accessing `Map`, `Set`, `WeakMap`, and `WeakSet` entries with bracket notation.
5631
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-collection-bracket-access.md
5632
+ */
5633
+ 'unicorn/no-collection-bracket-access'?: Linter.RuleEntry<[]>;
5634
+ /**
5635
+ * Disallow dynamic object property existence checks.
5636
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-computed-property-existence-check.md
5637
+ */
5638
+ 'unicorn/no-computed-property-existence-check'?: Linter.RuleEntry<[]>;
5639
+ /**
5640
+ * Disallow confusing uses of `Array#{splice,toSpliced}()`.
5641
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-confusing-array-splice.md
5642
+ */
5643
+ 'unicorn/no-confusing-array-splice'?: Linter.RuleEntry<[]>;
5644
+ /**
5645
+ * Disallow confusing uses of `Array#with()`.
5646
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-confusing-array-with.md
5647
+ */
5648
+ 'unicorn/no-confusing-array-with'?: Linter.RuleEntry<[]>;
5458
5649
  /**
5459
5650
  * Do not use leading/trailing space between `console.log` parameters.
5460
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-console-spaces.md
5651
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-console-spaces.md
5461
5652
  */
5462
5653
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
5654
+ /**
5655
+ * Disallow arithmetic and bitwise operations that always evaluate to `0`.
5656
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-constant-zero-expression.md
5657
+ */
5658
+ 'unicorn/no-constant-zero-expression'?: Linter.RuleEntry<[]>;
5659
+ /**
5660
+ * Disallow declarations before conditional early exits when they are only used after the exit.
5661
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-declarations-before-early-exit.md
5662
+ */
5663
+ 'unicorn/no-declarations-before-early-exit'?: Linter.RuleEntry<[]>;
5463
5664
  /**
5464
5665
  * Do not use `document.cookie` directly.
5465
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-document-cookie.md
5666
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-document-cookie.md
5466
5667
  */
5467
5668
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
5669
+ /**
5670
+ * Disallow two comparisons of the same operands that can be combined into one.
5671
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-double-comparison.md
5672
+ */
5673
+ 'unicorn/no-double-comparison'?: Linter.RuleEntry<[]>;
5674
+ /**
5675
+ * Disallow duplicate adjacent branches in if chains.
5676
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-duplicate-if-branches.md
5677
+ */
5678
+ 'unicorn/no-duplicate-if-branches'?: Linter.RuleEntry<[]>;
5679
+ /**
5680
+ * Disallow adjacent duplicate operands in logical expressions.
5681
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-duplicate-logical-operands.md
5682
+ */
5683
+ 'unicorn/no-duplicate-logical-operands'?: Linter.RuleEntry<[]>;
5684
+ /**
5685
+ * Disallow `.map()` and `.filter()` in `for…of` and `for await…of` loop headers.
5686
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-duplicate-loops.md
5687
+ */
5688
+ 'unicorn/no-duplicate-loops'?: Linter.RuleEntry<[]>;
5689
+ /**
5690
+ * Disallow duplicate values in `Set` constructor array literals.
5691
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-duplicate-set-values.md
5692
+ */
5693
+ 'unicorn/no-duplicate-set-values'?: Linter.RuleEntry<[]>;
5468
5694
  /**
5469
5695
  * Disallow empty files.
5470
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-empty-file.md
5696
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-empty-file.md
5697
+ */
5698
+ 'unicorn/no-empty-file'?: Linter.RuleEntry<UnicornNoEmptyFile>;
5699
+ /**
5700
+ * Disallow assigning to built-in error properties.
5701
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-error-property-assignment.md
5471
5702
  */
5472
- 'unicorn/no-empty-file'?: Linter.RuleEntry<[]>;
5703
+ 'unicorn/no-error-property-assignment'?: Linter.RuleEntry<[]>;
5704
+ /**
5705
+ * Disallow exports in scripts.
5706
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-exports-in-scripts.md
5707
+ */
5708
+ 'unicorn/no-exports-in-scripts'?: Linter.RuleEntry<[]>;
5709
+ /**
5710
+ * Prefer `for…of` over the `forEach` method.
5711
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-for-each.md
5712
+ */
5713
+ 'unicorn/no-for-each'?: Linter.RuleEntry<[]>;
5473
5714
  /**
5474
5715
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
5475
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-for-loop.md
5716
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-for-loop.md
5476
5717
  */
5477
5718
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
5478
5719
  /**
5479
- * Enforce the use of Unicode escapes instead of hexadecimal escapes.
5480
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-hex-escape.md
5720
+ * Disallow assigning properties on the global object.
5721
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-global-object-property-assignment.md
5722
+ */
5723
+ 'unicorn/no-global-object-property-assignment'?: Linter.RuleEntry<[]>;
5724
+ /**
5725
+ * Replaced by `unicorn/prefer-unicode-code-point-escapes` which covers more cases.
5726
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
5727
+ * @deprecated
5481
5728
  */
5482
5729
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
5483
5730
  /**
5484
5731
  * Disallow immediate mutation after variable assignment.
5485
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-immediate-mutation.md
5732
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-immediate-mutation.md
5486
5733
  */
5487
5734
  'unicorn/no-immediate-mutation'?: Linter.RuleEntry<[]>;
5735
+ /**
5736
+ * Disallow impossible comparisons against `.length` or `.size`.
5737
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-impossible-length-comparison.md
5738
+ */
5739
+ 'unicorn/no-impossible-length-comparison'?: Linter.RuleEntry<[]>;
5740
+ /**
5741
+ * Disallow incorrect `querySelector()` and `querySelectorAll()` usage.
5742
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-incorrect-query-selector.md
5743
+ */
5744
+ 'unicorn/no-incorrect-query-selector'?: Linter.RuleEntry<[]>;
5745
+ /**
5746
+ * Disallow incorrect template literal interpolation syntax.
5747
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-incorrect-template-string-interpolation.md
5748
+ */
5749
+ 'unicorn/no-incorrect-template-string-interpolation'?: Linter.RuleEntry<[]>;
5488
5750
  /**
5489
5751
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
5490
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
5752
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
5491
5753
  * @deprecated
5492
5754
  */
5493
5755
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
5494
5756
  /**
5495
5757
  * Disallow `instanceof` with built-in objects
5496
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-instanceof-builtins.md
5758
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-instanceof-builtins.md
5497
5759
  */
5498
5760
  'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
5761
+ /**
5762
+ * Disallow calling functions and constructors with an invalid number of arguments.
5763
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-invalid-argument-count.md
5764
+ */
5765
+ 'unicorn/no-invalid-argument-count'?: Linter.RuleEntry<UnicornNoInvalidArgumentCount>;
5766
+ /**
5767
+ * Disallow comparing a single character from a string to a multi-character string.
5768
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-invalid-character-comparison.md
5769
+ */
5770
+ 'unicorn/no-invalid-character-comparison'?: Linter.RuleEntry<[]>;
5499
5771
  /**
5500
5772
  * Disallow invalid options in `fetch()` and `new Request()`.
5501
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-invalid-fetch-options.md
5773
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-invalid-fetch-options.md
5502
5774
  */
5503
5775
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
5776
+ /**
5777
+ * Disallow invalid `accept` values on file inputs.
5778
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-invalid-file-input-accept.md
5779
+ */
5780
+ 'unicorn/no-invalid-file-input-accept'?: Linter.RuleEntry<[]>;
5504
5781
  /**
5505
5782
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
5506
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-invalid-remove-event-listener.md
5783
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-invalid-remove-event-listener.md
5507
5784
  */
5508
5785
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
5786
+ /**
5787
+ * Disallow invalid implementations of well-known symbol methods.
5788
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
5789
+ */
5790
+ 'unicorn/no-invalid-well-known-symbol-methods'?: Linter.RuleEntry<[]>;
5509
5791
  /**
5510
5792
  * Disallow identifiers starting with `new` or `class`.
5511
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-keyword-prefix.md
5793
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-keyword-prefix.md
5512
5794
  */
5513
5795
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
5796
+ /**
5797
+ * Disallow accessing `event.currentTarget` after the synchronous event dispatch has finished.
5798
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-late-current-target-access.md
5799
+ */
5800
+ 'unicorn/no-late-current-target-access'?: Linter.RuleEntry<[]>;
5801
+ /**
5802
+ * Disallow event-control method calls after the synchronous event dispatch has finished.
5803
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-late-event-control.md
5804
+ */
5805
+ 'unicorn/no-late-event-control'?: Linter.RuleEntry<[]>;
5514
5806
  /**
5515
5807
  * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
5516
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
5808
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
5517
5809
  * @deprecated
5518
5810
  */
5519
5811
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
5520
5812
  /**
5521
5813
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
5522
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-lonely-if.md
5814
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-lonely-if.md
5523
5815
  */
5524
5816
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
5817
+ /**
5818
+ * Disallow mutating a loop iterable during iteration.
5819
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-loop-iterable-mutation.md
5820
+ */
5821
+ 'unicorn/no-loop-iterable-mutation'?: Linter.RuleEntry<[]>;
5525
5822
  /**
5526
5823
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
5527
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-magic-array-flat-depth.md
5824
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-magic-array-flat-depth.md
5528
5825
  */
5529
5826
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
5827
+ /**
5828
+ * Disallow manually wrapped comments.
5829
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-manually-wrapped-comments.md
5830
+ */
5831
+ 'unicorn/no-manually-wrapped-comments'?: Linter.RuleEntry<[]>;
5832
+ /**
5833
+ * Disallow checking a Map key before accessing a different key.
5834
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-mismatched-map-key.md
5835
+ */
5836
+ 'unicorn/no-mismatched-map-key'?: Linter.RuleEntry<[]>;
5837
+ /**
5838
+ * Disallow misrefactored compound assignments where the target is duplicated in the right-hand side.
5839
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-misrefactored-assignment.md
5840
+ */
5841
+ 'unicorn/no-misrefactored-assignment'?: Linter.RuleEntry<[]>;
5530
5842
  /**
5531
5843
  * Disallow named usage of default import and export.
5532
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-named-default.md
5844
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-named-default.md
5533
5845
  */
5534
5846
  'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
5847
+ /**
5848
+ * Disallow negated array predicate calls.
5849
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-negated-array-predicate.md
5850
+ */
5851
+ 'unicorn/no-negated-array-predicate'?: Linter.RuleEntry<[]>;
5852
+ /**
5853
+ * Disallow negated comparisons.
5854
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-negated-comparison.md
5855
+ */
5856
+ 'unicorn/no-negated-comparison'?: Linter.RuleEntry<UnicornNoNegatedComparison>;
5535
5857
  /**
5536
5858
  * Disallow negated conditions.
5537
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-negated-condition.md
5859
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-negated-condition.md
5538
5860
  */
5539
5861
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
5540
5862
  /**
5541
5863
  * Disallow negated expression in equality check.
5542
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-negation-in-equality-check.md
5864
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-negation-in-equality-check.md
5543
5865
  */
5544
5866
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
5545
5867
  /**
5546
5868
  * Disallow nested ternary expressions.
5547
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-nested-ternary.md
5869
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-nested-ternary.md
5548
5870
  */
5549
5871
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
5550
5872
  /**
5551
5873
  * Disallow `new Array()`.
5552
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-new-array.md
5874
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-new-array.md
5553
5875
  */
5554
5876
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
5555
5877
  /**
5556
5878
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
5557
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-new-buffer.md
5879
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-new-buffer.md
5558
5880
  */
5559
5881
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
5882
+ /**
5883
+ * Disallow non-function values with function-style verb prefixes.
5884
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-non-function-verb-prefix.md
5885
+ */
5886
+ 'unicorn/no-non-function-verb-prefix'?: Linter.RuleEntry<UnicornNoNonFunctionVerbPrefix>;
5887
+ /**
5888
+ * Disallow non-standard properties on built-in objects.
5889
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-nonstandard-builtin-properties.md
5890
+ */
5891
+ 'unicorn/no-nonstandard-builtin-properties'?: Linter.RuleEntry<[]>;
5560
5892
  /**
5561
5893
  * Disallow the use of the `null` literal.
5562
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-null.md
5894
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-null.md
5563
5895
  */
5564
5896
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
5565
5897
  /**
5566
5898
  * Disallow the use of objects as default parameters.
5567
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-object-as-default-parameter.md
5899
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-object-as-default-parameter.md
5568
5900
  */
5569
5901
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
5902
+ /**
5903
+ * Disallow `Object` methods with `Map` or `Set`.
5904
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-object-methods-with-collections.md
5905
+ */
5906
+ 'unicorn/no-object-methods-with-collections'?: Linter.RuleEntry<[]>;
5907
+ /**
5908
+ * Disallow optional chaining on undeclared variables.
5909
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
5910
+ */
5911
+ 'unicorn/no-optional-chaining-on-undeclared-variable'?: Linter.RuleEntry<[]>;
5570
5912
  /**
5571
5913
  * Disallow `process.exit()`.
5572
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-process-exit.md
5914
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-process-exit.md
5573
5915
  */
5574
5916
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
5917
+ /**
5918
+ * Disallow comparisons made redundant by an equality check in the same logical AND.
5919
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-redundant-comparison.md
5920
+ */
5921
+ 'unicorn/no-redundant-comparison'?: Linter.RuleEntry<[]>;
5922
+ /**
5923
+ * Disallow using the return value of `Array#push()` and `Array#unshift()`.
5924
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-return-array-push.md
5925
+ */
5926
+ 'unicorn/no-return-array-push'?: Linter.RuleEntry<[]>;
5927
+ /**
5928
+ * Disallow selector syntax in DOM names.
5929
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-selector-as-dom-name.md
5930
+ */
5931
+ 'unicorn/no-selector-as-dom-name'?: Linter.RuleEntry<[]>;
5575
5932
  /**
5576
5933
  * Disallow passing single-element arrays to `Promise` methods.
5577
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-single-promise-in-promise-methods.md
5934
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-single-promise-in-promise-methods.md
5578
5935
  */
5579
5936
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
5580
5937
  /**
5581
5938
  * Disallow classes that only have static members.
5582
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-static-only-class.md
5939
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-static-only-class.md
5583
5940
  */
5584
5941
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
5942
+ /**
5943
+ * Prefer comparing values directly over subtracting and comparing to `0`.
5944
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-subtraction-comparison.md
5945
+ */
5946
+ 'unicorn/no-subtraction-comparison'?: Linter.RuleEntry<[]>;
5585
5947
  /**
5586
5948
  * Disallow `then` property.
5587
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-thenable.md
5949
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-thenable.md
5588
5950
  */
5589
5951
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
5590
5952
  /**
5591
5953
  * Disallow assigning `this` to a variable.
5592
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-this-assignment.md
5954
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-this-assignment.md
5593
5955
  */
5594
5956
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
5957
+ /**
5958
+ * Disallow `this` outside of classes.
5959
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-this-outside-of-class.md
5960
+ */
5961
+ 'unicorn/no-this-outside-of-class'?: Linter.RuleEntry<[]>;
5962
+ /**
5963
+ * Disallow assigning to top-level variables from inside functions.
5964
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-top-level-assignment-in-function.md
5965
+ */
5966
+ 'unicorn/no-top-level-assignment-in-function'?: Linter.RuleEntry<[]>;
5967
+ /**
5968
+ * Disallow top-level side effects in exported modules.
5969
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-top-level-side-effects.md
5970
+ */
5971
+ 'unicorn/no-top-level-side-effects'?: Linter.RuleEntry<[]>;
5595
5972
  /**
5596
5973
  * Disallow comparing `undefined` using `typeof`.
5597
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-typeof-undefined.md
5974
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-typeof-undefined.md
5598
5975
  */
5599
5976
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
5977
+ /**
5978
+ * Disallow referencing methods without calling them.
5979
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-uncalled-method.md
5980
+ */
5981
+ 'unicorn/no-uncalled-method'?: Linter.RuleEntry<[]>;
5982
+ /**
5983
+ * Require class members to be declared.
5984
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-undeclared-class-members.md
5985
+ */
5986
+ 'unicorn/no-undeclared-class-members'?: Linter.RuleEntry<[]>;
5600
5987
  /**
5601
5988
  * Disallow using `1` as the `depth` argument of `Array#flat()`.
5602
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-array-flat-depth.md
5989
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unnecessary-array-flat-depth.md
5603
5990
  */
5604
5991
  'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
5605
5992
  /**
5606
5993
  * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
5607
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-array-splice-count.md
5994
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unnecessary-array-splice-count.md
5608
5995
  */
5609
5996
  'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
5610
5997
  /**
5611
5998
  * Disallow awaiting non-promise values.
5612
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-await.md
5999
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unnecessary-await.md
5613
6000
  */
5614
6001
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
6002
+ /**
6003
+ * Disallow unnecessary comparisons against boolean literals.
6004
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unnecessary-boolean-comparison.md
6005
+ */
6006
+ 'unicorn/no-unnecessary-boolean-comparison'?: Linter.RuleEntry<[]>;
6007
+ /**
6008
+ * Disallow unnecessary `globalThis` references.
6009
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unnecessary-global-this.md
6010
+ */
6011
+ 'unicorn/no-unnecessary-global-this'?: Linter.RuleEntry<[]>;
6012
+ /**
6013
+ * Disallow unnecessary nested ternary expressions.
6014
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unnecessary-nested-ternary.md
6015
+ */
6016
+ 'unicorn/no-unnecessary-nested-ternary'?: Linter.RuleEntry<[]>;
5615
6017
  /**
5616
6018
  * Enforce the use of built-in methods instead of unnecessary polyfills.
5617
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-polyfills.md
6019
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unnecessary-polyfills.md
5618
6020
  */
5619
6021
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
5620
6022
  /**
5621
6023
  * Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
5622
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-slice-end.md
6024
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unnecessary-slice-end.md
5623
6025
  */
5624
6026
  'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
6027
+ /**
6028
+ * Disallow `Array#splice()` when simpler alternatives exist.
6029
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unnecessary-splice.md
6030
+ */
6031
+ 'unicorn/no-unnecessary-splice'?: Linter.RuleEntry<[]>;
5625
6032
  /**
5626
6033
  * Disallow unreadable array destructuring.
5627
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unreadable-array-destructuring.md
6034
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unreadable-array-destructuring.md
5628
6035
  */
5629
- 'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>;
6036
+ 'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<UnicornNoUnreadableArrayDestructuring>;
6037
+ /**
6038
+ * Disallow unreadable iterable expressions in `for…of` and `for await…of` loop headers.
6039
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unreadable-for-of-expression.md
6040
+ */
6041
+ 'unicorn/no-unreadable-for-of-expression'?: Linter.RuleEntry<[]>;
5630
6042
  /**
5631
6043
  * Disallow unreadable IIFEs.
5632
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unreadable-iife.md
6044
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unreadable-iife.md
5633
6045
  */
5634
6046
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
6047
+ /**
6048
+ * Disallow unreadable `new` expressions.
6049
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unreadable-new-expression.md
6050
+ */
6051
+ 'unicorn/no-unreadable-new-expression'?: Linter.RuleEntry<[]>;
6052
+ /**
6053
+ * Disallow unreadable object destructuring.
6054
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unreadable-object-destructuring.md
6055
+ */
6056
+ 'unicorn/no-unreadable-object-destructuring'?: Linter.RuleEntry<[]>;
6057
+ /**
6058
+ * Prevent unsafe use of ArrayBuffer view `.buffer`.
6059
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unsafe-buffer-conversion.md
6060
+ */
6061
+ 'unicorn/no-unsafe-buffer-conversion'?: Linter.RuleEntry<[]>;
6062
+ /**
6063
+ * Disallow unsafe DOM HTML APIs.
6064
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unsafe-dom-html.md
6065
+ */
6066
+ 'unicorn/no-unsafe-dom-html'?: Linter.RuleEntry<[]>;
6067
+ /**
6068
+ * Disallow unsafe values as property keys.
6069
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unsafe-property-key.md
6070
+ */
6071
+ 'unicorn/no-unsafe-property-key'?: Linter.RuleEntry<[]>;
6072
+ /**
6073
+ * Disallow non-literal replacement values in `String#replace()` and `String#replaceAll()`.
6074
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unsafe-string-replacement.md
6075
+ */
6076
+ 'unicorn/no-unsafe-string-replacement'?: Linter.RuleEntry<[]>;
6077
+ /**
6078
+ * Disallow ignoring the return value of selected array methods.
6079
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unused-array-method-return.md
6080
+ */
6081
+ 'unicorn/no-unused-array-method-return'?: Linter.RuleEntry<[]>;
5635
6082
  /**
5636
6083
  * Disallow unused object properties.
5637
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unused-properties.md
6084
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unused-properties.md
5638
6085
  */
5639
6086
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
6087
+ /**
6088
+ * Disallow unnecessary `Boolean()` casts in array predicate callbacks.
6089
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-boolean-cast.md
6090
+ */
6091
+ 'unicorn/no-useless-boolean-cast'?: Linter.RuleEntry<[]>;
6092
+ /**
6093
+ * Disallow useless type coercions of values that are already of the target type.
6094
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-coercion.md
6095
+ */
6096
+ 'unicorn/no-useless-coercion'?: Linter.RuleEntry<[]>;
5640
6097
  /**
5641
6098
  * Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
5642
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-collection-argument.md
6099
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-collection-argument.md
5643
6100
  */
5644
6101
  'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>;
6102
+ /**
6103
+ * Disallow useless compound assignments such as `x += 0`.
6104
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-compound-assignment.md
6105
+ */
6106
+ 'unicorn/no-useless-compound-assignment'?: Linter.RuleEntry<[]>;
6107
+ /**
6108
+ * Disallow useless concatenation of literals.
6109
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-concat.md
6110
+ */
6111
+ 'unicorn/no-useless-concat'?: Linter.RuleEntry<[]>;
6112
+ /**
6113
+ * Disallow useless `continue` statements.
6114
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-continue.md
6115
+ */
6116
+ 'unicorn/no-useless-continue'?: Linter.RuleEntry<[]>;
6117
+ /**
6118
+ * Disallow unnecessary existence checks before deletion.
6119
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-delete-check.md
6120
+ */
6121
+ 'unicorn/no-useless-delete-check'?: Linter.RuleEntry<[]>;
6122
+ /**
6123
+ * Disallow `else` after a statement that exits.
6124
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-else.md
6125
+ */
6126
+ 'unicorn/no-useless-else'?: Linter.RuleEntry<[]>;
5645
6127
  /**
5646
6128
  * Disallow unnecessary `Error.captureStackTrace(…)`.
5647
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-error-capture-stack-trace.md
6129
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-error-capture-stack-trace.md
5648
6130
  */
5649
6131
  'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
5650
6132
  /**
5651
6133
  * Disallow useless fallback when spreading in object literals.
5652
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-fallback-in-spread.md
6134
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-fallback-in-spread.md
5653
6135
  */
5654
6136
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
5655
6137
  /**
5656
6138
  * Disallow unnecessary `.toArray()` on iterators.
5657
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-iterator-to-array.md
6139
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-iterator-to-array.md
5658
6140
  */
5659
6141
  'unicorn/no-useless-iterator-to-array'?: Linter.RuleEntry<[]>;
5660
6142
  /**
5661
6143
  * Disallow useless array length check.
5662
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-length-check.md
6144
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-length-check.md
5663
6145
  */
5664
6146
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
6147
+ /**
6148
+ * Disallow unnecessary operands in logical expressions involving boolean literals.
6149
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-logical-operand.md
6150
+ */
6151
+ 'unicorn/no-useless-logical-operand'?: Linter.RuleEntry<[]>;
6152
+ /**
6153
+ * Disallow useless overrides of class methods.
6154
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-override.md
6155
+ */
6156
+ 'unicorn/no-useless-override'?: Linter.RuleEntry<[]>;
5665
6157
  /**
5666
6158
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
5667
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-promise-resolve-reject.md
6159
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-promise-resolve-reject.md
5668
6160
  */
5669
6161
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
6162
+ /**
6163
+ * Disallow simple recursive function calls that can be replaced with a loop.
6164
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-recursion.md
6165
+ */
6166
+ 'unicorn/no-useless-recursion'?: Linter.RuleEntry<[]>;
5670
6167
  /**
5671
6168
  * Disallow unnecessary spread.
5672
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-spread.md
6169
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-spread.md
5673
6170
  */
5674
6171
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
5675
6172
  /**
5676
6173
  * Disallow useless case in switch statements.
5677
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-switch-case.md
6174
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-switch-case.md
5678
6175
  */
5679
6176
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
6177
+ /**
6178
+ * Disallow useless template literal expressions.
6179
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-template-literals.md
6180
+ */
6181
+ 'unicorn/no-useless-template-literals'?: Linter.RuleEntry<[]>;
5680
6182
  /**
5681
6183
  * Disallow useless `undefined`.
5682
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-undefined.md
6184
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-undefined.md
5683
6185
  */
5684
6186
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
6187
+ /**
6188
+ * Disallow the bitwise XOR operator where exponentiation was likely intended.
6189
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-xor-as-exponentiation.md
6190
+ */
6191
+ 'unicorn/no-xor-as-exponentiation'?: Linter.RuleEntry<[]>;
5685
6192
  /**
5686
6193
  * Disallow number literals with zero fractions or dangling dots.
5687
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-zero-fractions.md
6194
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-zero-fractions.md
5688
6195
  */
5689
6196
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
5690
6197
  /**
5691
6198
  * Enforce proper case for numeric literals.
5692
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/number-literal-case.md
6199
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/number-literal-case.md
5693
6200
  */
5694
6201
  'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
5695
6202
  /**
5696
6203
  * Enforce the style of numeric separators by correctly grouping digits.
5697
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/numeric-separators-style.md
6204
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/numeric-separators-style.md
5698
6205
  */
5699
6206
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
6207
+ /**
6208
+ * Require assignment operator shorthand where possible.
6209
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/operator-assignment.md
6210
+ */
6211
+ 'unicorn/operator-assignment'?: Linter.RuleEntry<UnicornOperatorAssignment>;
6212
+ /**
6213
+ * Prefer `AbortSignal.timeout()` over manually aborting an `AbortController` with `setTimeout()`.
6214
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-abort-signal-timeout.md
6215
+ */
6216
+ 'unicorn/prefer-abort-signal-timeout'?: Linter.RuleEntry<[]>;
5700
6217
  /**
5701
6218
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
5702
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-add-event-listener.md
6219
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-add-event-listener.md
5703
6220
  */
5704
6221
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
6222
+ /**
6223
+ * Prefer an options object over a boolean in `.addEventListener()`.
6224
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-add-event-listener-options.md
6225
+ */
6226
+ 'unicorn/prefer-add-event-listener-options'?: Linter.RuleEntry<[]>;
6227
+ /**
6228
+ * Prefer `AggregateError` when throwing collected errors.
6229
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-aggregate-error.md
6230
+ */
6231
+ 'unicorn/prefer-aggregate-error'?: Linter.RuleEntry<[]>;
5705
6232
  /**
5706
6233
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
5707
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-find.md
6234
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-array-find.md
5708
6235
  */
5709
6236
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
5710
6237
  /**
5711
6238
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
5712
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-flat.md
6239
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-array-flat.md
5713
6240
  */
5714
6241
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
5715
6242
  /**
5716
- * Prefer `.flatMap(…)` over `.map(…).flat()`.
5717
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-flat-map.md
6243
+ * Prefer `.flatMap(…)` over `.map(…).flat()` and `.filter(…).flatMap(…)`.
6244
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-array-flat-map.md
5718
6245
  */
5719
6246
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
6247
+ /**
6248
+ * Prefer `Array.fromAsync()` over `for await…of` array accumulation.
6249
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-array-from-async.md
6250
+ */
6251
+ 'unicorn/prefer-array-from-async'?: Linter.RuleEntry<[]>;
6252
+ /**
6253
+ * Prefer using the `Array.from()` mapping function argument.
6254
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-array-from-map.md
6255
+ */
6256
+ 'unicorn/prefer-array-from-map'?: Linter.RuleEntry<[]>;
5720
6257
  /**
5721
6258
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
5722
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-index-of.md
6259
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-array-index-of.md
5723
6260
  */
5724
6261
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
6262
+ /**
6263
+ * Prefer iterating an array directly or with `Array#keys()` over `Array#entries()` when the index or value is unused.
6264
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-array-iterable-methods.md
6265
+ */
6266
+ 'unicorn/prefer-array-iterable-methods'?: Linter.RuleEntry<[]>;
6267
+ /**
6268
+ * Prefer last-oriented array methods over `Array#reverse()` or `Array#toReversed()` followed by a method.
6269
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-array-last-methods.md
6270
+ */
6271
+ 'unicorn/prefer-array-last-methods'?: Linter.RuleEntry<[]>;
6272
+ /**
6273
+ * Prefer `Array#slice()` over `Array#splice()` when reading from the returned array.
6274
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-array-slice.md
6275
+ */
6276
+ 'unicorn/prefer-array-slice'?: Linter.RuleEntry<[]>;
5725
6277
  /**
5726
6278
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
5727
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-some.md
6279
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-array-some.md
5728
6280
  */
5729
6281
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
5730
6282
  /**
5731
6283
  * Prefer `.at()` method for index access and `String#charAt()`.
5732
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-at.md
6284
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-at.md
5733
6285
  */
5734
6286
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
6287
+ /**
6288
+ * Prefer `await` over promise chaining.
6289
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-await.md
6290
+ */
6291
+ 'unicorn/prefer-await'?: Linter.RuleEntry<[]>;
5735
6292
  /**
5736
6293
  * Prefer `BigInt` literals over the constructor.
5737
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-bigint-literals.md
6294
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-bigint-literals.md
5738
6295
  */
5739
6296
  'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>;
5740
6297
  /**
5741
6298
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
5742
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-blob-reading-methods.md
6299
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-blob-reading-methods.md
5743
6300
  */
5744
6301
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
6302
+ /**
6303
+ * Prefer directly returning boolean expressions over `if` statements.
6304
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-boolean-return.md
6305
+ */
6306
+ 'unicorn/prefer-boolean-return'?: Linter.RuleEntry<[]>;
5745
6307
  /**
5746
6308
  * Prefer class field declarations over `this` assignments in constructors.
5747
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-class-fields.md
6309
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-class-fields.md
5748
6310
  */
5749
6311
  'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
5750
6312
  /**
5751
6313
  * Prefer using `Element#classList.toggle()` to toggle class names.
5752
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-classlist-toggle.md
6314
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-classlist-toggle.md
5753
6315
  */
5754
6316
  'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>;
5755
6317
  /**
5756
6318
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
5757
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-code-point.md
6319
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-code-point.md
5758
6320
  */
5759
6321
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
6322
+ /**
6323
+ * Prefer early continues over whole-loop conditional wrapping.
6324
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-continue.md
6325
+ */
6326
+ 'unicorn/prefer-continue'?: Linter.RuleEntry<UnicornPreferContinue>;
5760
6327
  /**
5761
6328
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
5762
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-date-now.md
6329
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-date-now.md
5763
6330
  */
5764
6331
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
5765
6332
  /**
5766
6333
  * Prefer default parameters over reassignment.
5767
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-default-parameters.md
6334
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-default-parameters.md
5768
6335
  */
5769
6336
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
5770
6337
  /**
5771
- * Prefer `Node#append()` over `Node#appendChild()`.
5772
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-dom-node-append.md
6338
+ * Prefer direct iteration over default iterator method calls.
6339
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-direct-iteration.md
6340
+ */
6341
+ 'unicorn/prefer-direct-iteration'?: Linter.RuleEntry<[]>;
6342
+ /**
6343
+ * Prefer using `using`/`await using` over manual `try`/`finally` resource disposal.
6344
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-dispose.md
6345
+ */
6346
+ 'unicorn/prefer-dispose'?: Linter.RuleEntry<[]>;
6347
+ /**
6348
+ * Prefer `Element#append()` over `Node#appendChild()`.
6349
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-dom-node-append.md
5773
6350
  */
5774
6351
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
5775
6352
  /**
5776
- * Prefer using `.dataset` on DOM elements over calling attribute methods.
5777
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-dom-node-dataset.md
6353
+ * Renamed to `unicorn/dom-node-dataset`.
6354
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
6355
+ * @deprecated
5778
6356
  */
5779
6357
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
6358
+ /**
6359
+ * Prefer `.getHTML()` and `.setHTML()` over `.innerHTML`.
6360
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-dom-node-html-methods.md
6361
+ */
6362
+ 'unicorn/prefer-dom-node-html-methods'?: Linter.RuleEntry<[]>;
5780
6363
  /**
5781
6364
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
5782
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-dom-node-remove.md
6365
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-dom-node-remove.md
5783
6366
  */
5784
6367
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
6368
+ /**
6369
+ * Prefer `.replaceChildren()` when emptying DOM children.
6370
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-dom-node-replace-children.md
6371
+ */
6372
+ 'unicorn/prefer-dom-node-replace-children'?: Linter.RuleEntry<[]>;
5785
6373
  /**
5786
6374
  * Prefer `.textContent` over `.innerText`.
5787
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-dom-node-text-content.md
6375
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-dom-node-text-content.md
5788
6376
  */
5789
6377
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
6378
+ /**
6379
+ * Prefer early returns over full-function conditional wrapping.
6380
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-early-return.md
6381
+ */
6382
+ 'unicorn/prefer-early-return'?: Linter.RuleEntry<UnicornPreferEarlyReturn>;
6383
+ /**
6384
+ * Prefer `else if` over adjacent `if` statements with related conditions.
6385
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-else-if.md
6386
+ */
6387
+ 'unicorn/prefer-else-if'?: Linter.RuleEntry<[]>;
6388
+ /**
6389
+ * Prefer `Error.isError()` when checking for errors.
6390
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-error-is-error.md
6391
+ */
6392
+ 'unicorn/prefer-error-is-error'?: Linter.RuleEntry<[]>;
5790
6393
  /**
5791
6394
  * Prefer `EventTarget` over `EventEmitter`.
5792
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-event-target.md
6395
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-event-target.md
5793
6396
  */
5794
6397
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
5795
6398
  /**
5796
6399
  * Prefer `export…from` when re-exporting.
5797
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-export-from.md
6400
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-export-from.md
5798
6401
  */
5799
6402
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
6403
+ /**
6404
+ * Prefer flat `Math.min()` and `Math.max()` calls over nested calls.
6405
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-flat-math-min-max.md
6406
+ */
6407
+ 'unicorn/prefer-flat-math-min-max'?: Linter.RuleEntry<[]>;
6408
+ /**
6409
+ * Prefer `.getOrInsertComputed()` when the default value has side effects.
6410
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-get-or-insert-computed.md
6411
+ */
6412
+ 'unicorn/prefer-get-or-insert-computed'?: Linter.RuleEntry<[]>;
6413
+ /**
6414
+ * Prefer global numeric constants over `Number` static properties.
6415
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-global-number-constants.md
6416
+ */
6417
+ 'unicorn/prefer-global-number-constants'?: Linter.RuleEntry<[]>;
5800
6418
  /**
5801
6419
  * Prefer `globalThis` over `window`, `self`, and `global`.
5802
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-global-this.md
6420
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-global-this.md
5803
6421
  */
5804
6422
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
6423
+ /**
6424
+ * Prefer `.has()` when checking existence.
6425
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-has-check.md
6426
+ */
6427
+ 'unicorn/prefer-has-check'?: Linter.RuleEntry<[]>;
6428
+ /**
6429
+ * Prefer moving code shared by all branches of an `if` statement out of the branches.
6430
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-hoisting-branch-code.md
6431
+ */
6432
+ 'unicorn/prefer-hoisting-branch-code'?: Linter.RuleEntry<[]>;
6433
+ /**
6434
+ * Prefer HTTPS over HTTP.
6435
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-https.md
6436
+ */
6437
+ 'unicorn/prefer-https'?: Linter.RuleEntry<[]>;
6438
+ /**
6439
+ * Prefer identifiers over string literals in import and export specifiers.
6440
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
6441
+ */
6442
+ 'unicorn/prefer-identifier-import-export-specifiers'?: Linter.RuleEntry<[]>;
5805
6443
  /**
5806
6444
  * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
5807
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-import-meta-properties.md
6445
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-import-meta-properties.md
5808
6446
  */
5809
6447
  'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
5810
6448
  /**
5811
6449
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
5812
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-includes.md
6450
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-includes.md
5813
6451
  */
5814
6452
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
5815
6453
  /**
5816
- * Prefer reading a JSON file as a buffer.
5817
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-json-parse-buffer.md
6454
+ * Prefer `.includes()` over repeated equality comparisons.
6455
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
6456
+ */
6457
+ 'unicorn/prefer-includes-over-repeated-comparisons'?: Linter.RuleEntry<UnicornPreferIncludesOverRepeatedComparisons>;
6458
+ /**
6459
+ * Prefer passing iterables directly to constructors instead of filling empty collections.
6460
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-iterable-in-constructor.md
6461
+ */
6462
+ 'unicorn/prefer-iterable-in-constructor'?: Linter.RuleEntry<[]>;
6463
+ /**
6464
+ * Prefer `Iterator.concat(…)` over temporary spread arrays.
6465
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-iterator-concat.md
6466
+ */
6467
+ 'unicorn/prefer-iterator-concat'?: Linter.RuleEntry<[]>;
6468
+ /**
6469
+ * Prefer `Iterator#toArray()` over temporary arrays from iterator spreads.
6470
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-iterator-to-array.md
6471
+ */
6472
+ 'unicorn/prefer-iterator-to-array'?: Linter.RuleEntry<[]>;
6473
+ /**
6474
+ * Prefer moving `.toArray()` to the end of iterator helper chains.
6475
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-iterator-to-array-at-end.md
6476
+ */
6477
+ 'unicorn/prefer-iterator-to-array-at-end'?: Linter.RuleEntry<[]>;
6478
+ /**
6479
+ * Renamed to `unicorn/consistent-json-file-read`.
6480
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
6481
+ * @deprecated
5818
6482
  */
5819
6483
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
5820
6484
  /**
5821
- * Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
5822
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-keyboard-event-key.md
6485
+ * Prefer `KeyboardEvent#key` over deprecated keyboard event properties.
6486
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-keyboard-event-key.md
5823
6487
  */
5824
6488
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
6489
+ /**
6490
+ * Prefer `location.assign()` over assigning to `location.href`.
6491
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-location-assign.md
6492
+ */
6493
+ 'unicorn/prefer-location-assign'?: Linter.RuleEntry<[]>;
5825
6494
  /**
5826
6495
  * Prefer using a logical operator over a ternary.
5827
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-logical-operator-over-ternary.md
6496
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-logical-operator-over-ternary.md
5828
6497
  */
5829
6498
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
6499
+ /**
6500
+ * Prefer `new Map()` over `Object.fromEntries()` when using the result as a map.
6501
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-map-from-entries.md
6502
+ */
6503
+ 'unicorn/prefer-map-from-entries'?: Linter.RuleEntry<[]>;
6504
+ /**
6505
+ * Prefer `Math.abs()` over manual absolute value expressions and symmetric range checks.
6506
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-math-abs.md
6507
+ */
6508
+ 'unicorn/prefer-math-abs'?: Linter.RuleEntry<[]>;
6509
+ /**
6510
+ * Prefer `Math` constants over their approximate numeric values.
6511
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-math-constants.md
6512
+ */
6513
+ 'unicorn/prefer-math-constants'?: Linter.RuleEntry<[]>;
5830
6514
  /**
5831
6515
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
5832
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-math-min-max.md
6516
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-math-min-max.md
5833
6517
  */
5834
6518
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
5835
6519
  /**
5836
- * Enforce the use of `Math.trunc` instead of bitwise operators.
5837
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-math-trunc.md
6520
+ * Prefer `Math.trunc()` for truncating numbers.
6521
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-math-trunc.md
5838
6522
  */
5839
6523
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
5840
6524
  /**
5841
- * Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
5842
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-modern-dom-apis.md
6525
+ * Prefer moving ternaries into the minimal varying part of an expression.
6526
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-minimal-ternary.md
6527
+ */
6528
+ 'unicorn/prefer-minimal-ternary'?: Linter.RuleEntry<UnicornPreferMinimalTernary>;
6529
+ /**
6530
+ * Prefer modern DOM APIs.
6531
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-modern-dom-apis.md
5843
6532
  */
5844
6533
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
5845
6534
  /**
5846
6535
  * Prefer modern `Math` APIs over legacy patterns.
5847
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-modern-math-apis.md
6536
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-modern-math-apis.md
5848
6537
  */
5849
6538
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
5850
6539
  /**
5851
6540
  * Prefer JavaScript modules (ESM) over CommonJS.
5852
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-module.md
6541
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-module.md
5853
6542
  */
5854
6543
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
5855
6544
  /**
5856
6545
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
5857
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-native-coercion-functions.md
6546
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-native-coercion-functions.md
5858
6547
  */
5859
6548
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
5860
6549
  /**
5861
6550
  * Prefer negative index over `.length - index` when possible.
5862
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-negative-index.md
6551
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-negative-index.md
5863
6552
  */
5864
6553
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
5865
6554
  /**
5866
6555
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
5867
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-node-protocol.md
6556
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-node-protocol.md
5868
6557
  */
5869
6558
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
5870
6559
  /**
5871
- * Prefer `Number` static properties over global ones.
5872
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-number-properties.md
6560
+ * Prefer `Number()` over `parseFloat()` and base-10 `parseInt()`.
6561
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-number-coercion.md
6562
+ */
6563
+ 'unicorn/prefer-number-coercion'?: Linter.RuleEntry<[]>;
6564
+ /**
6565
+ * Prefer `Number.isSafeInteger()` over integer checks.
6566
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-number-is-safe-integer.md
6567
+ */
6568
+ 'unicorn/prefer-number-is-safe-integer'?: Linter.RuleEntry<[]>;
6569
+ /**
6570
+ * Prefer `Number` static methods over global functions and optionally static properties over global constants.
6571
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-number-properties.md
5873
6572
  */
5874
6573
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
6574
+ /**
6575
+ * Prefer `Object.defineProperties()` over multiple `Object.defineProperty()` calls.
6576
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-object-define-properties.md
6577
+ */
6578
+ 'unicorn/prefer-object-define-properties'?: Linter.RuleEntry<[]>;
6579
+ /**
6580
+ * Prefer object destructuring defaults over default object literals with spread.
6581
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-object-destructuring-defaults.md
6582
+ */
6583
+ 'unicorn/prefer-object-destructuring-defaults'?: Linter.RuleEntry<[]>;
5875
6584
  /**
5876
6585
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
5877
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-object-from-entries.md
6586
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-object-from-entries.md
5878
6587
  */
5879
6588
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
6589
+ /**
6590
+ * Prefer the most specific `Object` iterable method.
6591
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-object-iterable-methods.md
6592
+ */
6593
+ 'unicorn/prefer-object-iterable-methods'?: Linter.RuleEntry<[]>;
6594
+ /**
6595
+ * Prefer observer APIs over resize and scroll listeners with layout reads.
6596
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-observer-apis.md
6597
+ */
6598
+ 'unicorn/prefer-observer-apis'?: Linter.RuleEntry<[]>;
5880
6599
  /**
5881
6600
  * Prefer omitting the `catch` binding parameter.
5882
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-optional-catch-binding.md
6601
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-optional-catch-binding.md
5883
6602
  */
5884
6603
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
6604
+ /**
6605
+ * Prefer `Path2D` for repeatedly drawn canvas paths.
6606
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-path2d.md
6607
+ */
6608
+ 'unicorn/prefer-path2d'?: Linter.RuleEntry<[]>;
6609
+ /**
6610
+ * Prefer private class fields over the underscore-prefix convention.
6611
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-private-class-fields.md
6612
+ */
6613
+ 'unicorn/prefer-private-class-fields'?: Linter.RuleEntry<[]>;
6614
+ /**
6615
+ * Prefer `Promise.try()` over promise-wrapping boilerplate.
6616
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-promise-try.md
6617
+ */
6618
+ 'unicorn/prefer-promise-try'?: Linter.RuleEntry<[]>;
6619
+ /**
6620
+ * Prefer `Promise.withResolvers()` when extracting resolver functions from `new Promise()`.
6621
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-promise-with-resolvers.md
6622
+ */
6623
+ 'unicorn/prefer-promise-with-resolvers'?: Linter.RuleEntry<[]>;
5885
6624
  /**
5886
6625
  * Prefer borrowing methods from the prototype instead of the instance.
5887
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-prototype-methods.md
6626
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-prototype-methods.md
5888
6627
  */
5889
6628
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
5890
6629
  /**
5891
- * Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
5892
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-query-selector.md
6630
+ * Prefer `.querySelector()` and `.querySelectorAll()` over older DOM query methods.
6631
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-query-selector.md
5893
6632
  */
5894
- 'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>;
6633
+ 'unicorn/prefer-query-selector'?: Linter.RuleEntry<UnicornPreferQuerySelector>;
6634
+ /**
6635
+ * Prefer `queueMicrotask()` over `process.nextTick()`, `setImmediate()`, and `setTimeout(…, 0)`.
6636
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-queue-microtask.md
6637
+ */
6638
+ 'unicorn/prefer-queue-microtask'?: Linter.RuleEntry<UnicornPreferQueueMicrotask>;
5895
6639
  /**
5896
6640
  * Prefer `Reflect.apply()` over `Function#apply()`.
5897
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-reflect-apply.md
6641
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-reflect-apply.md
5898
6642
  */
5899
6643
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
5900
6644
  /**
5901
- * Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
5902
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-regexp-test.md
6645
+ * Prefer `RegExp.escape()` for escaping strings to use in regular expressions.
6646
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-regexp-escape.md
6647
+ */
6648
+ 'unicorn/prefer-regexp-escape'?: Linter.RuleEntry<[]>;
6649
+ /**
6650
+ * Prefer `RegExp#test()` over `String#match()`, `String#search()`, and `RegExp#exec()`.
6651
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-regexp-test.md
5903
6652
  */
5904
6653
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
5905
6654
  /**
5906
6655
  * Prefer `Response.json()` over `new Response(JSON.stringify())`.
5907
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-response-static-json.md
6656
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-response-static-json.md
5908
6657
  */
5909
6658
  'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>;
6659
+ /**
6660
+ * Prefer `:scope` when using element query selector methods.
6661
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-scoped-selector.md
6662
+ */
6663
+ 'unicorn/prefer-scoped-selector'?: Linter.RuleEntry<[]>;
5910
6664
  /**
5911
6665
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
5912
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-set-has.md
6666
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-set-has.md
5913
6667
  */
5914
- 'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>;
6668
+ 'unicorn/prefer-set-has'?: Linter.RuleEntry<UnicornPreferSetHas>;
6669
+ /**
6670
+ * Prefer `Set` methods for Set operations.
6671
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-set-methods.md
6672
+ */
6673
+ 'unicorn/prefer-set-methods'?: Linter.RuleEntry<[]>;
5915
6674
  /**
5916
6675
  * Prefer using `Set#size` instead of `Array#length`.
5917
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-set-size.md
6676
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-set-size.md
5918
6677
  */
5919
6678
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
6679
+ /**
6680
+ * Prefer arrow function properties over methods with a single return.
6681
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-short-arrow-method.md
6682
+ */
6683
+ 'unicorn/prefer-short-arrow-method'?: Linter.RuleEntry<[]>;
5920
6684
  /**
5921
6685
  * Prefer simple conditions first in logical expressions.
5922
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-simple-condition-first.md
6686
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-simple-condition-first.md
5923
6687
  */
5924
6688
  'unicorn/prefer-simple-condition-first'?: Linter.RuleEntry<[]>;
5925
6689
  /**
5926
- * Enforce combining multiple `Array#push()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
5927
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-single-call.md
6690
+ * Prefer a simple comparison function for `Array#sort()`.
6691
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-simple-sort-comparator.md
6692
+ */
6693
+ 'unicorn/prefer-simple-sort-comparator'?: Linter.RuleEntry<[]>;
6694
+ /**
6695
+ * Prefer a single `Array#some()` or `Array#every()` with a combined predicate.
6696
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-single-array-predicate.md
6697
+ */
6698
+ 'unicorn/prefer-single-array-predicate'?: Linter.RuleEntry<[]>;
6699
+ /**
6700
+ * Enforce combining multiple `Array#{push,unshift}()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
6701
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-single-call.md
5928
6702
  */
5929
6703
  'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
5930
6704
  /**
5931
- * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
5932
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-spread.md
6705
+ * Prefer a single object destructuring declaration per local const source.
6706
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-single-object-destructuring.md
6707
+ */
6708
+ 'unicorn/prefer-single-object-destructuring'?: Linter.RuleEntry<[]>;
6709
+ /**
6710
+ * Enforce combining multiple single-character replacements into a single `String#replaceAll()` with a regular expression.
6711
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-single-replace.md
6712
+ */
6713
+ 'unicorn/prefer-single-replace'?: Linter.RuleEntry<[]>;
6714
+ /**
6715
+ * Prefer declaring variables in the smallest possible scope.
6716
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-smaller-scope.md
6717
+ */
6718
+ 'unicorn/prefer-smaller-scope'?: Linter.RuleEntry<[]>;
6719
+ /**
6720
+ * Prefer `String#split()` with a limit.
6721
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-split-limit.md
6722
+ */
6723
+ 'unicorn/prefer-split-limit'?: Linter.RuleEntry<[]>;
6724
+ /**
6725
+ * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()`, and trivial `for…of` copies.
6726
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-spread.md
5933
6727
  */
5934
6728
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
6729
+ /**
6730
+ * Prefer `String#matchAll()` over `RegExp#exec()` loops.
6731
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-string-match-all.md
6732
+ */
6733
+ 'unicorn/prefer-string-match-all'?: Linter.RuleEntry<[]>;
6734
+ /**
6735
+ * Prefer `String#padStart()` and `String#padEnd()` over manual string padding.
6736
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-string-pad-start-end.md
6737
+ */
6738
+ 'unicorn/prefer-string-pad-start-end'?: Linter.RuleEntry<[]>;
5935
6739
  /**
5936
6740
  * Prefer using the `String.raw` tag to avoid escaping `\`.
5937
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-raw.md
6741
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-string-raw.md
5938
6742
  */
5939
6743
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
5940
6744
  /**
5941
- * Prefer `String#replaceAll()` over regex searches with the global flag.
5942
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-replace-all.md
6745
+ * Prefer `String#repeat()` for repeated whitespace.
6746
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-string-repeat.md
6747
+ */
6748
+ 'unicorn/prefer-string-repeat'?: Linter.RuleEntry<UnicornPreferStringRepeat>;
6749
+ /**
6750
+ * Prefer `String#replaceAll()` over regex searches with the global flag and `String#split().join()`.
6751
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-string-replace-all.md
5943
6752
  */
5944
6753
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
5945
6754
  /**
5946
6755
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
5947
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-slice.md
6756
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-string-slice.md
5948
6757
  */
5949
6758
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
5950
6759
  /**
5951
- * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
5952
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-starts-ends-with.md
6760
+ * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()` and `String#indexOf() === 0`.
6761
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-string-starts-ends-with.md
5953
6762
  */
5954
6763
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
5955
6764
  /**
5956
6765
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
5957
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-trim-start-end.md
6766
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-string-trim-start-end.md
5958
6767
  */
5959
6768
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
5960
6769
  /**
5961
6770
  * Prefer using `structuredClone` to create a deep clone.
5962
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-structured-clone.md
6771
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-structured-clone.md
5963
6772
  */
5964
6773
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
5965
6774
  /**
5966
6775
  * Prefer `switch` over multiple `else-if`.
5967
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-switch.md
6776
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-switch.md
5968
6777
  */
5969
6778
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
5970
6779
  /**
5971
- * Prefer ternary expressions over simple `if-else` statements.
5972
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-ternary.md
6780
+ * Prefer `Temporal` over `Date`.
6781
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-temporal.md
6782
+ */
6783
+ 'unicorn/prefer-temporal'?: Linter.RuleEntry<UnicornPreferTemporal>;
6784
+ /**
6785
+ * Prefer ternary expressions over simple `if` statements that return or assign values.
6786
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-ternary.md
5973
6787
  */
5974
6788
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
6789
+ /**
6790
+ * Prefer using `Element#toggleAttribute()` to toggle attributes.
6791
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-toggle-attribute.md
6792
+ */
6793
+ 'unicorn/prefer-toggle-attribute'?: Linter.RuleEntry<[]>;
5975
6794
  /**
5976
6795
  * Prefer top-level await over top-level promises and async function calls.
5977
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-top-level-await.md
6796
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-top-level-await.md
5978
6797
  */
5979
6798
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
5980
6799
  /**
5981
6800
  * Enforce throwing `TypeError` in type checking conditions.
5982
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-type-error.md
6801
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-type-error.md
5983
6802
  */
5984
6803
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
5985
6804
  /**
5986
- * Prevent abbreviations.
5987
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prevent-abbreviations.md
6805
+ * Require type literals to be last in union types.
6806
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-type-literal-last.md
6807
+ */
6808
+ 'unicorn/prefer-type-literal-last'?: Linter.RuleEntry<[]>;
6809
+ /**
6810
+ * Prefer `Uint8Array#toBase64()` and `Uint8Array.fromBase64()` over `atob()`, `btoa()`, and `Buffer` base64 conversions.
6811
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-uint8array-base64.md
6812
+ */
6813
+ 'unicorn/prefer-uint8array-base64'?: Linter.RuleEntry<[]>;
6814
+ /**
6815
+ * Prefer the unary minus operator over multiplying or dividing by `-1`.
6816
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-unary-minus.md
6817
+ */
6818
+ 'unicorn/prefer-unary-minus'?: Linter.RuleEntry<[]>;
6819
+ /**
6820
+ * Prefer Unicode code point escapes over legacy escape sequences.
6821
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-unicode-code-point-escapes.md
6822
+ */
6823
+ 'unicorn/prefer-unicode-code-point-escapes'?: Linter.RuleEntry<[]>;
6824
+ /**
6825
+ * Prefer `URL.canParse()` over constructing a `URL` in a try/catch for validation.
6826
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-url-can-parse.md
6827
+ */
6828
+ 'unicorn/prefer-url-can-parse'?: Linter.RuleEntry<[]>;
6829
+ /**
6830
+ * Prefer `URL#href` over stringifying a `URL`.
6831
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-url-href.md
6832
+ */
6833
+ 'unicorn/prefer-url-href'?: Linter.RuleEntry<[]>;
6834
+ /**
6835
+ * Prefer `URLSearchParams` over manually splitting query strings.
6836
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-url-search-parameters.md
6837
+ */
6838
+ 'unicorn/prefer-url-search-parameters'?: Linter.RuleEntry<[]>;
6839
+ /**
6840
+ * Prefer putting the condition in the while statement.
6841
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-while-loop-condition.md
5988
6842
  */
5989
- 'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>;
6843
+ 'unicorn/prefer-while-loop-condition'?: Linter.RuleEntry<[]>;
6844
+ /**
6845
+ * Renamed to `unicorn/name-replacements`.
6846
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
6847
+ * @deprecated
6848
+ */
6849
+ 'unicorn/prevent-abbreviations'?: Linter.RuleEntry<[]>;
5990
6850
  /**
5991
6851
  * Enforce consistent relative URL style.
5992
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/relative-url-style.md
6852
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/relative-url-style.md
5993
6853
  */
5994
6854
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
5995
6855
  /**
5996
6856
  * Enforce using the separator argument with `Array#join()`.
5997
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-array-join-separator.md
6857
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/require-array-join-separator.md
5998
6858
  */
5999
6859
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
6860
+ /**
6861
+ * Require a compare function when calling `Array#sort()` or `Array#toSorted()`.
6862
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/require-array-sort-compare.md
6863
+ */
6864
+ 'unicorn/require-array-sort-compare'?: Linter.RuleEntry<[]>;
6865
+ /**
6866
+ * Require `CSS.escape()` for interpolated values in CSS selectors.
6867
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/require-css-escape.md
6868
+ */
6869
+ 'unicorn/require-css-escape'?: Linter.RuleEntry<UnicornRequireCssEscape>;
6000
6870
  /**
6001
6871
  * Require non-empty module attributes for imports and exports
6002
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-module-attributes.md
6872
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/require-module-attributes.md
6003
6873
  */
6004
6874
  'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>;
6005
6875
  /**
6006
6876
  * Require non-empty specifier list in import and export statements.
6007
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-module-specifiers.md
6877
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/require-module-specifiers.md
6008
6878
  */
6009
6879
  'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
6010
6880
  /**
6011
6881
  * Enforce using the digits argument with `Number#toFixed()`.
6012
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-number-to-fixed-digits-argument.md
6882
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/require-number-to-fixed-digits-argument.md
6013
6883
  */
6014
6884
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
6885
+ /**
6886
+ * Require passive event listeners for high-frequency events.
6887
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/require-passive-events.md
6888
+ */
6889
+ 'unicorn/require-passive-events'?: Linter.RuleEntry<[]>;
6015
6890
  /**
6016
6891
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
6017
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-post-message-target-origin.md
6892
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/require-post-message-target-origin.md
6018
6893
  */
6019
6894
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
6895
+ /**
6896
+ * Require boolean-returning Proxy traps to return booleans.
6897
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/require-proxy-trap-boolean-return.md
6898
+ */
6899
+ 'unicorn/require-proxy-trap-boolean-return'?: Linter.RuleEntry<[]>;
6020
6900
  /**
6021
6901
  * Enforce better string content.
6022
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/string-content.md
6902
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/string-content.md
6023
6903
  */
6024
6904
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
6025
6905
  /**
6026
6906
  * Enforce consistent brace style for `case` clauses.
6027
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/switch-case-braces.md
6907
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/switch-case-braces.md
6028
6908
  */
6029
6909
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
6030
6910
  /**
6031
6911
  * Enforce consistent `break`/`return`/`continue`/`throw` position in `case` clauses.
6032
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/switch-case-break-position.md
6912
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/switch-case-break-position.md
6033
6913
  */
6034
6914
  'unicorn/switch-case-break-position'?: Linter.RuleEntry<[]>;
6035
6915
  /**
6036
6916
  * Fix whitespace-insensitive template indentation.
6037
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/template-indent.md
6917
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/template-indent.md
6038
6918
  */
6039
6919
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
6040
6920
  /**
6041
6921
  * Enforce consistent case for text encoding identifiers.
6042
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/text-encoding-identifier-case.md
6922
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/text-encoding-identifier-case.md
6043
6923
  */
6044
6924
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
6045
6925
  /**
6046
6926
  * Require `new` when creating an error.
6047
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/throw-new-error.md
6927
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/throw-new-error.md
6048
6928
  */
6049
6929
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
6930
+ /**
6931
+ * Limit the complexity of `try` blocks.
6932
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/try-complexity.md
6933
+ */
6934
+ 'unicorn/try-complexity'?: Linter.RuleEntry<UnicornTryComplexity>;
6050
6935
  /**
6051
6936
  * Disallow unused variables
6052
6937
  * @see https://github.com/sweepline/eslint-plugin-unused-imports/blob/master/docs/rules/no-unused-imports.md
@@ -7448,6 +8333,11 @@ interface RuleOptions {
7448
8333
  * @see https://ota-meshi.github.io/eslint-plugin-yml/rules/no-tab-indent.html
7449
8334
  */
7450
8335
  'yaml/no-tab-indent'?: Linter.RuleEntry<[]>;
8336
+ /**
8337
+ * disallow trailing whitespace at the end of lines
8338
+ * @see https://ota-meshi.github.io/eslint-plugin-yml/rules/no-trailing-spaces.html
8339
+ */
8340
+ 'yaml/no-trailing-spaces'?: Linter.RuleEntry<YamlNoTrailingSpaces>;
7451
8341
  /**
7452
8342
  * disallow trailing zeros for floats
7453
8343
  * @see https://ota-meshi.github.io/eslint-plugin-yml/rules/no-trailing-zeros.html
@@ -14922,43 +15812,110 @@ type TomlSpacedComment = [] | [("always" | "never")] | [("always" | "never"), {
14922
15812
  markers?: string[];
14923
15813
  }]; // ----- toml/table-bracket-spacing -----
14924
15814
  type TomlTableBracketSpacing = [] | [("always" | "never")]; // ----- unicode-bom -----
14925
- type UnicodeBom = [] | [("always" | "never")]; // ----- unicorn/better-regex -----
14926
- type UnicornBetterRegex = [] | [{
14927
- sortCharacterClasses?: boolean;
14928
- }]; // ----- unicorn/catch-error-name -----
15815
+ type UnicodeBom = [] | [("always" | "never")]; // ----- unicorn/catch-error-name -----
14929
15816
  type UnicornCatchErrorName = [] | [{
14930
15817
  name?: string;
14931
15818
  ignore?: unknown[];
14932
- }]; // ----- unicorn/consistent-function-scoping -----
15819
+ }]; // ----- unicorn/class-reference-in-static-methods -----
15820
+ type UnicornClassReferenceInStaticMethods = [] | [{
15821
+ preferThis?: boolean;
15822
+ preferSuper?: boolean;
15823
+ }]; // ----- unicorn/comment-content -----
15824
+ type UnicornCommentContent = [] | [{
15825
+ checkUniformCase?: boolean;
15826
+ extendDefaultReplacements?: boolean;
15827
+ replacements?: {
15828
+ [k: string]: (false | string | {
15829
+ replacement: string;
15830
+ caseSensitive?: boolean;
15831
+ }) | undefined;
15832
+ };
15833
+ }]; // ----- unicorn/consistent-boolean-name -----
15834
+ type UnicornConsistentBooleanName = [] | [{
15835
+ checkProperties?: boolean;
15836
+ prefixes?: {
15837
+ [k: string]: boolean | undefined;
15838
+ };
15839
+ ignore?: unknown[];
15840
+ }]; // ----- unicorn/consistent-class-member-order -----
15841
+ type UnicornConsistentClassMemberOrder = [] | [{
15842
+ order?: [("static-field" | "static-block" | "static-method" | "private-field" | "public-field" | "constructor" | "private-method" | "public-method"), ("static-field" | "static-block" | "static-method" | "private-field" | "public-field" | "constructor" | "private-method" | "public-method"), ("static-field" | "static-block" | "static-method" | "private-field" | "public-field" | "constructor" | "private-method" | "public-method"), ("static-field" | "static-block" | "static-method" | "private-field" | "public-field" | "constructor" | "private-method" | "public-method"), ("static-field" | "static-block" | "static-method" | "private-field" | "public-field" | "constructor" | "private-method" | "public-method"), ("static-field" | "static-block" | "static-method" | "private-field" | "public-field" | "constructor" | "private-method" | "public-method"), ("static-field" | "static-block" | "static-method" | "private-field" | "public-field" | "constructor" | "private-method" | "public-method"), ("static-field" | "static-block" | "static-method" | "private-field" | "public-field" | "constructor" | "private-method" | "public-method")];
15843
+ }]; // ----- unicorn/consistent-compound-words -----
15844
+ type UnicornConsistentCompoundWords = [] | [{
15845
+ checkProperties?: boolean;
15846
+ checkVariables?: boolean;
15847
+ checkDefaultAndNamespaceImports?: (boolean | "internal");
15848
+ checkShorthandImports?: (boolean | "internal");
15849
+ checkShorthandProperties?: boolean;
15850
+ extendDefaultReplacements?: boolean;
15851
+ replacements?: _UnicornConsistentCompoundWords_Replacements;
15852
+ allowList?: _UnicornConsistentCompoundWords_TrueObject;
15853
+ }];
15854
+ interface _UnicornConsistentCompoundWords_Replacements {
15855
+ [k: string]: (false | string) | undefined;
15856
+ }
15857
+ interface _UnicornConsistentCompoundWords_TrueObject {
15858
+ [k: string]: true | undefined;
15859
+ } // ----- unicorn/consistent-conditional-object-spread -----
15860
+ type UnicornConsistentConditionalObjectSpread = [] | [("logical" | "ternary")]; // ----- unicorn/consistent-export-decorator-position -----
15861
+ type UnicornConsistentExportDecoratorPosition = [] | [("above" | "before" | "after")]; // ----- unicorn/consistent-function-scoping -----
14933
15862
  type UnicornConsistentFunctionScoping = [] | [{
14934
15863
  checkArrowFunctions?: boolean;
15864
+ }]; // ----- unicorn/consistent-function-style -----
15865
+ type UnicornConsistentFunctionStyle = [] | [{
15866
+ default?: ("declaration" | "function-expression" | "arrow-function" | "ignore");
15867
+ namedFunctions?: ("declaration" | "function-expression" | "arrow-function" | "ignore");
15868
+ namedExports?: ("declaration" | "function-expression" | "arrow-function" | "ignore");
15869
+ callbacks?: ("function-expression" | "arrow-function" | "ignore");
15870
+ objectProperties?: ("method" | "function-expression" | "arrow-function" | "ignore");
15871
+ reassignedVariables?: ("function-expression" | "arrow-function" | "ignore");
15872
+ typedVariables?: ("function-expression" | "arrow-function" | "ignore");
15873
+ }]; // ----- unicorn/consistent-json-file-read -----
15874
+ type UnicornConsistentJsonFileRead = [] | [("string" | "buffer")]; // ----- unicorn/default-export-style -----
15875
+ type UnicornDefaultExportStyle = [] | [{
15876
+ functions?: ("inline" | "separate" | "ignore");
15877
+ classes?: ("inline" | "separate" | "ignore");
15878
+ }]; // ----- unicorn/dom-node-dataset -----
15879
+ type UnicornDomNodeDataset = [] | [{
15880
+ preferAttributes?: boolean;
14935
15881
  }]; // ----- unicorn/escape-case -----
14936
15882
  type UnicornEscapeCase = [] | [("uppercase" | "lowercase")]; // ----- unicorn/expiring-todo-comments -----
14937
15883
  type UnicornExpiringTodoComments = [] | [{
14938
15884
  terms?: string[];
14939
15885
  ignore?: unknown[];
14940
- ignoreDates?: boolean;
14941
- ignoreDatesOnPullRequests?: boolean;
15886
+ checkDates?: boolean;
15887
+ checkDatesOnPullRequests?: boolean;
14942
15888
  allowWarningComments?: boolean;
14943
15889
  date?: string;
14944
15890
  }]; // ----- unicorn/explicit-length-check -----
14945
15891
  type UnicornExplicitLengthCheck = [] | [{
14946
15892
  "non-zero"?: ("greater-than" | "not-equal");
14947
- }]; // ----- unicorn/filename-case -----
15893
+ }]; // ----- unicorn/explicit-timer-delay -----
15894
+ type UnicornExplicitTimerDelay = [] | [("always" | "never")]; // ----- unicorn/filename-case -----
14948
15895
  type UnicornFilenameCase = [] | [({
14949
- case?: ("camelCase" | "snakeCase" | "kebabCase" | "pascalCase");
15896
+ case?: ("camelCase" | "camelCaseWithAcronyms" | "snakeCase" | "kebabCase" | "pascalCase");
14950
15897
  ignore?: unknown[];
14951
15898
  multipleFileExtensions?: boolean;
15899
+ checkDirectories?: boolean;
14952
15900
  } | {
14953
15901
  cases?: {
14954
15902
  camelCase?: boolean;
15903
+ camelCaseWithAcronyms?: boolean;
14955
15904
  snakeCase?: boolean;
14956
15905
  kebabCase?: boolean;
14957
15906
  pascalCase?: boolean;
14958
15907
  };
14959
15908
  ignore?: unknown[];
14960
15909
  multipleFileExtensions?: boolean;
14961
- })]; // ----- unicorn/import-style -----
15910
+ checkDirectories?: boolean;
15911
+ })]; // ----- unicorn/id-match -----
15912
+ type UnicornIdMatch = [] | [string] | [string, {
15913
+ properties?: boolean;
15914
+ classFields?: boolean;
15915
+ onlyDeclarations?: boolean;
15916
+ ignoreDestructuring?: boolean;
15917
+ checkNamedSpecifiers?: boolean;
15918
+ }]; // ----- unicorn/import-style -----
14962
15919
  type UnicornImportStyle = [] | [{
14963
15920
  checkImport?: boolean;
14964
15921
  checkDynamicImport?: boolean;
@@ -14981,6 +15938,38 @@ type UnicornIsolatedFunctions = [] | [{
14981
15938
  functions?: string[];
14982
15939
  selectors?: string[];
14983
15940
  comments?: string[];
15941
+ }]; // ----- unicorn/logical-assignment-operators -----
15942
+ type UnicornLogicalAssignmentOperators = (([] | ["always"] | ["always", {
15943
+ enforceForIfStatements?: boolean;
15944
+ }] | ["never"]) & unknown[]); // ----- unicorn/max-nested-calls -----
15945
+ type UnicornMaxNestedCalls = [] | [{
15946
+ max?: number;
15947
+ }]; // ----- unicorn/name-replacements -----
15948
+ type UnicornNameReplacements = [] | [{
15949
+ checkProperties?: boolean;
15950
+ checkVariables?: boolean;
15951
+ checkDefaultAndNamespaceImports?: (boolean | string);
15952
+ checkShorthandImports?: (boolean | string);
15953
+ checkShorthandProperties?: boolean;
15954
+ checkFilenames?: boolean;
15955
+ extendDefaultReplacements?: boolean;
15956
+ replacements?: _UnicornNameReplacements_NameReplacements;
15957
+ extendDefaultAllowList?: boolean;
15958
+ allowList?: _UnicornNameReplacements_BooleanObject;
15959
+ ignore?: unknown[];
15960
+ }];
15961
+ type _UnicornNameReplacementsReplacements = (false | _UnicornNameReplacements_BooleanObject) | undefined;
15962
+ interface _UnicornNameReplacements_NameReplacements {
15963
+ [k: string]: _UnicornNameReplacementsReplacements | undefined;
15964
+ }
15965
+ interface _UnicornNameReplacements_BooleanObject {
15966
+ [k: string]: boolean | undefined;
15967
+ }
15968
+ interface _UnicornNameReplacements_BooleanObject {
15969
+ [k: string]: boolean | undefined;
15970
+ } // ----- unicorn/no-array-callback-reference -----
15971
+ type UnicornNoArrayCallbackReference = [] | [{
15972
+ ignore?: string[];
14984
15973
  }]; // ----- unicorn/no-array-reduce -----
14985
15974
  type UnicornNoArrayReduce = [] | [{
14986
15975
  allowSimpleOperations?: boolean;
@@ -14990,28 +15979,47 @@ type UnicornNoArrayReverse = [] | [{
14990
15979
  }]; // ----- unicorn/no-array-sort -----
14991
15980
  type UnicornNoArraySort = [] | [{
14992
15981
  allowExpressionStatement?: boolean;
15982
+ }]; // ----- unicorn/no-empty-file -----
15983
+ type UnicornNoEmptyFile = [] | [{
15984
+ allowComments?: boolean;
14993
15985
  }]; // ----- unicorn/no-instanceof-builtins -----
14994
15986
  type UnicornNoInstanceofBuiltins = [] | [{
14995
15987
  useErrorIsError?: boolean;
14996
15988
  strategy?: ("loose" | "strict");
14997
15989
  include?: string[];
14998
15990
  exclude?: string[];
15991
+ }]; // ----- unicorn/no-invalid-argument-count -----
15992
+ type UnicornNoInvalidArgumentCount = [] | [{
15993
+ [k: string]: (number | [number, ...(number)[]] | {
15994
+ min?: number;
15995
+ max?: number;
15996
+ }) | undefined;
14999
15997
  }]; // ----- unicorn/no-keyword-prefix -----
15000
15998
  type UnicornNoKeywordPrefix = [] | [{
15001
15999
  disallowedPrefixes?: [] | [string];
15002
16000
  checkProperties?: boolean;
15003
16001
  onlyCamelCase?: boolean;
16002
+ }]; // ----- unicorn/no-negated-comparison -----
16003
+ type UnicornNoNegatedComparison = [] | [{
16004
+ checkLogicalExpressions?: boolean;
16005
+ }]; // ----- unicorn/no-non-function-verb-prefix -----
16006
+ type UnicornNoNonFunctionVerbPrefix = [] | [{
16007
+ verbs?: string[];
15004
16008
  }]; // ----- unicorn/no-null -----
15005
16009
  type UnicornNoNull = [] | [{
16010
+ checkArguments?: boolean;
15006
16011
  checkStrictEquality?: boolean;
15007
16012
  }]; // ----- unicorn/no-typeof-undefined -----
15008
16013
  type UnicornNoTypeofUndefined = [] | [{
15009
16014
  checkGlobalVariables?: boolean;
15010
16015
  }]; // ----- unicorn/no-unnecessary-polyfills -----
15011
16016
  type UnicornNoUnnecessaryPolyfills = [] | [{
15012
- targets: (string | unknown[] | {
16017
+ targets?: (string | unknown[] | {
15013
16018
  [k: string]: unknown | undefined;
15014
16019
  });
16020
+ }]; // ----- unicorn/no-unreadable-array-destructuring -----
16021
+ type UnicornNoUnreadableArrayDestructuring = [] | [{
16022
+ maximumIgnoredElements?: number;
15015
16023
  }]; // ----- unicorn/no-useless-undefined -----
15016
16024
  type UnicornNoUselessUndefined = [] | [{
15017
16025
  checkArguments?: boolean;
@@ -15040,9 +16048,11 @@ type UnicornNumericSeparatorsStyle = [] | [{
15040
16048
  onlyIfContainsSeparator?: boolean;
15041
16049
  minimumDigits?: number;
15042
16050
  groupLength?: number;
16051
+ fractionGroupLength?: number;
15043
16052
  };
15044
16053
  onlyIfContainsSeparator?: boolean;
15045
- }]; // ----- unicorn/prefer-add-event-listener -----
16054
+ }]; // ----- unicorn/operator-assignment -----
16055
+ type UnicornOperatorAssignment = [] | [("always" | "never")]; // ----- unicorn/prefer-add-event-listener -----
15046
16056
  type UnicornPreferAddEventListener = [] | [{
15047
16057
  excludedPackages?: string[];
15048
16058
  }]; // ----- unicorn/prefer-array-find -----
@@ -15055,9 +16065,22 @@ type UnicornPreferArrayFlat = [] | [{
15055
16065
  type UnicornPreferAt = [] | [{
15056
16066
  getLastElementFunctions?: unknown[];
15057
16067
  checkAllIndexAccess?: boolean;
16068
+ }]; // ----- unicorn/prefer-continue -----
16069
+ type UnicornPreferContinue = [] | [{
16070
+ maximumStatements?: number;
16071
+ }]; // ----- unicorn/prefer-early-return -----
16072
+ type UnicornPreferEarlyReturn = [] | [{
16073
+ maximumStatements?: number;
15058
16074
  }]; // ----- unicorn/prefer-export-from -----
15059
16075
  type UnicornPreferExportFrom = [] | [{
15060
- ignoreUsedVariables?: boolean;
16076
+ checkUsedVariables?: boolean;
16077
+ }]; // ----- unicorn/prefer-includes-over-repeated-comparisons -----
16078
+ type UnicornPreferIncludesOverRepeatedComparisons = [] | [{
16079
+ minimumComparisons?: number;
16080
+ }]; // ----- unicorn/prefer-minimal-ternary -----
16081
+ type UnicornPreferMinimalTernary = [] | [{
16082
+ checkVaryingCallee?: boolean;
16083
+ checkComputedMemberAccess?: boolean;
15061
16084
  }]; // ----- unicorn/prefer-number-properties -----
15062
16085
  type UnicornPreferNumberProperties = [] | [{
15063
16086
  checkInfinity?: boolean;
@@ -15065,9 +16088,22 @@ type UnicornPreferNumberProperties = [] | [{
15065
16088
  }]; // ----- unicorn/prefer-object-from-entries -----
15066
16089
  type UnicornPreferObjectFromEntries = [] | [{
15067
16090
  functions?: unknown[];
16091
+ }]; // ----- unicorn/prefer-query-selector -----
16092
+ type UnicornPreferQuerySelector = [] | [{
16093
+ allowWithVariables?: boolean;
16094
+ }]; // ----- unicorn/prefer-queue-microtask -----
16095
+ type UnicornPreferQueueMicrotask = [] | [{
16096
+ checkSetImmediate?: boolean;
16097
+ checkSetTimeout?: boolean;
16098
+ }]; // ----- unicorn/prefer-set-has -----
16099
+ type UnicornPreferSetHas = [] | [{
16100
+ minimumItems?: number;
15068
16101
  }]; // ----- unicorn/prefer-single-call -----
15069
16102
  type UnicornPreferSingleCall = [] | [{
15070
16103
  ignore?: unknown[];
16104
+ }]; // ----- unicorn/prefer-string-repeat -----
16105
+ type UnicornPreferStringRepeat = [] | [{
16106
+ minimumRepetitions?: number;
15071
16107
  }]; // ----- unicorn/prefer-structured-clone -----
15072
16108
  type UnicornPreferStructuredClone = [] | [{
15073
16109
  functions?: unknown[];
@@ -15075,42 +16111,29 @@ type UnicornPreferStructuredClone = [] | [{
15075
16111
  type UnicornPreferSwitch = [] | [{
15076
16112
  minimumCases?: number;
15077
16113
  emptyDefaultCase?: ("no-default-comment" | "do-nothing-comment" | "no-default-case");
16114
+ }]; // ----- unicorn/prefer-temporal -----
16115
+ type UnicornPreferTemporal = [] | [{
16116
+ checkDateNow?: boolean;
16117
+ checkReferences?: boolean;
16118
+ checkMethods?: boolean;
15078
16119
  }]; // ----- unicorn/prefer-ternary -----
15079
- type UnicornPreferTernary = [] | [("always" | "only-single-line")]; // ----- unicorn/prevent-abbreviations -----
15080
- type UnicornPreventAbbreviations = [] | [{
15081
- checkProperties?: boolean;
15082
- checkVariables?: boolean;
15083
- checkDefaultAndNamespaceImports?: (boolean | string);
15084
- checkShorthandImports?: (boolean | string);
15085
- checkShorthandProperties?: boolean;
15086
- checkFilenames?: boolean;
15087
- extendDefaultReplacements?: boolean;
15088
- replacements?: _UnicornPreventAbbreviations_Abbreviations;
15089
- extendDefaultAllowList?: boolean;
15090
- allowList?: _UnicornPreventAbbreviations_BooleanObject;
15091
- ignore?: unknown[];
15092
- }];
15093
- type _UnicornPreventAbbreviationsReplacements = (false | _UnicornPreventAbbreviations_BooleanObject) | undefined;
15094
- interface _UnicornPreventAbbreviations_Abbreviations {
15095
- [k: string]: _UnicornPreventAbbreviationsReplacements | undefined;
15096
- }
15097
- interface _UnicornPreventAbbreviations_BooleanObject {
15098
- [k: string]: boolean | undefined;
15099
- }
15100
- interface _UnicornPreventAbbreviations_BooleanObject {
15101
- [k: string]: boolean | undefined;
15102
- } // ----- unicorn/relative-url-style -----
15103
- type UnicornRelativeUrlStyle = [] | [("never" | "always")]; // ----- unicorn/string-content -----
16120
+ type UnicornPreferTernary = [] | [("always" | "only-single-line")]; // ----- unicorn/relative-url-style -----
16121
+ type UnicornRelativeUrlStyle = [] | [("never" | "always")]; // ----- unicorn/require-css-escape -----
16122
+ type UnicornRequireCssEscape = [] | [{
16123
+ checkAllSelectors?: boolean;
16124
+ }]; // ----- unicorn/string-content -----
15104
16125
  type UnicornStringContent = [] | [{
15105
16126
  patterns?: {
15106
16127
  [k: string]: (string | {
15107
16128
  suggest: string;
15108
16129
  fix?: boolean;
16130
+ caseSensitive?: boolean;
15109
16131
  message?: string;
15110
16132
  }) | undefined;
15111
16133
  };
16134
+ selectors?: string[];
15112
16135
  }]; // ----- unicorn/switch-case-braces -----
15113
- type UnicornSwitchCaseBraces = [] | [("always" | "avoid")]; // ----- unicorn/template-indent -----
16136
+ type UnicornSwitchCaseBraces = [] | [("always" | "avoid" | "single-statement")]; // ----- unicorn/template-indent -----
15114
16137
  type UnicornTemplateIndent = [] | [{
15115
16138
  indent?: (string | number);
15116
16139
  tags?: string[];
@@ -15120,6 +16143,9 @@ type UnicornTemplateIndent = [] | [{
15120
16143
  }]; // ----- unicorn/text-encoding-identifier-case -----
15121
16144
  type UnicornTextEncodingIdentifierCase = [] | [{
15122
16145
  withDash?: boolean;
16146
+ }]; // ----- unicorn/try-complexity -----
16147
+ type UnicornTryComplexity = [] | [{
16148
+ max?: number;
15123
16149
  }]; // ----- unused-imports/no-unused-imports -----
15124
16150
  type UnusedImportsNoUnusedImports = [] | [(("all" | "local") | {
15125
16151
  args?: ("all" | "after-used" | "none");
@@ -16393,6 +17419,10 @@ type YamlNoMultipleEmptyLines = [] | [{
16393
17419
  max: number;
16394
17420
  maxEOF?: number;
16395
17421
  maxBOF?: number;
17422
+ }]; // ----- yaml/no-trailing-spaces -----
17423
+ type YamlNoTrailingSpaces = [] | [{
17424
+ skipBlankLines?: boolean;
17425
+ ignoreComments?: boolean;
16396
17426
  }]; // ----- yaml/plain-scalar -----
16397
17427
  type YamlPlainScalar = [] | [("always" | "never")] | [("always" | "never"), {
16398
17428
  ignorePatterns?: string[];
@@ -16487,6 +17517,6 @@ type Yoda = [] | [("always" | "never")] | [("always" | "never"), {
16487
17517
  exceptRange?: boolean;
16488
17518
  onlyEquality?: boolean;
16489
17519
  }]; // Names of all the configs
16490
- type ConfigNames = 'eienjs/gitignore' | 'eienjs/ignores' | 'eienjs/javascript/setup' | 'eienjs/javascript/rules' | 'eienjs/eslint-comments/rules' | 'eienjs/command/rules' | 'eienjs/perfectionist/setup' | 'eienjs/node/setup' | 'eienjs/node/rules' | 'eienjs/jsdoc/setup' | 'eienjs/jsdoc/rules' | 'eienjs/imports/rules' | 'eienjs/e18e/setup' | 'eienjs/e18e/rules' | 'eienjs/unicorn/rules' | 'eienjs/unicorn/special-rules' | 'eienjs/typescript/setup' | 'eienjs/typescript/parser' | 'eienjs/typescript/type-aware-parser' | 'eienjs/typescript/rules' | 'eienjs/typescript/rules-type-aware' | 'eienjs/typescript/disables' | 'eienjs/typescript/erasable-syntax-only' | 'eienjs/stylistic/rules' | 'eienjs/regexp/rules' | 'eienjs/test/setup' | 'eienjs/test/rules' | 'eienjs/vue/setup' | 'eienjs/vue/rules' | 'eienjs/vue/composables-disables' | 'eienjs/astro/setup' | 'eienjs/astro/rules' | 'eienjs/adonisjs/rules' | 'eienjs/adonisjs/inertia-rules' | 'eienjs/adonisjs/disables' | 'eienjs/adonisjs/database-disables' | 'eienjs/adonisjs/bin-disables' | 'eienjs/adonisjs/commands-disables' | 'eienjs/adonisjs/middleware-disables' | 'eienjs/adonisjs/transformers-disables' | 'eienjs/adonisjs/exceptions-disables' | 'eienjs/adonisjs/controllers-disables' | 'eienjs/adonisjs/config-disables' | 'eienjs/adonisjs/providers-disables' | 'eienjs/adonisjs/tests-disables' | 'eienjs/adonisjs/types-disables' | 'eienjs/nuxt/setup' | 'eienjs/nuxt/vue/single-root' | 'eienjs/nuxt/rules' | 'eienjs/nuxt/utils-disables' | 'eienjs/nuxt/sort-config' | 'eienjs/nuxt/vue/rules' | 'eienjs/jsonc/setup' | 'eienjs/jsonc/rules' | 'eienjs/sort/package-json' | 'eienjs/sort/tsconfig-json' | 'eienjs/pnpm/package-json' | 'eienjs/pnpm/pnpm-workspace-yaml' | 'eienjs/pnpm/pnpm-workspace-yaml-sort' | 'eienjs/yaml/setup' | 'eienjs/yaml/rules' | 'eienjs/toml/setup' | 'eienjs/toml/rules' | 'eienjs/markdown/setup' | 'eienjs/markdown/processor' | 'eienjs/markdown/parser' | 'eienjs/markdown/rules' | 'eienjs/markdown/disables/code' | 'eienjs/formatter/setup' | 'eienjs/formatter/css' | 'eienjs/formatter/scss' | 'eienjs/formatter/less' | 'eienjs/formatter/html' | 'eienjs/formatter/xml' | 'eienjs/formatter/svg' | 'eienjs/formatter/markdown' | 'eienjs/formatter/astro' | 'eienjs/formatter/astro/disables' | 'eienjs/disables/scripts' | 'eienjs/disables/cli' | 'eienjs/disables/bin' | 'eienjs/disables/dts' | 'eienjs/disables/cjs' | 'eienjs/disables/config-files' | 'eienjs/disables/json' | 'eienjs/disables/yaml' | 'eienjs/disables/toml' | 'eienjs/disables/astro' | 'eienjs/disables/deploy-tools';
17520
+ type ConfigNames = 'eienjs/gitignore' | 'eienjs/ignores' | 'eienjs/javascript/setup' | 'eienjs/javascript/rules' | 'eienjs/eslint-comments/rules' | 'eienjs/command/rules' | 'eienjs/perfectionist/setup' | 'eienjs/node/setup' | 'eienjs/node/rules' | 'eienjs/jsdoc/setup' | 'eienjs/jsdoc/rules' | 'eienjs/imports/rules' | 'eienjs/e18e/setup' | 'eienjs/e18e/rules' | 'eienjs/unicorn/setup' | 'eienjs/unicorn/rules' | 'eienjs/unicorn/special-rules' | 'eienjs/typescript/setup' | 'eienjs/typescript/parser' | 'eienjs/typescript/type-aware-parser' | 'eienjs/typescript/rules' | 'eienjs/typescript/rules-type-aware' | 'eienjs/typescript/disables' | 'eienjs/typescript/erasable-syntax-only' | 'eienjs/stylistic/rules' | 'eienjs/regexp/rules' | 'eienjs/test/setup' | 'eienjs/test/rules' | 'eienjs/vue/setup' | 'eienjs/vue/rules' | 'eienjs/vue/composables-disables' | 'eienjs/astro/setup' | 'eienjs/astro/rules' | 'eienjs/adonisjs/rules' | 'eienjs/adonisjs/inertia-rules' | 'eienjs/adonisjs/disables' | 'eienjs/adonisjs/database-disables' | 'eienjs/adonisjs/bin-disables' | 'eienjs/adonisjs/commands-disables' | 'eienjs/adonisjs/middleware-disables' | 'eienjs/adonisjs/transformers-disables' | 'eienjs/adonisjs/exceptions-disables' | 'eienjs/adonisjs/controllers-disables' | 'eienjs/adonisjs/config-disables' | 'eienjs/adonisjs/providers-disables' | 'eienjs/adonisjs/tests-disables' | 'eienjs/adonisjs/types-disables' | 'eienjs/nuxt/setup' | 'eienjs/nuxt/vue/single-root' | 'eienjs/nuxt/rules' | 'eienjs/nuxt/utils-disables' | 'eienjs/nuxt/sort-config' | 'eienjs/nuxt/vue/rules' | 'eienjs/jsonc/setup' | 'eienjs/jsonc/rules' | 'eienjs/sort/package-json' | 'eienjs/sort/tsconfig-json' | 'eienjs/pnpm/package-json' | 'eienjs/pnpm/pnpm-workspace-yaml' | 'eienjs/pnpm/pnpm-workspace-yaml-sort' | 'eienjs/yaml/setup' | 'eienjs/yaml/rules' | 'eienjs/toml/setup' | 'eienjs/toml/rules' | 'eienjs/markdown/setup' | 'eienjs/markdown/processor' | 'eienjs/markdown/parser' | 'eienjs/markdown/rules' | 'eienjs/markdown/disables/code' | 'eienjs/formatter/setup' | 'eienjs/formatter/css' | 'eienjs/formatter/scss' | 'eienjs/formatter/less' | 'eienjs/formatter/html' | 'eienjs/formatter/xml' | 'eienjs/formatter/svg' | 'eienjs/formatter/markdown' | 'eienjs/formatter/astro' | 'eienjs/formatter/astro/disables' | 'eienjs/disables/scripts' | 'eienjs/disables/cli' | 'eienjs/disables/bin' | 'eienjs/disables/dts' | 'eienjs/disables/cjs' | 'eienjs/disables/config-files' | 'eienjs/disables/json' | 'eienjs/disables/yaml' | 'eienjs/disables/toml' | 'eienjs/disables/astro' | 'eienjs/disables/deploy-tools';
16491
17521
  //#endregion
16492
17522
  export { ConfigNames, RuleOptions };