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
@@ -0,0 +1,17 @@
1
+ import type { 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;
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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExpiringCache.d.ts","sourceRoot":"","sources":["../../src/parseSettings/ExpiringCache.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAErE,eAAO,MAAM,uCAAuC,KAAK,CAAC;AAG1D,MAAM,WAAW,SAAS,CAAC,GAAG,EAAE,KAAK;IACnC,GAAG,CAAC,GAAG,EAAE,GAAG,GAAG,KAAK,GAAG,IAAI,CAAC;IAC5B,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;CACnC;AAED;;GAEG;AACH,qBAAa,aAAa,CAAC,IAAI,EAAE,MAAM,CAAE,YAAW,SAAS,CAAC,IAAI,EAAE,MAAM,CAAC;;gBAW7D,oBAAoB,EAAE,oBAAoB;IAItD,GAAG,CAAC,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;IAYnC,GAAG,CAAC,GAAG,EAAE,IAAI,GAAG,MAAM,GAAG,SAAS;IAoBlC,KAAK,IAAI,IAAI;CAGd"}
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
3
+ if (kind === "m") throw new TypeError("Private method is not writable");
4
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
5
+ 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");
6
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
7
+ };
8
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
9
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
10
+ 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");
11
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
12
+ };
13
+ var _ExpiringCache_cacheDurationSeconds, _ExpiringCache_map;
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.ExpiringCache = exports.DEFAULT_TSCONFIG_CACHE_DURATION_SECONDS = void 0;
16
+ exports.DEFAULT_TSCONFIG_CACHE_DURATION_SECONDS = 30;
17
+ const ZERO_HR_TIME = [0, 0];
18
+ /**
19
+ * A map with key-level expiration.
20
+ */
21
+ class ExpiringCache {
22
+ constructor(cacheDurationSeconds) {
23
+ _ExpiringCache_cacheDurationSeconds.set(this, void 0);
24
+ _ExpiringCache_map.set(this, new Map());
25
+ __classPrivateFieldSet(this, _ExpiringCache_cacheDurationSeconds, cacheDurationSeconds, "f");
26
+ }
27
+ set(key, value) {
28
+ __classPrivateFieldGet(this, _ExpiringCache_map, "f").set(key, {
29
+ value,
30
+ lastSeen: __classPrivateFieldGet(this, _ExpiringCache_cacheDurationSeconds, "f") === 'Infinity'
31
+ ? // no need to waste time calculating the hrtime in infinity mode as there's no expiry
32
+ ZERO_HR_TIME
33
+ : process.hrtime(),
34
+ });
35
+ return this;
36
+ }
37
+ get(key) {
38
+ const entry = __classPrivateFieldGet(this, _ExpiringCache_map, "f").get(key);
39
+ if ((entry === null || entry === void 0 ? void 0 : entry.value) != null) {
40
+ if (__classPrivateFieldGet(this, _ExpiringCache_cacheDurationSeconds, "f") === 'Infinity') {
41
+ return entry.value;
42
+ }
43
+ const ageSeconds = process.hrtime(entry.lastSeen)[0];
44
+ if (ageSeconds < __classPrivateFieldGet(this, _ExpiringCache_cacheDurationSeconds, "f")) {
45
+ // cache hit woo!
46
+ return entry.value;
47
+ }
48
+ else {
49
+ // key has expired - clean it up to free up memory
50
+ __classPrivateFieldGet(this, _ExpiringCache_map, "f").delete(key);
51
+ }
52
+ }
53
+ // no hit :'(
54
+ return undefined;
55
+ }
56
+ clear() {
57
+ __classPrivateFieldGet(this, _ExpiringCache_map, "f").clear();
58
+ }
59
+ }
60
+ exports.ExpiringCache = ExpiringCache;
61
+ _ExpiringCache_cacheDurationSeconds = new WeakMap(), _ExpiringCache_map = new WeakMap();
62
+ //# sourceMappingURL=ExpiringCache.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExpiringCache.js","sourceRoot":"","sources":["../../src/parseSettings/ExpiringCache.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAEa,QAAA,uCAAuC,GAAG,EAAE,CAAC;AAC1D,MAAM,YAAY,GAAqB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAO9C;;GAEG;AACH,MAAa,aAAa;IAWxB,YAAY,oBAA0C;QAV7C,sDAA4C;QAE5C,6BAAO,IAAI,GAAG,EAMpB,EAAC;QAGF,uBAAA,IAAI,uCAAyB,oBAAoB,MAAA,CAAC;IACpD,CAAC;IAED,GAAG,CAAC,GAAS,EAAE,KAAa;QAC1B,uBAAA,IAAI,0BAAK,CAAC,GAAG,CAAC,GAAG,EAAE;YACjB,KAAK;YACL,QAAQ,EACN,uBAAA,IAAI,2CAAsB,KAAK,UAAU;gBACvC,CAAC,CAAC,qFAAqF;oBACrF,YAAY;gBACd,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE;SACvB,CAAC,CAAC;QACH,OAAO,IAAI,CAAC;IACd,CAAC;IAED,GAAG,CAAC,GAAS;QACX,MAAM,KAAK,GAAG,uBAAA,IAAI,0BAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QACjC,IAAI,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,KAAK,KAAI,IAAI,EAAE;YACxB,IAAI,uBAAA,IAAI,2CAAsB,KAAK,UAAU,EAAE;gBAC7C,OAAO,KAAK,CAAC,KAAK,CAAC;aACpB;YAED,MAAM,UAAU,GAAG,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;YACrD,IAAI,UAAU,GAAG,uBAAA,IAAI,2CAAsB,EAAE;gBAC3C,iBAAiB;gBACjB,OAAO,KAAK,CAAC,KAAK,CAAC;aACpB;iBAAM;gBACL,kDAAkD;gBAClD,uBAAA,IAAI,0BAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;aACvB;SACF;QACD,aAAa;QACb,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,KAAK;QACH,uBAAA,IAAI,0BAAK,CAAC,KAAK,EAAE,CAAC;IACpB,CAAC;CACF;AAlDD,sCAkDC"}
@@ -1,4 +1,5 @@
1
1
  import type { TSESTreeOptions } from '../parser-options';
