xo 0.53.1 → 0.54.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (530) hide show
  1. package/config/plugins.cjs +27 -4
  2. package/lib/options-manager.js +11 -58
  3. package/node_modules/@eslint-community/eslint-utils/README.md +37 -0
  4. package/node_modules/{eslint-utils → @eslint-community/eslint-utils}/index.js +124 -12
  5. package/node_modules/@eslint-community/eslint-utils/index.js.map +1 -0
  6. package/node_modules/{eslint-utils → @eslint-community/eslint-utils}/index.mjs +124 -11
  7. package/node_modules/@eslint-community/eslint-utils/index.mjs.map +1 -0
  8. package/node_modules/@eslint-community/eslint-utils/package.json +73 -0
  9. package/node_modules/{regexpp → @eslint-community/regexpp}/README.md +9 -10
  10. package/node_modules/@eslint-community/regexpp/index.d.ts +781 -0
  11. package/node_modules/{regexpp → @eslint-community/regexpp}/index.js +297 -262
  12. package/node_modules/@eslint-community/regexpp/index.js.map +1 -0
  13. package/node_modules/{regexpp → @eslint-community/regexpp}/index.mjs +297 -262
  14. package/node_modules/@eslint-community/regexpp/index.mjs.map +1 -0
  15. package/node_modules/{regexpp → @eslint-community/regexpp}/package.json +60 -64
  16. package/node_modules/@typescript-eslint/eslint-plugin/LICENSE +1 -1
  17. package/node_modules/@typescript-eslint/eslint-plugin/README.md +6 -92
  18. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/all.js +10 -2
  19. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/all.js.map +1 -1
  20. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/strict.js +2 -1
  21. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/strict.js.map +1 -1
  22. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/adjacent-overload-signatures.js +4 -2
  23. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/adjacent-overload-signatures.js.map +1 -1
  24. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/array-type.js +1 -1
  25. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/array-type.js.map +1 -1
  26. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-ts-comment.js +2 -1
  27. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-ts-comment.js.map +1 -1
  28. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-types.js +3 -3
  29. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-types.js.map +1 -1
  30. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/block-spacing.js +158 -0
  31. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/block-spacing.js.map +1 -0
  32. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/brace-style.js +3 -1
  33. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/brace-style.js.map +1 -1
  34. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/comma-spacing.js +1 -1
  35. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/comma-spacing.js.map +1 -1
  36. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-generic-constructors.js +17 -7
  37. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-generic-constructors.js.map +1 -1
  38. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-assertions.js +47 -0
  39. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-assertions.js.map +1 -1
  40. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-imports.js +5 -11
  41. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-imports.js.map +1 -1
  42. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-function-return-type.js +22 -3
  43. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-function-return-type.js.map +1 -1
  44. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/index.js +12 -0
  45. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/index.js.map +1 -1
  46. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/key-spacing.js +351 -0
  47. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/key-spacing.js.map +1 -0
  48. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/keyword-spacing.js +53 -2
  49. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/keyword-spacing.js.map +1 -1
  50. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/lines-around-comment.js +384 -0
  51. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/lines-around-comment.js.map +1 -0
  52. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-ordering.js +205 -39
  53. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-ordering.js.map +1 -1
  54. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/enums.js +14 -13
  55. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/enums.js.map +1 -1
  56. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/schema.js +5 -0
  57. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/schema.js.map +1 -1
  58. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/validator.js +6 -6
  59. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/validator.js.map +1 -1
  60. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention.js +231 -198
  61. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention.js.map +1 -1
  62. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-void-expression.js +5 -0
  63. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-void-expression.js.map +1 -1
  64. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-type-constituents.js +158 -0
  65. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-type-constituents.js.map +1 -0
  66. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-interface.js +19 -16
  67. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-interface.js.map +1 -1
  68. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-explicit-any.js +2 -2
  69. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-explicit-any.js.map +1 -1
  70. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-floating-promises.js +45 -4
  71. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-floating-promises.js.map +1 -1
  72. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-implied-eval.js +1 -1
  73. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-implied-eval.js.map +1 -1
  74. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-import-type-side-effects.js +79 -0
  75. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-import-type-side-effects.js.map +1 -0
  76. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-inferrable-types.js +1 -1
  77. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-inferrable-types.js.map +1 -1
  78. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loss-of-precision.js +1 -1
  79. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loss-of-precision.js.map +1 -1
  80. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-promises.js +15 -15
  81. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-promises.js.map +1 -1
  82. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-mixed-enums.js +196 -0
  83. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-mixed-enums.js.map +1 -0
  84. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-nullish-coalescing.js +1 -1
  85. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-nullish-coalescing.js.map +1 -1
  86. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redundant-type-constituents.js +3 -3
  87. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redundant-type-constituents.js.map +1 -1
  88. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-shadow.js +6 -1
  89. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-shadow.js.map +1 -1
  90. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-boolean-literal-compare.js +21 -31
  91. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-boolean-literal-compare.js.map +1 -1
  92. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-condition.js +22 -7
  93. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-condition.js.map +1 -1
  94. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-qualifier.js +4 -5
  95. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-qualifier.js.map +1 -1
  96. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-argument.js +9 -9
  97. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-argument.js.map +1 -1
  98. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-vars.js +1 -2
  99. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-vars.js.map +1 -1
  100. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-use-before-define.js +2 -2
  101. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-use-before-define.js.map +1 -1
  102. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/object-curly-spacing.js +1 -0
  103. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/object-curly-spacing.js.map +1 -1
  104. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/padding-line-between-statements.js +1 -0
  105. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/padding-line-between-statements.js.map +1 -1
  106. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-for-of.js +3 -5
  107. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-for-of.js.map +1 -1
  108. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-function-type.js +4 -5
  109. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-function-type.js.map +1 -1
  110. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-includes.js +2 -2
  111. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-includes.js.map +1 -1
  112. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-nullish-coalescing.js +19 -1
  113. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-nullish-coalescing.js.map +1 -1
  114. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain.js +47 -11
  115. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain.js.map +1 -1
  116. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly.js +2 -1
  117. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly.js.map +1 -1
  118. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-regexp-exec.js +1 -1
  119. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-regexp-exec.js.map +1 -1
  120. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-string-starts-ends-with.js +2 -2
  121. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-string-starts-ends-with.js.map +1 -1
  122. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/promise-function-async.js +3 -1
  123. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/promise-function-async.js.map +1 -1
  124. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-array-sort-compare.js +1 -1
  125. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-array-sort-compare.js.map +1 -1
  126. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-template-expressions.js +7 -0
  127. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-template-expressions.js.map +1 -1
  128. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-constituents.js +5 -5
  129. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-constituents.js.map +1 -1
  130. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-union-intersection-members.js +5 -5
  131. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-union-intersection-members.js.map +1 -1
  132. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/space-before-blocks.js +1 -2
  133. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/space-before-blocks.js.map +1 -1
  134. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/space-before-function-paren.js +2 -1
  135. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/space-before-function-paren.js.map +1 -1
  136. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/strict-boolean-expressions.js +46 -2
  137. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/strict-boolean-expressions.js.map +1 -1
  138. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/switch-exhaustiveness-check.js +1 -1
  139. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/switch-exhaustiveness-check.js.map +1 -1
  140. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/triple-slash-reference.js +1 -1
  141. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/triple-slash-reference.js.map +1 -1
  142. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unbound-method.js +1 -1
  143. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unbound-method.js.map +1 -1
  144. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/collectUnusedVariables.js.map +1 -1
  145. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getESLintCoreRule.js.map +1 -1
  146. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getStringLength.js +20 -0
  147. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getStringLength.js.map +1 -0
  148. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getWrappingFixer.js +2 -1
  149. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getWrappingFixer.js.map +1 -1
  150. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/index.js +1 -0
  151. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/index.js.map +1 -1
  152. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isNullLiteral.js +1 -1
  153. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isNullLiteral.js.map +1 -1
  154. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/misc.js +27 -1
  155. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/misc.js.map +1 -1
  156. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/README.md +3 -3
  157. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/await-thenable.md +1 -1
  158. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/ban-types.md +3 -8
  159. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/block-spacing.md +12 -0
  160. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-indexed-object-style.md +1 -1
  161. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-type-exports.md +2 -0
  162. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-type-imports.md +9 -1
  163. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/explicit-function-return-type.md +52 -0
  164. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/key-spacing.md +12 -0
  165. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/lines-around-comment.md +37 -0
  166. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/member-ordering.md +181 -20
  167. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/naming-convention.md +7 -6
  168. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-duplicate-type-constituents.md +61 -0
  169. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-empty-interface.md +1 -1
  170. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-import-type-side-effects.md +75 -0
  171. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-mixed-enums.md +88 -0
  172. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-non-null-assertion.md +2 -2
  173. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-shadow.md +21 -0
  174. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-function-type.md +5 -0
  175. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/promise-function-async.md +18 -1
  176. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/restrict-template-expressions.md +9 -0
  177. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/strict-boolean-expressions.md +6 -0
  178. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/unified-signatures.md +7 -10
  179. package/node_modules/@typescript-eslint/eslint-plugin/package.json +13 -9
  180. package/node_modules/@typescript-eslint/parser/LICENSE +5 -5
  181. package/node_modules/@typescript-eslint/parser/README.md +6 -300
  182. package/node_modules/@typescript-eslint/parser/_ts3.4/dist/index.d.ts +4 -0
  183. package/node_modules/@typescript-eslint/parser/dist/index.d.ts +4 -0
  184. package/node_modules/@typescript-eslint/parser/dist/index.d.ts.map +1 -1
  185. package/node_modules/@typescript-eslint/parser/dist/index.js +5 -1
  186. package/node_modules/@typescript-eslint/parser/dist/index.js.map +1 -1
  187. package/node_modules/@typescript-eslint/parser/dist/parser.d.ts.map +1 -1
  188. package/node_modules/@typescript-eslint/parser/dist/parser.js +15 -17
  189. package/node_modules/@typescript-eslint/parser/dist/parser.js.map +1 -1
  190. package/node_modules/@typescript-eslint/parser/package.json +6 -6
  191. package/node_modules/@typescript-eslint/scope-manager/LICENSE +1 -1
  192. package/node_modules/@typescript-eslint/scope-manager/README.md +5 -117
  193. package/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.js +10 -10
  194. package/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.js.map +1 -1
  195. package/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.d.ts +1 -1
  196. package/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.d.ts.map +1 -1
  197. package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.d.ts +3 -0
  198. package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.d.ts.map +1 -0
  199. package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.js +21 -0
  200. package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.js.map +1 -0
  201. package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.d.ts +3 -0
  202. package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.d.ts.map +1 -0
  203. package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.js +15 -0
  204. package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.js.map +1 -0
  205. package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.d.ts.map +1 -1
  206. package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.d.ts.map +1 -1
  207. package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.js +5 -0
  208. package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.js.map +1 -1
  209. package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.js +44 -10
  210. package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.js.map +1 -1
  211. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.d.ts.map +1 -1
  212. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.js +1 -1
  213. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.js.map +1 -1
  214. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.d.ts.map +1 -1
  215. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.d.ts +3 -0
  216. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.d.ts.map +1 -0
  217. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.js +12 -0
  218. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.js.map +1 -0
  219. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.js +2 -1
  220. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.js.map +1 -1
  221. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.d.ts.map +1 -1
  222. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.js +2 -1
  223. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.js.map +1 -1
  224. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.d.ts +3 -0
  225. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.d.ts.map +1 -0
  226. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.js +15 -0
  227. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.js.map +1 -0
  228. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.d.ts +3 -0
  229. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.d.ts.map +1 -0
  230. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.js +24 -0
  231. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.js.map +1 -0
  232. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.d.ts +3 -0
  233. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.d.ts.map +1 -0
  234. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.d.ts +3 -0
  235. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.d.ts.map +1 -0
  236. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.js +14 -0
  237. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.js.map +1 -0
  238. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.js +11 -0
  239. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.js.map +1 -0
  240. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.d.ts.map +1 -1
  241. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.js +3 -105
  242. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.js.map +1 -1
  243. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.js +2 -2
  244. package/node_modules/@typescript-eslint/scope-manager/dist/lib/index.d.ts +7 -0
  245. package/node_modules/@typescript-eslint/scope-manager/dist/lib/index.d.ts.map +1 -1
  246. package/node_modules/@typescript-eslint/scope-manager/dist/lib/index.js +14 -0
  247. package/node_modules/@typescript-eslint/scope-manager/dist/lib/index.js.map +1 -1
  248. package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.d.ts.map +1 -1
  249. package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.d.ts.map +1 -1
  250. package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.js +2 -0
  251. package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.js.map +1 -1
  252. package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.js +43 -1
  253. package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.js.map +1 -1
  254. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.d.ts +4 -2
  255. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.d.ts.map +1 -1
  256. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.js +14 -6
  257. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.js.map +1 -1
  258. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.d.ts +1 -1
  259. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.d.ts.map +1 -1
  260. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.js.map +1 -1
  261. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.js.map +1 -1
  262. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.d.ts +2 -2
  263. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.d.ts.map +1 -1
  264. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.js +10 -12
  265. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.js.map +1 -1
  266. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.js +17 -17
  267. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.js.map +1 -1
  268. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.d.ts +2 -1
  269. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.d.ts.map +1 -1
  270. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.js +5 -2
  271. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.js.map +1 -1
  272. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.js.map +1 -1
  273. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.js.map +1 -1
  274. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.js.map +1 -1
  275. package/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.d.ts +1 -1
  276. package/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.d.ts.map +1 -1
  277. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.d.ts +1 -1
  278. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.d.ts.map +1 -1
  279. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.js.map +1 -1
  280. package/node_modules/@typescript-eslint/scope-manager/package.json +12 -12
  281. package/node_modules/@typescript-eslint/type-utils/LICENSE +1 -1
  282. package/node_modules/@typescript-eslint/type-utils/README.md +7 -10
  283. package/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/containsAllTypesByName.d.ts +4 -2
  284. package/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.d.ts +4 -2
  285. package/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.d.ts.map +1 -1
  286. package/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.js +12 -6
  287. package/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.js.map +1 -1
  288. package/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.d.ts.map +1 -1
  289. package/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.js +2 -4
  290. package/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.js.map +1 -1
  291. package/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.d.ts.map +1 -1
  292. package/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.js +1 -0
  293. package/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.js.map +1 -1
  294. package/node_modules/@typescript-eslint/type-utils/package.json +6 -6
  295. package/node_modules/@typescript-eslint/types/LICENSE +1 -1
  296. package/node_modules/@typescript-eslint/types/README.md +6 -11
  297. package/node_modules/@typescript-eslint/types/_ts3.4/dist/generated/ast-spec.d.ts +90 -16
  298. package/node_modules/@typescript-eslint/types/_ts3.4/dist/lib.d.ts +1 -1
  299. package/node_modules/@typescript-eslint/types/_ts3.4/dist/parser-options.d.ts +9 -5
  300. package/node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts +90 -16
  301. package/node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts.map +1 -1
  302. package/node_modules/@typescript-eslint/types/dist/generated/ast-spec.js +3 -0
  303. package/node_modules/@typescript-eslint/types/dist/generated/ast-spec.js.map +1 -1
  304. package/node_modules/@typescript-eslint/types/dist/lib.d.ts +1 -1
  305. package/node_modules/@typescript-eslint/types/dist/lib.d.ts.map +1 -1
  306. package/node_modules/@typescript-eslint/types/dist/parser-options.d.ts +9 -5
  307. package/node_modules/@typescript-eslint/types/dist/parser-options.d.ts.map +1 -1
  308. package/node_modules/@typescript-eslint/types/package.json +6 -6
  309. package/node_modules/@typescript-eslint/typescript-estree/LICENSE +5 -5
  310. package/node_modules/@typescript-eslint/typescript-estree/README.md +6 -379
  311. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/clear-caches.d.ts +10 -0
  312. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/describeFilePath.d.ts +2 -0
  313. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/{createWatchProgram.d.ts → getWatchProgramsForProjects.d.ts} +3 -4
  314. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/shared.d.ts +8 -2
  315. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/index.d.ts +2 -2
  316. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parseSettings/ExpiringCache.d.ts +17 -0
  317. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parseSettings/createParseSettings.d.ts +1 -0
  318. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parseSettings/getProjectConfigFiles.d.ts +12 -0
  319. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parseSettings/index.d.ts +8 -3
  320. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parseSettings/resolveProjectList.d.ts +19 -0
  321. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parser-options.d.ts +23 -4
  322. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parser.d.ts +1 -1
  323. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/simple-traverse.d.ts +1 -1
  324. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/ts-estree/estree-to-ts-node-types.d.ts +4 -1
  325. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/ts-estree/ts-nodes.d.ts +4 -2
  326. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/version-check.d.ts +1 -1
  327. package/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.d.ts +10 -0
  328. package/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.d.ts.map +1 -0
  329. package/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.js +24 -0
  330. package/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.js.map +1 -0
  331. package/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.js +1 -1
  332. package/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.js.map +1 -1
  333. package/node_modules/@typescript-eslint/typescript-estree/dist/convert.d.ts.map +1 -1
  334. package/node_modules/@typescript-eslint/typescript-estree/dist/convert.js +62 -16
  335. package/node_modules/@typescript-eslint/typescript-estree/dist/convert.js.map +1 -1
  336. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createDefaultProgram.d.ts.map +1 -1
  337. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createDefaultProgram.js +1 -0
  338. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createDefaultProgram.js.map +1 -1
  339. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.d.ts.map +1 -1
  340. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.js +7 -12
  341. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.js.map +1 -1
  342. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.d.ts +2 -0
  343. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.d.ts.map +1 -0
  344. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.js +32 -0
  345. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.js.map +1 -0
  346. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/{createWatchProgram.d.ts → getWatchProgramsForProjects.d.ts} +3 -4
  347. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.d.ts.map +1 -0
  348. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/{createWatchProgram.js → getWatchProgramsForProjects.js} +16 -20
  349. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.js.map +1 -0
  350. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.d.ts +8 -2
  351. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.d.ts.map +1 -1
  352. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.js +15 -1
  353. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.js.map +1 -1
  354. package/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.d.ts.map +1 -1
  355. package/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.js +3 -3
  356. package/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.js.map +1 -1
  357. package/node_modules/@typescript-eslint/typescript-estree/dist/index.d.ts +2 -2
  358. package/node_modules/@typescript-eslint/typescript-estree/dist/index.d.ts.map +1 -1
  359. package/node_modules/@typescript-eslint/typescript-estree/dist/index.js +2 -4
  360. package/node_modules/@typescript-eslint/typescript-estree/dist/index.js.map +1 -1
  361. package/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.d.ts.map +1 -1
  362. package/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.js +18 -5
  363. package/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.js.map +1 -1
  364. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.d.ts +17 -0
  365. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.d.ts.map +1 -0
  366. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.js +62 -0
  367. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.js.map +1 -0
  368. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.d.ts +1 -0
  369. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.d.ts.map +1 -1
  370. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.js +22 -48
  371. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.js.map +1 -1
  372. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.d.ts +12 -0
  373. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.d.ts.map +1 -0
  374. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.js +70 -0
  375. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.js.map +1 -0
  376. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.d.ts +8 -3
  377. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.d.ts.map +1 -1
  378. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.d.ts +19 -0
  379. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.d.ts.map +1 -0
  380. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.js +103 -0
  381. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.js.map +1 -0
  382. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.js +4 -4
  383. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.js.map +1 -1
  384. package/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.d.ts +23 -4
  385. package/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.d.ts.map +1 -1
  386. package/node_modules/@typescript-eslint/typescript-estree/dist/parser.d.ts +1 -1
  387. package/node_modules/@typescript-eslint/typescript-estree/dist/parser.d.ts.map +1 -1
  388. package/node_modules/@typescript-eslint/typescript-estree/dist/parser.js +1 -1
  389. package/node_modules/@typescript-eslint/typescript-estree/dist/parser.js.map +1 -1
  390. package/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.d.ts +1 -1
  391. package/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.d.ts.map +1 -1
  392. package/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.js +1 -1
  393. package/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.js.map +1 -1
  394. package/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.d.ts +4 -1
  395. package/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.d.ts.map +1 -1
  396. package/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.d.ts +4 -2
  397. package/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.d.ts.map +1 -1
  398. package/node_modules/@typescript-eslint/typescript-estree/dist/version-check.d.ts +1 -1
  399. package/node_modules/@typescript-eslint/typescript-estree/dist/version-check.d.ts.map +1 -1
  400. package/node_modules/@typescript-eslint/typescript-estree/dist/version-check.js +2 -0
  401. package/node_modules/@typescript-eslint/typescript-estree/dist/version-check.js.map +1 -1
  402. package/node_modules/@typescript-eslint/typescript-estree/package.json +5 -6
  403. package/node_modules/@typescript-eslint/utils/LICENSE +1 -1
  404. package/node_modules/@typescript-eslint/utils/README.md +6 -23
  405. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/eslint-utils/PatternMatcher.d.ts +4 -4
  406. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/eslint-utils/ReferenceTracker.d.ts +4 -4
  407. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/eslint-utils/astUtilities.d.ts +6 -6
  408. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/eslint-utils/predicates.d.ts +5 -5
  409. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/eslint-utils/scopeAnalysis.d.ts +2 -2
  410. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/helpers.d.ts +60 -6
  411. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/predicates.d.ts +13 -1
  412. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/InferTypesFromRule.d.ts +2 -2
  413. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/RuleCreator.d.ts +2 -2
  414. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/deepMerge.d.ts +1 -1
  415. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/rule-tester/RuleTester.d.ts +3 -3
  416. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/rule-tester/dependencyConstraints.d.ts +2 -2
  417. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint/Rule.d.ts +6 -6
  418. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint/RuleTester.d.ts +1 -1
  419. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint/SourceCode.d.ts +5 -1
  420. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint-scope/Options.d.ts +1 -1
  421. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint-scope/Reference.d.ts +1 -1
  422. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint-scope/Scope.d.ts +1 -1
  423. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.d.ts +4 -4
  424. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.js +2 -2
  425. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.js.map +1 -1
  426. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.d.ts +4 -4
  427. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.js +2 -2
  428. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.js.map +1 -1
  429. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.d.ts +6 -6
  430. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.js +7 -7
  431. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.js.map +1 -1
  432. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.d.ts +5 -5
  433. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.d.ts.map +1 -1
  434. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.js +1 -1
  435. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.js.map +1 -1
  436. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.d.ts +2 -2
  437. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.js +3 -3
  438. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.js.map +1 -1
  439. package/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.d.ts +60 -6
  440. package/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.d.ts.map +1 -1
  441. package/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.d.ts +13 -1
  442. package/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.d.ts.map +1 -1
  443. package/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.js +15 -1
  444. package/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.js.map +1 -1
  445. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.d.ts +2 -2
  446. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.d.ts.map +1 -1
  447. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.d.ts +2 -2
  448. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.d.ts.map +1 -1
  449. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.js +1 -1
  450. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.js.map +1 -1
  451. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/deepMerge.d.ts +1 -1
  452. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/deepMerge.d.ts.map +1 -1
  453. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.js +1 -1
  454. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.js.map +1 -1
  455. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/RuleTester.d.ts +3 -3
  456. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/RuleTester.d.ts.map +1 -1
  457. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/RuleTester.js +40 -27
  458. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/RuleTester.js.map +1 -1
  459. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/dependencyConstraints.d.ts +2 -2
  460. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/dependencyConstraints.d.ts.map +1 -1
  461. package/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.d.ts +6 -6
  462. package/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.d.ts.map +1 -1
  463. package/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.d.ts +1 -1
  464. package/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.d.ts.map +1 -1
  465. package/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.d.ts +5 -1
  466. package/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.d.ts.map +1 -1
  467. package/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.js.map +1 -1
  468. package/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Options.d.ts +1 -1
  469. package/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Options.d.ts.map +1 -1
  470. package/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Reference.d.ts +1 -1
  471. package/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Reference.d.ts.map +1 -1
  472. package/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Scope.d.ts +1 -1
  473. package/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Scope.d.ts.map +1 -1
  474. package/node_modules/@typescript-eslint/utils/package.json +8 -8
  475. package/node_modules/@typescript-eslint/visitor-keys/LICENSE +1 -1
  476. package/node_modules/@typescript-eslint/visitor-keys/README.md +6 -9
  477. package/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.d.ts.map +1 -1
  478. package/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.js +63 -48
  479. package/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.js.map +1 -1
  480. package/node_modules/@typescript-eslint/visitor-keys/package.json +4 -4
  481. package/node_modules/eslint-config-xo-typescript/index.js +8 -11
  482. package/node_modules/eslint-config-xo-typescript/package.json +5 -5
  483. package/node_modules/eslint-visitor-keys/README.md +1 -2
  484. package/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.cjs +38 -36
  485. package/node_modules/eslint-visitor-keys/lib/visitor-keys.js +38 -35
  486. package/node_modules/eslint-visitor-keys/package.json +16 -6
  487. package/node_modules/fastq/README.md +1 -1
  488. package/node_modules/fastq/index.d.ts +1 -1
  489. package/node_modules/fastq/package.json +1 -1
  490. package/node_modules/fastq/queue.js +6 -0
  491. package/node_modules/fastq/test/promise.js +27 -0
  492. package/node_modules/grapheme-splitter/LICENSE +22 -0
  493. package/node_modules/grapheme-splitter/README.md +111 -0
  494. package/node_modules/grapheme-splitter/index.d.ts +24 -0
  495. package/node_modules/grapheme-splitter/index.js +1743 -0
  496. package/node_modules/grapheme-splitter/package.json +34 -0
  497. package/node_modules/grapheme-splitter/tests/GraphemeBreakTest.txt +850 -0
  498. package/node_modules/grapheme-splitter/tests/grapheme_splitter_tests.js +83 -0
  499. package/node_modules/ignore/README.md +3 -3
  500. package/node_modules/ignore/index.js +24 -9
  501. package/node_modules/ignore/legacy.js +176 -135
  502. package/node_modules/ignore/package.json +13 -11
  503. package/package.json +19 -19
  504. package/readme.md +1 -2
  505. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createWatchProgram.d.ts.map +0 -1
  506. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createWatchProgram.js.map +0 -1
  507. package/node_modules/braces/CHANGELOG.md +0 -184
  508. package/node_modules/eslint-scope/CHANGELOG.md +0 -70
  509. package/node_modules/eslint-utils/README.md +0 -38
  510. package/node_modules/eslint-utils/index.js.map +0 -1
  511. package/node_modules/eslint-utils/index.mjs.map +0 -1
  512. package/node_modules/eslint-utils/node_modules/eslint-visitor-keys/CHANGELOG.md +0 -36
  513. package/node_modules/eslint-utils/node_modules/eslint-visitor-keys/LICENSE +0 -201
  514. package/node_modules/eslint-utils/node_modules/eslint-visitor-keys/README.md +0 -98
  515. package/node_modules/eslint-utils/node_modules/eslint-visitor-keys/lib/index.js +0 -81
  516. package/node_modules/eslint-utils/node_modules/eslint-visitor-keys/lib/visitor-keys.json +0 -289
  517. package/node_modules/eslint-utils/node_modules/eslint-visitor-keys/package.json +0 -39
  518. package/node_modules/eslint-utils/package.json +0 -78
  519. package/node_modules/glob-parent/CHANGELOG.md +0 -110
  520. package/node_modules/picomatch/CHANGELOG.md +0 -136
  521. package/node_modules/regexpp/index.d.ts +0 -248
  522. package/node_modules/regexpp/index.js.map +0 -1
  523. package/node_modules/regexpp/index.mjs.map +0 -1
  524. /package/node_modules/{eslint-utils → @eslint-community/eslint-utils}/LICENSE +0 -0
  525. /package/node_modules/{regexpp → @eslint-community/regexpp}/LICENSE +0 -0
  526. /package/node_modules/{yallist → semver/node_modules/yallist}/LICENSE +0 -0
  527. /package/node_modules/{yallist → semver/node_modules/yallist}/README.md +0 -0
  528. /package/node_modules/{yallist → semver/node_modules/yallist}/iterator.js +0 -0
  529. /package/node_modules/{yallist → semver/node_modules/yallist}/package.json +0 -0
  530. /package/node_modules/{yallist → semver/node_modules/yallist}/yallist.js +0 -0
