@ncontiero/eslint-config 8.2.2 → 8.3.0-beta.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.mts CHANGED
@@ -5739,753 +5739,921 @@ interface RuleOptions {
5739
5739
  */
5740
5740
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>;
5741
5741
  /**
5742
- * Improve regexes by making them shorter, consistent, and safer.
5743
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/better-regex.md
5742
+ * Prefer better DOM traversal APIs.
5743
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/better-dom-traversing.md
5744
5744
  */
5745
- 'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>;
5745
+ 'unicorn/better-dom-traversing'?: Linter.RuleEntry<[]>;
5746
+ /**
5747
+ * Removed. Prefer `eslint-plugin-regexp`
5748
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/deleted-and-deprecated-rules.md#better-regex
5749
+ * @deprecated
5750
+ */
5751
+ 'unicorn/better-regex'?: Linter.RuleEntry<[]>;
5746
5752
  /**
5747
5753
  * Enforce a specific parameter name in catch clauses.
5748
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/catch-error-name.md
5754
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/catch-error-name.md
5749
5755
  */
5750
5756
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
5751
5757
  /**
5752
5758
  * Enforce consistent assertion style with `node:assert`.
5753
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-assert.md
5759
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/consistent-assert.md
5754
5760
  */
5755
5761
  'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
5762
+ /**
5763
+ * Enforce consistent spelling of compound words in identifiers.
5764
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/consistent-compound-words.md
5765
+ */
5766
+ 'unicorn/consistent-compound-words'?: Linter.RuleEntry<UnicornConsistentCompoundWords>;
5756
5767
  /**
5757
5768
  * Prefer passing `Date` directly to the constructor when cloning.
5758
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-date-clone.md
5769
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/consistent-date-clone.md
5759
5770
  */
5760
5771
  'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
5761
5772
  /**
5762
5773
  * Use destructured variables over properties.
5763
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-destructuring.md
5774
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/consistent-destructuring.md
5764
5775
  */
5765
5776
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
5766
5777
  /**
5767
5778
  * Prefer consistent types when spreading a ternary in an array literal.
5768
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-empty-array-spread.md
5779
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/consistent-empty-array-spread.md
5769
5780
  */
5770
5781
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
5771
5782
  /**
5772
5783
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
5773
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-existence-index-check.md
5784
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/consistent-existence-index-check.md
5774
5785
  */
5775
5786
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
5776
5787
  /**
5777
5788
  * Move function definitions to the highest possible scope.
5778
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-function-scoping.md
5789
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/consistent-function-scoping.md
5779
5790
  */
5780
5791
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
5792
+ /**
5793
+ * Enforce consistent JSON file reads before `JSON.parse()`.
5794
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/consistent-json-file-read.md
5795
+ */
5796
+ 'unicorn/consistent-json-file-read'?: Linter.RuleEntry<UnicornConsistentJsonFileRead>;
5781
5797
  /**
5782
5798
  * Enforce consistent style for escaping `${` in template literals.
5783
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-template-literal-escape.md
5799
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/consistent-template-literal-escape.md
5784
5800
  */
5785
5801
  'unicorn/consistent-template-literal-escape'?: Linter.RuleEntry<[]>;
5786
5802
  /**
5787
5803
  * Enforce correct `Error` subclassing.
5788
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/custom-error-definition.md
5804
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/custom-error-definition.md
5789
5805
  */
5790
5806
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
5807
+ /**
5808
+ * Enforce consistent style for DOM element dataset access.
5809
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/dom-node-dataset.md
5810
+ */
5811
+ 'unicorn/dom-node-dataset'?: Linter.RuleEntry<UnicornDomNodeDataset>;
5791
5812
  /**
5792
5813
  * Enforce no spaces between braces.
5793
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/empty-brace-spaces.md
5814
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/empty-brace-spaces.md
5794
5815
  */
5795
5816
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
5796
5817
  /**
5797
5818
  * Enforce passing a `message` value when creating a built-in error.
5798
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/error-message.md
5819
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/error-message.md
5799
5820
  */
5800
5821
  'unicorn/error-message'?: Linter.RuleEntry<[]>;
5801
5822
  /**
5802
5823
  * Require escape sequences to use uppercase or lowercase values.
5803
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/escape-case.md
5824
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/escape-case.md
5804
5825
  */
5805
5826
  'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
5806
5827
  /**
5807
5828
  * Add expiration conditions to TODO comments.
5808
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/expiring-todo-comments.md
5829
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/expiring-todo-comments.md
5809
5830
  */
5810
5831
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
5811
5832
  /**
5812
5833
  * Enforce explicitly comparing the `length` or `size` property of a value.
5813
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/explicit-length-check.md
5834
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/explicit-length-check.md
5814
5835
  */
5815
5836
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
5816
5837
  /**
5817
- * Enforce a case style for filenames.
5818
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/filename-case.md
5838
+ * Enforce a case style for filenames and directory names.
5839
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/filename-case.md
5819
5840
  */
5820
5841
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
5821
5842
  /**
5822
5843
  * Enforce specific import styles per module.
5823
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/import-style.md
5844
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/import-style.md
5824
5845
  */
5825
5846
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
5826
5847
  /**
5827
5848
  * Prevent usage of variables from outside the scope of isolated functions.
5828
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/isolated-functions.md
5849
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/isolated-functions.md
5829
5850
  */
5830
5851
  'unicorn/isolated-functions'?: Linter.RuleEntry<UnicornIsolatedFunctions>;
5831
5852
  /**
5832
5853
  * Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
5833
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/new-for-builtins.md
5854
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/new-for-builtins.md
5834
5855
  */
5835
5856
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
5836
5857
  /**
5837
5858
  * Enforce specifying rules to disable in `eslint-disable` comments.
5838
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-abusive-eslint-disable.md
5859
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-abusive-eslint-disable.md
5839
5860
  */
5840
5861
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
5841
5862
  /**
5842
5863
  * Disallow recursive access to `this` within getters and setters.
5843
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-accessor-recursion.md
5864
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-accessor-recursion.md
5844
5865
  */
5845
5866
  'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
5846
5867
  /**
5847
5868
  * Disallow anonymous functions and classes as the default export.
5848
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-anonymous-default-export.md
5869
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-anonymous-default-export.md
5849
5870
  */
5850
5871
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
5851
5872
  /**
5852
5873
  * Prevent passing a function reference directly to iterator methods.
5853
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-callback-reference.md
5874
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-array-callback-reference.md
5875
+ */
5876
+ 'unicorn/no-array-callback-reference'?: Linter.RuleEntry<UnicornNoArrayCallbackReference>;
5877
+ /**
5878
+ * Disallow using reference values as `Array#fill()` values.
5879
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-array-fill-with-reference-type.md
5854
5880
  */
5855
- 'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>;
5881
+ 'unicorn/no-array-fill-with-reference-type'?: Linter.RuleEntry<[]>;
5856
5882
  /**
5857
5883
  * Prefer `for…of` over the `forEach` method.
5858
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-for-each.md
5884
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-array-for-each.md
5859
5885
  */
5860
5886
  'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>;
5887
+ /**
5888
+ * Disallow `.fill()` after `Array.from({length: …})`.
5889
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-array-from-fill.md
5890
+ */
5891
+ 'unicorn/no-array-from-fill'?: Linter.RuleEntry<[]>;
5861
5892
  /**
5862
5893
  * Disallow using the `this` argument in array methods.
5863
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-method-this-argument.md
5894
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-array-method-this-argument.md
5864
5895
  */
5865
5896
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
5866
5897
  /**
5867
5898
  * Replaced by `unicorn/prefer-single-call` which covers more cases.
5868
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
5899
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/deleted-and-deprecated-rules.md#no-array-push-push
5869
5900
  * @deprecated
5870
5901
  */
5871
5902
  'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
5872
5903
  /**
5873
5904
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
5874
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-reduce.md
5905
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-array-reduce.md
5875
5906
  */
5876
5907
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
5877
5908
  /**
5878
5909
  * Prefer `Array#toReversed()` over `Array#reverse()`.
5879
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-reverse.md
5910
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-array-reverse.md
5880
5911
  */
5881
5912
  'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
5882
5913
  /**
5883
5914
  * Prefer `Array#toSorted()` over `Array#sort()`.
5884
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-sort.md
5915
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-array-sort.md
5885
5916
  */
5886
5917
  'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>;
5887
5918
  /**
5888
5919
  * Disallow member access from await expression.
5889
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-await-expression-member.md
5920
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-await-expression-member.md
5890
5921
  */
5891
5922
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
5892
5923
  /**
5893
5924
  * Disallow using `await` in `Promise` method parameters.
5894
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-await-in-promise-methods.md
5925
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-await-in-promise-methods.md
5895
5926
  */
5896
5927
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
5928
+ /**
5929
+ * Disallow unnecessary `Blob` to `File` conversion.
5930
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-blob-to-file.md
5931
+ */
5932
+ 'unicorn/no-blob-to-file'?: Linter.RuleEntry<[]>;
5933
+ /**
5934
+ * Prefer drawing canvases directly instead of converting them to images.
5935
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-canvas-to-image.md
5936
+ */
5937
+ 'unicorn/no-canvas-to-image'?: Linter.RuleEntry<[]>;
5938
+ /**
5939
+ * Disallow confusing uses of `Array#{splice,toSpliced}()`.
5940
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-confusing-array-splice.md
5941
+ */
5942
+ 'unicorn/no-confusing-array-splice'?: Linter.RuleEntry<[]>;
5897
5943
  /**
5898
5944
  * Do not use leading/trailing space between `console.log` parameters.
5899
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-console-spaces.md
5945
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-console-spaces.md
5900
5946
  */
5901
5947
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
5902
5948
  /**
5903
5949
  * Do not use `document.cookie` directly.
5904
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-document-cookie.md
5950
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-document-cookie.md
5905
5951
  */
5906
5952
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
5953
+ /**
5954
+ * Disallow duplicate values in `Set` constructor array literals.
5955
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-duplicate-set-values.md
5956
+ */
5957
+ 'unicorn/no-duplicate-set-values'?: Linter.RuleEntry<[]>;
5907
5958
  /**
5908
5959
  * Disallow empty files.
5909
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-empty-file.md
5960
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-empty-file.md
5910
5961
  */
5911
- 'unicorn/no-empty-file'?: Linter.RuleEntry<[]>;
5962
+ 'unicorn/no-empty-file'?: Linter.RuleEntry<UnicornNoEmptyFile>;
5963
+ /**
5964
+ * Disallow exports in scripts.
5965
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-exports-in-scripts.md
5966
+ */
5967
+ 'unicorn/no-exports-in-scripts'?: Linter.RuleEntry<[]>;
5912
5968
  /**
5913
5969
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
5914
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-for-loop.md
5970
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-for-loop.md
5915
5971
  */
5916
5972
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
5917
5973
  /**
5918
5974
  * Enforce the use of Unicode escapes instead of hexadecimal escapes.
5919
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-hex-escape.md
5975
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-hex-escape.md
5920
5976
  */
5921
5977
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
5922
5978
  /**
5923
5979
  * Disallow immediate mutation after variable assignment.
5924
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-immediate-mutation.md
5980
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-immediate-mutation.md
5925
5981
  */
5926
5982
  'unicorn/no-immediate-mutation'?: Linter.RuleEntry<[]>;
5983
+ /**
5984
+ * Disallow incorrect `querySelector()` and `querySelectorAll()` usage.
5985
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-incorrect-query-selector.md
5986
+ */
5987
+ 'unicorn/no-incorrect-query-selector'?: Linter.RuleEntry<[]>;
5927
5988
  /**
5928
5989
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
5929
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
5990
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/deleted-and-deprecated-rules.md#no-instanceof-array
5930
5991
  * @deprecated
5931
5992
  */
5932
5993
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
5933
5994
  /**
5934
5995
  * Disallow `instanceof` with built-in objects
5935
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-instanceof-builtins.md
5996
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-instanceof-builtins.md
5936
5997
  */
5937
5998
  'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
5938
5999
  /**
5939
6000
  * Disallow invalid options in `fetch()` and `new Request()`.
5940
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-invalid-fetch-options.md
6001
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-invalid-fetch-options.md
5941
6002
  */
5942
6003
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
6004
+ /**
6005
+ * Disallow invalid `accept` values on file inputs.
6006
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-invalid-file-input-accept.md
6007
+ */
6008
+ 'unicorn/no-invalid-file-input-accept'?: Linter.RuleEntry<[]>;
5943
6009
  /**
5944
6010
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
5945
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-invalid-remove-event-listener.md
6011
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-invalid-remove-event-listener.md
5946
6012
  */
5947
6013
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
5948
6014
  /**
5949
6015
  * Disallow identifiers starting with `new` or `class`.
5950
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-keyword-prefix.md
6016
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-keyword-prefix.md
5951
6017
  */
5952
6018
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
6019
+ /**
6020
+ * Disallow accessing `event.currentTarget` after the synchronous event dispatch has finished.
6021
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-late-current-target-access.md
6022
+ */
6023
+ 'unicorn/no-late-current-target-access'?: Linter.RuleEntry<[]>;
5953
6024
  /**
5954
6025
  * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
5955
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
6026
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
5956
6027
  * @deprecated
5957
6028
  */
5958
6029
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
5959
6030
  /**
5960
6031
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
5961
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-lonely-if.md
6032
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-lonely-if.md
5962
6033
  */
5963
6034
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
5964
6035
  /**
5965
6036
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
5966
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-magic-array-flat-depth.md
6037
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-magic-array-flat-depth.md
5967
6038
  */
5968
6039
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
6040
+ /**
6041
+ * Disallow manually wrapped comments.
6042
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-manually-wrapped-comments.md
6043
+ */
6044
+ 'unicorn/no-manually-wrapped-comments'?: Linter.RuleEntry<[]>;
5969
6045
  /**
5970
6046
  * Disallow named usage of default import and export.
5971
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-named-default.md
6047
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-named-default.md
5972
6048
  */
5973
6049
  'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
5974
6050
  /**
5975
6051
  * Disallow negated conditions.
5976
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-negated-condition.md
6052
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-negated-condition.md
5977
6053
  */
5978
6054
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
5979
6055
  /**
5980
6056
  * Disallow negated expression in equality check.
5981
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-negation-in-equality-check.md
6057
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-negation-in-equality-check.md
5982
6058
  */
5983
6059
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
5984
6060
  /**
5985
6061
  * Disallow nested ternary expressions.
5986
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-nested-ternary.md
6062
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-nested-ternary.md
5987
6063
  */
5988
6064
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
5989
6065
  /**
5990
6066
  * Disallow `new Array()`.
5991
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-new-array.md
6067
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-new-array.md
5992
6068
  */
5993
6069
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
5994
6070
  /**
5995
6071
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
5996
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-new-buffer.md
6072
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-new-buffer.md
5997
6073
  */
5998
6074
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
5999
6075
  /**
6000
6076
  * Disallow the use of the `null` literal.
6001
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-null.md
6077
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-null.md
6002
6078
  */
6003
6079
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
6004
6080
  /**
6005
6081
  * Disallow the use of objects as default parameters.
6006
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-object-as-default-parameter.md
6082
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-object-as-default-parameter.md
6007
6083
  */
6008
6084
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
6009
6085
  /**
6010
6086
  * Disallow `process.exit()`.
6011
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-process-exit.md
6087
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-process-exit.md
6012
6088
  */
6013
6089
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
6014
6090
  /**
6015
6091
  * Disallow passing single-element arrays to `Promise` methods.
6016
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-single-promise-in-promise-methods.md
6092
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-single-promise-in-promise-methods.md
6017
6093
  */
6018
6094
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
6019
6095
  /**
6020
6096
  * Disallow classes that only have static members.
6021
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-static-only-class.md
6097
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-static-only-class.md
6022
6098
  */
6023
6099
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
6024
6100
  /**
6025
6101
  * Disallow `then` property.
6026
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-thenable.md
6102
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-thenable.md
6027
6103
  */
6028
6104
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
6029
6105
  /**
6030
6106
  * Disallow assigning `this` to a variable.
6031
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-this-assignment.md
6107
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-this-assignment.md
6032
6108
  */
6033
6109
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
6110
+ /**
6111
+ * Disallow `this` outside of classes.
6112
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-this-outside-of-class.md
6113
+ */
6114
+ 'unicorn/no-this-outside-of-class'?: Linter.RuleEntry<[]>;
6034
6115
  /**
6035
6116
  * Disallow comparing `undefined` using `typeof`.
6036
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-typeof-undefined.md
6117
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-typeof-undefined.md
6037
6118
  */
6038
6119
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
6039
6120
  /**
6040
6121
  * Disallow using `1` as the `depth` argument of `Array#flat()`.
6041
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-array-flat-depth.md
6122
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-unnecessary-array-flat-depth.md
6042
6123
  */
6043
6124
  'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
6044
6125
  /**
6045
6126
  * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
6046
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-array-splice-count.md
6127
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-unnecessary-array-splice-count.md
6047
6128
  */
6048
6129
  'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
6049
6130
  /**
6050
6131
  * Disallow awaiting non-promise values.
6051
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-await.md
6132
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-unnecessary-await.md
6052
6133
  */
6053
6134
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
6135
+ /**
6136
+ * Disallow unnecessary nested ternary expressions.
6137
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-unnecessary-nested-ternary.md
6138
+ */
6139
+ 'unicorn/no-unnecessary-nested-ternary'?: Linter.RuleEntry<[]>;
6054
6140
  /**
6055
6141
  * Enforce the use of built-in methods instead of unnecessary polyfills.
6056
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-polyfills.md
6142
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-unnecessary-polyfills.md
6057
6143
  */
6058
6144
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
6059
6145
  /**
6060
6146
  * Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
6061
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-slice-end.md
6147
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-unnecessary-slice-end.md
6062
6148
  */
6063
6149
  'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
6064
6150
  /**
6065
6151
  * Disallow unreadable array destructuring.
6066
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unreadable-array-destructuring.md
6152
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-unreadable-array-destructuring.md
6067
6153
  */
6068
6154
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>;
6069
6155
  /**
6070
6156
  * Disallow unreadable IIFEs.
6071
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unreadable-iife.md
6157
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-unreadable-iife.md
6072
6158
  */
6073
6159
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
6160
+ /**
6161
+ * Disallow ignoring the return value of selected array methods.
6162
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-unused-array-method-return.md
6163
+ */
6164
+ 'unicorn/no-unused-array-method-return'?: Linter.RuleEntry<[]>;
6074
6165
  /**
6075
6166
  * Disallow unused object properties.
6076
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unused-properties.md
6167
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-unused-properties.md
6077
6168
  */
6078
6169
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
6079
6170
  /**
6080
6171
  * Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
6081
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-collection-argument.md
6172
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-useless-collection-argument.md
6082
6173
  */
6083
6174
  'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>;
6084
6175
  /**
6085
6176
  * Disallow unnecessary `Error.captureStackTrace(…)`.
6086
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-error-capture-stack-trace.md
6177
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-useless-error-capture-stack-trace.md
6087
6178
  */
6088
6179
  'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
6089
6180
  /**
6090
6181
  * Disallow useless fallback when spreading in object literals.
6091
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-fallback-in-spread.md
6182
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-useless-fallback-in-spread.md
6092
6183
  */
6093
6184
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
6094
6185
  /**
6095
6186
  * Disallow unnecessary `.toArray()` on iterators.
6096
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-iterator-to-array.md
6187
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-useless-iterator-to-array.md
6097
6188
  */
6098
6189
  'unicorn/no-useless-iterator-to-array'?: Linter.RuleEntry<[]>;
6099
6190
  /**
6100
6191
  * Disallow useless array length check.
6101
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-length-check.md
6192
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-useless-length-check.md
6102
6193
  */
6103
6194
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
6104
6195
  /**
6105
6196
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
6106
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-promise-resolve-reject.md
6197
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-useless-promise-resolve-reject.md
6107
6198
  */
6108
6199
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
6109
6200
  /**
6110
6201
  * Disallow unnecessary spread.
6111
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-spread.md
6202
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-useless-spread.md
6112
6203
  */
6113
6204
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
6114
6205
  /**
6115
6206
  * Disallow useless case in switch statements.
6116
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-switch-case.md
6207
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-useless-switch-case.md
6117
6208
  */
6118
6209
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
6119
6210
  /**
6120
6211
  * Disallow useless `undefined`.
6121
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-undefined.md
6212
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-useless-undefined.md
6122
6213
  */
6123
6214
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
6124
6215
  /**
6125
6216
  * Disallow number literals with zero fractions or dangling dots.
6126
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-zero-fractions.md
6217
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-zero-fractions.md
6127
6218
  */
6128
6219
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
6129
6220
  /**
6130
6221
  * Enforce proper case for numeric literals.
6131
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/number-literal-case.md
6222
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/number-literal-case.md
6132
6223
  */
6133
6224
  'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
6134
6225
  /**
6135
6226
  * Enforce the style of numeric separators by correctly grouping digits.
6136
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/numeric-separators-style.md
6227
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/numeric-separators-style.md
6137
6228
  */
6138
6229
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
6139
6230
  /**
6140
6231
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
6141
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-add-event-listener.md
6232
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-add-event-listener.md
6142
6233
  */
6143
6234
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
6144
6235
  /**
6145
6236
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
6146
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-find.md
6237
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-array-find.md
6147
6238
  */
6148
6239
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
6149
6240
  /**
6150
6241
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
6151
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-flat.md
6242
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-array-flat.md
6152
6243
  */
6153
6244
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
6154
6245
  /**
6155
6246
  * Prefer `.flatMap(…)` over `.map(…).flat()`.
6156
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-flat-map.md
6247
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-array-flat-map.md
6157
6248
  */
6158
6249
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
6159
6250
  /**
6160
6251
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
6161
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-index-of.md
6252
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-array-index-of.md
6162
6253
  */
6163
6254
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
6255
+ /**
6256
+ * Prefer last-oriented array methods over `Array#reverse()` or `Array#toReversed()` followed by a method.
6257
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-array-last-methods.md
6258
+ */
6259
+ 'unicorn/prefer-array-last-methods'?: Linter.RuleEntry<[]>;
6164
6260
  /**
6165
6261
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
6166
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-some.md
6262
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-array-some.md
6167
6263
  */
6168
6264
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
6169
6265
  /**
6170
6266
  * Prefer `.at()` method for index access and `String#charAt()`.
6171
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-at.md
6267
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-at.md
6172
6268
  */
6173
6269
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
6174
6270
  /**
6175
6271
  * Prefer `BigInt` literals over the constructor.
6176
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-bigint-literals.md
6272
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-bigint-literals.md
6177
6273
  */
6178
6274
  'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>;
6179
6275
  /**
6180
6276
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
6181
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-blob-reading-methods.md
6277
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-blob-reading-methods.md
6182
6278
  */
6183
6279
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
6184
6280
  /**
6185
6281
  * Prefer class field declarations over `this` assignments in constructors.
6186
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-class-fields.md
6282
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-class-fields.md
6187
6283
  */
6188
6284
  'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
6189
6285
  /**
6190
6286
  * Prefer using `Element#classList.toggle()` to toggle class names.
6191
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-classlist-toggle.md
6287
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-classlist-toggle.md
6192
6288
  */
6193
6289
  'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>;
6194
6290
  /**
6195
6291
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
6196
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-code-point.md
6292
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-code-point.md
6197
6293
  */
6198
6294
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
6199
6295
  /**
6200
6296
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
6201
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-date-now.md
6297
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-date-now.md
6202
6298
  */
6203
6299
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
6204
6300
  /**
6205
6301
  * Prefer default parameters over reassignment.
6206
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-default-parameters.md
6302
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-default-parameters.md
6207
6303
  */
6208
6304
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
6209
6305
  /**
6210
- * Prefer `Node#append()` over `Node#appendChild()`.
6211
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-dom-node-append.md
6306
+ * Prefer `Element#append()` over `Node#appendChild()`.
6307
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-dom-node-append.md
6212
6308
  */
6213
6309
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
6214
6310
  /**
6215
- * Prefer using `.dataset` on DOM elements over calling attribute methods.
6216
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-dom-node-dataset.md
6311
+ * Renamed to `unicorn/dom-node-dataset`.
6312
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
6313
+ * @deprecated
6217
6314
  */
6218
6315
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
6219
6316
  /**
6220
6317
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
6221
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-dom-node-remove.md
6318
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-dom-node-remove.md
6222
6319
  */
6223
6320
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
6224
6321
  /**
6225
6322
  * Prefer `.textContent` over `.innerText`.
6226
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-dom-node-text-content.md
6323
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-dom-node-text-content.md
6227
6324
  */
6228
6325
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
6229
6326
  /**
6230
6327
  * Prefer `EventTarget` over `EventEmitter`.
6231
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-event-target.md
6328
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-event-target.md
6232
6329
  */
6233
6330
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
6234
6331
  /**
6235
6332
  * Prefer `export…from` when re-exporting.
6236
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-export-from.md
6333
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-export-from.md
6237
6334
  */
6238
6335
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
6336
+ /**
6337
+ * Prefer `.getOrInsertComputed()` when the default value has side effects.
6338
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-get-or-insert-computed.md
6339
+ */
6340
+ 'unicorn/prefer-get-or-insert-computed'?: Linter.RuleEntry<[]>;
6239
6341
  /**
6240
6342
  * Prefer `globalThis` over `window`, `self`, and `global`.
6241
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-global-this.md
6343
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-global-this.md
6242
6344
  */
6243
6345
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
6346
+ /**
6347
+ * Prefer HTTPS over HTTP.
6348
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-https.md
6349
+ */
6350
+ 'unicorn/prefer-https'?: Linter.RuleEntry<[]>;
6244
6351
  /**
6245
6352
  * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
6246
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-import-meta-properties.md
6353
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-import-meta-properties.md
6247
6354
  */
6248
6355
  'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
6249
6356
  /**
6250
6357
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
6251
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-includes.md
6358
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-includes.md
6252
6359
  */
6253
6360
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
6254
6361
  /**
6255
- * Prefer reading a JSON file as a buffer.
6256
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-json-parse-buffer.md
6362
+ * Prefer `.includes()` over repeated equality comparisons.
6363
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-includes-over-repeated-comparisons.md
6364
+ */
6365
+ 'unicorn/prefer-includes-over-repeated-comparisons'?: Linter.RuleEntry<UnicornPreferIncludesOverRepeatedComparisons>;
6366
+ /**
6367
+ * Prefer `Iterator.concat(…)` over temporary spread arrays.
6368
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-iterator-concat.md
6369
+ */
6370
+ 'unicorn/prefer-iterator-concat'?: Linter.RuleEntry<[]>;
6371
+ /**
6372
+ * Prefer moving `.toArray()` to the end of iterator helper chains.
6373
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-iterator-to-array-at-end.md
6374
+ */
6375
+ 'unicorn/prefer-iterator-to-array-at-end'?: Linter.RuleEntry<[]>;
6376
+ /**
6377
+ * Renamed to `unicorn/consistent-json-file-read`.
6378
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
6379
+ * @deprecated
6257
6380
  */
6258
6381
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
6259
6382
  /**
6260
- * Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
6261
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-keyboard-event-key.md
6383
+ * Prefer `KeyboardEvent#key` over deprecated keyboard event properties.
6384
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-keyboard-event-key.md
6262
6385
  */
6263
6386
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
6264
6387
  /**
6265
6388
  * Prefer using a logical operator over a ternary.
6266
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-logical-operator-over-ternary.md
6389
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-logical-operator-over-ternary.md
6267
6390
  */
6268
6391
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
6392
+ /**
6393
+ * Prefer `Math.abs()` over manual absolute value expressions and symmetric range checks.
6394
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-math-abs.md
6395
+ */
6396
+ 'unicorn/prefer-math-abs'?: Linter.RuleEntry<[]>;
6269
6397
  /**
6270
6398
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
6271
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-math-min-max.md
6399
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-math-min-max.md
6272
6400
  */
6273
6401
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
6274
6402
  /**
6275
6403
  * Enforce the use of `Math.trunc` instead of bitwise operators.
6276
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-math-trunc.md
6404
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-math-trunc.md
6277
6405
  */
6278
6406
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
6279
6407
  /**
6280
6408
  * Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
6281
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-modern-dom-apis.md
6409
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-modern-dom-apis.md
6282
6410
  */
6283
6411
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
6284
6412
  /**
6285
6413
  * Prefer modern `Math` APIs over legacy patterns.
6286
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-modern-math-apis.md
6414
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-modern-math-apis.md
6287
6415
  */
6288
6416
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
6289
6417
  /**
6290
6418
  * Prefer JavaScript modules (ESM) over CommonJS.
6291
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-module.md
6419
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-module.md
6292
6420
  */
6293
6421
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
6294
6422
  /**
6295
6423
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
6296
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-native-coercion-functions.md
6424
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-native-coercion-functions.md
6297
6425
  */
6298
6426
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
6299
6427
  /**
6300
6428
  * Prefer negative index over `.length - index` when possible.
6301
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-negative-index.md
6429
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-negative-index.md
6302
6430
  */
6303
6431
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
6304
6432
  /**
6305
6433
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
6306
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-node-protocol.md
6434
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-node-protocol.md
6307
6435
  */
6308
6436
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
6309
6437
  /**
6310
6438
  * Prefer `Number` static properties over global ones.
6311
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-number-properties.md
6439
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-number-properties.md
6312
6440
  */
6313
6441
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
6314
6442
  /**
6315
6443
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
6316
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-object-from-entries.md
6444
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-object-from-entries.md
6317
6445
  */
6318
6446
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
6319
6447
  /**
6320
6448
  * Prefer omitting the `catch` binding parameter.
6321
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-optional-catch-binding.md
6449
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-optional-catch-binding.md
6322
6450
  */
6323
6451
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
6324
6452
  /**
6325
6453
  * Prefer borrowing methods from the prototype instead of the instance.
6326
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-prototype-methods.md
6454
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-prototype-methods.md
6327
6455
  */
6328
6456
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
6329
6457
  /**
6330
- * Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
6331
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-query-selector.md
6458
+ * Prefer `.querySelector()` and `.querySelectorAll()` over older DOM query methods.
6459
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-query-selector.md
6332
6460
  */
6333
- 'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>;
6461
+ 'unicorn/prefer-query-selector'?: Linter.RuleEntry<UnicornPreferQuerySelector>;
6462
+ /**
6463
+ * Prefer `queueMicrotask()` over `process.nextTick()`, `setImmediate()`, and `setTimeout(…, 0)`.
6464
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-queue-microtask.md
6465
+ */
6466
+ 'unicorn/prefer-queue-microtask'?: Linter.RuleEntry<UnicornPreferQueueMicrotask>;
6334
6467
  /**
6335
6468
  * Prefer `Reflect.apply()` over `Function#apply()`.
6336
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-reflect-apply.md
6469
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-reflect-apply.md
6337
6470
  */
6338
6471
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
6339
6472
  /**
6340
6473
  * Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
6341
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-regexp-test.md
6474
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-regexp-test.md
6342
6475
  */
6343
6476
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
6344
6477
  /**
6345
6478
  * Prefer `Response.json()` over `new Response(JSON.stringify())`.
6346
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-response-static-json.md
6479
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-response-static-json.md
6347
6480
  */
6348
6481
  'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>;
6349
6482
  /**
6350
6483
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
6351
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-set-has.md
6484
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-set-has.md
6352
6485
  */
6353
- 'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>;
6486
+ 'unicorn/prefer-set-has'?: Linter.RuleEntry<UnicornPreferSetHas>;
6354
6487
  /**
6355
6488
  * Prefer using `Set#size` instead of `Array#length`.
6356
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-set-size.md
6489
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-set-size.md
6357
6490
  */
6358
6491
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
6359
6492
  /**
6360
6493
  * Prefer simple conditions first in logical expressions.
6361
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-simple-condition-first.md
6494
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-simple-condition-first.md
6362
6495
  */
6363
6496
  'unicorn/prefer-simple-condition-first'?: Linter.RuleEntry<[]>;
6364
6497
  /**
6365
- * Enforce combining multiple `Array#push()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
6366
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-single-call.md
6498
+ * Enforce combining multiple `Array#{push,unshift}()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
6499
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-single-call.md
6367
6500
  */
6368
6501
  'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
6502
+ /**
6503
+ * Prefer `String#split()` with a limit.
6504
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-split-limit.md
6505
+ */
6506
+ 'unicorn/prefer-split-limit'?: Linter.RuleEntry<[]>;
6369
6507
  /**
6370
6508
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
6371
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-spread.md
6509
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-spread.md
6372
6510
  */
6373
6511
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
6512
+ /**
6513
+ * Prefer `String#matchAll()` over `RegExp#exec()` loops.
6514
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-string-match-all.md
6515
+ */
6516
+ 'unicorn/prefer-string-match-all'?: Linter.RuleEntry<[]>;
6517
+ /**
6518
+ * Prefer `String#padStart()` and `String#padEnd()` over manual string padding.
6519
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-string-pad-start-end.md
6520
+ */
6521
+ 'unicorn/prefer-string-pad-start-end'?: Linter.RuleEntry<[]>;
6374
6522
  /**
6375
6523
  * Prefer using the `String.raw` tag to avoid escaping `\`.
6376
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-raw.md
6524
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-string-raw.md
6377
6525
  */
6378
6526
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
6379
6527
  /**
6380
- * Prefer `String#replaceAll()` over regex searches with the global flag.
6381
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-replace-all.md
6528
+ * Prefer `String#repeat()` for repeated whitespace.
6529
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-string-repeat.md
6530
+ */
6531
+ 'unicorn/prefer-string-repeat'?: Linter.RuleEntry<UnicornPreferStringRepeat>;
6532
+ /**
6533
+ * Prefer `String#replaceAll()` over regex searches with the global flag and `String#split().join()`.
6534
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-string-replace-all.md
6382
6535
  */
6383
6536
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
6384
6537
  /**
6385
6538
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
6386
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-slice.md
6539
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-string-slice.md
6387
6540
  */
6388
6541
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
6389
6542
  /**
6390
6543
  * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
6391
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-starts-ends-with.md
6544
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-string-starts-ends-with.md
6392
6545
  */
6393
6546
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
6394
6547
  /**
6395
6548
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
6396
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-trim-start-end.md
6549
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-string-trim-start-end.md
6397
6550
  */
6398
6551
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
6399
6552
  /**
6400
6553
  * Prefer using `structuredClone` to create a deep clone.
6401
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-structured-clone.md
6554
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-structured-clone.md
6402
6555
  */
6403
6556
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
6404
6557
  /**
6405
6558
  * Prefer `switch` over multiple `else-if`.
6406
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-switch.md
6559
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-switch.md
6407
6560
  */
6408
6561
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
6409
6562
  /**
6410
6563
  * Prefer ternary expressions over simple `if-else` statements.
6411
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-ternary.md
6564
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-ternary.md
6412
6565
  */
6413
6566
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
6414
6567
  /**
6415
6568
  * Prefer top-level await over top-level promises and async function calls.
6416
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-top-level-await.md
6569
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-top-level-await.md
6417
6570
  */
6418
6571
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
6419
6572
  /**
6420
6573
  * Enforce throwing `TypeError` in type checking conditions.
6421
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-type-error.md
6574
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-type-error.md
6422
6575
  */
6423
6576
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
6424
6577
  /**
6425
6578
  * Prevent abbreviations.
6426
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prevent-abbreviations.md
6579
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prevent-abbreviations.md
6427
6580
  */
6428
6581
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>;
6429
6582
  /**
6430
6583
  * Enforce consistent relative URL style.
6431
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/relative-url-style.md
6584
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/relative-url-style.md
6432
6585
  */
6433
6586
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
6434
6587
  /**
6435
6588
  * Enforce using the separator argument with `Array#join()`.
6436
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-array-join-separator.md
6589
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/require-array-join-separator.md
6437
6590
  */
6438
6591
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
6592
+ /**
6593
+ * Require `CSS.escape()` for interpolated values in CSS selectors.
6594
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/require-css-escape.md
6595
+ */
6596
+ 'unicorn/require-css-escape'?: Linter.RuleEntry<UnicornRequireCssEscape>;
6439
6597
  /**
6440
6598
  * Require non-empty module attributes for imports and exports
6441
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-module-attributes.md
6599
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/require-module-attributes.md
6442
6600
  */
6443
6601
  'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>;
6444
6602
  /**
6445
6603
  * Require non-empty specifier list in import and export statements.
6446
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-module-specifiers.md
6604
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/require-module-specifiers.md
6447
6605
  */
6448
6606
  'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
6449
6607
  /**
6450
6608
  * Enforce using the digits argument with `Number#toFixed()`.
6451
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-number-to-fixed-digits-argument.md
6609
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/require-number-to-fixed-digits-argument.md
6452
6610
  */
6453
6611
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
6612
+ /**
6613
+ * Require passive event listeners for high-frequency events.
6614
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/require-passive-events.md
6615
+ */
6616
+ 'unicorn/require-passive-events'?: Linter.RuleEntry<[]>;
6454
6617
  /**
6455
6618
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
6456
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-post-message-target-origin.md
6619
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/require-post-message-target-origin.md
6457
6620
  */
6458
6621
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
6459
6622
  /**
6460
6623
  * Enforce better string content.
6461
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/string-content.md
6624
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/string-content.md
6462
6625
  */
6463
6626
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
6464
6627
  /**
6465
6628
  * Enforce consistent brace style for `case` clauses.
6466
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/switch-case-braces.md
6629
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/switch-case-braces.md
6467
6630
  */
6468
6631
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
6469
6632
  /**
6470
6633
  * Enforce consistent `break`/`return`/`continue`/`throw` position in `case` clauses.
6471
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/switch-case-break-position.md
6634
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/switch-case-break-position.md
6472
6635
  */
6473
6636
  'unicorn/switch-case-break-position'?: Linter.RuleEntry<[]>;
6474
6637
  /**
6475
6638
  * Fix whitespace-insensitive template indentation.
6476
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/template-indent.md
6639
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/template-indent.md
6477
6640
  */
6478
6641
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
6479
6642
  /**
6480
6643
  * Enforce consistent case for text encoding identifiers.
6481
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/text-encoding-identifier-case.md
6644
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/text-encoding-identifier-case.md
6482
6645
  */
6483
6646
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
6484
6647
  /**
6485
6648
  * Require `new` when creating an error.
6486
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/throw-new-error.md
6649
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/throw-new-error.md
6487
6650
  */
6488
6651
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
6652
+ /**
6653
+ * Limit the complexity of `try` blocks.
6654
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/try-complexity.md
6655
+ */
6656
+ 'unicorn/try-complexity'?: Linter.RuleEntry<UnicornTryComplexity>;
6489
6657
  /**
6490
6658
  * Disallow unused variables
6491
6659
  * @see https://github.com/sweepline/eslint-plugin-unused-imports/blob/master/docs/rules/no-unused-imports.md
@@ -16070,23 +16238,40 @@ type TsUnifiedSignatures = [] | [{
16070
16238
  ignoreDifferentlyNamedParameters?: boolean;
16071
16239
  ignoreOverloadsWithDifferentJSDoc?: boolean;
16072
16240
  }]; // ----- unicode-bom -----
16073
- type UnicodeBom = [] | [("always" | "never")]; // ----- unicorn/better-regex -----
16074
- type UnicornBetterRegex = [] | [{
16075
- sortCharacterClasses?: boolean;
16076
- }]; // ----- unicorn/catch-error-name -----
16241
+ type UnicodeBom = [] | [("always" | "never")]; // ----- unicorn/catch-error-name -----
16077
16242
  type UnicornCatchErrorName = [] | [{
16078
16243
  name?: string;
16079
16244
  ignore?: unknown[];
16080
- }]; // ----- unicorn/consistent-function-scoping -----
16245
+ }]; // ----- unicorn/consistent-compound-words -----
16246
+ type UnicornConsistentCompoundWords = [] | [{
16247
+ checkProperties?: boolean;
16248
+ checkVariables?: boolean;
16249
+ checkDefaultAndNamespaceImports?: (boolean | "internal");
16250
+ checkShorthandImports?: (boolean | "internal");
16251
+ checkShorthandProperties?: boolean;
16252
+ extendDefaultReplacements?: boolean;
16253
+ replacements?: _UnicornConsistentCompoundWords_Replacements;
16254
+ allowList?: _UnicornConsistentCompoundWords_TrueObject;
16255
+ }];
16256
+ interface _UnicornConsistentCompoundWords_Replacements {
16257
+ [k: string]: (false | string) | undefined;
16258
+ }
16259
+ interface _UnicornConsistentCompoundWords_TrueObject {
16260
+ [k: string]: true | undefined;
16261
+ } // ----- unicorn/consistent-function-scoping -----
16081
16262
  type UnicornConsistentFunctionScoping = [] | [{
16082
16263
  checkArrowFunctions?: boolean;
16264
+ }]; // ----- unicorn/consistent-json-file-read -----
16265
+ type UnicornConsistentJsonFileRead = [] | [("string" | "buffer")]; // ----- unicorn/dom-node-dataset -----
16266
+ type UnicornDomNodeDataset = [] | [{
16267
+ preferAttributes?: boolean;
16083
16268
  }]; // ----- unicorn/escape-case -----
16084
16269
  type UnicornEscapeCase = [] | [("uppercase" | "lowercase")]; // ----- unicorn/expiring-todo-comments -----
16085
16270
  type UnicornExpiringTodoComments = [] | [{
16086
16271
  terms?: string[];
16087
16272
  ignore?: unknown[];
16088
- ignoreDates?: boolean;
16089
- ignoreDatesOnPullRequests?: boolean;
16273
+ checkDates?: boolean;
16274
+ checkDatesOnPullRequests?: boolean;
16090
16275
  allowWarningComments?: boolean;
16091
16276
  date?: string;
16092
16277
  }]; // ----- unicorn/explicit-length-check -----
@@ -16097,6 +16282,7 @@ type UnicornFilenameCase = [] | [({
16097
16282
  case?: ("camelCase" | "snakeCase" | "kebabCase" | "pascalCase");
16098
16283
  ignore?: unknown[];
16099
16284
  multipleFileExtensions?: boolean;
16285
+ checkDirectories?: boolean;
16100
16286
  } | {
16101
16287
  cases?: {
16102
16288
  camelCase?: boolean;
@@ -16106,6 +16292,7 @@ type UnicornFilenameCase = [] | [({
16106
16292
  };
16107
16293
  ignore?: unknown[];
16108
16294
  multipleFileExtensions?: boolean;
16295
+ checkDirectories?: boolean;
16109
16296
  })]; // ----- unicorn/import-style -----
16110
16297
  type UnicornImportStyle = [] | [{
16111
16298
  checkImport?: boolean;
@@ -16129,6 +16316,9 @@ type UnicornIsolatedFunctions = [] | [{
16129
16316
  functions?: string[];
16130
16317
  selectors?: string[];
16131
16318
  comments?: string[];
16319
+ }]; // ----- unicorn/no-array-callback-reference -----
16320
+ type UnicornNoArrayCallbackReference = [] | [{
16321
+ ignore?: string[];
16132
16322
  }]; // ----- unicorn/no-array-reduce -----
16133
16323
  type UnicornNoArrayReduce = [] | [{
16134
16324
  allowSimpleOperations?: boolean;
@@ -16138,6 +16328,9 @@ type UnicornNoArrayReverse = [] | [{
16138
16328
  }]; // ----- unicorn/no-array-sort -----
16139
16329
  type UnicornNoArraySort = [] | [{
16140
16330
  allowExpressionStatement?: boolean;
16331
+ }]; // ----- unicorn/no-empty-file -----
16332
+ type UnicornNoEmptyFile = [] | [{
16333
+ allowComments?: boolean;
16141
16334
  }]; // ----- unicorn/no-instanceof-builtins -----
16142
16335
  type UnicornNoInstanceofBuiltins = [] | [{
16143
16336
  useErrorIsError?: boolean;
@@ -16151,13 +16344,14 @@ type UnicornNoKeywordPrefix = [] | [{
16151
16344
  onlyCamelCase?: boolean;
16152
16345
  }]; // ----- unicorn/no-null -----
16153
16346
  type UnicornNoNull = [] | [{
16347
+ checkArguments?: boolean;
16154
16348
  checkStrictEquality?: boolean;
16155
16349
  }]; // ----- unicorn/no-typeof-undefined -----
16156
16350
  type UnicornNoTypeofUndefined = [] | [{
16157
16351
  checkGlobalVariables?: boolean;
16158
16352
  }]; // ----- unicorn/no-unnecessary-polyfills -----
16159
16353
  type UnicornNoUnnecessaryPolyfills = [] | [{
16160
- targets: (string | unknown[] | {
16354
+ targets?: (string | unknown[] | {
16161
16355
  [k: string]: unknown | undefined;
16162
16356
  });
16163
16357
  }]; // ----- unicorn/no-useless-undefined -----
@@ -16188,6 +16382,7 @@ type UnicornNumericSeparatorsStyle = [] | [{
16188
16382
  onlyIfContainsSeparator?: boolean;
16189
16383
  minimumDigits?: number;
16190
16384
  groupLength?: number;
16385
+ fractionGroupLength?: number;
16191
16386
  };
16192
16387
  onlyIfContainsSeparator?: boolean;
16193
16388
  }]; // ----- unicorn/prefer-add-event-listener -----
@@ -16205,7 +16400,10 @@ type UnicornPreferAt = [] | [{
16205
16400
  checkAllIndexAccess?: boolean;
16206
16401
  }]; // ----- unicorn/prefer-export-from -----
16207
16402
  type UnicornPreferExportFrom = [] | [{
16208
- ignoreUsedVariables?: boolean;
16403
+ checkUsedVariables?: boolean;
16404
+ }]; // ----- unicorn/prefer-includes-over-repeated-comparisons -----
16405
+ type UnicornPreferIncludesOverRepeatedComparisons = [] | [{
16406
+ minimumComparisons?: number;
16209
16407
  }]; // ----- unicorn/prefer-number-properties -----
16210
16408
  type UnicornPreferNumberProperties = [] | [{
16211
16409
  checkInfinity?: boolean;
@@ -16213,9 +16411,22 @@ type UnicornPreferNumberProperties = [] | [{
16213
16411
  }]; // ----- unicorn/prefer-object-from-entries -----
16214
16412
  type UnicornPreferObjectFromEntries = [] | [{
16215
16413
  functions?: unknown[];
16414
+ }]; // ----- unicorn/prefer-query-selector -----
16415
+ type UnicornPreferQuerySelector = [] | [{
16416
+ allowWithVariables?: boolean;
16417
+ }]; // ----- unicorn/prefer-queue-microtask -----
16418
+ type UnicornPreferQueueMicrotask = [] | [{
16419
+ checkSetImmediate?: boolean;
16420
+ checkSetTimeout?: boolean;
16421
+ }]; // ----- unicorn/prefer-set-has -----
16422
+ type UnicornPreferSetHas = [] | [{
16423
+ minimumItems?: number;
16216
16424
  }]; // ----- unicorn/prefer-single-call -----
16217
16425
  type UnicornPreferSingleCall = [] | [{
16218
16426
  ignore?: unknown[];
16427
+ }]; // ----- unicorn/prefer-string-repeat -----
16428
+ type UnicornPreferStringRepeat = [] | [{
16429
+ minimumRepetitions?: number;
16219
16430
  }]; // ----- unicorn/prefer-structured-clone -----
16220
16431
  type UnicornPreferStructuredClone = [] | [{
16221
16432
  functions?: unknown[];
@@ -16248,15 +16459,20 @@ interface _UnicornPreventAbbreviations_BooleanObject {
16248
16459
  interface _UnicornPreventAbbreviations_BooleanObject {
16249
16460
  [k: string]: boolean | undefined;
16250
16461
  } // ----- unicorn/relative-url-style -----
16251
- type UnicornRelativeUrlStyle = [] | [("never" | "always")]; // ----- unicorn/string-content -----
16462
+ type UnicornRelativeUrlStyle = [] | [("never" | "always")]; // ----- unicorn/require-css-escape -----
16463
+ type UnicornRequireCssEscape = [] | [{
16464
+ checkAllSelectors?: boolean;
16465
+ }]; // ----- unicorn/string-content -----
16252
16466
  type UnicornStringContent = [] | [{
16253
16467
  patterns?: {
16254
16468
  [k: string]: (string | {
16255
16469
  suggest: string;
16256
16470
  fix?: boolean;
16471
+ caseSensitive?: boolean;
16257
16472
  message?: string;
16258
16473
  }) | undefined;
16259
16474
  };
16475
+ selectors?: string[];
16260
16476
  }]; // ----- unicorn/switch-case-braces -----
16261
16477
  type UnicornSwitchCaseBraces = [] | [("always" | "avoid")]; // ----- unicorn/template-indent -----
16262
16478
  type UnicornTemplateIndent = [] | [{
@@ -16268,6 +16484,9 @@ type UnicornTemplateIndent = [] | [{
16268
16484
  }]; // ----- unicorn/text-encoding-identifier-case -----
16269
16485
  type UnicornTextEncodingIdentifierCase = [] | [{
16270
16486
  withDash?: boolean;
16487
+ }]; // ----- unicorn/try-complexity -----
16488
+ type UnicornTryComplexity = [] | [{
16489
+ max?: number;
16271
16490
  }]; // ----- unused-imports/no-unused-imports -----
16272
16491
  type UnusedImportsNoUnusedImports = [] | [(("all" | "local") | {
16273
16492
  args?: ("all" | "after-used" | "none");
@@ -16565,9 +16784,6 @@ interface OptionsHasTypeScript {
16565
16784
  interface OptionsHasNextJs {
16566
16785
  nextJs?: boolean;
16567
16786
  }
16568
- interface OptionsHasRegexp {
16569
- regexp?: boolean;
16570
- }
16571
16787
  interface StyleConfig {
16572
16788
  indent?: number;
16573
16789
  semi?: boolean;
@@ -16903,7 +17119,7 @@ declare function toml(options?: OptionsOverrides & OptionsFiles & StyleOptions):
16903
17119
  declare function typescript(options?: OptionsFiles & OptionsOverrides & OptionsTypeScriptWithTypes & OptionsTypeScriptParserOptions): Promise<FlatConfigItem[]>;
16904
17120
  //#endregion
16905
17121
  //#region src/configs/unicorn.d.ts
16906
- declare function unicorn(options?: OptionsHasRegexp & OptionsUnicorn): FlatConfigItem[];
17122
+ declare function unicorn(options?: OptionsUnicorn): FlatConfigItem[];
16907
17123
  //#endregion
16908
17124
  //#region src/configs/yml.d.ts
16909
17125
  declare function yml(options?: OptionsOverrides & OptionsFiles & StyleOptions): Promise<FlatConfigItem[]>;
@@ -17037,4 +17253,4 @@ declare function composer({
17037
17253
  }: ComposerOptions): Promise<FlatConfigItem[]>;
17038
17254
  declare function toArray<T>(value: T | T[]): T[];
17039
17255
  //#endregion
17040
- export { Awaitable, ComposerOptions, type ConfigNames, FlatConfigItem, GLOB_ALL_SRC, GLOB_CSS, GLOB_DIST, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_LOCKFILE, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_NODE_MODULES, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_YAML, HTMLOptions, OptionsConfig, OptionsE18e, OptionsFiles, OptionsHasNextJs, OptionsHasRegexp, OptionsHasTypeScript, OptionsJSX, OptionsJSXA11y, OptionsOverrides, OptionsTailwindCSS, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, OptionsTypescript, OptionsUnicorn, type PrettierOptions, ResolvedOptions, Rules, StyleConfig, StyleOptions, combine, command, comments, composer, deMorgan, defaultPluginRenaming, e18e, ensurePackages, getOverrides, hasNextJs, hasReact, hasTailwind, hasTypeScript, html, ignores, imports, interopDefault, javascript, jsdoc, jsonc, jsx, markdown, ncontiero, nextJs, node, parserPlain, perfectionist, prettier, promise, react, regexp, renamePluginInConfigs, renameRules, resolveSubOptions, restrictedSyntaxJs, sortPackageJson, sortPnpmWorkspace, sortTsconfig, tailwindcss, tanstackQuery, toArray, toml, typescript, unicorn, yml };
17256
+ export { Awaitable, ComposerOptions, type ConfigNames, FlatConfigItem, GLOB_ALL_SRC, GLOB_CSS, GLOB_DIST, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_LOCKFILE, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_NODE_MODULES, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_YAML, HTMLOptions, OptionsConfig, OptionsE18e, OptionsFiles, OptionsHasNextJs, OptionsHasTypeScript, OptionsJSX, OptionsJSXA11y, OptionsOverrides, OptionsTailwindCSS, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, OptionsTypescript, OptionsUnicorn, type PrettierOptions, ResolvedOptions, Rules, StyleConfig, StyleOptions, combine, command, comments, composer, deMorgan, defaultPluginRenaming, e18e, ensurePackages, getOverrides, hasNextJs, hasReact, hasTailwind, hasTypeScript, html, ignores, imports, interopDefault, javascript, jsdoc, jsonc, jsx, markdown, ncontiero, nextJs, node, parserPlain, perfectionist, prettier, promise, react, regexp, renamePluginInConfigs, renameRules, resolveSubOptions, restrictedSyntaxJs, sortPackageJson, sortPnpmWorkspace, sortTsconfig, tailwindcss, tanstackQuery, toArray, toml, typescript, unicorn, yml };