@infernodesign/eslint-config 2.7.0 → 2.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -322,6 +322,11 @@ interface RuleOptions {
322
322
  * @see https://ota-meshi.github.io/eslint-plugin-astro/rules/no-exports-from-components/
323
323
  */
324
324
  'astro/no-exports-from-components'?: Linter.RuleEntry<[]>;
325
+ /**
326
+ * disallow omitted end tags
327
+ * @see https://ota-meshi.github.io/eslint-plugin-astro/rules/no-omitted-end-tags/
328
+ */
329
+ 'astro/no-omitted-end-tags'?: Linter.RuleEntry<[]>;
325
330
  /**
326
331
  * disallow `prerender` export outside of pages/ directory
327
332
  * @see https://ota-meshi.github.io/eslint-plugin-astro/rules/no-prerender-export-outside-pages/
@@ -552,6 +557,14 @@ interface RuleOptions {
552
557
  * Prefer the exponentiation operator ** over Math.pow()
553
558
  */
554
559
  'e18e/prefer-exponentiation-operator'?: Linter.RuleEntry<[]>;
560
+ /**
561
+ * Prefer Array.prototype.flatMap() over .map(fn).flat() to avoid the intermediate array
562
+ */
563
+ 'e18e/prefer-flatmap-over-map-flat'?: Linter.RuleEntry<[]>;
564
+ /**
565
+ * Prefer `Map.prototype.getOrInsert()` over reading an entry with a default and writing it back
566
+ */
567
+ 'e18e/prefer-get-or-insert'?: Linter.RuleEntry<[]>;
555
568
  /**
556
569
  * Prefer .includes() over indexOf() comparisons for arrays and strings
557
570
  */
@@ -3737,6 +3750,11 @@ interface RuleOptions {
3737
3750
  * @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-fetch
3738
3751
  */
3739
3752
  'react/web-api-no-leaked-fetch'?: Linter.RuleEntry<[]>;
3753
+ /**
3754
+ * Enforces that every 'IntersectionObserver' created in a component or custom hook has a corresponding 'IntersectionObserver.disconnect()'.
3755
+ * @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-intersection-observer
3756
+ */
3757
+ 'react/web-api-no-leaked-intersection-observer'?: Linter.RuleEntry<[]>;
3740
3758
  /**
3741
3759
  * Enforces that every 'setInterval' in a component or custom hook has a corresponding 'clearInterval'.
3742
3760
  * @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-interval
@@ -4453,6 +4471,122 @@ interface RuleOptions {
4453
4471
  * @deprecated
4454
4472
  */
4455
4473
  'rest-spread-spacing'?: Linter.RuleEntry<RestSpreadSpacing>;
4474
+ /**
4475
+ * Avoid computed values in filters. Indices cannot be used.
4476
+ */
4477
+ 'sanity/groq-computed-value-in-filter'?: Linter.RuleEntry<[]>;
4478
+ /**
4479
+ * count() on correlated subquery can be slow.
4480
+ */
4481
+ 'sanity/groq-count-in-correlated-subquery'?: Linter.RuleEntry<[]>;
4482
+ /**
4483
+ * Deep pagination with large offsets is slow.
4484
+ */
4485
+ 'sanity/groq-deep-pagination'?: Linter.RuleEntry<[]>;
4486
+ /**
4487
+ * Slice offset uses a parameter which could cause deep pagination.
4488
+ */
4489
+ 'sanity/groq-deep-pagination-param'?: Linter.RuleEntry<[]>;
4490
+ /**
4491
+ * This query is extremely large and will likely execute very slowly.
4492
+ */
4493
+ 'sanity/groq-extremely-large-query'?: Linter.RuleEntry<[]>;
4494
+ /**
4495
+ * Document type in filter does not exist in schema
4496
+ */
4497
+ 'sanity/groq-invalid-type-filter'?: Linter.RuleEntry<[]>;
4498
+ /**
4499
+ * Avoid `->` inside filters. It prevents optimization.
4500
+ */
4501
+ 'sanity/groq-join-in-filter'?: Linter.RuleEntry<[]>;
4502
+ /**
4503
+ * Avoid using `->` to retrieve `_id`.
4504
+ */
4505
+ 'sanity/groq-join-to-get-id'?: Linter.RuleEntry<[]>;
4506
+ /**
4507
+ * Fetching many results at once can be slow.
4508
+ */
4509
+ 'sanity/groq-large-pages'?: Linter.RuleEntry<[]>;
4510
+ /**
4511
+ * This query uses many joins and may have poor performance.
4512
+ */
4513
+ 'sanity/groq-many-joins'?: Linter.RuleEntry<[]>;
4514
+ /**
4515
+ * `match` on `_id` may not work as expected.
4516
+ */
4517
+ 'sanity/groq-match-on-id'?: Linter.RuleEntry<[]>;
4518
+ /**
4519
+ * Comparisons between two non-literal fields are slow.
4520
+ */
4521
+ 'sanity/groq-non-literal-comparison'?: Linter.RuleEntry<[]>;
4522
+ /**
4523
+ * Ordering on computed values is slow.
4524
+ */
4525
+ 'sanity/groq-order-on-expr'?: Linter.RuleEntry<[]>;
4526
+ /**
4527
+ * Repeatedly resolving the same reference is inefficient.
4528
+ */
4529
+ 'sanity/groq-repeated-dereference'?: Linter.RuleEntry<[]>;
4530
+ /**
4531
+ * Field in projection does not exist in schema
4532
+ */
4533
+ 'sanity/groq-unknown-field'?: Linter.RuleEntry<[]>;
4534
+ /**
4535
+ * This query is very large and may execute slowly.
4536
+ */
4537
+ 'sanity/groq-very-large-query'?: Linter.RuleEntry<[]>;
4538
+ /**
4539
+ * Array fields should have min/max/unique validation constraints
4540
+ */
4541
+ 'sanity/schema-array-missing-constraints'?: Linter.RuleEntry<[]>;
4542
+ /**
4543
+ * Consider using options.list instead of boolean for expandable states
4544
+ */
4545
+ 'sanity/schema-boolean-instead-of-list'?: Linter.RuleEntry<[]>;
4546
+ /**
4547
+ * Heading levels should be computed dynamically, not stored in schema
4548
+ */
4549
+ 'sanity/schema-heading-level-in-schema'?: Linter.RuleEntry<[]>;
4550
+ /**
4551
+ * Fields should use defineField() wrapper
4552
+ */
4553
+ 'sanity/schema-missing-define-field'?: Linter.RuleEntry<[]>;
4554
+ /**
4555
+ * Schema types should use defineType() wrapper
4556
+ */
4557
+ 'sanity/schema-missing-define-type'?: Linter.RuleEntry<[]>;
4558
+ /**
4559
+ * Fields should have descriptions for better editor UX
4560
+ */
4561
+ 'sanity/schema-missing-description'?: Linter.RuleEntry<[]>;
4562
+ /**
4563
+ * Document types should have an icon
4564
+ */
4565
+ 'sanity/schema-missing-icon'?: Linter.RuleEntry<[]>;
4566
+ /**
4567
+ * Critical fields should have validation rules
4568
+ */
4569
+ 'sanity/schema-missing-required-validation'?: Linter.RuleEntry<[]>;
4570
+ /**
4571
+ * Slug fields should have options.source for auto-generation
4572
+ */
4573
+ 'sanity/schema-missing-slug-source'?: Linter.RuleEntry<[]>;
4574
+ /**
4575
+ * Schema types should have a title property
4576
+ */
4577
+ 'sanity/schema-missing-title'?: Linter.RuleEntry<[]>;
4578
+ /**
4579
+ * Avoid presentation-focused field names; use semantic names instead
4580
+ */
4581
+ 'sanity/schema-presentation-field-name'?: Linter.RuleEntry<[]>;
4582
+ /**
4583
+ * Field names starting with _ are reserved by Sanity
4584
+ */
4585
+ 'sanity/schema-reserved-field-name'?: Linter.RuleEntry<[]>;
4586
+ /**
4587
+ * Consider using an embedded object instead of a reference for non-shared content
4588
+ */
4589
+ 'sanity/schema-unnecessary-reference'?: Linter.RuleEntry<[]>;
4456
4590
  /**
4457
4591
  * Require or disallow semicolons instead of ASI
4458
4592
  * @see https://eslint.org/docs/latest/rules/semi
@@ -5292,6 +5426,11 @@ interface RuleOptions {
5292
5426
  * @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-add-event-listener/
5293
5427
  */
5294
5428
  'svelte/no-add-event-listener'?: Linter.RuleEntry<[]>;
5429
+ /**
5430
+ * disallow the use of `{@const}` in favor of `{const ...}` declaration tags
5431
+ * @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-at-const-tags/
5432
+ */
5433
+ 'svelte/no-at-const-tags'?: Linter.RuleEntry<[]>;
5295
5434
  /**
5296
5435
  * disallow the use of `{@debug}`
5297
5436
  * @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-at-debug-tags/
@@ -5601,7 +5740,7 @@ interface RuleOptions {
5601
5740
  */
5602
5741
  'svelte/valid-each-key'?: Linter.RuleEntry<[]>;
5603
5742
  /**
5604
- * disallow props other than data or errors in SvelteKit page components.
5743
+ * disallow invalid props in SvelteKit route components.
5605
5744
  * @see https://sveltejs.github.io/eslint-plugin-svelte/rules/valid-prop-names-in-kit-pages/
5606
5745
  */
5607
5746
  'svelte/valid-prop-names-in-kit-pages'?: Linter.RuleEntry<[]>;
@@ -6853,753 +6992,1623 @@ interface RuleOptions {
6853
6992
  */
6854
6993
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>;
6855
6994
  /**
6856
- * Improve regexes by making them shorter, consistent, and safer.
6857
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/better-regex.md
6995
+ * Prefer better DOM traversal APIs.
6996
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/better-dom-traversing.md
6858
6997
  */
6859
- 'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>;
6998
+ 'unicorn/better-dom-traversing'?: Linter.RuleEntry<[]>;
6999
+ /**
7000
+ * Removed. Prefer `eslint-plugin-regexp`
7001
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/deleted-and-deprecated-rules.md#better-regex
7002
+ * @deprecated
7003
+ */
7004
+ 'unicorn/better-regex'?: Linter.RuleEntry<[]>;
6860
7005
  /**
6861
7006
  * Enforce a specific parameter name in catch clauses.
6862
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/catch-error-name.md
7007
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/catch-error-name.md
6863
7008
  */
6864
7009
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
7010
+ /**
7011
+ * Enforce consistent class references in static methods.
7012
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/class-reference-in-static-methods.md
7013
+ */
7014
+ 'unicorn/class-reference-in-static-methods'?: Linter.RuleEntry<UnicornClassReferenceInStaticMethods>;
7015
+ /**
7016
+ * Enforce better comment content.
7017
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/comment-content.md
7018
+ */
7019
+ 'unicorn/comment-content'?: Linter.RuleEntry<UnicornCommentContent>;
6865
7020
  /**
6866
7021
  * Enforce consistent assertion style with `node:assert`.
6867
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-assert.md
7022
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-assert.md
6868
7023
  */
6869
7024
  'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
7025
+ /**
7026
+ * Enforce consistent naming for boolean names.
7027
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-boolean-name.md
7028
+ */
7029
+ 'unicorn/consistent-boolean-name'?: Linter.RuleEntry<UnicornConsistentBooleanName>;
7030
+ /**
7031
+ * Enforce consistent class member order.
7032
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-class-member-order.md
7033
+ */
7034
+ 'unicorn/consistent-class-member-order'?: Linter.RuleEntry<UnicornConsistentClassMemberOrder>;
7035
+ /**
7036
+ * Enforce consistent spelling of compound words in identifiers.
7037
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-compound-words.md
7038
+ */
7039
+ 'unicorn/consistent-compound-words'?: Linter.RuleEntry<UnicornConsistentCompoundWords>;
7040
+ /**
7041
+ * Enforce consistent conditional object spread style.
7042
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-conditional-object-spread.md
7043
+ */
7044
+ 'unicorn/consistent-conditional-object-spread'?: Linter.RuleEntry<UnicornConsistentConditionalObjectSpread>;
6870
7045
  /**
6871
7046
  * Prefer passing `Date` directly to the constructor when cloning.
6872
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-date-clone.md
7047
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-date-clone.md
6873
7048
  */
6874
7049
  'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
6875
7050
  /**
6876
7051
  * Use destructured variables over properties.
6877
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-destructuring.md
7052
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-destructuring.md
6878
7053
  */
6879
7054
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
6880
7055
  /**
6881
7056
  * Prefer consistent types when spreading a ternary in an array literal.
6882
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-empty-array-spread.md
7057
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-empty-array-spread.md
6883
7058
  */
6884
7059
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
6885
7060
  /**
6886
7061
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
6887
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-existence-index-check.md
7062
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-existence-index-check.md
6888
7063
  */
6889
7064
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
7065
+ /**
7066
+ * Enforce consistent decorator position on exported classes.
7067
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-export-decorator-position.md
7068
+ */
7069
+ 'unicorn/consistent-export-decorator-position'?: Linter.RuleEntry<UnicornConsistentExportDecoratorPosition>;
6890
7070
  /**
6891
7071
  * Move function definitions to the highest possible scope.
6892
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-function-scoping.md
7072
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-function-scoping.md
6893
7073
  */
6894
7074
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
7075
+ /**
7076
+ * Enforce function syntax by role.
7077
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-function-style.md
7078
+ */
7079
+ 'unicorn/consistent-function-style'?: Linter.RuleEntry<UnicornConsistentFunctionStyle>;
7080
+ /**
7081
+ * Enforce consistent JSON file reads before `JSON.parse()`.
7082
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-json-file-read.md
7083
+ */
7084
+ 'unicorn/consistent-json-file-read'?: Linter.RuleEntry<UnicornConsistentJsonFileRead>;
7085
+ /**
7086
+ * Enforce consistent optional chaining for same-base member access.
7087
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-optional-chaining.md
7088
+ */
7089
+ 'unicorn/consistent-optional-chaining'?: Linter.RuleEntry<[]>;
6895
7090
  /**
6896
7091
  * Enforce consistent style for escaping `${` in template literals.
6897
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-template-literal-escape.md
7092
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-template-literal-escape.md
6898
7093
  */
6899
7094
  'unicorn/consistent-template-literal-escape'?: Linter.RuleEntry<[]>;
7095
+ /**
7096
+ * Enforce consistent labels on tuple type elements.
7097
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-tuple-labels.md
7098
+ */
7099
+ 'unicorn/consistent-tuple-labels'?: Linter.RuleEntry<[]>;
6900
7100
  /**
6901
7101
  * Enforce correct `Error` subclassing.
6902
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/custom-error-definition.md
7102
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/custom-error-definition.md
6903
7103
  */
6904
7104
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
7105
+ /**
7106
+ * Enforce consistent default export declarations.
7107
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/default-export-style.md
7108
+ */
7109
+ 'unicorn/default-export-style'?: Linter.RuleEntry<UnicornDefaultExportStyle>;
7110
+ /**
7111
+ * Enforce consistent style for DOM element dataset access.
7112
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/dom-node-dataset.md
7113
+ */
7114
+ 'unicorn/dom-node-dataset'?: Linter.RuleEntry<UnicornDomNodeDataset>;
6905
7115
  /**
6906
7116
  * Enforce no spaces between braces.
6907
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/empty-brace-spaces.md
7117
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/empty-brace-spaces.md
6908
7118
  */
6909
7119
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
6910
7120
  /**
6911
7121
  * Enforce passing a `message` value when creating a built-in error.
6912
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/error-message.md
7122
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/error-message.md
6913
7123
  */
6914
7124
  'unicorn/error-message'?: Linter.RuleEntry<[]>;
6915
7125
  /**
6916
7126
  * Require escape sequences to use uppercase or lowercase values.
6917
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/escape-case.md
7127
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/escape-case.md
6918
7128
  */
6919
7129
  'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
6920
7130
  /**
6921
7131
  * Add expiration conditions to TODO comments.
6922
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/expiring-todo-comments.md
7132
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/expiring-todo-comments.md
6923
7133
  */
6924
7134
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
6925
7135
  /**
6926
7136
  * Enforce explicitly comparing the `length` or `size` property of a value.
6927
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/explicit-length-check.md
7137
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/explicit-length-check.md
6928
7138
  */
6929
7139
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
6930
7140
  /**
6931
- * Enforce a case style for filenames.
6932
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/filename-case.md
7141
+ * Enforce or disallow explicit `delay` argument for `setTimeout()` and `setInterval()`.
7142
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/explicit-timer-delay.md
7143
+ */
7144
+ 'unicorn/explicit-timer-delay'?: Linter.RuleEntry<UnicornExplicitTimerDelay>;
7145
+ /**
7146
+ * Enforce a case style for filenames and directory names.
7147
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/filename-case.md
6933
7148
  */
6934
7149
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
7150
+ /**
7151
+ * Require identifiers to match a specified regular expression.
7152
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/id-match.md
7153
+ */
7154
+ 'unicorn/id-match'?: Linter.RuleEntry<UnicornIdMatch>;
6935
7155
  /**
6936
7156
  * Enforce specific import styles per module.
6937
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/import-style.md
7157
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/import-style.md
6938
7158
  */
6939
7159
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
6940
7160
  /**
6941
7161
  * Prevent usage of variables from outside the scope of isolated functions.
6942
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/isolated-functions.md
7162
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/isolated-functions.md
6943
7163
  */
6944
7164
  'unicorn/isolated-functions'?: Linter.RuleEntry<UnicornIsolatedFunctions>;
6945
7165
  /**
6946
- * Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
6947
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/new-for-builtins.md
7166
+ * Require or disallow logical assignment operator shorthand
7167
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/logical-assignment-operators.md
7168
+ */
7169
+ 'unicorn/logical-assignment-operators'?: Linter.RuleEntry<UnicornLogicalAssignmentOperators>;
7170
+ /**
7171
+ * Limit the depth of nested calls.
7172
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/max-nested-calls.md
7173
+ */
7174
+ 'unicorn/max-nested-calls'?: Linter.RuleEntry<UnicornMaxNestedCalls>;
7175
+ /**
7176
+ * Enforce replacements for variable, property, and filenames.
7177
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/name-replacements.md
7178
+ */
7179
+ 'unicorn/name-replacements'?: Linter.RuleEntry<UnicornNameReplacements>;
7180
+ /**
7181
+ * Enforce correct use of `new` for builtin constructors.
7182
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/new-for-builtins.md
6948
7183
  */
6949
7184
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
6950
7185
  /**
6951
7186
  * Enforce specifying rules to disable in `eslint-disable` comments.
6952
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-abusive-eslint-disable.md
7187
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-abusive-eslint-disable.md
6953
7188
  */
6954
7189
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
6955
7190
  /**
6956
7191
  * Disallow recursive access to `this` within getters and setters.
6957
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-accessor-recursion.md
7192
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-accessor-recursion.md
6958
7193
  */
6959
7194
  'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
7195
+ /**
7196
+ * Disallow bitwise operators where a logical operator was likely intended.
7197
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-accidental-bitwise-operator.md
7198
+ */
7199
+ 'unicorn/no-accidental-bitwise-operator'?: Linter.RuleEntry<[]>;
6960
7200
  /**
6961
7201
  * Disallow anonymous functions and classes as the default export.
6962
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-anonymous-default-export.md
7202
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-anonymous-default-export.md
6963
7203
  */
6964
7204
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
6965
7205
  /**
6966
7206
  * Prevent passing a function reference directly to iterator methods.
6967
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-callback-reference.md
7207
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-callback-reference.md
6968
7208
  */
6969
- 'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>;
7209
+ 'unicorn/no-array-callback-reference'?: Linter.RuleEntry<UnicornNoArrayCallbackReference>;
6970
7210
  /**
6971
- * Prefer `for…of` over the `forEach` method.
6972
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-for-each.md
7211
+ * Disallow array accumulation with `Array#concat()` in loops.
7212
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-concat-in-loop.md
7213
+ */
7214
+ 'unicorn/no-array-concat-in-loop'?: Linter.RuleEntry<[]>;
7215
+ /**
7216
+ * Disallow using reference values as `Array#fill()` values.
7217
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-fill-with-reference-type.md
7218
+ */
7219
+ 'unicorn/no-array-fill-with-reference-type'?: Linter.RuleEntry<[]>;
7220
+ /**
7221
+ * Disallow `.fill()` after `Array.from({length: …})`.
7222
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-from-fill.md
7223
+ */
7224
+ 'unicorn/no-array-from-fill'?: Linter.RuleEntry<[]>;
7225
+ /**
7226
+ * Disallow front-of-array mutation.
7227
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-front-mutation.md
6973
7228
  */
6974
- 'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>;
7229
+ 'unicorn/no-array-front-mutation'?: Linter.RuleEntry<[]>;
6975
7230
  /**
6976
7231
  * Disallow using the `this` argument in array methods.
6977
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-method-this-argument.md
7232
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-method-this-argument.md
6978
7233
  */
6979
7234
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
6980
7235
  /**
6981
7236
  * Replaced by `unicorn/prefer-single-call` which covers more cases.
6982
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
7237
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
6983
7238
  * @deprecated
6984
7239
  */
6985
7240
  'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
6986
7241
  /**
6987
7242
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
6988
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-reduce.md
7243
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-reduce.md
6989
7244
  */
6990
7245
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
6991
7246
  /**
6992
7247
  * Prefer `Array#toReversed()` over `Array#reverse()`.
6993
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-reverse.md
7248
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-reverse.md
6994
7249
  */
6995
7250
  'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
6996
7251
  /**
6997
7252
  * Prefer `Array#toSorted()` over `Array#sort()`.
6998
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-sort.md
7253
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-sort.md
6999
7254
  */
7000
7255
  'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>;
7256
+ /**
7257
+ * Disallow sorting arrays to get the minimum or maximum value.
7258
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-sort-for-min-max.md
7259
+ */
7260
+ 'unicorn/no-array-sort-for-min-max'?: Linter.RuleEntry<[]>;
7261
+ /**
7262
+ * Prefer `Array#toSpliced()` over `Array#splice()`.
7263
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-splice.md
7264
+ */
7265
+ 'unicorn/no-array-splice'?: Linter.RuleEntry<[]>;
7266
+ /**
7267
+ * Disallow asterisk prefixes in documentation comments.
7268
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
7269
+ */
7270
+ 'unicorn/no-asterisk-prefix-in-documentation-comments'?: Linter.RuleEntry<[]>;
7001
7271
  /**
7002
7272
  * Disallow member access from await expression.
7003
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-await-expression-member.md
7273
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-await-expression-member.md
7004
7274
  */
7005
7275
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
7006
7276
  /**
7007
7277
  * Disallow using `await` in `Promise` method parameters.
7008
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-await-in-promise-methods.md
7278
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-await-in-promise-methods.md
7009
7279
  */
7010
7280
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
7281
+ /**
7282
+ * Disallow unnecessary `Blob` to `File` conversion.
7283
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-blob-to-file.md
7284
+ */
7285
+ 'unicorn/no-blob-to-file'?: Linter.RuleEntry<[]>;
7286
+ /**
7287
+ * Disallow boolean-returning sort comparators.
7288
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-boolean-sort-comparator.md
7289
+ */
7290
+ 'unicorn/no-boolean-sort-comparator'?: Linter.RuleEntry<[]>;
7291
+ /**
7292
+ * Disallow `break` and `continue` in nested loops and switches inside loops.
7293
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-break-in-nested-loop.md
7294
+ */
7295
+ 'unicorn/no-break-in-nested-loop'?: Linter.RuleEntry<[]>;
7296
+ /**
7297
+ * Prefer drawing canvases directly instead of converting them to images.
7298
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-canvas-to-image.md
7299
+ */
7300
+ 'unicorn/no-canvas-to-image'?: Linter.RuleEntry<[]>;
7301
+ /**
7302
+ * Disallow chained comparisons such as `a < b < c`.
7303
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-chained-comparison.md
7304
+ */
7305
+ 'unicorn/no-chained-comparison'?: Linter.RuleEntry<[]>;
7306
+ /**
7307
+ * Disallow accessing `Map`, `Set`, `WeakMap`, and `WeakSet` entries with bracket notation.
7308
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-collection-bracket-access.md
7309
+ */
7310
+ 'unicorn/no-collection-bracket-access'?: Linter.RuleEntry<[]>;
7311
+ /**
7312
+ * Disallow dynamic object property existence checks.
7313
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-computed-property-existence-check.md
7314
+ */
7315
+ 'unicorn/no-computed-property-existence-check'?: Linter.RuleEntry<[]>;
7316
+ /**
7317
+ * Disallow confusing uses of `Array#{splice,toSpliced}()`.
7318
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-confusing-array-splice.md
7319
+ */
7320
+ 'unicorn/no-confusing-array-splice'?: Linter.RuleEntry<[]>;
7321
+ /**
7322
+ * Disallow confusing uses of `Array#with()`.
7323
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-confusing-array-with.md
7324
+ */
7325
+ 'unicorn/no-confusing-array-with'?: Linter.RuleEntry<[]>;
7011
7326
  /**
7012
7327
  * Do not use leading/trailing space between `console.log` parameters.
7013
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-console-spaces.md
7328
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-console-spaces.md
7014
7329
  */
7015
7330
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
7331
+ /**
7332
+ * Disallow arithmetic and bitwise operations that always evaluate to `0`.
7333
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-constant-zero-expression.md
7334
+ */
7335
+ 'unicorn/no-constant-zero-expression'?: Linter.RuleEntry<[]>;
7336
+ /**
7337
+ * Disallow declarations before conditional early exits when they are only used after the exit.
7338
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-declarations-before-early-exit.md
7339
+ */
7340
+ 'unicorn/no-declarations-before-early-exit'?: Linter.RuleEntry<[]>;
7016
7341
  /**
7017
7342
  * Do not use `document.cookie` directly.
7018
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-document-cookie.md
7343
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-document-cookie.md
7019
7344
  */
7020
7345
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
7346
+ /**
7347
+ * Disallow two comparisons of the same operands that can be combined into one.
7348
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-double-comparison.md
7349
+ */
7350
+ 'unicorn/no-double-comparison'?: Linter.RuleEntry<[]>;
7351
+ /**
7352
+ * Disallow duplicate adjacent branches in if chains.
7353
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-duplicate-if-branches.md
7354
+ */
7355
+ 'unicorn/no-duplicate-if-branches'?: Linter.RuleEntry<[]>;
7356
+ /**
7357
+ * Disallow adjacent duplicate operands in logical expressions.
7358
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-duplicate-logical-operands.md
7359
+ */
7360
+ 'unicorn/no-duplicate-logical-operands'?: Linter.RuleEntry<[]>;
7361
+ /**
7362
+ * Disallow `.map()` and `.filter()` in `for…of` and `for await…of` loop headers.
7363
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-duplicate-loops.md
7364
+ */
7365
+ 'unicorn/no-duplicate-loops'?: Linter.RuleEntry<[]>;
7366
+ /**
7367
+ * Disallow duplicate values in `Set` constructor array literals.
7368
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-duplicate-set-values.md
7369
+ */
7370
+ 'unicorn/no-duplicate-set-values'?: Linter.RuleEntry<[]>;
7021
7371
  /**
7022
7372
  * Disallow empty files.
7023
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-empty-file.md
7373
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-empty-file.md
7024
7374
  */
7025
- 'unicorn/no-empty-file'?: Linter.RuleEntry<[]>;
7375
+ 'unicorn/no-empty-file'?: Linter.RuleEntry<UnicornNoEmptyFile>;
7376
+ /**
7377
+ * Disallow assigning to built-in error properties.
7378
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-error-property-assignment.md
7379
+ */
7380
+ 'unicorn/no-error-property-assignment'?: Linter.RuleEntry<[]>;
7381
+ /**
7382
+ * Disallow exports in scripts.
7383
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-exports-in-scripts.md
7384
+ */
7385
+ 'unicorn/no-exports-in-scripts'?: Linter.RuleEntry<[]>;
7386
+ /**
7387
+ * Prefer `for…of` over the `forEach` method.
7388
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-for-each.md
7389
+ */
7390
+ 'unicorn/no-for-each'?: Linter.RuleEntry<[]>;
7026
7391
  /**
7027
7392
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
7028
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-for-loop.md
7393
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-for-loop.md
7029
7394
  */
7030
7395
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
7031
7396
  /**
7032
- * Enforce the use of Unicode escapes instead of hexadecimal escapes.
7033
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-hex-escape.md
7397
+ * Disallow assigning properties on the global object.
7398
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-global-object-property-assignment.md
7399
+ */
7400
+ 'unicorn/no-global-object-property-assignment'?: Linter.RuleEntry<[]>;
7401
+ /**
7402
+ * Replaced by `unicorn/prefer-unicode-code-point-escapes` which covers more cases.
7403
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
7404
+ * @deprecated
7034
7405
  */
7035
7406
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
7036
7407
  /**
7037
7408
  * Disallow immediate mutation after variable assignment.
7038
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-immediate-mutation.md
7409
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-immediate-mutation.md
7039
7410
  */
7040
7411
  'unicorn/no-immediate-mutation'?: Linter.RuleEntry<[]>;
7412
+ /**
7413
+ * Disallow impossible comparisons against `.length` or `.size`.
7414
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-impossible-length-comparison.md
7415
+ */
7416
+ 'unicorn/no-impossible-length-comparison'?: Linter.RuleEntry<[]>;
7417
+ /**
7418
+ * Disallow incorrect `querySelector()` and `querySelectorAll()` usage.
7419
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-incorrect-query-selector.md
7420
+ */
7421
+ 'unicorn/no-incorrect-query-selector'?: Linter.RuleEntry<[]>;
7422
+ /**
7423
+ * Disallow incorrect template literal interpolation syntax.
7424
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-incorrect-template-string-interpolation.md
7425
+ */
7426
+ 'unicorn/no-incorrect-template-string-interpolation'?: Linter.RuleEntry<[]>;
7041
7427
  /**
7042
7428
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
7043
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
7429
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
7044
7430
  * @deprecated
7045
7431
  */
7046
7432
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
7047
7433
  /**
7048
7434
  * Disallow `instanceof` with built-in objects
7049
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-instanceof-builtins.md
7435
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-instanceof-builtins.md
7050
7436
  */
7051
7437
  'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
7438
+ /**
7439
+ * Disallow calling functions and constructors with an invalid number of arguments.
7440
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-invalid-argument-count.md
7441
+ */
7442
+ 'unicorn/no-invalid-argument-count'?: Linter.RuleEntry<UnicornNoInvalidArgumentCount>;
7443
+ /**
7444
+ * Disallow comparing a single character from a string to a multi-character string.
7445
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-invalid-character-comparison.md
7446
+ */
7447
+ 'unicorn/no-invalid-character-comparison'?: Linter.RuleEntry<[]>;
7052
7448
  /**
7053
7449
  * Disallow invalid options in `fetch()` and `new Request()`.
7054
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-invalid-fetch-options.md
7450
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-invalid-fetch-options.md
7055
7451
  */
7056
7452
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
7453
+ /**
7454
+ * Disallow invalid `accept` values on file inputs.
7455
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-invalid-file-input-accept.md
7456
+ */
7457
+ 'unicorn/no-invalid-file-input-accept'?: Linter.RuleEntry<[]>;
7057
7458
  /**
7058
7459
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
7059
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-invalid-remove-event-listener.md
7460
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-invalid-remove-event-listener.md
7060
7461
  */
7061
7462
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
7463
+ /**
7464
+ * Disallow invalid implementations of well-known symbol methods.
7465
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
7466
+ */
7467
+ 'unicorn/no-invalid-well-known-symbol-methods'?: Linter.RuleEntry<[]>;
7062
7468
  /**
7063
7469
  * Disallow identifiers starting with `new` or `class`.
7064
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-keyword-prefix.md
7470
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-keyword-prefix.md
7065
7471
  */
7066
7472
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
7473
+ /**
7474
+ * Disallow accessing `event.currentTarget` after the synchronous event dispatch has finished.
7475
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-late-current-target-access.md
7476
+ */
7477
+ 'unicorn/no-late-current-target-access'?: Linter.RuleEntry<[]>;
7478
+ /**
7479
+ * Disallow event-control method calls after the synchronous event dispatch has finished.
7480
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-late-event-control.md
7481
+ */
7482
+ 'unicorn/no-late-event-control'?: Linter.RuleEntry<[]>;
7067
7483
  /**
7068
7484
  * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
7069
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
7485
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
7070
7486
  * @deprecated
7071
7487
  */
7072
7488
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
7073
7489
  /**
7074
7490
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
7075
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-lonely-if.md
7491
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-lonely-if.md
7076
7492
  */
7077
7493
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
7494
+ /**
7495
+ * Disallow mutating a loop iterable during iteration.
7496
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-loop-iterable-mutation.md
7497
+ */
7498
+ 'unicorn/no-loop-iterable-mutation'?: Linter.RuleEntry<[]>;
7078
7499
  /**
7079
7500
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
7080
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-magic-array-flat-depth.md
7501
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-magic-array-flat-depth.md
7081
7502
  */
7082
7503
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
7504
+ /**
7505
+ * Disallow manually wrapped comments.
7506
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-manually-wrapped-comments.md
7507
+ */
7508
+ 'unicorn/no-manually-wrapped-comments'?: Linter.RuleEntry<[]>;
7509
+ /**
7510
+ * Disallow checking a Map key before accessing a different key.
7511
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-mismatched-map-key.md
7512
+ */
7513
+ 'unicorn/no-mismatched-map-key'?: Linter.RuleEntry<[]>;
7514
+ /**
7515
+ * Disallow misrefactored compound assignments where the target is duplicated in the right-hand side.
7516
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-misrefactored-assignment.md
7517
+ */
7518
+ 'unicorn/no-misrefactored-assignment'?: Linter.RuleEntry<[]>;
7083
7519
  /**
7084
7520
  * Disallow named usage of default import and export.
7085
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-named-default.md
7521
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-named-default.md
7086
7522
  */
7087
7523
  'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
7524
+ /**
7525
+ * Disallow negated array predicate calls.
7526
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-negated-array-predicate.md
7527
+ */
7528
+ 'unicorn/no-negated-array-predicate'?: Linter.RuleEntry<[]>;
7529
+ /**
7530
+ * Disallow negated comparisons.
7531
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-negated-comparison.md
7532
+ */
7533
+ 'unicorn/no-negated-comparison'?: Linter.RuleEntry<UnicornNoNegatedComparison>;
7088
7534
  /**
7089
7535
  * Disallow negated conditions.
7090
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-negated-condition.md
7536
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-negated-condition.md
7091
7537
  */
7092
7538
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
7093
7539
  /**
7094
7540
  * Disallow negated expression in equality check.
7095
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-negation-in-equality-check.md
7541
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-negation-in-equality-check.md
7096
7542
  */
7097
7543
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
7098
7544
  /**
7099
7545
  * Disallow nested ternary expressions.
7100
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-nested-ternary.md
7546
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-nested-ternary.md
7101
7547
  */
7102
7548
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
7103
7549
  /**
7104
7550
  * Disallow `new Array()`.
7105
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-new-array.md
7551
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-new-array.md
7106
7552
  */
7107
7553
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
7108
7554
  /**
7109
7555
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
7110
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-new-buffer.md
7556
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-new-buffer.md
7111
7557
  */
7112
7558
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
7559
+ /**
7560
+ * Disallow non-function values with function-style verb prefixes.
7561
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-non-function-verb-prefix.md
7562
+ */
7563
+ 'unicorn/no-non-function-verb-prefix'?: Linter.RuleEntry<UnicornNoNonFunctionVerbPrefix>;
7564
+ /**
7565
+ * Disallow non-standard properties on built-in objects.
7566
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-nonstandard-builtin-properties.md
7567
+ */
7568
+ 'unicorn/no-nonstandard-builtin-properties'?: Linter.RuleEntry<[]>;
7113
7569
  /**
7114
7570
  * Disallow the use of the `null` literal.
7115
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-null.md
7571
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-null.md
7116
7572
  */
7117
7573
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
7118
7574
  /**
7119
7575
  * Disallow the use of objects as default parameters.
7120
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-object-as-default-parameter.md
7576
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-object-as-default-parameter.md
7121
7577
  */
7122
7578
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
7579
+ /**
7580
+ * Disallow `Object` methods with `Map` or `Set`.
7581
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-object-methods-with-collections.md
7582
+ */
7583
+ 'unicorn/no-object-methods-with-collections'?: Linter.RuleEntry<[]>;
7584
+ /**
7585
+ * Disallow optional chaining on undeclared variables.
7586
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
7587
+ */
7588
+ 'unicorn/no-optional-chaining-on-undeclared-variable'?: Linter.RuleEntry<[]>;
7123
7589
  /**
7124
7590
  * Disallow `process.exit()`.
7125
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-process-exit.md
7591
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-process-exit.md
7126
7592
  */
7127
7593
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
7594
+ /**
7595
+ * Disallow comparisons made redundant by an equality check in the same logical AND.
7596
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-redundant-comparison.md
7597
+ */
7598
+ 'unicorn/no-redundant-comparison'?: Linter.RuleEntry<[]>;
7599
+ /**
7600
+ * Disallow using the return value of `Array#push()` and `Array#unshift()`.
7601
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-return-array-push.md
7602
+ */
7603
+ 'unicorn/no-return-array-push'?: Linter.RuleEntry<[]>;
7604
+ /**
7605
+ * Disallow selector syntax in DOM names.
7606
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-selector-as-dom-name.md
7607
+ */
7608
+ 'unicorn/no-selector-as-dom-name'?: Linter.RuleEntry<[]>;
7128
7609
  /**
7129
7610
  * Disallow passing single-element arrays to `Promise` methods.
7130
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-single-promise-in-promise-methods.md
7611
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-single-promise-in-promise-methods.md
7131
7612
  */
7132
7613
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
7133
7614
  /**
7134
7615
  * Disallow classes that only have static members.
7135
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-static-only-class.md
7616
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-static-only-class.md
7136
7617
  */
7137
7618
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
7619
+ /**
7620
+ * Prefer comparing values directly over subtracting and comparing to `0`.
7621
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-subtraction-comparison.md
7622
+ */
7623
+ 'unicorn/no-subtraction-comparison'?: Linter.RuleEntry<[]>;
7138
7624
  /**
7139
7625
  * Disallow `then` property.
7140
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-thenable.md
7626
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-thenable.md
7141
7627
  */
7142
7628
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
7143
7629
  /**
7144
7630
  * Disallow assigning `this` to a variable.
7145
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-this-assignment.md
7631
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-this-assignment.md
7146
7632
  */
7147
7633
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
7634
+ /**
7635
+ * Disallow `this` outside of classes.
7636
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-this-outside-of-class.md
7637
+ */
7638
+ 'unicorn/no-this-outside-of-class'?: Linter.RuleEntry<[]>;
7639
+ /**
7640
+ * Disallow assigning to top-level variables from inside functions.
7641
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-top-level-assignment-in-function.md
7642
+ */
7643
+ 'unicorn/no-top-level-assignment-in-function'?: Linter.RuleEntry<[]>;
7644
+ /**
7645
+ * Disallow top-level side effects in exported modules.
7646
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-top-level-side-effects.md
7647
+ */
7648
+ 'unicorn/no-top-level-side-effects'?: Linter.RuleEntry<[]>;
7148
7649
  /**
7149
7650
  * Disallow comparing `undefined` using `typeof`.
7150
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-typeof-undefined.md
7651
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-typeof-undefined.md
7151
7652
  */
7152
7653
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
7654
+ /**
7655
+ * Disallow referencing methods without calling them.
7656
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-uncalled-method.md
7657
+ */
7658
+ 'unicorn/no-uncalled-method'?: Linter.RuleEntry<[]>;
7659
+ /**
7660
+ * Require class members to be declared.
7661
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-undeclared-class-members.md
7662
+ */
7663
+ 'unicorn/no-undeclared-class-members'?: Linter.RuleEntry<[]>;
7153
7664
  /**
7154
7665
  * Disallow using `1` as the `depth` argument of `Array#flat()`.
7155
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-array-flat-depth.md
7666
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unnecessary-array-flat-depth.md
7156
7667
  */
7157
7668
  'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
7158
7669
  /**
7159
7670
  * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
7160
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-array-splice-count.md
7671
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unnecessary-array-splice-count.md
7161
7672
  */
7162
7673
  'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
7163
7674
  /**
7164
7675
  * Disallow awaiting non-promise values.
7165
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-await.md
7676
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unnecessary-await.md
7166
7677
  */
7167
7678
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
7679
+ /**
7680
+ * Disallow unnecessary comparisons against boolean literals.
7681
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unnecessary-boolean-comparison.md
7682
+ */
7683
+ 'unicorn/no-unnecessary-boolean-comparison'?: Linter.RuleEntry<[]>;
7684
+ /**
7685
+ * Disallow unnecessary `globalThis` references.
7686
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unnecessary-global-this.md
7687
+ */
7688
+ 'unicorn/no-unnecessary-global-this'?: Linter.RuleEntry<[]>;
7689
+ /**
7690
+ * Disallow unnecessary nested ternary expressions.
7691
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unnecessary-nested-ternary.md
7692
+ */
7693
+ 'unicorn/no-unnecessary-nested-ternary'?: Linter.RuleEntry<[]>;
7168
7694
  /**
7169
7695
  * Enforce the use of built-in methods instead of unnecessary polyfills.
7170
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-polyfills.md
7696
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unnecessary-polyfills.md
7171
7697
  */
7172
7698
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
7173
7699
  /**
7174
7700
  * Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
7175
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-slice-end.md
7701
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unnecessary-slice-end.md
7176
7702
  */
7177
7703
  'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
7704
+ /**
7705
+ * Disallow `Array#splice()` when simpler alternatives exist.
7706
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unnecessary-splice.md
7707
+ */
7708
+ 'unicorn/no-unnecessary-splice'?: Linter.RuleEntry<[]>;
7178
7709
  /**
7179
7710
  * Disallow unreadable array destructuring.
7180
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unreadable-array-destructuring.md
7711
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unreadable-array-destructuring.md
7712
+ */
7713
+ 'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<UnicornNoUnreadableArrayDestructuring>;
7714
+ /**
7715
+ * Disallow unreadable iterable expressions in `for…of` and `for await…of` loop headers.
7716
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unreadable-for-of-expression.md
7181
7717
  */
7182
- 'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>;
7718
+ 'unicorn/no-unreadable-for-of-expression'?: Linter.RuleEntry<[]>;
7183
7719
  /**
7184
7720
  * Disallow unreadable IIFEs.
7185
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unreadable-iife.md
7721
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unreadable-iife.md
7186
7722
  */
7187
7723
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
7724
+ /**
7725
+ * Disallow unreadable `new` expressions.
7726
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unreadable-new-expression.md
7727
+ */
7728
+ 'unicorn/no-unreadable-new-expression'?: Linter.RuleEntry<[]>;
7729
+ /**
7730
+ * Disallow unreadable object destructuring.
7731
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unreadable-object-destructuring.md
7732
+ */
7733
+ 'unicorn/no-unreadable-object-destructuring'?: Linter.RuleEntry<[]>;
7734
+ /**
7735
+ * Prevent unsafe use of ArrayBuffer view `.buffer`.
7736
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unsafe-buffer-conversion.md
7737
+ */
7738
+ 'unicorn/no-unsafe-buffer-conversion'?: Linter.RuleEntry<[]>;
7739
+ /**
7740
+ * Disallow unsafe DOM HTML APIs.
7741
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unsafe-dom-html.md
7742
+ */
7743
+ 'unicorn/no-unsafe-dom-html'?: Linter.RuleEntry<[]>;
7744
+ /**
7745
+ * Disallow unsafe values as property keys.
7746
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unsafe-property-key.md
7747
+ */
7748
+ 'unicorn/no-unsafe-property-key'?: Linter.RuleEntry<[]>;
7749
+ /**
7750
+ * Disallow non-literal replacement values in `String#replace()` and `String#replaceAll()`.
7751
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unsafe-string-replacement.md
7752
+ */
7753
+ 'unicorn/no-unsafe-string-replacement'?: Linter.RuleEntry<[]>;
7754
+ /**
7755
+ * Disallow ignoring the return value of selected array methods.
7756
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unused-array-method-return.md
7757
+ */
7758
+ 'unicorn/no-unused-array-method-return'?: Linter.RuleEntry<[]>;
7188
7759
  /**
7189
7760
  * Disallow unused object properties.
7190
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unused-properties.md
7761
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unused-properties.md
7191
7762
  */
7192
7763
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
7764
+ /**
7765
+ * Disallow unnecessary `Boolean()` casts in array predicate callbacks.
7766
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-boolean-cast.md
7767
+ */
7768
+ 'unicorn/no-useless-boolean-cast'?: Linter.RuleEntry<[]>;
7769
+ /**
7770
+ * Disallow useless type coercions of values that are already of the target type.
7771
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-coercion.md
7772
+ */
7773
+ 'unicorn/no-useless-coercion'?: Linter.RuleEntry<[]>;
7193
7774
  /**
7194
7775
  * Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
7195
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-collection-argument.md
7776
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-collection-argument.md
7196
7777
  */
7197
7778
  'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>;
7779
+ /**
7780
+ * Disallow useless compound assignments such as `x += 0`.
7781
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-compound-assignment.md
7782
+ */
7783
+ 'unicorn/no-useless-compound-assignment'?: Linter.RuleEntry<[]>;
7784
+ /**
7785
+ * Disallow useless concatenation of literals.
7786
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-concat.md
7787
+ */
7788
+ 'unicorn/no-useless-concat'?: Linter.RuleEntry<[]>;
7789
+ /**
7790
+ * Disallow useless `continue` statements.
7791
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-continue.md
7792
+ */
7793
+ 'unicorn/no-useless-continue'?: Linter.RuleEntry<[]>;
7794
+ /**
7795
+ * Disallow unnecessary existence checks before deletion.
7796
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-delete-check.md
7797
+ */
7798
+ 'unicorn/no-useless-delete-check'?: Linter.RuleEntry<[]>;
7799
+ /**
7800
+ * Disallow `else` after a statement that exits.
7801
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-else.md
7802
+ */
7803
+ 'unicorn/no-useless-else'?: Linter.RuleEntry<[]>;
7198
7804
  /**
7199
7805
  * Disallow unnecessary `Error.captureStackTrace(…)`.
7200
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-error-capture-stack-trace.md
7806
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-error-capture-stack-trace.md
7201
7807
  */
7202
7808
  'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
7203
7809
  /**
7204
7810
  * Disallow useless fallback when spreading in object literals.
7205
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-fallback-in-spread.md
7811
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-fallback-in-spread.md
7206
7812
  */
7207
7813
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
7208
7814
  /**
7209
7815
  * Disallow unnecessary `.toArray()` on iterators.
7210
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-iterator-to-array.md
7816
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-iterator-to-array.md
7211
7817
  */
7212
7818
  'unicorn/no-useless-iterator-to-array'?: Linter.RuleEntry<[]>;
7213
7819
  /**
7214
7820
  * Disallow useless array length check.
7215
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-length-check.md
7821
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-length-check.md
7216
7822
  */
7217
7823
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
7824
+ /**
7825
+ * Disallow unnecessary operands in logical expressions involving boolean literals.
7826
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-logical-operand.md
7827
+ */
7828
+ 'unicorn/no-useless-logical-operand'?: Linter.RuleEntry<[]>;
7829
+ /**
7830
+ * Disallow useless overrides of class methods.
7831
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-override.md
7832
+ */
7833
+ 'unicorn/no-useless-override'?: Linter.RuleEntry<[]>;
7218
7834
  /**
7219
7835
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
7220
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-promise-resolve-reject.md
7836
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-promise-resolve-reject.md
7221
7837
  */
7222
7838
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
7839
+ /**
7840
+ * Disallow simple recursive function calls that can be replaced with a loop.
7841
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-recursion.md
7842
+ */
7843
+ 'unicorn/no-useless-recursion'?: Linter.RuleEntry<[]>;
7223
7844
  /**
7224
7845
  * Disallow unnecessary spread.
7225
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-spread.md
7846
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-spread.md
7226
7847
  */
7227
7848
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
7228
7849
  /**
7229
7850
  * Disallow useless case in switch statements.
7230
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-switch-case.md
7851
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-switch-case.md
7231
7852
  */
7232
7853
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
7854
+ /**
7855
+ * Disallow useless template literal expressions.
7856
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-template-literals.md
7857
+ */
7858
+ 'unicorn/no-useless-template-literals'?: Linter.RuleEntry<[]>;
7233
7859
  /**
7234
7860
  * Disallow useless `undefined`.
7235
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-undefined.md
7861
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-undefined.md
7236
7862
  */
7237
7863
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
7864
+ /**
7865
+ * Disallow the bitwise XOR operator where exponentiation was likely intended.
7866
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-xor-as-exponentiation.md
7867
+ */
7868
+ 'unicorn/no-xor-as-exponentiation'?: Linter.RuleEntry<[]>;
7238
7869
  /**
7239
7870
  * Disallow number literals with zero fractions or dangling dots.
7240
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-zero-fractions.md
7871
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-zero-fractions.md
7241
7872
  */
7242
7873
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
7243
7874
  /**
7244
7875
  * Enforce proper case for numeric literals.
7245
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/number-literal-case.md
7876
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/number-literal-case.md
7246
7877
  */
7247
7878
  'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
7248
7879
  /**
7249
7880
  * Enforce the style of numeric separators by correctly grouping digits.
7250
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/numeric-separators-style.md
7881
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/numeric-separators-style.md
7251
7882
  */
7252
7883
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
7884
+ /**
7885
+ * Require assignment operator shorthand where possible.
7886
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/operator-assignment.md
7887
+ */
7888
+ 'unicorn/operator-assignment'?: Linter.RuleEntry<UnicornOperatorAssignment>;
7889
+ /**
7890
+ * Prefer `AbortSignal.timeout()` over manually aborting an `AbortController` with `setTimeout()`.
7891
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-abort-signal-timeout.md
7892
+ */
7893
+ 'unicorn/prefer-abort-signal-timeout'?: Linter.RuleEntry<[]>;
7253
7894
  /**
7254
7895
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
7255
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-add-event-listener.md
7896
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-add-event-listener.md
7256
7897
  */
7257
7898
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
7899
+ /**
7900
+ * Prefer an options object over a boolean in `.addEventListener()`.
7901
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-add-event-listener-options.md
7902
+ */
7903
+ 'unicorn/prefer-add-event-listener-options'?: Linter.RuleEntry<[]>;
7904
+ /**
7905
+ * Prefer `AggregateError` when throwing collected errors.
7906
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-aggregate-error.md
7907
+ */
7908
+ 'unicorn/prefer-aggregate-error'?: Linter.RuleEntry<[]>;
7258
7909
  /**
7259
7910
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
7260
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-find.md
7911
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-array-find.md
7261
7912
  */
7262
7913
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
7263
7914
  /**
7264
7915
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
7265
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-flat.md
7916
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-array-flat.md
7266
7917
  */
7267
7918
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
7268
7919
  /**
7269
- * Prefer `.flatMap(…)` over `.map(…).flat()`.
7270
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-flat-map.md
7920
+ * Prefer `.flatMap(…)` over `.map(…).flat()` and `.filter(…).flatMap(…)`.
7921
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-array-flat-map.md
7271
7922
  */
7272
7923
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
7924
+ /**
7925
+ * Prefer `Array.fromAsync()` over `for await…of` array accumulation.
7926
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-array-from-async.md
7927
+ */
7928
+ 'unicorn/prefer-array-from-async'?: Linter.RuleEntry<[]>;
7929
+ /**
7930
+ * Prefer using the `Array.from()` mapping function argument.
7931
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-array-from-map.md
7932
+ */
7933
+ 'unicorn/prefer-array-from-map'?: Linter.RuleEntry<[]>;
7273
7934
  /**
7274
7935
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
7275
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-index-of.md
7936
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-array-index-of.md
7276
7937
  */
7277
7938
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
7939
+ /**
7940
+ * Prefer iterating an array directly or with `Array#keys()` over `Array#entries()` when the index or value is unused.
7941
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-array-iterable-methods.md
7942
+ */
7943
+ 'unicorn/prefer-array-iterable-methods'?: Linter.RuleEntry<[]>;
7944
+ /**
7945
+ * Prefer last-oriented array methods over `Array#reverse()` or `Array#toReversed()` followed by a method.
7946
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-array-last-methods.md
7947
+ */
7948
+ 'unicorn/prefer-array-last-methods'?: Linter.RuleEntry<[]>;
7949
+ /**
7950
+ * Prefer `Array#slice()` over `Array#splice()` when reading from the returned array.
7951
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-array-slice.md
7952
+ */
7953
+ 'unicorn/prefer-array-slice'?: Linter.RuleEntry<[]>;
7278
7954
  /**
7279
7955
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
7280
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-some.md
7956
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-array-some.md
7281
7957
  */
7282
7958
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
7283
7959
  /**
7284
7960
  * Prefer `.at()` method for index access and `String#charAt()`.
7285
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-at.md
7961
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-at.md
7286
7962
  */
7287
7963
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
7964
+ /**
7965
+ * Prefer `await` over promise chaining.
7966
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-await.md
7967
+ */
7968
+ 'unicorn/prefer-await'?: Linter.RuleEntry<[]>;
7288
7969
  /**
7289
7970
  * Prefer `BigInt` literals over the constructor.
7290
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-bigint-literals.md
7971
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-bigint-literals.md
7291
7972
  */
7292
7973
  'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>;
7293
7974
  /**
7294
7975
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
7295
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-blob-reading-methods.md
7976
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-blob-reading-methods.md
7296
7977
  */
7297
7978
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
7979
+ /**
7980
+ * Prefer directly returning boolean expressions over `if` statements.
7981
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-boolean-return.md
7982
+ */
7983
+ 'unicorn/prefer-boolean-return'?: Linter.RuleEntry<[]>;
7298
7984
  /**
7299
7985
  * Prefer class field declarations over `this` assignments in constructors.
7300
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-class-fields.md
7986
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-class-fields.md
7301
7987
  */
7302
7988
  'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
7303
7989
  /**
7304
7990
  * Prefer using `Element#classList.toggle()` to toggle class names.
7305
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-classlist-toggle.md
7991
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-classlist-toggle.md
7306
7992
  */
7307
7993
  'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>;
7308
7994
  /**
7309
7995
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
7310
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-code-point.md
7996
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-code-point.md
7311
7997
  */
7312
7998
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
7999
+ /**
8000
+ * Prefer early continues over whole-loop conditional wrapping.
8001
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-continue.md
8002
+ */
8003
+ 'unicorn/prefer-continue'?: Linter.RuleEntry<UnicornPreferContinue>;
7313
8004
  /**
7314
8005
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
7315
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-date-now.md
8006
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-date-now.md
7316
8007
  */
7317
8008
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
7318
8009
  /**
7319
8010
  * Prefer default parameters over reassignment.
7320
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-default-parameters.md
8011
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-default-parameters.md
7321
8012
  */
7322
8013
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
7323
8014
  /**
7324
- * Prefer `Node#append()` over `Node#appendChild()`.
7325
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-dom-node-append.md
8015
+ * Prefer direct iteration over default iterator method calls.
8016
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-direct-iteration.md
8017
+ */
8018
+ 'unicorn/prefer-direct-iteration'?: Linter.RuleEntry<[]>;
8019
+ /**
8020
+ * Prefer using `using`/`await using` over manual `try`/`finally` resource disposal.
8021
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-dispose.md
8022
+ */
8023
+ 'unicorn/prefer-dispose'?: Linter.RuleEntry<[]>;
8024
+ /**
8025
+ * Prefer `Element#append()` over `Node#appendChild()`.
8026
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-dom-node-append.md
7326
8027
  */
7327
8028
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
7328
8029
  /**
7329
- * Prefer using `.dataset` on DOM elements over calling attribute methods.
7330
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-dom-node-dataset.md
8030
+ * Renamed to `unicorn/dom-node-dataset`.
8031
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
8032
+ * @deprecated
7331
8033
  */
7332
8034
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
8035
+ /**
8036
+ * Prefer `.getHTML()` and `.setHTML()` over `.innerHTML`.
8037
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-dom-node-html-methods.md
8038
+ */
8039
+ 'unicorn/prefer-dom-node-html-methods'?: Linter.RuleEntry<[]>;
7333
8040
  /**
7334
8041
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
7335
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-dom-node-remove.md
8042
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-dom-node-remove.md
7336
8043
  */
7337
8044
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
8045
+ /**
8046
+ * Prefer `.replaceChildren()` when emptying DOM children.
8047
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-dom-node-replace-children.md
8048
+ */
8049
+ 'unicorn/prefer-dom-node-replace-children'?: Linter.RuleEntry<[]>;
7338
8050
  /**
7339
8051
  * Prefer `.textContent` over `.innerText`.
7340
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-dom-node-text-content.md
8052
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-dom-node-text-content.md
7341
8053
  */
7342
8054
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
8055
+ /**
8056
+ * Prefer early returns over full-function conditional wrapping.
8057
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-early-return.md
8058
+ */
8059
+ 'unicorn/prefer-early-return'?: Linter.RuleEntry<UnicornPreferEarlyReturn>;
8060
+ /**
8061
+ * Prefer `else if` over adjacent `if` statements with related conditions.
8062
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-else-if.md
8063
+ */
8064
+ 'unicorn/prefer-else-if'?: Linter.RuleEntry<[]>;
8065
+ /**
8066
+ * Prefer `Error.isError()` when checking for errors.
8067
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-error-is-error.md
8068
+ */
8069
+ 'unicorn/prefer-error-is-error'?: Linter.RuleEntry<[]>;
7343
8070
  /**
7344
8071
  * Prefer `EventTarget` over `EventEmitter`.
7345
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-event-target.md
8072
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-event-target.md
7346
8073
  */
7347
8074
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
7348
8075
  /**
7349
8076
  * Prefer `export…from` when re-exporting.
7350
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-export-from.md
8077
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-export-from.md
7351
8078
  */
7352
8079
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
8080
+ /**
8081
+ * Prefer flat `Math.min()` and `Math.max()` calls over nested calls.
8082
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-flat-math-min-max.md
8083
+ */
8084
+ 'unicorn/prefer-flat-math-min-max'?: Linter.RuleEntry<[]>;
8085
+ /**
8086
+ * Prefer `.getOrInsertComputed()` when the default value has side effects.
8087
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-get-or-insert-computed.md
8088
+ */
8089
+ 'unicorn/prefer-get-or-insert-computed'?: Linter.RuleEntry<[]>;
8090
+ /**
8091
+ * Prefer global numeric constants over `Number` static properties.
8092
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-global-number-constants.md
8093
+ */
8094
+ 'unicorn/prefer-global-number-constants'?: Linter.RuleEntry<[]>;
7353
8095
  /**
7354
8096
  * Prefer `globalThis` over `window`, `self`, and `global`.
7355
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-global-this.md
8097
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-global-this.md
7356
8098
  */
7357
8099
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
8100
+ /**
8101
+ * Prefer `.has()` when checking existence.
8102
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-has-check.md
8103
+ */
8104
+ 'unicorn/prefer-has-check'?: Linter.RuleEntry<[]>;
8105
+ /**
8106
+ * Prefer moving code shared by all branches of an `if` statement out of the branches.
8107
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-hoisting-branch-code.md
8108
+ */
8109
+ 'unicorn/prefer-hoisting-branch-code'?: Linter.RuleEntry<[]>;
8110
+ /**
8111
+ * Prefer HTTPS over HTTP.
8112
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-https.md
8113
+ */
8114
+ 'unicorn/prefer-https'?: Linter.RuleEntry<[]>;
8115
+ /**
8116
+ * Prefer identifiers over string literals in import and export specifiers.
8117
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
8118
+ */
8119
+ 'unicorn/prefer-identifier-import-export-specifiers'?: Linter.RuleEntry<[]>;
7358
8120
  /**
7359
8121
  * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
7360
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-import-meta-properties.md
8122
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-import-meta-properties.md
7361
8123
  */
7362
8124
  'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
7363
8125
  /**
7364
8126
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
7365
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-includes.md
8127
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-includes.md
7366
8128
  */
7367
8129
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
7368
8130
  /**
7369
- * Prefer reading a JSON file as a buffer.
7370
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-json-parse-buffer.md
8131
+ * Prefer `.includes()` over repeated equality comparisons.
8132
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
8133
+ */
8134
+ 'unicorn/prefer-includes-over-repeated-comparisons'?: Linter.RuleEntry<UnicornPreferIncludesOverRepeatedComparisons>;
8135
+ /**
8136
+ * Prefer passing iterables directly to constructors instead of filling empty collections.
8137
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-iterable-in-constructor.md
8138
+ */
8139
+ 'unicorn/prefer-iterable-in-constructor'?: Linter.RuleEntry<[]>;
8140
+ /**
8141
+ * Prefer `Iterator.concat(…)` over temporary spread arrays.
8142
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-iterator-concat.md
8143
+ */
8144
+ 'unicorn/prefer-iterator-concat'?: Linter.RuleEntry<[]>;
8145
+ /**
8146
+ * Prefer `Iterator#toArray()` over temporary arrays from iterator spreads.
8147
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-iterator-to-array.md
8148
+ */
8149
+ 'unicorn/prefer-iterator-to-array'?: Linter.RuleEntry<[]>;
8150
+ /**
8151
+ * Prefer moving `.toArray()` to the end of iterator helper chains.
8152
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-iterator-to-array-at-end.md
8153
+ */
8154
+ 'unicorn/prefer-iterator-to-array-at-end'?: Linter.RuleEntry<[]>;
8155
+ /**
8156
+ * Renamed to `unicorn/consistent-json-file-read`.
8157
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
8158
+ * @deprecated
7371
8159
  */
7372
8160
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
7373
8161
  /**
7374
- * Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
7375
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-keyboard-event-key.md
8162
+ * Prefer `KeyboardEvent#key` over deprecated keyboard event properties.
8163
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-keyboard-event-key.md
7376
8164
  */
7377
8165
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
8166
+ /**
8167
+ * Prefer `location.assign()` over assigning to `location.href`.
8168
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-location-assign.md
8169
+ */
8170
+ 'unicorn/prefer-location-assign'?: Linter.RuleEntry<[]>;
7378
8171
  /**
7379
8172
  * Prefer using a logical operator over a ternary.
7380
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-logical-operator-over-ternary.md
8173
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-logical-operator-over-ternary.md
7381
8174
  */
7382
8175
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
8176
+ /**
8177
+ * Prefer `new Map()` over `Object.fromEntries()` when using the result as a map.
8178
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-map-from-entries.md
8179
+ */
8180
+ 'unicorn/prefer-map-from-entries'?: Linter.RuleEntry<[]>;
8181
+ /**
8182
+ * Prefer `Math.abs()` over manual absolute value expressions and symmetric range checks.
8183
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-math-abs.md
8184
+ */
8185
+ 'unicorn/prefer-math-abs'?: Linter.RuleEntry<[]>;
8186
+ /**
8187
+ * Prefer `Math` constants over their approximate numeric values.
8188
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-math-constants.md
8189
+ */
8190
+ 'unicorn/prefer-math-constants'?: Linter.RuleEntry<[]>;
7383
8191
  /**
7384
8192
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
7385
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-math-min-max.md
8193
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-math-min-max.md
7386
8194
  */
7387
8195
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
7388
8196
  /**
7389
- * Enforce the use of `Math.trunc` instead of bitwise operators.
7390
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-math-trunc.md
8197
+ * Prefer `Math.trunc()` for truncating numbers.
8198
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-math-trunc.md
7391
8199
  */
7392
8200
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
7393
8201
  /**
7394
- * Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
7395
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-modern-dom-apis.md
8202
+ * Prefer moving ternaries into the minimal varying part of an expression.
8203
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-minimal-ternary.md
8204
+ */
8205
+ 'unicorn/prefer-minimal-ternary'?: Linter.RuleEntry<UnicornPreferMinimalTernary>;
8206
+ /**
8207
+ * Prefer modern DOM APIs.
8208
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-modern-dom-apis.md
7396
8209
  */
7397
8210
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
7398
8211
  /**
7399
8212
  * Prefer modern `Math` APIs over legacy patterns.
7400
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-modern-math-apis.md
8213
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-modern-math-apis.md
7401
8214
  */
7402
8215
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
7403
8216
  /**
7404
8217
  * Prefer JavaScript modules (ESM) over CommonJS.
7405
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-module.md
8218
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-module.md
7406
8219
  */
7407
8220
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
7408
8221
  /**
7409
8222
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
7410
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-native-coercion-functions.md
8223
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-native-coercion-functions.md
7411
8224
  */
7412
8225
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
7413
8226
  /**
7414
8227
  * Prefer negative index over `.length - index` when possible.
7415
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-negative-index.md
8228
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-negative-index.md
7416
8229
  */
7417
8230
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
7418
8231
  /**
7419
8232
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
7420
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-node-protocol.md
8233
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-node-protocol.md
7421
8234
  */
7422
8235
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
7423
8236
  /**
7424
- * Prefer `Number` static properties over global ones.
7425
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-number-properties.md
8237
+ * Prefer `Number()` over `parseFloat()` and base-10 `parseInt()`.
8238
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-number-coercion.md
8239
+ */
8240
+ 'unicorn/prefer-number-coercion'?: Linter.RuleEntry<[]>;
8241
+ /**
8242
+ * Prefer `Number.isSafeInteger()` over integer checks.
8243
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-number-is-safe-integer.md
8244
+ */
8245
+ 'unicorn/prefer-number-is-safe-integer'?: Linter.RuleEntry<[]>;
8246
+ /**
8247
+ * Prefer `Number` static methods over global functions and optionally static properties over global constants.
8248
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-number-properties.md
7426
8249
  */
7427
8250
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
8251
+ /**
8252
+ * Prefer `Object.defineProperties()` over multiple `Object.defineProperty()` calls.
8253
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-object-define-properties.md
8254
+ */
8255
+ 'unicorn/prefer-object-define-properties'?: Linter.RuleEntry<[]>;
8256
+ /**
8257
+ * Prefer object destructuring defaults over default object literals with spread.
8258
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-object-destructuring-defaults.md
8259
+ */
8260
+ 'unicorn/prefer-object-destructuring-defaults'?: Linter.RuleEntry<[]>;
7428
8261
  /**
7429
8262
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
7430
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-object-from-entries.md
8263
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-object-from-entries.md
7431
8264
  */
7432
8265
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
8266
+ /**
8267
+ * Prefer the most specific `Object` iterable method.
8268
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-object-iterable-methods.md
8269
+ */
8270
+ 'unicorn/prefer-object-iterable-methods'?: Linter.RuleEntry<[]>;
8271
+ /**
8272
+ * Prefer observer APIs over resize and scroll listeners with layout reads.
8273
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-observer-apis.md
8274
+ */
8275
+ 'unicorn/prefer-observer-apis'?: Linter.RuleEntry<[]>;
7433
8276
  /**
7434
8277
  * Prefer omitting the `catch` binding parameter.
7435
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-optional-catch-binding.md
8278
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-optional-catch-binding.md
7436
8279
  */
7437
8280
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
8281
+ /**
8282
+ * Prefer `Path2D` for repeatedly drawn canvas paths.
8283
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-path2d.md
8284
+ */
8285
+ 'unicorn/prefer-path2d'?: Linter.RuleEntry<[]>;
8286
+ /**
8287
+ * Prefer private class fields over the underscore-prefix convention.
8288
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-private-class-fields.md
8289
+ */
8290
+ 'unicorn/prefer-private-class-fields'?: Linter.RuleEntry<[]>;
8291
+ /**
8292
+ * Prefer `Promise.try()` over promise-wrapping boilerplate.
8293
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-promise-try.md
8294
+ */
8295
+ 'unicorn/prefer-promise-try'?: Linter.RuleEntry<[]>;
8296
+ /**
8297
+ * Prefer `Promise.withResolvers()` when extracting resolver functions from `new Promise()`.
8298
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-promise-with-resolvers.md
8299
+ */
8300
+ 'unicorn/prefer-promise-with-resolvers'?: Linter.RuleEntry<[]>;
7438
8301
  /**
7439
8302
  * Prefer borrowing methods from the prototype instead of the instance.
7440
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-prototype-methods.md
8303
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-prototype-methods.md
7441
8304
  */
7442
8305
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
7443
8306
  /**
7444
- * Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
7445
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-query-selector.md
8307
+ * Prefer `.querySelector()` and `.querySelectorAll()` over older DOM query methods.
8308
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-query-selector.md
7446
8309
  */
7447
- 'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>;
8310
+ 'unicorn/prefer-query-selector'?: Linter.RuleEntry<UnicornPreferQuerySelector>;
8311
+ /**
8312
+ * Prefer `queueMicrotask()` over `process.nextTick()`, `setImmediate()`, and `setTimeout(…, 0)`.
8313
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-queue-microtask.md
8314
+ */
8315
+ 'unicorn/prefer-queue-microtask'?: Linter.RuleEntry<UnicornPreferQueueMicrotask>;
7448
8316
  /**
7449
8317
  * Prefer `Reflect.apply()` over `Function#apply()`.
7450
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-reflect-apply.md
8318
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-reflect-apply.md
7451
8319
  */
7452
8320
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
7453
8321
  /**
7454
- * Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
7455
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-regexp-test.md
8322
+ * Prefer `RegExp.escape()` for escaping strings to use in regular expressions.
8323
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-regexp-escape.md
8324
+ */
8325
+ 'unicorn/prefer-regexp-escape'?: Linter.RuleEntry<[]>;
8326
+ /**
8327
+ * Prefer `RegExp#test()` over `String#match()`, `String#search()`, and `RegExp#exec()`.
8328
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-regexp-test.md
7456
8329
  */
7457
8330
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
7458
8331
  /**
7459
8332
  * Prefer `Response.json()` over `new Response(JSON.stringify())`.
7460
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-response-static-json.md
8333
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-response-static-json.md
7461
8334
  */
7462
8335
  'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>;
8336
+ /**
8337
+ * Prefer `:scope` when using element query selector methods.
8338
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-scoped-selector.md
8339
+ */
8340
+ 'unicorn/prefer-scoped-selector'?: Linter.RuleEntry<[]>;
7463
8341
  /**
7464
8342
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
7465
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-set-has.md
8343
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-set-has.md
8344
+ */
8345
+ 'unicorn/prefer-set-has'?: Linter.RuleEntry<UnicornPreferSetHas>;
8346
+ /**
8347
+ * Prefer `Set` methods for Set operations.
8348
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-set-methods.md
7466
8349
  */
7467
- 'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>;
8350
+ 'unicorn/prefer-set-methods'?: Linter.RuleEntry<[]>;
7468
8351
  /**
7469
8352
  * Prefer using `Set#size` instead of `Array#length`.
7470
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-set-size.md
8353
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-set-size.md
7471
8354
  */
7472
8355
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
8356
+ /**
8357
+ * Prefer arrow function properties over methods with a single return.
8358
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-short-arrow-method.md
8359
+ */
8360
+ 'unicorn/prefer-short-arrow-method'?: Linter.RuleEntry<[]>;
7473
8361
  /**
7474
8362
  * Prefer simple conditions first in logical expressions.
7475
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-simple-condition-first.md
8363
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-simple-condition-first.md
7476
8364
  */
7477
8365
  'unicorn/prefer-simple-condition-first'?: Linter.RuleEntry<[]>;
7478
8366
  /**
7479
- * Enforce combining multiple `Array#push()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
7480
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-single-call.md
8367
+ * Prefer a simple comparison function for `Array#sort()`.
8368
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-simple-sort-comparator.md
8369
+ */
8370
+ 'unicorn/prefer-simple-sort-comparator'?: Linter.RuleEntry<[]>;
8371
+ /**
8372
+ * Prefer a single `Array#some()` or `Array#every()` with a combined predicate.
8373
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-single-array-predicate.md
8374
+ */
8375
+ 'unicorn/prefer-single-array-predicate'?: Linter.RuleEntry<[]>;
8376
+ /**
8377
+ * Enforce combining multiple `Array#{push,unshift}()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
8378
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-single-call.md
7481
8379
  */
7482
8380
  'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
7483
8381
  /**
7484
- * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
7485
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-spread.md
8382
+ * Prefer a single object destructuring declaration per local const source.
8383
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-single-object-destructuring.md
8384
+ */
8385
+ 'unicorn/prefer-single-object-destructuring'?: Linter.RuleEntry<[]>;
8386
+ /**
8387
+ * Enforce combining multiple single-character replacements into a single `String#replaceAll()` with a regular expression.
8388
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-single-replace.md
8389
+ */
8390
+ 'unicorn/prefer-single-replace'?: Linter.RuleEntry<[]>;
8391
+ /**
8392
+ * Prefer declaring variables in the smallest possible scope.
8393
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-smaller-scope.md
8394
+ */
8395
+ 'unicorn/prefer-smaller-scope'?: Linter.RuleEntry<[]>;
8396
+ /**
8397
+ * Prefer `String#split()` with a limit.
8398
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-split-limit.md
8399
+ */
8400
+ 'unicorn/prefer-split-limit'?: Linter.RuleEntry<[]>;
8401
+ /**
8402
+ * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()`, and trivial `for…of` copies.
8403
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-spread.md
7486
8404
  */
7487
8405
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
8406
+ /**
8407
+ * Prefer `String#matchAll()` over `RegExp#exec()` loops.
8408
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-string-match-all.md
8409
+ */
8410
+ 'unicorn/prefer-string-match-all'?: Linter.RuleEntry<[]>;
8411
+ /**
8412
+ * Prefer `String#padStart()` and `String#padEnd()` over manual string padding.
8413
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-string-pad-start-end.md
8414
+ */
8415
+ 'unicorn/prefer-string-pad-start-end'?: Linter.RuleEntry<[]>;
7488
8416
  /**
7489
8417
  * Prefer using the `String.raw` tag to avoid escaping `\`.
7490
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-raw.md
8418
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-string-raw.md
7491
8419
  */
7492
8420
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
7493
8421
  /**
7494
- * Prefer `String#replaceAll()` over regex searches with the global flag.
7495
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-replace-all.md
8422
+ * Prefer `String#repeat()` for repeated whitespace.
8423
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-string-repeat.md
8424
+ */
8425
+ 'unicorn/prefer-string-repeat'?: Linter.RuleEntry<UnicornPreferStringRepeat>;
8426
+ /**
8427
+ * Prefer `String#replaceAll()` over regex searches with the global flag and `String#split().join()`.
8428
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-string-replace-all.md
7496
8429
  */
7497
8430
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
7498
8431
  /**
7499
8432
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
7500
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-slice.md
8433
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-string-slice.md
7501
8434
  */
7502
8435
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
7503
8436
  /**
7504
- * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
7505
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-starts-ends-with.md
8437
+ * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()` and `String#indexOf() === 0`.
8438
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-string-starts-ends-with.md
7506
8439
  */
7507
8440
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
7508
8441
  /**
7509
8442
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
7510
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-trim-start-end.md
8443
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-string-trim-start-end.md
7511
8444
  */
7512
8445
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
7513
8446
  /**
7514
8447
  * Prefer using `structuredClone` to create a deep clone.
7515
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-structured-clone.md
8448
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-structured-clone.md
7516
8449
  */
7517
8450
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
7518
8451
  /**
7519
8452
  * Prefer `switch` over multiple `else-if`.
7520
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-switch.md
8453
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-switch.md
7521
8454
  */
7522
8455
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
7523
8456
  /**
7524
- * Prefer ternary expressions over simple `if-else` statements.
7525
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-ternary.md
8457
+ * Prefer `Temporal` over `Date`.
8458
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-temporal.md
8459
+ */
8460
+ 'unicorn/prefer-temporal'?: Linter.RuleEntry<UnicornPreferTemporal>;
8461
+ /**
8462
+ * Prefer ternary expressions over simple `if` statements that return or assign values.
8463
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-ternary.md
7526
8464
  */
7527
8465
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
8466
+ /**
8467
+ * Prefer using `Element#toggleAttribute()` to toggle attributes.
8468
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-toggle-attribute.md
8469
+ */
8470
+ 'unicorn/prefer-toggle-attribute'?: Linter.RuleEntry<[]>;
7528
8471
  /**
7529
8472
  * Prefer top-level await over top-level promises and async function calls.
7530
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-top-level-await.md
8473
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-top-level-await.md
7531
8474
  */
7532
8475
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
7533
8476
  /**
7534
8477
  * Enforce throwing `TypeError` in type checking conditions.
7535
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-type-error.md
8478
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-type-error.md
7536
8479
  */
7537
8480
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
7538
8481
  /**
7539
- * Prevent abbreviations.
7540
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prevent-abbreviations.md
8482
+ * Require type literals to be last in union types.
8483
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-type-literal-last.md
8484
+ */
8485
+ 'unicorn/prefer-type-literal-last'?: Linter.RuleEntry<[]>;
8486
+ /**
8487
+ * Prefer `Uint8Array#toBase64()` and `Uint8Array.fromBase64()` over `atob()`, `btoa()`, and `Buffer` base64 conversions.
8488
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-uint8array-base64.md
8489
+ */
8490
+ 'unicorn/prefer-uint8array-base64'?: Linter.RuleEntry<[]>;
8491
+ /**
8492
+ * Prefer the unary minus operator over multiplying or dividing by `-1`.
8493
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-unary-minus.md
8494
+ */
8495
+ 'unicorn/prefer-unary-minus'?: Linter.RuleEntry<[]>;
8496
+ /**
8497
+ * Prefer Unicode code point escapes over legacy escape sequences.
8498
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-unicode-code-point-escapes.md
8499
+ */
8500
+ 'unicorn/prefer-unicode-code-point-escapes'?: Linter.RuleEntry<[]>;
8501
+ /**
8502
+ * Prefer `URL.canParse()` over constructing a `URL` in a try/catch for validation.
8503
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-url-can-parse.md
7541
8504
  */
7542
- 'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>;
8505
+ 'unicorn/prefer-url-can-parse'?: Linter.RuleEntry<[]>;
8506
+ /**
8507
+ * Prefer `URL#href` over stringifying a `URL`.
8508
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-url-href.md
8509
+ */
8510
+ 'unicorn/prefer-url-href'?: Linter.RuleEntry<[]>;
8511
+ /**
8512
+ * Prefer `URLSearchParams` over manually splitting query strings.
8513
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-url-search-parameters.md
8514
+ */
8515
+ 'unicorn/prefer-url-search-parameters'?: Linter.RuleEntry<[]>;
8516
+ /**
8517
+ * Prefer putting the condition in the while statement.
8518
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-while-loop-condition.md
8519
+ */
8520
+ 'unicorn/prefer-while-loop-condition'?: Linter.RuleEntry<[]>;
8521
+ /**
8522
+ * Renamed to `unicorn/name-replacements`.
8523
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
8524
+ * @deprecated
8525
+ */
8526
+ 'unicorn/prevent-abbreviations'?: Linter.RuleEntry<[]>;
7543
8527
  /**
7544
8528
  * Enforce consistent relative URL style.
7545
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/relative-url-style.md
8529
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/relative-url-style.md
7546
8530
  */
7547
8531
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
7548
8532
  /**
7549
8533
  * Enforce using the separator argument with `Array#join()`.
7550
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-array-join-separator.md
8534
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/require-array-join-separator.md
7551
8535
  */
7552
8536
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
8537
+ /**
8538
+ * Require a compare function when calling `Array#sort()` or `Array#toSorted()`.
8539
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/require-array-sort-compare.md
8540
+ */
8541
+ 'unicorn/require-array-sort-compare'?: Linter.RuleEntry<[]>;
8542
+ /**
8543
+ * Require `CSS.escape()` for interpolated values in CSS selectors.
8544
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/require-css-escape.md
8545
+ */
8546
+ 'unicorn/require-css-escape'?: Linter.RuleEntry<UnicornRequireCssEscape>;
7553
8547
  /**
7554
8548
  * Require non-empty module attributes for imports and exports
7555
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-module-attributes.md
8549
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/require-module-attributes.md
7556
8550
  */
7557
8551
  'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>;
7558
8552
  /**
7559
8553
  * Require non-empty specifier list in import and export statements.
7560
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-module-specifiers.md
8554
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/require-module-specifiers.md
7561
8555
  */
7562
8556
  'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
7563
8557
  /**
7564
8558
  * Enforce using the digits argument with `Number#toFixed()`.
7565
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-number-to-fixed-digits-argument.md
8559
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/require-number-to-fixed-digits-argument.md
7566
8560
  */
7567
8561
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
8562
+ /**
8563
+ * Require passive event listeners for high-frequency events.
8564
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/require-passive-events.md
8565
+ */
8566
+ 'unicorn/require-passive-events'?: Linter.RuleEntry<[]>;
7568
8567
  /**
7569
8568
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
7570
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-post-message-target-origin.md
8569
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/require-post-message-target-origin.md
7571
8570
  */
7572
8571
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
8572
+ /**
8573
+ * Require boolean-returning Proxy traps to return booleans.
8574
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/require-proxy-trap-boolean-return.md
8575
+ */
8576
+ 'unicorn/require-proxy-trap-boolean-return'?: Linter.RuleEntry<[]>;
7573
8577
  /**
7574
8578
  * Enforce better string content.
7575
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/string-content.md
8579
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/string-content.md
7576
8580
  */
7577
8581
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
7578
8582
  /**
7579
8583
  * Enforce consistent brace style for `case` clauses.
7580
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/switch-case-braces.md
8584
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/switch-case-braces.md
7581
8585
  */
7582
8586
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
7583
8587
  /**
7584
8588
  * Enforce consistent `break`/`return`/`continue`/`throw` position in `case` clauses.
7585
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/switch-case-break-position.md
8589
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/switch-case-break-position.md
7586
8590
  */
7587
8591
  'unicorn/switch-case-break-position'?: Linter.RuleEntry<[]>;
7588
8592
  /**
7589
8593
  * Fix whitespace-insensitive template indentation.
7590
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/template-indent.md
8594
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/template-indent.md
7591
8595
  */
7592
8596
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
7593
8597
  /**
7594
8598
  * Enforce consistent case for text encoding identifiers.
7595
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/text-encoding-identifier-case.md
8599
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/text-encoding-identifier-case.md
7596
8600
  */
7597
8601
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
7598
8602
  /**
7599
8603
  * Require `new` when creating an error.
7600
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/throw-new-error.md
8604
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/throw-new-error.md
7601
8605
  */
7602
8606
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
8607
+ /**
8608
+ * Limit the complexity of `try` blocks.
8609
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/try-complexity.md
8610
+ */
8611
+ 'unicorn/try-complexity'?: Linter.RuleEntry<UnicornTryComplexity>;
7603
8612
  /**
7604
8613
  * Utilities in UnoCSS blocklist
7605
8614
  * @see https://unocss.dev/integrations/eslint#rules
@@ -9114,6 +10123,11 @@ interface RuleOptions {
9114
10123
  * @see https://ota-meshi.github.io/eslint-plugin-yml/rules/no-tab-indent.html
9115
10124
  */
9116
10125
  'yaml/no-tab-indent'?: Linter.RuleEntry<[]>;
10126
+ /**
10127
+ * disallow trailing whitespace at the end of lines
10128
+ * @see https://ota-meshi.github.io/eslint-plugin-yml/rules/no-trailing-spaces.html
10129
+ */
10130
+ 'yaml/no-trailing-spaces'?: Linter.RuleEntry<YamlNoTrailingSpaces>;
9117
10131
  /**
9118
10132
  * disallow trailing zeros for floats
9119
10133
  * @see https://ota-meshi.github.io/eslint-plugin-yml/rules/no-trailing-zeros.html
@@ -17155,43 +18169,110 @@ type TsUnifiedSignatures = [] | [{
17155
18169
  ignoreDifferentlyNamedParameters?: boolean;
17156
18170
  ignoreOverloadsWithDifferentJSDoc?: boolean;
17157
18171
  }]; // ----- unicode-bom -----
17158
- type UnicodeBom = [] | [("always" | "never")]; // ----- unicorn/better-regex -----
17159
- type UnicornBetterRegex = [] | [{
17160
- sortCharacterClasses?: boolean;
17161
- }]; // ----- unicorn/catch-error-name -----
18172
+ type UnicodeBom = [] | [("always" | "never")]; // ----- unicorn/catch-error-name -----
17162
18173
  type UnicornCatchErrorName = [] | [{
17163
18174
  name?: string;
17164
18175
  ignore?: unknown[];
17165
- }]; // ----- unicorn/consistent-function-scoping -----
18176
+ }]; // ----- unicorn/class-reference-in-static-methods -----
18177
+ type UnicornClassReferenceInStaticMethods = [] | [{
18178
+ preferThis?: boolean;
18179
+ preferSuper?: boolean;
18180
+ }]; // ----- unicorn/comment-content -----
18181
+ type UnicornCommentContent = [] | [{
18182
+ checkUniformCase?: boolean;
18183
+ extendDefaultReplacements?: boolean;
18184
+ replacements?: {
18185
+ [k: string]: (false | string | {
18186
+ replacement: string;
18187
+ caseSensitive?: boolean;
18188
+ }) | undefined;
18189
+ };
18190
+ }]; // ----- unicorn/consistent-boolean-name -----
18191
+ type UnicornConsistentBooleanName = [] | [{
18192
+ checkProperties?: boolean;
18193
+ prefixes?: {
18194
+ [k: string]: boolean | undefined;
18195
+ };
18196
+ ignore?: unknown[];
18197
+ }]; // ----- unicorn/consistent-class-member-order -----
18198
+ type UnicornConsistentClassMemberOrder = [] | [{
18199
+ 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")];
18200
+ }]; // ----- unicorn/consistent-compound-words -----
18201
+ type UnicornConsistentCompoundWords = [] | [{
18202
+ checkProperties?: boolean;
18203
+ checkVariables?: boolean;
18204
+ checkDefaultAndNamespaceImports?: (boolean | "internal");
18205
+ checkShorthandImports?: (boolean | "internal");
18206
+ checkShorthandProperties?: boolean;
18207
+ extendDefaultReplacements?: boolean;
18208
+ replacements?: _UnicornConsistentCompoundWords_Replacements;
18209
+ allowList?: _UnicornConsistentCompoundWords_TrueObject;
18210
+ }];
18211
+ interface _UnicornConsistentCompoundWords_Replacements {
18212
+ [k: string]: (false | string) | undefined;
18213
+ }
18214
+ interface _UnicornConsistentCompoundWords_TrueObject {
18215
+ [k: string]: true | undefined;
18216
+ } // ----- unicorn/consistent-conditional-object-spread -----
18217
+ type UnicornConsistentConditionalObjectSpread = [] | [("logical" | "ternary")]; // ----- unicorn/consistent-export-decorator-position -----
18218
+ type UnicornConsistentExportDecoratorPosition = [] | [("above" | "before" | "after")]; // ----- unicorn/consistent-function-scoping -----
17166
18219
  type UnicornConsistentFunctionScoping = [] | [{
17167
18220
  checkArrowFunctions?: boolean;
18221
+ }]; // ----- unicorn/consistent-function-style -----
18222
+ type UnicornConsistentFunctionStyle = [] | [{
18223
+ default?: ("declaration" | "function-expression" | "arrow-function" | "ignore");
18224
+ namedFunctions?: ("declaration" | "function-expression" | "arrow-function" | "ignore");
18225
+ namedExports?: ("declaration" | "function-expression" | "arrow-function" | "ignore");
18226
+ callbacks?: ("function-expression" | "arrow-function" | "ignore");
18227
+ objectProperties?: ("method" | "function-expression" | "arrow-function" | "ignore");
18228
+ reassignedVariables?: ("function-expression" | "arrow-function" | "ignore");
18229
+ typedVariables?: ("function-expression" | "arrow-function" | "ignore");
18230
+ }]; // ----- unicorn/consistent-json-file-read -----
18231
+ type UnicornConsistentJsonFileRead = [] | [("string" | "buffer")]; // ----- unicorn/default-export-style -----
18232
+ type UnicornDefaultExportStyle = [] | [{
18233
+ functions?: ("inline" | "separate" | "ignore");
18234
+ classes?: ("inline" | "separate" | "ignore");
18235
+ }]; // ----- unicorn/dom-node-dataset -----
18236
+ type UnicornDomNodeDataset = [] | [{
18237
+ preferAttributes?: boolean;
17168
18238
  }]; // ----- unicorn/escape-case -----
17169
18239
  type UnicornEscapeCase = [] | [("uppercase" | "lowercase")]; // ----- unicorn/expiring-todo-comments -----
17170
18240
  type UnicornExpiringTodoComments = [] | [{
17171
18241
  terms?: string[];
17172
18242
  ignore?: unknown[];
17173
- ignoreDates?: boolean;
17174
- ignoreDatesOnPullRequests?: boolean;
18243
+ checkDates?: boolean;
18244
+ checkDatesOnPullRequests?: boolean;
17175
18245
  allowWarningComments?: boolean;
17176
18246
  date?: string;
17177
18247
  }]; // ----- unicorn/explicit-length-check -----
17178
18248
  type UnicornExplicitLengthCheck = [] | [{
17179
18249
  "non-zero"?: ("greater-than" | "not-equal");
17180
- }]; // ----- unicorn/filename-case -----
18250
+ }]; // ----- unicorn/explicit-timer-delay -----
18251
+ type UnicornExplicitTimerDelay = [] | [("always" | "never")]; // ----- unicorn/filename-case -----
17181
18252
  type UnicornFilenameCase = [] | [({
17182
- case?: ("camelCase" | "snakeCase" | "kebabCase" | "pascalCase");
18253
+ case?: ("camelCase" | "camelCaseWithAcronyms" | "snakeCase" | "kebabCase" | "pascalCase");
17183
18254
  ignore?: unknown[];
17184
18255
  multipleFileExtensions?: boolean;
18256
+ checkDirectories?: boolean;
17185
18257
  } | {
17186
18258
  cases?: {
17187
18259
  camelCase?: boolean;
18260
+ camelCaseWithAcronyms?: boolean;
17188
18261
  snakeCase?: boolean;
17189
18262
  kebabCase?: boolean;
17190
18263
  pascalCase?: boolean;
17191
18264
  };
17192
18265
  ignore?: unknown[];
17193
18266
  multipleFileExtensions?: boolean;
17194
- })]; // ----- unicorn/import-style -----
18267
+ checkDirectories?: boolean;
18268
+ })]; // ----- unicorn/id-match -----
18269
+ type UnicornIdMatch = [] | [string] | [string, {
18270
+ properties?: boolean;
18271
+ classFields?: boolean;
18272
+ onlyDeclarations?: boolean;
18273
+ ignoreDestructuring?: boolean;
18274
+ checkNamedSpecifiers?: boolean;
18275
+ }]; // ----- unicorn/import-style -----
17195
18276
  type UnicornImportStyle = [] | [{
17196
18277
  checkImport?: boolean;
17197
18278
  checkDynamicImport?: boolean;
@@ -17214,6 +18295,38 @@ type UnicornIsolatedFunctions = [] | [{
17214
18295
  functions?: string[];
17215
18296
  selectors?: string[];
17216
18297
  comments?: string[];
18298
+ }]; // ----- unicorn/logical-assignment-operators -----
18299
+ type UnicornLogicalAssignmentOperators = (([] | ["always"] | ["always", {
18300
+ enforceForIfStatements?: boolean;
18301
+ }] | ["never"]) & unknown[]); // ----- unicorn/max-nested-calls -----
18302
+ type UnicornMaxNestedCalls = [] | [{
18303
+ max?: number;
18304
+ }]; // ----- unicorn/name-replacements -----
18305
+ type UnicornNameReplacements = [] | [{
18306
+ checkProperties?: boolean;
18307
+ checkVariables?: boolean;
18308
+ checkDefaultAndNamespaceImports?: (boolean | string);
18309
+ checkShorthandImports?: (boolean | string);
18310
+ checkShorthandProperties?: boolean;
18311
+ checkFilenames?: boolean;
18312
+ extendDefaultReplacements?: boolean;
18313
+ replacements?: _UnicornNameReplacements_NameReplacements;
18314
+ extendDefaultAllowList?: boolean;
18315
+ allowList?: _UnicornNameReplacements_BooleanObject;
18316
+ ignore?: unknown[];
18317
+ }];
18318
+ type _UnicornNameReplacementsReplacements = (false | _UnicornNameReplacements_BooleanObject) | undefined;
18319
+ interface _UnicornNameReplacements_NameReplacements {
18320
+ [k: string]: _UnicornNameReplacementsReplacements | undefined;
18321
+ }
18322
+ interface _UnicornNameReplacements_BooleanObject {
18323
+ [k: string]: boolean | undefined;
18324
+ }
18325
+ interface _UnicornNameReplacements_BooleanObject {
18326
+ [k: string]: boolean | undefined;
18327
+ } // ----- unicorn/no-array-callback-reference -----
18328
+ type UnicornNoArrayCallbackReference = [] | [{
18329
+ ignore?: string[];
17217
18330
  }]; // ----- unicorn/no-array-reduce -----
17218
18331
  type UnicornNoArrayReduce = [] | [{
17219
18332
  allowSimpleOperations?: boolean;
@@ -17223,28 +18336,47 @@ type UnicornNoArrayReverse = [] | [{
17223
18336
  }]; // ----- unicorn/no-array-sort -----
17224
18337
  type UnicornNoArraySort = [] | [{
17225
18338
  allowExpressionStatement?: boolean;
18339
+ }]; // ----- unicorn/no-empty-file -----
18340
+ type UnicornNoEmptyFile = [] | [{
18341
+ allowComments?: boolean;
17226
18342
  }]; // ----- unicorn/no-instanceof-builtins -----
17227
18343
  type UnicornNoInstanceofBuiltins = [] | [{
17228
18344
  useErrorIsError?: boolean;
17229
18345
  strategy?: ("loose" | "strict");
17230
18346
  include?: string[];
17231
18347
  exclude?: string[];
18348
+ }]; // ----- unicorn/no-invalid-argument-count -----
18349
+ type UnicornNoInvalidArgumentCount = [] | [{
18350
+ [k: string]: (number | [number, ...(number)[]] | {
18351
+ min?: number;
18352
+ max?: number;
18353
+ }) | undefined;
17232
18354
  }]; // ----- unicorn/no-keyword-prefix -----
17233
18355
  type UnicornNoKeywordPrefix = [] | [{
17234
18356
  disallowedPrefixes?: [] | [string];
17235
18357
  checkProperties?: boolean;
17236
18358
  onlyCamelCase?: boolean;
18359
+ }]; // ----- unicorn/no-negated-comparison -----
18360
+ type UnicornNoNegatedComparison = [] | [{
18361
+ checkLogicalExpressions?: boolean;
18362
+ }]; // ----- unicorn/no-non-function-verb-prefix -----
18363
+ type UnicornNoNonFunctionVerbPrefix = [] | [{
18364
+ verbs?: string[];
17237
18365
  }]; // ----- unicorn/no-null -----
17238
18366
  type UnicornNoNull = [] | [{
18367
+ checkArguments?: boolean;
17239
18368
  checkStrictEquality?: boolean;
17240
18369
  }]; // ----- unicorn/no-typeof-undefined -----
17241
18370
  type UnicornNoTypeofUndefined = [] | [{
17242
18371
  checkGlobalVariables?: boolean;
17243
18372
  }]; // ----- unicorn/no-unnecessary-polyfills -----
17244
18373
  type UnicornNoUnnecessaryPolyfills = [] | [{
17245
- targets: (string | unknown[] | {
18374
+ targets?: (string | unknown[] | {
17246
18375
  [k: string]: unknown | undefined;
17247
18376
  });
18377
+ }]; // ----- unicorn/no-unreadable-array-destructuring -----
18378
+ type UnicornNoUnreadableArrayDestructuring = [] | [{
18379
+ maximumIgnoredElements?: number;
17248
18380
  }]; // ----- unicorn/no-useless-undefined -----
17249
18381
  type UnicornNoUselessUndefined = [] | [{
17250
18382
  checkArguments?: boolean;
@@ -17273,9 +18405,11 @@ type UnicornNumericSeparatorsStyle = [] | [{
17273
18405
  onlyIfContainsSeparator?: boolean;
17274
18406
  minimumDigits?: number;
17275
18407
  groupLength?: number;
18408
+ fractionGroupLength?: number;
17276
18409
  };
17277
18410
  onlyIfContainsSeparator?: boolean;
17278
- }]; // ----- unicorn/prefer-add-event-listener -----
18411
+ }]; // ----- unicorn/operator-assignment -----
18412
+ type UnicornOperatorAssignment = [] | [("always" | "never")]; // ----- unicorn/prefer-add-event-listener -----
17279
18413
  type UnicornPreferAddEventListener = [] | [{
17280
18414
  excludedPackages?: string[];
17281
18415
  }]; // ----- unicorn/prefer-array-find -----
@@ -17288,9 +18422,22 @@ type UnicornPreferArrayFlat = [] | [{
17288
18422
  type UnicornPreferAt = [] | [{
17289
18423
  getLastElementFunctions?: unknown[];
17290
18424
  checkAllIndexAccess?: boolean;
18425
+ }]; // ----- unicorn/prefer-continue -----
18426
+ type UnicornPreferContinue = [] | [{
18427
+ maximumStatements?: number;
18428
+ }]; // ----- unicorn/prefer-early-return -----
18429
+ type UnicornPreferEarlyReturn = [] | [{
18430
+ maximumStatements?: number;
17291
18431
  }]; // ----- unicorn/prefer-export-from -----
17292
18432
  type UnicornPreferExportFrom = [] | [{
17293
- ignoreUsedVariables?: boolean;
18433
+ checkUsedVariables?: boolean;
18434
+ }]; // ----- unicorn/prefer-includes-over-repeated-comparisons -----
18435
+ type UnicornPreferIncludesOverRepeatedComparisons = [] | [{
18436
+ minimumComparisons?: number;
18437
+ }]; // ----- unicorn/prefer-minimal-ternary -----
18438
+ type UnicornPreferMinimalTernary = [] | [{
18439
+ checkVaryingCallee?: boolean;
18440
+ checkComputedMemberAccess?: boolean;
17294
18441
  }]; // ----- unicorn/prefer-number-properties -----
17295
18442
  type UnicornPreferNumberProperties = [] | [{
17296
18443
  checkInfinity?: boolean;
@@ -17298,9 +18445,22 @@ type UnicornPreferNumberProperties = [] | [{
17298
18445
  }]; // ----- unicorn/prefer-object-from-entries -----
17299
18446
  type UnicornPreferObjectFromEntries = [] | [{
17300
18447
  functions?: unknown[];
18448
+ }]; // ----- unicorn/prefer-query-selector -----
18449
+ type UnicornPreferQuerySelector = [] | [{
18450
+ allowWithVariables?: boolean;
18451
+ }]; // ----- unicorn/prefer-queue-microtask -----
18452
+ type UnicornPreferQueueMicrotask = [] | [{
18453
+ checkSetImmediate?: boolean;
18454
+ checkSetTimeout?: boolean;
18455
+ }]; // ----- unicorn/prefer-set-has -----
18456
+ type UnicornPreferSetHas = [] | [{
18457
+ minimumItems?: number;
17301
18458
  }]; // ----- unicorn/prefer-single-call -----
17302
18459
  type UnicornPreferSingleCall = [] | [{
17303
18460
  ignore?: unknown[];
18461
+ }]; // ----- unicorn/prefer-string-repeat -----
18462
+ type UnicornPreferStringRepeat = [] | [{
18463
+ minimumRepetitions?: number;
17304
18464
  }]; // ----- unicorn/prefer-structured-clone -----
17305
18465
  type UnicornPreferStructuredClone = [] | [{
17306
18466
  functions?: unknown[];
@@ -17308,42 +18468,29 @@ type UnicornPreferStructuredClone = [] | [{
17308
18468
  type UnicornPreferSwitch = [] | [{
17309
18469
  minimumCases?: number;
17310
18470
  emptyDefaultCase?: ("no-default-comment" | "do-nothing-comment" | "no-default-case");
18471
+ }]; // ----- unicorn/prefer-temporal -----
18472
+ type UnicornPreferTemporal = [] | [{
18473
+ checkDateNow?: boolean;
18474
+ checkReferences?: boolean;
18475
+ checkMethods?: boolean;
17311
18476
  }]; // ----- unicorn/prefer-ternary -----
17312
- type UnicornPreferTernary = [] | [("always" | "only-single-line")]; // ----- unicorn/prevent-abbreviations -----
17313
- type UnicornPreventAbbreviations = [] | [{
17314
- checkProperties?: boolean;
17315
- checkVariables?: boolean;
17316
- checkDefaultAndNamespaceImports?: (boolean | string);
17317
- checkShorthandImports?: (boolean | string);
17318
- checkShorthandProperties?: boolean;
17319
- checkFilenames?: boolean;
17320
- extendDefaultReplacements?: boolean;
17321
- replacements?: _UnicornPreventAbbreviations_Abbreviations;
17322
- extendDefaultAllowList?: boolean;
17323
- allowList?: _UnicornPreventAbbreviations_BooleanObject;
17324
- ignore?: unknown[];
17325
- }];
17326
- type _UnicornPreventAbbreviationsReplacements = (false | _UnicornPreventAbbreviations_BooleanObject) | undefined;
17327
- interface _UnicornPreventAbbreviations_Abbreviations {
17328
- [k: string]: _UnicornPreventAbbreviationsReplacements | undefined;
17329
- }
17330
- interface _UnicornPreventAbbreviations_BooleanObject {
17331
- [k: string]: boolean | undefined;
17332
- }
17333
- interface _UnicornPreventAbbreviations_BooleanObject {
17334
- [k: string]: boolean | undefined;
17335
- } // ----- unicorn/relative-url-style -----
17336
- type UnicornRelativeUrlStyle = [] | [("never" | "always")]; // ----- unicorn/string-content -----
18477
+ type UnicornPreferTernary = [] | [("always" | "only-single-line")]; // ----- unicorn/relative-url-style -----
18478
+ type UnicornRelativeUrlStyle = [] | [("never" | "always")]; // ----- unicorn/require-css-escape -----
18479
+ type UnicornRequireCssEscape = [] | [{
18480
+ checkAllSelectors?: boolean;
18481
+ }]; // ----- unicorn/string-content -----
17337
18482
  type UnicornStringContent = [] | [{
17338
18483
  patterns?: {
17339
18484
  [k: string]: (string | {
17340
18485
  suggest: string;
17341
18486
  fix?: boolean;
18487
+ caseSensitive?: boolean;
17342
18488
  message?: string;
17343
18489
  }) | undefined;
17344
18490
  };
18491
+ selectors?: string[];
17345
18492
  }]; // ----- unicorn/switch-case-braces -----
17346
- type UnicornSwitchCaseBraces = [] | [("always" | "avoid")]; // ----- unicorn/template-indent -----
18493
+ type UnicornSwitchCaseBraces = [] | [("always" | "avoid" | "single-statement")]; // ----- unicorn/template-indent -----
17347
18494
  type UnicornTemplateIndent = [] | [{
17348
18495
  indent?: (string | number);
17349
18496
  tags?: string[];
@@ -17353,6 +18500,9 @@ type UnicornTemplateIndent = [] | [{
17353
18500
  }]; // ----- unicorn/text-encoding-identifier-case -----
17354
18501
  type UnicornTextEncodingIdentifierCase = [] | [{
17355
18502
  withDash?: boolean;
18503
+ }]; // ----- unicorn/try-complexity -----
18504
+ type UnicornTryComplexity = [] | [{
18505
+ max?: number;
17356
18506
  }]; // ----- unocss/enforce-class-compile -----
17357
18507
  type UnocssEnforceClassCompile = [] | [{
17358
18508
  prefix?: string;
@@ -18694,6 +19844,10 @@ type YamlNoMultipleEmptyLines = [] | [{
18694
19844
  max: number;
18695
19845
  maxEOF?: number;
18696
19846
  maxBOF?: number;
19847
+ }]; // ----- yaml/no-trailing-spaces -----
19848
+ type YamlNoTrailingSpaces = [] | [{
19849
+ skipBlankLines?: boolean;
19850
+ ignoreComments?: boolean;
18697
19851
  }]; // ----- yaml/plain-scalar -----
18698
19852
  type YamlPlainScalar = [] | [("always" | "never")] | [("always" | "never"), {
18699
19853
  ignorePatterns?: string[];
@@ -18788,7 +19942,7 @@ type Yoda = [] | [("always" | "never")] | [("always" | "never"), {
18788
19942
  exceptRange?: boolean;
18789
19943
  onlyEquality?: boolean;
18790
19944
  }]; // Names of all the configs
18791
- type ConfigNames = 'config/gitignore' | 'config/ignores' | 'config/javascript/setup' | 'config/javascript/rules' | 'config/eslint-comments/rules' | 'config/node/setup' | 'config/node/rules' | 'config/imports/rules' | 'config/command/rules' | 'config/perfectionist/setup' | 'config/imports/rules' | 'config/e18e/rules' | 'config/unicorn/rules' | 'config/jsdoc/rules' | 'config/jsx/setup' | 'config/typescript/setup' | 'config/typescript/parser' | 'config/typescript/type-aware-parser' | 'config/typescript/rules' | 'config/typescript/rules-type-aware' | 'config/typescript/erasable-syntax-only' | 'config/stylistic/rules' | 'config/regexp/rules' | 'config/test/setup' | 'config/test/rules' | 'config/storybook/setup' | 'config/vue/setup' | 'config/vue/rules' | 'config/react/setup' | 'config/react/rules' | 'config/react/typescript' | 'config/react/type-aware-rules' | 'config/nextjs/setup' | 'config/nextjs/rules' | 'config/solid/setup' | 'config/solid/rules' | 'config/svelte/setup' | 'config/svelte/rules' | 'config/unocss' | 'config/astro/setup' | 'config/astro/rules' | 'config/jsonc/setup' | 'config/jsonc/rules' | 'config/sort/package-json' | 'config/sort/tsconfig-json' | 'config/pnpm/package-json' | 'config/pnpm/pnpm-workspace-yaml' | 'config/pnpm/pnpm-workspace-yaml-sort' | 'config/yaml/setup' | 'config/yaml/rules' | 'config/yaml/pnpm-workspace' | 'config/toml/setup' | 'config/toml/rules' | 'config/markdown/setup' | 'config/markdown/processor' | 'config/markdown/parser' | 'config/markdown/rules' | 'config/markdown/disables' | 'config/formatter/setup' | 'config/formatter/css' | 'config/formatter/scss' | 'config/formatter/less' | 'config/formatter/html' | 'config/formatter/xml' | 'config/formatter/svg' | 'config/formatter/markdown' | 'config/formatter/astro' | 'config/formatter/astro/disables' | 'config/formatter/graphql' | 'config/disables/scripts' | 'config/disables/cli' | 'config/disables/bin' | 'config/disables/dts' | 'config/disables/cjs' | 'config/disables/config-files';
19945
+ type ConfigNames = 'config/gitignore' | 'config/ignores' | 'config/javascript/setup' | 'config/javascript/rules' | 'config/eslint-comments/rules' | 'config/node/setup' | 'config/node/rules' | 'config/imports/rules' | 'config/command/rules' | 'config/perfectionist/setup' | 'config/imports/rules' | 'config/e18e/rules' | 'config/unicorn/rules' | 'config/jsdoc/rules' | 'config/jsx/setup' | 'config/typescript/setup' | 'config/typescript/parser' | 'config/typescript/type-aware-parser' | 'config/typescript/rules' | 'config/typescript/rules-type-aware' | 'config/typescript/erasable-syntax-only' | 'config/stylistic/rules' | 'config/regexp/rules' | 'config/sanity/setup' | 'config/sanity/rules' | 'config/test/setup' | 'config/test/rules' | 'config/storybook/setup' | 'config/vue/setup' | 'config/vue/rules' | 'config/react/setup' | 'config/react/rules' | 'config/react/typescript' | 'config/react/type-aware-rules' | 'config/nextjs/setup' | 'config/nextjs/rules' | 'config/solid/setup' | 'config/solid/rules' | 'config/svelte/setup' | 'config/svelte/rules' | 'config/unocss' | 'config/astro/setup' | 'config/astro/rules' | 'config/jsonc/setup' | 'config/jsonc/rules' | 'config/sort/package-json' | 'config/sort/tsconfig-json' | 'config/pnpm/package-json' | 'config/pnpm/pnpm-workspace-yaml' | 'config/pnpm/pnpm-workspace-yaml-sort' | 'config/yaml/setup' | 'config/yaml/rules' | 'config/yaml/pnpm-workspace' | 'config/toml/setup' | 'config/toml/rules' | 'config/markdown/setup' | 'config/markdown/processor' | 'config/markdown/parser' | 'config/markdown/rules' | 'config/markdown/disables' | 'config/formatter/setup' | 'config/formatter/css' | 'config/formatter/scss' | 'config/formatter/less' | 'config/formatter/html' | 'config/formatter/xml' | 'config/formatter/svg' | 'config/formatter/markdown' | 'config/formatter/astro' | 'config/formatter/astro/disables' | 'config/formatter/graphql' | 'config/disables/scripts' | 'config/disables/cli' | 'config/disables/bin' | 'config/disables/dts' | 'config/disables/cjs' | 'config/disables/config-files';
18792
19946
  //#endregion
18793
19947
  //#region src/vendor/prettier-types.d.ts
18794
19948
  /**
@@ -19051,6 +20205,7 @@ interface OptionsConfig extends OptionsComponentExts, OptionsProjectType {
19051
20205
  markdown?: TypedFlatConfigItem['rules'];
19052
20206
  nextjs?: TypedFlatConfigItem['rules'];
19053
20207
  react?: TypedFlatConfigItem['rules'];
20208
+ sanity?: TypedFlatConfigItem['rules'];
19054
20209
  storybook?: TypedFlatConfigItem['rules'];
19055
20210
  stylistic?: TypedFlatConfigItem['rules'];
19056
20211
  svelte?: TypedFlatConfigItem['rules'];
@@ -19090,6 +20245,15 @@ interface OptionsConfig extends OptionsComponentExts, OptionsProjectType {
19090
20245
  * @default true
19091
20246
  */
19092
20247
  regexp?: (OptionsOverrides & OptionsRegExp) | boolean;
20248
+ /**
20249
+ * Enable Sanity rules.
20250
+ *
20251
+ * Requires installing:
20252
+ * - `@sanity-labs/eslint-plugin`
20253
+ *
20254
+ * @default false
20255
+ */
20256
+ sanity?: boolean | OptionsSanity;
19093
20257
  /**
19094
20258
  * Enable solid rules.
19095
20259
  *
@@ -19389,6 +20553,54 @@ interface OptionsRegExp {
19389
20553
  */
19390
20554
  level?: 'error' | 'warn';
19391
20555
  }
20556
+ interface OptionsSanity extends OptionsFiles, OptionsOverrides {
20557
+ /**
20558
+ * Working directory for resolving the Sanity schema path.
20559
+ *
20560
+ * Use this when linting from a monorepo root while Sanity schema files live in a nested app.
20561
+ *
20562
+ * @example
20563
+ * ```ts
20564
+ * sanity: {
20565
+ * cwd: 'apps/studio',
20566
+ * schemaPath: 'schema.json',
20567
+ * },
20568
+ * ```
20569
+ *
20570
+ * @default process.cwd()
20571
+ */
20572
+ cwd?: string;
20573
+ /**
20574
+ * Sanity rule preset.
20575
+ *
20576
+ * - `recommended`: Balanced GROQ and schema defaults.
20577
+ * - `groq`: GROQ rules only.
20578
+ * - `schema`: Schema rules only.
20579
+ * - `performance`: Performance-focused GROQ rules only.
20580
+ * - `strict`: All rules as errors.
20581
+ *
20582
+ * @default 'recommended'
20583
+ */
20584
+ preset?: 'groq' | 'performance' | 'recommended' | 'schema' | 'strict';
20585
+ /**
20586
+ * Path to the extracted Sanity schema JSON file for schema-aware GROQ rules.
20587
+ *
20588
+ * Relative paths are resolved from `cwd`.
20589
+ *
20590
+ * @example
20591
+ * ```ts
20592
+ * sanity: {
20593
+ * cwd: 'apps/studio',
20594
+ * schemaPath: 'schema.json',
20595
+ * },
20596
+ * ```
20597
+ *
20598
+ * @see https://github.com/sanity-labs/sanity-lint/tree/main/packages/eslint-plugin#schema-aware-linting
20599
+ *
20600
+ * @default undefined
20601
+ */
20602
+ schemaPath?: string;
20603
+ }
19392
20604
  interface OptionsStylistic {
19393
20605
  /**
19394
20606
  * Enable stylistic rules.
@@ -19679,6 +20891,9 @@ declare function react(options?: OptionsTypeScriptParserOptions & OptionsTypeScr
19679
20891
  //#region src/configs/regexp.d.ts
19680
20892
  declare function regexp(options?: OptionsOverrides & OptionsRegExp): Promise<TypedFlatConfigItem[]>;
19681
20893
  //#endregion
20894
+ //#region src/configs/sanity.d.ts
20895
+ declare function sanity(options?: OptionsFiles & OptionsOverrides & OptionsSanity): Promise<TypedFlatConfigItem[]>;
20896
+ //#endregion
19682
20897
  //#region src/configs/solid.d.ts
19683
20898
  declare function solid(options?: OptionsFiles & OptionsHasTypeScript & OptionsOverrides & OptionsTypeScriptWithTypes): Promise<TypedFlatConfigItem[]>;
19684
20899
  //#endregion
@@ -19921,4 +21136,4 @@ declare function renameRules(rules: Record<string, any>, map: Record<string, str
19921
21136
  */
19922
21137
  declare function toArray<T>(value: T | T[]): T[];
19923
21138
  //#endregion
19924
- export { Awaitable, CONFIG_PRESET_FULL_OFF, CONFIG_PRESET_FULL_ON, type ConfigNames, GLOB_ALL_SRC, GLOB_ASTRO, GLOB_ASTRO_TS, GLOB_CSS, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_POSTCSS, GLOB_SCSS, GLOB_SEARCH_EXCLUDE, GLOB_SRC, GLOB_SRC_EXT, GLOB_STORYBOOK, GLOB_STYLE, GLOB_SVELTE, GLOB_SVG, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_XML, GLOB_YAML, OptionsComponentExts, OptionsConfig, OptionsE18e, OptionsFiles, OptionsFormatters, OptionsHasTypeScript, OptionsIsInEditor, OptionsJSX, OptionsJSXA11y, OptionsNextjs, OptionsOverrides, OptionsPnpm, OptionsProjectType, OptionsReact, OptionsRegExp, OptionsStylistic, OptionsTailwindcss, OptionsTypeScriptErasableOnly, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, OptionsTypescript, OptionsUnicorn, OptionsUnoCSS, OptionsVue, PACKAGE_NAME, ResolvedOptions, Rules, StylisticConfig, StylisticConfigDefaults, StylisticOptions, TypedFlatConfigItem, astro, combine, command, comments, config, config as inferno, defaultPluginRenaming, disables, e18e, ensurePackages, formatters, getOverrides, ignores, imports, interopDefault, isInCursorAgent, isInEditorEnv, isInGitHooksOrLintStaged, isInVSCodeESLintExtension, isPackageInScope, javascript, jsdoc, jsonc, jsx, markdown, nextjs, node, normalizeRules, packageExportsSortOrder, packageSortOrder, parserPlain, perfectionist, pnpm, react, regexp, renamePluginInConfigs, renameRules, resolveSubOptions, solid, sortPackageJson, sortTsconfig, storybook, stylistic, svelte, tailwindcss, test, toArray, toml, typescript, unicorn, unocss, vue, yaml };
21139
+ export { Awaitable, CONFIG_PRESET_FULL_OFF, CONFIG_PRESET_FULL_ON, type ConfigNames, GLOB_ALL_SRC, GLOB_ASTRO, GLOB_ASTRO_TS, GLOB_CSS, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_POSTCSS, GLOB_SCSS, GLOB_SEARCH_EXCLUDE, GLOB_SRC, GLOB_SRC_EXT, GLOB_STORYBOOK, GLOB_STYLE, GLOB_SVELTE, GLOB_SVG, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_XML, GLOB_YAML, OptionsComponentExts, OptionsConfig, OptionsE18e, OptionsFiles, OptionsFormatters, OptionsHasTypeScript, OptionsIsInEditor, OptionsJSX, OptionsJSXA11y, OptionsNextjs, OptionsOverrides, OptionsPnpm, OptionsProjectType, OptionsReact, OptionsRegExp, OptionsSanity, OptionsStylistic, OptionsTailwindcss, OptionsTypeScriptErasableOnly, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, OptionsTypescript, OptionsUnicorn, OptionsUnoCSS, OptionsVue, PACKAGE_NAME, ResolvedOptions, Rules, StylisticConfig, StylisticConfigDefaults, StylisticOptions, TypedFlatConfigItem, astro, combine, command, comments, config, config as inferno, defaultPluginRenaming, disables, e18e, ensurePackages, formatters, getOverrides, ignores, imports, interopDefault, isInCursorAgent, isInEditorEnv, isInGitHooksOrLintStaged, isInVSCodeESLintExtension, isPackageInScope, javascript, jsdoc, jsonc, jsx, markdown, nextjs, node, normalizeRules, packageExportsSortOrder, packageSortOrder, parserPlain, perfectionist, pnpm, react, regexp, renamePluginInConfigs, renameRules, resolveSubOptions, sanity, solid, sortPackageJson, sortTsconfig, storybook, stylistic, svelte, tailwindcss, test, toArray, toml, typescript, unicorn, unocss, vue, yaml };