xo 0.52.4 → 0.53.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 (354) hide show
  1. package/cli.js +1 -0
  2. package/node_modules/@types/semver/LICENSE +21 -0
  3. package/node_modules/@types/semver/README.md +16 -0
  4. package/node_modules/@types/semver/classes/comparator.d.ts +17 -0
  5. package/node_modules/@types/semver/classes/range.d.ts +21 -0
  6. package/node_modules/@types/semver/classes/semver.d.ts +62 -0
  7. package/node_modules/@types/semver/functions/clean.d.ts +8 -0
  8. package/node_modules/@types/semver/functions/cmp.d.ts +16 -0
  9. package/node_modules/@types/semver/functions/coerce.d.ts +12 -0
  10. package/node_modules/@types/semver/functions/compare-build.d.ts +21 -0
  11. package/node_modules/@types/semver/functions/compare-loose.d.ts +5 -0
  12. package/node_modules/@types/semver/functions/compare.d.ts +20 -0
  13. package/node_modules/@types/semver/functions/diff.d.ts +9 -0
  14. package/node_modules/@types/semver/functions/eq.d.ts +9 -0
  15. package/node_modules/@types/semver/functions/gt.d.ts +9 -0
  16. package/node_modules/@types/semver/functions/gte.d.ts +9 -0
  17. package/node_modules/@types/semver/functions/inc.d.ts +15 -0
  18. package/node_modules/@types/semver/functions/lt.d.ts +9 -0
  19. package/node_modules/@types/semver/functions/lte.d.ts +8 -0
  20. package/node_modules/@types/semver/functions/major.d.ts +9 -0
  21. package/node_modules/@types/semver/functions/minor.d.ts +9 -0
  22. package/node_modules/@types/semver/functions/neq.d.ts +9 -0
  23. package/node_modules/@types/semver/functions/parse.d.ts +12 -0
  24. package/node_modules/@types/semver/functions/patch.d.ts +9 -0
  25. package/node_modules/@types/semver/functions/prerelease.d.ts +12 -0
  26. package/node_modules/@types/semver/functions/rcompare.d.ts +15 -0
  27. package/node_modules/@types/semver/functions/rsort.d.ts +9 -0
  28. package/node_modules/@types/semver/functions/satisfies.d.ts +14 -0
  29. package/node_modules/@types/semver/functions/sort.d.ts +9 -0
  30. package/node_modules/@types/semver/functions/valid.d.ts +11 -0
  31. package/node_modules/@types/semver/index.d.ts +136 -0
  32. package/node_modules/@types/semver/internals/identifiers.d.ts +13 -0
  33. package/node_modules/@types/semver/package.json +50 -0
  34. package/node_modules/@types/semver/preload.d.ts +2 -0
  35. package/node_modules/@types/semver/ranges/gtr.d.ts +14 -0
  36. package/node_modules/@types/semver/ranges/intersects.d.ts +13 -0
  37. package/node_modules/@types/semver/ranges/ltr.d.ts +14 -0
  38. package/node_modules/@types/semver/ranges/max-satisfying.d.ts +14 -0
  39. package/node_modules/@types/semver/ranges/min-satisfying.d.ts +14 -0
  40. package/node_modules/@types/semver/ranges/min-version.d.ts +10 -0
  41. package/node_modules/@types/semver/ranges/outside.d.ts +15 -0
  42. package/node_modules/@types/semver/ranges/simplify.d.ts +14 -0
  43. package/node_modules/@types/semver/ranges/subset.d.ts +9 -0
  44. package/node_modules/@types/semver/ranges/to-comparators.d.ts +9 -0
  45. package/node_modules/@types/semver/ranges/valid.d.ts +12 -0
  46. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/all.js +2 -1
  47. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/all.js.map +1 -1
  48. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/strict.js +1 -0
  49. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/strict.js.map +1 -1
  50. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/adjacent-overload-signatures.js +1 -1
  51. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/adjacent-overload-signatures.js.map +1 -1
  52. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/array-type.js +1 -1
  53. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/array-type.js.map +1 -1
  54. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-ts-comment.js +1 -1
  55. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-ts-comment.js.map +1 -1
  56. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/comma-spacing.js +1 -1
  57. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/comma-spacing.js.map +1 -1
  58. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-indexed-object-style.js +1 -1
  59. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-indexed-object-style.js.map +1 -1
  60. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-imports.js +99 -24
  61. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-imports.js.map +1 -1
  62. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/index.js +4 -0
  63. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/index.js.map +1 -1
  64. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-delimiter-style.js +2 -2
  65. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-delimiter-style.js.map +1 -1
  66. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-ordering.js +29 -10
  67. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-ordering.js.map +1 -1
  68. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/enums.js +4 -0
  69. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/enums.js.map +1 -1
  70. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/schema.js +19 -2
  71. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/schema.js.map +1 -1
  72. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention.js +29 -0
  73. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention.js.map +1 -1
  74. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-base-to-string.js +1 -1
  75. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-base-to-string.js.map +1 -1
  76. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-non-null-assertion.js +1 -1
  77. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-non-null-assertion.js.map +1 -1
  78. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-parens.js +14 -2
  79. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-parens.js.map +1 -1
  80. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-invalid-void-type.js +11 -5
  81. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-invalid-void-type.js.map +1 -1
  82. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-promises.js +51 -11
  83. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-promises.js.map +1 -1
  84. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-namespace.js +2 -2
  85. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-namespace.js.map +1 -1
  86. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-shadow.js +1 -2
  87. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-shadow.js.map +1 -1
  88. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-condition.js +4 -3
  89. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-condition.js.map +1 -1
  90. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-declaration-merging.js +78 -0
  91. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-declaration-merging.js.map +1 -0
  92. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-nullish-coalescing.js +0 -3
  93. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-nullish-coalescing.js.map +1 -1
  94. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain.js +167 -68
  95. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain.js.map +1 -1
  96. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/promise-function-async.js +2 -1
  97. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/promise-function-async.js.map +1 -1
  98. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-plus-operands.js +1 -1
  99. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-plus-operands.js.map +1 -1
  100. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-constituents.js +245 -0
  101. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-constituents.js.map +1 -0
  102. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-union-intersection-members.js +3 -0
  103. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-union-intersection-members.js.map +1 -1
  104. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/TEMPLATE.md +1 -1
  105. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/adjacent-overload-signatures.md +5 -5
  106. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/array-type.md +4 -6
  107. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/await-thenable.md +5 -4
  108. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/ban-ts-comment.md +3 -4
  109. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/ban-tslint-comment.md +2 -2
  110. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/ban-types.md +2 -2
  111. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/brace-style.md +1 -1
  112. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/class-literal-property-style.md +4 -4
  113. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/comma-dangle.md +1 -1
  114. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/comma-spacing.md +1 -1
  115. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-generic-constructors.md +3 -3
  116. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-indexed-object-style.md +1 -3
  117. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-type-assertions.md +12 -5
  118. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-type-definitions.md +4 -1
  119. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-type-exports.md +7 -13
  120. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-type-imports.md +47 -6
  121. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/default-param-last.md +1 -1
  122. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/dot-notation.md +1 -1
  123. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/explicit-function-return-type.md +7 -6
  124. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/explicit-member-accessibility.md +10 -6
  125. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/explicit-module-boundary-types.md +3 -3
  126. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/func-call-spacing.md +1 -1
  127. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/indent.md +1 -1
  128. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/init-declarations.md +1 -1
  129. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/keyword-spacing.md +1 -1
  130. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/lines-between-class-members.md +1 -1
  131. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/member-delimiter-style.md +7 -60
  132. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/member-ordering.md +19 -6
  133. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/method-signature-style.md +6 -6
  134. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/naming-convention.md +29 -30
  135. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-array-constructor.md +1 -1
  136. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-base-to-string.md +12 -11
  137. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-confusing-non-null-assertion.md +4 -2
  138. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-confusing-void-expression.md +4 -5
  139. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-dupe-class-members.md +1 -1
  140. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-duplicate-enum-values.md +5 -2
  141. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-dynamic-delete.md +4 -4
  142. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-empty-function.md +1 -1
  143. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-empty-interface.md +5 -5
  144. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-explicit-any.md +13 -8
  145. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-extra-non-null-assertion.md +4 -3
  146. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-extra-parens.md +1 -1
  147. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-extra-semi.md +1 -1
  148. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-extraneous-class.md +4 -6
  149. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-floating-promises.md +2 -4
  150. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-for-in-array.md +26 -18
  151. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-implicit-any-catch.md +1 -3
  152. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-implied-eval.md +1 -3
  153. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-inferrable-types.md +12 -43
  154. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-invalid-this.md +1 -1
  155. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-invalid-void-type.md +6 -13
  156. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-loop-func.md +1 -1
  157. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-loss-of-precision.md +1 -1
  158. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-magic-numbers.md +1 -1
  159. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-meaningless-void-operator.md +8 -21
  160. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-misused-new.md +13 -6
  161. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-misused-promises.md +53 -91
  162. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-namespace.md +6 -7
  163. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-non-null-asserted-nullish-coalescing.md +3 -13
  164. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-non-null-asserted-optional-chain.md +4 -27
  165. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-non-null-assertion.md +14 -13
  166. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-parameter-properties.md +1 -1
  167. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-redeclare.md +1 -1
  168. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-redundant-type-constituents.md +1 -6
  169. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-require-imports.md +12 -15
  170. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-restricted-imports.md +1 -1
  171. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-shadow.md +1 -1
  172. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-this-alias.md +9 -15
  173. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-throw-literal.md +1 -3
  174. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-type-alias.md +1 -1
  175. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-boolean-literal-compare.md +15 -14
  176. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-condition.md +3 -4
  177. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-qualifier.md +12 -46
  178. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-type-arguments.md +22 -8
  179. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-type-assertion.md +4 -6
  180. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-type-constraint.md +6 -20
  181. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-argument.md +10 -7
  182. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-assignment.md +9 -6
  183. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-call.md +6 -5
  184. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-declaration-merging.md +54 -0
  185. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-member-access.md +5 -4
  186. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-return.md +9 -6
  187. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unused-expressions.md +1 -1
  188. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unused-vars.md +1 -1
  189. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-use-before-define.md +1 -1
  190. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-useless-constructor.md +1 -1
  191. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-useless-empty-export.md +4 -4
  192. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-var-requires.md +6 -4
  193. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/non-nullable-type-assertion-style.md +7 -3
  194. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/object-curly-spacing.md +1 -1
  195. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/padding-line-between-statements.md +1 -1
  196. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/parameter-properties.md +3 -6
  197. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-as-const.md +7 -3
  198. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-enum-initializers.md +5 -23
  199. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-for-of.md +15 -16
  200. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-function-type.md +22 -22
  201. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-includes.md +28 -30
  202. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-literal-enum-member.md +12 -13
  203. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-namespace-keyword.md +27 -4
  204. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-nullish-coalescing.md +6 -54
  205. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-optional-chain.md +21 -49
  206. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-readonly-parameter-types.md +1 -3
  207. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-readonly.md +3 -5
  208. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-reduce-type-parameter.md +6 -8
  209. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-regexp-exec.md +6 -11
  210. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-return-this-type.md +10 -25
  211. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-string-starts-ends-with.md +10 -6
  212. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-ts-expect-error.md +5 -11
  213. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/promise-function-async.md +1 -1
  214. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/quotes.md +1 -1
  215. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/require-array-sort-compare.md +5 -14
  216. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/require-await.md +1 -1
  217. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/restrict-plus-operands.md +18 -4
  218. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/restrict-template-expressions.md +9 -2
  219. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/return-await.md +1 -1
  220. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/semi.md +1 -1
  221. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/sort-type-constituents.md +101 -0
  222. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/sort-type-union-intersection-members.md +8 -16
  223. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/space-before-blocks.md +1 -1
  224. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/space-before-function-paren.md +1 -1
  225. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/strict-boolean-expressions.md +0 -2
  226. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/switch-exhaustiveness-check.md +15 -24
  227. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/triple-slash-reference.md +4 -2
  228. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/type-annotation-spacing.md +1 -1
  229. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/typedef.md +5 -7
  230. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/unbound-method.md +7 -4
  231. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/unified-signatures.md +5 -3
  232. package/node_modules/@typescript-eslint/eslint-plugin/package.json +7 -5
  233. package/node_modules/@typescript-eslint/parser/README.md +2 -0
  234. package/node_modules/@typescript-eslint/parser/package.json +5 -5
  235. package/node_modules/@typescript-eslint/scope-manager/package.json +5 -5
  236. package/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.d.ts.map +1 -1
  237. package/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.js +3 -0
  238. package/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.js.map +1 -1
  239. package/node_modules/@typescript-eslint/type-utils/package.json +5 -5
  240. package/node_modules/@typescript-eslint/types/_ts3.4/dist/generated/ast-spec.d.ts +3 -3
  241. package/node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts +3 -3
  242. package/node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts.map +1 -1
  243. package/node_modules/@typescript-eslint/types/package.json +2 -2
  244. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/ast-converter.d.ts +2 -2
  245. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/createDefaultProgram.d.ts +3 -6
  246. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/createIsolatedProgram.d.ts +2 -2
  247. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/createProjectProgram.d.ts +4 -6
  248. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/createSourceFile.d.ts +2 -2
  249. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/createWatchProgram.d.ts +4 -7
  250. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/shared.d.ts +5 -4
  251. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/useProvidedPrograms.d.ts +2 -2
  252. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parseSettings/createParseSettings.d.ts +4 -0
  253. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parseSettings/index.d.ts +102 -0
  254. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parseSettings/inferSingleRun.d.ts +15 -0
  255. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parseSettings/warnAboutTSVersion.d.ts +3 -0
  256. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parser-options.d.ts +0 -26
  257. package/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.d.ts +2 -2
  258. package/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.d.ts.map +1 -1
  259. package/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.js +8 -8
  260. package/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.js.map +1 -1
  261. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createDefaultProgram.d.ts +3 -6
  262. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createDefaultProgram.d.ts.map +1 -1
  263. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createDefaultProgram.js +13 -15
  264. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createDefaultProgram.js.map +1 -1
  265. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.d.ts +2 -2
  266. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.d.ts.map +1 -1
  267. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.js +7 -7
  268. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.js.map +1 -1
  269. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.d.ts +4 -6
  270. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.d.ts.map +1 -1
  271. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.js +51 -38
  272. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.js.map +1 -1
  273. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.d.ts +2 -2
  274. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.d.ts.map +1 -1
  275. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.js +4 -4
  276. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.js.map +1 -1
  277. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createWatchProgram.d.ts +4 -7
  278. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createWatchProgram.d.ts.map +1 -1
  279. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createWatchProgram.js +21 -22
  280. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createWatchProgram.js.map +1 -1
  281. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.d.ts +5 -4
  282. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.d.ts.map +1 -1
  283. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.js +7 -7
  284. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.js.map +1 -1
  285. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.d.ts +2 -2
  286. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.d.ts.map +1 -1
  287. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.js +4 -4
  288. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.js.map +1 -1
  289. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.d.ts +4 -0
  290. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.d.ts.map +1 -0
  291. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.js +145 -0
  292. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.js.map +1 -0
  293. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.d.ts +102 -0
  294. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.d.ts.map +1 -0
  295. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.js +3 -0
  296. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.js.map +1 -0
  297. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.d.ts +15 -0
  298. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.d.ts.map +1 -0
  299. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.js +53 -0
  300. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.js.map +1 -0
  301. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.d.ts +3 -0
  302. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.d.ts.map +1 -0
  303. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.js +68 -0
  304. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.js.map +1 -0
  305. package/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.d.ts +0 -26
  306. package/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.d.ts.map +1 -1
  307. package/node_modules/@typescript-eslint/typescript-estree/dist/parser.d.ts.map +1 -1
  308. package/node_modules/@typescript-eslint/typescript-estree/dist/parser.js +32 -388
  309. package/node_modules/@typescript-eslint/typescript-estree/dist/parser.js.map +1 -1
  310. package/node_modules/@typescript-eslint/typescript-estree/package.json +5 -5
  311. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/batchedSingleLineTests.d.ts +1 -1
  312. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/index.d.ts +1 -1
  313. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/rule-tester/RuleTester.d.ts +48 -0
  314. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/rule-tester/dependencyConstraints.d.ts +17 -0
  315. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint/RuleTester.d.ts +21 -17
  316. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/batchedSingleLineTests.d.ts +1 -1
  317. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/batchedSingleLineTests.d.ts.map +1 -1
  318. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/batchedSingleLineTests.js.map +1 -1
  319. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/index.d.ts +1 -1
  320. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/index.d.ts.map +1 -1
  321. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/index.js +1 -1
  322. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/index.js.map +1 -1
  323. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/RuleTester.d.ts +49 -0
  324. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/RuleTester.d.ts.map +1 -0
  325. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/RuleTester.js +238 -0
  326. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/RuleTester.js.map +1 -0
  327. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/dependencyConstraints.d.ts +17 -0
  328. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/dependencyConstraints.d.ts.map +1 -0
  329. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/dependencyConstraints.js +52 -0
  330. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/dependencyConstraints.js.map +1 -0
  331. package/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.d.ts +16 -9
  332. package/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.d.ts.map +1 -1
  333. package/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.js.map +1 -1
  334. package/node_modules/@typescript-eslint/utils/package.json +9 -6
  335. package/node_modules/@typescript-eslint/visitor-keys/package.json +3 -3
  336. package/node_modules/eslint-config-xo-typescript/index.js +7 -1
  337. package/node_modules/eslint-config-xo-typescript/package.json +5 -5
  338. package/node_modules/natural-compare-lite/README.md +126 -0
  339. package/node_modules/natural-compare-lite/index.js +57 -0
  340. package/node_modules/natural-compare-lite/package.json +42 -0
  341. package/node_modules/semver/classes/range.js +3 -0
  342. package/node_modules/semver/index.js +81 -41
  343. package/node_modules/{lru-cache → semver/node_modules/lru-cache}/LICENSE +0 -0
  344. package/node_modules/{lru-cache → semver/node_modules/lru-cache}/README.md +0 -0
  345. package/node_modules/{lru-cache → semver/node_modules/lru-cache}/index.js +0 -0
  346. package/node_modules/{lru-cache → semver/node_modules/lru-cache}/package.json +0 -0
  347. package/node_modules/semver/package.json +21 -10
  348. package/package.json +24 -24
  349. package/readme.md +1 -1
  350. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/RuleTester.d.ts +0 -18
  351. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleTester.d.ts +0 -18
  352. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleTester.d.ts.map +0 -1
  353. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleTester.js +0 -133
  354. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleTester.js.map +0 -1
