xo 0.53.0 → 0.54.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 (531) hide show
  1. package/config/plugins.cjs +27 -4
  2. package/index.js +6 -11
  3. package/lib/options-manager.js +11 -58
  4. package/node_modules/@eslint-community/eslint-utils/README.md +37 -0
  5. package/node_modules/{eslint-utils → @eslint-community/eslint-utils}/index.js +124 -12
  6. package/node_modules/@eslint-community/eslint-utils/index.js.map +1 -0
  7. package/node_modules/{eslint-utils → @eslint-community/eslint-utils}/index.mjs +124 -11
  8. package/node_modules/@eslint-community/eslint-utils/index.mjs.map +1 -0
  9. package/node_modules/@eslint-community/eslint-utils/package.json +73 -0
  10. package/node_modules/{regexpp → @eslint-community/regexpp}/README.md +9 -10
  11. package/node_modules/@eslint-community/regexpp/index.d.ts +781 -0
  12. package/node_modules/{regexpp → @eslint-community/regexpp}/index.js +297 -262
  13. package/node_modules/@eslint-community/regexpp/index.js.map +1 -0
  14. package/node_modules/{regexpp → @eslint-community/regexpp}/index.mjs +297 -262
  15. package/node_modules/@eslint-community/regexpp/index.mjs.map +1 -0
  16. package/node_modules/{regexpp → @eslint-community/regexpp}/package.json +60 -64
  17. package/node_modules/@typescript-eslint/eslint-plugin/LICENSE +1 -1
  18. package/node_modules/@typescript-eslint/eslint-plugin/README.md +6 -92
  19. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/all.js +10 -2
  20. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/all.js.map +1 -1
  21. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/strict.js +2 -1
  22. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/strict.js.map +1 -1
  23. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/adjacent-overload-signatures.js +4 -2
  24. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/adjacent-overload-signatures.js.map +1 -1
  25. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/array-type.js +1 -1
  26. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/array-type.js.map +1 -1
  27. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-ts-comment.js +2 -1
  28. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-ts-comment.js.map +1 -1
  29. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-types.js +3 -3
  30. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-types.js.map +1 -1
  31. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/block-spacing.js +158 -0
  32. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/block-spacing.js.map +1 -0
  33. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/brace-style.js +3 -1
  34. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/brace-style.js.map +1 -1
  35. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/comma-spacing.js +1 -1
  36. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/comma-spacing.js.map +1 -1
  37. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-generic-constructors.js +17 -7
  38. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-generic-constructors.js.map +1 -1
  39. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-assertions.js +47 -0
  40. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-assertions.js.map +1 -1
  41. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-imports.js +5 -11
  42. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-imports.js.map +1 -1
  43. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-function-return-type.js +22 -3
  44. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-function-return-type.js.map +1 -1
  45. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/index.js +12 -0
  46. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/index.js.map +1 -1
  47. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/key-spacing.js +351 -0
  48. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/key-spacing.js.map +1 -0
  49. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/keyword-spacing.js +53 -2
  50. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/keyword-spacing.js.map +1 -1
  51. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/lines-around-comment.js +384 -0
  52. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/lines-around-comment.js.map +1 -0
  53. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-ordering.js +205 -39
  54. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-ordering.js.map +1 -1
  55. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/enums.js +14 -13
  56. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/enums.js.map +1 -1
  57. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/schema.js +5 -0
  58. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/schema.js.map +1 -1
  59. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/validator.js +6 -6
  60. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/validator.js.map +1 -1
  61. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention.js +231 -198
  62. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention.js.map +1 -1
  63. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-void-expression.js +5 -0
  64. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-void-expression.js.map +1 -1
  65. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-type-constituents.js +158 -0
  66. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-type-constituents.js.map +1 -0
  67. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-interface.js +19 -16
  68. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-interface.js.map +1 -1
  69. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-explicit-any.js +2 -2
  70. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-explicit-any.js.map +1 -1
  71. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-floating-promises.js +45 -4
  72. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-floating-promises.js.map +1 -1
  73. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-implied-eval.js +1 -1
  74. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-implied-eval.js.map +1 -1
  75. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-import-type-side-effects.js +79 -0
  76. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-import-type-side-effects.js.map +1 -0
  77. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-inferrable-types.js +1 -1
  78. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-inferrable-types.js.map +1 -1
  79. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loss-of-precision.js +1 -1
  80. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loss-of-precision.js.map +1 -1
  81. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-promises.js +15 -15
  82. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-promises.js.map +1 -1
  83. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-mixed-enums.js +196 -0
  84. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-mixed-enums.js.map +1 -0
  85. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-nullish-coalescing.js +1 -1
  86. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-nullish-coalescing.js.map +1 -1
  87. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redundant-type-constituents.js +3 -3
  88. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redundant-type-constituents.js.map +1 -1
  89. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-shadow.js +6 -1
  90. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-shadow.js.map +1 -1
  91. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-boolean-literal-compare.js +21 -31
  92. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-boolean-literal-compare.js.map +1 -1
  93. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-condition.js +22 -7
  94. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-condition.js.map +1 -1
  95. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-qualifier.js +4 -5
  96. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-qualifier.js.map +1 -1
  97. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-argument.js +9 -9
  98. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-argument.js.map +1 -1
  99. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-vars.js +1 -2
  100. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-vars.js.map +1 -1
  101. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-use-before-define.js +2 -2
  102. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-use-before-define.js.map +1 -1
  103. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/object-curly-spacing.js +1 -0
  104. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/object-curly-spacing.js.map +1 -1
  105. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/padding-line-between-statements.js +1 -0
  106. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/padding-line-between-statements.js.map +1 -1
  107. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-for-of.js +3 -5
  108. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-for-of.js.map +1 -1
  109. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-function-type.js +4 -5
  110. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-function-type.js.map +1 -1
  111. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-includes.js +2 -2
  112. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-includes.js.map +1 -1
  113. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-nullish-coalescing.js +19 -1
  114. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-nullish-coalescing.js.map +1 -1
  115. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain.js +47 -11
  116. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain.js.map +1 -1
  117. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly.js +2 -1
  118. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly.js.map +1 -1
  119. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-regexp-exec.js +1 -1
  120. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-regexp-exec.js.map +1 -1
  121. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-string-starts-ends-with.js +2 -2
  122. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-string-starts-ends-with.js.map +1 -1
  123. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/promise-function-async.js +3 -1
  124. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/promise-function-async.js.map +1 -1
  125. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-array-sort-compare.js +1 -1
  126. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-array-sort-compare.js.map +1 -1
  127. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-template-expressions.js +7 -0
  128. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-template-expressions.js.map +1 -1
  129. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-constituents.js +5 -5
  130. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-constituents.js.map +1 -1
  131. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-union-intersection-members.js +5 -5
  132. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-union-intersection-members.js.map +1 -1
  133. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/space-before-blocks.js +1 -2
  134. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/space-before-blocks.js.map +1 -1
  135. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/space-before-function-paren.js +2 -1
  136. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/space-before-function-paren.js.map +1 -1
  137. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/strict-boolean-expressions.js +46 -2
  138. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/strict-boolean-expressions.js.map +1 -1
  139. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/switch-exhaustiveness-check.js +1 -1
  140. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/switch-exhaustiveness-check.js.map +1 -1
  141. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/triple-slash-reference.js +1 -1
  142. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/triple-slash-reference.js.map +1 -1
  143. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unbound-method.js +1 -1
  144. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unbound-method.js.map +1 -1
  145. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/collectUnusedVariables.js.map +1 -1
  146. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getESLintCoreRule.js.map +1 -1
  147. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getStringLength.js +20 -0
  148. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getStringLength.js.map +1 -0
  149. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getWrappingFixer.js +2 -1
  150. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getWrappingFixer.js.map +1 -1
  151. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/index.js +1 -0
  152. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/index.js.map +1 -1
  153. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isNullLiteral.js +1 -1
  154. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isNullLiteral.js.map +1 -1
  155. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/misc.js +27 -1
  156. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/misc.js.map +1 -1
  157. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/README.md +3 -3
  158. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/await-thenable.md +1 -1
  159. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/ban-types.md +3 -8
  160. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/block-spacing.md +12 -0
  161. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-indexed-object-style.md +1 -1
  162. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-type-exports.md +2 -0
  163. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-type-imports.md +9 -1
  164. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/explicit-function-return-type.md +52 -0
  165. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/key-spacing.md +12 -0
  166. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/lines-around-comment.md +37 -0
  167. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/member-ordering.md +181 -20
  168. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/naming-convention.md +7 -6
  169. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-duplicate-type-constituents.md +61 -0
  170. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-empty-interface.md +1 -1
  171. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-import-type-side-effects.md +75 -0
  172. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-mixed-enums.md +88 -0
  173. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-non-null-assertion.md +2 -2
  174. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-shadow.md +21 -0
  175. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-function-type.md +5 -0
  176. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/promise-function-async.md +18 -1
  177. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/restrict-template-expressions.md +9 -0
  178. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/strict-boolean-expressions.md +6 -0
  179. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/unified-signatures.md +7 -10
  180. package/node_modules/@typescript-eslint/eslint-plugin/package.json +13 -9
  181. package/node_modules/@typescript-eslint/parser/LICENSE +5 -5
  182. package/node_modules/@typescript-eslint/parser/README.md +6 -300
  183. package/node_modules/@typescript-eslint/parser/_ts3.4/dist/index.d.ts +4 -0
  184. package/node_modules/@typescript-eslint/parser/dist/index.d.ts +4 -0
  185. package/node_modules/@typescript-eslint/parser/dist/index.d.ts.map +1 -1
  186. package/node_modules/@typescript-eslint/parser/dist/index.js +5 -1
  187. package/node_modules/@typescript-eslint/parser/dist/index.js.map +1 -1
  188. package/node_modules/@typescript-eslint/parser/dist/parser.d.ts.map +1 -1
  189. package/node_modules/@typescript-eslint/parser/dist/parser.js +15 -17
  190. package/node_modules/@typescript-eslint/parser/dist/parser.js.map +1 -1
  191. package/node_modules/@typescript-eslint/parser/package.json +6 -6
  192. package/node_modules/@typescript-eslint/scope-manager/LICENSE +1 -1
  193. package/node_modules/@typescript-eslint/scope-manager/README.md +5 -117
  194. package/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.js +10 -10
  195. package/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.js.map +1 -1
  196. package/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.d.ts +1 -1
  197. package/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.d.ts.map +1 -1
  198. package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.d.ts +3 -0
  199. package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.d.ts.map +1 -0
  200. package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.js +21 -0
  201. package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.js.map +1 -0
  202. package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.d.ts +3 -0
  203. package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.d.ts.map +1 -0
  204. package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.js +15 -0
  205. package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.js.map +1 -0
  206. package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.d.ts.map +1 -1
  207. package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.d.ts.map +1 -1
  208. package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.js +5 -0
  209. package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.js.map +1 -1
  210. package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.js +44 -10
  211. package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.js.map +1 -1
  212. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.d.ts.map +1 -1
  213. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.js +1 -1
  214. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.js.map +1 -1
  215. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.d.ts.map +1 -1
  216. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.d.ts +3 -0
  217. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.d.ts.map +1 -0
  218. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.js +12 -0
  219. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.js.map +1 -0
  220. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.js +2 -1
  221. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.js.map +1 -1
  222. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.d.ts.map +1 -1
  223. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.js +2 -1
  224. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.js.map +1 -1
  225. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.d.ts +3 -0
  226. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.d.ts.map +1 -0
  227. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.js +15 -0
  228. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.js.map +1 -0
  229. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.d.ts +3 -0
  230. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.d.ts.map +1 -0
  231. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.js +24 -0
  232. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.js.map +1 -0
  233. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.d.ts +3 -0
  234. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.d.ts.map +1 -0
  235. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.d.ts +3 -0
  236. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.d.ts.map +1 -0
  237. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.js +14 -0
  238. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.js.map +1 -0
  239. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.js +11 -0
  240. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.js.map +1 -0
  241. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.d.ts.map +1 -1
  242. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.js +3 -105
  243. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.js.map +1 -1
  244. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.js +2 -2
  245. package/node_modules/@typescript-eslint/scope-manager/dist/lib/index.d.ts +7 -0
  246. package/node_modules/@typescript-eslint/scope-manager/dist/lib/index.d.ts.map +1 -1
  247. package/node_modules/@typescript-eslint/scope-manager/dist/lib/index.js +14 -0
  248. package/node_modules/@typescript-eslint/scope-manager/dist/lib/index.js.map +1 -1
  249. package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.d.ts.map +1 -1
  250. package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.d.ts.map +1 -1
  251. package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.js +2 -0
  252. package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.js.map +1 -1
  253. package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.js +43 -1
  254. package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.js.map +1 -1
  255. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.d.ts +4 -2
  256. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.d.ts.map +1 -1
  257. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.js +14 -6
  258. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.js.map +1 -1
  259. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.d.ts +1 -1
  260. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.d.ts.map +1 -1
  261. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.js.map +1 -1
  262. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.js.map +1 -1
  263. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.d.ts +2 -2
  264. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.d.ts.map +1 -1
  265. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.js +10 -12
  266. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.js.map +1 -1
  267. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.js +17 -17
  268. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.js.map +1 -1
  269. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.d.ts +2 -1
  270. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.d.ts.map +1 -1
  271. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.js +5 -2
  272. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.js.map +1 -1
  273. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.js.map +1 -1
  274. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.js.map +1 -1
  275. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.js.map +1 -1
  276. package/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.d.ts +1 -1
  277. package/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.d.ts.map +1 -1
  278. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.d.ts +1 -1
  279. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.d.ts.map +1 -1
  280. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.js.map +1 -1
  281. package/node_modules/@typescript-eslint/scope-manager/package.json +12 -12
  282. package/node_modules/@typescript-eslint/type-utils/LICENSE +1 -1
  283. package/node_modules/@typescript-eslint/type-utils/README.md +7 -10
  284. package/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/containsAllTypesByName.d.ts +4 -2
  285. package/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.d.ts +4 -2
  286. package/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.d.ts.map +1 -1
  287. package/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.js +12 -6
  288. package/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.js.map +1 -1
  289. package/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.d.ts.map +1 -1
  290. package/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.js +2 -4
  291. package/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.js.map +1 -1
  292. package/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.d.ts.map +1 -1
  293. package/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.js +1 -0
  294. package/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.js.map +1 -1
  295. package/node_modules/@typescript-eslint/type-utils/package.json +6 -6
  296. package/node_modules/@typescript-eslint/types/LICENSE +1 -1
  297. package/node_modules/@typescript-eslint/types/README.md +6 -11
  298. package/node_modules/@typescript-eslint/types/_ts3.4/dist/generated/ast-spec.d.ts +90 -16
  299. package/node_modules/@typescript-eslint/types/_ts3.4/dist/lib.d.ts +1 -1
  300. package/node_modules/@typescript-eslint/types/_ts3.4/dist/parser-options.d.ts +9 -5
  301. package/node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts +90 -16
  302. package/node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts.map +1 -1
  303. package/node_modules/@typescript-eslint/types/dist/generated/ast-spec.js +3 -0
  304. package/node_modules/@typescript-eslint/types/dist/generated/ast-spec.js.map +1 -1
  305. package/node_modules/@typescript-eslint/types/dist/lib.d.ts +1 -1
  306. package/node_modules/@typescript-eslint/types/dist/lib.d.ts.map +1 -1
  307. package/node_modules/@typescript-eslint/types/dist/parser-options.d.ts +9 -5
  308. package/node_modules/@typescript-eslint/types/dist/parser-options.d.ts.map +1 -1
  309. package/node_modules/@typescript-eslint/types/package.json +6 -6
  310. package/node_modules/@typescript-eslint/typescript-estree/LICENSE +5 -5
  311. package/node_modules/@typescript-eslint/typescript-estree/README.md +6 -379
  312. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/clear-caches.d.ts +10 -0
  313. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/describeFilePath.d.ts +2 -0
  314. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/{createWatchProgram.d.ts → getWatchProgramsForProjects.d.ts} +3 -4
  315. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/shared.d.ts +8 -2
  316. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/index.d.ts +2 -2
  317. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parseSettings/ExpiringCache.d.ts +17 -0
  318. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parseSettings/createParseSettings.d.ts +1 -0
  319. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parseSettings/getProjectConfigFiles.d.ts +12 -0
  320. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parseSettings/index.d.ts +8 -3
  321. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parseSettings/resolveProjectList.d.ts +19 -0
  322. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parser-options.d.ts +23 -4
  323. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parser.d.ts +1 -1
  324. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/simple-traverse.d.ts +1 -1
  325. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/ts-estree/estree-to-ts-node-types.d.ts +4 -1
  326. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/ts-estree/ts-nodes.d.ts +4 -2
  327. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/version-check.d.ts +1 -1
  328. package/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.d.ts +10 -0
  329. package/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.d.ts.map +1 -0
  330. package/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.js +24 -0
  331. package/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.js.map +1 -0
  332. package/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.js +1 -1
  333. package/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.js.map +1 -1
  334. package/node_modules/@typescript-eslint/typescript-estree/dist/convert.d.ts.map +1 -1
  335. package/node_modules/@typescript-eslint/typescript-estree/dist/convert.js +62 -16
  336. package/node_modules/@typescript-eslint/typescript-estree/dist/convert.js.map +1 -1
  337. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createDefaultProgram.d.ts.map +1 -1
  338. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createDefaultProgram.js +1 -0
  339. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createDefaultProgram.js.map +1 -1
  340. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.d.ts.map +1 -1
  341. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.js +7 -12
  342. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.js.map +1 -1
  343. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.d.ts +2 -0
  344. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.d.ts.map +1 -0
  345. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.js +32 -0
  346. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.js.map +1 -0
  347. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/{createWatchProgram.d.ts → getWatchProgramsForProjects.d.ts} +3 -4
  348. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.d.ts.map +1 -0
  349. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/{createWatchProgram.js → getWatchProgramsForProjects.js} +16 -20
  350. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.js.map +1 -0
  351. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.d.ts +8 -2
  352. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.d.ts.map +1 -1
  353. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.js +15 -1
  354. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.js.map +1 -1
  355. package/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.d.ts.map +1 -1
  356. package/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.js +3 -3
  357. package/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.js.map +1 -1
  358. package/node_modules/@typescript-eslint/typescript-estree/dist/index.d.ts +2 -2
  359. package/node_modules/@typescript-eslint/typescript-estree/dist/index.d.ts.map +1 -1
  360. package/node_modules/@typescript-eslint/typescript-estree/dist/index.js +2 -4
  361. package/node_modules/@typescript-eslint/typescript-estree/dist/index.js.map +1 -1
  362. package/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.d.ts.map +1 -1
  363. package/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.js +18 -5
  364. package/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.js.map +1 -1
  365. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.d.ts +17 -0
  366. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.d.ts.map +1 -0
  367. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.js +62 -0
  368. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.js.map +1 -0
  369. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.d.ts +1 -0
  370. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.d.ts.map +1 -1
  371. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.js +22 -48
  372. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.js.map +1 -1
  373. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.d.ts +12 -0
  374. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.d.ts.map +1 -0
  375. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.js +70 -0
  376. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.js.map +1 -0
  377. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.d.ts +8 -3
  378. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.d.ts.map +1 -1
  379. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.d.ts +19 -0
  380. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.d.ts.map +1 -0
  381. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.js +103 -0
  382. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.js.map +1 -0
  383. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.js +4 -4
  384. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.js.map +1 -1
  385. package/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.d.ts +23 -4
  386. package/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.d.ts.map +1 -1
  387. package/node_modules/@typescript-eslint/typescript-estree/dist/parser.d.ts +1 -1
  388. package/node_modules/@typescript-eslint/typescript-estree/dist/parser.d.ts.map +1 -1
  389. package/node_modules/@typescript-eslint/typescript-estree/dist/parser.js +1 -1
  390. package/node_modules/@typescript-eslint/typescript-estree/dist/parser.js.map +1 -1
  391. package/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.d.ts +1 -1
  392. package/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.d.ts.map +1 -1
  393. package/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.js +1 -1
  394. package/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.js.map +1 -1
  395. package/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.d.ts +4 -1
  396. package/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.d.ts.map +1 -1
  397. package/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.d.ts +4 -2
  398. package/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.d.ts.map +1 -1
  399. package/node_modules/@typescript-eslint/typescript-estree/dist/version-check.d.ts +1 -1
  400. package/node_modules/@typescript-eslint/typescript-estree/dist/version-check.d.ts.map +1 -1
  401. package/node_modules/@typescript-eslint/typescript-estree/dist/version-check.js +2 -0
  402. package/node_modules/@typescript-eslint/typescript-estree/dist/version-check.js.map +1 -1
  403. package/node_modules/@typescript-eslint/typescript-estree/package.json +5 -6
  404. package/node_modules/@typescript-eslint/utils/LICENSE +1 -1
  405. package/node_modules/@typescript-eslint/utils/README.md +6 -23
  406. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/eslint-utils/PatternMatcher.d.ts +4 -4
  407. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/eslint-utils/ReferenceTracker.d.ts +4 -4
  408. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/eslint-utils/astUtilities.d.ts +6 -6
  409. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/eslint-utils/predicates.d.ts +5 -5
  410. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/eslint-utils/scopeAnalysis.d.ts +2 -2
  411. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/helpers.d.ts +60 -6
  412. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/predicates.d.ts +13 -1
  413. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/InferTypesFromRule.d.ts +2 -2
  414. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/RuleCreator.d.ts +2 -2
  415. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/deepMerge.d.ts +1 -1
  416. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/rule-tester/RuleTester.d.ts +3 -3
  417. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/rule-tester/dependencyConstraints.d.ts +2 -2
  418. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint/Rule.d.ts +6 -6
  419. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint/RuleTester.d.ts +1 -1
  420. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint/SourceCode.d.ts +5 -1
  421. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint-scope/Options.d.ts +1 -1
  422. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint-scope/Reference.d.ts +1 -1
  423. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint-scope/Scope.d.ts +1 -1
  424. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.d.ts +4 -4
  425. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.js +2 -2
  426. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.js.map +1 -1
  427. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.d.ts +4 -4
  428. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.js +2 -2
  429. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.js.map +1 -1
  430. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.d.ts +6 -6
  431. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.js +7 -7
  432. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.js.map +1 -1
  433. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.d.ts +5 -5
  434. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.d.ts.map +1 -1
  435. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.js +1 -1
  436. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.js.map +1 -1
  437. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.d.ts +2 -2
  438. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.js +3 -3
  439. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.js.map +1 -1
  440. package/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.d.ts +60 -6
  441. package/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.d.ts.map +1 -1
  442. package/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.d.ts +13 -1
  443. package/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.d.ts.map +1 -1
  444. package/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.js +15 -1
  445. package/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.js.map +1 -1
  446. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.d.ts +2 -2
  447. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.d.ts.map +1 -1
  448. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.d.ts +2 -2
  449. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.d.ts.map +1 -1
  450. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.js +1 -1
  451. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.js.map +1 -1
  452. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/deepMerge.d.ts +1 -1
  453. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/deepMerge.d.ts.map +1 -1
  454. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.js +1 -1
  455. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.js.map +1 -1
  456. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/RuleTester.d.ts +3 -3
  457. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/RuleTester.d.ts.map +1 -1
  458. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/RuleTester.js +40 -27
  459. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/RuleTester.js.map +1 -1
  460. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/dependencyConstraints.d.ts +2 -2
  461. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/dependencyConstraints.d.ts.map +1 -1
  462. package/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.d.ts +6 -6
  463. package/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.d.ts.map +1 -1
  464. package/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.d.ts +1 -1
  465. package/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.d.ts.map +1 -1
  466. package/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.d.ts +5 -1
  467. package/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.d.ts.map +1 -1
  468. package/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.js.map +1 -1
  469. package/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Options.d.ts +1 -1
  470. package/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Options.d.ts.map +1 -1
  471. package/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Reference.d.ts +1 -1
  472. package/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Reference.d.ts.map +1 -1
  473. package/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Scope.d.ts +1 -1
  474. package/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Scope.d.ts.map +1 -1
  475. package/node_modules/@typescript-eslint/utils/package.json +8 -8
  476. package/node_modules/@typescript-eslint/visitor-keys/LICENSE +1 -1
  477. package/node_modules/@typescript-eslint/visitor-keys/README.md +6 -9
  478. package/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.d.ts.map +1 -1
  479. package/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.js +63 -48
  480. package/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.js.map +1 -1
  481. package/node_modules/@typescript-eslint/visitor-keys/package.json +4 -4
  482. package/node_modules/eslint-config-xo-typescript/index.js +8 -11
  483. package/node_modules/eslint-config-xo-typescript/package.json +5 -5
  484. package/node_modules/eslint-visitor-keys/README.md +1 -2
  485. package/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.cjs +38 -36
  486. package/node_modules/eslint-visitor-keys/lib/visitor-keys.js +38 -35
  487. package/node_modules/eslint-visitor-keys/package.json +16 -6
  488. package/node_modules/fastq/README.md +1 -1
  489. package/node_modules/fastq/index.d.ts +1 -1
  490. package/node_modules/fastq/package.json +1 -1
  491. package/node_modules/fastq/queue.js +6 -0
  492. package/node_modules/fastq/test/promise.js +27 -0
  493. package/node_modules/grapheme-splitter/LICENSE +22 -0
  494. package/node_modules/grapheme-splitter/README.md +111 -0
  495. package/node_modules/grapheme-splitter/index.d.ts +24 -0
  496. package/node_modules/grapheme-splitter/index.js +1743 -0
  497. package/node_modules/grapheme-splitter/package.json +34 -0
  498. package/node_modules/grapheme-splitter/tests/GraphemeBreakTest.txt +850 -0
  499. package/node_modules/grapheme-splitter/tests/grapheme_splitter_tests.js +83 -0
  500. package/node_modules/ignore/README.md +3 -3
  501. package/node_modules/ignore/index.js +24 -9
  502. package/node_modules/ignore/legacy.js +176 -135
  503. package/node_modules/ignore/package.json +13 -11
  504. package/package.json +19 -19
  505. package/readme.md +1 -2
  506. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createWatchProgram.d.ts.map +0 -1
  507. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createWatchProgram.js.map +0 -1
  508. package/node_modules/braces/CHANGELOG.md +0 -184
  509. package/node_modules/eslint-scope/CHANGELOG.md +0 -70
  510. package/node_modules/eslint-utils/README.md +0 -38
  511. package/node_modules/eslint-utils/index.js.map +0 -1
  512. package/node_modules/eslint-utils/index.mjs.map +0 -1
  513. package/node_modules/eslint-utils/node_modules/eslint-visitor-keys/CHANGELOG.md +0 -36
  514. package/node_modules/eslint-utils/node_modules/eslint-visitor-keys/LICENSE +0 -201
  515. package/node_modules/eslint-utils/node_modules/eslint-visitor-keys/README.md +0 -98
  516. package/node_modules/eslint-utils/node_modules/eslint-visitor-keys/lib/index.js +0 -81
  517. package/node_modules/eslint-utils/node_modules/eslint-visitor-keys/lib/visitor-keys.json +0 -289
  518. package/node_modules/eslint-utils/node_modules/eslint-visitor-keys/package.json +0 -39
  519. package/node_modules/eslint-utils/package.json +0 -78
  520. package/node_modules/glob-parent/CHANGELOG.md +0 -110
  521. package/node_modules/picomatch/CHANGELOG.md +0 -136
  522. package/node_modules/regexpp/index.d.ts +0 -248
  523. package/node_modules/regexpp/index.js.map +0 -1
  524. package/node_modules/regexpp/index.mjs.map +0 -1
  525. /package/node_modules/{eslint-utils → @eslint-community/eslint-utils}/LICENSE +0 -0
  526. /package/node_modules/{regexpp → @eslint-community/regexpp}/LICENSE +0 -0
  527. /package/node_modules/{yallist → semver/node_modules/yallist}/LICENSE +0 -0
  528. /package/node_modules/{yallist → semver/node_modules/yallist}/README.md +0 -0
  529. /package/node_modules/{yallist → semver/node_modules/yallist}/iterator.js +0 -0
  530. /package/node_modules/{yallist → semver/node_modules/yallist}/package.json +0 -0
  531. /package/node_modules/{yallist → semver/node_modules/yallist}/yallist.js +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"predicates.js","sourceRoot":"","sources":["../../../src/ast-utils/eslint-utils/predicates.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0DAA4C;AAmB5C,MAAM,YAAY,GAChB,WAAW,CAAC,YAAwD,CAAC;AAuDrE,oCAAY;AAtDd,MAAM,eAAe,GACnB,WAAW,CAAC,eAA8D,CAAC;AA4D3E,0CAAe;AA1DjB,MAAM,mBAAmB,GACvB,WAAW,CAAC,mBAA8D,CAAC;AAmD3E,kDAAmB;AAlDrB,MAAM,sBAAsB,GAC1B,WAAW,CAAC,sBAAoE,CAAC;AAwDjF,wDAAsB;AAtDxB,MAAM,qBAAqB,GACzB,WAAW,CAAC,qBAAgE,CAAC;AA+C7E,sDAAqB;AA9CvB,MAAM,wBAAwB,GAC5B,WAAW,CAAC,wBAAsE,CAAC;AAoDnF,4DAAwB;AAlD1B,MAAM,mBAAmB,GACvB,WAAW,CAAC,mBAA8D,CAAC;AA2C3E,kDAAmB;AA1CrB,MAAM,sBAAsB,GAC1B,WAAW,CAAC,sBAAoE,CAAC;AAgDjF,wDAAsB;AA9CxB,MAAM,YAAY,GAChB,WAAW,CAAC,YAAuD,CAAC;AAuCpE,oCAAY;AAtCd,MAAM,eAAe,GACnB,WAAW,CAAC,eAA6D,CAAC;AA4C1E,0CAAe;AA1CjB,MAAM,YAAY,GAChB,WAAW,CAAC,YAAuD,CAAC;AAmCpE,oCAAY;AAlCd,MAAM,eAAe,GACnB,WAAW,CAAC,eAA6D,CAAC;AAwC1E,0CAAe;AAtCjB,MAAM,cAAc,GAClB,WAAW,CAAC,cAA2D,CAAC;AA+BxE,wCAAc;AA9BhB,MAAM,iBAAiB,GACrB,WAAW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2C3E,kDAAmB;AA1CrB,MAAM,sBAAsB,GAC1B,WAAW,CAAC,sBAAoE,CAAC;AAgDjF,wDAAsB;AA9CxB,MAAM,YAAY,GAChB,WAAW,CAAC,YAAuD,CAAC;AAuCpE,oCAAY;AAtCd,MAAM,eAAe,GACnB,WAAW,CAAC,eAA6D,CAAC;AA4C1E,0CAAe;AA1CjB,MAAM,YAAY,GAChB,WAAW,CAAC,YAAuD,CAAC;AAmCpE,oCAAY;AAlCd,MAAM,eAAe,GACnB,WAAW,CAAC,eAA6D,CAAC;AAwC1E,0CAAe;AAtCjB,MAAM,cAAc,GAClB,WAAW,CAAC,cAA2D,CAAC;AA+BxE,wCAAc;AA9BhB,MAAM,iBAAiB,GACrB,WAAW,CAAC,iBAAiE,CAAC;AAoC9E,8CAAiB;AAlCnB,MAAM,mBAAmB,GACvB,WAAW,CAAC,mBAA8D,CAAC;AAsC3E,kDAAmB;AArCrB,MAAM,sBAAsB,GAC1B,WAAW,CAAC,sBAAoE,CAAC;AAgCjF,wDAAsB;AA9BxB,MAAM,qBAAqB,GACzB,WAAW,CAAC,qBAAgE,CAAC;AAkC7E,sDAAqB;AAjCvB,MAAM,wBAAwB,GAC5B,WAAW,CAAC,wBAAsE,CAAC;AA4BnF,4DAAwB;AA1B1B,MAAM,mBAAmB,GACvB,WAAW,CAAC,mBAA8D,CAAC;AA8B3E,kDAAmB;AA7BrB,MAAM,sBAAsB,GAC1B,WAAW,CAAC,sBAAoE,CAAC;AAwBjF,wDAAsB;AAtBxB,MAAM,gBAAgB,GACpB,WAAW,CAAC,gBAA2D,CAAC;AA0BxE,4CAAgB;AAzBlB,MAAM,mBAAmB,GACvB,WAAW,CAAC,mBAAiE,CAAC;AAoB9E,kDAAmB"}
