eslint-config-typed 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (490) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +6 -0
  3. package/dist/configs/cypress.d.mts +3 -0
  4. package/dist/configs/cypress.d.mts.map +1 -0
  5. package/dist/configs/cypress.mjs +28 -0
  6. package/dist/configs/cypress.mjs.map +1 -0
  7. package/dist/configs/index.d.mts +12 -0
  8. package/dist/configs/index.d.mts.map +1 -0
  9. package/dist/configs/index.mjs +12 -0
  10. package/dist/configs/index.mjs.map +1 -0
  11. package/dist/configs/jest.d.mts +3 -0
  12. package/dist/configs/jest.d.mts.map +1 -0
  13. package/dist/configs/jest.mjs +24 -0
  14. package/dist/configs/jest.mjs.map +1 -0
  15. package/dist/configs/playwright.d.mts +3 -0
  16. package/dist/configs/playwright.d.mts.map +1 -0
  17. package/dist/configs/playwright.mjs +29 -0
  18. package/dist/configs/playwright.mjs.map +1 -0
  19. package/dist/configs/plugins.d.mts +3 -0
  20. package/dist/configs/plugins.d.mts.map +1 -0
  21. package/dist/configs/plugins.mjs +81 -0
  22. package/dist/configs/plugins.mjs.map +1 -0
  23. package/dist/configs/preact.d.mts +3 -0
  24. package/dist/configs/preact.d.mts.map +1 -0
  25. package/dist/configs/preact.mjs +17 -0
  26. package/dist/configs/preact.mjs.map +1 -0
  27. package/dist/configs/react-base.d.mts +3 -0
  28. package/dist/configs/react-base.d.mts.map +1 -0
  29. package/dist/configs/react-base.mjs +38 -0
  30. package/dist/configs/react-base.mjs.map +1 -0
  31. package/dist/configs/react.d.mts +3 -0
  32. package/dist/configs/react.d.mts.map +1 -0
  33. package/dist/configs/react.mjs +16 -0
  34. package/dist/configs/react.mjs.map +1 -0
  35. package/dist/configs/testing-library.d.mts +3 -0
  36. package/dist/configs/testing-library.d.mts.map +1 -0
  37. package/dist/configs/testing-library.mjs +22 -0
  38. package/dist/configs/testing-library.mjs.map +1 -0
  39. package/dist/configs/typescript-without-rules.d.mts +6 -0
  40. package/dist/configs/typescript-without-rules.d.mts.map +1 -0
  41. package/dist/configs/typescript-without-rules.mjs +89 -0
  42. package/dist/configs/typescript-without-rules.mjs.map +1 -0
  43. package/dist/configs/typescript.d.mts +8 -0
  44. package/dist/configs/typescript.d.mts.map +1 -0
  45. package/dist/configs/typescript.mjs +80 -0
  46. package/dist/configs/typescript.mjs.map +1 -0
  47. package/dist/configs/vitest.d.mts +3 -0
  48. package/dist/configs/vitest.d.mts.map +1 -0
  49. package/dist/configs/vitest.mjs +20 -0
  50. package/dist/configs/vitest.mjs.map +1 -0
  51. package/dist/custom-rules/custom.d.mts +3 -0
  52. package/dist/custom-rules/custom.d.mts.map +1 -0
  53. package/dist/custom-rules/custom.mjs +10 -0
  54. package/dist/custom-rules/custom.mjs.map +1 -0
  55. package/dist/custom-rules/index.d.mts +3 -0
  56. package/dist/custom-rules/index.d.mts.map +1 -0
  57. package/dist/custom-rules/index.mjs +3 -0
  58. package/dist/custom-rules/index.mjs.map +1 -0
  59. package/dist/custom-rules/no-restricted-syntax2.d.mts +3 -0
  60. package/dist/custom-rules/no-restricted-syntax2.d.mts.map +1 -0
  61. package/dist/custom-rules/no-restricted-syntax2.mjs +61 -0
  62. package/dist/custom-rules/no-restricted-syntax2.mjs.map +1 -0
  63. package/dist/globals.d.mts +3 -0
  64. package/dist/index.d.mts +6 -0
  65. package/dist/index.d.mts.map +1 -0
  66. package/dist/index.mjs +58 -0
  67. package/dist/index.mjs.map +1 -0
  68. package/dist/plugins/index.d.mts +3 -0
  69. package/dist/plugins/index.d.mts.map +1 -0
  70. package/dist/plugins/index.mjs +23 -0
  71. package/dist/plugins/index.mjs.map +1 -0
  72. package/dist/plugins/total-functions/index.d.mts +3 -0
  73. package/dist/plugins/total-functions/index.d.mts.map +1 -0
  74. package/dist/plugins/total-functions/index.mjs +20 -0
  75. package/dist/plugins/total-functions/index.mjs.map +1 -0
  76. package/dist/plugins/total-functions/plugin.d.mts +3 -0
  77. package/dist/plugins/total-functions/plugin.d.mts.map +1 -0
  78. package/dist/plugins/total-functions/plugin.mjs +26 -0
  79. package/dist/plugins/total-functions/plugin.mjs.map +1 -0
  80. package/dist/plugins/total-functions/rules/common.d.mts +16 -0
  81. package/dist/plugins/total-functions/rules/common.d.mts.map +1 -0
  82. package/dist/plugins/total-functions/rules/common.mjs +49 -0
  83. package/dist/plugins/total-functions/rules/common.mjs.map +1 -0
  84. package/dist/plugins/total-functions/rules/fp-ts.d.mts +9 -0
  85. package/dist/plugins/total-functions/rules/fp-ts.d.mts.map +1 -0
  86. package/dist/plugins/total-functions/rules/fp-ts.mjs +42 -0
  87. package/dist/plugins/total-functions/rules/fp-ts.mjs.map +1 -0
  88. package/dist/plugins/total-functions/rules/index.d.mts +19 -0
  89. package/dist/plugins/total-functions/rules/index.d.mts.map +1 -0
  90. package/dist/plugins/total-functions/rules/index.mjs +19 -0
  91. package/dist/plugins/total-functions/rules/index.mjs.map +1 -0
  92. package/dist/plugins/total-functions/rules/no-enums.d.mts +3 -0
  93. package/dist/plugins/total-functions/rules/no-enums.d.mts.map +1 -0
  94. package/dist/plugins/total-functions/rules/no-enums.mjs +28 -0
  95. package/dist/plugins/total-functions/rules/no-enums.mjs.map +1 -0
  96. package/dist/plugins/total-functions/rules/no-hidden-type-assertions.d.mts +4 -0
  97. package/dist/plugins/total-functions/rules/no-hidden-type-assertions.d.mts.map +1 -0
  98. package/dist/plugins/total-functions/rules/no-hidden-type-assertions.mjs +133 -0
  99. package/dist/plugins/total-functions/rules/no-hidden-type-assertions.mjs.map +1 -0
  100. package/dist/plugins/total-functions/rules/no-nested-fp-ts-effects.d.mts +4 -0
  101. package/dist/plugins/total-functions/rules/no-nested-fp-ts-effects.d.mts.map +1 -0
  102. package/dist/plugins/total-functions/rules/no-nested-fp-ts-effects.mjs +53 -0
  103. package/dist/plugins/total-functions/rules/no-nested-fp-ts-effects.mjs.map +1 -0
  104. package/dist/plugins/total-functions/rules/no-partial-array-reduce.d.mts +4 -0
  105. package/dist/plugins/total-functions/rules/no-partial-array-reduce.d.mts.map +1 -0
  106. package/dist/plugins/total-functions/rules/no-partial-array-reduce.mjs +91 -0
  107. package/dist/plugins/total-functions/rules/no-partial-array-reduce.mjs.map +1 -0
  108. package/dist/plugins/total-functions/rules/no-partial-division.d.mts +4 -0
  109. package/dist/plugins/total-functions/rules/no-partial-division.d.mts.map +1 -0
  110. package/dist/plugins/total-functions/rules/no-partial-division.mjs +78 -0
  111. package/dist/plugins/total-functions/rules/no-partial-division.mjs.map +1 -0
  112. package/dist/plugins/total-functions/rules/no-partial-string-normalize.d.mts +4 -0
  113. package/dist/plugins/total-functions/rules/no-partial-string-normalize.d.mts.map +1 -0
  114. package/dist/plugins/total-functions/rules/no-partial-string-normalize.mjs +94 -0
  115. package/dist/plugins/total-functions/rules/no-partial-string-normalize.mjs.map +1 -0
  116. package/dist/plugins/total-functions/rules/no-partial-url-constructor.d.mts +4 -0
  117. package/dist/plugins/total-functions/rules/no-partial-url-constructor.d.mts.map +1 -0
  118. package/dist/plugins/total-functions/rules/no-partial-url-constructor.mjs +84 -0
  119. package/dist/plugins/total-functions/rules/no-partial-url-constructor.mjs.map +1 -0
  120. package/dist/plugins/total-functions/rules/no-premature-fp-ts-effects.d.mts +4 -0
  121. package/dist/plugins/total-functions/rules/no-premature-fp-ts-effects.d.mts.map +1 -0
  122. package/dist/plugins/total-functions/rules/no-premature-fp-ts-effects.mjs +44 -0
  123. package/dist/plugins/total-functions/rules/no-premature-fp-ts-effects.mjs.map +1 -0
  124. package/dist/plugins/total-functions/rules/no-unsafe-enum-assignment.d.mts +3 -0
  125. package/dist/plugins/total-functions/rules/no-unsafe-enum-assignment.d.mts.map +1 -0
  126. package/dist/plugins/total-functions/rules/no-unsafe-enum-assignment.mjs +20 -0
  127. package/dist/plugins/total-functions/rules/no-unsafe-enum-assignment.mjs.map +1 -0
  128. package/dist/plugins/total-functions/rules/no-unsafe-mutable-readonly-assignment.d.mts +3 -0
  129. package/dist/plugins/total-functions/rules/no-unsafe-mutable-readonly-assignment.d.mts.map +1 -0
  130. package/dist/plugins/total-functions/rules/no-unsafe-mutable-readonly-assignment.mjs +59 -0
  131. package/dist/plugins/total-functions/rules/no-unsafe-mutable-readonly-assignment.mjs.map +1 -0
  132. package/dist/plugins/total-functions/rules/no-unsafe-optional-property-assignment.d.mts +3 -0
  133. package/dist/plugins/total-functions/rules/no-unsafe-optional-property-assignment.d.mts.map +1 -0
  134. package/dist/plugins/total-functions/rules/no-unsafe-optional-property-assignment.mjs +20 -0
  135. package/dist/plugins/total-functions/rules/no-unsafe-optional-property-assignment.mjs.map +1 -0
  136. package/dist/plugins/total-functions/rules/no-unsafe-readonly-mutable-assignment.d.mts +3 -0
  137. package/dist/plugins/total-functions/rules/no-unsafe-readonly-mutable-assignment.d.mts.map +1 -0
  138. package/dist/plugins/total-functions/rules/no-unsafe-readonly-mutable-assignment.mjs +59 -0
  139. package/dist/plugins/total-functions/rules/no-unsafe-readonly-mutable-assignment.mjs.map +1 -0
  140. package/dist/plugins/total-functions/rules/no-unsafe-type-assertion.d.mts +4 -0
  141. package/dist/plugins/total-functions/rules/no-unsafe-type-assertion.d.mts.map +1 -0
  142. package/dist/plugins/total-functions/rules/no-unsafe-type-assertion.mjs +53 -0
  143. package/dist/plugins/total-functions/rules/no-unsafe-type-assertion.mjs.map +1 -0
  144. package/dist/plugins/total-functions/rules/require-strict-mode.d.mts +4 -0
  145. package/dist/plugins/total-functions/rules/require-strict-mode.d.mts.map +1 -0
  146. package/dist/plugins/total-functions/rules/require-strict-mode.mjs +59 -0
  147. package/dist/plugins/total-functions/rules/require-strict-mode.mjs.map +1 -0
  148. package/dist/plugins/total-functions/rules/rules.d.mts +15 -0
  149. package/dist/plugins/total-functions/rules/rules.d.mts.map +1 -0
  150. package/dist/plugins/total-functions/rules/rules.mjs +30 -0
  151. package/dist/plugins/total-functions/rules/rules.mjs.map +1 -0
  152. package/dist/plugins/total-functions/rules/unsafe-assignment-rule.d.mts +5 -0
  153. package/dist/plugins/total-functions/rules/unsafe-assignment-rule.d.mts.map +1 -0
  154. package/dist/plugins/total-functions/rules/unsafe-assignment-rule.mjs +234 -0
  155. package/dist/plugins/total-functions/rules/unsafe-assignment-rule.mjs.map +1 -0
  156. package/dist/plugins/tree-shakable/index.d.mts +3 -0
  157. package/dist/plugins/tree-shakable/index.d.mts.map +1 -0
  158. package/dist/plugins/tree-shakable/index.mjs +4 -0
  159. package/dist/plugins/tree-shakable/index.mjs.map +1 -0
  160. package/dist/plugins/tree-shakable/plugin.d.mts +3 -0
  161. package/dist/plugins/tree-shakable/plugin.d.mts.map +1 -0
  162. package/dist/plugins/tree-shakable/plugin.mjs +10 -0
  163. package/dist/plugins/tree-shakable/plugin.mjs.map +1 -0
  164. package/dist/plugins/tree-shakable/rules/import-star.d.mts +5 -0
  165. package/dist/plugins/tree-shakable/rules/import-star.d.mts.map +1 -0
  166. package/dist/plugins/tree-shakable/rules/import-star.mjs +249 -0
  167. package/dist/plugins/tree-shakable/rules/import-star.mjs.map +1 -0
  168. package/dist/plugins/tree-shakable/rules/index.d.mts +3 -0
  169. package/dist/plugins/tree-shakable/rules/index.d.mts.map +1 -0
  170. package/dist/plugins/tree-shakable/rules/index.mjs +3 -0
  171. package/dist/plugins/tree-shakable/rules/index.mjs.map +1 -0
  172. package/dist/plugins/tree-shakable/rules/rules.d.mts +4 -0
  173. package/dist/plugins/tree-shakable/rules/rules.d.mts.map +1 -0
  174. package/dist/plugins/tree-shakable/rules/rules.mjs +8 -0
  175. package/dist/plugins/tree-shakable/rules/rules.mjs.map +1 -0
  176. package/dist/rules/eslint-array-func-rules.d.mts +3 -0
  177. package/dist/rules/eslint-array-func-rules.d.mts.map +1 -0
  178. package/dist/rules/eslint-array-func-rules.mjs +11 -0
  179. package/dist/rules/eslint-array-func-rules.mjs.map +1 -0
  180. package/dist/rules/eslint-cypress-rules.d.mts +3 -0
  181. package/dist/rules/eslint-cypress-rules.d.mts.map +1 -0
  182. package/dist/rules/eslint-cypress-rules.mjs +15 -0
  183. package/dist/rules/eslint-cypress-rules.mjs.map +1 -0
  184. package/dist/rules/eslint-functional-rules.d.mts +7 -0
  185. package/dist/rules/eslint-functional-rules.d.mts.map +1 -0
  186. package/dist/rules/eslint-functional-rules.mjs +133 -0
  187. package/dist/rules/eslint-functional-rules.mjs.map +1 -0
  188. package/dist/rules/eslint-import-rules.d.mts +3 -0
  189. package/dist/rules/eslint-import-rules.d.mts.map +1 -0
  190. package/dist/rules/eslint-import-rules.mjs +112 -0
  191. package/dist/rules/eslint-import-rules.mjs.map +1 -0
  192. package/dist/rules/eslint-jest-rules.d.mts +3 -0
  193. package/dist/rules/eslint-jest-rules.d.mts.map +1 -0
  194. package/dist/rules/eslint-jest-rules.mjs +82 -0
  195. package/dist/rules/eslint-jest-rules.mjs.map +1 -0
  196. package/dist/rules/eslint-jsx-a11y-rules.d.mts +4 -0
  197. package/dist/rules/eslint-jsx-a11y-rules.d.mts.map +1 -0
  198. package/dist/rules/eslint-jsx-a11y-rules.mjs +167 -0
  199. package/dist/rules/eslint-jsx-a11y-rules.mjs.map +1 -0
  200. package/dist/rules/eslint-playwright-rules.d.mts +3 -0
  201. package/dist/rules/eslint-playwright-rules.d.mts.map +1 -0
  202. package/dist/rules/eslint-playwright-rules.mjs +62 -0
  203. package/dist/rules/eslint-playwright-rules.mjs.map +1 -0
  204. package/dist/rules/eslint-plugin-rules.d.mts +3 -0
  205. package/dist/rules/eslint-plugin-rules.d.mts.map +1 -0
  206. package/dist/rules/eslint-plugin-rules.mjs +36 -0
  207. package/dist/rules/eslint-plugin-rules.mjs.map +1 -0
  208. package/dist/rules/eslint-prefer-arrow-functions-rules.d.mts +3 -0
  209. package/dist/rules/eslint-prefer-arrow-functions-rules.d.mts.map +1 -0
  210. package/dist/rules/eslint-prefer-arrow-functions-rules.mjs +17 -0
  211. package/dist/rules/eslint-prefer-arrow-functions-rules.mjs.map +1 -0
  212. package/dist/rules/eslint-promise-rules.d.mts +3 -0
  213. package/dist/rules/eslint-promise-rules.d.mts.map +1 -0
  214. package/dist/rules/eslint-promise-rules.mjs +25 -0
  215. package/dist/rules/eslint-promise-rules.mjs.map +1 -0
  216. package/dist/rules/eslint-react-hooks-rules.d.mts +3 -0
  217. package/dist/rules/eslint-react-hooks-rules.d.mts.map +1 -0
  218. package/dist/rules/eslint-react-hooks-rules.mjs +7 -0
  219. package/dist/rules/eslint-react-hooks-rules.mjs.map +1 -0
  220. package/dist/rules/eslint-react-perf-rules.d.mts +3 -0
  221. package/dist/rules/eslint-react-perf-rules.d.mts.map +1 -0
  222. package/dist/rules/eslint-react-perf-rules.mjs +9 -0
  223. package/dist/rules/eslint-react-perf-rules.mjs.map +1 -0
  224. package/dist/rules/eslint-react-refresh-rules.d.mts +3 -0
  225. package/dist/rules/eslint-react-refresh-rules.d.mts.map +1 -0
  226. package/dist/rules/eslint-react-refresh-rules.mjs +6 -0
  227. package/dist/rules/eslint-react-refresh-rules.mjs.map +1 -0
  228. package/dist/rules/eslint-react-rules.d.mts +3 -0
  229. package/dist/rules/eslint-react-rules.d.mts.map +1 -0
  230. package/dist/rules/eslint-react-rules.mjs +141 -0
  231. package/dist/rules/eslint-react-rules.mjs.map +1 -0
  232. package/dist/rules/eslint-rules.d.mts +55 -0
  233. package/dist/rules/eslint-rules.d.mts.map +1 -0
  234. package/dist/rules/eslint-rules.mjs +441 -0
  235. package/dist/rules/eslint-rules.mjs.map +1 -0
  236. package/dist/rules/eslint-security-rules.d.mts +3 -0
  237. package/dist/rules/eslint-security-rules.d.mts.map +1 -0
  238. package/dist/rules/eslint-security-rules.mjs +19 -0
  239. package/dist/rules/eslint-security-rules.mjs.map +1 -0
  240. package/dist/rules/eslint-testing-library-rules.d.mts +3 -0
  241. package/dist/rules/eslint-testing-library-rules.d.mts.map +1 -0
  242. package/dist/rules/eslint-testing-library-rules.mjs +35 -0
  243. package/dist/rules/eslint-testing-library-rules.mjs.map +1 -0
  244. package/dist/rules/eslint-total-functions-rules.d.mts +3 -0
  245. package/dist/rules/eslint-total-functions-rules.d.mts.map +1 -0
  246. package/dist/rules/eslint-total-functions-rules.mjs +19 -0
  247. package/dist/rules/eslint-total-functions-rules.mjs.map +1 -0
  248. package/dist/rules/eslint-tree-shakable-rules.d.mts +3 -0
  249. package/dist/rules/eslint-tree-shakable-rules.d.mts.map +1 -0
  250. package/dist/rules/eslint-tree-shakable-rules.mjs +6 -0
  251. package/dist/rules/eslint-tree-shakable-rules.mjs.map +1 -0
  252. package/dist/rules/eslint-unicorn-rules.d.mts +3 -0
  253. package/dist/rules/eslint-unicorn-rules.d.mts.map +1 -0
  254. package/dist/rules/eslint-unicorn-rules.mjs +202 -0
  255. package/dist/rules/eslint-unicorn-rules.mjs.map +1 -0
  256. package/dist/rules/eslint-vitest-rules.d.mts +3 -0
  257. package/dist/rules/eslint-vitest-rules.d.mts.map +1 -0
  258. package/dist/rules/eslint-vitest-rules.mjs +75 -0
  259. package/dist/rules/eslint-vitest-rules.mjs.map +1 -0
  260. package/dist/rules/index.d.mts +23 -0
  261. package/dist/rules/index.d.mts.map +1 -0
  262. package/dist/rules/index.mjs +23 -0
  263. package/dist/rules/index.mjs.map +1 -0
  264. package/dist/rules/typescript-eslint-rules.d.mts +5 -0
  265. package/dist/rules/typescript-eslint-rules.d.mts.map +1 -0
  266. package/dist/rules/typescript-eslint-rules.mjs +379 -0
  267. package/dist/rules/typescript-eslint-rules.mjs.map +1 -0
  268. package/dist/tsconfig.json +1 -0
  269. package/dist/types/flat-config.d.mts +7 -0
  270. package/dist/types/flat-config.d.mts.map +1 -0
  271. package/dist/types/flat-config.mjs +2 -0
  272. package/dist/types/flat-config.mjs.map +1 -0
  273. package/dist/types/index.d.mts +4 -0
  274. package/dist/types/index.d.mts.map +1 -0
  275. package/dist/types/index.mjs +2 -0
  276. package/dist/types/index.mjs.map +1 -0
  277. package/dist/types/rules/eslint-array-func-rules.d.mts +103 -0
  278. package/dist/types/rules/eslint-array-func-rules.d.mts.map +1 -0
  279. package/dist/types/rules/eslint-array-func-rules.mjs +2 -0
  280. package/dist/types/rules/eslint-array-func-rules.mjs.map +1 -0
  281. package/dist/types/rules/eslint-cypress-rules.d.mts +205 -0
  282. package/dist/types/rules/eslint-cypress-rules.d.mts.map +1 -0
  283. package/dist/types/rules/eslint-cypress-rules.mjs +2 -0
  284. package/dist/types/rules/eslint-cypress-rules.mjs.map +1 -0
  285. package/dist/types/rules/eslint-deprecation-rules.d.mts +21 -0
  286. package/dist/types/rules/eslint-deprecation-rules.d.mts.map +1 -0
  287. package/dist/types/rules/eslint-deprecation-rules.mjs +2 -0
  288. package/dist/types/rules/eslint-deprecation-rules.mjs.map +1 -0
  289. package/dist/types/rules/eslint-functional-rules.d.mts +3767 -0
  290. package/dist/types/rules/eslint-functional-rules.d.mts.map +1 -0
  291. package/dist/types/rules/eslint-functional-rules.mjs +2 -0
  292. package/dist/types/rules/eslint-functional-rules.mjs.map +1 -0
  293. package/dist/types/rules/eslint-import-rules.d.mts +2082 -0
  294. package/dist/types/rules/eslint-import-rules.d.mts.map +1 -0
  295. package/dist/types/rules/eslint-import-rules.mjs +2 -0
  296. package/dist/types/rules/eslint-import-rules.mjs.map +1 -0
  297. package/dist/types/rules/eslint-jest-rules.d.mts +1576 -0
  298. package/dist/types/rules/eslint-jest-rules.d.mts.map +1 -0
  299. package/dist/types/rules/eslint-jest-rules.mjs +2 -0
  300. package/dist/types/rules/eslint-jest-rules.mjs.map +1 -0
  301. package/dist/types/rules/eslint-jsx-a11y-rules.d.mts +1679 -0
  302. package/dist/types/rules/eslint-jsx-a11y-rules.d.mts.map +1 -0
  303. package/dist/types/rules/eslint-jsx-a11y-rules.mjs +2 -0
  304. package/dist/types/rules/eslint-jsx-a11y-rules.mjs.map +1 -0
  305. package/dist/types/rules/eslint-playwright-rules.d.mts +1302 -0
  306. package/dist/types/rules/eslint-playwright-rules.d.mts.map +1 -0
  307. package/dist/types/rules/eslint-playwright-rules.mjs +2 -0
  308. package/dist/types/rules/eslint-playwright-rules.mjs.map +1 -0
  309. package/dist/types/rules/eslint-plugin-rules.d.mts +814 -0
  310. package/dist/types/rules/eslint-plugin-rules.d.mts.map +1 -0
  311. package/dist/types/rules/eslint-plugin-rules.mjs +2 -0
  312. package/dist/types/rules/eslint-plugin-rules.mjs.map +1 -0
  313. package/dist/types/rules/eslint-prefer-arrow-functions-rules.d.mts +82 -0
  314. package/dist/types/rules/eslint-prefer-arrow-functions-rules.d.mts.map +1 -0
  315. package/dist/types/rules/eslint-prefer-arrow-functions-rules.mjs +2 -0
  316. package/dist/types/rules/eslint-prefer-arrow-functions-rules.mjs.map +1 -0
  317. package/dist/types/rules/eslint-promise-rules.d.mts +503 -0
  318. package/dist/types/rules/eslint-promise-rules.d.mts.map +1 -0
  319. package/dist/types/rules/eslint-promise-rules.mjs +2 -0
  320. package/dist/types/rules/eslint-promise-rules.mjs.map +1 -0
  321. package/dist/types/rules/eslint-react-hooks-rules.d.mts +70 -0
  322. package/dist/types/rules/eslint-react-hooks-rules.d.mts.map +1 -0
  323. package/dist/types/rules/eslint-react-hooks-rules.mjs +2 -0
  324. package/dist/types/rules/eslint-react-hooks-rules.mjs.map +1 -0
  325. package/dist/types/rules/eslint-react-perf-rules.d.mts +196 -0
  326. package/dist/types/rules/eslint-react-perf-rules.d.mts.map +1 -0
  327. package/dist/types/rules/eslint-react-perf-rules.mjs +2 -0
  328. package/dist/types/rules/eslint-react-perf-rules.mjs.map +1 -0
  329. package/dist/types/rules/eslint-react-refresh-rules.d.mts +51 -0
  330. package/dist/types/rules/eslint-react-refresh-rules.d.mts.map +1 -0
  331. package/dist/types/rules/eslint-react-refresh-rules.mjs +2 -0
  332. package/dist/types/rules/eslint-react-refresh-rules.mjs.map +1 -0
  333. package/dist/types/rules/eslint-react-rules.d.mts +4592 -0
  334. package/dist/types/rules/eslint-react-rules.d.mts.map +1 -0
  335. package/dist/types/rules/eslint-react-rules.mjs +2 -0
  336. package/dist/types/rules/eslint-react-rules.mjs.map +1 -0
  337. package/dist/types/rules/eslint-rules.d.mts +12863 -0
  338. package/dist/types/rules/eslint-rules.d.mts.map +1 -0
  339. package/dist/types/rules/eslint-rules.mjs +2 -0
  340. package/dist/types/rules/eslint-rules.mjs.map +1 -0
  341. package/dist/types/rules/eslint-security-rules.d.mts +253 -0
  342. package/dist/types/rules/eslint-security-rules.d.mts.map +1 -0
  343. package/dist/types/rules/eslint-security-rules.mjs +2 -0
  344. package/dist/types/rules/eslint-security-rules.mjs.map +1 -0
  345. package/dist/types/rules/eslint-strict-dependencies-rules.d.mts +75 -0
  346. package/dist/types/rules/eslint-strict-dependencies-rules.d.mts.map +1 -0
  347. package/dist/types/rules/eslint-strict-dependencies-rules.mjs +2 -0
  348. package/dist/types/rules/eslint-strict-dependencies-rules.mjs.map +1 -0
  349. package/dist/types/rules/eslint-testing-library-rules.d.mts +814 -0
  350. package/dist/types/rules/eslint-testing-library-rules.d.mts.map +1 -0
  351. package/dist/types/rules/eslint-testing-library-rules.mjs +2 -0
  352. package/dist/types/rules/eslint-testing-library-rules.mjs.map +1 -0
  353. package/dist/types/rules/eslint-total-functions-rules.d.mts +197 -0
  354. package/dist/types/rules/eslint-total-functions-rules.d.mts.map +1 -0
  355. package/dist/types/rules/eslint-total-functions-rules.mjs +2 -0
  356. package/dist/types/rules/eslint-total-functions-rules.mjs.map +1 -0
  357. package/dist/types/rules/eslint-tree-shakable-rules.d.mts +19 -0
  358. package/dist/types/rules/eslint-tree-shakable-rules.d.mts.map +1 -0
  359. package/dist/types/rules/eslint-tree-shakable-rules.mjs +2 -0
  360. package/dist/types/rules/eslint-tree-shakable-rules.mjs.map +1 -0
  361. package/dist/types/rules/eslint-unicorn-rules.d.mts +3544 -0
  362. package/dist/types/rules/eslint-unicorn-rules.d.mts.map +1 -0
  363. package/dist/types/rules/eslint-unicorn-rules.mjs +2 -0
  364. package/dist/types/rules/eslint-unicorn-rules.mjs.map +1 -0
  365. package/dist/types/rules/eslint-vitest-rules.d.mts +1461 -0
  366. package/dist/types/rules/eslint-vitest-rules.d.mts.map +1 -0
  367. package/dist/types/rules/eslint-vitest-rules.mjs +2 -0
  368. package/dist/types/rules/eslint-vitest-rules.mjs.map +1 -0
  369. package/dist/types/rules/index.d.mts +25 -0
  370. package/dist/types/rules/index.d.mts.map +1 -0
  371. package/dist/types/rules/index.mjs +2 -0
  372. package/dist/types/rules/index.mjs.map +1 -0
  373. package/dist/types/rules/typescript-eslint-rules.d.mts +9150 -0
  374. package/dist/types/rules/typescript-eslint-rules.d.mts.map +1 -0
  375. package/dist/types/rules/typescript-eslint-rules.mjs +2 -0
  376. package/dist/types/rules/typescript-eslint-rules.mjs.map +1 -0
  377. package/dist/types/types.d.mts +8 -0
  378. package/dist/types/types.d.mts.map +1 -0
  379. package/dist/types/types.mjs +2 -0
  380. package/dist/types/types.mjs.map +1 -0
  381. package/dist/types.d.mts +2 -0
  382. package/package.json +129 -0
  383. package/src/configs/cypress.mts +27 -0
  384. package/src/configs/index.mts +11 -0
  385. package/src/configs/jest.mts +23 -0
  386. package/src/configs/playwright.mts +28 -0
  387. package/src/configs/plugins.mts +123 -0
  388. package/src/configs/preact.mts +17 -0
  389. package/src/configs/react-base.mts +41 -0
  390. package/src/configs/react.mts +17 -0
  391. package/src/configs/testing-library.mts +21 -0
  392. package/src/configs/typescript-without-rules.mts +94 -0
  393. package/src/configs/typescript.mts +91 -0
  394. package/src/configs/vitest.mts +19 -0
  395. package/src/custom-rules/custom.mts +8 -0
  396. package/src/custom-rules/index.mts +2 -0
  397. package/src/custom-rules/no-restricted-syntax2.mts +79 -0
  398. package/src/globals.d.mts +3 -0
  399. package/src/index.mts +5 -0
  400. package/src/plugins/index.mts +2 -0
  401. package/src/plugins/total-functions/index.mts +2 -0
  402. package/src/plugins/total-functions/plugin.mts +8 -0
  403. package/src/plugins/total-functions/rules/common.mts +81 -0
  404. package/src/plugins/total-functions/rules/fp-ts.mts +57 -0
  405. package/src/plugins/total-functions/rules/index.mts +18 -0
  406. package/src/plugins/total-functions/rules/no-enums.mts +26 -0
  407. package/src/plugins/total-functions/rules/no-enums.test.mts +65 -0
  408. package/src/plugins/total-functions/rules/no-hidden-type-assertions.mts +207 -0
  409. package/src/plugins/total-functions/rules/no-hidden-type-assertions.test.mts +287 -0
  410. package/src/plugins/total-functions/rules/no-nested-fp-ts-effects.mts +67 -0
  411. package/src/plugins/total-functions/rules/no-nested-fp-ts-effects.test.mts +150 -0
  412. package/src/plugins/total-functions/rules/no-partial-array-reduce.mts +126 -0
  413. package/src/plugins/total-functions/rules/no-partial-array-reduce.test.mts +270 -0
  414. package/src/plugins/total-functions/rules/no-partial-division.mts +107 -0
  415. package/src/plugins/total-functions/rules/no-partial-division.test.mts +233 -0
  416. package/src/plugins/total-functions/rules/no-partial-string-normalize.mts +133 -0
  417. package/src/plugins/total-functions/rules/no-partial-string-normalize.test.mts +146 -0
  418. package/src/plugins/total-functions/rules/no-partial-url-constructor.mts +100 -0
  419. package/src/plugins/total-functions/rules/no-partial-url-constructor.test.mts +152 -0
  420. package/src/plugins/total-functions/rules/no-premature-fp-ts-effects.mts +51 -0
  421. package/src/plugins/total-functions/rules/no-premature-fp-ts-effects.test.mts +108 -0
  422. package/src/plugins/total-functions/rules/no-unsafe-enum-assignment.mts +19 -0
  423. package/src/plugins/total-functions/rules/no-unsafe-mutable-readonly-assignment.mts +99 -0
  424. package/src/plugins/total-functions/rules/no-unsafe-mutable-readonly-assignment.test.mts +830 -0
  425. package/src/plugins/total-functions/rules/no-unsafe-optional-property-assignment.mts +19 -0
  426. package/src/plugins/total-functions/rules/no-unsafe-readonly-mutable-assignment.mts +99 -0
  427. package/src/plugins/total-functions/rules/no-unsafe-readonly-mutable-assignment.test.mts +626 -0
  428. package/src/plugins/total-functions/rules/no-unsafe-type-assertion.mts +65 -0
  429. package/src/plugins/total-functions/rules/no-unsafe-type-assertion.test.mts +269 -0
  430. package/src/plugins/total-functions/rules/require-strict-mode.mts +65 -0
  431. package/src/plugins/total-functions/rules/require-strict-mode.test.mts +92 -0
  432. package/src/plugins/total-functions/rules/rules.mts +28 -0
  433. package/src/plugins/total-functions/rules/unsafe-assignment-rule.mts +401 -0
  434. package/src/plugins/tree-shakable/index.mts +2 -0
  435. package/src/plugins/tree-shakable/plugin.mts +8 -0
  436. package/src/plugins/tree-shakable/rules/import-star.mts +266 -0
  437. package/src/plugins/tree-shakable/rules/import-star.test.mts +174 -0
  438. package/src/plugins/tree-shakable/rules/index.mts +2 -0
  439. package/src/plugins/tree-shakable/rules/rules.mts +6 -0
  440. package/src/rules/eslint-array-func-rules.mts +10 -0
  441. package/src/rules/eslint-cypress-rules.mts +14 -0
  442. package/src/rules/eslint-functional-rules.mts +148 -0
  443. package/src/rules/eslint-import-rules.mts +124 -0
  444. package/src/rules/eslint-jest-rules.mts +84 -0
  445. package/src/rules/eslint-jsx-a11y-rules.mts +178 -0
  446. package/src/rules/eslint-playwright-rules.mts +63 -0
  447. package/src/rules/eslint-plugin-rules.mts +35 -0
  448. package/src/rules/eslint-prefer-arrow-functions-rules.mts +16 -0
  449. package/src/rules/eslint-promise-rules.mts +26 -0
  450. package/src/rules/eslint-react-hooks-rules.mts +6 -0
  451. package/src/rules/eslint-react-perf-rules.mts +8 -0
  452. package/src/rules/eslint-react-refresh-rules.mts +5 -0
  453. package/src/rules/eslint-react-rules.mts +159 -0
  454. package/src/rules/eslint-rules.mts +462 -0
  455. package/src/rules/eslint-security-rules.mts +18 -0
  456. package/src/rules/eslint-testing-library-rules.mts +35 -0
  457. package/src/rules/eslint-total-functions-rules.mts +22 -0
  458. package/src/rules/eslint-tree-shakable-rules.mts +5 -0
  459. package/src/rules/eslint-unicorn-rules.mts +209 -0
  460. package/src/rules/eslint-vitest-rules.mts +82 -0
  461. package/src/rules/index.mts +22 -0
  462. package/src/rules/typescript-eslint-rules.mts +413 -0
  463. package/src/types/flat-config.mts +13 -0
  464. package/src/types/index.mts +3 -0
  465. package/src/types/rules/eslint-array-func-rules.mts +109 -0
  466. package/src/types/rules/eslint-cypress-rules.mts +221 -0
  467. package/src/types/rules/eslint-deprecation-rules.mts +22 -0
  468. package/src/types/rules/eslint-functional-rules.mts +4071 -0
  469. package/src/types/rules/eslint-import-rules.mts +2251 -0
  470. package/src/types/rules/eslint-jest-rules.mts +1705 -0
  471. package/src/types/rules/eslint-jsx-a11y-rules.mts +1866 -0
  472. package/src/types/rules/eslint-playwright-rules.mts +1402 -0
  473. package/src/types/rules/eslint-plugin-rules.mts +885 -0
  474. package/src/types/rules/eslint-prefer-arrow-functions-rules.mts +89 -0
  475. package/src/types/rules/eslint-promise-rules.mts +547 -0
  476. package/src/types/rules/eslint-react-hooks-rules.mts +78 -0
  477. package/src/types/rules/eslint-react-perf-rules.mts +215 -0
  478. package/src/types/rules/eslint-react-refresh-rules.mts +58 -0
  479. package/src/types/rules/eslint-react-rules.mts +5075 -0
  480. package/src/types/rules/eslint-rules.mts +13614 -0
  481. package/src/types/rules/eslint-security-rules.mts +267 -0
  482. package/src/types/rules/eslint-strict-dependencies-rules.mts +84 -0
  483. package/src/types/rules/eslint-testing-library-rules.mts +887 -0
  484. package/src/types/rules/eslint-total-functions-rules.mts +209 -0
  485. package/src/types/rules/eslint-tree-shakable-rules.mts +20 -0
  486. package/src/types/rules/eslint-unicorn-rules.mts +3796 -0
  487. package/src/types/rules/eslint-vitest-rules.mts +1575 -0
  488. package/src/types/rules/index.mts +24 -0
  489. package/src/types/rules/typescript-eslint-rules.mts +9992 -0
  490. package/src/types/types.mts +7 -0
