xo 0.53.1 → 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 (530) hide show
  1. package/config/plugins.cjs +27 -4
  2. package/lib/options-manager.js +11 -58
  3. package/node_modules/@eslint-community/eslint-utils/README.md +37 -0
  4. package/node_modules/{eslint-utils → @eslint-community/eslint-utils}/index.js +124 -12
  5. package/node_modules/@eslint-community/eslint-utils/index.js.map +1 -0
  6. package/node_modules/{eslint-utils → @eslint-community/eslint-utils}/index.mjs +124 -11
  7. package/node_modules/@eslint-community/eslint-utils/index.mjs.map +1 -0
  8. package/node_modules/@eslint-community/eslint-utils/package.json +73 -0
  9. package/node_modules/{regexpp → @eslint-community/regexpp}/README.md +9 -10
  10. package/node_modules/@eslint-community/regexpp/index.d.ts +781 -0
  11. package/node_modules/{regexpp → @eslint-community/regexpp}/index.js +297 -262
  12. package/node_modules/@eslint-community/regexpp/index.js.map +1 -0
  13. package/node_modules/{regexpp → @eslint-community/regexpp}/index.mjs +297 -262
  14. package/node_modules/@eslint-community/regexpp/index.mjs.map +1 -0
  15. package/node_modules/{regexpp → @eslint-community/regexpp}/package.json +60 -64
  16. package/node_modules/@typescript-eslint/eslint-plugin/LICENSE +1 -1
  17. package/node_modules/@typescript-eslint/eslint-plugin/README.md +6 -92
  18. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/all.js +10 -2
  19. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/all.js.map +1 -1
  20. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/strict.js +2 -1
  21. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/strict.js.map +1 -1
  22. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/adjacent-overload-signatures.js +4 -2
  23. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/adjacent-overload-signatures.js.map +1 -1
  24. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/array-type.js +1 -1
  25. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/array-type.js.map +1 -1
  26. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-ts-comment.js +2 -1
  27. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-ts-comment.js.map +1 -1
  28. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-types.js +3 -3
  29. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-types.js.map +1 -1
  30. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/block-spacing.js +158 -0
  31. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/block-spacing.js.map +1 -0
  32. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/brace-style.js +3 -1
  33. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/brace-style.js.map +1 -1
  34. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/comma-spacing.js +1 -1
  35. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/comma-spacing.js.map +1 -1
  36. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-generic-constructors.js +17 -7
  37. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-generic-constructors.js.map +1 -1
  38. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-assertions.js +47 -0
  39. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-assertions.js.map +1 -1
  40. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-imports.js +5 -11
  41. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-imports.js.map +1 -1
  42. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-function-return-type.js +22 -3
  43. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-function-return-type.js.map +1 -1
  44. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/index.js +12 -0
  45. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/index.js.map +1 -1
  46. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/key-spacing.js +351 -0
  47. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/key-spacing.js.map +1 -0
  48. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/keyword-spacing.js +53 -2
  49. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/keyword-spacing.js.map +1 -1
  50. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/lines-around-comment.js +384 -0
  51. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/lines-around-comment.js.map +1 -0
  52. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-ordering.js +205 -39
  53. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-ordering.js.map +1 -1
  54. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/enums.js +14 -13
  55. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/enums.js.map +1 -1
  56. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/schema.js +5 -0
  57. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/schema.js.map +1 -1
  58. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/validator.js +6 -6
  59. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/validator.js.map +1 -1
  60. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention.js +231 -198
  61. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention.js.map +1 -1
  62. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-void-expression.js +5 -0
  63. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-void-expression.js.map +1 -1
  64. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-type-constituents.js +158 -0
  65. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-type-constituents.js.map +1 -0
  66. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-interface.js +19 -16
  67. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-interface.js.map +1 -1
  68. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-explicit-any.js +2 -2
  69. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-explicit-any.js.map +1 -1
  70. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-floating-promises.js +45 -4
  71. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-floating-promises.js.map +1 -1
  72. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-implied-eval.js +1 -1
  73. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-implied-eval.js.map +1 -1
  74. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-import-type-side-effects.js +79 -0
  75. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-import-type-side-effects.js.map +1 -0
  76. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-inferrable-types.js +1 -1
  77. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-inferrable-types.js.map +1 -1
  78. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loss-of-precision.js +1 -1
  79. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loss-of-precision.js.map +1 -1
  80. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-promises.js +15 -15
  81. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-promises.js.map +1 -1
  82. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-mixed-enums.js +196 -0
  83. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-mixed-enums.js.map +1 -0
  84. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-nullish-coalescing.js +1 -1
  85. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-nullish-coalescing.js.map +1 -1
  86. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redundant-type-constituents.js +3 -3
  87. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redundant-type-constituents.js.map +1 -1
  88. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-shadow.js +6 -1
  89. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-shadow.js.map +1 -1
  90. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-boolean-literal-compare.js +21 -31
  91. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-boolean-literal-compare.js.map +1 -1
  92. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-condition.js +22 -7
  93. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-condition.js.map +1 -1
  94. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-qualifier.js +4 -5
  95. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-qualifier.js.map +1 -1
  96. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-argument.js +9 -9
  97. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-argument.js.map +1 -1
  98. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-vars.js +1 -2
  99. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-vars.js.map +1 -1
  100. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-use-before-define.js +2 -2
  101. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-use-before-define.js.map +1 -1
  102. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/object-curly-spacing.js +1 -0
  103. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/object-curly-spacing.js.map +1 -1
  104. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/padding-line-between-statements.js +1 -0
  105. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/padding-line-between-statements.js.map +1 -1
  106. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-for-of.js +3 -5
  107. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-for-of.js.map +1 -1
  108. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-function-type.js +4 -5
  109. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-function-type.js.map +1 -1
  110. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-includes.js +2 -2
  111. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-includes.js.map +1 -1
  112. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-nullish-coalescing.js +19 -1
  113. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-nullish-coalescing.js.map +1 -1
  114. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain.js +47 -11
  115. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain.js.map +1 -1
  116. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly.js +2 -1
  117. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly.js.map +1 -1
  118. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-regexp-exec.js +1 -1
  119. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-regexp-exec.js.map +1 -1
  120. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-string-starts-ends-with.js +2 -2
  121. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-string-starts-ends-with.js.map +1 -1
  122. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/promise-function-async.js +3 -1
  123. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/promise-function-async.js.map +1 -1
  124. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-array-sort-compare.js +1 -1
  125. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-array-sort-compare.js.map +1 -1
  126. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-template-expressions.js +7 -0
  127. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-template-expressions.js.map +1 -1
  128. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-constituents.js +5 -5
  129. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-constituents.js.map +1 -1
  130. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-union-intersection-members.js +5 -5
  131. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-union-intersection-members.js.map +1 -1
  132. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/space-before-blocks.js +1 -2
  133. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/space-before-blocks.js.map +1 -1
  134. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/space-before-function-paren.js +2 -1
  135. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/space-before-function-paren.js.map +1 -1
  136. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/strict-boolean-expressions.js +46 -2
  137. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/strict-boolean-expressions.js.map +1 -1
  138. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/switch-exhaustiveness-check.js +1 -1
  139. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/switch-exhaustiveness-check.js.map +1 -1
  140. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/triple-slash-reference.js +1 -1
  141. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/triple-slash-reference.js.map +1 -1
  142. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unbound-method.js +1 -1
  143. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unbound-method.js.map +1 -1
  144. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/collectUnusedVariables.js.map +1 -1
  145. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getESLintCoreRule.js.map +1 -1
  146. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getStringLength.js +20 -0
  147. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getStringLength.js.map +1 -0
  148. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getWrappingFixer.js +2 -1
  149. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getWrappingFixer.js.map +1 -1
  150. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/index.js +1 -0
  151. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/index.js.map +1 -1
  152. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isNullLiteral.js +1 -1
  153. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isNullLiteral.js.map +1 -1
  154. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/misc.js +27 -1
  155. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/misc.js.map +1 -1
  156. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/README.md +3 -3
  157. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/await-thenable.md +1 -1
  158. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/ban-types.md +3 -8
  159. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/block-spacing.md +12 -0
  160. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-indexed-object-style.md +1 -1
  161. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-type-exports.md +2 -0
  162. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-type-imports.md +9 -1
  163. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/explicit-function-return-type.md +52 -0
  164. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/key-spacing.md +12 -0
  165. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/lines-around-comment.md +37 -0
  166. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/member-ordering.md +181 -20
  167. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/naming-convention.md +7 -6
  168. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-duplicate-type-constituents.md +61 -0
  169. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-empty-interface.md +1 -1
  170. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-import-type-side-effects.md +75 -0
  171. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-mixed-enums.md +88 -0
  172. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-non-null-assertion.md +2 -2
  173. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-shadow.md +21 -0
  174. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-function-type.md +5 -0
  175. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/promise-function-async.md +18 -1
  176. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/restrict-template-expressions.md +9 -0
  177. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/strict-boolean-expressions.md +6 -0
  178. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/unified-signatures.md +7 -10
  179. package/node_modules/@typescript-eslint/eslint-plugin/package.json +13 -9
  180. package/node_modules/@typescript-eslint/parser/LICENSE +5 -5
  181. package/node_modules/@typescript-eslint/parser/README.md +6 -300
  182. package/node_modules/@typescript-eslint/parser/_ts3.4/dist/index.d.ts +4 -0
  183. package/node_modules/@typescript-eslint/parser/dist/index.d.ts +4 -0
  184. package/node_modules/@typescript-eslint/parser/dist/index.d.ts.map +1 -1
  185. package/node_modules/@typescript-eslint/parser/dist/index.js +5 -1
  186. package/node_modules/@typescript-eslint/parser/dist/index.js.map +1 -1
  187. package/node_modules/@typescript-eslint/parser/dist/parser.d.ts.map +1 -1
  188. package/node_modules/@typescript-eslint/parser/dist/parser.js +15 -17
  189. package/node_modules/@typescript-eslint/parser/dist/parser.js.map +1 -1
  190. package/node_modules/@typescript-eslint/parser/package.json +6 -6
  191. package/node_modules/@typescript-eslint/scope-manager/LICENSE +1 -1
  192. package/node_modules/@typescript-eslint/scope-manager/README.md +5 -117
  193. package/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.js +10 -10
  194. package/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.js.map +1 -1
  195. package/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.d.ts +1 -1
  196. package/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.d.ts.map +1 -1
  197. package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.d.ts +3 -0
  198. package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.d.ts.map +1 -0
  199. package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.js +21 -0
  200. package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.js.map +1 -0
  201. package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.d.ts +3 -0
  202. package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.d.ts.map +1 -0
  203. package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.js +15 -0
  204. package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.js.map +1 -0
  205. package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.d.ts.map +1 -1
  206. package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.d.ts.map +1 -1
  207. package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.js +5 -0
  208. package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.js.map +1 -1
  209. package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.js +44 -10
  210. package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.js.map +1 -1
  211. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.d.ts.map +1 -1
  212. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.js +1 -1
  213. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.js.map +1 -1
  214. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.d.ts.map +1 -1
  215. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.d.ts +3 -0
  216. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.d.ts.map +1 -0
  217. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.js +12 -0
  218. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.js.map +1 -0
  219. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.js +2 -1
  220. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.js.map +1 -1
  221. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.d.ts.map +1 -1
  222. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.js +2 -1
  223. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.js.map +1 -1
  224. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.d.ts +3 -0
  225. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.d.ts.map +1 -0
  226. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.js +15 -0
  227. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.js.map +1 -0
  228. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.d.ts +3 -0
  229. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.d.ts.map +1 -0
  230. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.js +24 -0
  231. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.js.map +1 -0
  232. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.d.ts +3 -0
  233. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.d.ts.map +1 -0
  234. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.d.ts +3 -0
  235. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.d.ts.map +1 -0
  236. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.js +14 -0
  237. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.js.map +1 -0
  238. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.js +11 -0
  239. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.js.map +1 -0
  240. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.d.ts.map +1 -1
  241. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.js +3 -105
  242. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.js.map +1 -1
  243. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.js +2 -2
  244. package/node_modules/@typescript-eslint/scope-manager/dist/lib/index.d.ts +7 -0
  245. package/node_modules/@typescript-eslint/scope-manager/dist/lib/index.d.ts.map +1 -1
  246. package/node_modules/@typescript-eslint/scope-manager/dist/lib/index.js +14 -0
  247. package/node_modules/@typescript-eslint/scope-manager/dist/lib/index.js.map +1 -1
  248. package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.d.ts.map +1 -1
  249. package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.d.ts.map +1 -1
  250. package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.js +2 -0
  251. package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.js.map +1 -1
  252. package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.js +43 -1
  253. package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.js.map +1 -1
  254. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.d.ts +4 -2
  255. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.d.ts.map +1 -1
  256. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.js +14 -6
  257. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.js.map +1 -1
  258. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.d.ts +1 -1
  259. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.d.ts.map +1 -1
  260. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.js.map +1 -1
  261. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.js.map +1 -1
  262. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.d.ts +2 -2
  263. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.d.ts.map +1 -1
  264. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.js +10 -12
  265. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.js.map +1 -1
  266. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.js +17 -17
  267. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.js.map +1 -1
  268. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.d.ts +2 -1
  269. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.d.ts.map +1 -1
  270. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.js +5 -2
  271. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.js.map +1 -1
  272. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.js.map +1 -1
  273. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.js.map +1 -1
  274. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.js.map +1 -1
  275. package/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.d.ts +1 -1
  276. package/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.d.ts.map +1 -1
  277. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.d.ts +1 -1
  278. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.d.ts.map +1 -1
  279. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.js.map +1 -1
  280. package/node_modules/@typescript-eslint/scope-manager/package.json +12 -12
  281. package/node_modules/@typescript-eslint/type-utils/LICENSE +1 -1
  282. package/node_modules/@typescript-eslint/type-utils/README.md +7 -10
  283. package/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/containsAllTypesByName.d.ts +4 -2
  284. package/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.d.ts +4 -2
  285. package/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.d.ts.map +1 -1
  286. package/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.js +12 -6
  287. package/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.js.map +1 -1
  288. package/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.d.ts.map +1 -1
  289. package/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.js +2 -4
  290. package/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.js.map +1 -1
  291. package/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.d.ts.map +1 -1
  292. package/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.js +1 -0
  293. package/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.js.map +1 -1
  294. package/node_modules/@typescript-eslint/type-utils/package.json +6 -6
  295. package/node_modules/@typescript-eslint/types/LICENSE +1 -1
  296. package/node_modules/@typescript-eslint/types/README.md +6 -11
  297. package/node_modules/@typescript-eslint/types/_ts3.4/dist/generated/ast-spec.d.ts +90 -16
  298. package/node_modules/@typescript-eslint/types/_ts3.4/dist/lib.d.ts +1 -1
  299. package/node_modules/@typescript-eslint/types/_ts3.4/dist/parser-options.d.ts +9 -5
  300. package/node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts +90 -16
  301. package/node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts.map +1 -1
  302. package/node_modules/@typescript-eslint/types/dist/generated/ast-spec.js +3 -0
  303. package/node_modules/@typescript-eslint/types/dist/generated/ast-spec.js.map +1 -1
  304. package/node_modules/@typescript-eslint/types/dist/lib.d.ts +1 -1
  305. package/node_modules/@typescript-eslint/types/dist/lib.d.ts.map +1 -1
  306. package/node_modules/@typescript-eslint/types/dist/parser-options.d.ts +9 -5
  307. package/node_modules/@typescript-eslint/types/dist/parser-options.d.ts.map +1 -1
  308. package/node_modules/@typescript-eslint/types/package.json +6 -6
  309. package/node_modules/@typescript-eslint/typescript-estree/LICENSE +5 -5
  310. package/node_modules/@typescript-eslint/typescript-estree/README.md +6 -379
  311. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/clear-caches.d.ts +10 -0
  312. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/describeFilePath.d.ts +2 -0
  313. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/{createWatchProgram.d.ts → getWatchProgramsForProjects.d.ts} +3 -4
  314. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/shared.d.ts +8 -2
  315. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/index.d.ts +2 -2
  316. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parseSettings/ExpiringCache.d.ts +17 -0
  317. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parseSettings/createParseSettings.d.ts +1 -0
  318. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parseSettings/getProjectConfigFiles.d.ts +12 -0
  319. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parseSettings/index.d.ts +8 -3
  320. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parseSettings/resolveProjectList.d.ts +19 -0
  321. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parser-options.d.ts +23 -4
  322. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parser.d.ts +1 -1
  323. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/simple-traverse.d.ts +1 -1
  324. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/ts-estree/estree-to-ts-node-types.d.ts +4 -1
  325. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/ts-estree/ts-nodes.d.ts +4 -2
  326. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/version-check.d.ts +1 -1
  327. package/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.d.ts +10 -0
  328. package/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.d.ts.map +1 -0
  329. package/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.js +24 -0
  330. package/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.js.map +1 -0
  331. package/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.js +1 -1
  332. package/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.js.map +1 -1
  333. package/node_modules/@typescript-eslint/typescript-estree/dist/convert.d.ts.map +1 -1
  334. package/node_modules/@typescript-eslint/typescript-estree/dist/convert.js +62 -16
  335. package/node_modules/@typescript-eslint/typescript-estree/dist/convert.js.map +1 -1
  336. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createDefaultProgram.d.ts.map +1 -1
  337. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createDefaultProgram.js +1 -0
  338. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createDefaultProgram.js.map +1 -1
  339. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.d.ts.map +1 -1
  340. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.js +7 -12
  341. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.js.map +1 -1
  342. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.d.ts +2 -0
  343. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.d.ts.map +1 -0
  344. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.js +32 -0
  345. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.js.map +1 -0
  346. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/{createWatchProgram.d.ts → getWatchProgramsForProjects.d.ts} +3 -4
  347. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.d.ts.map +1 -0
  348. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/{createWatchProgram.js → getWatchProgramsForProjects.js} +16 -20
  349. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.js.map +1 -0
  350. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.d.ts +8 -2
  351. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.d.ts.map +1 -1
  352. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.js +15 -1
  353. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.js.map +1 -1
  354. package/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.d.ts.map +1 -1
  355. package/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.js +3 -3
  356. package/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.js.map +1 -1
  357. package/node_modules/@typescript-eslint/typescript-estree/dist/index.d.ts +2 -2
  358. package/node_modules/@typescript-eslint/typescript-estree/dist/index.d.ts.map +1 -1
  359. package/node_modules/@typescript-eslint/typescript-estree/dist/index.js +2 -4
  360. package/node_modules/@typescript-eslint/typescript-estree/dist/index.js.map +1 -1
  361. package/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.d.ts.map +1 -1
  362. package/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.js +18 -5
  363. package/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.js.map +1 -1
  364. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.d.ts +17 -0
  365. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.d.ts.map +1 -0
  366. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.js +62 -0
  367. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.js.map +1 -0
  368. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.d.ts +1 -0
  369. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.d.ts.map +1 -1
  370. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.js +22 -48
  371. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.js.map +1 -1
  372. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.d.ts +12 -0
  373. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.d.ts.map +1 -0
  374. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.js +70 -0
  375. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.js.map +1 -0
  376. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.d.ts +8 -3
  377. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.d.ts.map +1 -1
  378. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.d.ts +19 -0
  379. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.d.ts.map +1 -0
  380. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.js +103 -0
  381. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.js.map +1 -0
  382. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.js +4 -4
  383. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.js.map +1 -1
  384. package/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.d.ts +23 -4
  385. package/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.d.ts.map +1 -1
  386. package/node_modules/@typescript-eslint/typescript-estree/dist/parser.d.ts +1 -1
  387. package/node_modules/@typescript-eslint/typescript-estree/dist/parser.d.ts.map +1 -1
  388. package/node_modules/@typescript-eslint/typescript-estree/dist/parser.js +1 -1
  389. package/node_modules/@typescript-eslint/typescript-estree/dist/parser.js.map +1 -1
  390. package/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.d.ts +1 -1
  391. package/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.d.ts.map +1 -1
  392. package/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.js +1 -1
  393. package/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.js.map +1 -1
  394. package/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.d.ts +4 -1
  395. package/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.d.ts.map +1 -1
  396. package/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.d.ts +4 -2
  397. package/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.d.ts.map +1 -1
  398. package/node_modules/@typescript-eslint/typescript-estree/dist/version-check.d.ts +1 -1
  399. package/node_modules/@typescript-eslint/typescript-estree/dist/version-check.d.ts.map +1 -1
  400. package/node_modules/@typescript-eslint/typescript-estree/dist/version-check.js +2 -0
  401. package/node_modules/@typescript-eslint/typescript-estree/dist/version-check.js.map +1 -1
  402. package/node_modules/@typescript-eslint/typescript-estree/package.json +5 -6
  403. package/node_modules/@typescript-eslint/utils/LICENSE +1 -1
  404. package/node_modules/@typescript-eslint/utils/README.md +6 -23
  405. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/eslint-utils/PatternMatcher.d.ts +4 -4
  406. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/eslint-utils/ReferenceTracker.d.ts +4 -4
  407. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/eslint-utils/astUtilities.d.ts +6 -6
  408. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/eslint-utils/predicates.d.ts +5 -5
  409. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/eslint-utils/scopeAnalysis.d.ts +2 -2
  410. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/helpers.d.ts +60 -6
  411. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/predicates.d.ts +13 -1
  412. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/InferTypesFromRule.d.ts +2 -2
  413. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/RuleCreator.d.ts +2 -2
  414. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/deepMerge.d.ts +1 -1
  415. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/rule-tester/RuleTester.d.ts +3 -3
  416. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/rule-tester/dependencyConstraints.d.ts +2 -2
  417. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint/Rule.d.ts +6 -6
  418. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint/RuleTester.d.ts +1 -1
  419. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint/SourceCode.d.ts +5 -1
  420. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint-scope/Options.d.ts +1 -1
  421. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint-scope/Reference.d.ts +1 -1
  422. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint-scope/Scope.d.ts +1 -1
  423. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.d.ts +4 -4
  424. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.js +2 -2
  425. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.js.map +1 -1
  426. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.d.ts +4 -4
  427. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.js +2 -2
  428. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.js.map +1 -1
  429. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.d.ts +6 -6
  430. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.js +7 -7
  431. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.js.map +1 -1
  432. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.d.ts +5 -5
  433. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.d.ts.map +1 -1
  434. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.js +1 -1
  435. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.js.map +1 -1
  436. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.d.ts +2 -2
  437. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.js +3 -3
  438. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.js.map +1 -1
  439. package/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.d.ts +60 -6
  440. package/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.d.ts.map +1 -1
  441. package/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.d.ts +13 -1
  442. package/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.d.ts.map +1 -1
  443. package/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.js +15 -1
  444. package/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.js.map +1 -1
  445. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.d.ts +2 -2
  446. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.d.ts.map +1 -1
  447. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.d.ts +2 -2
  448. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.d.ts.map +1 -1
  449. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.js +1 -1
  450. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.js.map +1 -1
  451. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/deepMerge.d.ts +1 -1
  452. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/deepMerge.d.ts.map +1 -1
  453. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.js +1 -1
  454. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.js.map +1 -1
  455. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/RuleTester.d.ts +3 -3
  456. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/RuleTester.d.ts.map +1 -1
  457. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/RuleTester.js +40 -27
  458. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/RuleTester.js.map +1 -1
  459. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/dependencyConstraints.d.ts +2 -2
  460. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/dependencyConstraints.d.ts.map +1 -1
  461. package/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.d.ts +6 -6
  462. package/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.d.ts.map +1 -1
  463. package/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.d.ts +1 -1
  464. package/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.d.ts.map +1 -1
  465. package/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.d.ts +5 -1
  466. package/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.d.ts.map +1 -1
  467. package/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.js.map +1 -1
  468. package/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Options.d.ts +1 -1
  469. package/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Options.d.ts.map +1 -1
  470. package/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Reference.d.ts +1 -1
  471. package/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Reference.d.ts.map +1 -1
  472. package/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Scope.d.ts +1 -1
  473. package/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Scope.d.ts.map +1 -1
  474. package/node_modules/@typescript-eslint/utils/package.json +8 -8
  475. package/node_modules/@typescript-eslint/visitor-keys/LICENSE +1 -1
  476. package/node_modules/@typescript-eslint/visitor-keys/README.md +6 -9
  477. package/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.d.ts.map +1 -1
  478. package/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.js +63 -48
  479. package/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.js.map +1 -1
  480. package/node_modules/@typescript-eslint/visitor-keys/package.json +4 -4
  481. package/node_modules/eslint-config-xo-typescript/index.js +8 -11
  482. package/node_modules/eslint-config-xo-typescript/package.json +5 -5
  483. package/node_modules/eslint-visitor-keys/README.md +1 -2
  484. package/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.cjs +38 -36
  485. package/node_modules/eslint-visitor-keys/lib/visitor-keys.js +38 -35
  486. package/node_modules/eslint-visitor-keys/package.json +16 -6
  487. package/node_modules/fastq/README.md +1 -1
  488. package/node_modules/fastq/index.d.ts +1 -1
  489. package/node_modules/fastq/package.json +1 -1
  490. package/node_modules/fastq/queue.js +6 -0
  491. package/node_modules/fastq/test/promise.js +27 -0
  492. package/node_modules/grapheme-splitter/LICENSE +22 -0
  493. package/node_modules/grapheme-splitter/README.md +111 -0
  494. package/node_modules/grapheme-splitter/index.d.ts +24 -0
  495. package/node_modules/grapheme-splitter/index.js +1743 -0
  496. package/node_modules/grapheme-splitter/package.json +34 -0
  497. package/node_modules/grapheme-splitter/tests/GraphemeBreakTest.txt +850 -0
  498. package/node_modules/grapheme-splitter/tests/grapheme_splitter_tests.js +83 -0
  499. package/node_modules/ignore/README.md +3 -3
  500. package/node_modules/ignore/index.js +24 -9
  501. package/node_modules/ignore/legacy.js +176 -135
  502. package/node_modules/ignore/package.json +13 -11
  503. package/package.json +19 -19
  504. package/readme.md +1 -2
  505. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createWatchProgram.d.ts.map +0 -1
  506. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createWatchProgram.js.map +0 -1
  507. package/node_modules/braces/CHANGELOG.md +0 -184
  508. package/node_modules/eslint-scope/CHANGELOG.md +0 -70
  509. package/node_modules/eslint-utils/README.md +0 -38
  510. package/node_modules/eslint-utils/index.js.map +0 -1
  511. package/node_modules/eslint-utils/index.mjs.map +0 -1
  512. package/node_modules/eslint-utils/node_modules/eslint-visitor-keys/CHANGELOG.md +0 -36
  513. package/node_modules/eslint-utils/node_modules/eslint-visitor-keys/LICENSE +0 -201
  514. package/node_modules/eslint-utils/node_modules/eslint-visitor-keys/README.md +0 -98
  515. package/node_modules/eslint-utils/node_modules/eslint-visitor-keys/lib/index.js +0 -81
  516. package/node_modules/eslint-utils/node_modules/eslint-visitor-keys/lib/visitor-keys.json +0 -289
  517. package/node_modules/eslint-utils/node_modules/eslint-visitor-keys/package.json +0 -39
  518. package/node_modules/eslint-utils/package.json +0 -78
  519. package/node_modules/glob-parent/CHANGELOG.md +0 -110
  520. package/node_modules/picomatch/CHANGELOG.md +0 -136
  521. package/node_modules/regexpp/index.d.ts +0 -248
  522. package/node_modules/regexpp/index.js.map +0 -1
  523. package/node_modules/regexpp/index.mjs.map +0 -1
  524. /package/node_modules/{eslint-utils → @eslint-community/eslint-utils}/LICENSE +0 -0
  525. /package/node_modules/{regexpp → @eslint-community/regexpp}/LICENSE +0 -0
  526. /package/node_modules/{yallist → semver/node_modules/yallist}/LICENSE +0 -0
  527. /package/node_modules/{yallist → semver/node_modules/yallist}/README.md +0 -0
  528. /package/node_modules/{yallist → semver/node_modules/yallist}/iterator.js +0 -0
  529. /package/node_modules/{yallist → semver/node_modules/yallist}/package.json +0 -0
  530. /package/node_modules/{yallist → semver/node_modules/yallist}/yallist.js +0 -0