@@ -3,13 +3,13 @@ import type { TSESTree } from '../../ts-estree';
3
3
  /**
4
4
  * Get the variable of a given name.
5
5
  *
6
- * @see {@link https://eslint-utils.mysticatea.dev/api/scope-utils.html#findvariable}
6
+ * @see {@link https://eslint-community.github.io/eslint-utils/api/scope-utils.html#findvariable}
7
7
  */
8
8
  declare const findVariable: (initialScope: TSESLint.Scope.Scope, nameOrNode: string | TSESTree.Identifier) => TSESLint.Scope.Variable | null;
9
9
  /**
10
10
  * Get the innermost scope which contains a given node.
11
11
  *
12
- * @see {@link https://eslint-utils.mysticatea.dev/api/scope-utils.html#getinnermostscope}
12
+ * @see {@link https://eslint-community.github.io/eslint-utils/api/scope-utils.html#getinnermostscope}
13
13
  * @returns The innermost scope which contains the given node.
14
14
  * If such scope doesn't exist then it returns the 1st argument `initialScope`.
15
15
  */
@@ -24,18 +24,18 @@ var __importStar = (this && this.__importStar) || function (mod) {
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.getInnermostScope = exports.findVariable = void 0;
27
- const eslintUtils = __importStar(require("eslint-utils"));
27
+ const eslintUtils = __importStar(require("@eslint-community/eslint-utils"));
28
28
  /**
29
29
  * Get the variable of a given name.
30
30
  *
31
- * @see {@link https://eslint-utils.mysticatea.dev/api/scope-utils.html#findvariable}
31
+ * @see {@link https://eslint-community.github.io/eslint-utils/api/scope-utils.html#findvariable}
32
32
  */
33
33
  const findVariable = eslintUtils.findVariable;
34
34
  exports.findVariable = findVariable;
35
35
  /**
36
36
  * Get the innermost scope which contains a given node.
37
37
  *
38
- * @see {@link https://eslint-utils.mysticatea.dev/api/scope-utils.html#getinnermostscope}
38
+ * @see {@link https://eslint-community.github.io/eslint-utils/api/scope-utils.html#getinnermostscope}
39
39
  * @returns The innermost scope which contains the given node.
40
40
  * If such scope doesn't exist then it returns the 1st argument `initialScope`.
41
41
  */
@@ -1 +1 @@
1
- {"version":3,"file":"scopeAnalysis.js","sourceRoot":"","sources":["../../../src/ast-utils/eslint-utils/scopeAnalysis.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0DAA4C;AAK5C;;;;GAIG;AACH,MAAM,YAAY,GAAG,WAAW,CAAC,YAGE,CAAC;AAc3B,oCAAY;AAZrB;;;;;;GAMG;AACH,MAAM,iBAAiB,GAAG,WAAW,CAAC,iBAGb,CAAC;AAEH,8CAAiB"}
1
+ {"version":3,"file":"scopeAnalysis.js","sourceRoot":"","sources":["../../../src/ast-utils/eslint-utils/scopeAnalysis.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4EAA8D;AAK9D;;;;GAIG;AACH,MAAM,YAAY,GAAG,WAAW,CAAC,YAGE,CAAC;AAc3B,oCAAY;AAZrB;;;;;;GAMG;AACH,MAAM,iBAAiB,GAAG,WAAW,CAAC,iBAGb,CAAC;AAEH,8CAAiB"}
@@ -1,5 +1,9 @@
1
1
  import type { AST_NODE_TYPES, AST_TOKEN_TYPES, TSESTree } from '../ts-estree';
2
- export declare const isNodeOfType: <NodeType extends AST_NODE_TYPES>(nodeType: NodeType) => (node: TSESTree.Node | null | undefined) => node is Extract<TSESTree.ArrayExpression, {
2
+ export declare const isNodeOfType: <NodeType extends AST_NODE_TYPES>(nodeType: NodeType) => (node: TSESTree.Node | null | undefined) => node is Extract<TSESTree.AccessorPropertyComputedName, {
3
+ type: NodeType;
4
+ }> | Extract<TSESTree.AccessorPropertyNonComputedName, {
5
+ type: NodeType;
6
+ }> | Extract<TSESTree.ArrayExpression, {
3
7
  type: NodeType;
4
8
  }> | Extract<TSESTree.ArrayPattern, {
5
9
  type: NodeType;
@@ -187,6 +191,10 @@ export declare const isNodeOfType: <NodeType extends AST_NODE_TYPES>(nodeType: N
187
191
  type: NodeType;
188
192
  }> | Extract<TSESTree.TryStatement, {
189
193
  type: NodeType;
194
+ }> | Extract<TSESTree.TSAbstractAccessorPropertyComputedName, {
195
+ type: NodeType;
196
+ }> | Extract<TSESTree.TSAbstractAccessorPropertyNonComputedName, {
197
+ type: NodeType;
190
198
  }> | Extract<TSESTree.TSAbstractKeyword, {
191
199
  type: NodeType;
192
200
  }> | Extract<TSESTree.TSAbstractMethodDefinitionComputedName, {
@@ -271,7 +279,15 @@ export declare const isNodeOfType: <NodeType extends AST_NODE_TYPES>(nodeType: N
271
279
  type: NodeType;
272
280
  }> | Extract<TSESTree.TSModuleBlock, {
273
281
  type: NodeType;
274
- }> | Extract<TSESTree.TSModuleDeclaration, {
282
+ }> | Extract<TSESTree.TSModuleDeclarationGlobal, {
283
+ type: NodeType;
284
+ }> | Extract<TSESTree.TSModuleDeclarationModuleWithIdentifierId, {
285
+ type: NodeType;
286
+ }> | Extract<TSESTree.TSModuleDeclarationModuleWithStringIdDeclared, {
287
+ type: NodeType;
288
+ }> | Extract<TSESTree.TSModuleDeclarationModuleWithStringIdNotDeclared, {
289
+ type: NodeType;
290
+ }> | Extract<TSESTree.TSModuleDeclarationNamespace, {
275
291
  type: NodeType;
276
292
  }> | Extract<TSESTree.TSNamedTupleMember, {
277
293
  type: NodeType;
@@ -307,6 +323,8 @@ export declare const isNodeOfType: <NodeType extends AST_NODE_TYPES>(nodeType: N
307
323
  type: NodeType;
308
324
  }> | Extract<TSESTree.TSRestType, {
309
325
  type: NodeType;
326
+ }> | Extract<TSESTree.TSSatisfiesExpression, {
327
+ type: NodeType;
310
328
  }> | Extract<TSESTree.TSStaticKeyword, {
311
329
  type: NodeType;
312
330
  }> | Extract<TSESTree.TSStringKeyword, {
@@ -364,7 +382,11 @@ export declare const isNodeOfType: <NodeType extends AST_NODE_TYPES>(nodeType: N
364
382
  }> | Extract<TSESTree.YieldExpression, {
365
383
  type: NodeType;
366
384
  }>;
367
- export declare const isNodeOfTypes: <NodeTypes extends readonly AST_NODE_TYPES[]>(nodeTypes: NodeTypes) => (node: TSESTree.Node | null | undefined) => node is Extract<TSESTree.ArrayExpression, {
385
+ export declare const isNodeOfTypes: <NodeTypes extends readonly AST_NODE_TYPES[]>(nodeTypes: NodeTypes) => (node: TSESTree.Node | null | undefined) => node is Extract<TSESTree.AccessorPropertyComputedName, {
386
+ type: NodeTypes[number];
387
+ }> | Extract<TSESTree.AccessorPropertyNonComputedName, {
388
+ type: NodeTypes[number];
389
+ }> | Extract<TSESTree.ArrayExpression, {
368
390
  type: NodeTypes[number];
369
391
  }> | Extract<TSESTree.ArrayPattern, {
370
392
  type: NodeTypes[number];
@@ -552,6 +574,10 @@ export declare const isNodeOfTypes: <NodeTypes extends readonly AST_NODE_TYPES[]
552
574
  type: NodeTypes[number];
553
575
  }> | Extract<TSESTree.TryStatement, {
554
576
  type: NodeTypes[number];
577
+ }> | Extract<TSESTree.TSAbstractAccessorPropertyComputedName, {
578
+ type: NodeTypes[number];
579
+ }> | Extract<TSESTree.TSAbstractAccessorPropertyNonComputedName, {
580
+ type: NodeTypes[number];
555
581
  }> | Extract<TSESTree.TSAbstractKeyword, {
556
582
  type: NodeTypes[number];
557
583
  }> | Extract<TSESTree.TSAbstractMethodDefinitionComputedName, {
@@ -636,7 +662,15 @@ export declare const isNodeOfTypes: <NodeTypes extends readonly AST_NODE_TYPES[]
636
662
  type: NodeTypes[number];
637
663
  }> | Extract<TSESTree.TSModuleBlock, {
638
664
  type: NodeTypes[number];
639
- }> | Extract<TSESTree.TSModuleDeclaration, {
665
+ }> | Extract<TSESTree.TSModuleDeclarationGlobal, {
666
+ type: NodeTypes[number];
667
+ }> | Extract<TSESTree.TSModuleDeclarationModuleWithIdentifierId, {
668
+ type: NodeTypes[number];
669
+ }> | Extract<TSESTree.TSModuleDeclarationModuleWithStringIdDeclared, {
670
+ type: NodeTypes[number];
671
+ }> | Extract<TSESTree.TSModuleDeclarationModuleWithStringIdNotDeclared, {
672
+ type: NodeTypes[number];
673
+ }> | Extract<TSESTree.TSModuleDeclarationNamespace, {
640
674
  type: NodeTypes[number];
641
675
  }> | Extract<TSESTree.TSNamedTupleMember, {
642
676
  type: NodeTypes[number];
@@ -672,6 +706,8 @@ export declare const isNodeOfTypes: <NodeTypes extends readonly AST_NODE_TYPES[]
672
706
  type: NodeTypes[number];
673
707
  }> | Extract<TSESTree.TSRestType, {
674
708
  type: NodeTypes[number];
709
+ }> | Extract<TSESTree.TSSatisfiesExpression, {
710
+ type: NodeTypes[number];
675
711
  }> | Extract<TSESTree.TSStaticKeyword, {
676
712
  type: NodeTypes[number];
677
713
  }> | Extract<TSESTree.TSStringKeyword, {
@@ -729,7 +765,11 @@ export declare const isNodeOfTypes: <NodeTypes extends readonly AST_NODE_TYPES[]
729
765
  }> | Extract<TSESTree.YieldExpression, {
730
766
  type: NodeTypes[number];
731
767
  }>;
732
- export declare const isNodeOfTypeWithConditions: <NodeType extends AST_NODE_TYPES, ExtractedNode extends Extract<TSESTree.ArrayExpression, {
768
+ export declare const isNodeOfTypeWithConditions: <NodeType extends AST_NODE_TYPES, ExtractedNode extends Extract<TSESTree.AccessorPropertyComputedName, {
769
+ type: NodeType;
770
+ }> | Extract<TSESTree.AccessorPropertyNonComputedName, {
771
+ type: NodeType;
772
+ }> | Extract<TSESTree.ArrayExpression, {
733
773
  type: NodeType;
734
774
  }> | Extract<TSESTree.ArrayPattern, {
735
775
  type: NodeType;
@@ -917,6 +957,10 @@ export declare const isNodeOfTypeWithConditions: <NodeType extends AST_NODE_TYPE
917
957
  type: NodeType;
918
958
  }> | Extract<TSESTree.TryStatement, {
919
959
  type: NodeType;
960
+ }> | Extract<TSESTree.TSAbstractAccessorPropertyComputedName, {
961
+ type: NodeType;
962
+ }> | Extract<TSESTree.TSAbstractAccessorPropertyNonComputedName, {
963
+ type: NodeType;
920
964
  }> | Extract<TSESTree.TSAbstractKeyword, {
921
965
  type: NodeType;
922
966
  }> | Extract<TSESTree.TSAbstractMethodDefinitionComputedName, {
@@ -1001,7 +1045,15 @@ export declare const isNodeOfTypeWithConditions: <NodeType extends AST_NODE_TYPE
1001
1045
  type: NodeType;
1002
1046
  }> | Extract<TSESTree.TSModuleBlock, {
1003
1047
  type: NodeType;
1004
- }> | Extract<TSESTree.TSModuleDeclaration, {
1048
+ }> | Extract<TSESTree.TSModuleDeclarationGlobal, {
1049
+ type: NodeType;
1050
+ }> | Extract<TSESTree.TSModuleDeclarationModuleWithIdentifierId, {
1051
+ type: NodeType;
1052
+ }> | Extract<TSESTree.TSModuleDeclarationModuleWithStringIdDeclared, {
1053
+ type: NodeType;
1054
+ }> | Extract<TSESTree.TSModuleDeclarationModuleWithStringIdNotDeclared, {
1055
+ type: NodeType;
1056
+ }> | Extract<TSESTree.TSModuleDeclarationNamespace, {
1005
1057
  type: NodeType;
1006
1058
  }> | Extract<TSESTree.TSNamedTupleMember, {
1007
1059
  type: NodeType;
@@ -1037,6 +1089,8 @@ export declare const isNodeOfTypeWithConditions: <NodeType extends AST_NODE_TYPE
1037
1089
  type: NodeType;
1038
1090
  }> | Extract<TSESTree.TSRestType, {
1039
1091
  type: NodeType;
1092
+ }> | Extract<TSESTree.TSSatisfiesExpression, {
1093
+ type: NodeType;
1040
1094
  }> | Extract<TSESTree.TSStaticKeyword, {
1041
1095
  type: NodeType;
1042
1096
  }> | Extract<TSESTree.TSStringKeyword, {
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/ast-utils/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAO9E,eAAO,MAAM,YAAY,kEAGf,SAAS,IAAI,GAAG,IAAI,GAAG,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEf,CAAC;AAE5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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEC,CAAC;AAE5C,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qGAQ/B,SAAS,IAAI,GAAG,IAAI,GAAG,SAAS,uCASvC,CAAC;AAEF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;6DAQ/B,SAAS,KAAK,GAAG,IAAI,GAAG,SAAS,yCAWzC,CAAC;AAEF,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;yGAShC,SAAS,KAAK,GAAG,IAAI,GAAG,SAAS,m0BAGkB,CAAC"}
@@ -53,6 +53,18 @@ declare const isAwaitExpression: (node: TSESTree.Node | null | undefined) => nod
53
53
  declare const isAwaitKeyword: (token: TSESTree.Token | null | undefined) => token is TSESTree.IdentifierToken & {
54
54
  value: "await";
55
55
  };
56
+ /**
57
+ * Checks if a possible token is the `type` keyword.
58
+ */
59
+ declare const isTypeKeyword: (token: TSESTree.Token | null | undefined) => token is TSESTree.IdentifierToken & {
60
+ value: "type";
61
+ };
62
+ /**
63
+ * Checks if a possible token is the `import` keyword.
64
+ */
65
+ declare const isImportKeyword: (token: TSESTree.Token | null | undefined) => token is TSESTree.KeywordToken & {
66
+ value: "import";
67
+ };
56
68
  declare const isLoop: (node: TSESTree.Node | null | undefined) => node is TSESTree.DoWhileStatement | TSESTree.ForInStatement | TSESTree.ForOfStatement | TSESTree.ForStatement | TSESTree.WhileStatement;
57
- export { isAwaitExpression, isAwaitKeyword, isConstructor, isClassOrTypeElement, isFunction, isFunctionOrFunctionType, isFunctionType, isIdentifier, isLoop, isLogicalOrOperator, isNonNullAssertionPunctuator, isNotNonNullAssertionPunctuator, isNotOptionalChainPunctuator, isOptionalChainPunctuator, isOptionalCallExpression, isSetter, isTSConstructorType, isTSFunctionType, isTypeAssertion, isVariableDeclarator, };
69
+ export { isAwaitExpression, isAwaitKeyword, isConstructor, isClassOrTypeElement, isFunction, isFunctionOrFunctionType, isFunctionType, isIdentifier, isImportKeyword, isLoop, isLogicalOrOperator, isNonNullAssertionPunctuator, isNotNonNullAssertionPunctuator, isNotOptionalChainPunctuator, isOptionalChainPunctuator, isOptionalCallExpression, isSetter, isTSConstructorType, isTSFunctionType, isTypeAssertion, isTypeKeyword, isVariableDeclarator, };
58
70
  //# sourceMappingURL=predicates.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"predicates.d.ts","sourceRoot":"","sources":["../../src/ast-utils/predicates.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAU7C,QAAA,MAAM,yBAAyB;;CAG9B,CAAC;AAEF,QAAA,MAAM,4BAA4B,gYAGjC,CAAC;AAEF,QAAA,MAAM,4BAA4B;;CAGjC,CAAC;AAEF,QAAA,MAAM,+BAA+B,gYAGpC,CAAC;AAEF;;GAEG;AACH,QAAA,MAAM,wBAAwB;;CAK7B,CAAC;AAEF;;GAEG;AACH,QAAA,MAAM,mBAAmB,sHAGxB,CAAC;AAEF;;;;;;GAMG;AACH,QAAA,MAAM,eAAe,wGAGV,CAAC;AAEZ,QAAA,MAAM,oBAAoB,iFAAkD,CAAC;AAO7E,QAAA,MAAM,UAAU,0MAA+B,CAAC;AAUhD,QAAA,MA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BAAgB,EAChB,eAAe,EACf,aAAa,EACb,oBAAoB,GACrB,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isVariableDeclarator = exports.isTypeAssertion = exports.isTSFunctionType = exports.isTSConstructorType = exports.isSetter = exports.isOptionalCallExpression = exports.isOptionalChainPunctuator = exports.isNotOptionalChainPunctuator = exports.isNotNonNullAssertionPunctuator = exports.isNonNullAssertionPunctuator = exports.isLogicalOrOperator = exports.isLoop = exports.isIdentifier = exports.isFunctionType = exports.isFunctionOrFunctionType = exports.isFunction = exports.isClassOrTypeElement = exports.isConstructor = exports.isAwaitKeyword = exports.isAwaitExpression = void 0;
3
+ exports.isVariableDeclarator = exports.isTypeKeyword = exports.isTypeAssertion = exports.isTSFunctionType = exports.isTSConstructorType = exports.isSetter = exports.isOptionalCallExpression = exports.isOptionalChainPunctuator = exports.isNotOptionalChainPunctuator = exports.isNotNonNullAssertionPunctuator = exports.isNonNullAssertionPunctuator = exports.isLogicalOrOperator = exports.isLoop = exports.isImportKeyword = exports.isIdentifier = exports.isFunctionType = exports.isFunctionOrFunctionType = exports.isFunction = exports.isClassOrTypeElement = exports.isConstructor = exports.isAwaitKeyword = exports.isAwaitExpression = void 0;
4
4
  const ts_estree_1 = require("../ts-estree");
5
5
  const helpers_1 = require("./helpers");
6
6
  const isOptionalChainPunctuator = (0, helpers_1.isTokenOfTypeWithConditions)(ts_estree_1.AST_TOKEN_TYPES.Punctuator, { value: '?.' });
@@ -110,6 +110,20 @@ const isAwaitKeyword = (0, helpers_1.isTokenOfTypeWithConditions)(ts_estree_1.AS
110
110
  value: 'await',
111
111
  });
112
112
  exports.isAwaitKeyword = isAwaitKeyword;
113
+ /**
114
+ * Checks if a possible token is the `type` keyword.
115
+ */
116
+ const isTypeKeyword = (0, helpers_1.isTokenOfTypeWithConditions)(ts_estree_1.AST_TOKEN_TYPES.Identifier, {
117
+ value: 'type',
118
+ });
119
+ exports.isTypeKeyword = isTypeKeyword;
120
+ /**
121
+ * Checks if a possible token is the `import` keyword.
122
+ */
123
+ const isImportKeyword = (0, helpers_1.isTokenOfTypeWithConditions)(ts_estree_1.AST_TOKEN_TYPES.Keyword, {
124
+ value: 'import',
125
+ });
126
+ exports.isImportKeyword = isImportKeyword;
113
127
  const isLoop = (0, helpers_1.isNodeOfTypes)([
114
128
  ts_estree_1.AST_NODE_TYPES.DoWhileStatement,
115
129
  ts_estree_1.AST_NODE_TYPES.ForStatement,
@@ -1 +1 @@
1
- {"version":3,"file":"predicates.js","sourceRoot":"","sources":["../../src/ast-utils/predicates.ts"],"names":[],"mappings":";;;AACA,4CAA+D;AAC/D,uCAMmB;AAEnB,MAAM,yBAAyB,GAAG,IAAA,qCAA2B,EAC3D,2BAAe,CAAC,UAAU,EAC1B,EAAE,KAAK,EAAE,IAAI,EAAE,CAChB,CAAC;AAsJA,8DAAyB;AApJ3B,MAAM,4BAA4B,GAAG,IAAA,wCAA8B,EACjE,2BAAe,CAAC,UAAU,EAC1B,EAAE,KAAK,EAAE,IAAI,EAAE,CAChB,CAAC;AAgJA,oEAA4B;AA9I9B,MAAM,4BAA4B,GAAG,IAAA,qCAA2B,EAC9D,2BAAe,CAAC,UAAU,EAC1B,EAAE,KAAK,EAAE,GAAG,EAAE,CACf,CAAC;AAyIA,oEAA4B;AAvI9B,MAAM,+BAA+B,GAAG,IAAA,wCAA8B,EACpE,2BAAe,CAAC,UAAU,EAC1B,EAAE,KAAK,EAAE,GAAG,EAAE,CACf,CAAC;AAqIA,0EAA+B;AAnIjC;;GAEG;AACH,MAAM,wBAAwB,GAAG,IAAA,oCAA0B,EACzD,0BAAc,CAAC,cAAc;AAC7B,uDAAuD;AACvD,4CAA4C;AAC5C,EAAE,QAAQ,EAAE,IAAI,EAAE,CACnB,CAAC;AA8HA,4DAAwB;AA5H1B;;GAEG;AACH,MAAM,mBAAmB,GAAG,IAAA,oCAA0B,EACpD,0BAAc,CAAC,iBAAiB,EAChC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rB,CAAC,CAAC;AAYV,wBAAM"}
@@ -2,10 +2,10 @@ import type { RuleCreateFunction, RuleModule } from '../ts-eslint';
2
2
  /**
3
3
  * Uses type inference to fetch the TOptions type from the given RuleModule
4
4
  */
5
- declare type InferOptionsTypeFromRule<T> = T extends RuleModule<infer _TMessageIds, infer TOptions> ? TOptions : T extends RuleCreateFunction<infer _TMessageIds, infer TOptions> ? TOptions : unknown;
5
+ type InferOptionsTypeFromRule<T> = T extends RuleModule<infer _TMessageIds, infer TOptions> ? TOptions : T extends RuleCreateFunction<infer _TMessageIds, infer TOptions> ? TOptions : unknown;
6
6
  /**
7
7
  * Uses type inference to fetch the TMessageIds type from the given RuleModule
8
8
  */
9
- declare type InferMessageIdsTypeFromRule<T> = T extends RuleModule<infer TMessageIds, infer _TOptions> ? TMessageIds : T extends RuleCreateFunction<infer TMessageIds, infer _TOptions> ? TMessageIds : unknown;
9
+ type InferMessageIdsTypeFromRule<T> = T extends RuleModule<infer TMessageIds, infer _TOptions> ? TMessageIds : T extends RuleCreateFunction<infer TMessageIds, infer _TOptions> ? TMessageIds : unknown;
10
10
  export { InferOptionsTypeFromRule, InferMessageIdsTypeFromRule };
11
11
  //# sourceMappingURL=InferTypesFromRule.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"InferTypesFromRule.d.ts","sourceRoot":"","sources":["../../src/eslint-utils/InferTypesFromRule.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAEnE;;GAEG;AACH,aAAK,wBAAwB,CAAC,CAAC,IAAI,CAAC,SAAS,UAAU,CACrD,MAAM,YAAY,EAClB,MAAM,QAAQ,CACf,GACG,QAAQ,GACR,CAAC,SAAS,kBAAkB,CAAC,MAAM,YAAY,EAAE,MAAM,QAAQ,CAAC,GAChE,QAAQ,GACR,OAAO,CAAC;AAEZ;;GAEG;AACH,aAAK,2BAA2B,CAAC,CAAC,IAAI,CAAC,SAAS,UAAU,CACxD,MAAM,WAAW,EACjB,MAAM,SAAS,CAChB,GACG,WAAW,GACX,CAAC,SAAS,kBAAkB,CAAC,MAAM,WAAW,EAAE,MAAM,SAAS,CAAC,GAChE,WAAW,GACX,OAAO,CAAC;AAEZ,OAAO,EAAE,wBAAwB,EAAE,2BAA2B,EAAE,CAAC"}
1
+ {"version":3,"file":"InferTypesFromRule.d.ts","sourceRoot":"","sources":["../../src/eslint-utils/InferTypesFromRule.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAEnE;;GAEG;AACH,KAAK,wBAAwB,CAAC,CAAC,IAAI,CAAC,SAAS,UAAU,CACrD,MAAM,YAAY,EAClB,MAAM,QAAQ,CACf,GACG,QAAQ,GACR,CAAC,SAAS,kBAAkB,CAAC,MAAM,YAAY,EAAE,MAAM,QAAQ,CAAC,GAChE,QAAQ,GACR,OAAO,CAAC;AAEZ;;GAEG;AACH,KAAK,2BAA2B,CAAC,CAAC,IAAI,CAAC,SAAS,UAAU,CACxD,MAAM,WAAW,EACjB,MAAM,SAAS,CAChB,GACG,WAAW,GACX,CAAC,SAAS,kBAAkB,CAAC,MAAM,WAAW,EAAE,MAAM,SAAS,CAAC,GAChE,WAAW,GACX,OAAO,CAAC;AAEZ,OAAO,EAAE,wBAAwB,EAAE,2BAA2B,EAAE,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import type { RuleContext, RuleListener, RuleMetaData, RuleMetaDataDocs, RuleModule } from '../ts-eslint/Rule';
2
- export declare type NamedCreateRuleMetaDocs = Omit<RuleMetaDataDocs, 'url'>;
3
- export declare type NamedCreateRuleMeta<TMessageIds extends string> = {
2
+ export type NamedCreateRuleMetaDocs = Omit<RuleMetaDataDocs, 'url'>;
3
+ export type NamedCreateRuleMeta<TMessageIds extends string> = {
4
4
  docs: NamedCreateRuleMetaDocs;
5
5
  } & Omit<RuleMetaData<TMessageIds>, 'docs'>;
6
6
  export interface RuleCreateAndOptions<TOptions extends readonly unknown[], TMessageIds extends string, TRuleListener extends RuleListener> {
@@ -1 +1 @@
1
- {"version":3,"file":"RuleCreator.d.ts","sourceRoot":"","sources":["../../src/eslint-utils/RuleCreator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,gBAAgB,EAChB,UAAU,EACX,MAAM,mBAAmB,CAAC;AAI3B,oBAAY,uBAAuB,GAAG,IAAI,CAAC,gBAAgB,EAAE,KAAK,CAAC,CAAC;AACpE,oBAAY,mBAAmB,CAAC,WAAW,SAAS,MAAM,IAAI;IAC5D,IAAI,EAAE,uBAAuB,CAAC;CAC/B,GAAG,IAAI,CAAC,YAAY,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC,CAAC;AAE5C,MAAM,WAAW,oBAAoB,CACnC,QAAQ,SAAS,SAAS,OAAO,EAAE,EACnC,WAAW,SAAS,MAAM,EAC1B,aAAa,SAAS,YAAY;IAElC,MAAM,EAAE,CACN,OAAO,EAAE,QAAQ,CAAC,WAAW,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC,EACrD,kBAAkB,EAAE,QAAQ,CAAC,QAAQ,CAAC,KACnC,aAAa,CAAC;IACnB,cAAc,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;CACpC;AAED,MAAM,WAAW,YAAY,CAC3B,QAAQ,SAAS,SAAS,OAAO,EAAE,EACnC,WAAW,SAAS,MAAM,EAC1B,aAAa,SAAS,YAAY,CAClC,SAAQ,oBAAoB,CAAC,QAAQ,EAAE,WAAW,EAAE,aAAa,CAAC;IAClE,IAAI,EAAE,YAAY,CAAC,WAAW,CAAC,CAAC;CACjC;AAED,MAAM,WAAW,mBAAmB,CAClC,QAAQ,SAAS,SAAS,OAAO,EAAE,EACnC,WAAW,SAAS,MAAM,EAC1B,aAAa,SAAS,YAAY,CAClC,SAAQ,oBAAoB,CAAC,QAAQ,EAAE,WAAW,EAAE,aAAa,CAAC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,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;CACpC;AAED,MAAM,WAAW,YAAY,CAC3B,QAAQ,SAAS,SAAS,OAAO,EAAE,EACnC,WAAW,SAAS,MAAM,EAC1B,aAAa,SAAS,YAAY,CAClC,SAAQ,oBAAoB,CAAC,QAAQ,EAAE,WAAW,EAAE,aAAa,CAAC;IAClE,IAAI,EAAE,YAAY,CAAC,WAAW,CAAC,CAAC;CACjC;AAED,MAAM,WAAW,mBAAmB,CAClC,QAAQ,SAAS,SAAS,OAAO,EAAE,EACnC,WAAW,SAAS,MAAM,EAC1B,aAAa,SAAS,YAAY,CAClC,SAAQ,oBAAoB,CAAC,QAAQ,EAAE,WAAW,EAAE,aAAa,CAAC;IAClE,IAAI,EAAE,mBAAmB,CAAC,WAAW,CAAC,CAAC;IACvC,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,UAAU,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,MAAM,0QAyBnE;yBAzBe,WAAW;;;AA2B3B;;;;;GAKG;AACH,iBAAS,UAAU,CACjB,QAAQ,SAAS,SAAS,OAAO,EAAE,EACnC,WAAW,SAAS,MAAM,EAC1B,aAAa,SAAS,YAAY,GAAG,YAAY,EACjD,EACA,MAAM,EACN,cAAc,EACd,IAAI,GACL,EAAE,QAAQ,CAAC,YAAY,CAAC,QAAQ,EAAE,WAAW,EAAE,aAAa,CAAC,CAAC,GAAG,UAAU,CAC1E,WAAW,EACX,QAAQ,EACR,aAAa,CACd,CAWA"}
@@ -12,7 +12,7 @@ const deepMerge_1 = require("./deepMerge");
12
12
  function applyDefault(defaultOptions, userOptions) {
13
13
  // clone defaults
14
14
  const options = JSON.parse(JSON.stringify(defaultOptions));
15
- if (userOptions === null || userOptions === undefined) {
15
+ if (userOptions == null) {
16
16
  return options;
17
17
  }
18
18
  // For avoiding the type error
@@ -1 +1 @@
1
- {"version":3,"file":"applyDefault.js","sourceRoot":"","sources":["../../src/eslint-utils/applyDefault.ts"],"names":[],"mappings":";;;AAAA,2CAA0D;AAE1D;;;;;;GAMG;AACH,SAAS,YAAY,CACnB,cAAkC,EAClC,WAAmC;IAEnC,iBAAiB;IACjB,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CACxB,IAAI,CAAC,SAAS,CAAC,cAAc,CAAC,CACR,CAAC;IAEzB,IAAI,WAAW,KAAK,IAAI,IAAI,WAAW,KAAK,SAAS,EAAE;QACrD,OAAO,OAAO,CAAC;KAChB;IAED,8BAA8B;IAC9B,sFAAsF;IACrF,OAAqB,CAAC,OAAO,CAAC,CAAC,GAAY,EAAE,CAAS,EAAE,EAAE;QACzD,IAAI,WAAW,CAAC,CAAC,CAAC,KAAK,SAAS,EAAE;YAChC,MAAM,OAAO,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC;YAE/B,IAAI,IAAA,4BAAgB,EAAC,OAAO,CAAC,IAAI,IAAA,4BAAgB,EAAC,GAAG,CAAC,EAAE;gBACtD,OAAO,CAAC,CAAC,CAAC,GAAG,IAAA,qBAAS,EAAC,GAAG,EAAE,OAAO,CAAC,CAAC;aACtC;iBAAM;gBACL,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC;aACtB;SACF;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,OAAO,CAAC;AACjB,CAAC;AAMQ,oCAAY"}
1
+ {"version":3,"file":"applyDefault.js","sourceRoot":"","sources":["../../src/eslint-utils/applyDefault.ts"],"names":[],"mappings":";;;AAAA,2CAA0D;AAE1D;;;;;;GAMG;AACH,SAAS,YAAY,CACnB,cAAkC,EAClC,WAAmC;IAEnC,iBAAiB;IACjB,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CACxB,IAAI,CAAC,SAAS,CAAC,cAAc,CAAC,CACR,CAAC;IAEzB,IAAI,WAAW,IAAI,IAAI,EAAE;QACvB,OAAO,OAAO,CAAC;KAChB;IAED,8BAA8B;IAC9B,sFAAsF;IACrF,OAAqB,CAAC,OAAO,CAAC,CAAC,GAAY,EAAE,CAAS,EAAE,EAAE;QACzD,IAAI,WAAW,CAAC,CAAC,CAAC,KAAK,SAAS,EAAE;YAChC,MAAM,OAAO,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC;YAE/B,IAAI,IAAA,4BAAgB,EAAC,OAAO,CAAC,IAAI,IAAA,4BAAgB,EAAC,GAAG,CAAC,EAAE;gBACtD,OAAO,CAAC,CAAC,CAAC,GAAG,IAAA,qBAAS,EAAC,GAAG,EAAE,OAAO,CAAC,CAAC;aACtC;iBAAM;gBACL,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC;aACtB;SACF;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,OAAO,CAAC;AACjB,CAAC;AAMQ,oCAAY"}
@@ -1,4 +1,4 @@
1
- declare type ObjectLike<T = unknown> = Record<string, T>;
1
+ type ObjectLike<T = unknown> = Record<string, T>;
2
2
  /**
3
3
  * Check if the variable contains an object strictly rejecting arrays
4
4
  * @param obj an object
@@ -1 +1 @@
1
- {"version":3,"file":"deepMerge.d.ts","sourceRoot":"","sources":["../../src/eslint-utils/deepMerge.ts"],"names":[],"mappings":"AAAA,aAAK,UAAU,CAAC,CAAC,GAAG,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;AAEjD;;;;GAIG;AACH,iBAAS,gBAAgB,CAAC,CAAC,SAAS,UAAU,EAC5C,GAAG,EAAE,OAAO,GAAG,OAAO,EAAE,GACvB,GAAG,IAAI,CAAC,CAEV;AAED;;;;;;GAMG;AACH,wBAAgB,SAAS,CACvB,KAAK,GAAE,UAAe,EACtB,MAAM,GAAE,UAAe,GACtB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CA0BzB;AAED,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
1
+ {"version":3,"file":"deepMerge.d.ts","sourceRoot":"","sources":["../../src/eslint-utils/deepMerge.ts"],"names":[],"mappings":"AAAA,KAAK,UAAU,CAAC,CAAC,GAAG,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;AAEjD;;;;GAIG;AACH,iBAAS,gBAAgB,CAAC,CAAC,SAAS,UAAU,EAC5C,GAAG,EAAE,OAAO,GAAG,OAAO,EAAE,GACvB,GAAG,IAAI,CAAC,CAEV;AAED;;;;;;GAMG;AACH,wBAAgB,SAAS,CACvB,KAAK,GAAE,UAAe,EACtB,MAAM,GAAE,UAAe,GACtB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CA0BzB;AAED,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
@@ -19,7 +19,7 @@ function nullThrows(value, message) {
19
19
  // this means that it's pretty much impossible to test the below if...
20
20
  // so ignore it in coverage metrics.
21
21
  /* istanbul ignore if */
22
- if (value === null || value === undefined) {
22
+ if (value == null) {
23
23
  throw new Error(`Non-null Assertion Failed: ${message}`);
24
24
  }
25
25
  return value;
@@ -1 +1 @@
1
- {"version":3,"file":"nullThrows.js","sourceRoot":"","sources":["../../src/eslint-utils/nullThrows.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,MAAM,iBAAiB,GAAG;IACxB,aAAa,EAAE,iCAAiC;IAChD,YAAY,EAAE,CAAC,KAAa,EAAE,KAAa,EAAE,EAAE,CAC7C,sBAAsB,KAAK,YAAY,KAAK,GAAG;CACzC,CAAC;AAoBU,8CAAiB;AAlBtC;;;GAGG;AACH,SAAS,UAAU,CAAI,KAA2B,EAAE,OAAe;IACjE,oEAAoE;IACpE,4DAA4D;IAC5D,sEAAsE;IAEtE,oCAAoC;IACpC,wBAAwB;IACxB,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,EAAE;QACzC,MAAM,IAAI,KAAK,CAAC,8BAA8B,OAAO,EAAE,CAAC,CAAC;KAC1D;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAEQ,gCAAU"}
1
+ {"version":3,"file":"nullThrows.js","sourceRoot":"","sources":["../../src/eslint-utils/nullThrows.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,MAAM,iBAAiB,GAAG;IACxB,aAAa,EAAE,iCAAiC;IAChD,YAAY,EAAE,CAAC,KAAa,EAAE,KAAa,EAAE,EAAE,CAC7C,sBAAsB,KAAK,YAAY,KAAK,GAAG;CACzC,CAAC;AAoBU,8CAAiB;AAlBtC;;;GAGG;AACH,SAAS,UAAU,CAAI,KAA2B,EAAE,OAAe;IACjE,oEAAoE;IACpE,4DAA4D;IAC5D,sEAAsE;IAEtE,oCAAoC;IACpC,wBAAwB;IACxB,IAAI,KAAK,IAAI,IAAI,EAAE;QACjB,MAAM,IAAI,KAAK,CAAC,8BAA8B,OAAO,EAAE,CAAC,CAAC;KAC1D;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAEQ,gCAAU"}
@@ -2,7 +2,7 @@ import type { RuleModule } from '../../ts-eslint/Rule';
2
2
  import * as BaseRuleTester from '../../ts-eslint/RuleTester';
3
3
  import type { DependencyConstraint } from './dependencyConstraints';
4
4
  declare const TS_ESLINT_PARSER = "@typescript-eslint/parser";
5
- declare type RuleTesterConfig = Omit<BaseRuleTester.RuleTesterConfig, 'parser'> & {
5
+ type RuleTesterConfig = Omit<BaseRuleTester.RuleTesterConfig, 'parser'> & {
6
6
  parser: typeof TS_ESLINT_PARSER;
7
7
  /**
8
8
  * Constraints that must pass in the current environment for any tests to run
@@ -25,7 +25,7 @@ interface RunTests<TMessageIds extends string, TOptions extends Readonly<unknown
25
25
  readonly valid: readonly (ValidTestCase<TOptions> | string)[];
26
26
  readonly invalid: readonly InvalidTestCase<TMessageIds, TOptions>[];
27
27
  }
28
- declare type AfterAll = (fn: () => void) => void;
28
+ type AfterAll = (fn: () => void) => void;
29
29
  declare class RuleTester extends BaseRuleTester.RuleTester {
30
30
  #private;
31
31
  /**
@@ -43,7 +43,7 @@ declare class RuleTester extends BaseRuleTester.RuleTester {
43
43
  * Simple no-op tag to mark code samples as "should not format with prettier"
44
44
  * for the internal/plugin-test-formatting lint rule
45
45
  */
46
- declare function noFormat(strings: TemplateStringsArray, ...keys: string[]): string;
46
+ declare function noFormat(raw: TemplateStringsArray, ...keys: string[]): string;
47
47
  export { noFormat, RuleTester };
48
48
  export type { InvalidTestCase, ValidTestCase, RunTests };
49
49
  //# sourceMappingURL=RuleTester.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RuleTester.d.ts","sourceRoot":"","sources":["../../../src/eslint-utils/rule-tester/RuleTester.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEvD,OAAO,KAAK,cAAc,MAAM,4BAA4B,CAAC;AAE7D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAGpE,QAAA,MAAM,gBAAgB,8BAA8B,CAAC;AAGrD,aAAK,gBAAgB,GAAG,IAAI,CAAC,cAAc,CAAC,gBAAgB,EAAE,QAAQ,CAAC,GAAG;IACxE,MAAM,EAAE,OAAO,gBAAgB,CAAC;IAChC;;OAEG;IACH,qBAAqB,CAAC,EAAE,oBAAoB,CAAC;CAC9C,CAAC;AAEF,UAAU,eAAe,CACvB,WAAW,SAAS,MAAM,EAC1B,QAAQ,SAAS,QAAQ,CAAC,OAAO,EAAE,CAAC,CACpC,SAAQ,cAAc,CAAC,eAAe,CAAC,WAAW,EAAE,QAAQ,CAAC;IAC7D;;OAEG;IACH,qBAAqB,CAAC,EAAE,oBAAoB,CAAC;CAC9C;AACD,UAAU,aAAa,CAAC,QAAQ,SAAS,QAAQ,CAAC,OAAO,EAAE,CAAC,CAC1D,SAAQ,cAAc,CAAC,aAAa,CAAC,QAAQ,CAAC;IAC9C;;OAEG;IACH,qBAAqB,CAAC,EAAE,oBAAoB,CAAC;CAC9C;AACD,UAAU,QAAQ,CAChB,WAAW,SAAS,MAAM,EAC1B,QAAQ,SAAS,QAAQ,CAAC,OAAO,EAAE,CAAC;IAGpC,QAAQ,CAAC,KAAK,EAAE,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;IAoBnB,GAAG,CAAC,WAAW,SAAS,MAAM,EAAE,QAAQ,SAAS,QAAQ,CAAC,OAAO,EAAE,CAAC,EAClE,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,UAAU,CAAC,WAAW,EAAE,QAAQ,CAAC,EACvC,aAAa,EAAE,QAAQ,CAAC,WAAW,EAAE,QAAQ,CAAC,GAC7C,IAAI;CA6JR;AAED;;;GAGG;AACH,iBAAS,QAAQ,CAAC,GAAG,EAAE,oBAAoB,EAAE,GAAG,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,CAEtE;AAED,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAC;AAChC,YAAY,EAAE,eAAe,EAAE,aAAa,EAAE,QAAQ,EAAE,CAAC"}
@@ -22,16 +22,27 @@ var __importStar = (this && this.__importStar) || function (mod) {
22
22
  __setModuleDefault(result, mod);
23
23
  return result;
24
24
  };
25
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
26
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
27
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
28
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
29
+ };
25
30
  var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
26
31
  if (kind === "m") throw new TypeError("Private method is not writable");
27
32
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
28
33
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
29
34
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
30
35
  };
31
- var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
32
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
33
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
34
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
36
+ var __rest = (this && this.__rest) || function (s, e) {
37
+ var t = {};
38
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
39
+ t[p] = s[p];
40
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
41
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
42
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
43
+ t[p[i]] = s[p[i]];
44
+ }
45
+ return t;
35
46
  };
36
47
  var __importDefault = (this && this.__importDefault) || function (mod) {
37
48
  return (mod && mod.__esModule) ? mod : { "default": mod };
@@ -55,9 +66,26 @@ function isDescribeWithSkip(value) {
55
66
  typeof value.skip === 'function');
56
67
  }
57
68
  class RuleTester extends BaseRuleTester.RuleTester {
69
+ /**
70
+ * If you supply a value to this property, the rule tester will call this instead of using the version defined on
71
+ * the global namespace.
72
+ */
73
+ static get afterAll() {
74
+ var _b;
75
+ return ((_b = __classPrivateFieldGet(this, _a, "f", _RuleTester_afterAll)) !== null && _b !== void 0 ? _b : (typeof afterAll === 'function' ? afterAll : () => { }));
76
+ }
77
+ static set afterAll(value) {
78
+ __classPrivateFieldSet(this, _a, value, "f", _RuleTester_afterAll);
79
+ }
80
+ get staticThis() {
81
+ // the cast here is due to https://github.com/microsoft/TypeScript/issues/3841
82
+ return this.constructor;
83
+ }
58
84
  constructor(baseOptions) {
59
85
  var _b, _c;
60
- super(Object.assign(Object.assign({}, baseOptions), { parserOptions: Object.assign(Object.assign({}, baseOptions.parserOptions), { warnOnUnsupportedTypeScriptVersion: (_c = (_b = baseOptions.parserOptions) === null || _b === void 0 ? void 0 : _b.warnOnUnsupportedTypeScriptVersion) !== null && _c !== void 0 ? _c : false }),
86
+ // eslint will hard-error if you include non-standard top-level properties
87
+ const { dependencyConstraints: _ } = baseOptions, baseOptionsSafeForESLint = __rest(baseOptions, ["dependencyConstraints"]);
88
+ super(Object.assign(Object.assign({}, baseOptionsSafeForESLint), { parserOptions: Object.assign(Object.assign({}, baseOptions.parserOptions), { warnOnUnsupportedTypeScriptVersion: (_c = (_b = baseOptions.parserOptions) === null || _b === void 0 ? void 0 : _b.warnOnUnsupportedTypeScriptVersion) !== null && _c !== void 0 ? _c : false }),
61
89
  // as of eslint 6 you have to provide an absolute path to the parser
62
90
  // but that's not as clean to type, this saves us trying to manually enforce
63
91
  // that contributors require.resolve everything
@@ -78,21 +106,6 @@ class RuleTester extends BaseRuleTester.RuleTester {
78
106
  }
79
107
  });
80
108
  }
81
- /**
82
- * If you supply a value to this property, the rule tester will call this instead of using the version defined on
83
- * the global namespace.
84
- */
85
- static get afterAll() {
86
- var _b;
87
- return ((_b = __classPrivateFieldGet(this, _a, "f", _RuleTester_afterAll)) !== null && _b !== void 0 ? _b : (typeof afterAll === 'function' ? afterAll : () => { }));
88
- }
89
- static set afterAll(value) {
90
- __classPrivateFieldSet(this, _a, value, "f", _RuleTester_afterAll);
91
- }
92
- get staticThis() {
93
- // the cast here is due to https://github.com/microsoft/TypeScript/issues/3841
94
- return this.constructor;
95
- }
96
109
  getFilename(testOptions) {
97
110
  var _b;
98
111
  const resolvedOptions = (0, deepMerge_1.deepMerge)(__classPrivateFieldGet(this, _RuleTester_baseOptions, "f").parserOptions, testOptions);
@@ -158,8 +171,10 @@ class RuleTester extends BaseRuleTester.RuleTester {
158
171
  single test case.
159
172
  Hugely helps with the string-based valid test cases as it means they don't
160
173
  need to be made objects!
174
+ Also removes dependencyConstraints, which we support but ESLint core doesn't.
161
175
  */
162
- const addFilename = (test) => {
176
+ const normalizeTest = (_b) => {
177
+ var { dependencyConstraints: _ } = _b, test = __rest(_b, ["dependencyConstraints"]);
163
178
  if (test.parser === TS_ESLINT_PARSER) {
164
179
  throw new Error(ERROR_MESSAGE);
165
180
  }
@@ -168,8 +183,8 @@ class RuleTester extends BaseRuleTester.RuleTester {
168
183
  }
169
184
  return test;
170
185
  };
171
- tests.valid = tests.valid.map(addFilename);
172
- tests.invalid = tests.invalid.map(addFilename);
186
+ tests.valid = tests.valid.map(normalizeTest);
187
+ tests.invalid = tests.invalid.map(normalizeTest);
173
188
  const hasOnly = (() => {
174
189
  for (const test of allTestsIterator) {
175
190
  if (test.only) {
@@ -229,10 +244,8 @@ _RuleTester_afterAll = { value: void 0 };
229
244
  * Simple no-op tag to mark code samples as "should not format with prettier"
230
245
  * for the internal/plugin-test-formatting lint rule
231
246
  */
232
- function noFormat(strings, ...keys) {
233
- const lastIndex = strings.length - 1;
234
- return (strings.slice(0, lastIndex).reduce((p, s, i) => p + s + keys[i], '') +
235
- strings[lastIndex]);
247
+ function noFormat(raw, ...keys) {
248
+ return String.raw({ raw }, ...keys);
236
249
  }
237
250
  exports.noFormat = noFormat;
238
251
  //# sourceMappingURL=RuleTester.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"RuleTester.js","sourceRoot":"","sources":["../../../src/eslint-utils/rule-tester/RuleTester.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA4B;AAC5B,sDAA+D;AAC/D,2CAA6B;AAC7B,+CAAiC;AAKjC,2EAA6D;AAC7D,4CAAyC;AAEzC,mEAA4E;AAE5E,MAAM,gBAAgB,GAAG,2BAA2B,CAAC;AACrD,MAAM,aAAa,GAAG,sFAAsF,gBAAgB,EAAE,CAAC;AAqC/H,SAAS,kBAAkB,CACzB,KAAc;IAId,OAAO,CACL,OAAO,KAAK,KAAK,QAAQ;QACzB,KAAK,IAAI,IAAI;QACb,MAAM,IAAI,KAAK;QACf,OAAQ,KAAiC,CAAC,IAAI,KAAK,UAAU,CAC9D,CAAC;AACJ,CAAC;AAED,MAAM,UAAW,SAAQ,cAAc,CAAC,UAAU;IAuBhD,YAAY,WAA6B;;QACvC,KAAK,iCACA,WAAW,KACd,a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AAE,KAAK,CAAC,CAAC;IAC/B,CAAC;CACF;AAUkB,gCAAU;;AApPpB,wCAAS,CAAuB;AA4OzC;;;GAGG;AACH,SAAS,QAAQ,CAAC,GAAyB,EAAE,GAAG,IAAc;IAC5D,OAAO,MAAM,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,EAAE,GAAG,IAAI,CAAC,CAAC;AACtC,CAAC;AAEQ,4BAAQ"}
@@ -3,8 +3,8 @@ interface SemverVersionConstraint {
3
3
  readonly range: string;
4
4
  readonly options?: Parameters<typeof semver.satisfies>[2];
5
5
  }
6
- declare type AtLeastVersionConstraint = `${number}` | `${number}.${number}` | `${number}.${number}.${number}` | `${number}.${number}.${number}-${string}`;
7
- declare type VersionConstraint = SemverVersionConstraint | AtLeastVersionConstraint;
6
+ type AtLeastVersionConstraint = `${number}` | `${number}.${number}` | `${number}.${number}.${number}` | `${number}.${number}.${number}-${string}`;
7
+ type VersionConstraint = SemverVersionConstraint | AtLeastVersionConstraint;
8
8
  interface DependencyConstraint {
9
9
  /**
10
10
  * Passing a string for the value is shorthand for a '>=' constraint
@@ -1 +1 @@
1
- {"version":3,"file":"dependencyConstraints.d.ts","sourceRoot":"","sources":["../../../src/eslint-utils/rule-tester/dependencyConstraints.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,UAAU,uBAAuB;IAC/B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,OAAO,CAAC,EAAE,UAAU,CAAC,OAAO,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;CAC3D;AACD,aAAK,wBAAwB,GACzB,GAAG,MAAM,EAAE,GACX,GAAG,MAAM,IAAI,MAAM,EAAE,GACrB,GAAG,MAAM,IAAI,MAAM,IAAI,MAAM,EAAE,GAC/B,GAAG,MAAM,IAAI,MAAM,IAAI,MAAM,IAAI,MAAM,EAAE,CAAC;AAC9C,aAAK,iBAAiB,GAAG,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