2
2
  import type { 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
@@ -1 +1 @@
1
- {"version":3,"file":"createParseSettings.d.ts","sourceRoot":"","sources":["../../src/parseSettings/createParseSettings.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAQpD,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE,OAAO,CAAC,eAAe,CAAM,GACrC,oBAAoB,CAqGtB"}
1
+ {"version":3,"file":"createParseSettings.d.ts","sourceRoot":"","sources":["../../src/parseSettings/createParseSettings.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAMzD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAWpD,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE,OAAO,CAAC,eAAe,CAAM,GACrC,oBAAoB,CAkGtB;AAED,wBAAgB,uBAAuB,IAAI,IAAI,CAE9C"}
@@ -3,16 +3,19 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.createParseSettings = void 0;
6
+ exports.clearTSConfigMatchCache = exports.createParseSettings = void 0;
7
7
  const debug_1 = __importDefault(require("debug"));
8
- const globby_1 = require("globby");
9
- const is_glob_1 = __importDefault(require("is-glob"));
10
8
  const shared_1 = require("../create-program/shared");
9
+ const ExpiringCache_1 = require("./ExpiringCache");
10
+ const getProjectConfigFiles_1 = require("./getProjectConfigFiles");
11
11
  const inferSingleRun_1 = require("./inferSingleRun");
12
+ const resolveProjectList_1 = require("./resolveProjectList");
12
13
  const warnAboutTSVersion_1 = require("./warnAboutTSVersion");
13
14
  const log = (0, debug_1.default)('typescript-eslint:typescript-estree:parser:parseSettings:createParseSettings');
15
+ let TSCONFIG_MATCH_CACHE;
14
16
  function createParseSettings(code, options = {}) {
15
- var _a, _b;
17
+ var _a, _b, _c;
18
+ const singleRun = (0, inferSingleRun_1.inferSingleRun)(options);
16
19
  const tsconfigRootDir = typeof options.tsconfigRootDir === 'string'
17
20
  ? options.tsconfigRootDir
18
21
  : process.cwd();
@@ -48,8 +51,11 @@ function createParseSettings(code, options = {}) {
48
51
  programs: Array.isArray(options.programs) ? options.programs : null,
49
52
  projects: [],
50
53
  range: options.range === true,
51
- singleRun: (0, inferSingleRun_1.inferSingleRun)(options),
54
+ singleRun,
52
55
  tokens: options.tokens === true ? [] : null,
56
+ tsconfigMatchCache: (TSCONFIG_MATCH_CACHE !== null && TSCONFIG_MATCH_CACHE !== void 0 ? TSCONFIG_MATCH_CACHE : (TSCONFIG_MATCH_CACHE = new ExpiringCache_1.ExpiringCache(singleRun
57
+ ? 'Infinity'
58
+ : (_c = (_b = options.cacheLifetime) === null || _b === void 0 ? void 0 : _b.glob) !== null && _c !== void 0 ? _c : ExpiringCache_1.DEFAULT_TSCONFIG_CACHE_DURATION_SECONDS))),
53
59
  tsconfigRootDir,
54
60
  };
55
61
  // debug doesn't support multiple `enable` calls, so have to do it all at once
@@ -74,21 +80,22 @@ function createParseSettings(code, options = {}) {
74
80
  }
75
81
  // Providing a program overrides project resolution
76
82
  if (!parseSettings.programs) {
77
- const projectFolderIgnoreList = ((_b = options.projectFolderIgnoreList) !== null && _b !== void 0 ? _b : ['**/node_modules/**'])
78
- .reduce((acc, folder) => {
79
- if (typeof folder === 'string') {
80
- acc.push(folder);
81
- }
82
- return acc;
83
- }, [])
84
- // prefix with a ! for not match glob
85
- .map(folder => (folder.startsWith('!') ? folder : `!${folder}`));
86
- parseSettings.projects = prepareAndTransformProjects(tsconfigRootDir, options.project, projectFolderIgnoreList);
83
+ parseSettings.projects = (0, resolveProjectList_1.resolveProjectList)({
84
+ cacheLifetime: options.cacheLifetime,
85
+ project: (0, getProjectConfigFiles_1.getProjectConfigFiles)(parseSettings, options.project),
86
+ projectFolderIgnoreList: options.projectFolderIgnoreList,
87
+ singleRun: parseSettings.singleRun,
88
+ tsconfigRootDir: tsconfigRootDir,
89
+ });
87
90
  }
88
91
  (0, warnAboutTSVersion_1.warnAboutTSVersion)(parseSettings);
89
92
  return parseSettings;
90
93
  }
91
94
  exports.createParseSettings = createParseSettings;
95
+ function clearTSConfigMatchCache() {
96
+ TSCONFIG_MATCH_CACHE === null || TSCONFIG_MATCH_CACHE === void 0 ? void 0 : TSCONFIG_MATCH_CACHE.clear();
97
+ }
98
+ exports.clearTSConfigMatchCache = clearTSConfigMatchCache;
92
99
  /**
93
100
  * Ensures source code is a string.
94
101
  */
@@ -109,37 +116,4 @@ function enforceString(code) {
109
116
  function getFileName(jsx) {
110
117
  return jsx ? 'estree.tsx' : 'estree.ts';
111
118
  }
112
- function getTsconfigPath(tsconfigPath, tsconfigRootDir) {
113
- return (0, shared_1.getCanonicalFileName)((0, shared_1.ensureAbsolutePath)(tsconfigPath, tsconfigRootDir));
114
- }
115
- /**
116
- * Normalizes, sanitizes, resolves and filters the provided project paths
117
- */
118
- function prepareAndTransformProjects(tsconfigRootDir, projectsInput, ignoreListInput) {
119
- const sanitizedProjects = [];
120
- // Normalize and sanitize the project paths
121
- if (typeof projectsInput === 'string') {
122
- sanitizedProjects.push(projectsInput);
123
- }
124
- else if (Array.isArray(projectsInput)) {
125
- for (const project of projectsInput) {
126
- if (typeof project === 'string') {
127
- sanitizedProjects.push(project);
128
- }
129
- }
130
- }
131
- if (sanitizedProjects.length === 0) {
132
- return [];
133
- }
134
- // Transform glob patterns into paths
135
- const nonGlobProjects = sanitizedProjects.filter(project => !(0, is_glob_1.default)(project));
136
- const globProjects = sanitizedProjects.filter(project => (0, is_glob_1.default)(project));
137
- const uniqueCanonicalProjectPaths = new Set(nonGlobProjects
138
- .concat((0, globby_1.sync)([...globProjects, ...ignoreListInput], {
139
- cwd: tsconfigRootDir,
140
- }))
141
- .map(project => getTsconfigPath(project, tsconfigRootDir)));
142
- log('parserOptions.project (excluding ignored) matched projects: %s', uniqueCanonicalProjectPaths);
143
- return Array.from(uniqueCanonicalProjectPaths);
144
- }
145
119
  //# sourceMappingURL=createParseSettings.js.map
@@ -1 +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AQ,CAAC,MAAM,EAAE;YAC5B,MAAM,IAAI,KAAK,CACb,qPAAqP,CACtP,CAAC;SACH;QACD,GAAG,CACD,gFAAgF,CACjF,CAAC;KACH;IAED,mDAAmD;IACnD,IAAI,CAAC,aAAa,CAAC,QAAQ,EAAE;QAC3B,aAAa,CAAC,QAAQ,GAAG,IAAA,uCAAkB,EAAC;YAC1C,aAAa,EAAE,OAAO,CAAC,aAAa;YACpC,OAAO,EAAE,IAAA,6CAAqB,EAAC,aAAa,EAAE,OAAO,CAAC,OAAO,CAAC;YAC9D,uBAAuB,EAAE,OAAO,CAAC,uBAAuB;YACxD,SAAS,EAAE,aAAa,CAAC,SAAS;YAClC,eAAe,EAAE,eAAe;SACjC,CAAC,CAAC;KACJ;IAED,IAAA,uCAAkB,EAAC,aAAa,CAAC,CAAC;IAElC,OAAO,aAAa,CAAC;AACvB,CAAC;AArGD,kDAqGC;AAED,SAAgB,uBAAuB;IACrC,oBAAoB,aAApB,oBAAoB,uBAApB,oBAAoB,CAAE,KAAK,EAAE,CAAC;AAChC,CAAC;AAFD,0DAEC;AAED;;GAEG;AACH,SAAS,aAAa,CAAC,IAAa;IAClC,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;QAC5B,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC;KACrB;IAED,OAAO,IAAI,CAAC;AACd,CAAC;AAED;;;;;;;GAOG;AACH,SAAS,WAAW,CAAC,GAAa;IAChC,OAAO,GAAG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,WAAW,CAAC;AAC1C,CAAC"}
@@ -0,0 +1,12 @@
1
+ import type { 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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getProjectConfigFiles.d.ts","sourceRoot":"","sources":["../../src/parseSettings/getProjectConfigFiles.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,GAAG,CAAC;AAIvC;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,CACnC,aAAa,EAAE,IAAI,CACjB,aAAa,EACb,UAAU,GAAG,oBAAoB,GAAG,iBAAiB,CACtD,EACD,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,IAAI,GAAG,SAAS,GAC5C,MAAM,EAAE,GAAG,SAAS,CAmCtB"}
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __importDefault = (this && this.__importDefault) || function (mod) {
26
+ return (mod && mod.__esModule) ? mod : { "default": mod };
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.getProjectConfigFiles = void 0;
30
+ const debug_1 = __importDefault(require("debug"));
31
+ const fs = __importStar(require("fs"));
32
+ const path = __importStar(require("path"));
33
+ const log = (0, debug_1.default)('typescript-eslint:typescript-estree:getProjectConfigFiles');
34
+ /**
35
+ * Checks for a matching TSConfig to a file including its parent directories,
36
+ * permanently caching results under each directory it checks.
37
+ *
38
+ * @remarks
39
+ * We don't (yet!) have a way to attach file watchers on disk, but still need to
40
+ * cache file checks for rapid subsequent calls to fs.existsSync. See discussion
41
+ * in https://github.com/typescript-eslint/typescript-eslint/issues/101.
42
+ */
43
+ function getProjectConfigFiles(parseSettings, project) {
44
+ var _a;
45
+ if (project !== true) {
46
+ return project === undefined || Array.isArray(project)
47
+ ? project
48
+ : [project];
49
+ }
50
+ log('Looking for tsconfig.json at or above file: %s', parseSettings.filePath);
51
+ let directory = path.dirname(parseSettings.filePath);
52
+ const checkedDirectories = [directory];
53
+ do {
54
+ log('Checking tsconfig.json path: %s', directory);
55
+ const tsconfigPath = path.join(directory, 'tsconfig.json');
56
+ const cached = (_a = parseSettings.tsconfigMatchCache.get(directory)) !== null && _a !== void 0 ? _a : (fs.existsSync(tsconfigPath) && tsconfigPath);
57
+ if (cached) {
58
+ for (const directory of checkedDirectories) {
59
+ parseSettings.tsconfigMatchCache.set(directory, cached);
60
+ }
61
+ return [cached];
62
+ }
63
+ directory = path.dirname(directory);
64
+ checkedDirectories.push(directory);
65
+ } while (directory.length > 1 &&
66
+ directory.length >= parseSettings.tsconfigRootDir.length);
67
+ throw new Error(`project was set to \`true\` but couldn't find any tsconfig.json relative to '${parseSettings.filePath}' within '${parseSettings.tsconfigRootDir}'.`);
68
+ }
69
+ exports.getProjectConfigFiles = getProjectConfigFiles;
70
+ //# sourceMappingURL=getProjectConfigFiles.js.map
@@ -0,0 +1 @@
1
+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CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;KACpC,QACC,SAAS,CAAC,MAAM,GAAG,CAAC;QACpB,SAAS,CAAC,MAAM,IAAI,aAAa,CAAC,eAAe,CAAC,MAAM,EACxD;IAEF,MAAM,IAAI,KAAK,CACb,gFAAgF,aAAa,CAAC,QAAQ,aAAa,aAAa,CAAC,eAAe,IAAI,CACrJ,CAAC;AACJ,CAAC;AAzCD,sDAyCC"}
@@ -1,7 +1,8 @@
1
1
  import type * as ts from 'typescript';
2
2
  import type { CanonicalPath } from '../create-program/shared';
3
3
  import type { TSESTree } from '../ts-estree';
4
- declare type DebugModule = 'typescript-eslint' | 'eslint' | 'typescript';
4
+ import type { 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
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/parseSettings/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,EAAE,MAAM,YAAY,CAAC;AAEtC,OAAO,KAAK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IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B;;OAEG;IACH,QAAQ,EAAE,IAAI,GAAG,QAAQ,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC;IAEtC;;OAEG;IACH,QAAQ,EAAE,SAAS,aAAa,EAAE,CAAC;IAEnC;;OAEG;IACH,KAAK,EAAE,OAAO,CAAC;IAEf;;OAEG;IACH,SAAS,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,MAAM,EAAE,IAAI,GAAG,QAAQ,CAAC,KAAK,EAAE,CAAC;IAEhC;;OAEG;IACH,kBAAkB,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAE9C;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,MAAM,aAAa,GAAG,QAAQ,CAAC,oBAAoB,CAAC,CAAC"}
@@ -0,0 +1,19 @@
1
+ import type { CanonicalPath } from '../create-program/shared';
2
+ import type { 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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolveProjectList.d.ts","sourceRoot":"","sources":["../../src/parseSettings/resolveProjectList.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAM9D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAazD,wBAAgB,cAAc,IAAI,IAAI,CAErC;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,QAAQ,CAAC;IAChB,aAAa,CAAC,EAAE,eAAe,CAAC,eAAe,CAAC,CAAC;IACjD,OAAO,EAAE,eAAe,CAAC,SAAS,CAAC,CAAC;IACpC,uBAAuB,EAAE,eAAe,CAAC,yBAAyB,CAAC,CAAC;IACpE,SAAS,EAAE,OAAO,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;CACzB,CAAC,GACD,SAAS,aAAa,EAAE,CAiF1B;AAuBD;;;GAGG;AACH,wBAAgB,wBAAwB,IAAI,IAAI,CAG/C"}
@@ -0,0 +1,103 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.clearGlobResolutionCache = exports.resolveProjectList = exports.clearGlobCache = void 0;
7
+ const debug_1 = __importDefault(require("debug"));
8
+ const globby_1 = require("globby");
9
+ const is_glob_1 = __importDefault(require("is-glob"));
10
+ const shared_1 = require("../create-program/shared");
11
+ const ExpiringCache_1 = require("./ExpiringCache");
12
+ const log = (0, debug_1.default)('typescript-eslint:typescript-estree:parser:parseSettings:resolveProjectList');
13
+ let RESOLUTION_CACHE = null;
14
+ function clearGlobCache() {
15
+ RESOLUTION_CACHE === null || RESOLUTION_CACHE === void 0 ? void 0 : RESOLUTION_CACHE.clear();
16
+ }
17
+ exports.clearGlobCache = clearGlobCache;
18
+ /**
19
+ * Normalizes, sanitizes, resolves and filters the provided project paths
20
+ */
21
+ function resolveProjectList(options) {
22
+ var _a, _b, _c;
23
+ const sanitizedProjects = [];
24
+ // Normalize and sanitize the project paths
25
+ if (typeof options.project === 'string') {
26
+ sanitizedProjects.push(options.project);
27
+ }
28
+ else if (Array.isArray(options.project)) {
29
+ for (const project of options.project) {
30
+ if (typeof project === 'string') {
31
+ sanitizedProjects.push(project);
32
+ }
33
+ }
34
+ }
35
+ if (sanitizedProjects.length === 0) {
36
+ return [];
37
+ }
38
+ const projectFolderIgnoreList = ((_a = options.projectFolderIgnoreList) !== null && _a !== void 0 ? _a : ['**/node_modules/**'])
39
+ .reduce((acc, folder) => {
40
+ if (typeof folder === 'string') {
41
+ acc.push(folder);
42
+ }
43
+ return acc;
44
+ }, [])
45
+ // prefix with a ! for not match glob
46
+ .map(folder => (folder.startsWith('!') ? folder : `!${folder}`));
47
+ const cacheKey = getHash({
48
+ project: sanitizedProjects,
49
+ projectFolderIgnoreList,
50
+ tsconfigRootDir: options.tsconfigRootDir,
51
+ });
52
+ if (RESOLUTION_CACHE == null) {
53
+ // note - we initialize the global cache based on the first config we encounter.
54
+ // this does mean that you can't have multiple lifetimes set per folder
55
+ // I doubt that anyone will really bother reconfiguring this, let alone
56
+ // try to do complicated setups, so we'll deal with this later if ever.
57
+ RESOLUTION_CACHE = new ExpiringCache_1.ExpiringCache(options.singleRun
58
+ ? 'Infinity'
59
+ : (_c = (_b = options.cacheLifetime) === null || _b === void 0 ? void 0 : _b.glob) !== null && _c !== void 0 ? _c : ExpiringCache_1.DEFAULT_TSCONFIG_CACHE_DURATION_SECONDS);
60
+ }
61
+ else {
62
+ const cached = RESOLUTION_CACHE.get(cacheKey);
63
+ if (cached) {
64
+ return cached;
65
+ }
66
+ }
67
+ // Transform glob patterns into paths
68
+ const nonGlobProjects = sanitizedProjects.filter(project => !(0, is_glob_1.default)(project));
69
+ const globProjects = sanitizedProjects.filter(project => (0, is_glob_1.default)(project));
70
+ const uniqueCanonicalProjectPaths = new Set(nonGlobProjects
71
+ .concat(globProjects.length === 0
72
+ ? []
73
+ : (0, globby_1.sync)([...globProjects, ...projectFolderIgnoreList], {
74
+ cwd: options.tsconfigRootDir,
75
+ }))
76
+ .map(project => (0, shared_1.getCanonicalFileName)((0, shared_1.ensureAbsolutePath)(project, options.tsconfigRootDir))));
77
+ log('parserOptions.project (excluding ignored) matched projects: %s', uniqueCanonicalProjectPaths);
78
+ const returnValue = Array.from(uniqueCanonicalProjectPaths);
79
+ RESOLUTION_CACHE.set(cacheKey, returnValue);
80
+ return returnValue;
81
+ }
82
+ exports.resolveProjectList = resolveProjectList;
83
+ function getHash({ project, projectFolderIgnoreList, tsconfigRootDir, }) {
84
+ // create a stable representation of the config
85
+ const hashObject = {
86
+ tsconfigRootDir,
87
+ // the project order does matter and can impact the resolved globs
88
+ project,
89
+ // the ignore order won't doesn't ever matter
90
+ projectFolderIgnoreList: [...projectFolderIgnoreList].sort(),
91
+ };
92
+ return (0, shared_1.createHash)(JSON.stringify(hashObject));
93
+ }
94
+ /**
95
+ * Exported for testing purposes only
96
+ * @internal
97
+ */
98
+ function clearGlobResolutionCache() {
99
+ RESOLUTION_CACHE === null || RESOLUTION_CACHE === void 0 ? void 0 : RESOLUTION_CACHE.clear();
100
+ RESOLUTION_CACHE = null;
101
+ }
102
+ exports.clearGlobResolutionCache = clearGlobResolutionCache;
103
+ //# sourceMappingURL=resolveProjectList.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolveProjectList.js","sourceRoot":"","sources":["../../src/parseSettings/resolveProjectList.ts"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,mCAA0C;AAC1C,sDAA6B;AAG7B,qDAIkC;AAElC,mDAGyB;AAEzB,MAAM,GAAG,GAAG,IAAA,eAAK,EACf,6EAA6E,CAC9E,CAAC;AAEF,IAAI,gBAAgB,GAClB,IAAI,CAAC;AAEP,SAAgB,cAAc;IAC5B,gBAAgB,aAAhB,gBAAgB,uBAAhB,gBAAgB,CAAE,KAAK,EAAE,CAAC;AAC5B,CAAC;AAFD,wCAEC;AAED;;GAEG;AACH,SAAgB,kBAAkB,CAChC,OAME;;IAEF,MAAM,iBAAiB,GAAa,EAAE,CAAC;IAEvC,2CAA2C;IAC3C,IAAI,OAAO,OAAO,CAAC,OAAO,KAAK,QAAQ,EAAE;QACvC,iBAAiB,CAAC,IAAI,CAAC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C,CAAC,IAAI,EAAE;KAC7D,CAAC;IAEF,OAAO,IAAA,mBAAU,EAAC,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC;AAChD,CAAC;AAED;;;GAGG;AACH,SAAgB,wBAAwB;IACtC,gBAAgB,aAAhB,gBAAgB,uBAAhB,gBAAgB,CAAE,KAAK,EAAE,CAAC;IAC1B,gBAAgB,GAAG,IAAI,CAAC;AAC1B,CAAC;AAHD,4DAGC"}
@@ -30,15 +30,15 @@ exports.warnAboutTSVersion = void 0;
30
30
  const semver_1 = __importDefault(require("semver"));
31
31
  const ts = __importStar(require("typescript"));
32
32
  /**
33
- * This needs to be kept in sync with the top-level README.md in the
34
- * typescript-eslint monorepo
33
+ * This needs to be kept in sync with /docs/maintenance/Versioning.md
34
+ * in the typescript-eslint monorepo
35
35
  */
36
- const SUPPORTED_TYPESCRIPT_VERSIONS = '>=3.3.1 <4.9.0';
36
+ const SUPPORTED_TYPESCRIPT_VERSIONS = '>=3.3.1 <5.1.0';
37
37
  /*
38
38
  * The semver package will ignore prerelease ranges, and we don't want to explicitly document every one
39
39
  * List them all separately here, so we can automatically create the full string
40
40
  */
41
- const SUPPORTED_PRERELEASE_RANGES = [];
41
+ const SUPPORTED_PRERELEASE_RANGES = ['5.0.1-rc'];
42
42
  const ACTIVE_TYPESCRIPT_VERSION = ts.version;
43
43
  const isRunningSupportedTypeScriptVersion = semver_1.default.satisfies(ACTIVE_TYPESCRIPT_VERSION, [SUPPORTED_TYPESCRIPT_VERSIONS]
44
44
  .concat(SUPPORTED_PRERELEASE_RANGES)
@@ -1 +1 @@
1
- {"version":3,"file":"warnAboutTSVersion.js","sourceRoot":"","sources":["../../src/parseSettings/warnAboutTSVersion.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAA4B;AAC5B,+CAAiC;AAGjC;;;GAGG;AACH,MAAM,6BAA6B,GAAG,gBAAgB,CAAC;AAEvD;;;GAGG;AACH,MAAM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,GAAG,gBAAM,CAAC,SAAS,CAC1D,yBAAyB,EACzB,CAAC,6BAA6B,CAAC;KAC5B,MAAM,CAAC,2BAA2B,CAAC;KACnC,IAAI,CAAC,MAAM,CAAC,CAChB,CAAC;AAEF,IAAI,oBAAoB,GAAG,KAAK,CAAC;AAEjC,SAAgB,kBAAkB,CAAC,aAA4B;;IAC7D,IAAI,CAAC,mCAAmC,IAAI,CAAC,oBAAoB,EAAE;QACjE,MAAM,KAAK,GACT,OAAO,OAAO,KAAK,WAAW,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAA,OAAO,CAAC,MAAM,0CAAE,KAAK,CAAC;QACjE,IAAI,KAAK,EAAE;YACT,MAAM,MAAM,GAAG,eAAe,CAAC;YAC/B,MAAM,cAAc,GAAG;gBACrB,MAAM;gBACN,uIAAuI;gBACvI,uDAAuD;gBACvD,kCAAkC,6BAA6B,EAAE;gBACjE,4BAA4B,yBAAyB,EAAE;gBACvD,6EAA6E;gBAC7E,MAAM;aACP,CAAC;YACF,aAAa,CAAC,GAAG,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;SAChD;QACD,oBAAoB,GAAG,IAAI,CAAC;KAC7B;AACH,CAAC;AAnBD,gDAmBC"}
@@ -1,4 +1,4 @@
1
- import type { DebugLevel } from '@typescript-eslint/types';
1
+ import type { CacheDurationSeconds, DebugLevel } from '@typescript-eslint/types';
2
2
  import type * as ts from 'typescript';
3
3
  import type { 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;
@@ -1 +1 @@
1
- {"version":3,"file":"parser-options.d.ts","sourceRoot":"","sources":["../src/parser-options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,KAAK,KAAK,EAAE,MAAM,YAAY,CAAC;AAEtC,OAAO,KAAK,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAM/E,UAAU,YAAY;IACpB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;;;;;;;OASG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IAExB;;;OAGG;IACH,qBAAqB,CAAC,EAAE,OAA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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 +1 @@
1
- {"version":3,"file":"parser.d.ts","sourceRoot":"","sources":["../src/parser.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAIxE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAU5C,iBAAS,iBAAiB,IAAI,IAAI,CAEjC;AAuBD,UAAU,WAAW;CAAG;AACxB,aAAK,GAAG,CAAC,CAAC,SAAS,eAAe,IAAI,QAAQ,CAAC,OAAO,GACpD,CAAC,CAAC,CAAC,QAAQ,CAAC,SAAS,IAAI,GAAG;IAAE,MAAM,EAAE,QAAQ,CAAC,KAAK,EAAE,CAAA;CAAE,GAAG,WAAW,CAAC,GACvE,CAAC,CAAC,CAAC,SAAS,CAAC,SAAS,IAAI,GAAG;IAAE,QAAQ,EAAE,QAAQ,CAAC,OAAO,EAAE,CAAA;CAAE,GAAG,WAAW,CAAC,CAAC;AAE/E,UAAU,8BAA8B,CAAC,CAAC,SAAS,eAAe;IAChE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC;IACZ,QAAQ,EAAE,cAAc,CAAC;CAC1B;AACD,UAAU,uBAAuB,CAAC,CAAC,SAAS,eAAe;IACzD,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC;IACZ,qBAAqB,EAAE,cAAc,CAAC,uBAAuB,CAAC,CAAC;IAC/D,qBAAqB,EAAE,cAAc,CAAC,uBAAuB,CAAC,CAAC;CAChE;AAED,iBAAS,KAAK,CAAC,CAAC,SAAS,eAAe,GAAG,eAAe,EACxD,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAA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