@@ -8,11 +8,11 @@ Copyright JS Foundation and other contributors, https://js.foundation
8
8
  Redistribution and use in source and binary forms, with or without
9
9
  modification, are permitted provided that the following conditions are met:
10
10
 
11
- * Redistributions of source code must retain the above copyright
12
- notice, this list of conditions and the following disclaimer.
13
- * Redistributions in binary form must reproduce the above copyright
14
- notice, this list of conditions and the following disclaimer in the
15
- documentation and/or other materials provided with the distribution.
11
+ - Redistributions of source code must retain the above copyright
12
+ notice, this list of conditions and the following disclaimer.
13
+ - Redistributions in binary form must reproduce the above copyright
14
+ notice, this list of conditions and the following disclaimer in the
15
+ documentation and/or other materials provided with the distribution.
16
16
 
17
17
  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
18
18
  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
@@ -1,383 +1,10 @@
1
- <h1 align="center">TypeScript ESTree</h1>
1
+ # `@typescript-eslint/typescript-estree`
2
2
 
3
- <p align="center">A parser that converts TypeScript source code into an <a href="https://github.com/estree/estree">ESTree</a>-compatible form</p>
4
-
5
- <p align="center">
6
- <img src="https://github.com/typescript-eslint/typescript-eslint/workflows/CI/badge.svg" alt="CI" />
7
- <a href="https://www.npmjs.com/package/@typescript-eslint/typescript-estree"><img src="https://img.shields.io/npm/v/@typescript-eslint/typescript-estree.svg?style=flat-square" alt="NPM Version" /></a>
8
- <a href="https://www.npmjs.com/package/@typescript-eslint/typescript-estree"><img src="https://img.shields.io/npm/dm/@typescript-eslint/typescript-estree.svg?style=flat-square" alt="NPM Downloads" /></a>
9
- </p>
10
-
11
- ## Getting Started
12
-
13
- **[You can find our Getting Started docs here](https://typescript-eslint.io/docs)**
14
-
15
- ## About
16
-
17
- This parser is somewhat generic and robust, and could be used to power any use-case which requires taking TypeScript source code and producing an ESTree-compatible AST.
18
-
19
- In fact, it is already used within these hyper-popular open-source projects to power their TypeScript support:
20
-
21
- - [ESLint](https://eslint.org), the pluggable linting utility for JavaScript and JSX
22
- - [Prettier](https://prettier.io), an opinionated code formatter
23
-
24
- ## Installation
25
-
26
- ```sh
27
- yarn add -D @typescript-eslint/typescript-estree
28
- ```
29
-
30
- ## API
31
-
32
- ### Parsing
33
-
34
- #### `parse(code, options)`
35
-
36
- Parses the given string of code with the options provided and returns an ESTree-compatible AST.
37
-
38
- ```ts
39
- interface ParseOptions {
40
- /**
41
- * create a top-level comments array containing all comments
42
- */
43
- comment?: boolean;
44
-
45
- /**
46
- * An array of modules to turn explicit debugging on for.
47
- * - 'typescript-eslint' is the same as setting the env var `DEBUG=typescript-eslint:*`
48
- * - 'eslint' is the same as setting the env var `DEBUG=eslint:*`
49
- * - 'typescript' is the same as setting `extendedDiagnostics: true` in your tsconfig compilerOptions
50
- *
51
- * For convenience, also supports a boolean:
52
- * - true === ['typescript-eslint']
53
- * - false === []
54
- */
55
- debugLevel?: boolean | ('typescript-eslint' | 'eslint' | 'typescript')[];
56
-
57
- /**
58
- * Cause the parser to error if it encounters an unknown AST node type (useful for testing).
59
- * This case only usually occurs when TypeScript releases new features.
60
- */
61
- errorOnUnknownASTType?: boolean;
62
-
63
- /**
64
- * Absolute (or relative to `cwd`) path to the file being parsed.
65
- */
66
- filePath?: string;
67
-
68
- /**
69
- * Enable parsing of JSX.
70
- * For more details, see https://www.typescriptlang.org/docs/handbook/jsx.html
71
- *
72
- * NOTE: this setting does not effect known file types (.js, .cjs, .mjs, .jsx, .ts, .mts, .cts, .tsx, .json) because the
73
- * TypeScript compiler has its own internal handling for known file extensions.
74
- *
75
- * For the exact behavior, see https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/parser#parseroptionsecmafeaturesjsx
76
- */
77
- jsx?: boolean;
78
-
79
- /**
80
- * Controls whether the `loc` information to each node.
81
- * The `loc` property is an object which contains the exact line/column the node starts/ends on.
82
- * This is similar to the `range` property, except it is line/column relative.
83
- */
84
- loc?: boolean;
85
-
86
- /*
87
- * Allows overriding of function used for logging.
88
- * When value is `false`, no logging will occur.
89
- * When value is not provided, `console.log()` will be used.
90
- */
91
- loggerFn?: Function | false;
92
-
93
- /**
94
- * Controls whether the `range` property is included on AST nodes.
95
- * The `range` property is a [number, number] which indicates the start/end index of the node in the file contents.
96
- * This is similar to the `loc` property, except this is the absolute index.
97
- */
98
- range?: boolean;
99
-
100
- /**
101
- * Set to true to create a top-level array containing all tokens from the file.
102
- */
103
- tokens?: boolean;
104
- }
105
-
106
- const PARSE_DEFAULT_OPTIONS: ParseOptions = {
107
- comment: false,
108
- errorOnUnknownASTType: false,
109
- filePath: 'estree.ts', // or 'estree.tsx', if you pass jsx: true
110
- jsx: false,
111
- loc: false,
112
- loggerFn: undefined,
113
- range: false,
114
- tokens: false,
115
- };
116
-
117
- declare function parse(
118
- code: string,
119
- options: ParseOptions = PARSE_DEFAULT_OPTIONS,
120
- ): TSESTree.Program;
121
- ```
122
-
123
- Example usage:
124
-
125
- ```js
126
- import { parse } from '@typescript-eslint/typescript-estree';
127
-
128
- const code = `const hello: string = 'world';`;
129
- const ast = parse(code, {
130
- loc: true,
131
- range: true,
132
- });
133
- ```
134
-
135
- #### `parseAndGenerateServices(code, options)`
136
-
137
- Parses the given string of code with the options provided and returns an ESTree-compatible AST. Accepts additional options which can be used to generate type information along with the AST.
138
-
139
- ```ts
140
- interface ParseAndGenerateServicesOptions extends ParseOptions {
141
- /**
142
- * Causes the parser to error if the TypeScript compiler returns any unexpected syntax/semantic errors.
143
- */
144
- errorOnTypeScriptSyntacticAndSemanticIssues?: boolean;
145
-
146
- /**
147
- * ***EXPERIMENTAL FLAG*** - Use this at your own risk.
148
- *
149
- * Causes TS to use the source files for referenced projects instead of the compiled .d.ts files.
150
- * This feature is not yet optimized, and is likely to cause OOMs for medium to large projects.
151
- *
152
- * This flag REQUIRES at least TS v3.9, otherwise it does nothing.
153
- *
154
- * See: https://github.com/typescript-eslint/typescript-eslint/issues/2094
155
- */
156
- EXPERIMENTAL_useSourceOfProjectReferenceRedirect?: boolean;
157
-
158
- /**
159
- * When `project` is provided, this controls the non-standard file extensions which will be parsed.
160
- * It accepts an array of file extensions, each preceded by a `.`.
161
- */
162
- extraFileExtensions?: string[];
163
-
164
- /**
165
- * Absolute (or relative to `tsconfigRootDir`) path to the file being parsed.
166
- * When `project` is provided, this is required, as it is used to fetch the file from the TypeScript compiler's cache.
167
- */
168
- filePath?: string;
169
-
170
- /**
171
- * Allows the user to control whether or not two-way AST node maps are preserved
172
- * during the AST conversion process.
173
- *
174
- * By default: the AST node maps are NOT preserved, unless `project` has been specified,
175
- * in which case the maps are made available on the returned `parserServices`.
176
- *
177
- * NOTE: If `preserveNodeMaps` is explicitly set by the user, it will be respected,
178
- * regardless of whether or not `project` is in use.
179
- */
180
- preserveNodeMaps?: boolean;
181
-
182
- /**
183
- * Absolute (or relative to `tsconfigRootDir`) paths to the tsconfig(s).
184
- * If this is provided, type information will be returned.
185
- */
186
- project?: string | string[];
187
-
188
- /**
189
- * If you provide a glob (or globs) to the project option, you can use this option to ignore certain folders from
190
- * being matched by the globs.
191
- * This accepts an array of globs to ignore.
192
- *
193
- * By default, this is set to ["/node_modules/"]
194
- */
195
- projectFolderIgnoreList?: string[];
196
-
197
- /**
198
- * The absolute path to the root directory for all provided `project`s.
199
- */
200
- tsconfigRootDir?: string;
201
-
202
- /**
203
- * An array of one or more instances of TypeScript Program objects to be used for type information.
204
- * This overrides any program or programs that would have been computed from the `project` option.
205
- * All linted files must be part of the provided program(s).
206
- */
207
- programs?: Program[];
208
-
209
- /**
210
- ***************************************************************************************
211
- * IT IS RECOMMENDED THAT YOU DO NOT USE THIS OPTION, AS IT CAUSES PERFORMANCE ISSUES. *
212
- ***************************************************************************************
213
- *
214
- * When passed with `project`, this allows the parser to create a catch-all, default program.
215
- * This means that if the parser encounters a file not included in any of the provided `project`s,
216
- * it will not error, but will instead parse the file and its dependencies in a new program.
217
- */
218
- createDefaultProgram?: boolean;
219
-
220
- /**
221
- * ESLint (and therefore typescript-eslint) is used in both "single run"/one-time contexts,
222
- * such as an ESLint CLI invocation, and long-running sessions (such as continuous feedback
223
- * on a file in an IDE).
224
- *
225
- * When typescript-eslint handles TypeScript Program management behind the scenes, this distinction
226
- * is important because there is significant overhead to managing the so called Watch Programs
227
- * needed for the long-running use-case.
228
- *
229
- * When allowAutomaticSingleRunInference is enabled, we will use common heuristics to infer
230
- * whether or not ESLint is being used as part of a single run.
231
- */
232
- allowAutomaticSingleRunInference?: boolean;
233
-
234
- /**
235
- * Path to a file exporting a custom ModuleResolver.
236
- */
237
- moduleResolver?: string;
238
- }
239
-
240
- interface ParserServices {
241
- program: ts.Program;
242
- esTreeNodeToTSNodeMap: WeakMap<TSESTree.Node, ts.Node | ts.Token>;
243
- tsNodeToESTreeNodeMap: WeakMap<ts.Node | ts.Token, TSESTree.Node>;
244
- hasFullTypeInformation: boolean;
245
- }
246
-
247
- interface ParseAndGenerateServicesResult<T extends TSESTreeOptions> {
248
- ast: TSESTree.Program;
249
- services: ParserServices;
250
- }
251
-
252
- const PARSE_AND_GENERATE_SERVICES_DEFAULT_OPTIONS: ParseOptions = {
253
- ...PARSE_DEFAULT_OPTIONS,
254
- errorOnTypeScriptSyntacticAndSemanticIssues: false,
255
- extraFileExtensions: [],
256
- preserveNodeMaps: false, // or true, if you do not set this, but pass `project`
257
- project: undefined,
258
- projectFolderIgnoreList: ['/node_modules/'],
259
- tsconfigRootDir: process.cwd(),
260
- };
261
-
262
- declare function parseAndGenerateServices(
263
- code: string,
264
- options: ParseOptions = PARSE_DEFAULT_OPTIONS,
265
- ): ParseAndGenerateServicesResult;
266
- ```
267
-
268
- Example usage:
269
-
270
- ```js
271
- import { parseAndGenerateServices } from '@typescript-eslint/typescript-estree';
272
-
273
- const code = `const hello: string = 'world';`;
274
- const { ast, services } = parseAndGenerateServices(code, {
275
- filePath: '/some/path/to/file/foo.ts',
276
- loc: true,
277
- project: './tsconfig.json',
278
- range: true,
279
- });
280
- ```
281
-
282
- #### `parseWithNodeMaps(code, options)`
283
-
284
- Parses the given string of code with the options provided and returns both the ESTree-compatible AST as well as the node maps.
285
- This allows you to work with both ASTs without the overhead of types that may come with `parseAndGenerateServices`.
286
-
287
- ```ts
288
- interface ParseWithNodeMapsResult<T extends TSESTreeOptions> {
289
- ast: TSESTree.Program;
290
- esTreeNodeToTSNodeMap: ParserServices['esTreeNodeToTSNodeMap'];
291
- tsNodeToESTreeNodeMap: ParserServices['tsNodeToESTreeNodeMap'];
292
- }
293
-
294
- declare function parseWithNodeMaps(
295
- code: string,
296
- options: ParseOptions = PARSE_DEFAULT_OPTIONS,
297
- ): ParseWithNodeMapsResult;
298
- ```
299
-
300
- Example usage:
301
-
302
- ```js
303
- import { parseWithNodeMaps } from '@typescript-eslint/typescript-estree';
304
-
305
- const code = `const hello: string = 'world';`;
306
- const { ast, esTreeNodeToTSNodeMap, tsNodeToESTreeNodeMap } = parseWithNodeMaps(
307
- code,
308
- {
309
- loc: true,
310
- range: true,
311
- },
312
- );
313
- ```
314
-
315
- ### `TSESTree`, `AST_NODE_TYPES` and `AST_TOKEN_TYPES`
316
-
317
- Types for the AST produced by the parse functions.
318
-
319
- - `TSESTree` is a namespace which contains object types representing all of the AST Nodes produced by the parser.
320
- - `AST_NODE_TYPES` is an enum which provides the values for every single AST node's `type` property.
321
- - `AST_TOKEN_TYPES` is an enum which provides the values for every single AST token's `type` property.
322
-
323
- ### Utilities
324
-
325
- #### `createProgram(configFile, projectDirectory)`
326
-
327
- This serves as a utility method for users of the `ParseOptions.programs` feature to create a TypeScript program instance from a config file.
328
-
329
- ```ts
330
- declare function createProgram(
331
- configFile: string,
332
- projectDirectory: string = process.cwd(),
333
- ): import('typescript').Program;
334
- ```
335
-
336
- Example usage:
337
-
338
- ```js
339
- const tsESTree = require('@typescript-eslint/typescript-estree');
340
-
341
- const program = tsESTree.createProgram('tsconfig.json');
342
- const code = `const hello: string = 'world';`;
343
- const { ast, services } = parseAndGenerateServices(code, {
344
- filePath: '/some/path/to/file/foo.ts',
345
- loc: true,
346
- program,
347
- range: true,
348
- });
349
- ```
350
-
351
- ## Supported TypeScript Version
352
-
353
- See the [Supported TypeScript Version](../../README.md#supported-typescript-version) section in the project root.
354
-
355
- If you use a non-supported version of TypeScript, the parser will log a warning to the console.
356
-
357
- **Please ensure that you are using a supported version before submitting any issues/bug reports.**
358
-
359
- ## Reporting Issues
360
-
361
- Please check the current list of open and known issues and ensure the issue has not been reported before. When creating a new issue provide as much information about your environment as possible. This includes:
362
-
363
- - TypeScript version
364
- - The `typescript-estree` version
365
-
366
- ## AST Alignment Tests
367
-
368
- A couple of years after work on this parser began, the TypeScript Team at Microsoft began [officially supporting TypeScript parsing via Babel](https://blogs.msdn.microsoft.com/typescript/2018/08/27/typescript-and-babel-7/).
369
-
370
- I work closely with the TypeScript Team and we are gradually aligning the AST of this project with the one produced by Babel's parser. To that end, I have created a full test harness to compare the ASTs of the two projects which runs on every PR, please see [the code](https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/typescript-estree/tests/ast-alignment) for more details.
371
-
372
- ## Debugging
373
-
374
- If you encounter a bug with the parser that you want to investigate, you can turn on the debug logging via setting the environment variable: `DEBUG=typescript-eslint:*`.
375
- I.e. in this repo you can run: `DEBUG=typescript-eslint:* yarn lint`.
376
-
377
- ## License
378
-
379
- TypeScript ESTree inherits from the the original TypeScript ESLint Parser license, as the majority of the work began there. It is licensed under a permissive BSD 2-clause license.
3
+ [![NPM Version](https://img.shields.io/npm/v/@typescript-eslint/typescript-estree.svg?style=flat-square)](https://www.npmjs.com/package/@typescript-eslint/utils)
4
+ [![NPM Downloads](https://img.shields.io/npm/dm/@typescript-eslint/typescript-estree.svg?style=flat-square)](https://www.npmjs.com/package/@typescript-eslint/utils)
380
5
 
381
6
  ## Contributing
382
7
 
383
- [See the contributing guide here](../../CONTRIBUTING.md)
8
+ 👉 See **https://typescript-eslint.io/architecture/typescript-estree** for documentation on this package.
9
+
10
+ > See https://typescript-eslint.io for general documentation on typescript-eslint, the tooling that allows you to run ESLint and Prettier on TypeScript code.
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Clears all of the internal caches.
3
+ * Generally you shouldn't need or want to use this.
4
+ * Examples of intended uses:
5
+ * - In tests to reset parser state to keep tests isolated.
6
+ * - In custom lint tooling that iteratively lints one project at a time to prevent OOMs.
7
+ */
8
+ export declare function clearCaches(): void;
9
+ export declare const clearProgramCache: typeof clearCaches;
10
+ //# sourceMappingURL=clear-caches.d.ts.map
@@ -0,0 +1,2 @@
1
+ export declare function describeFilePath(filePath: string, tsconfigRootDir: string): string;
2
+ //# sourceMappingURL=describeFilePath.d.ts.map
@@ -10,7 +10,6 @@ declare function clearWatchCaches(): void;
10
10
  * @param parseSettings Internal settings for parsing the file
11
11
  * @returns The programs corresponding to the supplied tsconfig paths
12
12
  */
13
- declare function getProgramsForProjects(parseSettings: ParseSettings): ts.Program[];
14
- declare function createWatchProgram(tsconfigPath: string, parseSettings: ParseSettings): ts.WatchOfConfigFile<ts.BuilderProgram>;
15
- export { clearWatchCaches, createWatchProgram, getProgramsForProjects };
16
- //# sourceMappingURL=createWatchProgram.d.ts.map
13
+ declare function getWatchProgramsForProjects(parseSettings: ParseSettings): ts.Program[];
14
+ export { clearWatchCaches, getWatchProgramsForProjects };
15
+ //# sourceMappingURL=getWatchProgramsForProjects.d.ts.map
@@ -11,7 +11,7 @@ interface ASTAndProgram {
11
11
  */
12
12
  declare const CORE_COMPILER_OPTIONS: ts.CompilerOptions;
13
13
  declare function createDefaultCompilerOptionsFromExtra(parseSettings: ParseSettings): ts.CompilerOptions;
14
- declare type CanonicalPath = string & {
14
+ type CanonicalPath = string & {
15
15
  __brand: unknown;
16
16
  };
17
17
  declare function getCanonicalFileName(filePath: string): CanonicalPath;
@@ -19,5 +19,11 @@ declare function ensureAbsolutePath(p: string, tsconfigRootDir: string): string;
19
19
  declare function canonicalDirname(p: CanonicalPath): CanonicalPath;
20
20
  declare function getAstFromProgram(currentProgram: Program, parseSettings: ParseSettings): ASTAndProgram | undefined;
21
21
  declare function getModuleResolver(moduleResolverPath: string): ModuleResolver;
22
- export { ASTAndProgram, CORE_COMPILER_OPTIONS, canonicalDirname, CanonicalPath, createDefaultCompilerOptionsFromExtra, ensureAbsolutePath, getCanonicalFileName, getAstFromProgram, getModuleResolver, };
22
+ /**
23
+ * Hash content for compare content.
24
+ * @param content hashed contend
25
+ * @returns hashed result
26
+ */
27
+ declare function createHash(content: string): string;
28
+ export { ASTAndProgram, CORE_COMPILER_OPTIONS, canonicalDirname, CanonicalPath, createDefaultCompilerOptionsFromExtra, createHash, ensureAbsolutePath, getCanonicalFileName, getAstFromProgram, getModuleResolver, };
23
29
  //# sourceMappingURL=shared.d.ts.map
@@ -1,12 +1,12 @@
1
- export { AST, parse, parseAndGenerateServices, parseWithNodeMaps, ParseAndGenerateServicesResult, ParseWithNodeMapsResult, clearProgramCache, } from './parser';
1
+ export { AST, parse, parseAndGenerateServices, parseWithNodeMaps, ParseAndGenerateServicesResult, ParseWithNodeMapsResult, } from './parser';
2
2
  export { ParserServices, TSESTreeOptions } from './parser-options';
3
3
  export { simpleTraverse } from './simple-traverse';
4
4
  export * from './ts-estree';
5
- export { clearWatchCaches as clearCaches } from './create-program/createWatchProgram';
6
5
  export { createProgramFromConfigFile as createProgram } from './create-program/useProvidedPrograms';
7
6
  export * from './create-program/getScriptKind';
8
7
  export { typescriptVersionIsAtLeast } from './version-check';
9
8
  export * from './getModifiers';
9
+ export * from './clear-caches';
10
10
  export { visitorKeys } from '@typescript-eslint/visitor-keys';
11
11
  export declare const version: string;
12
12
  //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,17 @@
1
+ import { CacheDurationSeconds } from '@typescript-eslint/types';
2
+ export declare const DEFAULT_TSCONFIG_CACHE_DURATION_SECONDS = 30;
3
+ export interface CacheLike<Key, Value> {
4
+ get(key: Key): Value | void;
5
+ set(key: Key, value: Value): this;
6
+ }
7
+ /**
8
+ * A map with key-level expiration.
9
+ */
10
+ export declare class ExpiringCache<TKey, TValue> implements CacheLike<TKey, TValue> {
11
+ private "ExpiringCache.#private";
12
+ constructor(cacheDurationSeconds: CacheDurationSeconds);
13
+ set(key: TKey, value: TValue): this;
14
+ get(key: TKey): TValue | undefined;
15
+ clear(): void;
16
+ }
17
+ //# sourceMappingURL=ExpiringCache.d.ts.map
@@ -1,4 +1,5 @@
1
1
  import { TSESTreeOptions } from '../parser-options';
2
2
  import { MutableParseSettings } from './index';
3
3
  export declare function createParseSettings(code: string, options?: Partial<TSESTreeOptions>): MutableParseSettings;
4
+ export declare function clearTSConfigMatchCache(): void;
4
5
  //# sourceMappingURL=createParseSettings.d.ts.map
@@ -0,0 +1,12 @@
1
+ import { ParseSettings } from '.';
2
+ /**
3
+ * Checks for a matching TSConfig to a file including its parent directories,
4
+ * permanently caching results under each directory it checks.
5
+ *
6
+ * @remarks
7
+ * We don't (yet!) have a way to attach file watchers on disk, but still need to
8
+ * cache file checks for rapid subsequent calls to fs.existsSync. See discussion
9
+ * in https://github.com/typescript-eslint/typescript-eslint/issues/101.
10
+ */
11
+ export declare function getProjectConfigFiles(parseSettings: Pick<ParseSettings, 'filePath' | 'tsconfigMatchCache' | 'tsconfigRootDir'>, project: string | string[] | true | undefined): string[] | undefined;
12
+ //# sourceMappingURL=getProjectConfigFiles.d.ts.map
@@ -1,7 +1,8 @@
1
1
  import * as ts from 'typescript';
2
2
  import { CanonicalPath } from '../create-program/shared';
3
3
  import { TSESTree } from '../ts-estree';
4
- declare type DebugModule = 'typescript-eslint' | 'eslint' | 'typescript';
4
+ import { CacheLike } from './ExpiringCache';
5
+ type DebugModule = 'typescript-eslint' | 'eslint' | 'typescript';
5
6
  /**
6
7
  * Internal settings used by the parser to run on a file.
7
8
  */
@@ -79,7 +80,7 @@ export interface MutableParseSettings {
79
80
  /**
80
81
  * Normalized paths to provided project paths.
81
82
  */
82
- projects: CanonicalPath[];
83
+ projects: readonly CanonicalPath[];
83
84
  /**
84
85
  * Whether to add the `range` property to AST nodes.
85
86
  */
@@ -92,11 +93,15 @@ export interface MutableParseSettings {
92
93
  * If the `tokens` parse option is enabled, retrieved tokens.
93
94
  */
94
95
  tokens: null | TSESTree.Token[];
96
+ /**
97
+ * Caches searches for TSConfigs from project directories.
98
+ */
99
+ tsconfigMatchCache: CacheLike<string, string>;
95
100
  /**
96
101
  * The absolute path to the root directory for all provided `project`s.
97
102
  */
98
103
  tsconfigRootDir: string;
99
104
  }
100
- export declare type ParseSettings = Readonly<MutableParseSettings>;
105
+ export type ParseSettings = Readonly<MutableParseSettings>;
101
106
  export {};
102
107
  //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,19 @@
1
+ import { CanonicalPath } from '../create-program/shared';
2
+ import { TSESTreeOptions } from '../parser-options';
3
+ export declare function clearGlobCache(): void;
4
+ /**
5
+ * Normalizes, sanitizes, resolves and filters the provided project paths
6
+ */
7
+ export declare function resolveProjectList(options: Readonly<{
8
+ cacheLifetime?: TSESTreeOptions['cacheLifetime'];
9
+ project: TSESTreeOptions['project'];
10
+ projectFolderIgnoreList: TSESTreeOptions['projectFolderIgnoreList'];
11
+ singleRun: boolean;
12
+ tsconfigRootDir: string;
13
+ }>): readonly CanonicalPath[];
14
+ /**
15
+ * Exported for testing purposes only
16
+ * @internal
17
+ */
18
+ export declare function clearGlobResolutionCache(): void;
19
+ //# sourceMappingURL=resolveProjectList.d.ts.map
@@ -1,4 +1,4 @@
1
- import { DebugLevel } from '@typescript-eslint/types';
1
+ import { CacheDurationSeconds, DebugLevel } from '@typescript-eslint/types';
2
2
  import * as ts from 'typescript';
3
3
  import { TSESTree, TSESTreeToTSNode, TSNode, TSToken } from './ts-estree';
4
4
  interface ParseOptions {
@@ -92,10 +92,11 @@ interface ParseAndGenerateServicesOptions extends ParseOptions {
92
92
  */
93
93
  preserveNodeMaps?: boolean;
94
94
  /**
95
- * Absolute (or relative to `tsconfigRootDir`) paths to the tsconfig(s).
95
+ * Absolute (or relative to `tsconfigRootDir`) paths to the tsconfig(s),
96
+ * or `true` to find the nearest tsconfig.json to the file.
96
97
  * If this is provided, type information will be returned.
97
98
  */
98
- project?: string | string[];
99
+ project?: string | string[] | true;
99
100
  /**
100
101
  * If you provide a glob (or globs) to the project option, you can use this option to ignore certain folders from
101
102
  * being matched by the globs.
@@ -137,9 +138,27 @@ interface ParseAndGenerateServicesOptions extends ParseOptions {
137
138
  * whether or not ESLint is being used as part of a single run.
138
139
  */
139
140
  allowAutomaticSingleRunInference?: boolean;
141
+ /**
142
+ * Granular control of the expiry lifetime of our internal caches.
143
+ * You can specify the number of seconds as an integer number, or the string
144
+ * 'Infinity' if you never want the cache to expire.
145
+ *
146
+ * By default cache entries will be evicted after 30 seconds, or will persist
147
+ * indefinitely if `allowAutomaticSingleRunInference = true` AND the parser
148
+ * infers that it is a single run.
149
+ */
150
+ cacheLifetime?: {
151
+ /**
152
+ * Glob resolution for `parserOptions.project` values.
153
+ */
154
+ glob?: CacheDurationSeconds;
155
+ };
156
+ /**
157
+ * Path to a file exporting a custom `ModuleResolver`.
158
+ */
140
159
  moduleResolver?: string;
141
160
  }
142
- export declare type TSESTreeOptions = ParseAndGenerateServicesOptions;
161
+ export type TSESTreeOptions = ParseAndGenerateServicesOptions;
143
162
  export interface ParserWeakMap<TKey, TValueBase> {
144
163
  get<TValue extends TValueBase>(key: TKey): TValue;
145
164
  has(key: unknown): boolean;
@@ -3,7 +3,7 @@ import { TSESTree } from './ts-estree';
3
3
  declare function clearProgramCache(): void;
4
4
  interface EmptyObject {
5
5
  }
6
- declare type AST<T extends TSESTreeOptions> = TSESTree.Program & (T['tokens'] extends true ? {
6
+ type AST<T extends TSESTreeOptions> = TSESTree.Program & (T['tokens'] extends true ? {
7
7
  tokens: TSESTree.Token[];
8
8
  } : EmptyObject) & (T['comment'] extends true ? {
9
9
  comments: TSESTree.Comment[];
@@ -1,5 +1,5 @@
1
1
  import { TSESTree } from './ts-estree';
2
- declare type SimpleTraverseOptions = {
2
+ type SimpleTraverseOptions = {
3
3
  enter: (node: TSESTree.Node, parent: TSESTree.Node | undefined) => void;
4
4
  } | {
5
5
  [key: string]: (node: TSESTree.Node, parent: TSESTree.Node | undefined) => void;
@@ -2,6 +2,7 @@ import { AST_NODE_TYPES, TSESTree } from '@typescript-eslint/types';
2
2
  import * as ts from 'typescript';
3
3
  import { TSNode } from './ts-nodes';
4
4
  export interface EstreeToTsNodeTypes {
5
+ [AST_NODE_TYPES.AccessorProperty]: ts.PropertyDeclaration;
5
6
  [AST_NODE_TYPES.ArrayExpression]: ts.ArrayLiteralExpression;
6
7
  [AST_NODE_TYPES.ArrayPattern]: ts.ArrayLiteralExpression | ts.ArrayBindingPattern;
7
8
  [AST_NODE_TYPES.ArrowFunctionExpression]: ts.ArrowFunction;
@@ -83,6 +84,7 @@ export interface EstreeToTsNodeTypes {
83
84
  [AST_NODE_TYPES.ThisExpression]: ts.ThisExpression | ts.KeywordTypeNode | ts.Identifier;
84
85
  [AST_NODE_TYPES.ThrowStatement]: ts.ThrowStatement;
85
86
  [AST_NODE_TYPES.TryStatement]: ts.TryStatement;
87
+ [AST_NODE_TYPES.TSAbstractAccessorProperty]: ts.PropertyDeclaration;
86
88
  [AST_NODE_TYPES.TSAbstractPropertyDefinition]: ts.PropertyDeclaration;
87
89
  [AST_NODE_TYPES.TSAbstractMethodDefinition]: ts.GetAccessorDeclaration | ts.SetAccessorDeclaration | ts.MethodDeclaration | ts.ConstructorDeclaration;
88
90
  [AST_NODE_TYPES.TSArrayType]: ts.ArrayTypeNode;
@@ -108,6 +110,7 @@ export interface EstreeToTsNodeTypes {
108
110
  [AST_NODE_TYPES.TSInterfaceHeritage]: ts.ExpressionWithTypeArguments;
109
111
  [AST_NODE_TYPES.TSIntersectionType]: ts.IntersectionTypeNode;
110
112
  [AST_NODE_TYPES.TSInstantiationExpression]: ts.ExpressionWithTypeArguments;
113
+ [AST_NODE_TYPES.TSSatisfiesExpression]: ts.SatisfiesExpression;
111
114
  [AST_NODE_TYPES.TSLiteralType]: ts.LiteralTypeNode;
112
115
  [AST_NODE_TYPES.TSMappedType]: ts.MappedTypeNode;
113
116
  [AST_NODE_TYPES.TSMethodSignature]: ts.MethodSignature | ts.GetAccessorDeclaration | ts.SetAccessorDeclaration;
@@ -171,5 +174,5 @@ export interface EstreeToTsNodeTypes {
171
174
  * Maps TSESTree AST Node type to the expected TypeScript AST Node type(s).
172
175
  * This mapping is based on the internal logic of the parser.
173
176
  */
174
- export declare type TSESTreeToTSNode<T extends TSESTree.Node = TSESTree.Node> = Extract<TSNode | ts.Token<ts.SyntaxKind.NewKeyword | ts.SyntaxKind.ImportKeyword>, EstreeToTsNodeTypes[T['type']]>;
177
+ export type TSESTreeToTSNode<T extends TSESTree.Node = TSESTree.Node> = Extract<TSNode | ts.Token<ts.SyntaxKind.NewKeyword | ts.SyntaxKind.ImportKeyword>, EstreeToTsNodeTypes[T['type']]>;
175
178
  //# sourceMappingURL=estree-to-ts-node-types.d.ts.map