@@ -0,0 +1,3544 @@
1
+ import { type Linter } from 'eslint';
2
+ type SpreadOptionsIfIsArray<T extends readonly [Linter.RuleSeverity, unknown]> = T[1] extends readonly unknown[] ? readonly [Linter.RuleSeverity, ...T[1]] : T;
3
+ /**
4
+ * Improve regexes by making them shorter, consistent, and safer.
5
+ *
6
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/better-regex.md
7
+ *
8
+ * ```md
9
+ * | key | value |
10
+ * | :---------- | :--------- |
11
+ * | type | suggestion |
12
+ * | deprecated | false |
13
+ * | fixable | code |
14
+ * | recommended | false |
15
+ * ```
16
+ */
17
+ declare namespace BetterRegex {
18
+ /**
19
+ * ### schema
20
+ *
21
+ * ```json
22
+ * [
23
+ * {
24
+ * "type": "object",
25
+ * "additionalProperties": false,
26
+ * "properties": {
27
+ * "sortCharacterClasses": {
28
+ * "type": "boolean",
29
+ * "default": true
30
+ * }
31
+ * }
32
+ * }
33
+ * ]
34
+ * ```
35
+ */
36
+ type Options = {
37
+ readonly sortCharacterClasses?: boolean;
38
+ };
39
+ type RuleEntry = Linter.StringSeverity | SpreadOptionsIfIsArray<readonly [Linter.RuleSeverity, Options]>;
40
+ }
41
+ /**
42
+ * Enforce a specific parameter name in catch clauses.
43
+ *
44
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/catch-error-name.md
45
+ *
46
+ * ```md
47
+ * | key | value |
48
+ * | :---------- | :--------- |
49
+ * | type | suggestion |
50
+ * | deprecated | false |
51
+ * | fixable | code |
52
+ * | recommended | true |
53
+ * ```
54
+ */
55
+ declare namespace CatchErrorName {
56
+ /**
57
+ * ### schema
58
+ *
59
+ * ```json
60
+ * [
61
+ * {
62
+ * "type": "object",
63
+ * "additionalProperties": false,
64
+ * "properties": {
65
+ * "name": {
66
+ * "type": "string"
67
+ * },
68
+ * "ignore": {
69
+ * "type": "array",
70
+ * "uniqueItems": true
71
+ * }
72
+ * }
73
+ * }
74
+ * ]
75
+ * ```
76
+ */
77
+ type Options = {
78
+ readonly name?: string;
79
+ readonly ignore?: readonly unknown[];
80
+ };
81
+ type RuleEntry = Linter.StringSeverity | SpreadOptionsIfIsArray<readonly [Linter.RuleSeverity, Options]>;
82
+ }
83
+ /**
84
+ * Use destructured variables over properties.
85
+ *
86
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/consistent-destructuring.md
87
+ *
88
+ * ```md
89
+ * | key | value |
90
+ * | :------------- | :--------- |
91
+ * | type | suggestion |
92
+ * | deprecated | false |
93
+ * | fixable | code |
94
+ * | hasSuggestions | true |
95
+ * | recommended | false |
96
+ * ```
97
+ */
98
+ declare namespace ConsistentDestructuring {
99
+ type RuleEntry = Linter.RuleSeverity;
100
+ }
101
+ /**
102
+ * Prefer consistent types when spreading a ternary in an array literal.
103
+ *
104
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/consistent-empty-array-spread.md
105
+ *
106
+ * ```md
107
+ * | key | value |
108
+ * | :---------- | :--------- |
109
+ * | type | suggestion |
110
+ * | deprecated | false |
111
+ * | fixable | code |
112
+ * | recommended | true |
113
+ * ```
114
+ */
115
+ declare namespace ConsistentEmptyArraySpread {
116
+ type RuleEntry = Linter.RuleSeverity;
117
+ }
118
+ /**
119
+ * Enforce consistent style for element existence checks with `indexOf()`,
120
+ * `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
121
+ *
122
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/consistent-existence-index-check.md
123
+ *
124
+ * ```md
125
+ * | key | value |
126
+ * | :---------- | :------ |
127
+ * | type | problem |
128
+ * | deprecated | false |
129
+ * | fixable | code |
130
+ * | recommended | true |
131
+ * ```
132
+ */
133
+ declare namespace ConsistentExistenceIndexCheck {
134
+ type RuleEntry = Linter.RuleSeverity;
135
+ }
136
+ /**
137
+ * Move function definitions to the highest possible scope.
138
+ *
139
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/consistent-function-scoping.md
140
+ *
141
+ * ```md
142
+ * | key | value |
143
+ * | :---------- | :--------- |
144
+ * | type | suggestion |
145
+ * | deprecated | false |
146
+ * | recommended | true |
147
+ * ```
148
+ */
149
+ declare namespace ConsistentFunctionScoping {
150
+ /**
151
+ * ### schema
152
+ *
153
+ * ```json
154
+ * [
155
+ * {
156
+ * "type": "object",
157
+ * "additionalProperties": false,
158
+ * "properties": {
159
+ * "checkArrowFunctions": {
160
+ * "type": "boolean",
161
+ * "default": true
162
+ * }
163
+ * }
164
+ * }
165
+ * ]
166
+ * ```
167
+ */
168
+ type Options = {
169
+ readonly checkArrowFunctions?: boolean;
170
+ };
171
+ type RuleEntry = Linter.StringSeverity | SpreadOptionsIfIsArray<readonly [Linter.RuleSeverity, Options]>;
172
+ }
173
+ /**
174
+ * Enforce correct `Error` subclassing.
175
+ *
176
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/custom-error-definition.md
177
+ *
178
+ * ```md
179
+ * | key | value |
180
+ * | :---------- | :------ |
181
+ * | type | problem |
182
+ * | deprecated | false |
183
+ * | fixable | code |
184
+ * | recommended | false |
185
+ * ```
186
+ */
187
+ declare namespace CustomErrorDefinition {
188
+ type RuleEntry = Linter.RuleSeverity;
189
+ }
190
+ /**
191
+ * Enforce no spaces between braces.
192
+ *
193
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/empty-brace-spaces.md
194
+ *
195
+ * ```md
196
+ * | key | value |
197
+ * | :---------- | :--------- |
198
+ * | type | layout |
199
+ * | deprecated | false |
200
+ * | fixable | whitespace |
201
+ * | recommended | true |
202
+ * ```
203
+ */
204
+ declare namespace EmptyBraceSpaces {
205
+ type RuleEntry = Linter.RuleSeverity;
206
+ }
207
+ /**
208
+ * Enforce passing a `message` value when creating a built-in error.
209
+ *
210
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/error-message.md
211
+ *
212
+ * ```md
213
+ * | key | value |
214
+ * | :---------- | :------ |
215
+ * | type | problem |
216
+ * | deprecated | false |
217
+ * | recommended | true |
218
+ * ```
219
+ */
220
+ declare namespace ErrorMessage {
221
+ type RuleEntry = Linter.RuleSeverity;
222
+ }
223
+ /**
224
+ * Require escape sequences to use uppercase values.
225
+ *
226
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/escape-case.md
227
+ *
228
+ * ```md
229
+ * | key | value |
230
+ * | :---------- | :--------- |
231
+ * | type | suggestion |
232
+ * | deprecated | false |
233
+ * | fixable | code |
234
+ * | recommended | true |
235
+ * ```
236
+ */
237
+ declare namespace EscapeCase {
238
+ type RuleEntry = Linter.RuleSeverity;
239
+ }
240
+ /**
241
+ * Add expiration conditions to TODO comments.
242
+ *
243
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/expiring-todo-comments.md
244
+ *
245
+ * ```md
246
+ * | key | value |
247
+ * | :---------- | :--------- |
248
+ * | type | suggestion |
249
+ * | deprecated | false |
250
+ * | recommended | true |
251
+ * ```
252
+ */
253
+ declare namespace ExpiringTodoComments {
254
+ /**
255
+ * ### schema
256
+ *
257
+ * ```json
258
+ * [
259
+ * {
260
+ * "type": "object",
261
+ * "additionalProperties": false,
262
+ * "properties": {
263
+ * "terms": {
264
+ * "type": "array",
265
+ * "items": {
266
+ * "type": "string"
267
+ * }
268
+ * },
269
+ * "ignore": {
270
+ * "type": "array",
271
+ * "uniqueItems": true
272
+ * },
273
+ * "ignoreDatesOnPullRequests": {
274
+ * "type": "boolean",
275
+ * "default": true
276
+ * },
277
+ * "allowWarningComments": {
278
+ * "type": "boolean",
279
+ * "default": true
280
+ * },
281
+ * "date": {
282
+ * "type": "string",
283
+ * "format": "date"
284
+ * }
285
+ * }
286
+ * }
287
+ * ]
288
+ * ```
289
+ */
290
+ type Options = {
291
+ readonly terms?: readonly string[];
292
+ readonly ignore?: readonly unknown[];
293
+ readonly ignoreDatesOnPullRequests?: boolean;
294
+ readonly allowWarningComments?: boolean;
295
+ readonly date?: string;
296
+ };
297
+ type RuleEntry = Linter.StringSeverity | SpreadOptionsIfIsArray<readonly [Linter.RuleSeverity, Options]>;
298
+ }
299
+ /**
300
+ * Enforce explicitly comparing the `length` or `size` property of a value.
301
+ *
302
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/explicit-length-check.md
303
+ *
304
+ * ```md
305
+ * | key | value |
306
+ * | :------------- | :------ |
307
+ * | type | problem |
308
+ * | deprecated | false |
309
+ * | fixable | code |
310
+ * | hasSuggestions | true |
311
+ * | recommended | true |
312
+ * ```
313
+ */
314
+ declare namespace ExplicitLengthCheck {
315
+ /**
316
+ * ### schema
317
+ *
318
+ * ```json
319
+ * [
320
+ * {
321
+ * "type": "object",
322
+ * "additionalProperties": false,
323
+ * "properties": {
324
+ * "non-zero": {
325
+ * "enum": [
326
+ * "greater-than",
327
+ * "not-equal"
328
+ * ],
329
+ * "default": "greater-than"
330
+ * }
331
+ * }
332
+ * }
333
+ * ]
334
+ * ```
335
+ */
336
+ type Options = {
337
+ readonly 'non-zero'?: 'greater-than' | 'not-equal';
338
+ };
339
+ type RuleEntry = Linter.StringSeverity | SpreadOptionsIfIsArray<readonly [Linter.RuleSeverity, Options]>;
340
+ }
341
+ /**
342
+ * Enforce a case style for filenames.
343
+ *
344
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/filename-case.md
345
+ *
346
+ * ```md
347
+ * | key | value |
348
+ * | :---------- | :--------- |
349
+ * | type | suggestion |
350
+ * | deprecated | false |
351
+ * | recommended | true |
352
+ * ```
353
+ */
354
+ declare namespace FilenameCase {
355
+ /**
356
+ * ### schema
357
+ *
358
+ * ```json
359
+ * [
360
+ * {
361
+ * "oneOf": [
362
+ * {
363
+ * "properties": {
364
+ * "case": {
365
+ * "enum": [
366
+ * "camelCase",
367
+ * "snakeCase",
368
+ * "kebabCase",
369
+ * "pascalCase"
370
+ * ]
371
+ * },
372
+ * "ignore": {
373
+ * "type": "array",
374
+ * "uniqueItems": true
375
+ * },
376
+ * "multipleFileExtensions": {
377
+ * "type": "boolean"
378
+ * }
379
+ * },
380
+ * "additionalProperties": false
381
+ * },
382
+ * {
383
+ * "properties": {
384
+ * "cases": {
385
+ * "properties": {
386
+ * "camelCase": {
387
+ * "type": "boolean"
388
+ * },
389
+ * "snakeCase": {
390
+ * "type": "boolean"
391
+ * },
392
+ * "kebabCase": {
393
+ * "type": "boolean"
394
+ * },
395
+ * "pascalCase": {
396
+ * "type": "boolean"
397
+ * }
398
+ * },
399
+ * "additionalProperties": false
400
+ * },
401
+ * "ignore": {
402
+ * "type": "array",
403
+ * "uniqueItems": true
404
+ * },
405
+ * "multipleFileExtensions": {
406
+ * "type": "boolean"
407
+ * }
408
+ * },
409
+ * "additionalProperties": false
410
+ * }
411
+ * ]
412
+ * }
413
+ * ]
414
+ * ```
415
+ */
416
+ type Options = {
417
+ readonly case?: 'camelCase' | 'kebabCase' | 'pascalCase' | 'snakeCase';
418
+ readonly ignore?: readonly unknown[];
419
+ readonly multipleFileExtensions?: boolean;
420
+ } | {
421
+ readonly cases?: {
422
+ readonly camelCase?: boolean;
423
+ readonly snakeCase?: boolean;
424
+ readonly kebabCase?: boolean;
425
+ readonly pascalCase?: boolean;
426
+ };
427
+ readonly ignore?: readonly unknown[];
428
+ readonly multipleFileExtensions?: boolean;
429
+ };
430
+ type RuleEntry = Linter.StringSeverity | SpreadOptionsIfIsArray<readonly [Linter.RuleSeverity, Options]>;
431
+ }
432
+ /**
433
+ * Enforce specific import styles per module.
434
+ *
435
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/import-style.md
436
+ *
437
+ * ```md
438
+ * | key | value |
439
+ * | :---------- | :------ |
440
+ * | type | problem |
441
+ * | deprecated | false |
442
+ * | recommended | true |
443
+ * ```
444
+ */
445
+ declare namespace ImportStyle {
446
+ /**
447
+ * ### schema
448
+ *
449
+ * ```json
450
+ * {
451
+ * "type": "array",
452
+ * "additionalItems": false,
453
+ * "items": [
454
+ * {
455
+ * "type": "object",
456
+ * "additionalProperties": false,
457
+ * "properties": {
458
+ * "checkImport": {
459
+ * "type": "boolean"
460
+ * },
461
+ * "checkDynamicImport": {
462
+ * "type": "boolean"
463
+ * },
464
+ * "checkExportFrom": {
465
+ * "type": "boolean"
466
+ * },
467
+ * "checkRequire": {
468
+ * "type": "boolean"
469
+ * },
470
+ * "extendDefaultStyles": {
471
+ * "type": "boolean"
472
+ * },
473
+ * "styles": {
474
+ * "$ref": "#/definitions/moduleStyles"
475
+ * }
476
+ * }
477
+ * }
478
+ * ],
479
+ * "definitions": {
480
+ * "moduleStyles": {
481
+ * "type": "object",
482
+ * "additionalProperties": {
483
+ * "$ref": "#/definitions/styles"
484
+ * }
485
+ * },
486
+ * "styles": {
487
+ * "anyOf": [
488
+ * {
489
+ * "enum": [false]
490
+ * },
491
+ * {
492
+ * "$ref": "#/definitions/booleanObject"
493
+ * }
494
+ * ]
495
+ * },
496
+ * "booleanObject": {
497
+ * "type": "object",
498
+ * "additionalProperties": {
499
+ * "type": "boolean"
500
+ * }
501
+ * }
502
+ * }
503
+ * }
504
+ * ```
505
+ */
506
+ type Options = readonly [
507
+ {
508
+ readonly checkImport?: boolean;
509
+ readonly checkDynamicImport?: boolean;
510
+ readonly checkExportFrom?: boolean;
511
+ readonly checkRequire?: boolean;
512
+ readonly extendDefaultStyles?: boolean;
513
+ readonly styles?: ModuleStyles;
514
+ }
515
+ ] | readonly [];
516
+ type Styles = BooleanObject | false;
517
+ type ModuleStyles = Readonly<Record<string, Styles>>;
518
+ type BooleanObject = Readonly<Partial<Record<'default' | 'named' | 'namespace' | 'unassigned', boolean>>>;
519
+ type RuleEntry = Linter.StringSeverity | SpreadOptionsIfIsArray<readonly [Linter.RuleSeverity, Options]>;
520
+ }
521
+ /**
522
+ * Enforce the use of `new` for all builtins, except `String`, `Number`,
523
+ * `Boolean`, `Symbol` and `BigInt`.
524
+ *
525
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/new-for-builtins.md
526
+ *
527
+ * ```md
528
+ * | key | value |
529
+ * | :---------- | :--------- |
530
+ * | type | suggestion |
531
+ * | deprecated | false |
532
+ * | fixable | code |
533
+ * | recommended | true |
534
+ * ```
535
+ */
536
+ declare namespace NewForBuiltins {
537
+ type RuleEntry = Linter.RuleSeverity;
538
+ }
539
+ /**
540
+ * Enforce specifying rules to disable in `eslint-disable` comments.
541
+ *
542
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-abusive-eslint-disable.md
543
+ *
544
+ * ```md
545
+ * | key | value |
546
+ * | :---------- | :--------- |
547
+ * | type | suggestion |
548
+ * | deprecated | false |
549
+ * | recommended | true |
550
+ * ```
551
+ */
552
+ declare namespace NoAbusiveEslintDisable {
553
+ type RuleEntry = Linter.RuleSeverity;
554
+ }
555
+ /**
556
+ * Disallow anonymous functions and classes as the default export.
557
+ *
558
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-anonymous-default-export.md
559
+ *
560
+ * ```md
561
+ * | key | value |
562
+ * | :------------- | :--------- |
563
+ * | type | suggestion |
564
+ * | deprecated | false |
565
+ * | hasSuggestions | true |
566
+ * | recommended | true |
567
+ * ```
568
+ */
569
+ declare namespace NoAnonymousDefaultExport {
570
+ type RuleEntry = Linter.RuleSeverity;
571
+ }
572
+ /**
573
+ * Prevent passing a function reference directly to iterator methods.
574
+ *
575
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-array-callback-reference.md
576
+ *
577
+ * ```md
578
+ * | key | value |
579
+ * | :------------- | :------ |
580
+ * | type | problem |
581
+ * | deprecated | false |
582
+ * | hasSuggestions | true |
583
+ * | recommended | true |
584
+ * ```
585
+ */
586
+ declare namespace NoArrayCallbackReference {
587
+ type RuleEntry = Linter.RuleSeverity;
588
+ }
589
+ /**
590
+ * Prefer `for…of` over the `forEach` method.
591
+ *
592
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-array-for-each.md
593
+ *
594
+ * ```md
595
+ * | key | value |
596
+ * | :------------- | :--------- |
597
+ * | type | suggestion |
598
+ * | deprecated | false |
599
+ * | fixable | code |
600
+ * | hasSuggestions | true |
601
+ * | recommended | true |
602
+ * ```
603
+ */
604
+ declare namespace NoArrayForEach {
605
+ type RuleEntry = Linter.RuleSeverity;
606
+ }
607
+ /**
608
+ * Disallow using the `this` argument in array methods.
609
+ *
610
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-array-method-this-argument.md
611
+ *
612
+ * ```md
613
+ * | key | value |
614
+ * | :------------- | :--------- |
615
+ * | type | suggestion |
616
+ * | deprecated | false |
617
+ * | fixable | code |
618
+ * | hasSuggestions | true |
619
+ * | recommended | true |
620
+ * ```
621
+ */
622
+ declare namespace NoArrayMethodThisArgument {
623
+ type RuleEntry = Linter.RuleSeverity;
624
+ }
625
+ /**
626
+ * Enforce combining multiple `Array#push()` into one call.
627
+ *
628
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-array-push-push.md
629
+ *
630
+ * ```md
631
+ * | key | value |
632
+ * | :------------- | :--------- |
633
+ * | type | suggestion |
634
+ * | deprecated | false |
635
+ * | fixable | code |
636
+ * | hasSuggestions | true |
637
+ * | recommended | true |
638
+ * ```
639
+ */
640
+ declare namespace NoArrayPushPush {
641
+ /**
642
+ * ### schema
643
+ *
644
+ * ```json
645
+ * [
646
+ * {
647
+ * "type": "object",
648
+ * "additionalProperties": false,
649
+ * "properties": {
650
+ * "ignore": {
651
+ * "type": "array",
652
+ * "uniqueItems": true
653
+ * }
654
+ * }
655
+ * }
656
+ * ]
657
+ * ```
658
+ */
659
+ type Options = {
660
+ readonly ignore?: readonly unknown[];
661
+ };
662
+ type RuleEntry = Linter.StringSeverity | SpreadOptionsIfIsArray<readonly [Linter.RuleSeverity, Options]>;
663
+ }
664
+ /**
665
+ * Disallow `Array#reduce()` and `Array#reduceRight()`.
666
+ *
667
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-array-reduce.md
668
+ *
669
+ * ```md
670
+ * | key | value |
671
+ * | :---------- | :--------- |
672
+ * | type | suggestion |
673
+ * | deprecated | false |
674
+ * | recommended | true |
675
+ * ```
676
+ */
677
+ declare namespace NoArrayReduce {
678
+ /**
679
+ * ### schema
680
+ *
681
+ * ```json
682
+ * [
683
+ * {
684
+ * "type": "object",
685
+ * "additionalProperties": false,
686
+ * "properties": {
687
+ * "allowSimpleOperations": {
688
+ * "type": "boolean",
689
+ * "default": true
690
+ * }
691
+ * }
692
+ * }
693
+ * ]
694
+ * ```
695
+ */
696
+ type Options = {
697
+ readonly allowSimpleOperations?: boolean;
698
+ };
699
+ type RuleEntry = Linter.StringSeverity | SpreadOptionsIfIsArray<readonly [Linter.RuleSeverity, Options]>;
700
+ }
701
+ /**
702
+ * Disallow member access from await expression.
703
+ *
704
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-await-expression-member.md
705
+ *
706
+ * ```md
707
+ * | key | value |
708
+ * | :---------- | :--------- |
709
+ * | type | suggestion |
710
+ * | deprecated | false |
711
+ * | fixable | code |
712
+ * | recommended | true |
713
+ * ```
714
+ */
715
+ declare namespace NoAwaitExpressionMember {
716
+ type RuleEntry = Linter.RuleSeverity;
717
+ }
718
+ /**
719
+ * Disallow using `await` in `Promise` method parameters.
720
+ *
721
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-await-in-promise-methods.md
722
+ *
723
+ * ```md
724
+ * | key | value |
725
+ * | :------------- | :--------- |
726
+ * | type | suggestion |
727
+ * | deprecated | false |
728
+ * | hasSuggestions | true |
729
+ * | recommended | true |
730
+ * ```
731
+ */
732
+ declare namespace NoAwaitInPromiseMethods {
733
+ type RuleEntry = Linter.RuleSeverity;
734
+ }
735
+ /**
736
+ * Do not use leading/trailing space between `console.log` parameters.
737
+ *
738
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-console-spaces.md
739
+ *
740
+ * ```md
741
+ * | key | value |
742
+ * | :---------- | :--------- |
743
+ * | type | suggestion |
744
+ * | deprecated | false |
745
+ * | fixable | code |
746
+ * | recommended | true |
747
+ * ```
748
+ */
749
+ declare namespace NoConsoleSpaces {
750
+ type RuleEntry = Linter.RuleSeverity;
751
+ }
752
+ /**
753
+ * Do not use `document.cookie` directly.
754
+ *
755
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-document-cookie.md
756
+ *
757
+ * ```md
758
+ * | key | value |
759
+ * | :---------- | :------ |
760
+ * | type | problem |
761
+ * | deprecated | false |
762
+ * | recommended | true |
763
+ * ```
764
+ */
765
+ declare namespace NoDocumentCookie {
766
+ type RuleEntry = Linter.RuleSeverity;
767
+ }
768
+ /**
769
+ * Disallow empty files.
770
+ *
771
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-empty-file.md
772
+ *
773
+ * ```md
774
+ * | key | value |
775
+ * | :---------- | :--------- |
776
+ * | type | suggestion |
777
+ * | deprecated | false |
778
+ * | recommended | true |
779
+ * ```
780
+ */
781
+ declare namespace NoEmptyFile {
782
+ type RuleEntry = Linter.RuleSeverity;
783
+ }
784
+ /**
785
+ * Do not use a `for` loop that can be replaced with a `for-of` loop.
786
+ *
787
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-for-loop.md
788
+ *
789
+ * ```md
790
+ * | key | value |
791
+ * | :------------- | :--------- |
792
+ * | type | suggestion |
793
+ * | deprecated | false |
794
+ * | fixable | code |
795
+ * | hasSuggestions | true |
796
+ * | recommended | true |
797
+ * ```
798
+ */
799
+ declare namespace NoForLoop {
800
+ type RuleEntry = Linter.RuleSeverity;
801
+ }
802
+ /**
803
+ * Enforce the use of Unicode escapes instead of hexadecimal escapes.
804
+ *
805
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-hex-escape.md
806
+ *
807
+ * ```md
808
+ * | key | value |
809
+ * | :---------- | :--------- |
810
+ * | type | suggestion |
811
+ * | deprecated | false |
812
+ * | fixable | code |
813
+ * | recommended | true |
814
+ * ```
815
+ */
816
+ declare namespace NoHexEscape {
817
+ type RuleEntry = Linter.RuleSeverity;
818
+ }
819
+ /**
820
+ * Require `Array.isArray()` instead of `instanceof Array`.
821
+ *
822
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-instanceof-array.md
823
+ *
824
+ * ```md
825
+ * | key | value |
826
+ * | :---------- | :--------- |
827
+ * | type | suggestion |
828
+ * | deprecated | false |
829
+ * | fixable | code |
830
+ * | recommended | true |
831
+ * ```
832
+ */
833
+ declare namespace NoInstanceofArray {
834
+ type RuleEntry = Linter.RuleSeverity;
835
+ }
836
+ /**
837
+ * Disallow invalid options in `fetch()` and `new Request()`.
838
+ *
839
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-invalid-fetch-options.md
840
+ *
841
+ * ```md
842
+ * | key | value |
843
+ * | :---------- | :------ |
844
+ * | type | problem |
845
+ * | deprecated | false |
846
+ * | recommended | true |
847
+ * ```
848
+ */
849
+ declare namespace NoInvalidFetchOptions {
850
+ type RuleEntry = Linter.RuleSeverity;
851
+ }
852
+ /**
853
+ * Prevent calling `EventTarget#removeEventListener()` with the result of an
854
+ * expression.
855
+ *
856
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-invalid-remove-event-listener.md
857
+ *
858
+ * ```md
859
+ * | key | value |
860
+ * | :---------- | :------ |
861
+ * | type | problem |
862
+ * | deprecated | false |
863
+ * | recommended | true |
864
+ * ```
865
+ */
866
+ declare namespace NoInvalidRemoveEventListener {
867
+ type RuleEntry = Linter.RuleSeverity;
868
+ }
869
+ /**
870
+ * Disallow identifiers starting with `new` or `class`.
871
+ *
872
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-keyword-prefix.md
873
+ *
874
+ * ```md
875
+ * | key | value |
876
+ * | :---------- | :--------- |
877
+ * | type | suggestion |
878
+ * | deprecated | false |
879
+ * | recommended | false |
880
+ * ```
881
+ */
882
+ declare namespace NoKeywordPrefix {
883
+ /**
884
+ * ### schema
885
+ *
886
+ * ```json
887
+ * [
888
+ * {
889
+ * "type": "object",
890
+ * "additionalProperties": false,
891
+ * "properties": {
892
+ * "disallowedPrefixes": {
893
+ * "type": "array",
894
+ * "items": [
895
+ * {
896
+ * "type": "string"
897
+ * }
898
+ * ],
899
+ * "minItems": 0,
900
+ * "uniqueItems": true
901
+ * },
902
+ * "checkProperties": {
903
+ * "type": "boolean"
904
+ * },
905
+ * "onlyCamelCase": {
906
+ * "type": "boolean"
907
+ * }
908
+ * }
909
+ * }
910
+ * ]
911
+ * ```
912
+ */
913
+ type Options = {
914
+ /** @minItems 0 */
915
+ readonly disallowedPrefixes?: readonly [] | readonly [string];
916
+ readonly checkProperties?: boolean;
917
+ readonly onlyCamelCase?: boolean;
918
+ };
919
+ type RuleEntry = Linter.StringSeverity | SpreadOptionsIfIsArray<readonly [Linter.RuleSeverity, Options]>;
920
+ }
921
+ /**
922
+ * Disallow using `.length` as the `end` argument of
923
+ * `{Array,String,TypedArray}#slice()`.
924
+ *
925
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-length-as-slice-end.md
926
+ *
927
+ * ```md
928
+ * | key | value |
929
+ * | :---------- | :--------- |
930
+ * | type | suggestion |
931
+ * | deprecated | false |
932
+ * | fixable | code |
933
+ * | recommended | true |
934
+ * ```
935
+ */
936
+ declare namespace NoLengthAsSliceEnd {
937
+ type RuleEntry = Linter.RuleSeverity;
938
+ }
939
+ /**
940
+ * Disallow `if` statements as the only statement in `if` blocks without `else`.
941
+ *
942
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-lonely-if.md
943
+ *
944
+ * ```md
945
+ * | key | value |
946
+ * | :---------- | :--------- |
947
+ * | type | suggestion |
948
+ * | deprecated | false |
949
+ * | fixable | code |
950
+ * | recommended | true |
951
+ * ```
952
+ */
953
+ declare namespace NoLonelyIf {
954
+ type RuleEntry = Linter.RuleSeverity;
955
+ }
956
+ /**
957
+ * Disallow a magic number as the `depth` argument in `Array#flat(…).`
958
+ *
959
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-magic-array-flat-depth.md
960
+ *
961
+ * ```md
962
+ * | key | value |
963
+ * | :---------- | :--------- |
964
+ * | type | suggestion |
965
+ * | deprecated | false |
966
+ * | recommended | true |
967
+ * ```
968
+ */
969
+ declare namespace NoMagicArrayFlatDepth {
970
+ type RuleEntry = Linter.RuleSeverity;
971
+ }
972
+ /**
973
+ * Disallow negated conditions.
974
+ *
975
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-negated-condition.md
976
+ *
977
+ * ```md
978
+ * | key | value |
979
+ * | :---------- | :--------- |
980
+ * | type | suggestion |
981
+ * | deprecated | false |
982
+ * | fixable | code |
983
+ * | recommended | true |
984
+ * ```
985
+ */
986
+ declare namespace NoNegatedCondition {
987
+ type RuleEntry = Linter.RuleSeverity;
988
+ }
989
+ /**
990
+ * Disallow negated expression in equality check.
991
+ *
992
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-negation-in-equality-check.md
993
+ *
994
+ * ```md
995
+ * | key | value |
996
+ * | :------------- | :------ |
997
+ * | type | problem |
998
+ * | deprecated | false |
999
+ * | hasSuggestions | true |
1000
+ * | recommended | true |
1001
+ * ```
1002
+ */
1003
+ declare namespace NoNegationInEqualityCheck {
1004
+ type RuleEntry = Linter.RuleSeverity;
1005
+ }
1006
+ /**
1007
+ * Disallow nested ternary expressions.
1008
+ *
1009
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-nested-ternary.md
1010
+ *
1011
+ * ```md
1012
+ * | key | value |
1013
+ * | :---------- | :--------- |
1014
+ * | type | suggestion |
1015
+ * | deprecated | false |
1016
+ * | fixable | code |
1017
+ * | recommended | true |
1018
+ * ```
1019
+ */
1020
+ declare namespace NoNestedTernary {
1021
+ type RuleEntry = Linter.RuleSeverity;
1022
+ }
1023
+ /**
1024
+ * Disallow `new Array()`.
1025
+ *
1026
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-new-array.md
1027
+ *
1028
+ * ```md
1029
+ * | key | value |
1030
+ * | :------------- | :--------- |
1031
+ * | type | suggestion |
1032
+ * | deprecated | false |
1033
+ * | fixable | code |
1034
+ * | hasSuggestions | true |
1035
+ * | recommended | true |
1036
+ * ```
1037
+ */
1038
+ declare namespace NoNewArray {
1039
+ type RuleEntry = Linter.RuleSeverity;
1040
+ }
1041
+ /**
1042
+ * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the
1043
+ * deprecated `new Buffer()`.
1044
+ *
1045
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-new-buffer.md
1046
+ *
1047
+ * ```md
1048
+ * | key | value |
1049
+ * | :------------- | :------ |
1050
+ * | type | problem |
1051
+ * | deprecated | false |
1052
+ * | fixable | code |
1053
+ * | hasSuggestions | true |
1054
+ * | recommended | true |
1055
+ * ```
1056
+ */
1057
+ declare namespace NoNewBuffer {
1058
+ type RuleEntry = Linter.RuleSeverity;
1059
+ }
1060
+ /**
1061
+ * Disallow the use of the `null` literal.
1062
+ *
1063
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-null.md
1064
+ *
1065
+ * ```md
1066
+ * | key | value |
1067
+ * | :------------- | :--------- |
1068
+ * | type | suggestion |
1069
+ * | deprecated | false |
1070
+ * | fixable | code |
1071
+ * | hasSuggestions | true |
1072
+ * | recommended | true |
1073
+ * ```
1074
+ */
1075
+ declare namespace NoNull {
1076
+ /**
1077
+ * ### schema
1078
+ *
1079
+ * ```json
1080
+ * [
1081
+ * {
1082
+ * "type": "object",
1083
+ * "additionalProperties": false,
1084
+ * "properties": {
1085
+ * "checkStrictEquality": {
1086
+ * "type": "boolean",
1087
+ * "default": false
1088
+ * }
1089
+ * }
1090
+ * }
1091
+ * ]
1092
+ * ```
1093
+ */
1094
+ type Options = {
1095
+ readonly checkStrictEquality?: boolean;
1096
+ };
1097
+ type RuleEntry = Linter.StringSeverity | SpreadOptionsIfIsArray<readonly [Linter.RuleSeverity, Options]>;
1098
+ }
1099
+ /**
1100
+ * Disallow the use of objects as default parameters.
1101
+ *
1102
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-object-as-default-parameter.md
1103
+ *
1104
+ * ```md
1105
+ * | key | value |
1106
+ * | :---------- | :------ |
1107
+ * | type | problem |
1108
+ * | deprecated | false |
1109
+ * | recommended | true |
1110
+ * ```
1111
+ */
1112
+ declare namespace NoObjectAsDefaultParameter {
1113
+ type RuleEntry = Linter.RuleSeverity;
1114
+ }
1115
+ /**
1116
+ * Disallow `process.exit()`.
1117
+ *
1118
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-process-exit.md
1119
+ *
1120
+ * ```md
1121
+ * | key | value |
1122
+ * | :---------- | :--------- |
1123
+ * | type | suggestion |
1124
+ * | deprecated | false |
1125
+ * | recommended | true |
1126
+ * ```
1127
+ */
1128
+ declare namespace NoProcessExit {
1129
+ type RuleEntry = Linter.RuleSeverity;
1130
+ }
1131
+ /**
1132
+ * Disallow passing single-element arrays to `Promise` methods.
1133
+ *
1134
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-single-promise-in-promise-methods.md
1135
+ *
1136
+ * ```md
1137
+ * | key | value |
1138
+ * | :------------- | :--------- |
1139
+ * | type | suggestion |
1140
+ * | deprecated | false |
1141
+ * | fixable | code |
1142
+ * | hasSuggestions | true |
1143
+ * | recommended | true |
1144
+ * ```
1145
+ */
1146
+ declare namespace NoSinglePromiseInPromiseMethods {
1147
+ type RuleEntry = Linter.RuleSeverity;
1148
+ }
1149
+ /**
1150
+ * Disallow classes that only have static members.
1151
+ *
1152
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-static-only-class.md
1153
+ *
1154
+ * ```md
1155
+ * | key | value |
1156
+ * | :---------- | :--------- |
1157
+ * | type | suggestion |
1158
+ * | deprecated | false |
1159
+ * | fixable | code |
1160
+ * | recommended | true |
1161
+ * ```
1162
+ */
1163
+ declare namespace NoStaticOnlyClass {
1164
+ type RuleEntry = Linter.RuleSeverity;
1165
+ }
1166
+ /**
1167
+ * Disallow `then` property.
1168
+ *
1169
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-thenable.md
1170
+ *
1171
+ * ```md
1172
+ * | key | value |
1173
+ * | :---------- | :------ |
1174
+ * | type | problem |
1175
+ * | deprecated | false |
1176
+ * | recommended | true |
1177
+ * ```
1178
+ */
1179
+ declare namespace NoThenable {
1180
+ type RuleEntry = Linter.RuleSeverity;
1181
+ }
1182
+ /**
1183
+ * Disallow assigning `this` to a variable.
1184
+ *
1185
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-this-assignment.md
1186
+ *
1187
+ * ```md
1188
+ * | key | value |
1189
+ * | :---------- | :--------- |
1190
+ * | type | suggestion |
1191
+ * | deprecated | false |
1192
+ * | recommended | true |
1193
+ * ```
1194
+ */
1195
+ declare namespace NoThisAssignment {
1196
+ type RuleEntry = Linter.RuleSeverity;
1197
+ }
1198
+ /**
1199
+ * Disallow comparing `undefined` using `typeof`.
1200
+ *
1201
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-typeof-undefined.md
1202
+ *
1203
+ * ```md
1204
+ * | key | value |
1205
+ * | :------------- | :--------- |
1206
+ * | type | suggestion |
1207
+ * | deprecated | false |
1208
+ * | fixable | code |
1209
+ * | hasSuggestions | true |
1210
+ * | recommended | true |
1211
+ * ```
1212
+ */
1213
+ declare namespace NoTypeofUndefined {
1214
+ /**
1215
+ * ### schema
1216
+ *
1217
+ * ```json
1218
+ * [
1219
+ * {
1220
+ * "type": "object",
1221
+ * "additionalProperties": false,
1222
+ * "properties": {
1223
+ * "checkGlobalVariables": {
1224
+ * "type": "boolean",
1225
+ * "default": false
1226
+ * }
1227
+ * }
1228
+ * }
1229
+ * ]
1230
+ * ```
1231
+ */
1232
+ type Options = {
1233
+ readonly checkGlobalVariables?: boolean;
1234
+ };
1235
+ type RuleEntry = Linter.StringSeverity | SpreadOptionsIfIsArray<readonly [Linter.RuleSeverity, Options]>;
1236
+ }
1237
+ /**
1238
+ * Disallow awaiting non-promise values.
1239
+ *
1240
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unnecessary-await.md
1241
+ *
1242
+ * ```md
1243
+ * | key | value |
1244
+ * | :---------- | :--------- |
1245
+ * | type | suggestion |
1246
+ * | deprecated | false |
1247
+ * | fixable | code |
1248
+ * | recommended | true |
1249
+ * ```
1250
+ */
1251
+ declare namespace NoUnnecessaryAwait {
1252
+ type RuleEntry = Linter.RuleSeverity;
1253
+ }
1254
+ /**
1255
+ * Enforce the use of built-in methods instead of unnecessary polyfills.
1256
+ *
1257
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unnecessary-polyfills.md
1258
+ *
1259
+ * ```md
1260
+ * | key | value |
1261
+ * | :---------- | :--------- |
1262
+ * | type | suggestion |
1263
+ * | deprecated | false |
1264
+ * | recommended | true |
1265
+ * ```
1266
+ */
1267
+ declare namespace NoUnnecessaryPolyfills {
1268
+ /**
1269
+ * ### schema
1270
+ *
1271
+ * ```json
1272
+ * [
1273
+ * {
1274
+ * "type": "object",
1275
+ * "additionalProperties": false,
1276
+ * "required": [
1277
+ * "targets"
1278
+ * ],
1279
+ * "properties": {
1280
+ * "targets": {
1281
+ * "oneOf": [
1282
+ * {
1283
+ * "type": "string"
1284
+ * },
1285
+ * {
1286
+ * "type": "array"
1287
+ * },
1288
+ * {
1289
+ * "type": "object"
1290
+ * }
1291
+ * ]
1292
+ * }
1293
+ * }
1294
+ * }
1295
+ * ]
1296
+ * ```
1297
+ */
1298
+ type Options = {
1299
+ readonly targets: UnknownRecord | string | readonly unknown[];
1300
+ };
1301
+ type RuleEntry = Linter.StringSeverity | SpreadOptionsIfIsArray<readonly [Linter.RuleSeverity, Options]>;
1302
+ }
1303
+ /**
1304
+ * Disallow unreadable array destructuring.
1305
+ *
1306
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unreadable-array-destructuring.md
1307
+ *
1308
+ * ```md
1309
+ * | key | value |
1310
+ * | :---------- | :--------- |
1311
+ * | type | suggestion |
1312
+ * | deprecated | false |
1313
+ * | fixable | code |
1314
+ * | recommended | true |
1315
+ * ```
1316
+ */
1317
+ declare namespace NoUnreadableArrayDestructuring {
1318
+ type RuleEntry = Linter.RuleSeverity;
1319
+ }
1320
+ /**
1321
+ * Disallow unreadable IIFEs.
1322
+ *
1323
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unreadable-iife.md
1324
+ *
1325
+ * ```md
1326
+ * | key | value |
1327
+ * | :------------- | :--------- |
1328
+ * | type | suggestion |
1329
+ * | deprecated | false |
1330
+ * | hasSuggestions | false |
1331
+ * | recommended | true |
1332
+ * ```
1333
+ */
1334
+ declare namespace NoUnreadableIife {
1335
+ type RuleEntry = Linter.RuleSeverity;
1336
+ }
1337
+ /**
1338
+ * Disallow unused object properties.
1339
+ *
1340
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unused-properties.md
1341
+ *
1342
+ * ```md
1343
+ * | key | value |
1344
+ * | :---------- | :--------- |
1345
+ * | type | suggestion |
1346
+ * | deprecated | false |
1347
+ * | recommended | false |
1348
+ * ```
1349
+ */
1350
+ declare namespace NoUnusedProperties {
1351
+ type RuleEntry = Linter.RuleSeverity;
1352
+ }
1353
+ /**
1354
+ * Disallow useless fallback when spreading in object literals.
1355
+ *
1356
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-fallback-in-spread.md
1357
+ *
1358
+ * ```md
1359
+ * | key | value |
1360
+ * | :---------- | :--------- |
1361
+ * | type | suggestion |
1362
+ * | deprecated | false |
1363
+ * | fixable | code |
1364
+ * | recommended | true |
1365
+ * ```
1366
+ */
1367
+ declare namespace NoUselessFallbackInSpread {
1368
+ type RuleEntry = Linter.RuleSeverity;
1369
+ }
1370
+ /**
1371
+ * Disallow useless array length check.
1372
+ *
1373
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-length-check.md
1374
+ *
1375
+ * ```md
1376
+ * | key | value |
1377
+ * | :---------- | :--------- |
1378
+ * | type | suggestion |
1379
+ * | deprecated | false |
1380
+ * | fixable | code |
1381
+ * | recommended | true |
1382
+ * ```
1383
+ */
1384
+ declare namespace NoUselessLengthCheck {
1385
+ type RuleEntry = Linter.RuleSeverity;
1386
+ }
1387
+ /**
1388
+ * Disallow returning/yielding `Promise.resolve/reject()` in async functions or
1389
+ * promise callbacks
1390
+ *
1391
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-promise-resolve-reject.md
1392
+ *
1393
+ * ```md
1394
+ * | key | value |
1395
+ * | :---------- | :--------- |
1396
+ * | type | suggestion |
1397
+ * | deprecated | false |
1398
+ * | fixable | code |
1399
+ * | recommended | true |
1400
+ * ```
1401
+ */
1402
+ declare namespace NoUselessPromiseResolveReject {
1403
+ type RuleEntry = Linter.RuleSeverity;
1404
+ }
1405
+ /**
1406
+ * Disallow unnecessary spread.
1407
+ *
1408
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-spread.md
1409
+ *
1410
+ * ```md
1411
+ * | key | value |
1412
+ * | :---------- | :--------- |
1413
+ * | type | suggestion |
1414
+ * | deprecated | false |
1415
+ * | fixable | code |
1416
+ * | recommended | true |
1417
+ * ```
1418
+ */
1419
+ declare namespace NoUselessSpread {
1420
+ type RuleEntry = Linter.RuleSeverity;
1421
+ }
1422
+ /**
1423
+ * Disallow useless case in switch statements.
1424
+ *
1425
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-switch-case.md
1426
+ *
1427
+ * ```md
1428
+ * | key | value |
1429
+ * | :------------- | :--------- |
1430
+ * | type | suggestion |
1431
+ * | deprecated | false |
1432
+ * | hasSuggestions | true |
1433
+ * | recommended | true |
1434
+ * ```
1435
+ */
1436
+ declare namespace NoUselessSwitchCase {
1437
+ type RuleEntry = Linter.RuleSeverity;
1438
+ }
1439
+ /**
1440
+ * Disallow useless `undefined`.
1441
+ *
1442
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-undefined.md
1443
+ *
1444
+ * ```md
1445
+ * | key | value |
1446
+ * | :---------- | :--------- |
1447
+ * | type | suggestion |
1448
+ * | deprecated | false |
1449
+ * | fixable | code |
1450
+ * | recommended | true |
1451
+ * ```
1452
+ */
1453
+ declare namespace NoUselessUndefined {
1454
+ /**
1455
+ * ### schema
1456
+ *
1457
+ * ```json
1458
+ * [
1459
+ * {
1460
+ * "type": "object",
1461
+ * "additionalProperties": false,
1462
+ * "properties": {
1463
+ * "checkArguments": {
1464
+ * "type": "boolean"
1465
+ * },
1466
+ * "checkArrowFunctionBody": {
1467
+ * "type": "boolean"
1468
+ * }
1469
+ * }
1470
+ * }
1471
+ * ]
1472
+ * ```
1473
+ */
1474
+ type Options = {
1475
+ readonly checkArguments?: boolean;
1476
+ readonly checkArrowFunctionBody?: boolean;
1477
+ };
1478
+ type RuleEntry = Linter.StringSeverity | SpreadOptionsIfIsArray<readonly [Linter.RuleSeverity, Options]>;
1479
+ }
1480
+ /**
1481
+ * Disallow number literals with zero fractions or dangling dots.
1482
+ *
1483
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-zero-fractions.md
1484
+ *
1485
+ * ```md
1486
+ * | key | value |
1487
+ * | :---------- | :--------- |
1488
+ * | type | suggestion |
1489
+ * | deprecated | false |
1490
+ * | fixable | code |
1491
+ * | recommended | true |
1492
+ * ```
1493
+ */
1494
+ declare namespace NoZeroFractions {
1495
+ type RuleEntry = Linter.RuleSeverity;
1496
+ }
1497
+ /**
1498
+ * Enforce proper case for numeric literals.
1499
+ *
1500
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/number-literal-case.md
1501
+ *
1502
+ * ```md
1503
+ * | key | value |
1504
+ * | :---------- | :--------- |
1505
+ * | type | suggestion |
1506
+ * | deprecated | false |
1507
+ * | fixable | code |
1508
+ * | recommended | true |
1509
+ * ```
1510
+ */
1511
+ declare namespace NumberLiteralCase {
1512
+ type RuleEntry = Linter.RuleSeverity;
1513
+ }
1514
+ /**
1515
+ * Enforce the style of numeric separators by correctly grouping digits.
1516
+ *
1517
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/numeric-separators-style.md
1518
+ *
1519
+ * ```md
1520
+ * | key | value |
1521
+ * | :---------- | :--------- |
1522
+ * | type | suggestion |
1523
+ * | deprecated | false |
1524
+ * | fixable | code |
1525
+ * | recommended | true |
1526
+ * ```
1527
+ */
1528
+ declare namespace NumericSeparatorsStyle {
1529
+ /**
1530
+ * ### schema
1531
+ *
1532
+ * ```json
1533
+ * [
1534
+ * {
1535
+ * "type": "object",
1536
+ * "additionalProperties": false,
1537
+ * "properties": {
1538
+ * "binary": {
1539
+ * "type": "object",
1540
+ * "additionalProperties": false,
1541
+ * "properties": {
1542
+ * "onlyIfContainsSeparator": {
1543
+ * "type": "boolean"
1544
+ * },
1545
+ * "minimumDigits": {
1546
+ * "type": "integer",
1547
+ * "minimum": 0,
1548
+ * "default": 0
1549
+ * },
1550
+ * "groupLength": {
1551
+ * "type": "integer",
1552
+ * "minimum": 1,
1553
+ * "default": 4
1554
+ * }
1555
+ * }
1556
+ * },
1557
+ * "octal": {
1558
+ * "type": "object",
1559
+ * "additionalProperties": false,
1560
+ * "properties": {
1561
+ * "onlyIfContainsSeparator": {
1562
+ * "type": "boolean"
1563
+ * },
1564
+ * "minimumDigits": {
1565
+ * "type": "integer",
1566
+ * "minimum": 0,
1567
+ * "default": 0
1568
+ * },
1569
+ * "groupLength": {
1570
+ * "type": "integer",
1571
+ * "minimum": 1,
1572
+ * "default": 4
1573
+ * }
1574
+ * }
1575
+ * },
1576
+ * "hexadecimal": {
1577
+ * "type": "object",
1578
+ * "additionalProperties": false,
1579
+ * "properties": {
1580
+ * "onlyIfContainsSeparator": {
1581
+ * "type": "boolean"
1582
+ * },
1583
+ * "minimumDigits": {
1584
+ * "type": "integer",
1585
+ * "minimum": 0,
1586
+ * "default": 0
1587
+ * },
1588
+ * "groupLength": {
1589
+ * "type": "integer",
1590
+ * "minimum": 1,
1591
+ * "default": 2
1592
+ * }
1593
+ * }
1594
+ * },
1595
+ * "number": {
1596
+ * "type": "object",
1597
+ * "additionalProperties": false,
1598
+ * "properties": {
1599
+ * "onlyIfContainsSeparator": {
1600
+ * "type": "boolean"
1601
+ * },
1602
+ * "minimumDigits": {
1603
+ * "type": "integer",
1604
+ * "minimum": 0,
1605
+ * "default": 5
1606
+ * },
1607
+ * "groupLength": {
1608
+ * "type": "integer",
1609
+ * "minimum": 1,
1610
+ * "default": 3
1611
+ * }
1612
+ * }
1613
+ * },
1614
+ * "onlyIfContainsSeparator": {
1615
+ * "type": "boolean",
1616
+ * "default": false
1617
+ * }
1618
+ * }
1619
+ * }
1620
+ * ]
1621
+ * ```
1622
+ */
1623
+ type Options = {
1624
+ readonly binary?: {
1625
+ readonly onlyIfContainsSeparator?: boolean;
1626
+ readonly minimumDigits?: number;
1627
+ readonly groupLength?: number;
1628
+ };
1629
+ readonly octal?: {
1630
+ readonly onlyIfContainsSeparator?: boolean;
1631
+ readonly minimumDigits?: number;
1632
+ readonly groupLength?: number;
1633
+ };
1634
+ readonly hexadecimal?: {
1635
+ readonly onlyIfContainsSeparator?: boolean;
1636
+ readonly minimumDigits?: number;
1637
+ readonly groupLength?: number;
1638
+ };
1639
+ readonly number?: {
1640
+ readonly onlyIfContainsSeparator?: boolean;
1641
+ readonly minimumDigits?: number;
1642
+ readonly groupLength?: number;
1643
+ };
1644
+ readonly onlyIfContainsSeparator?: boolean;
1645
+ };
1646
+ type RuleEntry = Linter.StringSeverity | SpreadOptionsIfIsArray<readonly [Linter.RuleSeverity, Options]>;
1647
+ }
1648
+ /**
1649
+ * Prefer `.addEventListener()` and `.removeEventListener()` over
1650
+ * `on`-functions.
1651
+ *
1652
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-add-event-listener.md
1653
+ *
1654
+ * ```md
1655
+ * | key | value |
1656
+ * | :---------- | :--------- |
1657
+ * | type | suggestion |
1658
+ * | deprecated | false |
1659
+ * | fixable | code |
1660
+ * | recommended | true |
1661
+ * ```
1662
+ */
1663
+ declare namespace PreferAddEventListener {
1664
+ /**
1665
+ * ### schema
1666
+ *
1667
+ * ```json
1668
+ * [
1669
+ * {
1670
+ * "type": "object",
1671
+ * "additionalProperties": false,
1672
+ * "properties": {
1673
+ * "excludedPackages": {
1674
+ * "type": "array",
1675
+ * "items": {
1676
+ * "type": "string"
1677
+ * },
1678
+ * "uniqueItems": true
1679
+ * }
1680
+ * }
1681
+ * }
1682
+ * ]
1683
+ * ```
1684
+ */
1685
+ type Options = {
1686
+ readonly excludedPackages?: readonly string[];
1687
+ };
1688
+ type RuleEntry = Linter.StringSeverity | SpreadOptionsIfIsArray<readonly [Linter.RuleSeverity, Options]>;
1689
+ }
1690
+ /**
1691
+ * Prefer `.find(…)` and `.findLast(…)` over the first or last element from
1692
+ * `.filter(…)`.
1693
+ *
1694
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-array-find.md
1695
+ *
1696
+ * ```md
1697
+ * | key | value |
1698
+ * | :------------- | :--------- |
1699
+ * | type | suggestion |
1700
+ * | deprecated | false |
1701
+ * | fixable | code |
1702
+ * | hasSuggestions | true |
1703
+ * | recommended | true |
1704
+ * ```
1705
+ */
1706
+ declare namespace PreferArrayFind {
1707
+ /**
1708
+ * ### schema
1709
+ *
1710
+ * ```json
1711
+ * [
1712
+ * {
1713
+ * "type": "object",
1714
+ * "additionalProperties": false,
1715
+ * "properties": {
1716
+ * "checkFromLast": {
1717
+ * "type": "boolean",
1718
+ * "default": true
1719
+ * }
1720
+ * }
1721
+ * }
1722
+ * ]
1723
+ * ```
1724
+ */
1725
+ type Options = {
1726
+ readonly checkFromLast?: boolean;
1727
+ };
1728
+ type RuleEntry = Linter.StringSeverity | SpreadOptionsIfIsArray<readonly [Linter.RuleSeverity, Options]>;
1729
+ }
1730
+ /**
1731
+ * Prefer `.flatMap(…)` over `.map(…).flat()`.
1732
+ *
1733
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-array-flat-map.md
1734
+ *
1735
+ * ```md
1736
+ * | key | value |
1737
+ * | :---------- | :--------- |
1738
+ * | type | suggestion |
1739
+ * | deprecated | false |
1740
+ * | fixable | code |
1741
+ * | recommended | true |
1742
+ * ```
1743
+ */
1744
+ declare namespace PreferArrayFlatMap {
1745
+ type RuleEntry = Linter.RuleSeverity;
1746
+ }
1747
+ /**
1748
+ * Prefer `Array#flat()` over legacy techniques to flatten arrays.
1749
+ *
1750
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-array-flat.md
1751
+ *
1752
+ * ```md
1753
+ * | key | value |
1754
+ * | :---------- | :--------- |
1755
+ * | type | suggestion |
1756
+ * | deprecated | false |
1757
+ * | fixable | code |
1758
+ * | recommended | true |
1759
+ * ```
1760
+ */
1761
+ declare namespace PreferArrayFlat {
1762
+ /**
1763
+ * ### schema
1764
+ *
1765
+ * ```json
1766
+ * [
1767
+ * {
1768
+ * "type": "object",
1769
+ * "additionalProperties": false,
1770
+ * "properties": {
1771
+ * "functions": {
1772
+ * "type": "array",
1773
+ * "uniqueItems": true
1774
+ * }
1775
+ * }
1776
+ * }
1777
+ * ]
1778
+ * ```
1779
+ */
1780
+ type Options = {
1781
+ readonly functions?: readonly unknown[];
1782
+ };
1783
+ type RuleEntry = Linter.StringSeverity | SpreadOptionsIfIsArray<readonly [Linter.RuleSeverity, Options]>;
1784
+ }
1785
+ /**
1786
+ * Prefer `Array#{indexOf,lastIndexOf}()` over
1787
+ * `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
1788
+ *
1789
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-array-index-of.md
1790
+ *
1791
+ * ```md
1792
+ * | key | value |
1793
+ * | :------------- | :--------- |
1794
+ * | type | suggestion |
1795
+ * | deprecated | false |
1796
+ * | fixable | code |
1797
+ * | hasSuggestions | true |
1798
+ * | recommended | true |
1799
+ * ```
1800
+ */
1801
+ declare namespace PreferArrayIndexOf {
1802
+ type RuleEntry = Linter.RuleSeverity;
1803
+ }
1804
+ /**
1805
+ * Prefer `.some(…)` over `.filter(…).length` check and
1806
+ * `.{find,findLast,findIndex,findLastIndex}(…)`.
1807
+ *
1808
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-array-some.md
1809
+ *
1810
+ * ```md
1811
+ * | key | value |
1812
+ * | :------------- | :--------- |
1813
+ * | type | suggestion |
1814
+ * | deprecated | false |
1815
+ * | fixable | code |
1816
+ * | hasSuggestions | true |
1817
+ * | recommended | true |
1818
+ * ```
1819
+ */
1820
+ declare namespace PreferArraySome {
1821
+ type RuleEntry = Linter.RuleSeverity;
1822
+ }
1823
+ /**
1824
+ * Prefer `.at()` method for index access and `String#charAt()`.
1825
+ *
1826
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-at.md
1827
+ *
1828
+ * ```md
1829
+ * | key | value |
1830
+ * | :------------- | :--------- |
1831
+ * | type | suggestion |
1832
+ * | deprecated | false |
1833
+ * | fixable | code |
1834
+ * | hasSuggestions | true |
1835
+ * | recommended | true |
1836
+ * ```
1837
+ */
1838
+ declare namespace PreferAt {
1839
+ /**
1840
+ * ### schema
1841
+ *
1842
+ * ```json
1843
+ * [
1844
+ * {
1845
+ * "type": "object",
1846
+ * "additionalProperties": false,
1847
+ * "properties": {
1848
+ * "getLastElementFunctions": {
1849
+ * "type": "array",
1850
+ * "uniqueItems": true
1851
+ * },
1852
+ * "checkAllIndexAccess": {
1853
+ * "type": "boolean",
1854
+ * "default": false
1855
+ * }
1856
+ * }
1857
+ * }
1858
+ * ]
1859
+ * ```
1860
+ */
1861
+ type Options = {
1862
+ readonly getLastElementFunctions?: readonly unknown[];
1863
+ readonly checkAllIndexAccess?: boolean;
1864
+ };
1865
+ type RuleEntry = Linter.StringSeverity | SpreadOptionsIfIsArray<readonly [Linter.RuleSeverity, Options]>;
1866
+ }
1867
+ /**
1868
+ * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and
1869
+ * `Blob#text()` over `FileReader#readAsText(…)`.
1870
+ *
1871
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-blob-reading-methods.md
1872
+ *
1873
+ * ```md
1874
+ * | key | value |
1875
+ * | :---------- | :--------- |
1876
+ * | type | suggestion |
1877
+ * | deprecated | false |
1878
+ * | recommended | true |
1879
+ * ```
1880
+ */
1881
+ declare namespace PreferBlobReadingMethods {
1882
+ type RuleEntry = Linter.RuleSeverity;
1883
+ }
1884
+ /**
1885
+ * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and
1886
+ * `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
1887
+ *
1888
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-code-point.md
1889
+ *
1890
+ * ```md
1891
+ * | key | value |
1892
+ * | :------------- | :--------- |
1893
+ * | type | suggestion |
1894
+ * | deprecated | false |
1895
+ * | hasSuggestions | true |
1896
+ * | recommended | true |
1897
+ * ```
1898
+ */
1899
+ declare namespace PreferCodePoint {
1900
+ type RuleEntry = Linter.RuleSeverity;
1901
+ }
1902
+ /**
1903
+ * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
1904
+ *
1905
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-date-now.md
1906
+ *
1907
+ * ```md
1908
+ * | key | value |
1909
+ * | :---------- | :--------- |
1910
+ * | type | suggestion |
1911
+ * | deprecated | false |
1912
+ * | fixable | code |
1913
+ * | recommended | true |
1914
+ * ```
1915
+ */
1916
+ declare namespace PreferDateNow {
1917
+ type RuleEntry = Linter.RuleSeverity;
1918
+ }
1919
+ /**
1920
+ * Prefer default parameters over reassignment.
1921
+ *
1922
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-default-parameters.md
1923
+ *
1924
+ * ```md
1925
+ * | key | value |
1926
+ * | :------------- | :--------- |
1927
+ * | type | suggestion |
1928
+ * | deprecated | false |
1929
+ * | fixable | code |
1930
+ * | hasSuggestions | true |
1931
+ * | recommended | true |
1932
+ * ```
1933
+ */
1934
+ declare namespace PreferDefaultParameters {
1935
+ type RuleEntry = Linter.RuleSeverity;
1936
+ }
1937
+ /**
1938
+ * Prefer `Node#append()` over `Node#appendChild()`.
1939
+ *
1940
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-dom-node-append.md
1941
+ *
1942
+ * ```md
1943
+ * | key | value |
1944
+ * | :---------- | :--------- |
1945
+ * | type | suggestion |
1946
+ * | deprecated | false |
1947
+ * | fixable | code |
1948
+ * | recommended | true |
1949
+ * ```
1950
+ */
1951
+ declare namespace PreferDomNodeAppend {
1952
+ type RuleEntry = Linter.RuleSeverity;
1953
+ }
1954
+ /**
1955
+ * Prefer using `.dataset` on DOM elements over calling attribute methods.
1956
+ *
1957
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-dom-node-dataset.md
1958
+ *
1959
+ * ```md
1960
+ * | key | value |
1961
+ * | :---------- | :--------- |
1962
+ * | type | suggestion |
1963
+ * | deprecated | false |
1964
+ * | fixable | code |
1965
+ * | recommended | true |
1966
+ * ```
1967
+ */
1968
+ declare namespace PreferDomNodeDataset {
1969
+ type RuleEntry = Linter.RuleSeverity;
1970
+ }
1971
+ /**
1972
+ * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
1973
+ *
1974
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-dom-node-remove.md
1975
+ *
1976
+ * ```md
1977
+ * | key | value |
1978
+ * | :------------- | :--------- |
1979
+ * | type | suggestion |
1980
+ * | deprecated | false |
1981
+ * | fixable | code |
1982
+ * | hasSuggestions | true |
1983
+ * | recommended | true |
1984
+ * ```
1985
+ */
1986
+ declare namespace PreferDomNodeRemove {
1987
+ type RuleEntry = Linter.RuleSeverity;
1988
+ }
1989
+ /**
1990
+ * Prefer `.textContent` over `.innerText`.
1991
+ *
1992
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-dom-node-text-content.md
1993
+ *
1994
+ * ```md
1995
+ * | key | value |
1996
+ * | :------------- | :--------- |
1997
+ * | type | suggestion |
1998
+ * | deprecated | false |
1999
+ * | hasSuggestions | true |
2000
+ * | recommended | true |
2001
+ * ```
2002
+ */
2003
+ declare namespace PreferDomNodeTextContent {
2004
+ type RuleEntry = Linter.RuleSeverity;
2005
+ }
2006
+ /**
2007
+ * Prefer `EventTarget` over `EventEmitter`.
2008
+ *
2009
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-event-target.md
2010
+ *
2011
+ * ```md
2012
+ * | key | value |
2013
+ * | :---------- | :--------- |
2014
+ * | type | suggestion |
2015
+ * | deprecated | false |
2016
+ * | recommended | true |
2017
+ * ```
2018
+ */
2019
+ declare namespace PreferEventTarget {
2020
+ type RuleEntry = Linter.RuleSeverity;
2021
+ }
2022
+ /**
2023
+ * Prefer `export…from` when re-exporting.
2024
+ *
2025
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-export-from.md
2026
+ *
2027
+ * ```md
2028
+ * | key | value |
2029
+ * | :------------- | :--------- |
2030
+ * | type | suggestion |
2031
+ * | deprecated | false |
2032
+ * | fixable | code |
2033
+ * | hasSuggestions | true |
2034
+ * | recommended | true |
2035
+ * ```
2036
+ */
2037
+ declare namespace PreferExportFrom {
2038
+ /**
2039
+ * ### schema
2040
+ *
2041
+ * ```json
2042
+ * [
2043
+ * {
2044
+ * "type": "object",
2045
+ * "additionalProperties": false,
2046
+ * "properties": {
2047
+ * "ignoreUsedVariables": {
2048
+ * "type": "boolean",
2049
+ * "default": false
2050
+ * }
2051
+ * }
2052
+ * }
2053
+ * ]
2054
+ * ```
2055
+ */
2056
+ type Options = {
2057
+ readonly ignoreUsedVariables?: boolean;
2058
+ };
2059
+ type RuleEntry = Linter.StringSeverity | SpreadOptionsIfIsArray<readonly [Linter.RuleSeverity, Options]>;
2060
+ }
2061
+ /**
2062
+ * Prefer `globalThis` over `window`, `self`, and `global`.
2063
+ *
2064
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-global-this.md
2065
+ *
2066
+ * ```md
2067
+ * | key | value |
2068
+ * | :------------- | :--------- |
2069
+ * | type | suggestion |
2070
+ * | deprecated | false |
2071
+ * | fixable | code |
2072
+ * | hasSuggestions | false |
2073
+ * | recommended | true |
2074
+ * ```
2075
+ */
2076
+ declare namespace PreferGlobalThis {
2077
+ type RuleEntry = Linter.RuleSeverity;
2078
+ }
2079
+ /**
2080
+ * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()`
2081
+ * when checking for existence or non-existence.
2082
+ *
2083
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-includes.md
2084
+ *
2085
+ * ```md
2086
+ * | key | value |
2087
+ * | :------------- | :--------- |
2088
+ * | type | suggestion |
2089
+ * | deprecated | false |
2090
+ * | fixable | code |
2091
+ * | hasSuggestions | true |
2092
+ * | recommended | true |
2093
+ * ```
2094
+ */
2095
+ declare namespace PreferIncludes {
2096
+ type RuleEntry = Linter.RuleSeverity;
2097
+ }
2098
+ /**
2099
+ * Prefer reading a JSON file as a buffer.
2100
+ *
2101
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-json-parse-buffer.md
2102
+ *
2103
+ * ```md
2104
+ * | key | value |
2105
+ * | :---------- | :--------- |
2106
+ * | type | suggestion |
2107
+ * | deprecated | false |
2108
+ * | fixable | code |
2109
+ * | recommended | false |
2110
+ * ```
2111
+ */
2112
+ declare namespace PreferJsonParseBuffer {
2113
+ type RuleEntry = Linter.RuleSeverity;
2114
+ }
2115
+ /**
2116
+ * Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
2117
+ *
2118
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-keyboard-event-key.md
2119
+ *
2120
+ * ```md
2121
+ * | key | value |
2122
+ * | :---------- | :--------- |
2123
+ * | type | suggestion |
2124
+ * | deprecated | false |
2125
+ * | fixable | code |
2126
+ * | recommended | true |
2127
+ * ```
2128
+ */
2129
+ declare namespace PreferKeyboardEventKey {
2130
+ type RuleEntry = Linter.RuleSeverity;
2131
+ }
2132
+ /**
2133
+ * Prefer using a logical operator over a ternary.
2134
+ *
2135
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-logical-operator-over-ternary.md
2136
+ *
2137
+ * ```md
2138
+ * | key | value |
2139
+ * | :------------- | :--------- |
2140
+ * | type | suggestion |
2141
+ * | deprecated | false |
2142
+ * | hasSuggestions | true |
2143
+ * | recommended | true |
2144
+ * ```
2145
+ */
2146
+ declare namespace PreferLogicalOperatorOverTernary {
2147
+ type RuleEntry = Linter.RuleSeverity;
2148
+ }
2149
+ /**
2150
+ * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
2151
+ *
2152
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-math-min-max.md
2153
+ *
2154
+ * ```md
2155
+ * | key | value |
2156
+ * | :---------- | :------ |
2157
+ * | type | problem |
2158
+ * | deprecated | false |
2159
+ * | fixable | code |
2160
+ * | recommended | true |
2161
+ * ```
2162
+ */
2163
+ declare namespace PreferMathMinMax {
2164
+ type RuleEntry = Linter.RuleSeverity;
2165
+ }
2166
+ /**
2167
+ * Enforce the use of `Math.trunc` instead of bitwise operators.
2168
+ *
2169
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-math-trunc.md
2170
+ *
2171
+ * ```md
2172
+ * | key | value |
2173
+ * | :------------- | :--------- |
2174
+ * | type | suggestion |
2175
+ * | deprecated | false |
2176
+ * | fixable | code |
2177
+ * | hasSuggestions | true |
2178
+ * | recommended | true |
2179
+ * ```
2180
+ */
2181
+ declare namespace PreferMathTrunc {
2182
+ type RuleEntry = Linter.RuleSeverity;
2183
+ }
2184
+ /**
2185
+ * Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over
2186
+ * `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or
2187
+ * `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
2188
+ *
2189
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-modern-dom-apis.md
2190
+ *
2191
+ * ```md
2192
+ * | key | value |
2193
+ * | :---------- | :--------- |
2194
+ * | type | suggestion |
2195
+ * | deprecated | false |
2196
+ * | fixable | code |
2197
+ * | recommended | true |
2198
+ * ```
2199
+ */
2200
+ declare namespace PreferModernDomApis {
2201
+ type RuleEntry = Linter.RuleSeverity;
2202
+ }
2203
+ /**
2204
+ * Prefer modern `Math` APIs over legacy patterns.
2205
+ *
2206
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-modern-math-apis.md
2207
+ *
2208
+ * ```md
2209
+ * | key | value |
2210
+ * | :---------- | :--------- |
2211
+ * | type | suggestion |
2212
+ * | deprecated | false |
2213
+ * | fixable | code |
2214
+ * | recommended | true |
2215
+ * ```
2216
+ */
2217
+ declare namespace PreferModernMathApis {
2218
+ type RuleEntry = Linter.RuleSeverity;
2219
+ }
2220
+ /**
2221
+ * Prefer JavaScript modules (ESM) over CommonJS.
2222
+ *
2223
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-module.md
2224
+ *
2225
+ * ```md
2226
+ * | key | value |
2227
+ * | :------------- | :--------- |
2228
+ * | type | suggestion |
2229
+ * | deprecated | false |
2230
+ * | fixable | code |
2231
+ * | hasSuggestions | true |
2232
+ * | recommended | true |
2233
+ * ```
2234
+ */
2235
+ declare namespace PreferModule {
2236
+ type RuleEntry = Linter.RuleSeverity;
2237
+ }
2238
+ /**
2239
+ * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
2240
+ *
2241
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-native-coercion-functions.md
2242
+ *
2243
+ * ```md
2244
+ * | key | value |
2245
+ * | :---------- | :--------- |
2246
+ * | type | suggestion |
2247
+ * | deprecated | false |
2248
+ * | fixable | code |
2249
+ * | recommended | true |
2250
+ * ```
2251
+ */
2252
+ declare namespace PreferNativeCoercionFunctions {
2253
+ type RuleEntry = Linter.RuleSeverity;
2254
+ }
2255
+ /**
2256
+ * Prefer negative index over `.length - index` when possible.
2257
+ *
2258
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-negative-index.md
2259
+ *
2260
+ * ```md
2261
+ * | key | value |
2262
+ * | :---------- | :--------- |
2263
+ * | type | suggestion |
2264
+ * | deprecated | false |
2265
+ * | fixable | code |
2266
+ * | recommended | true |
2267
+ * ```
2268
+ */
2269
+ declare namespace PreferNegativeIndex {
2270
+ type RuleEntry = Linter.RuleSeverity;
2271
+ }
2272
+ /**
2273
+ * Prefer using the `node:` protocol when importing Node.js builtin modules.
2274
+ *
2275
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-node-protocol.md
2276
+ *
2277
+ * ```md
2278
+ * | key | value |
2279
+ * | :---------- | :--------- |
2280
+ * | type | suggestion |
2281
+ * | deprecated | false |
2282
+ * | fixable | code |
2283
+ * | recommended | true |
2284
+ * ```
2285
+ */
2286
+ declare namespace PreferNodeProtocol {
2287
+ type RuleEntry = Linter.RuleSeverity;
2288
+ }
2289
+ /**
2290
+ * Prefer `Number` static properties over global ones.
2291
+ *
2292
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-number-properties.md
2293
+ *
2294
+ * ```md
2295
+ * | key | value |
2296
+ * | :------------- | :--------- |
2297
+ * | type | suggestion |
2298
+ * | deprecated | false |
2299
+ * | fixable | code |
2300
+ * | hasSuggestions | true |
2301
+ * | recommended | true |
2302
+ * ```
2303
+ */
2304
+ declare namespace PreferNumberProperties {
2305
+ /**
2306
+ * ### schema
2307
+ *
2308
+ * ```json
2309
+ * [
2310
+ * {
2311
+ * "type": "object",
2312
+ * "additionalProperties": false,
2313
+ * "properties": {
2314
+ * "checkInfinity": {
2315
+ * "type": "boolean",
2316
+ * "default": false
2317
+ * },
2318
+ * "checkNaN": {
2319
+ * "type": "boolean",
2320
+ * "default": true
2321
+ * }
2322
+ * }
2323
+ * }
2324
+ * ]
2325
+ * ```
2326
+ */
2327
+ type Options = {
2328
+ readonly checkInfinity?: boolean;
2329
+ readonly checkNaN?: boolean;
2330
+ };
2331
+ type RuleEntry = Linter.StringSeverity | SpreadOptionsIfIsArray<readonly [Linter.RuleSeverity, Options]>;
2332
+ }
2333
+ /**
2334
+ * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs
2335
+ * into an object.
2336
+ *
2337
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-object-from-entries.md
2338
+ *
2339
+ * ```md
2340
+ * | key | value |
2341
+ * | :---------- | :--------- |
2342
+ * | type | suggestion |
2343
+ * | deprecated | false |
2344
+ * | fixable | code |
2345
+ * | recommended | true |
2346
+ * ```
2347
+ */
2348
+ declare namespace PreferObjectFromEntries {
2349
+ /**
2350
+ * ### schema
2351
+ *
2352
+ * ```json
2353
+ * [
2354
+ * {
2355
+ * "type": "object",
2356
+ * "additionalProperties": false,
2357
+ * "properties": {
2358
+ * "functions": {
2359
+ * "type": "array",
2360
+ * "uniqueItems": true
2361
+ * }
2362
+ * }
2363
+ * }
2364
+ * ]
2365
+ * ```
2366
+ */
2367
+ type Options = {
2368
+ readonly functions?: readonly unknown[];
2369
+ };
2370
+ type RuleEntry = Linter.StringSeverity | SpreadOptionsIfIsArray<readonly [Linter.RuleSeverity, Options]>;
2371
+ }
2372
+ /**
2373
+ * Prefer omitting the `catch` binding parameter.
2374
+ *
2375
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-optional-catch-binding.md
2376
+ *
2377
+ * ```md
2378
+ * | key | value |
2379
+ * | :---------- | :--------- |
2380
+ * | type | suggestion |
2381
+ * | deprecated | false |
2382
+ * | fixable | code |
2383
+ * | recommended | true |
2384
+ * ```
2385
+ */
2386
+ declare namespace PreferOptionalCatchBinding {
2387
+ type RuleEntry = Linter.RuleSeverity;
2388
+ }
2389
+ /**
2390
+ * Prefer borrowing methods from the prototype instead of the instance.
2391
+ *
2392
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-prototype-methods.md
2393
+ *
2394
+ * ```md
2395
+ * | key | value |
2396
+ * | :---------- | :--------- |
2397
+ * | type | suggestion |
2398
+ * | deprecated | false |
2399
+ * | fixable | code |
2400
+ * | recommended | true |
2401
+ * ```
2402
+ */
2403
+ declare namespace PreferPrototypeMethods {
2404
+ type RuleEntry = Linter.RuleSeverity;
2405
+ }
2406
+ /**
2407
+ * Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()`
2408
+ * over `.getElementsByClassName()` and `.getElementsByTagName()` and
2409
+ * `.getElementsByName()`.
2410
+ *
2411
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-query-selector.md
2412
+ *
2413
+ * ```md
2414
+ * | key | value |
2415
+ * | :---------- | :--------- |
2416
+ * | type | suggestion |
2417
+ * | deprecated | false |
2418
+ * | fixable | code |
2419
+ * | recommended | true |
2420
+ * ```
2421
+ */
2422
+ declare namespace PreferQuerySelector {
2423
+ type RuleEntry = Linter.RuleSeverity;
2424
+ }
2425
+ /**
2426
+ * Prefer `Reflect.apply()` over `Function#apply()`.
2427
+ *
2428
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-reflect-apply.md
2429
+ *
2430
+ * ```md
2431
+ * | key | value |
2432
+ * | :---------- | :--------- |
2433
+ * | type | suggestion |
2434
+ * | deprecated | false |
2435
+ * | fixable | code |
2436
+ * | recommended | true |
2437
+ * ```
2438
+ */
2439
+ declare namespace PreferReflectApply {
2440
+ type RuleEntry = Linter.RuleSeverity;
2441
+ }
2442
+ /**
2443
+ * Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
2444
+ *
2445
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-regexp-test.md
2446
+ *
2447
+ * ```md
2448
+ * | key | value |
2449
+ * | :------------- | :--------- |
2450
+ * | type | suggestion |
2451
+ * | deprecated | false |
2452
+ * | fixable | code |
2453
+ * | hasSuggestions | true |
2454
+ * | recommended | true |
2455
+ * ```
2456
+ */
2457
+ declare namespace PreferRegexpTest {
2458
+ type RuleEntry = Linter.RuleSeverity;
2459
+ }
2460
+ /**
2461
+ * Prefer `Set#has()` over `Array#includes()` when checking for existence or
2462
+ * non-existence.
2463
+ *
2464
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-set-has.md
2465
+ *
2466
+ * ```md
2467
+ * | key | value |
2468
+ * | :------------- | :--------- |
2469
+ * | type | suggestion |
2470
+ * | deprecated | false |
2471
+ * | fixable | code |
2472
+ * | hasSuggestions | true |
2473
+ * | recommended | true |
2474
+ * ```
2475
+ */
2476
+ declare namespace PreferSetHas {
2477
+ type RuleEntry = Linter.RuleSeverity;
2478
+ }
2479
+ /**
2480
+ * Prefer using `Set#size` instead of `Array#length`.
2481
+ *
2482
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-set-size.md
2483
+ *
2484
+ * ```md
2485
+ * | key | value |
2486
+ * | :---------- | :--------- |
2487
+ * | type | suggestion |
2488
+ * | deprecated | false |
2489
+ * | fixable | code |
2490
+ * | recommended | true |
2491
+ * ```
2492
+ */
2493
+ declare namespace PreferSetSize {
2494
+ type RuleEntry = Linter.RuleSeverity;
2495
+ }
2496
+ /**
2497
+ * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`,
2498
+ * `Array#{slice,toSpliced}()` and `String#split('')`.
2499
+ *
2500
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-spread.md
2501
+ *
2502
+ * ```md
2503
+ * | key | value |
2504
+ * | :------------- | :--------- |
2505
+ * | type | suggestion |
2506
+ * | deprecated | false |
2507
+ * | fixable | code |
2508
+ * | hasSuggestions | true |
2509
+ * | recommended | true |
2510
+ * ```
2511
+ */
2512
+ declare namespace PreferSpread {
2513
+ type RuleEntry = Linter.RuleSeverity;
2514
+ }
2515
+ /**
2516
+ * Prefer using the `String.raw` tag to avoid escaping `\`.
2517
+ *
2518
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-string-raw.md
2519
+ *
2520
+ * ```md
2521
+ * | key | value |
2522
+ * | :---------- | :--------- |
2523
+ * | type | suggestion |
2524
+ * | deprecated | false |
2525
+ * | fixable | code |
2526
+ * | recommended | true |
2527
+ * ```
2528
+ */
2529
+ declare namespace PreferStringRaw {
2530
+ type RuleEntry = Linter.RuleSeverity;
2531
+ }
2532
+ /**
2533
+ * Prefer `String#replaceAll()` over regex searches with the global flag.
2534
+ *
2535
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-string-replace-all.md
2536
+ *
2537
+ * ```md
2538
+ * | key | value |
2539
+ * | :---------- | :--------- |
2540
+ * | type | suggestion |
2541
+ * | deprecated | false |
2542
+ * | fixable | code |
2543
+ * | recommended | true |
2544
+ * ```
2545
+ */
2546
+ declare namespace PreferStringReplaceAll {
2547
+ type RuleEntry = Linter.RuleSeverity;
2548
+ }
2549
+ /**
2550
+ * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
2551
+ *
2552
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-string-slice.md
2553
+ *
2554
+ * ```md
2555
+ * | key | value |
2556
+ * | :---------- | :--------- |
2557
+ * | type | suggestion |
2558
+ * | deprecated | false |
2559
+ * | fixable | code |
2560
+ * | recommended | true |
2561
+ * ```
2562
+ */
2563
+ declare namespace PreferStringSlice {
2564
+ type RuleEntry = Linter.RuleSeverity;
2565
+ }
2566
+ /**
2567
+ * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
2568
+ *
2569
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-string-starts-ends-with.md
2570
+ *
2571
+ * ```md
2572
+ * | key | value |
2573
+ * | :------------- | :--------- |
2574
+ * | type | suggestion |
2575
+ * | deprecated | false |
2576
+ * | fixable | code |
2577
+ * | hasSuggestions | true |
2578
+ * | recommended | true |
2579
+ * ```
2580
+ */
2581
+ declare namespace PreferStringStartsEndsWith {
2582
+ type RuleEntry = Linter.RuleSeverity;
2583
+ }
2584
+ /**
2585
+ * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` /
2586
+ * `String#trimRight()`.
2587
+ *
2588
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-string-trim-start-end.md
2589
+ *
2590
+ * ```md
2591
+ * | key | value |
2592
+ * | :---------- | :--------- |
2593
+ * | type | suggestion |
2594
+ * | deprecated | false |
2595
+ * | fixable | code |
2596
+ * | recommended | true |
2597
+ * ```
2598
+ */
2599
+ declare namespace PreferStringTrimStartEnd {
2600
+ type RuleEntry = Linter.RuleSeverity;
2601
+ }
2602
+ /**
2603
+ * Prefer using `structuredClone` to create a deep clone.
2604
+ *
2605
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-structured-clone.md
2606
+ *
2607
+ * ```md
2608
+ * | key | value |
2609
+ * | :------------- | :--------- |
2610
+ * | type | suggestion |
2611
+ * | deprecated | false |
2612
+ * | hasSuggestions | true |
2613
+ * | recommended | true |
2614
+ * ```
2615
+ */
2616
+ declare namespace PreferStructuredClone {
2617
+ /**
2618
+ * ### schema
2619
+ *
2620
+ * ```json
2621
+ * [
2622
+ * {
2623
+ * "type": "object",
2624
+ * "additionalProperties": false,
2625
+ * "properties": {
2626
+ * "functions": {
2627
+ * "type": "array",
2628
+ * "uniqueItems": true
2629
+ * }
2630
+ * }
2631
+ * }
2632
+ * ]
2633
+ * ```
2634
+ */
2635
+ type Options = {
2636
+ readonly functions?: readonly unknown[];
2637
+ };
2638
+ type RuleEntry = Linter.StringSeverity | SpreadOptionsIfIsArray<readonly [Linter.RuleSeverity, Options]>;
2639
+ }
2640
+ /**
2641
+ * Prefer `switch` over multiple `else-if`.
2642
+ *
2643
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-switch.md
2644
+ *
2645
+ * ```md
2646
+ * | key | value |
2647
+ * | :---------- | :--------- |
2648
+ * | type | suggestion |
2649
+ * | deprecated | false |
2650
+ * | fixable | code |
2651
+ * | recommended | true |
2652
+ * ```
2653
+ */
2654
+ declare namespace PreferSwitch {
2655
+ /**
2656
+ * ### schema
2657
+ *
2658
+ * ```json
2659
+ * [
2660
+ * {
2661
+ * "type": "object",
2662
+ * "additionalProperties": false,
2663
+ * "properties": {
2664
+ * "minimumCases": {
2665
+ * "type": "integer",
2666
+ * "minimum": 2,
2667
+ * "default": 3
2668
+ * },
2669
+ * "emptyDefaultCase": {
2670
+ * "enum": [
2671
+ * "no-default-comment",
2672
+ * "do-nothing-comment",
2673
+ * "no-default-case"
2674
+ * ],
2675
+ * "default": "no-default-comment"
2676
+ * }
2677
+ * }
2678
+ * }
2679
+ * ]
2680
+ * ```
2681
+ */
2682
+ type Options = {
2683
+ readonly minimumCases?: number;
2684
+ readonly emptyDefaultCase?: 'do-nothing-comment' | 'no-default-case' | 'no-default-comment';
2685
+ };
2686
+ type RuleEntry = Linter.StringSeverity | SpreadOptionsIfIsArray<readonly [Linter.RuleSeverity, Options]>;
2687
+ }
2688
+ /**
2689
+ * Prefer ternary expressions over simple `if-else` statements.
2690
+ *
2691
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-ternary.md
2692
+ *
2693
+ * ```md
2694
+ * | key | value |
2695
+ * | :---------- | :--------- |
2696
+ * | type | suggestion |
2697
+ * | deprecated | false |
2698
+ * | fixable | code |
2699
+ * | recommended | true |
2700
+ * ```
2701
+ */
2702
+ declare namespace PreferTernary {
2703
+ /**
2704
+ * ### schema
2705
+ *
2706
+ * ```json
2707
+ * [
2708
+ * {
2709
+ * "enum": [
2710
+ * "always",
2711
+ * "only-single-line"
2712
+ * ],
2713
+ * "default": "always"
2714
+ * }
2715
+ * ]
2716
+ * ```
2717
+ */
2718
+ type Options = 'always' | 'only-single-line';
2719
+ type RuleEntry = Linter.StringSeverity | SpreadOptionsIfIsArray<readonly [Linter.RuleSeverity, Options]>;
2720
+ }
2721
+ /**
2722
+ * Prefer top-level await over top-level promises and async function calls.
2723
+ *
2724
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-top-level-await.md
2725
+ *
2726
+ * ```md
2727
+ * | key | value |
2728
+ * | :------------- | :--------- |
2729
+ * | type | suggestion |
2730
+ * | deprecated | false |
2731
+ * | hasSuggestions | true |
2732
+ * | recommended | true |
2733
+ * ```
2734
+ */
2735
+ declare namespace PreferTopLevelAwait {
2736
+ type RuleEntry = Linter.RuleSeverity;
2737
+ }
2738
+ /**
2739
+ * Enforce throwing `TypeError` in type checking conditions.
2740
+ *
2741
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-type-error.md
2742
+ *
2743
+ * ```md
2744
+ * | key | value |
2745
+ * | :---------- | :--------- |
2746
+ * | type | suggestion |
2747
+ * | deprecated | false |
2748
+ * | fixable | code |
2749
+ * | recommended | true |
2750
+ * ```
2751
+ */
2752
+ declare namespace PreferTypeError {
2753
+ type RuleEntry = Linter.RuleSeverity;
2754
+ }
2755
+ /**
2756
+ * Prevent abbreviations.
2757
+ *
2758
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prevent-abbreviations.md
2759
+ *
2760
+ * ```md
2761
+ * | key | value |
2762
+ * | :---------- | :--------- |
2763
+ * | type | suggestion |
2764
+ * | deprecated | false |
2765
+ * | fixable | code |
2766
+ * | recommended | true |
2767
+ * ```
2768
+ */
2769
+ declare namespace PreventAbbreviations {
2770
+ /**
2771
+ * ### schema
2772
+ *
2773
+ * ```json
2774
+ * {
2775
+ * "type": "array",
2776
+ * "additionalItems": false,
2777
+ * "items": [
2778
+ * {
2779
+ * "type": "object",
2780
+ * "additionalProperties": false,
2781
+ * "properties": {
2782
+ * "checkProperties": {
2783
+ * "type": "boolean"
2784
+ * },
2785
+ * "checkVariables": {
2786
+ * "type": "boolean"
2787
+ * },
2788
+ * "checkDefaultAndNamespaceImports": {
2789
+ * "type": ["boolean", "string"],
2790
+ * "pattern": "internal"
2791
+ * },
2792
+ * "checkShorthandImports": {
2793
+ * "type": ["boolean", "string"],
2794
+ * "pattern": "internal"
2795
+ * },
2796
+ * "checkShorthandProperties": {
2797
+ * "type": "boolean"
2798
+ * },
2799
+ * "checkFilenames": {
2800
+ * "type": "boolean"
2801
+ * },
2802
+ * "extendDefaultReplacements": {
2803
+ * "type": "boolean"
2804
+ * },
2805
+ * "replacements": {
2806
+ * "$ref": "#/definitions/abbreviations"
2807
+ * },
2808
+ * "extendDefaultAllowList": {
2809
+ * "type": "boolean"
2810
+ * },
2811
+ * "allowList": {
2812
+ * "$ref": "#/definitions/booleanObject"
2813
+ * },
2814
+ * "ignore": {
2815
+ * "type": "array",
2816
+ * "uniqueItems": true
2817
+ * }
2818
+ * }
2819
+ * }
2820
+ * ],
2821
+ * "definitions": {
2822
+ * "abbreviations": {
2823
+ * "type": "object",
2824
+ * "additionalProperties": {
2825
+ * "$ref": "#/definitions/replacements"
2826
+ * }
2827
+ * },
2828
+ * "replacements": {
2829
+ * "anyOf": [
2830
+ * {
2831
+ * "enum": [false]
2832
+ * },
2833
+ * {
2834
+ * "$ref": "#/definitions/booleanObject"
2835
+ * }
2836
+ * ]
2837
+ * },
2838
+ * "booleanObject": {
2839
+ * "type": "object",
2840
+ * "additionalProperties": {
2841
+ * "type": "boolean"
2842
+ * }
2843
+ * }
2844
+ * }
2845
+ * }
2846
+ * ```
2847
+ */
2848
+ type Options = readonly [
2849
+ {
2850
+ readonly checkProperties?: boolean;
2851
+ readonly checkVariables?: boolean;
2852
+ readonly checkDefaultAndNamespaceImports?: boolean | string;
2853
+ readonly checkShorthandImports?: boolean | string;
2854
+ readonly checkShorthandProperties?: boolean;
2855
+ readonly checkFilenames?: boolean;
2856
+ readonly extendDefaultReplacements?: boolean;
2857
+ readonly replacements?: Abbreviations;
2858
+ readonly extendDefaultAllowList?: boolean;
2859
+ readonly allowList?: BooleanObject;
2860
+ readonly ignore?: readonly unknown[];
2861
+ }
2862
+ ] | readonly [];
2863
+ type Replacements = BooleanObject | false;
2864
+ type Abbreviations = Readonly<Record<string, Replacements>>;
2865
+ type BooleanObject = Readonly<Record<string, boolean>>;
2866
+ type RuleEntry = Linter.StringSeverity | SpreadOptionsIfIsArray<readonly [Linter.RuleSeverity, Options]>;
2867
+ }
2868
+ /**
2869
+ * Enforce consistent relative URL style.
2870
+ *
2871
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/relative-url-style.md
2872
+ *
2873
+ * ```md
2874
+ * | key | value |
2875
+ * | :------------- | :--------- |
2876
+ * | type | suggestion |
2877
+ * | deprecated | false |
2878
+ * | fixable | code |
2879
+ * | hasSuggestions | true |
2880
+ * | recommended | true |
2881
+ * ```
2882
+ */
2883
+ declare namespace RelativeUrlStyle {
2884
+ /**
2885
+ * ### schema
2886
+ *
2887
+ * ```json
2888
+ * [
2889
+ * {
2890
+ * "enum": [
2891
+ * "never",
2892
+ * "always"
2893
+ * ],
2894
+ * "default": "never"
2895
+ * }
2896
+ * ]
2897
+ * ```
2898
+ */
2899
+ type Options = 'always' | 'never';
2900
+ type RuleEntry = Linter.StringSeverity | SpreadOptionsIfIsArray<readonly [Linter.RuleSeverity, Options]>;
2901
+ }
2902
+ /**
2903
+ * Enforce using the separator argument with `Array#join()`.
2904
+ *
2905
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/require-array-join-separator.md
2906
+ *
2907
+ * ```md
2908
+ * | key | value |
2909
+ * | :---------- | :--------- |
2910
+ * | type | suggestion |
2911
+ * | deprecated | false |
2912
+ * | fixable | code |
2913
+ * | recommended | true |
2914
+ * ```
2915
+ */
2916
+ declare namespace RequireArrayJoinSeparator {
2917
+ type RuleEntry = Linter.RuleSeverity;
2918
+ }
2919
+ /**
2920
+ * Enforce using the digits argument with `Number#toFixed()`.
2921
+ *
2922
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/require-number-to-fixed-digits-argument.md
2923
+ *
2924
+ * ```md
2925
+ * | key | value |
2926
+ * | :---------- | :--------- |
2927
+ * | type | suggestion |
2928
+ * | deprecated | false |
2929
+ * | fixable | code |
2930
+ * | recommended | true |
2931
+ * ```
2932
+ */
2933
+ declare namespace RequireNumberToFixedDigitsArgument {
2934
+ type RuleEntry = Linter.RuleSeverity;
2935
+ }
2936
+ /**
2937
+ * Enforce using the `targetOrigin` argument with `window.postMessage()`.
2938
+ *
2939
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/require-post-message-target-origin.md
2940
+ *
2941
+ * ```md
2942
+ * | key | value |
2943
+ * | :------------- | :------ |
2944
+ * | type | problem |
2945
+ * | deprecated | false |
2946
+ * | hasSuggestions | true |
2947
+ * | recommended | false |
2948
+ * ```
2949
+ */
2950
+ declare namespace RequirePostMessageTargetOrigin {
2951
+ type RuleEntry = Linter.RuleSeverity;
2952
+ }
2953
+ /**
2954
+ * Enforce better string content.
2955
+ *
2956
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/string-content.md
2957
+ *
2958
+ * ```md
2959
+ * | key | value |
2960
+ * | :------------- | :--------- |
2961
+ * | type | suggestion |
2962
+ * | deprecated | false |
2963
+ * | fixable | code |
2964
+ * | hasSuggestions | true |
2965
+ * | recommended | false |
2966
+ * ```
2967
+ */
2968
+ declare namespace StringContent {
2969
+ /**
2970
+ * ### schema
2971
+ *
2972
+ * ```json
2973
+ * [
2974
+ * {
2975
+ * "type": "object",
2976
+ * "additionalProperties": false,
2977
+ * "properties": {
2978
+ * "patterns": {
2979
+ * "type": "object",
2980
+ * "additionalProperties": {
2981
+ * "anyOf": [
2982
+ * {
2983
+ * "type": "string"
2984
+ * },
2985
+ * {
2986
+ * "type": "object",
2987
+ * "required": [
2988
+ * "suggest"
2989
+ * ],
2990
+ * "properties": {
2991
+ * "suggest": {
2992
+ * "type": "string"
2993
+ * },
2994
+ * "fix": {
2995
+ * "type": "boolean"
2996
+ * },
2997
+ * "message": {
2998
+ * "type": "string"
2999
+ * }
3000
+ * },
3001
+ * "additionalProperties": false
3002
+ * }
3003
+ * ]
3004
+ * }
3005
+ * }
3006
+ * }
3007
+ * }
3008
+ * ]
3009
+ * ```
3010
+ */
3011
+ type Options = {
3012
+ readonly patterns?: Record<string, string | {
3013
+ readonly suggest: string;
3014
+ readonly fix?: boolean;
3015
+ readonly message?: string;
3016
+ }>;
3017
+ };
3018
+ type RuleEntry = Linter.StringSeverity | SpreadOptionsIfIsArray<readonly [Linter.RuleSeverity, Options]>;
3019
+ }
3020
+ /**
3021
+ * Enforce consistent brace style for `case` clauses.
3022
+ *
3023
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/switch-case-braces.md
3024
+ *
3025
+ * ```md
3026
+ * | key | value |
3027
+ * | :---------- | :----- |
3028
+ * | type | layout |
3029
+ * | deprecated | false |
3030
+ * | fixable | code |
3031
+ * | recommended | true |
3032
+ * ```
3033
+ */
3034
+ declare namespace SwitchCaseBraces {
3035
+ /**
3036
+ * ### schema
3037
+ *
3038
+ * ```json
3039
+ * [
3040
+ * {
3041
+ * "enum": [
3042
+ * "always",
3043
+ * "avoid"
3044
+ * ]
3045
+ * }
3046
+ * ]
3047
+ * ```
3048
+ */
3049
+ type Options = 'always' | 'avoid';
3050
+ type RuleEntry = Linter.StringSeverity | SpreadOptionsIfIsArray<readonly [Linter.RuleSeverity, Options]>;
3051
+ }
3052
+ /**
3053
+ * Fix whitespace-insensitive template indentation.
3054
+ *
3055
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/template-indent.md
3056
+ *
3057
+ * ```md
3058
+ * | key | value |
3059
+ * | :---------- | :--------- |
3060
+ * | type | suggestion |
3061
+ * | deprecated | false |
3062
+ * | fixable | code |
3063
+ * | recommended | true |
3064
+ * ```
3065
+ */
3066
+ declare namespace TemplateIndent {
3067
+ /**
3068
+ * ### schema
3069
+ *
3070
+ * ```json
3071
+ * [
3072
+ * {
3073
+ * "type": "object",
3074
+ * "additionalProperties": false,
3075
+ * "properties": {
3076
+ * "indent": {
3077
+ * "oneOf": [
3078
+ * {
3079
+ * "type": "string",
3080
+ * "pattern": "^\\s+$"
3081
+ * },
3082
+ * {
3083
+ * "type": "integer",
3084
+ * "minimum": 1
3085
+ * }
3086
+ * ]
3087
+ * },
3088
+ * "tags": {
3089
+ * "type": "array",
3090
+ * "uniqueItems": true,
3091
+ * "items": {
3092
+ * "type": "string"
3093
+ * }
3094
+ * },
3095
+ * "functions": {
3096
+ * "type": "array",
3097
+ * "uniqueItems": true,
3098
+ * "items": {
3099
+ * "type": "string"
3100
+ * }
3101
+ * },
3102
+ * "selectors": {
3103
+ * "type": "array",
3104
+ * "uniqueItems": true,
3105
+ * "items": {
3106
+ * "type": "string"
3107
+ * }
3108
+ * },
3109
+ * "comments": {
3110
+ * "type": "array",
3111
+ * "uniqueItems": true,
3112
+ * "items": {
3113
+ * "type": "string"
3114
+ * }
3115
+ * }
3116
+ * }
3117
+ * }
3118
+ * ]
3119
+ * ```
3120
+ */
3121
+ type Options = {
3122
+ readonly indent?: number | string;
3123
+ readonly tags?: readonly string[];
3124
+ readonly functions?: readonly string[];
3125
+ readonly selectors?: readonly string[];
3126
+ readonly comments?: readonly string[];
3127
+ };
3128
+ type RuleEntry = Linter.StringSeverity | SpreadOptionsIfIsArray<readonly [Linter.RuleSeverity, Options]>;
3129
+ }
3130
+ /**
3131
+ * Enforce consistent case for text encoding identifiers.
3132
+ *
3133
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/text-encoding-identifier-case.md
3134
+ *
3135
+ * ```md
3136
+ * | key | value |
3137
+ * | :------------- | :--------- |
3138
+ * | type | suggestion |
3139
+ * | deprecated | false |
3140
+ * | fixable | code |
3141
+ * | hasSuggestions | true |
3142
+ * | recommended | true |
3143
+ * ```
3144
+ */
3145
+ declare namespace TextEncodingIdentifierCase {
3146
+ type RuleEntry = Linter.RuleSeverity;
3147
+ }
3148
+ /**
3149
+ * Require `new` when creating an error.
3150
+ *
3151
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/throw-new-error.md
3152
+ *
3153
+ * ```md
3154
+ * | key | value |
3155
+ * | :---------- | :--------- |
3156
+ * | type | suggestion |
3157
+ * | deprecated | false |
3158
+ * | fixable | code |
3159
+ * | recommended | true |
3160
+ * ```
3161
+ */
3162
+ declare namespace ThrowNewError {
3163
+ type RuleEntry = Linter.RuleSeverity;
3164
+ }
3165
+ /**
3166
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#import-index
3167
+ *
3168
+ * ```md
3169
+ * | key | value |
3170
+ * | :--------- | :---- |
3171
+ * | deprecated | true |
3172
+ * ```
3173
+ */
3174
+ declare namespace ImportIndex {
3175
+ type RuleEntry = 0;
3176
+ }
3177
+ /**
3178
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#no-array-instanceof
3179
+ *
3180
+ * ```md
3181
+ * | key | value |
3182
+ * | :--------- | :---- |
3183
+ * | deprecated | true |
3184
+ * ```
3185
+ */
3186
+ declare namespace NoArrayInstanceof {
3187
+ type RuleEntry = 0;
3188
+ }
3189
+ /**
3190
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#no-fn-reference-in-iterator
3191
+ *
3192
+ * ```md
3193
+ * | key | value |
3194
+ * | :--------- | :---- |
3195
+ * | deprecated | true |
3196
+ * ```
3197
+ */
3198
+ declare namespace NoFnReferenceInIterator {
3199
+ type RuleEntry = 0;
3200
+ }
3201
+ /**
3202
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#no-reduce
3203
+ *
3204
+ * ```md
3205
+ * | key | value |
3206
+ * | :--------- | :---- |
3207
+ * | deprecated | true |
3208
+ * ```
3209
+ */
3210
+ declare namespace NoReduce {
3211
+ type RuleEntry = 0;
3212
+ }
3213
+ /**
3214
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#no-unsafe-regex
3215
+ *
3216
+ * ```md
3217
+ * | key | value |
3218
+ * | :--------- | :---- |
3219
+ * | deprecated | true |
3220
+ * ```
3221
+ */
3222
+ declare namespace NoUnsafeRegex {
3223
+ type RuleEntry = 0;
3224
+ }
3225
+ /**
3226
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-dataset
3227
+ *
3228
+ * ```md
3229
+ * | key | value |
3230
+ * | :--------- | :---- |
3231
+ * | deprecated | true |
3232
+ * ```
3233
+ */
3234
+ declare namespace PreferDataset {
3235
+ type RuleEntry = 0;
3236
+ }
3237
+ /**
3238
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-event-key
3239
+ *
3240
+ * ```md
3241
+ * | key | value |
3242
+ * | :--------- | :---- |
3243
+ * | deprecated | true |
3244
+ * ```
3245
+ */
3246
+ declare namespace PreferEventKey {
3247
+ type RuleEntry = 0;
3248
+ }
3249
+ /**
3250
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-exponentiation-operator
3251
+ *
3252
+ * ```md
3253
+ * | key | value |
3254
+ * | :--------- | :---- |
3255
+ * | deprecated | true |
3256
+ * ```
3257
+ */
3258
+ declare namespace PreferExponentiationOperator {
3259
+ type RuleEntry = 0;
3260
+ }
3261
+ /**
3262
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-flat-map
3263
+ *
3264
+ * ```md
3265
+ * | key | value |
3266
+ * | :--------- | :---- |
3267
+ * | deprecated | true |
3268
+ * ```
3269
+ */
3270
+ declare namespace PreferFlatMap {
3271
+ type RuleEntry = 0;
3272
+ }
3273
+ /**
3274
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-node-append
3275
+ *
3276
+ * ```md
3277
+ * | key | value |
3278
+ * | :--------- | :---- |
3279
+ * | deprecated | true |
3280
+ * ```
3281
+ */
3282
+ declare namespace PreferNodeAppend {
3283
+ type RuleEntry = 0;
3284
+ }
3285
+ /**
3286
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-node-remove
3287
+ *
3288
+ * ```md
3289
+ * | key | value |
3290
+ * | :--------- | :---- |
3291
+ * | deprecated | true |
3292
+ * ```
3293
+ */
3294
+ declare namespace PreferNodeRemove {
3295
+ type RuleEntry = 0;
3296
+ }
3297
+ /**
3298
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-object-has-own
3299
+ *
3300
+ * ```md
3301
+ * | key | value |
3302
+ * | :--------- | :---- |
3303
+ * | deprecated | true |
3304
+ * ```
3305
+ */
3306
+ declare namespace PreferObjectHasOwn {
3307
+ type RuleEntry = 0;
3308
+ }
3309
+ /**
3310
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-replace-all
3311
+ *
3312
+ * ```md
3313
+ * | key | value |
3314
+ * | :--------- | :---- |
3315
+ * | deprecated | true |
3316
+ * ```
3317
+ */
3318
+ declare namespace PreferReplaceAll {
3319
+ type RuleEntry = 0;
3320
+ }
3321
+ /**
3322
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-starts-ends-with
3323
+ *
3324
+ * ```md
3325
+ * | key | value |
3326
+ * | :--------- | :---- |
3327
+ * | deprecated | true |
3328
+ * ```
3329
+ */
3330
+ declare namespace PreferStartsEndsWith {
3331
+ type RuleEntry = 0;
3332
+ }
3333
+ /**
3334
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-text-content
3335
+ *
3336
+ * ```md
3337
+ * | key | value |
3338
+ * | :--------- | :---- |
3339
+ * | deprecated | true |
3340
+ * ```
3341
+ */
3342
+ declare namespace PreferTextContent {
3343
+ type RuleEntry = 0;
3344
+ }
3345
+ /**
3346
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-trim-start-end
3347
+ *
3348
+ * ```md
3349
+ * | key | value |
3350
+ * | :--------- | :---- |
3351
+ * | deprecated | true |
3352
+ * ```
3353
+ */
3354
+ declare namespace PreferTrimStartEnd {
3355
+ type RuleEntry = 0;
3356
+ }
3357
+ /**
3358
+ * @link https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#regex-shorthand
3359
+ *
3360
+ * ```md
3361
+ * | key | value |
3362
+ * | :--------- | :---- |
3363
+ * | deprecated | true |
3364
+ * ```
3365
+ */
3366
+ declare namespace RegexShorthand {
3367
+ type RuleEntry = 0;
3368
+ }
3369
+ export type EslintUnicornRules = {
3370
+ readonly 'unicorn/better-regex': BetterRegex.RuleEntry;
3371
+ readonly 'unicorn/catch-error-name': CatchErrorName.RuleEntry;
3372
+ readonly 'unicorn/consistent-destructuring': ConsistentDestructuring.RuleEntry;
3373
+ readonly 'unicorn/consistent-empty-array-spread': ConsistentEmptyArraySpread.RuleEntry;
3374
+ readonly 'unicorn/consistent-existence-index-check': ConsistentExistenceIndexCheck.RuleEntry;
3375
+ readonly 'unicorn/consistent-function-scoping': ConsistentFunctionScoping.RuleEntry;
3376
+ readonly 'unicorn/custom-error-definition': CustomErrorDefinition.RuleEntry;
3377
+ readonly 'unicorn/empty-brace-spaces': EmptyBraceSpaces.RuleEntry;
3378
+ readonly 'unicorn/error-message': ErrorMessage.RuleEntry;
3379
+ readonly 'unicorn/escape-case': EscapeCase.RuleEntry;
3380
+ readonly 'unicorn/expiring-todo-comments': ExpiringTodoComments.RuleEntry;
3381
+ readonly 'unicorn/explicit-length-check': ExplicitLengthCheck.RuleEntry;
3382
+ readonly 'unicorn/filename-case': FilenameCase.RuleEntry;
3383
+ readonly 'unicorn/import-style': ImportStyle.RuleEntry;
3384
+ readonly 'unicorn/new-for-builtins': NewForBuiltins.RuleEntry;
3385
+ readonly 'unicorn/no-abusive-eslint-disable': NoAbusiveEslintDisable.RuleEntry;
3386
+ readonly 'unicorn/no-anonymous-default-export': NoAnonymousDefaultExport.RuleEntry;
3387
+ readonly 'unicorn/no-array-callback-reference': NoArrayCallbackReference.RuleEntry;
3388
+ readonly 'unicorn/no-array-for-each': NoArrayForEach.RuleEntry;
3389
+ readonly 'unicorn/no-array-method-this-argument': NoArrayMethodThisArgument.RuleEntry;
3390
+ readonly 'unicorn/no-array-push-push': NoArrayPushPush.RuleEntry;
3391
+ readonly 'unicorn/no-array-reduce': NoArrayReduce.RuleEntry;
3392
+ readonly 'unicorn/no-await-expression-member': NoAwaitExpressionMember.RuleEntry;
3393
+ readonly 'unicorn/no-await-in-promise-methods': NoAwaitInPromiseMethods.RuleEntry;
3394
+ readonly 'unicorn/no-console-spaces': NoConsoleSpaces.RuleEntry;
3395
+ readonly 'unicorn/no-document-cookie': NoDocumentCookie.RuleEntry;
3396
+ readonly 'unicorn/no-empty-file': NoEmptyFile.RuleEntry;
3397
+ readonly 'unicorn/no-for-loop': NoForLoop.RuleEntry;
3398
+ readonly 'unicorn/no-hex-escape': NoHexEscape.RuleEntry;
3399
+ readonly 'unicorn/no-instanceof-array': NoInstanceofArray.RuleEntry;
3400
+ readonly 'unicorn/no-invalid-fetch-options': NoInvalidFetchOptions.RuleEntry;
3401
+ readonly 'unicorn/no-invalid-remove-event-listener': NoInvalidRemoveEventListener.RuleEntry;
3402
+ readonly 'unicorn/no-keyword-prefix': NoKeywordPrefix.RuleEntry;
3403
+ readonly 'unicorn/no-length-as-slice-end': NoLengthAsSliceEnd.RuleEntry;
3404
+ readonly 'unicorn/no-lonely-if': NoLonelyIf.RuleEntry;
3405
+ readonly 'unicorn/no-magic-array-flat-depth': NoMagicArrayFlatDepth.RuleEntry;
3406
+ readonly 'unicorn/no-negated-condition': NoNegatedCondition.RuleEntry;
3407
+ readonly 'unicorn/no-negation-in-equality-check': NoNegationInEqualityCheck.RuleEntry;
3408
+ readonly 'unicorn/no-nested-ternary': NoNestedTernary.RuleEntry;
3409
+ readonly 'unicorn/no-new-array': NoNewArray.RuleEntry;
3410
+ readonly 'unicorn/no-new-buffer': NoNewBuffer.RuleEntry;
3411
+ readonly 'unicorn/no-null': NoNull.RuleEntry;
3412
+ readonly 'unicorn/no-object-as-default-parameter': NoObjectAsDefaultParameter.RuleEntry;
3413
+ readonly 'unicorn/no-process-exit': NoProcessExit.RuleEntry;
3414
+ readonly 'unicorn/no-single-promise-in-promise-methods': NoSinglePromiseInPromiseMethods.RuleEntry;
3415
+ readonly 'unicorn/no-static-only-class': NoStaticOnlyClass.RuleEntry;
3416
+ readonly 'unicorn/no-thenable': NoThenable.RuleEntry;
3417
+ readonly 'unicorn/no-this-assignment': NoThisAssignment.RuleEntry;
3418
+ readonly 'unicorn/no-typeof-undefined': NoTypeofUndefined.RuleEntry;
3419
+ readonly 'unicorn/no-unnecessary-await': NoUnnecessaryAwait.RuleEntry;
3420
+ readonly 'unicorn/no-unnecessary-polyfills': NoUnnecessaryPolyfills.RuleEntry;
3421
+ readonly 'unicorn/no-unreadable-array-destructuring': NoUnreadableArrayDestructuring.RuleEntry;
3422
+ readonly 'unicorn/no-unreadable-iife': NoUnreadableIife.RuleEntry;
3423
+ readonly 'unicorn/no-unused-properties': NoUnusedProperties.RuleEntry;
3424
+ readonly 'unicorn/no-useless-fallback-in-spread': NoUselessFallbackInSpread.RuleEntry;
3425
+ readonly 'unicorn/no-useless-length-check': NoUselessLengthCheck.RuleEntry;
3426
+ readonly 'unicorn/no-useless-promise-resolve-reject': NoUselessPromiseResolveReject.RuleEntry;
3427
+ readonly 'unicorn/no-useless-spread': NoUselessSpread.RuleEntry;
3428
+ readonly 'unicorn/no-useless-switch-case': NoUselessSwitchCase.RuleEntry;
3429
+ readonly 'unicorn/no-useless-undefined': NoUselessUndefined.RuleEntry;
3430
+ readonly 'unicorn/no-zero-fractions': NoZeroFractions.RuleEntry;
3431
+ readonly 'unicorn/number-literal-case': NumberLiteralCase.RuleEntry;
3432
+ readonly 'unicorn/numeric-separators-style': NumericSeparatorsStyle.RuleEntry;
3433
+ readonly 'unicorn/prefer-add-event-listener': PreferAddEventListener.RuleEntry;
3434
+ readonly 'unicorn/prefer-array-find': PreferArrayFind.RuleEntry;
3435
+ readonly 'unicorn/prefer-array-flat-map': PreferArrayFlatMap.RuleEntry;
3436
+ readonly 'unicorn/prefer-array-flat': PreferArrayFlat.RuleEntry;
3437
+ readonly 'unicorn/prefer-array-index-of': PreferArrayIndexOf.RuleEntry;
3438
+ readonly 'unicorn/prefer-array-some': PreferArraySome.RuleEntry;
3439
+ readonly 'unicorn/prefer-at': PreferAt.RuleEntry;
3440
+ readonly 'unicorn/prefer-blob-reading-methods': PreferBlobReadingMethods.RuleEntry;
3441
+ readonly 'unicorn/prefer-code-point': PreferCodePoint.RuleEntry;
3442
+ readonly 'unicorn/prefer-date-now': PreferDateNow.RuleEntry;
3443
+ readonly 'unicorn/prefer-default-parameters': PreferDefaultParameters.RuleEntry;
3444
+ readonly 'unicorn/prefer-dom-node-append': PreferDomNodeAppend.RuleEntry;
3445
+ readonly 'unicorn/prefer-dom-node-dataset': PreferDomNodeDataset.RuleEntry;
3446
+ readonly 'unicorn/prefer-dom-node-remove': PreferDomNodeRemove.RuleEntry;
3447
+ readonly 'unicorn/prefer-dom-node-text-content': PreferDomNodeTextContent.RuleEntry;
3448
+ readonly 'unicorn/prefer-event-target': PreferEventTarget.RuleEntry;
3449
+ readonly 'unicorn/prefer-export-from': PreferExportFrom.RuleEntry;
3450
+ readonly 'unicorn/prefer-global-this': PreferGlobalThis.RuleEntry;
3451
+ readonly 'unicorn/prefer-includes': PreferIncludes.RuleEntry;
3452
+ readonly 'unicorn/prefer-json-parse-buffer': PreferJsonParseBuffer.RuleEntry;
3453
+ readonly 'unicorn/prefer-keyboard-event-key': PreferKeyboardEventKey.RuleEntry;
3454
+ readonly 'unicorn/prefer-logical-operator-over-ternary': PreferLogicalOperatorOverTernary.RuleEntry;
3455
+ readonly 'unicorn/prefer-math-min-max': PreferMathMinMax.RuleEntry;
3456
+ readonly 'unicorn/prefer-math-trunc': PreferMathTrunc.RuleEntry;
3457
+ readonly 'unicorn/prefer-modern-dom-apis': PreferModernDomApis.RuleEntry;
3458
+ readonly 'unicorn/prefer-modern-math-apis': PreferModernMathApis.RuleEntry;
3459
+ readonly 'unicorn/prefer-module': PreferModule.RuleEntry;
3460
+ readonly 'unicorn/prefer-native-coercion-functions': PreferNativeCoercionFunctions.RuleEntry;
3461
+ readonly 'unicorn/prefer-negative-index': PreferNegativeIndex.RuleEntry;
3462
+ readonly 'unicorn/prefer-node-protocol': PreferNodeProtocol.RuleEntry;
3463
+ readonly 'unicorn/prefer-number-properties': PreferNumberProperties.RuleEntry;
3464
+ readonly 'unicorn/prefer-object-from-entries': PreferObjectFromEntries.RuleEntry;
3465
+ readonly 'unicorn/prefer-optional-catch-binding': PreferOptionalCatchBinding.RuleEntry;
3466
+ readonly 'unicorn/prefer-prototype-methods': PreferPrototypeMethods.RuleEntry;
3467
+ readonly 'unicorn/prefer-query-selector': PreferQuerySelector.RuleEntry;
3468
+ readonly 'unicorn/prefer-reflect-apply': PreferReflectApply.RuleEntry;
3469
+ readonly 'unicorn/prefer-regexp-test': PreferRegexpTest.RuleEntry;
3470
+ readonly 'unicorn/prefer-set-has': PreferSetHas.RuleEntry;
3471
+ readonly 'unicorn/prefer-set-size': PreferSetSize.RuleEntry;
3472
+ readonly 'unicorn/prefer-spread': PreferSpread.RuleEntry;
3473
+ readonly 'unicorn/prefer-string-raw': PreferStringRaw.RuleEntry;
3474
+ readonly 'unicorn/prefer-string-replace-all': PreferStringReplaceAll.RuleEntry;
3475
+ readonly 'unicorn/prefer-string-slice': PreferStringSlice.RuleEntry;
3476
+ readonly 'unicorn/prefer-string-starts-ends-with': PreferStringStartsEndsWith.RuleEntry;
3477
+ readonly 'unicorn/prefer-string-trim-start-end': PreferStringTrimStartEnd.RuleEntry;
3478
+ readonly 'unicorn/prefer-structured-clone': PreferStructuredClone.RuleEntry;
3479
+ readonly 'unicorn/prefer-switch': PreferSwitch.RuleEntry;
3480
+ readonly 'unicorn/prefer-ternary': PreferTernary.RuleEntry;
3481
+ readonly 'unicorn/prefer-top-level-await': PreferTopLevelAwait.RuleEntry;
3482
+ readonly 'unicorn/prefer-type-error': PreferTypeError.RuleEntry;
3483
+ readonly 'unicorn/prevent-abbreviations': PreventAbbreviations.RuleEntry;
3484
+ readonly 'unicorn/relative-url-style': RelativeUrlStyle.RuleEntry;
3485
+ readonly 'unicorn/require-array-join-separator': RequireArrayJoinSeparator.RuleEntry;
3486
+ readonly 'unicorn/require-number-to-fixed-digits-argument': RequireNumberToFixedDigitsArgument.RuleEntry;
3487
+ readonly 'unicorn/require-post-message-target-origin': RequirePostMessageTargetOrigin.RuleEntry;
3488
+ readonly 'unicorn/string-content': StringContent.RuleEntry;
3489
+ readonly 'unicorn/switch-case-braces': SwitchCaseBraces.RuleEntry;
3490
+ readonly 'unicorn/template-indent': TemplateIndent.RuleEntry;
3491
+ readonly 'unicorn/text-encoding-identifier-case': TextEncodingIdentifierCase.RuleEntry;
3492
+ readonly 'unicorn/throw-new-error': ThrowNewError.RuleEntry;
3493
+ readonly 'unicorn/import-index': ImportIndex.RuleEntry;
3494
+ readonly 'unicorn/no-array-instanceof': NoArrayInstanceof.RuleEntry;
3495
+ readonly 'unicorn/no-fn-reference-in-iterator': NoFnReferenceInIterator.RuleEntry;
3496
+ readonly 'unicorn/no-reduce': NoReduce.RuleEntry;
3497
+ readonly 'unicorn/no-unsafe-regex': NoUnsafeRegex.RuleEntry;
3498
+ readonly 'unicorn/prefer-dataset': PreferDataset.RuleEntry;
3499
+ readonly 'unicorn/prefer-event-key': PreferEventKey.RuleEntry;
3500
+ readonly 'unicorn/prefer-exponentiation-operator': PreferExponentiationOperator.RuleEntry;
3501
+ readonly 'unicorn/prefer-flat-map': PreferFlatMap.RuleEntry;
3502
+ readonly 'unicorn/prefer-node-append': PreferNodeAppend.RuleEntry;
3503
+ readonly 'unicorn/prefer-node-remove': PreferNodeRemove.RuleEntry;
3504
+ readonly 'unicorn/prefer-object-has-own': PreferObjectHasOwn.RuleEntry;
3505
+ readonly 'unicorn/prefer-replace-all': PreferReplaceAll.RuleEntry;
3506
+ readonly 'unicorn/prefer-starts-ends-with': PreferStartsEndsWith.RuleEntry;
3507
+ readonly 'unicorn/prefer-text-content': PreferTextContent.RuleEntry;
3508
+ readonly 'unicorn/prefer-trim-start-end': PreferTrimStartEnd.RuleEntry;
3509
+ readonly 'unicorn/regex-shorthand': RegexShorthand.RuleEntry;
3510
+ };
3511
+ export type EslintUnicornRulesOption = {
3512
+ readonly 'unicorn/better-regex': BetterRegex.Options;
3513
+ readonly 'unicorn/catch-error-name': CatchErrorName.Options;
3514
+ readonly 'unicorn/consistent-function-scoping': ConsistentFunctionScoping.Options;
3515
+ readonly 'unicorn/expiring-todo-comments': ExpiringTodoComments.Options;
3516
+ readonly 'unicorn/explicit-length-check': ExplicitLengthCheck.Options;
3517
+ readonly 'unicorn/filename-case': FilenameCase.Options;
3518
+ readonly 'unicorn/import-style': ImportStyle.Options;
3519
+ readonly 'unicorn/no-array-push-push': NoArrayPushPush.Options;
3520
+ readonly 'unicorn/no-array-reduce': NoArrayReduce.Options;
3521
+ readonly 'unicorn/no-keyword-prefix': NoKeywordPrefix.Options;
3522
+ readonly 'unicorn/no-null': NoNull.Options;
3523
+ readonly 'unicorn/no-typeof-undefined': NoTypeofUndefined.Options;
3524
+ readonly 'unicorn/no-unnecessary-polyfills': NoUnnecessaryPolyfills.Options;
3525
+ readonly 'unicorn/no-useless-undefined': NoUselessUndefined.Options;
3526
+ readonly 'unicorn/numeric-separators-style': NumericSeparatorsStyle.Options;
3527
+ readonly 'unicorn/prefer-add-event-listener': PreferAddEventListener.Options;
3528
+ readonly 'unicorn/prefer-array-find': PreferArrayFind.Options;
3529
+ readonly 'unicorn/prefer-array-flat': PreferArrayFlat.Options;
3530
+ readonly 'unicorn/prefer-at': PreferAt.Options;
3531
+ readonly 'unicorn/prefer-export-from': PreferExportFrom.Options;
3532
+ readonly 'unicorn/prefer-number-properties': PreferNumberProperties.Options;
3533
+ readonly 'unicorn/prefer-object-from-entries': PreferObjectFromEntries.Options;
3534
+ readonly 'unicorn/prefer-structured-clone': PreferStructuredClone.Options;
3535
+ readonly 'unicorn/prefer-switch': PreferSwitch.Options;
3536
+ readonly 'unicorn/prefer-ternary': PreferTernary.Options;
3537
+ readonly 'unicorn/prevent-abbreviations': PreventAbbreviations.Options;
3538
+ readonly 'unicorn/relative-url-style': RelativeUrlStyle.Options;
3539
+ readonly 'unicorn/string-content': StringContent.Options;
3540
+ readonly 'unicorn/switch-case-braces': SwitchCaseBraces.Options;
3541
+ readonly 'unicorn/template-indent': TemplateIndent.Options;
3542
+ };
3543
+ export {};
3544
+ //# sourceMappingURL=eslint-unicorn-rules.d.mts.map