@dhzh/eslint-config 0.9.0 → 0.9.2

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
@@ -5733,677 +5733,682 @@ interface RuleOptions {
5733
5733
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>
5734
5734
  /**
5735
5735
  * Improve regexes by making them shorter, consistent, and safer.
5736
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/better-regex.md
5736
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/better-regex.md
5737
5737
  */
5738
5738
  'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>
5739
5739
  /**
5740
5740
  * Enforce a specific parameter name in catch clauses.
5741
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/catch-error-name.md
5741
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/catch-error-name.md
5742
5742
  */
5743
5743
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>
5744
5744
  /**
5745
5745
  * Use destructured variables over properties.
5746
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/consistent-destructuring.md
5746
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/consistent-destructuring.md
5747
5747
  */
5748
5748
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>
5749
5749
  /**
5750
5750
  * Prefer consistent types when spreading a ternary in an array literal.
5751
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/consistent-empty-array-spread.md
5751
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/consistent-empty-array-spread.md
5752
5752
  */
5753
5753
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>
5754
5754
  /**
5755
5755
  * Move function definitions to the highest possible scope.
5756
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/consistent-function-scoping.md
5756
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/consistent-function-scoping.md
5757
5757
  */
5758
5758
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>
5759
5759
  /**
5760
5760
  * Enforce correct `Error` subclassing.
5761
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/custom-error-definition.md
5761
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/custom-error-definition.md
5762
5762
  */
5763
5763
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>
5764
5764
  /**
5765
5765
  * Enforce no spaces between braces.
5766
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/empty-brace-spaces.md
5766
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/empty-brace-spaces.md
5767
5767
  */
5768
5768
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>
5769
5769
  /**
5770
5770
  * Enforce passing a `message` value when creating a built-in error.
5771
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/error-message.md
5771
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/error-message.md
5772
5772
  */
5773
5773
  'unicorn/error-message'?: Linter.RuleEntry<[]>
5774
5774
  /**
5775
5775
  * Require escape sequences to use uppercase values.
5776
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/escape-case.md
5776
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/escape-case.md
5777
5777
  */
5778
5778
  'unicorn/escape-case'?: Linter.RuleEntry<[]>
5779
5779
  /**
5780
5780
  * Add expiration conditions to TODO comments.
5781
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/expiring-todo-comments.md
5781
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/expiring-todo-comments.md
5782
5782
  */
5783
5783
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>
5784
5784
  /**
5785
5785
  * Enforce explicitly comparing the `length` or `size` property of a value.
5786
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/explicit-length-check.md
5786
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/explicit-length-check.md
5787
5787
  */
5788
5788
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>
5789
5789
  /**
5790
5790
  * Enforce a case style for filenames.
5791
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/filename-case.md
5791
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/filename-case.md
5792
5792
  */
5793
5793
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>
5794
5794
  /**
5795
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#import-index
5795
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#import-index
5796
5796
  * @deprecated
5797
5797
  */
5798
5798
  'unicorn/import-index'?: Linter.RuleEntry<[]>
5799
5799
  /**
5800
5800
  * Enforce specific import styles per module.
5801
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/import-style.md
5801
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/import-style.md
5802
5802
  */
5803
5803
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>
5804
5804
  /**
5805
5805
  * Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
5806
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/new-for-builtins.md
5806
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/new-for-builtins.md
5807
5807
  */
5808
5808
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>
5809
5809
  /**
5810
5810
  * Enforce specifying rules to disable in `eslint-disable` comments.
5811
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-abusive-eslint-disable.md
5811
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-abusive-eslint-disable.md
5812
5812
  */
5813
5813
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>
5814
5814
  /**
5815
5815
  * Disallow anonymous functions and classes as the default export.
5816
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-anonymous-default-export.md
5816
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-anonymous-default-export.md
5817
5817
  */
5818
5818
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>
5819
5819
  /**
5820
5820
  * Prevent passing a function reference directly to iterator methods.
5821
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-array-callback-reference.md
5821
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-array-callback-reference.md
5822
5822
  */
5823
5823
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>
5824
5824
  /**
5825
5825
  * Prefer `for…of` over the `forEach` method.
5826
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-array-for-each.md
5826
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-array-for-each.md
5827
5827
  */
5828
5828
  'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>
5829
5829
  /**
5830
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#no-array-instanceof
5830
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#no-array-instanceof
5831
5831
  * @deprecated
5832
5832
  */
5833
5833
  'unicorn/no-array-instanceof'?: Linter.RuleEntry<[]>
5834
5834
  /**
5835
5835
  * Disallow using the `this` argument in array methods.
5836
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-array-method-this-argument.md
5836
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-array-method-this-argument.md
5837
5837
  */
5838
5838
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>
5839
5839
  /**
5840
5840
  * Enforce combining multiple `Array#push()` into one call.
5841
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-array-push-push.md
5841
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-array-push-push.md
5842
5842
  */
5843
5843
  'unicorn/no-array-push-push'?: Linter.RuleEntry<UnicornNoArrayPushPush>
5844
5844
  /**
5845
5845
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
5846
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-array-reduce.md
5846
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-array-reduce.md
5847
5847
  */
5848
5848
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>
5849
5849
  /**
5850
5850
  * Disallow member access from await expression.
5851
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-await-expression-member.md
5851
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-await-expression-member.md
5852
5852
  */
5853
5853
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>
5854
5854
  /**
5855
5855
  * Disallow using `await` in `Promise` method parameters.
5856
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-await-in-promise-methods.md
5856
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-await-in-promise-methods.md
5857
5857
  */
5858
5858
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>
5859
5859
  /**
5860
5860
  * Do not use leading/trailing space between `console.log` parameters.
5861
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-console-spaces.md
5861
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-console-spaces.md
5862
5862
  */
5863
5863
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>
5864
5864
  /**
5865
5865
  * Do not use `document.cookie` directly.
5866
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-document-cookie.md
5866
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-document-cookie.md
5867
5867
  */
5868
5868
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>
5869
5869
  /**
5870
5870
  * Disallow empty files.
5871
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-empty-file.md
5871
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-empty-file.md
5872
5872
  */
5873
5873
  'unicorn/no-empty-file'?: Linter.RuleEntry<[]>
5874
5874
  /**
5875
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#no-fn-reference-in-iterator
5875
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#no-fn-reference-in-iterator
5876
5876
  * @deprecated
5877
5877
  */
5878
5878
  'unicorn/no-fn-reference-in-iterator'?: Linter.RuleEntry<[]>
5879
5879
  /**
5880
5880
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
5881
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-for-loop.md
5881
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-for-loop.md
5882
5882
  */
5883
5883
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>
5884
5884
  /**
5885
5885
  * Enforce the use of Unicode escapes instead of hexadecimal escapes.
5886
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-hex-escape.md
5886
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-hex-escape.md
5887
5887
  */
5888
5888
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>
5889
5889
  /**
5890
5890
  * Require `Array.isArray()` instead of `instanceof Array`.
5891
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-instanceof-array.md
5891
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-instanceof-array.md
5892
5892
  */
5893
5893
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>
5894
5894
  /**
5895
5895
  * Disallow invalid options in `fetch()` and `new Request()`.
5896
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-invalid-fetch-options.md
5896
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-invalid-fetch-options.md
5897
5897
  */
5898
5898
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>
5899
5899
  /**
5900
5900
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
5901
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-invalid-remove-event-listener.md
5901
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-invalid-remove-event-listener.md
5902
5902
  */
5903
5903
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>
5904
5904
  /**
5905
5905
  * Disallow identifiers starting with `new` or `class`.
5906
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-keyword-prefix.md
5906
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-keyword-prefix.md
5907
5907
  */
5908
5908
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>
5909
5909
  /**
5910
5910
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
5911
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-lonely-if.md
5911
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-lonely-if.md
5912
5912
  */
5913
5913
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>
5914
5914
  /**
5915
5915
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
5916
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-magic-array-flat-depth.md
5916
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-magic-array-flat-depth.md
5917
5917
  */
5918
5918
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>
5919
5919
  /**
5920
5920
  * Disallow negated conditions.
5921
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-negated-condition.md
5921
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-negated-condition.md
5922
5922
  */
5923
5923
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>
5924
+ /**
5925
+ * Disallow negated expression in equality check.
5926
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-negation-in-equality-check.md
5927
+ */
5928
+ 'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>
5924
5929
  /**
5925
5930
  * Disallow nested ternary expressions.
5926
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-nested-ternary.md
5931
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-nested-ternary.md
5927
5932
  */
5928
5933
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>
5929
5934
  /**
5930
5935
  * Disallow `new Array()`.
5931
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-new-array.md
5936
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-new-array.md
5932
5937
  */
5933
5938
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>
5934
5939
  /**
5935
5940
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
5936
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-new-buffer.md
5941
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-new-buffer.md
5937
5942
  */
5938
5943
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>
5939
5944
  /**
5940
5945
  * Disallow the use of the `null` literal.
5941
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-null.md
5946
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-null.md
5942
5947
  */
5943
5948
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>
5944
5949
  /**
5945
5950
  * Disallow the use of objects as default parameters.
5946
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-object-as-default-parameter.md
5951
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-object-as-default-parameter.md
5947
5952
  */
5948
5953
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>
5949
5954
  /**
5950
5955
  * Disallow `process.exit()`.
5951
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-process-exit.md
5956
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-process-exit.md
5952
5957
  */
5953
5958
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>
5954
5959
  /**
5955
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#no-reduce
5960
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#no-reduce
5956
5961
  * @deprecated
5957
5962
  */
5958
5963
  'unicorn/no-reduce'?: Linter.RuleEntry<[]>
5959
5964
  /**
5960
5965
  * Disallow passing single-element arrays to `Promise` methods.
5961
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-single-promise-in-promise-methods.md
5966
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-single-promise-in-promise-methods.md
5962
5967
  */
5963
5968
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>
5964
5969
  /**
5965
5970
  * Disallow classes that only have static members.
5966
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-static-only-class.md
5971
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-static-only-class.md
5967
5972
  */
5968
5973
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>
5969
5974
  /**
5970
5975
  * Disallow `then` property.
5971
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-thenable.md
5976
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-thenable.md
5972
5977
  */
5973
5978
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>
5974
5979
  /**
5975
5980
  * Disallow assigning `this` to a variable.
5976
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-this-assignment.md
5981
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-this-assignment.md
5977
5982
  */
5978
5983
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>
5979
5984
  /**
5980
5985
  * Disallow comparing `undefined` using `typeof`.
5981
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-typeof-undefined.md
5986
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-typeof-undefined.md
5982
5987
  */
5983
5988
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>
5984
5989
  /**
5985
5990
  * Disallow awaiting non-promise values.
5986
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-unnecessary-await.md
5991
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-unnecessary-await.md
5987
5992
  */
5988
5993
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>
5989
5994
  /**
5990
5995
  * Enforce the use of built-in methods instead of unnecessary polyfills.
5991
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-unnecessary-polyfills.md
5996
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-unnecessary-polyfills.md
5992
5997
  */
5993
5998
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>
5994
5999
  /**
5995
6000
  * Disallow unreadable array destructuring.
5996
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-unreadable-array-destructuring.md
6001
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-unreadable-array-destructuring.md
5997
6002
  */
5998
6003
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>
5999
6004
  /**
6000
6005
  * Disallow unreadable IIFEs.
6001
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-unreadable-iife.md
6006
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-unreadable-iife.md
6002
6007
  */
6003
6008
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>
6004
6009
  /**
6005
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#no-unsafe-regex
6010
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#no-unsafe-regex
6006
6011
  * @deprecated
6007
6012
  */
6008
6013
  'unicorn/no-unsafe-regex'?: Linter.RuleEntry<[]>
6009
6014
  /**
6010
6015
  * Disallow unused object properties.
6011
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-unused-properties.md
6016
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-unused-properties.md
6012
6017
  */
6013
6018
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>
6014
6019
  /**
6015
6020
  * Disallow useless fallback when spreading in object literals.
6016
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-useless-fallback-in-spread.md
6021
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-useless-fallback-in-spread.md
6017
6022
  */
6018
6023
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>
6019
6024
  /**
6020
6025
  * Disallow useless array length check.
6021
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-useless-length-check.md
6026
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-useless-length-check.md
6022
6027
  */
6023
6028
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>
6024
6029
  /**
6025
6030
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
6026
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-useless-promise-resolve-reject.md
6031
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-useless-promise-resolve-reject.md
6027
6032
  */
6028
6033
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>
6029
6034
  /**
6030
6035
  * Disallow unnecessary spread.
6031
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-useless-spread.md
6036
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-useless-spread.md
6032
6037
  */
6033
6038
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>
6034
6039
  /**
6035
6040
  * Disallow useless case in switch statements.
6036
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-useless-switch-case.md
6041
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-useless-switch-case.md
6037
6042
  */
6038
6043
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>
6039
6044
  /**
6040
6045
  * Disallow useless `undefined`.
6041
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-useless-undefined.md
6046
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-useless-undefined.md
6042
6047
  */
6043
6048
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>
6044
6049
  /**
6045
6050
  * Disallow number literals with zero fractions or dangling dots.
6046
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-zero-fractions.md
6051
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-zero-fractions.md
6047
6052
  */
6048
6053
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>
6049
6054
  /**
6050
6055
  * Enforce proper case for numeric literals.
6051
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/number-literal-case.md
6056
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/number-literal-case.md
6052
6057
  */
6053
6058
  'unicorn/number-literal-case'?: Linter.RuleEntry<[]>
6054
6059
  /**
6055
6060
  * Enforce the style of numeric separators by correctly grouping digits.
6056
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/numeric-separators-style.md
6061
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/numeric-separators-style.md
6057
6062
  */
6058
6063
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>
6059
6064
  /**
6060
6065
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
6061
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-add-event-listener.md
6066
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-add-event-listener.md
6062
6067
  */
6063
6068
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>
6064
6069
  /**
6065
6070
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
6066
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-array-find.md
6071
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-array-find.md
6067
6072
  */
6068
6073
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>
6069
6074
  /**
6070
6075
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
6071
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-array-flat.md
6076
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-array-flat.md
6072
6077
  */
6073
6078
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>
6074
6079
  /**
6075
6080
  * Prefer `.flatMap(…)` over `.map(…).flat()`.
6076
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-array-flat-map.md
6081
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-array-flat-map.md
6077
6082
  */
6078
6083
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>
6079
6084
  /**
6080
6085
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
6081
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-array-index-of.md
6086
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-array-index-of.md
6082
6087
  */
6083
6088
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>
6084
6089
  /**
6085
- * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast}(…)`.
6086
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-array-some.md
6090
+ * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
6091
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-array-some.md
6087
6092
  */
6088
6093
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>
6089
6094
  /**
6090
6095
  * Prefer `.at()` method for index access and `String#charAt()`.
6091
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-at.md
6096
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-at.md
6092
6097
  */
6093
6098
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>
6094
6099
  /**
6095
6100
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
6096
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-blob-reading-methods.md
6101
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-blob-reading-methods.md
6097
6102
  */
6098
6103
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>
6099
6104
  /**
6100
6105
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
6101
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-code-point.md
6106
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-code-point.md
6102
6107
  */
6103
6108
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>
6104
6109
  /**
6105
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#prefer-dataset
6110
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-dataset
6106
6111
  * @deprecated
6107
6112
  */
6108
6113
  'unicorn/prefer-dataset'?: Linter.RuleEntry<[]>
6109
6114
  /**
6110
6115
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
6111
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-date-now.md
6116
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-date-now.md
6112
6117
  */
6113
6118
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>
6114
6119
  /**
6115
6120
  * Prefer default parameters over reassignment.
6116
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-default-parameters.md
6121
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-default-parameters.md
6117
6122
  */
6118
6123
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>
6119
6124
  /**
6120
6125
  * Prefer `Node#append()` over `Node#appendChild()`.
6121
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-dom-node-append.md
6126
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-dom-node-append.md
6122
6127
  */
6123
6128
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>
6124
6129
  /**
6125
6130
  * Prefer using `.dataset` on DOM elements over calling attribute methods.
6126
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-dom-node-dataset.md
6131
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-dom-node-dataset.md
6127
6132
  */
6128
6133
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>
6129
6134
  /**
6130
6135
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
6131
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-dom-node-remove.md
6136
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-dom-node-remove.md
6132
6137
  */
6133
6138
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>
6134
6139
  /**
6135
6140
  * Prefer `.textContent` over `.innerText`.
6136
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-dom-node-text-content.md
6141
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-dom-node-text-content.md
6137
6142
  */
6138
6143
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>
6139
6144
  /**
6140
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#prefer-event-key
6145
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-event-key
6141
6146
  * @deprecated
6142
6147
  */
6143
6148
  'unicorn/prefer-event-key'?: Linter.RuleEntry<[]>
6144
6149
  /**
6145
6150
  * Prefer `EventTarget` over `EventEmitter`.
6146
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-event-target.md
6151
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-event-target.md
6147
6152
  */
6148
6153
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>
6149
6154
  /**
6150
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#prefer-exponentiation-operator
6155
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-exponentiation-operator
6151
6156
  * @deprecated
6152
6157
  */
6153
6158
  'unicorn/prefer-exponentiation-operator'?: Linter.RuleEntry<[]>
6154
6159
  /**
6155
6160
  * Prefer `export…from` when re-exporting.
6156
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-export-from.md
6161
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-export-from.md
6157
6162
  */
6158
6163
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>
6159
6164
  /**
6160
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#prefer-flat-map
6165
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-flat-map
6161
6166
  * @deprecated
6162
6167
  */
6163
6168
  'unicorn/prefer-flat-map'?: Linter.RuleEntry<[]>
6164
6169
  /**
6165
- * Prefer `.includes()` over `.indexOf()` and `Array#some()` when checking for existence or non-existence.
6166
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-includes.md
6170
+ * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
6171
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-includes.md
6167
6172
  */
6168
6173
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>
6169
6174
  /**
6170
6175
  * Prefer reading a JSON file as a buffer.
6171
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-json-parse-buffer.md
6176
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-json-parse-buffer.md
6172
6177
  */
6173
6178
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>
6174
6179
  /**
6175
6180
  * Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
6176
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-keyboard-event-key.md
6181
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-keyboard-event-key.md
6177
6182
  */
6178
6183
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>
6179
6184
  /**
6180
6185
  * Prefer using a logical operator over a ternary.
6181
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-logical-operator-over-ternary.md
6186
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-logical-operator-over-ternary.md
6182
6187
  */
6183
6188
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>
6184
6189
  /**
6185
6190
  * Enforce the use of `Math.trunc` instead of bitwise operators.
6186
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-math-trunc.md
6191
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-math-trunc.md
6187
6192
  */
6188
6193
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>
6189
6194
  /**
6190
6195
  * Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
6191
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-modern-dom-apis.md
6196
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-modern-dom-apis.md
6192
6197
  */
6193
6198
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>
6194
6199
  /**
6195
6200
  * Prefer modern `Math` APIs over legacy patterns.
6196
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-modern-math-apis.md
6201
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-modern-math-apis.md
6197
6202
  */
6198
6203
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>
6199
6204
  /**
6200
6205
  * Prefer JavaScript modules (ESM) over CommonJS.
6201
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-module.md
6206
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-module.md
6202
6207
  */
6203
6208
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>
6204
6209
  /**
6205
6210
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
6206
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-native-coercion-functions.md
6211
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-native-coercion-functions.md
6207
6212
  */
6208
6213
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>
6209
6214
  /**
6210
6215
  * Prefer negative index over `.length - index` when possible.
6211
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-negative-index.md
6216
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-negative-index.md
6212
6217
  */
6213
6218
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>
6214
6219
  /**
6215
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#prefer-node-append
6220
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-node-append
6216
6221
  * @deprecated
6217
6222
  */
6218
6223
  'unicorn/prefer-node-append'?: Linter.RuleEntry<[]>
6219
6224
  /**
6220
6225
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
6221
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-node-protocol.md
6226
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-node-protocol.md
6222
6227
  */
6223
6228
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>
6224
6229
  /**
6225
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#prefer-node-remove
6230
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-node-remove
6226
6231
  * @deprecated
6227
6232
  */
6228
6233
  'unicorn/prefer-node-remove'?: Linter.RuleEntry<[]>
6229
6234
  /**
6230
6235
  * Prefer `Number` static properties over global ones.
6231
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-number-properties.md
6236
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-number-properties.md
6232
6237
  */
6233
6238
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>
6234
6239
  /**
6235
6240
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
6236
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-object-from-entries.md
6241
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-object-from-entries.md
6237
6242
  */
6238
6243
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>
6239
6244
  /**
6240
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#prefer-object-has-own
6245
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-object-has-own
6241
6246
  * @deprecated
6242
6247
  */
6243
6248
  'unicorn/prefer-object-has-own'?: Linter.RuleEntry<[]>
6244
6249
  /**
6245
6250
  * Prefer omitting the `catch` binding parameter.
6246
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-optional-catch-binding.md
6251
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-optional-catch-binding.md
6247
6252
  */
6248
6253
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>
6249
6254
  /**
6250
6255
  * Prefer borrowing methods from the prototype instead of the instance.
6251
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-prototype-methods.md
6256
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-prototype-methods.md
6252
6257
  */
6253
6258
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>
6254
6259
  /**
6255
6260
  * Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()`.
6256
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-query-selector.md
6261
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-query-selector.md
6257
6262
  */
6258
6263
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>
6259
6264
  /**
6260
6265
  * Prefer `Reflect.apply()` over `Function#apply()`.
6261
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-reflect-apply.md
6266
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-reflect-apply.md
6262
6267
  */
6263
6268
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>
6264
6269
  /**
6265
6270
  * Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
6266
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-regexp-test.md
6271
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-regexp-test.md
6267
6272
  */
6268
6273
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>
6269
6274
  /**
6270
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#prefer-replace-all
6275
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-replace-all
6271
6276
  * @deprecated
6272
6277
  */
6273
6278
  'unicorn/prefer-replace-all'?: Linter.RuleEntry<[]>
6274
6279
  /**
6275
6280
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
6276
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-set-has.md
6281
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-set-has.md
6277
6282
  */
6278
6283
  'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>
6279
6284
  /**
6280
6285
  * Prefer using `Set#size` instead of `Array#length`.
6281
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-set-size.md
6286
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-set-size.md
6282
6287
  */
6283
6288
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>
6284
6289
  /**
6285
6290
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
6286
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-spread.md
6291
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-spread.md
6287
6292
  */
6288
6293
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>
6289
6294
  /**
6290
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#prefer-starts-ends-with
6295
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-starts-ends-with
6291
6296
  * @deprecated
6292
6297
  */
6293
6298
  'unicorn/prefer-starts-ends-with'?: Linter.RuleEntry<[]>
6294
6299
  /**
6295
6300
  * Prefer using the `String.raw` tag to avoid escaping `\`.
6296
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-string-raw.md
6301
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-string-raw.md
6297
6302
  */
6298
6303
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>
6299
6304
  /**
6300
6305
  * Prefer `String#replaceAll()` over regex searches with the global flag.
6301
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-string-replace-all.md
6306
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-string-replace-all.md
6302
6307
  */
6303
6308
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>
6304
6309
  /**
6305
6310
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
6306
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-string-slice.md
6311
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-string-slice.md
6307
6312
  */
6308
6313
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>
6309
6314
  /**
6310
6315
  * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
6311
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-string-starts-ends-with.md
6316
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-string-starts-ends-with.md
6312
6317
  */
6313
6318
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>
6314
6319
  /**
6315
6320
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
6316
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-string-trim-start-end.md
6321
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-string-trim-start-end.md
6317
6322
  */
6318
6323
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>
6319
6324
  /**
6320
6325
  * Prefer using `structuredClone` to create a deep clone.
6321
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-structured-clone.md
6326
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-structured-clone.md
6322
6327
  */
6323
6328
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>
6324
6329
  /**
6325
6330
  * Prefer `switch` over multiple `else-if`.
6326
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-switch.md
6331
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-switch.md
6327
6332
  */
6328
6333
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>
6329
6334
  /**
6330
6335
  * Prefer ternary expressions over simple `if-else` statements.
6331
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-ternary.md
6336
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-ternary.md
6332
6337
  */
6333
6338
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>
6334
6339
  /**
6335
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#prefer-text-content
6340
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-text-content
6336
6341
  * @deprecated
6337
6342
  */
6338
6343
  'unicorn/prefer-text-content'?: Linter.RuleEntry<[]>
6339
6344
  /**
6340
6345
  * Prefer top-level await over top-level promises and async function calls.
6341
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-top-level-await.md
6346
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-top-level-await.md
6342
6347
  */
6343
6348
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>
6344
6349
  /**
6345
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#prefer-trim-start-end
6350
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-trim-start-end
6346
6351
  * @deprecated
6347
6352
  */
6348
6353
  'unicorn/prefer-trim-start-end'?: Linter.RuleEntry<[]>
6349
6354
  /**
6350
6355
  * Enforce throwing `TypeError` in type checking conditions.
6351
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-type-error.md
6356
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-type-error.md
6352
6357
  */
6353
6358
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>
6354
6359
  /**
6355
6360
  * Prevent abbreviations.
6356
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prevent-abbreviations.md
6361
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prevent-abbreviations.md
6357
6362
  */
6358
6363
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>
6359
6364
  /**
6360
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#regex-shorthand
6365
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#regex-shorthand
6361
6366
  * @deprecated
6362
6367
  */
6363
6368
  'unicorn/regex-shorthand'?: Linter.RuleEntry<[]>
6364
6369
  /**
6365
6370
  * Enforce consistent relative URL style.
6366
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/relative-url-style.md
6371
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/relative-url-style.md
6367
6372
  */
6368
6373
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>
6369
6374
  /**
6370
6375
  * Enforce using the separator argument with `Array#join()`.
6371
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/require-array-join-separator.md
6376
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/require-array-join-separator.md
6372
6377
  */
6373
6378
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>
6374
6379
  /**
6375
6380
  * Enforce using the digits argument with `Number#toFixed()`.
6376
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/require-number-to-fixed-digits-argument.md
6381
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/require-number-to-fixed-digits-argument.md
6377
6382
  */
6378
6383
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>
6379
6384
  /**
6380
6385
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
6381
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/require-post-message-target-origin.md
6386
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/require-post-message-target-origin.md
6382
6387
  */
6383
6388
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>
6384
6389
  /**
6385
6390
  * Enforce better string content.
6386
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/string-content.md
6391
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/string-content.md
6387
6392
  */
6388
6393
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>
6389
6394
  /**
6390
6395
  * Enforce consistent brace style for `case` clauses.
6391
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/switch-case-braces.md
6396
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/switch-case-braces.md
6392
6397
  */
6393
6398
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>
6394
6399
  /**
6395
6400
  * Fix whitespace-insensitive template indentation.
6396
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/template-indent.md
6401
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/template-indent.md
6397
6402
  */
6398
6403
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>
6399
6404
  /**
6400
6405
  * Enforce consistent case for text encoding identifiers.
6401
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/text-encoding-identifier-case.md
6406
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/text-encoding-identifier-case.md
6402
6407
  */
6403
6408
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<[]>
6404
6409
  /**
6405
6410
  * Require `new` when creating an error.
6406
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/throw-new-error.md
6411
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/throw-new-error.md
6407
6412
  */
6408
6413
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>
6409
6414
  /**
@@ -10159,6 +10164,7 @@ type NodeNoUnpublishedImport = []|[{
10159
10164
  })[]])
10160
10165
  resolvePaths?: string[]
10161
10166
  ignoreTypeImport?: boolean
10167
+ ignorePrivate?: boolean
10162
10168
  }]
10163
10169
  // ----- node/no-unpublished-require -----
10164
10170
  type NodeNoUnpublishedRequire = []|[{
@@ -10181,6 +10187,7 @@ type NodeNoUnpublishedRequire = []|[{
10181
10187
  })[]])
10182
10188
  resolvePaths?: string[]
10183
10189
  tryExtensions?: string[]
10190
+ ignorePrivate?: boolean
10184
10191
  }]
10185
10192
  // ----- node/no-unsupported-features/es-builtins -----
10186
10193
  type NodeNoUnsupportedFeaturesEsBuiltins = []|[{
@@ -10355,6 +10362,9 @@ type PerfectionistSortAstroAttributes = []|[{
10355
10362
  }]
10356
10363
  // ----- perfectionist/sort-classes -----
10357
10364
  type PerfectionistSortClasses = []|[{
10365
+ "custom-groups"?: {
10366
+ [k: string]: unknown | undefined
10367
+ }
10358
10368
  type?: ("alphabetical" | "natural" | "line-length")
10359
10369
  "ignore-case"?: boolean
10360
10370
  order?: ("asc" | "desc")