@@ -1,15 +1,12 @@
1
- <h1 align="center">Type utils for ESLint Plugins</h1>
1
+ # `@typescript-eslint/type-utils`
2
2
 
3
- <p align="center">Type utilities for working with TypeScript within ESLint rules.</p>
3
+ > Type utilities for working with TypeScript within ESLint rules.
4
4
 
5
- <p align="center">
6
- <img src="https://github.com/typescript-eslint/typescript-eslint/workflows/CI/badge.svg" alt="CI" />
7
- <a href="https://www.npmjs.com/package/@typescript-eslint/type-utils"><img src="https://img.shields.io/npm/v/@typescript-eslint/type-utils.svg?style=flat-square" alt="NPM Version" /></a>
8
- <a href="https://www.npmjs.com/package/@typescript-eslint/type-utils"><img src="https://img.shields.io/npm/dm/@typescript-eslint/type-utils.svg?style=flat-square" alt="NPM Downloads" /></a>
9
- </p>
5
+ The utilities in this package are separated from `@typescript-eslint/utils` so that that package does not require a dependency on `typescript`.
10
6
 
11
- This utilities in this package are separated from `@typescript-eslint/utils` so that that package does not require a dependency on `typescript`.
7
+ ## Internal Package
12
8
 
13
- ## Contributing
9
+ This is an _internal package_ to the [typescript-eslint monorepo](https://github.com/typescript-eslint/typescript-eslint).
10
+ You likely don't want to use it directly.
14
11
 
15
- [See the contributing guide here](../../CONTRIBUTING.md)
12
+ 👉 See **https://typescript-eslint.io** for docs on typescript-eslint.
@@ -1,8 +1,10 @@
1
1
  import * as ts from 'typescript';
2
2
  /**
3
3
  * @param type Type being checked by name.
4
+ * @param allowAny Whether to consider `any` and `unknown` to match.
4
5
  * @param allowedNames Symbol names checking on the type.
5
- * @returns Whether the type is, extends, or contains all of the allowed names.
6
+ * @param matchAnyInstead Whether to instead just check if any parts match, rather than all parts.
7
+ * @returns Whether the type is, extends, or contains the allowed names (or all matches the allowed names, if mustMatchAll is true).
6
8
  */
7
- export declare function containsAllTypesByName(type: ts.Type, allowAny: boolean, allowedNames: Set<string>): boolean;
9
+ export declare function containsAllTypesByName(type: ts.Type, allowAny: boolean, allowedNames: Set<string>, matchAnyInstead?: boolean): boolean;
8
10
  //# sourceMappingURL=containsAllTypesByName.d.ts.map
@@ -1,8 +1,10 @@
1
1
  import * as ts from 'typescript';
2
2
  /**
3
3
  * @param type Type being checked by name.
4
+ * @param allowAny Whether to consider `any` and `unknown` to match.
4
5
  * @param allowedNames Symbol names checking on the type.
5
- * @returns Whether the type is, extends, or contains all of the allowed names.
6
+ * @param matchAnyInstead Whether to instead just check if any parts match, rather than all parts.
7
+ * @returns Whether the type is, extends, or contains the allowed names (or all matches the allowed names, if mustMatchAll is true).
6
8
  */
7
- export declare function containsAllTypesByName(type: ts.Type, allowAny: boolean, allowedNames: Set<string>): boolean;
9
+ export declare function containsAllTypesByName(type: ts.Type, allowAny: boolean, allowedNames: Set<string>, matchAnyInstead?: boolean): boolean;
8
10
  //# sourceMappingURL=containsAllTypesByName.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"containsAllTypesByName.d.ts","sourceRoot":"","sources":["../src/containsAllTypesByName.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAIjC;;;;GAIG;AACH,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,EAAE,CAAC,IAAI,EACb,QAAQ,EAAE,OAAO,EACjB,YAAY,EAAE,GAAG,CAAC,MAAM,CAAC,GACxB,OAAO,CA0BT"}
1
+ {"version":3,"file":"containsAllTypesByName.d.ts","sourceRoot":"","sources":["../src/containsAllTypesByName.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAIjC;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,EAAE,CAAC,IAAI,EACb,QAAQ,EAAE,OAAO,EACjB,YAAY,EAAE,GAAG,CAAC,MAAM,CAAC,EACzB,eAAe,UAAQ,GACtB,OAAO,CA+BT"}
@@ -29,10 +29,12 @@ const ts = __importStar(require("typescript"));
29
29
  const typeFlagUtils_1 = require("./typeFlagUtils");
30
30
  /**
31
31
  * @param type Type being checked by name.
32
+ * @param allowAny Whether to consider `any` and `unknown` to match.
32
33
  * @param allowedNames Symbol names checking on the type.
33
- * @returns Whether the type is, extends, or contains all of the allowed names.
34
+ * @param matchAnyInstead Whether to instead just check if any parts match, rather than all parts.
35
+ * @returns Whether the type is, extends, or contains the allowed names (or all matches the allowed names, if mustMatchAll is true).
34
36
  */
35
- function containsAllTypesByName(type, allowAny, allowedNames) {
37
+ function containsAllTypesByName(type, allowAny, allowedNames, matchAnyInstead = false) {
36
38
  if ((0, typeFlagUtils_1.isTypeFlagSet)(type, ts.TypeFlags.Any | ts.TypeFlags.Unknown)) {
37
39
  return !allowAny;
38
40
  }
@@ -43,13 +45,17 @@ function containsAllTypesByName(type, allowAny, allowedNames) {
43
45
  if (symbol && allowedNames.has(symbol.name)) {
44
46
  return true;
45
47
  }
48
+ const predicate = (t) => containsAllTypesByName(t, allowAny, allowedNames, matchAnyInstead);
46
49
  if ((0, tsutils_1.isUnionOrIntersectionType)(type)) {
47
- return type.types.every(t => containsAllTypesByName(t, allowAny, allowedNames));
50
+ return matchAnyInstead
51
+ ? type.types.some(predicate)
52
+ : type.types.every(predicate);
48
53
  }
49
54
  const bases = type.getBaseTypes();
50
- return (typeof bases !== 'undefined' &&
51
- bases.length > 0 &&
52
- bases.every(t => containsAllTypesByName(t, allowAny, allowedNames)));
55
+ return (bases !== undefined &&
56
+ (matchAnyInstead
57
+ ? bases.some(predicate)
58
+ : bases.length > 0 && bases.every(predicate)));
53
59
  }
54
60
  exports.containsAllTypesByName = containsAllTypesByName;
55
61
  //# sourceMappingURL=containsAllTypesByName.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"containsAllTypesByName.js","sourceRoot":"","sources":["../src/containsAllTypesByName.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qCAAqE;AACrE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IAClC,QAAQ,CAAC,sBAAsB,CAAC,EAAE,OAAO,CAAC;CAC3C;AAED,eAAO,MAAM,yBAAyB;;;;;;;;CAQrC,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,mBAEzC,CAAC;AAoRF;;GAEG;AACH,iBAAS,cAAc,CACrB,OAAO,EAAE,EAAE,CAAC,WAAW,EACvB,IAAI,EAAE,EAAE,CAAC,IAAI,EACb,OAAO,GAAE,mBAAiD,GACzD,OAAO,CAKT;AAED,OAAO,EAAE,cAAc,EAAE,CAAC"}
1
+ {"version":3,"file":"isTypeReadonly.d.ts","sourceRoot":"","sources":["../src/isTypeReadonly.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAcjC,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,sBAAsB,CAAC,EAAE,OAAO,CAAC;CAC3C;AAED,eAAO,MAAM,yBAAyB;;;;;;;;CAQrC,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,mBAEzC,CAAC;AAkRF;;GAEG;AACH,iBAAS,cAAc,CACrB,OAAO,EAAE,EAAE,CAAC,WAAW,EACvB,IAAI,EAAE,EAAE,CAAC,IAAI,EACb,OAAO,GAAE,mBAAiD,GACzD,OAAO,CAKT;AAED,OAAO,EAAE,cAAc,EAAE,CAAC"}
@@ -27,6 +27,7 @@ exports.isTypeReadonly = exports.readonlynessOptionsDefaults = exports.readonlyn
27
27
  const utils_1 = require("@typescript-eslint/utils");
28
28
  const tsutils_1 = require("tsutils");
29
29
  const ts = __importStar(require("typescript"));
30
+ const getTypeArguments_1 = require("./getTypeArguments");
30
31
  const propertyTypes_1 = require("./propertyTypes");
31
32
  exports.readonlynessOptionsSchema = {
32
33
  type: 'object',
@@ -45,12 +46,9 @@ function hasSymbol(node) {
45
46
  }
46
47
  function isTypeReadonlyArrayOrTuple(checker, type, options, seenTypes) {
47
48
  function checkTypeArguments(arrayType) {
48
- var _a;
49
49
  const typeArguments =
50
50
  // getTypeArguments was only added in TS3.7
51
- checker.getTypeArguments
52
- ? checker.getTypeArguments(arrayType)
53
- : (_a = arrayType.typeArguments) !== null && _a !== void 0 ? _a : [];
51
+ (0, getTypeArguments_1.getTypeArguments)(arrayType, checker);
54
52
  // this shouldn't happen in reality as:
55
53
  // - tuples require at least 1 type argument
56
54
  // - ReadonlyArray requires at least 1 type argument
@@ -1 +1 @@
1
- {"version":3,"file":"isTypeReadonly.js","sourceRoot":"","sources":["../src/isTypeReadonly.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAAuD;AACvD,qCAQiB;AACjB,+CAAiC;AAEjC,mDAA0D;AAe7C,QAAA,yBAAyB,GAAG;IACvC,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,KAAK;IAC3B,UAAU,EAAE;QACV,sBAAsB,EAAE;YACtB,IAAI,EAAE,SAAS;SAChB;KACF;CACF,CAAC;AAEW,QAAA,2BAA2B,GAAwB;IAC9D,sBAAsB,EAAE,KAAK;CAC9B,CAAC;AAEF,SAAS,SAAS,CAAC,IAAa;IAC9B,OAAO,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC9D,CAAC;AAED,SAAS,0BAA0B,CACjC,OAAuB,EACvB,IAAa,EACb,OAA4B,EAC5B,SAAuB;IAEvB,SAAS,kBAAkB,CAAC,SAA2B;;QACrD,MAAM,aAAa;QACjB,2CAA2C;QAC3C,OAAO,CAAC,gBAAgB;YACtB,CAAC,CAAC,OAAO,CAAC,gBAAgB,CAAC,SAAS,CAAC;YACrC,CAAC,CAAC,MAAA,SAAS,CAAC,aAAa,mCAAI,EAAE,CAAC;QAEpC,uCAAuC;QACvC,4CAA4C;QAC5C,oDAAoD;QACpD,wBAAwB,CAAC,IAAI,aAAa,CAAC,MAAM,KAAK,CAAC,EAAE;YACvD,qCAA6B;SAC9B;QAED,+CAA+C;QAC/C,IACE,aAAa,CAA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C3E,OAAO,YAAY,CAAC;KACrB;IAED,uDAAuD;IACvD,sCAAsC;IACtC,IAAI,CAAC,IAAA,sBAAY,EAAC,IAAI,CAAC,EAAE;QACvB,qCAA6B;KAC9B;IAED,mCAAmC;IACnC,IACE,IAAI,CAAC,iBAAiB,EAAE,CAAC,MAAM,GAAG,CAAC;QACnC,IAAI,CAAC,aAAa,EAAE,CAAC,MAAM,KAAK,CAAC,EACjC;QACA,qCAA6B;KAC9B;IAED,MAAM,eAAe,GAAG,0BAA0B,CAChD,OAAO,EACP,IAAI,EACJ,OAAO,EACP,SAAS,CACV,CAAC;IACF,IAAI,eAAe,qCAA6B,EAAE;QAChD,OAAO,eAAe,CAAC;KACxB;IAED,MAAM,gBAAgB,GAAG,oBAAoB,CAC3C,OAAO,EACP,IAAI,EACJ,OAAO,EACP,SAAS,CACV,CAAC;IACF,0BAA0B,CAAC,IACzB,gBAAgB,qCAA6B,EAC7C;QACA,OAAO,gBAAgB,CAAC;KACzB;IAED,MAAM,IAAI,KAAK,CAAC,gBAAgB,CAAC,CAAC;AACpC,CAAC;AAED;;GAEG;AACH,SAAS,cAAc,CACrB,OAAuB,EACvB,IAAa,EACb,UAA+B,mCAA2B;IAE1D,OAAO,CACL,sBAAsB,CAAC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,GAAG,EAAE,CAAC;qCACpC,CACtB,CAAC;AACJ,CAAC;AAEQ,wCAAc"}
1
+ {"version":3,"file":"isTypeReadonly.js","sourceRoot":"","sources":["../src/isTypeReadonly.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAAuD;AACvD,qCAQiB;AACjB,+CAAiC;AAEjC,yDAAsD;AACtD,mDAA0D;AAe7C,QAAA,yBAAyB,GAAG;IACvC,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,KAAK;IAC3B,UAAU,EAAE;QACV,sBAAsB,EAAE;YACtB,IAAI,EAAE,SAAS;SAChB;KACF;CACF,CAAC;A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AC;AAED;;GAEG;AACH,SAAS,cAAc,CACrB,OAAuB,EACvB,IAAa,EACb,UAA+B,mCAA2B;IAE1D,OAAO,CACL,sBAAsB,CAAC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,GAAG,EAAE,CAAC;qCACpC,CACtB,CAAC;AACJ,CAAC;AAEQ,wCAAc"}
@@ -1 +1 @@
1
- {"version":3,"file":"typeFlagUtils.d.ts","sourceRoot":"","sources":["../src/typeFlagUtils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC;;GAEG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,GAAG,EAAE,CAAC,SAAS,CAMxD;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAC3B,IAAI,EAAE,EAAE,CAAC,IAAI,EACb,YAAY,EAAE,EAAE,CAAC,SAAS,EAC1B,UAAU,CAAC,EAAE,OAAO,GACnB,OAAO,CAQT"}
1
+ {"version":3,"file":"typeFlagUtils.d.ts","sourceRoot":"","sources":["../src/typeFlagUtils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC;;GAEG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,GAAG,EAAE,CAAC,SAAS,CAOxD;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAC3B,IAAI,EAAE,EAAE,CAAC,IAAI,EACb,YAAY,EAAE,EAAE,CAAC,SAAS,EAC1B,UAAU,CAAC,EAAE,OAAO,GACnB,OAAO,CAQT"}
@@ -30,6 +30,7 @@ const ts = __importStar(require("typescript"));
30
30
  * Gets all of the type flags in a type, iterating through unions automatically
31
31
  */
32
32
  function getTypeFlags(type) {
33
+ // @ts-expect-error Since typescript 5.0, this is invalid, but uses 0 as the default value of TypeFlags.
33
34
  let flags = 0;
34
35
  for (const t of (0, tsutils_1.unionTypeParts)(type)) {
35
36
  flags |= t.flags;
@@ -1 +1 @@
1
- {"version":3,"file":"typeFlagUtils.js","sourceRoot":"","sources":["../src/typeFlagUtils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qCAAyC;AACzC,+CAAiC;AAEjC;;GAEG;AACH,SAAgB,YAAY,CAAC,IAAa;IACxC,IAAI,KAAK,GAAiB,CAAC,CAAC;IAC5B,KAAK,MAAM,CAAC,IAAI,IAAA,wBAAc,EAAC,IAAI,CAAC,EAAE;QACpC,KAAK,IAAI,CAAC,CAAC,KAAK,CAAC;KAClB;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAND,oCAMC;AAED;;;GAGG;AACH,SAAgB,aAAa,CAC3B,IAAa,EACb,YAA0B,EAC1B,UAAoB;IAEpB,MAAM,KAAK,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC;IAEjC,IAAI,UAAU,IAAI,KAAK,GAAG,CAAC,EAAE,CAAC,SAAS,CAAC,GAAG,GAAG,EAAE,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE;QACnE,OAAO,IAAI,CAAC;KACb;IAED,OAAO,CAAC,KAAK,GAAG,YAAY,CAAC,KAAK,CAAC,CAAC;AACtC,CAAC;AAZD,sCAYC"}
1
+ {"version":3,"file":"typeFlagUtils.js","sourceRoot":"","sources":["../src/typeFlagUtils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qCAAyC;AACzC,+CAAiC;AAEjC;;GAEG;AACH,SAAgB,YAAY,CAAC,IAAa;IACxC,wGAAwG;IACxG,IAAI,KAAK,GAAiB,CAAC,CAAC;IAC5B,KAAK,MAAM,CAAC,IAAI,IAAA,wBAAc,EAAC,IAAI,CAAC,EAAE;QACpC,KAAK,IAAI,CAAC,CAAC,KAAK,CAAC;KAClB;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAPD,oCAOC;AAED;;;GAGG;AACH,SAAgB,aAAa,CAC3B,IAAa,EACb,YAA0B,EAC1B,UAAoB;IAEpB,MAAM,KAAK,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC;IAEjC,IAAI,UAAU,IAAI,KAAK,GAAG,CAAC,EAAE,CAAC,SAAS,CAAC,GAAG,GAAG,EAAE,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE;QACnE,OAAO,IAAI,CAAC;KACb;IAED,OAAO,CAAC,KAAK,GAAG,YAAY,CAAC,KAAK,CAAC,CAAC;AACtC,CAAC;AAZD,sCAYC"}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typescript-eslint/type-utils",
3
- "version": "5.43.0",
3
+ "version": "5.57.1",
4
4
  "description": "Type utilities for working with TypeScript + ESLint together",
5
5
  "keywords": [
6
6
  "eslint",
@@ -34,18 +34,18 @@
34
34
  "clean": "tsc -b tsconfig.build.json --clean",
35
35
  "postclean": "rimraf dist && rimraf _ts3.4 && rimraf coverage",
36
36
  "format": "prettier --write \"./**/*.{ts,mts,cts,tsx,js,mjs,cjs,jsx,json,md,css}\" --ignore-path ../../.prettierignore",
37
- "lint": "eslint . --ignore-path='../../.eslintignore'",
37
+ "lint": "nx lint",
38
38
  "test": "jest --coverage",
39
39
  "typecheck": "tsc -p tsconfig.json --noEmit"
40
40
  },
41
41
  "dependencies": {
42
- "@typescript-eslint/typescript-estree": "5.43.0",
43
- "@typescript-eslint/utils": "5.43.0",
42
+ "@typescript-eslint/typescript-estree": "5.57.1",
43
+ "@typescript-eslint/utils": "5.57.1",
44
44
  "debug": "^4.3.4",
45
45
  "tsutils": "^3.21.0"
46
46
  },
47
47
  "devDependencies": {
48
- "@typescript-eslint/parser": "5.43.0",
48
+ "@typescript-eslint/parser": "5.57.1",
49
49
  "typescript": "*"
50
50
  },
51
51
  "peerDependencies": {
@@ -67,5 +67,5 @@
67
67
  ]
68
68
  }
69
69
  },
70
- "gitHead": "8af1b4d970438b27ea041717bddadc41af8fc72a"
70
+ "gitHead": "772b19cd4b3d565670c07a1a42b36ee082a20387"
71
71
  }
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2019 TypeScript ESLint and other contributors
3
+ Copyright (c) 2019 typescript-eslint and other contributors
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -1,17 +1,12 @@
1
- <h1 align="center">TypeScript-ESTree Types</h1>
1
+ # `@typescript-eslint/types`
2
2
 
3
- <p align="center">
4
- <img src="https://github.com/typescript-eslint/typescript-eslint/workflows/CI/badge.svg" alt="CI" />
5
- <a href="https://www.npmjs.com/package/@typescript-eslint/types"><img src="https://img.shields.io/npm/v/@typescript-eslint/types.svg?style=flat-square" alt="NPM Version" /></a>
6
- <a href="https://www.npmjs.com/package/@typescript-eslint/types"><img src="https://img.shields.io/npm/dm/@typescript-eslint/types.svg?style=flat-square" alt="NPM Downloads" /></a>
7
- </p>
3
+ > Types for the TypeScript-ESTree AST spec
8
4
 
9
5
  This package exists to help us reduce cycles and provide lighter-weight packages at runtime.
10
- You probably don't want to use it directly.
11
6
 
12
- If you're building an ESLint plugin, consider using [`@typescript-eslint/utils`](../utils).
13
- If you're parsing TypeScript code, consider using [`@typescript-eslint/typescript-estree`](../typescript-estree).
7
+ ## Internal Package
14
8
 
15
- ## Contributing
9
+ This is an _internal package_ to the [typescript-eslint monorepo](https://github.com/typescript-eslint/typescript-eslint).
10
+ You likely don't want to use it directly.
16
11
 
17
- [See the contributing guide here](../../CONTRIBUTING.md)
12
+ 👉 See **https://typescript-eslint.io** for docs on typescript-eslint.
@@ -9,9 +9,19 @@
9
9
  **********************************************/
10
10
  import { SyntaxKind } from 'typescript';
11
11
  export declare type Accessibility = 'private' | 'protected' | 'public';
12
+ export declare type AccessorProperty = AccessorPropertyComputedName | AccessorPropertyNonComputedName;
13
+ export declare interface AccessorPropertyComputedName extends PropertyDefinitionComputedNameBase {
14
+ type: AST_NODE_TYPES.AccessorProperty;
15
+ }
16
+ export declare interface AccessorPropertyNonComputedName extends PropertyDefinitionNonComputedNameBase {
17
+ type: AST_NODE_TYPES.AccessorProperty;
18
+ }
12
19
  export declare interface ArrayExpression extends BaseNode {
13
20
  type: AST_NODE_TYPES.ArrayExpression;
14
- elements: (Expression | SpreadElement)[];
21
+ /**
22
+ * an element will be `null` in the case of a sparse array: `[1, ,3]`
23
+ */
24
+ elements: (Expression | SpreadElement | null)[];
15
25
  }
16
26
  export declare interface ArrayPattern extends BaseNode {
17
27
  type: AST_NODE_TYPES.ArrayPattern;
@@ -64,6 +74,7 @@ export declare interface AssignmentPattern extends BaseNode {
64
74
  decorators?: Decorator[];
65
75
  }
66
76
  export declare enum AST_NODE_TYPES {
77
+ AccessorProperty = "AccessorProperty",
67
78
  ArrayExpression = "ArrayExpression",
68
79
  ArrayPattern = "ArrayPattern",
69
80
  ArrowFunctionExpression = "ArrowFunctionExpression",
@@ -155,6 +166,7 @@ export declare enum AST_NODE_TYPES {
155
166
  /**
156
167
  * TS-prefixed nodes
157
168
  */
169
+ TSAbstractAccessorProperty = "TSAbstractAccessorProperty",
158
170
  TSAbstractKeyword = "TSAbstractKeyword",
159
171
  TSAbstractMethodDefinition = "TSAbstractMethodDefinition",
160
172
  TSAbstractPropertyDefinition = "TSAbstractPropertyDefinition",
@@ -210,6 +222,7 @@ export declare enum AST_NODE_TYPES {
210
222
  TSQualifiedName = "TSQualifiedName",
211
223
  TSReadonlyKeyword = "TSReadonlyKeyword",
212
224
  TSRestType = "TSRestType",
225
+ TSSatisfiesExpression = "TSSatisfiesExpression",
213
226
  TSStaticKeyword = "TSStaticKeyword",
214
227
  TSStringKeyword = "TSStringKeyword",
215
228
  TSSymbolKeyword = "TSSymbolKeyword",
@@ -252,12 +265,6 @@ export declare interface AwaitExpression extends BaseNode {
252
265
  argument: Expression;
253
266
  }
254
267
  export declare interface BaseNode extends NodeOrTokenData {
255
- /**
256
- * The parent node of the current node
257
- *
258
- * This is added in the @typescript-eslint/types package as ESLint adds it
259
- * while traversing.
260
- */
261
268
  type: AST_NODE_TYPES;
262
269
  }
263
270
  declare interface BaseToken extends NodeOrTokenData {
@@ -384,7 +391,7 @@ export declare interface ClassDeclarationWithName extends ClassDeclarationBase {
384
391
  export declare interface ClassDeclarationWithOptionalName extends ClassDeclarationBase {
385
392
  id: Identifier | null;
386
393
  }
387
- export declare type ClassElement = MethodDefinition | PropertyDefinition | StaticBlock | TSAbstractMethodDefinition | TSAbstractPropertyDefinition | TSIndexSignature;
394
+ export declare type ClassElement = AccessorProperty | MethodDefinition | PropertyDefinition | StaticBlock | TSAbstractAccessorProperty | TSAbstractMethodDefinition | TSAbstractPropertyDefinition | TSIndexSignature;
388
395
  export declare interface ClassExpression extends ClassBase {
389
396
  type: AST_NODE_TYPES.ClassExpression;
390
397
  abstract?: undefined;
@@ -526,7 +533,7 @@ export declare interface ExportSpecifier extends BaseNode {
526
533
  exported: Identifier;
527
534
  exportKind: ExportKind;
528
535
  }
529
- export declare type Expression = ArrayExpression | ArrayPattern | ArrowFunctionExpression | AssignmentExpression | AwaitExpression | BinaryExpression | CallExpression | ChainExpression | ClassExpression | ConditionalExpression | FunctionExpression | Identifier | ImportExpression | JSXElement | JSXFragment | LiteralExpression | LogicalExpression | MemberExpression | MetaProperty | NewExpression | ObjectExpression | ObjectPattern | SequenceExpression | Super | TaggedTemplateExpression | TemplateLiteral | ThisExpression | TSAsExpression | TSInstantiationExpression | TSNonNullExpression | TSTypeAssertion | UnaryExpression | UpdateExpression | YieldExpression;
536
+ export declare type Expression = ArrayExpression | ArrayPattern | ArrowFunctionExpression | AssignmentExpression | AwaitExpression | BinaryExpression | CallExpression | ChainExpression | ClassExpression | ConditionalExpression | FunctionExpression | Identifier | ImportExpression | JSXElement | JSXFragment | LiteralExpression | LogicalExpression | MemberExpression | MetaProperty | NewExpression | ObjectExpression | ObjectPattern | SequenceExpression | Super | TaggedTemplateExpression | TemplateLiteral | ThisExpression | TSAsExpression | TSInstantiationExpression | TSNonNullExpression | TSSatisfiesExpression | TSTypeAssertion | UnaryExpression | UpdateExpression | YieldExpression;
530
537
  export declare interface ExpressionStatement extends BaseNode {
531
538
  type: AST_NODE_TYPES.ExpressionStatement;
532
539
  expression: Expression;
@@ -732,7 +739,7 @@ export declare interface JSXElement extends BaseNode {
732
739
  export declare interface JSXEmptyExpression extends BaseNode {
733
740
  type: AST_NODE_TYPES.JSXEmptyExpression;
734
741
  }
735
- export declare type JSXExpression = JSXEmptyExpression | JSXExpressionContainer | JSXSpreadChild;
742
+ export declare type JSXExpression = JSXExpressionContainer | JSXSpreadChild;
736
743
  export declare interface JSXExpressionContainer extends BaseNode {
737
744
  type: AST_NODE_TYPES.JSXExpressionContainer;
738
745
  expression: Expression | JSXEmptyExpression;
@@ -814,7 +821,7 @@ export declare interface LogicalExpression extends BaseNode {
814
821
  }
815
822
  export declare type MemberExpression = MemberExpressionComputedName | MemberExpressionNonComputedName;
816
823
  declare interface MemberExpressionBase extends BaseNode {
817
- object: LeftHandSideExpression;
824
+ object: Expression;
818
825
  property: Expression | Identifier | PrivateIdentifier;
819
826
  computed: boolean;
820
827
  optional: boolean;
@@ -863,6 +870,7 @@ declare interface MethodDefinitionNonComputedNameBase extends MethodDefinitionBa
863
870
  computed: false;
864
871
  }
865
872
  export declare type Modifier = TSAbstractKeyword | TSAsyncKeyword | TSPrivateKeyword | TSProtectedKeyword | TSPublicKeyword | TSReadonlyKeyword | TSStaticKeyword;
873
+ declare type ModuleBody_TODOFixThis = TSModuleBlock | TSModuleDeclaration;
866
874
  export declare type NamedExportDeclarations = ClassDeclarationWithName | ClassDeclarationWithOptionalName | FunctionDeclarationWithName | FunctionDeclarationWithOptionalName | TSDeclareFunction | TSEnumDeclaration | TSInterfaceDeclaration | TSModuleDeclaration | TSTypeAliasDeclaration | VariableDeclaration;
867
875
  export declare interface NewExpression extends BaseNode {
868
876
  type: AST_NODE_TYPES.NewExpression;
@@ -870,7 +878,7 @@ export declare interface NewExpression extends BaseNode {
870
878
  arguments: CallExpressionArgument[];
871
879
  typeParameters?: TSTypeParameterInstantiation;
872
880
  }
873
- export declare type Node = ArrayExpression | ArrayPattern | ArrowFunctionExpression | AssignmentExpression | AssignmentPattern | AwaitExpression | BinaryExpression | BlockStatement | BreakStatement | CallExpression | CatchClause | ChainExpression | ClassBody | ClassDeclaration | ClassExpression | ConditionalExpression | ContinueStatement | DebuggerStatement | Decorator | DoWhileStatement | EmptyStatement | ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | ExportSpecifier | ExpressionStatement | ForInStatement | ForOfStatement | ForStatement | FunctionDeclaration | FunctionExpression | Identifier | IfStatement | ImportAttribute | ImportDeclaration | ImportDefaultSpecifier | ImportExpression | ImportNamespaceSpecifier | ImportSpecifier | JSXAttribute | JSXClosingElement | JSXClosingFragment | JSXElement | JSXEmptyExpression | JSXExpressionContainer | JSXFragment | JSXIdentifier | JSXMemberExpression | JSXNamespacedName | JSXOpeningElement | JSXOpeningFragment | JSXSpreadAttribute | JSXSpreadChild | JSXText | LabeledStatement | Literal | LogicalExpression | MemberExpression | MetaProperty | MethodDefinition | NewExpression | ObjectExpression | ObjectPattern | PrivateIdentifier | Program | Property | PropertyDefinition | RestElement | ReturnStatement | SequenceExpression | SpreadElement | StaticBlock | Super | SwitchCase | SwitchStatement | TaggedTemplateExpression | TemplateElement | TemplateLiteral | ThisExpression | ThrowStatement | TryStatement | TSAbstractKeyword | TSAbstractMethodDefinition | TSAbstractPropertyDefinition | TSAnyKeyword | TSArrayType | TSAsExpression | TSAsyncKeyword | TSBigIntKeyword | TSBooleanKeyword | TSCallSignatureDeclaration | TSClassImplements | TSConditionalType | TSConstructorType | TSConstructSignatureDeclaration | TSDeclareFunction | TSDeclareKeyword | TSEmptyBodyFunctionExpression | TSEnumDeclaration | TSEnumMember | TSExportAssignment | TSExportKeyword | TSExternalModuleReference | TSFunctionType | TSImportEqualsDeclaration | TSImportType | TSIndexedAccessType | TSIndexSignature | TSInferType | TSInstantiationExpression | TSInterfaceBody | TSInterfaceDeclaration | TSInterfaceHeritage | TSIntersectionType | TSIntrinsicKeyword | TSLiteralType | TSMappedType | TSMethodSignature | TSModuleBlock | TSModuleDeclaration | TSNamedTupleMember | TSNamespaceExportDeclaration | TSNeverKeyword | TSNonNullExpression | TSNullKeyword | TSNumberKeyword | TSObjectKeyword | TSOptionalType | TSParameterProperty | TSPrivateKeyword | TSPropertySignature | TSProtectedKeyword | TSPublicKeyword | TSQualifiedName | TSReadonlyKeyword | TSRestType | TSStaticKeyword | TSStringKeyword | TSSymbolKeyword | TSTemplateLiteralType | TSThisType | TSTupleType | TSTypeAliasDeclaration | TSTypeAnnotation | TSTypeAssertion | TSTypeLiteral | TSTypeOperator | TSTypeParameter | TSTypeParameterDeclaration | TSTypeParameterInstantiation | TSTypePredicate | TSTypeQuery | TSTypeReference | TSUndefinedKeyword | TSUnionType | TSUnknownKeyword | TSVoidKeyword | UnaryExpression | UpdateExpression | VariableDeclaration | VariableDeclarator | WhileStatement | WithStatement | YieldExpression;
881
+ export declare type Node = AccessorProperty | ArrayExpression | ArrayPattern | ArrowFunctionExpression | AssignmentExpression | AssignmentPattern | AwaitExpression | BinaryExpression | BlockStatement | BreakStatement | CallExpression | CatchClause | ChainExpression | ClassBody | ClassDeclaration | ClassExpression | ConditionalExpression | ContinueStatement | DebuggerStatement | Decorator | DoWhileStatement | EmptyStatement | ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | ExportSpecifier | ExpressionStatement | ForInStatement | ForOfStatement | ForStatement | FunctionDeclaration | FunctionExpression | Identifier | IfStatement | ImportAttribute | ImportDeclaration | ImportDefaultSpecifier | ImportExpression | ImportNamespaceSpecifier | ImportSpecifier | JSXAttribute | JSXClosingElement | JSXClosingFragment | JSXElement | JSXEmptyExpression | JSXExpressionContainer | JSXFragment | JSXIdentifier | JSXMemberExpression | JSXNamespacedName | JSXOpeningElement | JSXOpeningFragment | JSXSpreadAttribute | JSXSpreadChild | JSXText | LabeledStatement | Literal | LogicalExpression | MemberExpression | MetaProperty | MethodDefinition | NewExpression | ObjectExpression | ObjectPattern | PrivateIdentifier | Program | Property | PropertyDefinition | RestElement | ReturnStatement | SequenceExpression | SpreadElement | StaticBlock | Super | SwitchCase | SwitchStatement | TaggedTemplateExpression | TemplateElement | TemplateLiteral | ThisExpression | ThrowStatement | TryStatement | TSAbstractAccessorProperty | TSAbstractKeyword | TSAbstractMethodDefinition | TSAbstractPropertyDefinition | TSAnyKeyword | TSArrayType | TSAsExpression | TSAsyncKeyword | TSBigIntKeyword | TSBooleanKeyword | TSCallSignatureDeclaration | TSClassImplements | TSConditionalType | TSConstructorType | TSConstructSignatureDeclaration | TSDeclareFunction | TSDeclareKeyword | TSEmptyBodyFunctionExpression | TSEnumDeclaration | TSEnumMember | TSExportAssignment | TSExportKeyword | TSExternalModuleReference | TSFunctionType | TSImportEqualsDeclaration | TSImportType | TSIndexedAccessType | TSIndexSignature | TSInferType | TSInstantiationExpression | TSInterfaceBody | TSInterfaceDeclaration | TSInterfaceHeritage | TSIntersectionType | TSIntrinsicKeyword | TSLiteralType | TSMappedType | TSMethodSignature | TSModuleBlock | TSModuleDeclaration | TSNamedTupleMember | TSNamespaceExportDeclaration | TSNeverKeyword | TSNonNullExpression | TSNullKeyword | TSNumberKeyword | TSObjectKeyword | TSOptionalType | TSParameterProperty | TSPrivateKeyword | TSPropertySignature | TSProtectedKeyword | TSPublicKeyword | TSQualifiedName | TSReadonlyKeyword | TSRestType | TSSatisfiesExpression | TSStaticKeyword | TSStringKeyword | TSSymbolKeyword | TSTemplateLiteralType | TSThisType | TSTupleType | TSTypeAliasDeclaration | TSTypeAnnotation | TSTypeAssertion | TSTypeLiteral | TSTypeOperator | TSTypeParameter | TSTypeParameterDeclaration | TSTypeParameterInstantiation | TSTypePredicate | TSTypeQuery | TSTypeReference | TSUndefinedKeyword | TSUnionType | TSUnknownKeyword | TSVoidKeyword | UnaryExpression | UpdateExpression | VariableDeclaration | VariableDeclarator | WhileStatement | WithStatement | YieldExpression;
874
882
  declare interface NodeOrTokenData {
875
883
  /**
876
884
  * The source location information of the node.
@@ -903,7 +911,7 @@ export declare interface ObjectExpression extends BaseNode {
903
911
  type: AST_NODE_TYPES.ObjectExpression;
904
912
  properties: ObjectLiteralElement[];
905
913
  }
906
- export declare type ObjectLiteralElement = MethodDefinition | Property | SpreadElement;
914
+ export declare type ObjectLiteralElement = Property | SpreadElement;
907
915
  export declare type ObjectLiteralElementLike = ObjectLiteralElement;
908
916
  export declare interface ObjectPattern extends BaseNode {
909
917
  type: AST_NODE_TYPES.ObjectPattern;
@@ -1155,6 +1163,15 @@ export declare interface TryStatement extends BaseNode {
1155
1163
  handler: CatchClause | null;
1156
1164
  finalizer: BlockStatement | null;
1157
1165
  }
1166
+ export declare type TSAbstractAccessorProperty = TSAbstractAccessorPropertyComputedName | TSAbstractAccessorPropertyNonComputedName;
1167
+ export declare interface TSAbstractAccessorPropertyComputedName extends PropertyDefinitionComputedNameBase {
1168
+ type: AST_NODE_TYPES.TSAbstractAccessorProperty;
1169
+ value: null;
1170
+ }
1171
+ export declare interface TSAbstractAccessorPropertyNonComputedName extends PropertyDefinitionNonComputedNameBase {
1172
+ type: AST_NODE_TYPES.TSAbstractAccessorProperty;
1173
+ value: null;
1174
+ }
1158
1175
  export declare interface TSAbstractKeyword extends BaseNode {
1159
1176
  type: AST_NODE_TYPES.TSAbstractKeyword;
1160
1177
  }
@@ -1437,7 +1454,8 @@ export declare interface TSModuleBlock extends BaseNode {
1437
1454
  type: AST_NODE_TYPES.TSModuleBlock;
1438
1455
  body: ProgramStatement[];
1439
1456
  }
1440
- export declare interface TSModuleDeclaration extends BaseNode {
1457
+ export declare type TSModuleDeclaration = TSModuleDeclarationGlobal | TSModuleDeclarationModule | TSModuleDeclarationNamespace;
1458
+ declare interface TSModuleDeclarationBase extends BaseNode {
1441
1459
  type: AST_NODE_TYPES.TSModuleDeclaration;
1442
1460
  /**
1443
1461
  * The name of the module
@@ -1447,13 +1465,13 @@ export declare interface TSModuleDeclaration extends BaseNode {
1447
1465
  * module 'a' {}
1448
1466
  * ```
1449
1467
  */
1450
- id: Identifier | Literal;
1468
+ id: Identifier | StringLiteral;
1451
1469
  /**
1452
1470
  * The body of the module.
1453
1471
  * This can only be `undefined` for the code `declare module 'mod';`
1454
1472
  * This will be a `TSModuleDeclaration` if the name is "nested" (`Foo.Bar`).
1455
1473
  */
1456
- body?: TSModuleBlock | TSModuleDeclaration;
1474
+ body?: ModuleBody_TODOFixThis;
1457
1475
  /**
1458
1476
  * Whether this is a global declaration
1459
1477
  * ```
@@ -1469,6 +1487,56 @@ export declare interface TSModuleDeclaration extends BaseNode {
1469
1487
  */
1470
1488
  declare?: boolean;
1471
1489
  modifiers?: Modifier[];
1490
+ /**
1491
+ * The keyword used to define this module declaration
1492
+ * ```
1493
+ * namespace Foo {}
1494
+ * ^^^^^^^^^
1495
+ *
1496
+ * module 'foo' {}
1497
+ * ^^^^^^
1498
+ *
1499
+ * declare global {}
1500
+ * ^^^^^^
1501
+ * ```
1502
+ */
1503
+ kind: TSModuleDeclarationKind;
1504
+ }
1505
+ export declare interface TSModuleDeclarationGlobal extends TSModuleDeclarationBase {
1506
+ kind: 'global';
1507
+ body: TSModuleBlock;
1508
+ id: Identifier;
1509
+ global: true;
1510
+ }
1511
+ export declare type TSModuleDeclarationKind = 'global' | 'module' | 'namespace';
1512
+ export declare type TSModuleDeclarationModule = TSModuleDeclarationModuleWithIdentifierId | TSModuleDeclarationModuleWithStringId;
1513
+ declare interface TSModuleDeclarationModuleBase extends TSModuleDeclarationBase {
1514
+ kind: 'module';
1515
+ global?: undefined;
1516
+ }
1517
+ export declare interface TSModuleDeclarationModuleWithIdentifierId extends TSModuleDeclarationModuleBase {
1518
+ kind: 'module';
1519
+ id: Identifier;
1520
+ body: ModuleBody_TODOFixThis;
1521
+ }
1522
+ export declare type TSModuleDeclarationModuleWithStringId = TSModuleDeclarationModuleWithStringIdDeclared | TSModuleDeclarationModuleWithStringIdNotDeclared;
1523
+ export declare interface TSModuleDeclarationModuleWithStringIdDeclared extends TSModuleDeclarationModuleBase {
1524
+ kind: 'module';
1525
+ id: StringLiteral;
1526
+ declare: true;
1527
+ body?: TSModuleBlock;
1528
+ }
1529
+ export declare interface TSModuleDeclarationModuleWithStringIdNotDeclared extends TSModuleDeclarationModuleBase {
1530
+ kind: 'module';
1531
+ id: StringLiteral;
1532
+ declare: false;
1533
+ body: TSModuleBlock;
1534
+ }
1535
+ export declare interface TSModuleDeclarationNamespace extends TSModuleDeclarationBase {
1536
+ kind: 'namespace';
1537
+ id: Identifier;
1538
+ body: ModuleBody_TODOFixThis;
1539
+ global?: undefined;
1472
1540
  }
1473
1541
  export declare interface TSNamedTupleMember extends BaseNode {
1474
1542
  type: AST_NODE_TYPES.TSNamedTupleMember;
@@ -1555,6 +1623,11 @@ export declare interface TSRestType extends BaseNode {
1555
1623
  type: AST_NODE_TYPES.TSRestType;
1556
1624
  typeAnnotation: TypeNode;
1557
1625
  }
1626
+ export declare interface TSSatisfiesExpression extends BaseNode {
1627
+ type: AST_NODE_TYPES.TSSatisfiesExpression;
1628
+ expression: Expression;
1629
+ typeAnnotation: TypeNode;
1630
+ }
1558
1631
  export declare interface TSStaticKeyword extends BaseNode {
1559
1632
  type: AST_NODE_TYPES.TSStaticKeyword;
1560
1633
  }
@@ -1624,6 +1697,7 @@ export declare interface TSTypeParameter extends BaseNode {
1624
1697
  default?: TypeNode;
1625
1698
  in: boolean;
1626
1699
  out: boolean;
1700
+ const: boolean;
1627
1701
  }
1628
1702
  export declare interface TSTypeParameterDeclaration extends BaseNode {
1629
1703
  type: AST_NODE_TYPES.TSTypeParameterDeclaration;
@@ -1,3 +1,3 @@
1
- declare type Lib = 'es5' | 'es6' | 'es2015' | 'es7' | 'es2016' | 'es2017' | 'es2018' | 'es2019' | 'es2020' | 'es2021' | 'es2022' | 'esnext' | 'dom' | 'dom.iterable' | 'webworker' | 'webworker.importscripts' | 'webworker.iterable' | 'scripthost' | 'es2015.core' | 'es2015.collection' | 'es2015.generator' | 'es2015.iterable' | 'es2015.promise' | 'es2015.proxy' | 'es2015.reflect' | 'es2015.symbol' | 'es2015.symbol.wellknown' | 'es2016.array.include' | 'es2017.object' | 'es2017.sharedmemory' | 'es2017.string' | 'es2017.intl' | 'es2017.typedarrays' | 'es2018.asyncgenerator' | 'es2018.asynciterable' | 'es2018.intl' | 'es2018.promise' | 'es2018.regexp' | 'es2019.array' | 'es2019.object' | 'es2019.string' | 'es2019.symbol' | 'es2020.bigint' | 'es2020.date' | 'es2020.promise' | 'es2020.sharedmemory' | 'es2020.string' | 'es2020.symbol.wellknown' | 'es2020.intl' | 'es2020.number' | 'es2021.promise' | 'es2021.string' | 'es2021.weakref' | 'es2021.intl' | 'es2022.array' | 'es2022.error' | 'es2022.intl' | 'es2022.object' | 'es2022.sharedmemory' | 'es2022.string' | 'esnext.array' | 'esnext.symbol' | 'esnext.asynciterable' | 'esnext.intl' | 'esnext.bigint' | 'esnext.string' | 'esnext.promise' | 'esnext.weakref' | 'es2016.full' | 'es2017.full' | 'es2018.full' | 'es2019.full' | 'es2020.full' | 'es2021.full' | 'es2022.full' | 'esnext.full' | 'lib';
1
+ type Lib = 'es5' | 'es6' | 'es2015' | 'es7' | 'es2016' | 'es2017' | 'es2018' | 'es2019' | 'es2020' | 'es2021' | 'es2022' | 'es2023' | 'esnext' | 'dom' | 'dom.iterable' | 'webworker' | 'webworker.importscripts' | 'webworker.iterable' | 'scripthost' | 'es2015.core' | 'es2015.collection' | 'es2015.generator' | 'es2015.iterable' | 'es2015.promise' | 'es2015.proxy' | 'es2015.reflect' | 'es2015.symbol' | 'es2015.symbol.wellknown' | 'es2016.array.include' | 'es2017.object' | 'es2017.sharedmemory' | 'es2017.string' | 'es2017.intl' | 'es2017.typedarrays' | 'es2018.asyncgenerator' | 'es2018.asynciterable' | 'es2018.intl' | 'es2018.promise' | 'es2018.regexp' | 'es2019.array' | 'es2019.object' | 'es2019.string' | 'es2019.symbol' | 'es2019.intl' | 'es2020.bigint' | 'es2020.date' | 'es2020.promise' | 'es2020.sharedmemory' | 'es2020.string' | 'es2020.symbol.wellknown' | 'es2020.intl' | 'es2020.number' | 'es2021.promise' | 'es2021.string' | 'es2021.weakref' | 'es2021.intl' | 'es2022.array' | 'es2022.error' | 'es2022.intl' | 'es2022.object' | 'es2022.sharedmemory' | 'es2022.string' | 'es2022.regexp' | 'es2023.array' | 'esnext.array' | 'esnext.symbol' | 'esnext.asynciterable' | 'esnext.intl' | 'esnext.bigint' | 'esnext.string' | 'esnext.promise' | 'esnext.weakref' | 'decorators' | 'decorators.legacy' | 'es2016.full' | 'es2017.full' | 'es2018.full' | 'es2019.full' | 'es2020.full' | 'es2021.full' | 'es2022.full' | 'es2023.full' | 'esnext.full' | 'lib';
2
2
  export { Lib };
3
3
  //# sourceMappingURL=lib.d.ts.map
@@ -1,8 +1,9 @@
1
1
  import { Program } from 'typescript';
2
2
  import { Lib } from './lib';
3
- declare type DebugLevel = boolean | ('typescript-eslint' | 'eslint' | 'typescript')[];
4
- declare type EcmaVersion = 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 2015 | 2016 | 2017 | 2018 | 2019 | 2020 | 2021 | 2022;
5
- declare type SourceType = 'script' | 'module';
3
+ type DebugLevel = boolean | ('typescript-eslint' | 'eslint' | 'typescript')[];
4
+ type CacheDurationSeconds = number | 'Infinity';
5
+ type EcmaVersion = 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 2015 | 2016 | 2017 | 2018 | 2019 | 2020 | 2021 | 2022;
6
+ type SourceType = 'script' | 'module';
6
7
  interface ParserOptions {
7
8
  ecmaFeatures?: {
8
9
  globalReturn?: boolean;
@@ -22,7 +23,7 @@ interface ParserOptions {
22
23
  filePath?: string;
23
24
  loc?: boolean;
24
25
  program?: Program;
25
- project?: string | string[];
26
+ project?: string | string[] | true;
26
27
  projectFolderIgnoreList?: (string | RegExp)[];
27
28
  range?: boolean;
28
29
  sourceType?: SourceType;
@@ -30,7 +31,10 @@ interface ParserOptions {
30
31
  tsconfigRootDir?: string;
31
32
  warnOnUnsupportedTypeScriptVersion?: boolean;
32
33
  moduleResolver?: string;
34
+ cacheLifetime?: {
35
+ glob?: CacheDurationSeconds;
36
+ };
33
37
  [additionalProperties: string]: unknown;
34
38
  }
35
- export { DebugLevel, EcmaVersion, ParserOptions, SourceType };
39
+ export { CacheDurationSeconds, DebugLevel, EcmaVersion, ParserOptions, SourceType, };
36
40
  //# sourceMappingURL=parser-options.d.ts.map