@@ -45,8 +45,8 @@ exports.CORE_COMPILER_OPTIONS = CORE_COMPILER_OPTIONS;
45
45
  * Default compiler options for program generation
46
46
  */
47
47
  const DEFAULT_COMPILER_OPTIONS = Object.assign(Object.assign({}, CORE_COMPILER_OPTIONS), { allowNonTsExtensions: true, allowJs: true, checkJs: true });
48
- function createDefaultCompilerOptionsFromExtra(extra) {
49
- if (extra.debugLevel.has('typescript')) {
48
+ function createDefaultCompilerOptionsFromExtra(parseSettings) {
49
+ if (parseSettings.debugLevel.has('typescript')) {
50
50
  return Object.assign(Object.assign({}, DEFAULT_COMPILER_OPTIONS), { extendedDiagnostics: true });
51
51
  }
52
52
  return DEFAULT_COMPILER_OPTIONS;
@@ -65,10 +65,10 @@ function getCanonicalFileName(filePath) {
65
65
  return correctPathCasing(normalized);
66
66
  }
67
67
  exports.getCanonicalFileName = getCanonicalFileName;
68
- function ensureAbsolutePath(p, extra) {
68
+ function ensureAbsolutePath(p, tsconfigRootDir) {
69
69
  return path_1.default.isAbsolute(p)
70
70
  ? p
71
- : path_1.default.join(extra.tsconfigRootDir || process.cwd(), p);
71
+ : path_1.default.join(tsconfigRootDir || process.cwd(), p);
72
72
  }
73
73
  exports.ensureAbsolutePath = ensureAbsolutePath;
74
74
  function canonicalDirname(p) {
@@ -87,10 +87,10 @@ function getExtension(fileName) {
87
87
  }
88
88
  return ((_a = DEFINITION_EXTENSIONS.find(definitionExt => fileName.endsWith(definitionExt))) !== null && _a !== void 0 ? _a : path_1.default.extname(fileName));
89
89
  }
90
- function getAstFromProgram(currentProgram, extra) {
91
- const ast = currentProgram.getSourceFile(extra.filePath);
90
+ function getAstFromProgram(currentProgram, parseSettings) {
91
+ const ast = currentProgram.getSourceFile(parseSettings.filePath);
92
92
  // working around https://github.com/typescript-eslint/typescript-eslint/issues/1573
93
- const expectedExt = getExtension(extra.filePath);
93
+ const expectedExt = getExtension(parseSettings.filePath);
94
94
  const returnedExt = getExtension(ast === null || ast === void 0 ? void 0 : ast.fileName);
95
95
  if (expectedExt !== returnedExt) {
96
96
  return undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"shared.js","sourceRoot":"","sources":["../../src/create-program/shared.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAAwB;AAExB,+CAAiC;AASjC;;GAEG;AACH,MAAM,qBAAqB,GAAuB;IAChD,MAAM,EAAE,IAAI;IAEZ;;OAEG;IACH,cAAc,EAAE,IAAI;IACpB,kBAAkB,EAAE,IAAI;CACzB,CAAC;AAyGA,sDAAqB;AAvGvB;;GAEG;AACH,MAAM,wBAAwB,mCACzB,qBAAqB,KACxB,oBAAoB,EAAE,IAAI,EAC1B,OAAO,EAAE,IAAI,EACb,OAAO,EAAE,IAAI,GACd,CAAC;AAEF,SAAS,qCAAqC,CAC5C,KAAY;IAEZ,IAAI,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC,YAAY,CAAC,EAAE;QACtC,uCACK,wBAAwB,KAC3B,mBAAmB,EAAE,IAAI,IACzB;KACH;IAED,OAAO,wBAAwB,CAAC;AAClC,CAAC;AAqFC,sFAAqC;AAhFvC,8EAA8E;AAC9E,MAAM,yBAAyB,GAC7B,EAAE,CAAC,GAAG,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,yBAAyB,CAAC,CAAC,CAAC,IAAI,CAAC;AACjE,MAAM,iBAAiB,GAAG,yBAAyB;IACjD,CAAC,CAAC,CAAC,QAAgB,EAAU,EAAE,CAAC,QAAQ;IACxC,CAAC,CAAC,CAAC,QAAgB,EAAU,EAAE,CAAC,QAAQ,CAAC,WAAW,EAAE,CAAC;AAEzD,SAAS,oBAAoB,CAAC,QAAgB;IAC5C,I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,CAAC,SAAS,CAAC,IAAI;CACT,CAAC;AACX,SAAS,YAAY,CAAC,QAA4B;;IAChD,IAAI,CAAC,QAAQ,EAAE;QACb,OAAO,IAAI,CAAC;KACb;IAED,OAAO,CACL,MAAA,qBAAqB,CAAC,IAAI,CAAC,aAAa,CAAC,EAAE,CACzC,QAAQ,CAAC,QAAQ,CAAC,aAAa,CAAC,CACjC,mCAAI,cAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAC5B,CAAC;AACJ,CAAC;AAED,SAAS,iBAAiB,CACxB,cAAuB,EACvB,aAA4B;IAE5B,MAAM,GAAG,GAAG,cAAc,CAAC,aAAa,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;IAEjE,oFAAoF;IACpF,MAAM,WAAW,GAAG,YAAY,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;IACzD,MAAM,WAAW,GAAG,YAAY,CAAC,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,QAAQ,CAAC,CAAC;IAChD,IAAI,WAAW,KAAK,WAAW,EAAE;QAC/B,OAAO,SAAS,CAAC;KAClB;IAED,OAAO,GAAG,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,cAAc,EAAE,CAAC;AACjD,CAAC;AA2BC,8CAAiB;AAzBnB,SAAS,iBAAiB,CAAC,kBAA0B;IACnD,IAAI,cAA8B,CAAC;IAEnC,IAAI;QACF,cAAc,GAAG,OAAO,CAAC,kBAAkB,CAAmB,CAAC;KAChE;IAAC,OAAO,KAAK,EAAE;QACd,MAAM,UAAU,GAAG;YACjB,2DAA2D;YAC3D,2FAA2F;SAC5F,CAAC;QAEF,MAAM,IAAI,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;KACxC;IAED,OAAO,cAAc,CAAC;AACxB,CAAC;AAWC,8CAAiB"}
@@ -1,7 +1,7 @@
1
1
  import * as ts from 'typescript';
2
- import type { Extra } from '../parser-options';
2
+ import type { ParseSettings } from '../parseSettings';
3
3
  import type { ASTAndProgram } from './shared';
4
- declare function useProvidedPrograms(programInstances: Iterable<ts.Program>, extra: Extra): ASTAndProgram | undefined;
4
+ declare function useProvidedPrograms(programInstances: Iterable<ts.Program>, parseSettings: ParseSettings): ASTAndProgram | undefined;
5
5
  /**
6
6
  * Utility offered by parser to help consumers construct their own program instance.
7
7
  *
@@ -1 +1 @@
1
- {"version":3,"file":"useProvidedPrograms.d.ts","sourceRoot":"","sources":["../../src/create-program/useProvidedPrograms.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAK9C,iBAAS,mBAAmB,CAC1B,gBAAgB,EAAE,QAAQ,CAAC,EAAE,CAAC,OAAO,CAAC,EACtC,KAAK,EAAE,KAAK,GACX,aAAa,GAAG,SAAS,CA+B3B;AAED;;;;;GAKG;AACH,iBAAS,2BAA2B,CAClC,UAAU,EAAE,MAAM,EAClB,gBAAgB,CAAC,EAAE,MAAM,GACxB,EAAE,CAAC,OAAO,CA4BZ;AAUD,OAAO,EAAE,mBAAmB,EAAE,2BAA2B,EAAE,CAAC"}
1
+ {"version":3,"file":"useProvidedPrograms.d.ts","sourceRoot":"","sources":["../../src/create-program/useProvidedPrograms.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAK9C,iBAAS,mBAAmB,CAC1B,gBAAgB,EAAE,QAAQ,CAAC,EAAE,CAAC,OAAO,CAAC,EACtC,aAAa,EAAE,aAAa,GAC3B,aAAa,GAAG,SAAS,CA+B3B;AAED;;;;;GAKG;AACH,iBAAS,2BAA2B,CAClC,UAAU,EAAE,MAAM,EAClB,gBAAgB,CAAC,EAAE,MAAM,GACxB,EAAE,CAAC,OAAO,CA4BZ;AAUD,OAAO,EAAE,mBAAmB,EAAE,2BAA2B,EAAE,CAAC"}
@@ -33,18 +33,18 @@ const path = __importStar(require("path"));
33
33
  const ts = __importStar(require("typescript"));
34
34
  const shared_1 = require("./shared");
35
35
  const log = (0, debug_1.default)('typescript-eslint:typescript-estree:useProvidedProgram');
36
- function useProvidedPrograms(programInstances, extra) {
37
- log('Retrieving ast for %s from provided program instance(s)', extra.filePath);
36
+ function useProvidedPrograms(programInstances, parseSettings) {
37
+ log('Retrieving ast for %s from provided program instance(s)', parseSettings.filePath);
38
38
  let astAndProgram;
39
39
  for (const programInstance of programInstances) {
40
- astAndProgram = (0, shared_1.getAstFromProgram)(programInstance, extra);
40
+ astAndProgram = (0, shared_1.getAstFromProgram)(programInstance, parseSettings);
41
41
  // Stop at the first applicable program instance
42
42
  if (astAndProgram) {
43
43
  break;
44
44
  }
45
45
  }
46
46
  if (!astAndProgram) {
47
- const relativeFilePath = path.relative(extra.tsconfigRootDir || process.cwd(), extra.filePath);
47
+ const relativeFilePath = path.relative(parseSettings.tsconfigRootDir || process.cwd(), parseSettings.filePath);
48
48
  const errorLines = [
49
49
  '"parserOptions.programs" has been provided for @typescript-eslint/parser.',
50
50
  `The file was not found in any of the provided program instance(s): ${relativeFilePath}`,
@@ -1 +1 @@
1
- {"version":3,"file":"useProvidedPrograms.js","sourceRoot":"","sources":["../../src/create-program/useProvidedPrograms.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAA0B;AAC1B,uCAAyB;AACzB,2CAA6B;AAC7B,+CAAiC;AAIjC,qCAAoE;AAEpE,MAAM,GAAG,GAAG,IAAA,eAAK,EAAC,wDAAwD,CAAC,CAAC;AAE5E,SAAS,mBAAmB,CAC1B,gBAAsC,EACtC,KAAY;IAEZ,GAAG,CACD,yDAAyD,EACzD,KAAK,CAAC,QAAQ,CACf,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AC,aAAa;QACnC,QAAQ,EAAE,IAAI,CAAC,EAAE,CAAC,EAAE,CAAC,YAAY,CAAC,IAAI,EAAE,OAAO,CAAC;QAChD,yBAAyB,EAAE,EAAE,CAAC,GAAG,CAAC,yBAAyB;KAC5D,CACF,CAAC;IACF,MAAM,MAAM,GAAG,MAAO,CAAC,CAAC,sDAAsD;IAC9E,IAAI,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE;QACxB,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC;KACnD;IACD,MAAM,IAAI,GAAG,EAAE,CAAC,kBAAkB,CAAC,MAAM,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IACzD,OAAO,EAAE,CAAC,aAAa,CAAC,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;AAClE,CAAC;AAU6B,kEAA2B;AARzD,SAAS,iBAAiB,CAAC,WAA4B;IACrD,OAAO,EAAE,CAAC,iBAAiB,CAAC,WAAW,EAAE;QACvC,oBAAoB,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;QAC5B,mBAAmB,EAAE,OAAO,CAAC,GAAG;QAChC,UAAU,EAAE,GAAG,EAAE,CAAC,IAAI;KACvB,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { TSESTreeOptions } from '../parser-options';
2
+ import type { MutableParseSettings } from './index';
3
+ export declare function createParseSettings(code: string, options?: Partial<TSESTreeOptions>): MutableParseSettings;
4
+ //# sourceMappingURL=createParseSettings.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,145 @@
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.createParseSettings = 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 inferSingleRun_1 = require("./inferSingleRun");
12
+ const warnAboutTSVersion_1 = require("./warnAboutTSVersion");
13
+ const log = (0, debug_1.default)('typescript-eslint:typescript-estree:parser:parseSettings:createParseSettings');
14
+ function createParseSettings(code, options = {}) {
15
+ var _a, _b;
16
+ const tsconfigRootDir = typeof options.tsconfigRootDir === 'string'
17
+ ? options.tsconfigRootDir
18
+ : process.cwd();
19
+ const parseSettings = {
20
+ code: enforceString(code),
21
+ comment: options.comment === true,
22
+ comments: [],
23
+ createDefaultProgram: options.createDefaultProgram === true,
24
+ debugLevel: options.debugLevel === true
25
+ ? new Set(['typescript-eslint'])
26
+ : Array.isArray(options.debugLevel)
27
+ ? new Set(options.debugLevel)
28
+ : new Set(),
29
+ errorOnTypeScriptSyntacticAndSemanticIssues: false,
30
+ errorOnUnknownASTType: options.errorOnUnknownASTType === true,
31
+ EXPERIMENTAL_useSourceOfProjectReferenceRedirect: options.EXPERIMENTAL_useSourceOfProjectReferenceRedirect === true,
32
+ extraFileExtensions: Array.isArray(options.extraFileExtensions) &&
33
+ options.extraFileExtensions.every(ext => typeof ext === 'string')
34
+ ? options.extraFileExtensions
35
+ : [],
36
+ filePath: (0, shared_1.ensureAbsolutePath)(typeof options.filePath === 'string' && options.filePath !== '<input>'
37
+ ? options.filePath
38
+ : getFileName(options.jsx), tsconfigRootDir),
39
+ jsx: options.jsx === true,
40
+ loc: options.loc === true,
41
+ log: typeof options.loggerFn === 'function'
42
+ ? options.loggerFn
43
+ : options.loggerFn === false
44
+ ? () => { }
45
+ : console.log,
46
+ moduleResolver: (_a = options.moduleResolver) !== null && _a !== void 0 ? _a : '',
47
+ preserveNodeMaps: options.preserveNodeMaps !== false,
48
+ programs: Array.isArray(options.programs) ? options.programs : null,
49
+ projects: [],
50
+ range: options.range === true,
51
+ singleRun: (0, inferSingleRun_1.inferSingleRun)(options),
52
+ tokens: options.tokens === true ? [] : null,
53
+ tsconfigRootDir,
54
+ };
55
+ // debug doesn't support multiple `enable` calls, so have to do it all at once
56
+ if (parseSettings.debugLevel.size > 0) {
57
+ const namespaces = [];
58
+ if (parseSettings.debugLevel.has('typescript-eslint')) {
59
+ namespaces.push('typescript-eslint:*');
60
+ }
61
+ if (parseSettings.debugLevel.has('eslint') ||
62
+ // make sure we don't turn off the eslint debug if it was enabled via --debug
63
+ debug_1.default.enabled('eslint:*,-eslint:code-path')) {
64
+ // https://github.com/eslint/eslint/blob/9dfc8501fb1956c90dc11e6377b4cb38a6bea65d/bin/eslint.js#L25
65
+ namespaces.push('eslint:*,-eslint:code-path');
66
+ }
67
+ debug_1.default.enable(namespaces.join(','));
68
+ }
69
+ if (Array.isArray(options.programs)) {
70
+ if (!options.programs.length) {
71
+ throw new Error(`You have set parserOptions.programs to an empty array. This will cause all files to not be found in existing programs. Either provide one or more existing TypeScript Program instances in the array, or remove the parserOptions.programs setting.`);
72
+ }
73
+ log('parserOptions.programs was provided, so parserOptions.project will be ignored.');
74
+ }
75
+ // Providing a program overrides project resolution
76
+ 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);
87
+ }
88
+ (0, warnAboutTSVersion_1.warnAboutTSVersion)(parseSettings);
89
+ return parseSettings;
90
+ }
91
+ exports.createParseSettings = createParseSettings;
92
+ /**
93
+ * Ensures source code is a string.
94
+ */
95
+ function enforceString(code) {
96
+ if (typeof code !== 'string') {
97
+ return String(code);
98
+ }
99
+ return code;
100
+ }
101
+ /**
102
+ * Compute the filename based on the parser options.
103
+ *
104
+ * Even if jsx option is set in typescript compiler, filename still has to
105
+ * contain .tsx file extension.
106
+ *
107
+ * @param options Parser options
108
+ */
109
+ function getFileName(jsx) {
110
+ return jsx ? 'estree.tsx' : 'estree.ts';
111
+ }
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
+ //# sourceMappingURL=createParseSettings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createParseSettings.js","sourceRoot":"","sources":["../../src/parseSettings/createParseSettings.ts"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,mCAA0C;AAC1C,sDAA6B;AAG7B,qDAGkC;AAGlC,qDAAkD;AAClD,6DAA0D;AAE1D,MAAM,GAAG,GAAG,IAAA,eAAK,EACf,8EAA8E,CAC/E,CAAC;AAEF,SAAgB,mBAAmB,CACjC,IAAY,EACZ,UAAoC,EAAE;;IAEtC,MAAM,eAAe,GACnB,OAAO,OAAO,CAAC,eAAe,KAAK,QAAQ;QACzC,CAAC,CAAC,OAAO,CAAC,eAAe;QACzB,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC;IACpB,MAAM,aAAa,GAAyB;QAC1C,IAAI,EAAE,aAAa,CAAC,IAAI,CAAC;QACzB,OAAO,EAAE,OAAO,CAAC,OAAO,KAAK,IAAI;QACjC,QAAQ,EAAE,EAAE;QACZ,oBAAoB,EAAE,OAAO,CAAC,oBAAoB,KAAK,IAAI;QAC3D,UAAU,EACR,OAAO,CAAC,UAAU,KAAK,IAAI;YACzB,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,mBAAmB,CAAC,CAAC;YAChC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC;gBACnC,CAAC,CAAC,IAAI,GAAG,CAAC,OAAO,CAAC,UAAU,CAAC;gBAC7B,CAAC,CAAC,IAAI,GAAG,EAAE;QACf,2CAA2C,EAAE,KAAK;QAClD,qBAAqB,EAAE,OAAO,CAAC,qBAAqB,KAAK,IAAI;QAC7D,gDAAgD,EAC9C,OAAO,CAAC,gDAAgD,KAAK,IAAI;QACnE,mBAAmB,EACjB,KAAK,CAAC,OAAO,CAAC,OAA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C,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,IAAA,iBAAM,EAAC,OAAO,CAAC,CAAC,CAAC;IAC9E,MAAM,YAAY,GAAG,iBAAiB,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC,IAAA,iBAAM,EAAC,OAAO,CAAC,CAAC,CAAC;IAC1E,MAAM,2BAA2B,GAAG,IAAI,GAAG,CACzC,eAAe;SACZ,MAAM,CACL,IAAA,aAAQ,EAAC,CAAC,GAAG,YAAY,EAAE,GAAG,eAAe,CAAC,EAAE;QAC9C,GAAG,EAAE,eAAe;KACrB,CAAC,CACH;SACA,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,eAAe,CAAC,OAAO,EAAE,eAAe,CAAC,CAAC,CAC7D,CAAC;IAEF,GAAG,CACD,gEAAgE,EAChE,2BAA2B,CAC5B,CAAC;IAEF,OAAO,KAAK,CAAC,IAAI,CAAC,2BAA2B,CAAC,CAAC;AACjD,CAAC"}
@@ -0,0 +1,102 @@
1
+ import type * as ts from 'typescript';
2
+ import type { CanonicalPath } from '../create-program/shared';
3
+ import type { TSESTree } from '../ts-estree';
4
+ declare type DebugModule = 'typescript-eslint' | 'eslint' | 'typescript';
5
+ /**
6
+ * Internal settings used by the parser to run on a file.
7
+ */
8
+ export interface MutableParseSettings {
9
+ /**
10
+ * Code of the file being parsed.
11
+ */
12
+ code: string;
13
+ /**
14
+ * Whether the `comment` parse option is enabled.
15
+ */
16
+ comment: boolean;
17
+ /**
18
+ * If the `comment` parse option is enabled, retrieved comments.
19
+ */
20
+ comments: TSESTree.Comment[];
21
+ /**
22
+ * Whether to create a TypeScript program if one is not provided.
23
+ */
24
+ createDefaultProgram: boolean;
25
+ /**
26
+ * Which debug areas should be logged.
27
+ */
28
+ debugLevel: Set<DebugModule>;
29
+ /**
30
+ * Whether to error if TypeScript reports a semantic or syntactic error diagnostic.
31
+ */
32
+ errorOnTypeScriptSyntacticAndSemanticIssues: boolean;
33
+ /**
34
+ * Whether to error if an unknown AST node type is encountered.
35
+ */
36
+ errorOnUnknownASTType: boolean;
37
+ /**
38
+ * Whether TS should use the source files for referenced projects instead of the compiled .d.ts files.
39
+ *
40
+ * @remarks
41
+ * This feature is not yet optimized, and is likely to cause OOMs for medium to large projects.
42
+ * This flag REQUIRES at least TS v3.9, otherwise it does nothing.
43
+ */
44
+ EXPERIMENTAL_useSourceOfProjectReferenceRedirect: boolean;
45
+ /**
46
+ * Any non-standard file extensions which will be parsed.
47
+ */
48
+ extraFileExtensions: string[];
49
+ /**
50
+ * Path of the file being parsed.
51
+ */
52
+ filePath: string;
53
+ /**
54
+ * Whether parsing of JSX is enabled.
55
+ *
56
+ * @remarks The applicable file extension is still required.
57
+ */
58
+ jsx: boolean;
59
+ /**
60
+ * Whether to add `loc` information to each node.
61
+ */
62
+ loc: boolean;
63
+ /**
64
+ * Log function, if not `console.log`.
65
+ */
66
+ log: (message: string) => void;
67
+ /**
68
+ * Path for a module resolver to use for the compiler host's `resolveModuleNames`.
69
+ */
70
+ moduleResolver: string;
71
+ /**
72
+ * Whether two-way AST node maps are preserved during the AST conversion process.
73
+ */
74
+ preserveNodeMaps?: boolean;
75
+ /**
76
+ * One or more instances of TypeScript Program objects to be used for type information.
77
+ */
78
+ programs: null | Iterable<ts.Program>;
79
+ /**
80
+ * Normalized paths to provided project paths.
81
+ */
82
+ projects: CanonicalPath[];
83
+ /**
84
+ * Whether to add the `range` property to AST nodes.
85
+ */
86
+ range: boolean;
87
+ /**
88
+ * Whether this is part of a single run, rather than a long-running process.
89
+ */
90
+ singleRun: boolean;
91
+ /**
92
+ * If the `tokens` parse option is enabled, retrieved tokens.
93
+ */
94
+ tokens: null | TSESTree.Token[];
95
+ /**
96
+ * The absolute path to the root directory for all provided `project`s.
97
+ */
98
+ tsconfigRootDir: string;
99
+ }
100
+ export declare type ParseSettings = Readonly<MutableParseSettings>;
101
+ export {};
102
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file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AAK,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,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,oBAAY,aAAa,GAAG,QAAQ,CAAC,oBAAoB,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/parseSettings/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,15 @@
1
+ import type { TSESTreeOptions } from '../parser-options';
2
+ /**
3
+ * ESLint (and therefore typescript-eslint) is used in both "single run"/one-time contexts,
4
+ * such as an ESLint CLI invocation, and long-running sessions (such as continuous feedback
5
+ * on a file in an IDE).
6
+ *
7
+ * When typescript-eslint handles TypeScript Program management behind the scenes, this distinction
8
+ * is important because there is significant overhead to managing the so called Watch Programs
9
+ * needed for the long-running use-case. We therefore use the following logic to figure out which
10
+ * of these contexts applies to the current execution.
11
+ *
12
+ * @returns Whether this is part of a single run, rather than a long-running process.
13
+ */
14
+ export declare function inferSingleRun(options: TSESTreeOptions | undefined): boolean;
15
+ //# sourceMappingURL=inferSingleRun.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inferSingleRun.d.ts","sourceRoot":"","sources":["../../src/parseSettings/inferSingleRun.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEzD;;;;;;;;;;;GAWG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,eAAe,GAAG,SAAS,GAAG,OAAO,CAuC5E"}
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.inferSingleRun = void 0;
4
+ const path_1 = require("path");
5
+ /**
6
+ * ESLint (and therefore typescript-eslint) is used in both "single run"/one-time contexts,
7
+ * such as an ESLint CLI invocation, and long-running sessions (such as continuous feedback
8
+ * on a file in an IDE).
9
+ *
10
+ * When typescript-eslint handles TypeScript Program management behind the scenes, this distinction
11
+ * is important because there is significant overhead to managing the so called Watch Programs
12
+ * needed for the long-running use-case. We therefore use the following logic to figure out which
13
+ * of these contexts applies to the current execution.
14
+ *
15
+ * @returns Whether this is part of a single run, rather than a long-running process.
16
+ */
17
+ function inferSingleRun(options) {
18
+ if (
19
+ // single-run implies type-aware linting - no projects means we can't be in single-run mode
20
+ (options === null || options === void 0 ? void 0 : options.project) == null ||
21
+ // programs passed via options means the user should be managing the programs, so we shouldn't
22
+ // be creating our own single-run programs accidentally
23
+ (options === null || options === void 0 ? void 0 : options.programs) != null) {
24
+ return false;
25
+ }
26
+ // Allow users to explicitly inform us of their intent to perform a single run (or not) with TSESTREE_SINGLE_RUN
27
+ if (process.env.TSESTREE_SINGLE_RUN === 'false') {
28
+ return false;
29
+ }
30
+ if (process.env.TSESTREE_SINGLE_RUN === 'true') {
31
+ return true;
32
+ }
33
+ // Currently behind a flag while we gather real-world feedback
34
+ if (options === null || options === void 0 ? void 0 : options.allowAutomaticSingleRunInference) {
35
+ if (
36
+ // Default to single runs for CI processes. CI=true is set by most CI providers by default.
37
+ process.env.CI === 'true' ||
38
+ // This will be true for invocations such as `npx eslint ...` and `./node_modules/.bin/eslint ...`
39
+ process.argv[1].endsWith((0, path_1.normalize)('node_modules/.bin/eslint'))) {
40
+ return true;
41
+ }
42
+ }
43
+ /**
44
+ * We default to assuming that this run could be part of a long-running session (e.g. in an IDE)
45
+ * and watch programs will therefore be required.
46
+ *
47
+ * Unless we can reliably infer otherwise, we default to assuming that this run could be part
48
+ * of a long-running session (e.g. in an IDE) and watch programs will therefore be required
49
+ */
50
+ return false;
51
+ }
52
+ exports.inferSingleRun = inferSingleRun;
53
+ //# sourceMappingURL=inferSingleRun.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inferSingleRun.js","sourceRoot":"","sources":["../../src/parseSettings/inferSingleRun.ts"],"names":[],"mappings":";;;AAAA,+BAAiC;AAIjC;;;;;;;;;;;GAWG;AACH,SAAgB,cAAc,CAAC,OAAoC;IACjE;IACE,2FAA2F;IAC3F,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,KAAI,IAAI;QACxB,8FAA8F;QAC9F,uDAAuD;QACvD,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,KAAI,IAAI,EACzB;QACA,OAAO,KAAK,CAAC;KACd;IAED,gHAAgH;IAChH,IAAI,OAAO,CAAC,GAAG,CAAC,mBAAmB,KAAK,OAAO,EAAE;QAC/C,OAAO,KAAK,CAAC;KACd;IACD,IAAI,OAAO,CAAC,GAAG,CAAC,mBAAmB,KAAK,MAAM,EAAE;QAC9C,OAAO,IAAI,CAAC;KACb;IAED,8DAA8D;IAC9D,IAAI,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,gCAAgC,EAAE;QAC7C;QACE,2FAA2F;QAC3F,OAAO,CAAC,GAAG,CAAC,EAAE,KAAK,MAAM;YACzB,kGAAkG;YAClG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAA,gBAAS,EAAC,0BAA0B,CAAC,CAAC,EAC/D;YACA,OAAO,IAAI,CAAC;SACb;KACF;IAED;;;;;;OAMG;IACH,OAAO,KAAK,CAAC;AACf,CAAC;AAvCD,wCAuCC"}
@@ -0,0 +1,3 @@
1
+ import type { ParseSettings } from './index';
2
+ export declare function warnAboutTSVersion(parseSettings: ParseSettings): void;
3
+ //# sourceMappingURL=warnAboutTSVersion.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"warnAboutTSVersion.d.ts","sourceRoot":"","sources":["../../src/parseSettings/warnAboutTSVersion.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAsB7C,wBAAgB,kBAAkB,CAAC,aAAa,EAAE,aAAa,GAAG,IAAI,CAmBrE"}
@@ -0,0 +1,68 @@
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.warnAboutTSVersion = void 0;
30
+ const semver_1 = __importDefault(require("semver"));
31
+ const ts = __importStar(require("typescript"));
32
+ /**
33
+ * This needs to be kept in sync with the top-level README.md in the
34
+ * typescript-eslint monorepo
35
+ */
36
+ const SUPPORTED_TYPESCRIPT_VERSIONS = '>=3.3.1 <4.9.0';
37
+ /*
38
+ * The semver package will ignore prerelease ranges, and we don't want to explicitly document every one
39
+ * List them all separately here, so we can automatically create the full string
40
+ */
41
+ const SUPPORTED_PRERELEASE_RANGES = [];
42
+ const ACTIVE_TYPESCRIPT_VERSION = ts.version;
43
+ const isRunningSupportedTypeScriptVersion = semver_1.default.satisfies(ACTIVE_TYPESCRIPT_VERSION, [SUPPORTED_TYPESCRIPT_VERSIONS]
44
+ .concat(SUPPORTED_PRERELEASE_RANGES)
45
+ .join(' || '));
46
+ let warnedAboutTSVersion = false;
47
+ function warnAboutTSVersion(parseSettings) {
48
+ var _a;
49
+ if (!isRunningSupportedTypeScriptVersion && !warnedAboutTSVersion) {
50
+ const isTTY = typeof process === 'undefined' ? false : (_a = process.stdout) === null || _a === void 0 ? void 0 : _a.isTTY;
51
+ if (isTTY) {
52
+ const border = '=============';
53
+ const versionWarning = [
54
+ border,
55
+ 'WARNING: You are currently running a version of TypeScript which is not officially supported by @typescript-eslint/typescript-estree.',
56
+ 'You may find that it works just fine, or you may not.',
57
+ `SUPPORTED TYPESCRIPT VERSIONS: ${SUPPORTED_TYPESCRIPT_VERSIONS}`,
58
+ `YOUR TYPESCRIPT VERSION: ${ACTIVE_TYPESCRIPT_VERSION}`,
59
+ 'Please only submit bug reports when using the officially supported version.',
60
+ border,
61
+ ];
62
+ parseSettings.log(versionWarning.join('\n\n'));
63
+ }
64
+ warnedAboutTSVersion = true;
65
+ }
66
+ }
67
+ exports.warnAboutTSVersion = warnAboutTSVersion;
68
+ //# sourceMappingURL=warnAboutTSVersion.js.map
@@ -0,0 +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,2BAA2B,GAAa,EAAE,CAAC;AACjD,MAAM,yBAAyB,GAAG,EAAE,CAAC,OAAO,CAAC;AAC7C,MAAM,mCAAmC,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,32 +1,6 @@
1
1
  import type { DebugLevel } from '@typescript-eslint/types';
2
2
  import type * as ts from 'typescript';
3
- import type { CanonicalPath } from './create-program/shared';
4
3
  import type { TSESTree, TSESTreeToTSNode, TSNode, TSToken } from './ts-estree';
5
- declare type DebugModule = 'typescript-eslint' | 'eslint' | 'typescript';
6
- export interface Extra {
7
- code: string;
8
- comment: boolean;
9
- comments: TSESTree.Comment[];
10
- createDefaultProgram: boolean;
11
- debugLevel: Set<DebugModule>;
12
- errorOnTypeScriptSyntacticAndSemanticIssues: boolean;
13
- errorOnUnknownASTType: boolean;
14
- EXPERIMENTAL_useSourceOfProjectReferenceRedirect: boolean;
15
- extraFileExtensions: string[];
16
- filePath: string;
17
- jsx: boolean;
18
- loc: boolean;
19
- singleRun: boolean;
20
- log: (message: string) => void;
21
- preserveNodeMaps?: boolean;
22
- programs: null | Iterable<ts.Program>;
23
- projects: CanonicalPath[];
24
- range: boolean;
25
- strict: boolean;
26
- tokens: null | TSESTree.Token[];
27
- tsconfigRootDir: string;
28
- moduleResolver: string;
29
- }
30
4
  interface ParseOptions {
31
5
  /**
32
6
  * create a top-level comments array containing all comments
@@ -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,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,KAAK,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE/E,aAAK,WAAW,GAAG,mBAAmB,GAAG,QAAQ,GAAG,YAAY,CAAC;AAEjE,MAAM,WAAW,KAAK;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,QAAQ,CAAC,OAAO,EAAE,CAAC;IAC7B,oBAAoB,EAAE,OAAO,CAAC;IAC9B,UAAU,EAAE,GAAG,CAAC,WAAW,CAAC,CAAC;IAC7B,2CAA2C,EAAE,OAAO,CAAC;IACrD,qBAAqB,EAAE,OAAO,CAAC;IAC/B,gDAAgD,EAAE,OAAO,CAAC;IAC1D,mBAAmB,EAAE,MAAM,EAAE,CAAC;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,GAAG,EAAE,OAAO,CAAC;IACb,GAAG,EAAE,OAAO,CAAC;IACb,SAAS,EAAE,OAAO,CAAC;IACnB,GAAG,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,QAAQ,EAAE,IAAI,GAAG,QAAQ,CA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