@eslint-react/jsx 0.8.9-beta.2 → 0.8.9

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 (658) hide show
  1. package/{node_modules/micro-memoize/LICENSE → LICENSE} +1 -1
  2. package/package.json +5 -12
  3. package/node_modules/@eslint-react/ast/dist/index.cjs +0 -931
  4. package/node_modules/@eslint-react/ast/dist/index.d.mts +0 -1177
  5. package/node_modules/@eslint-react/ast/dist/index.d.ts +0 -1177
  6. package/node_modules/@eslint-react/ast/dist/index.js +0 -931
  7. package/node_modules/@eslint-react/ast/dist/index.mjs +0 -852
  8. package/node_modules/@eslint-react/ast/package.json +0 -53
  9. package/node_modules/@eslint-react/shared/dist/index.cjs +0 -424
  10. package/node_modules/@eslint-react/shared/dist/index.d.mts +0 -128
  11. package/node_modules/@eslint-react/shared/dist/index.d.ts +0 -128
  12. package/node_modules/@eslint-react/shared/dist/index.js +0 -424
  13. package/node_modules/@eslint-react/shared/dist/index.mjs +0 -390
  14. package/node_modules/@eslint-react/shared/package.json +0 -49
  15. package/node_modules/@eslint-react/tools/dist/index.cjs +0 -8208
  16. package/node_modules/@eslint-react/tools/dist/index.d.mts +0 -173
  17. package/node_modules/@eslint-react/tools/dist/index.d.ts +0 -173
  18. package/node_modules/@eslint-react/tools/dist/index.js +0 -8208
  19. package/node_modules/@eslint-react/tools/dist/index.mjs +0 -8187
  20. package/node_modules/@eslint-react/tools/package.json +0 -46
  21. package/node_modules/@eslint-react/types/dist/index.cjs +0 -2
  22. package/node_modules/@eslint-react/types/dist/index.d.mts +0 -10
  23. package/node_modules/@eslint-react/types/dist/index.d.ts +0 -10
  24. package/node_modules/@eslint-react/types/dist/index.js +0 -2
  25. package/node_modules/@eslint-react/types/dist/index.mjs +0 -1
  26. package/node_modules/@eslint-react/types/package.json +0 -49
  27. package/node_modules/@typescript-eslint/scope-manager/LICENSE +0 -21
  28. package/node_modules/@typescript-eslint/scope-manager/README.md +0 -10
  29. package/node_modules/@typescript-eslint/scope-manager/dist/ID.d.ts +0 -4
  30. package/node_modules/@typescript-eslint/scope-manager/dist/ID.d.ts.map +0 -1
  31. package/node_modules/@typescript-eslint/scope-manager/dist/ID.js +0 -21
  32. package/node_modules/@typescript-eslint/scope-manager/dist/ID.js.map +0 -1
  33. package/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.d.ts +0 -75
  34. package/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.d.ts.map +0 -1
  35. package/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.js +0 -185
  36. package/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.js.map +0 -1
  37. package/node_modules/@typescript-eslint/scope-manager/dist/analyze.d.ts +0 -56
  38. package/node_modules/@typescript-eslint/scope-manager/dist/analyze.d.ts.map +0 -1
  39. package/node_modules/@typescript-eslint/scope-manager/dist/analyze.js +0 -42
  40. package/node_modules/@typescript-eslint/scope-manager/dist/analyze.js.map +0 -1
  41. package/node_modules/@typescript-eslint/scope-manager/dist/assert.d.ts +0 -3
  42. package/node_modules/@typescript-eslint/scope-manager/dist/assert.d.ts.map +0 -1
  43. package/node_modules/@typescript-eslint/scope-manager/dist/assert.js +0 -11
  44. package/node_modules/@typescript-eslint/scope-manager/dist/assert.js.map +0 -1
  45. package/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.d.ts +0 -10
  46. package/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.d.ts.map +0 -1
  47. package/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.js +0 -14
  48. package/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.js.map +0 -1
  49. package/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.d.ts +0 -10
  50. package/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.d.ts.map +0 -1
  51. package/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.js +0 -14
  52. package/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.js.map +0 -1
  53. package/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.d.ts +0 -14
  54. package/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.d.ts.map +0 -1
  55. package/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.js +0 -3
  56. package/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.js.map +0 -1
  57. package/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.d.ts +0 -39
  58. package/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.d.ts.map +0 -1
  59. package/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.js +0 -19
  60. package/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.js.map +0 -1
  61. package/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.d.ts +0 -15
  62. package/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.d.ts.map +0 -1
  63. package/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.js +0 -18
  64. package/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.js.map +0 -1
  65. package/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.d.ts +0 -10
  66. package/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.d.ts.map +0 -1
  67. package/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.js +0 -14
  68. package/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.js.map +0 -1
  69. package/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.d.ts +0 -10
  70. package/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.d.ts.map +0 -1
  71. package/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.js +0 -14
  72. package/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.js.map +0 -1
  73. package/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.d.ts +0 -11
  74. package/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.d.ts.map +0 -1
  75. package/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.js +0 -14
  76. package/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.js.map +0 -1
  77. package/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.d.ts +0 -14
  78. package/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.d.ts.map +0 -1
  79. package/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.js +0 -15
  80. package/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.js.map +0 -1
  81. package/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.d.ts +0 -10
  82. package/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.d.ts.map +0 -1
  83. package/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.js +0 -14
  84. package/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.js.map +0 -1
  85. package/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.d.ts +0 -10
  86. package/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.d.ts.map +0 -1
  87. package/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.js +0 -14
  88. package/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.js.map +0 -1
  89. package/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.d.ts +0 -10
  90. package/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.d.ts.map +0 -1
  91. package/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.js +0 -14
  92. package/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.js.map +0 -1
  93. package/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.d.ts +0 -10
  94. package/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.d.ts.map +0 -1
  95. package/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.js +0 -14
  96. package/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.js.map +0 -1
  97. package/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.d.ts +0 -10
  98. package/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.d.ts.map +0 -1
  99. package/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.js +0 -14
  100. package/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.js.map +0 -1
  101. package/node_modules/@typescript-eslint/scope-manager/dist/definition/index.d.ts +0 -14
  102. package/node_modules/@typescript-eslint/scope-manager/dist/definition/index.d.ts.map +0 -1
  103. package/node_modules/@typescript-eslint/scope-manager/dist/definition/index.js +0 -30
  104. package/node_modules/@typescript-eslint/scope-manager/dist/definition/index.js.map +0 -1
  105. package/node_modules/@typescript-eslint/scope-manager/dist/index.d.ts +0 -9
  106. package/node_modules/@typescript-eslint/scope-manager/dist/index.d.ts.map +0 -1
  107. package/node_modules/@typescript-eslint/scope-manager/dist/index.js +0 -31
  108. package/node_modules/@typescript-eslint/scope-manager/dist/index.js.map +0 -1
  109. package/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.d.ts +0 -16
  110. package/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.d.ts.map +0 -1
  111. package/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.js +0 -23
  112. package/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.js.map +0 -1
  113. package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.d.ts +0 -3
  114. package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.d.ts.map +0 -1
  115. package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.js +0 -23
  116. package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.js.map +0 -1
  117. package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.d.ts +0 -3
  118. package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.d.ts.map +0 -1
  119. package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.js +0 -15
  120. package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.js.map +0 -1
  121. package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.d.ts +0 -3
  122. package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.d.ts.map +0 -1
  123. package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.d.ts +0 -3
  124. package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.d.ts.map +0 -1
  125. package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.js +0 -75
  126. package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.js.map +0 -1
  127. package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.js +0 -1436
  128. package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.js.map +0 -1
  129. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.d.ts +0 -3
  130. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.d.ts.map +0 -1
  131. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.js +0 -21
  132. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.js.map +0 -1
  133. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.d.ts +0 -3
  134. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.d.ts.map +0 -1
  135. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.js +0 -23
  136. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.js.map +0 -1
  137. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.d.ts +0 -3
  138. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.d.ts.map +0 -1
  139. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.d.ts +0 -3
  140. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.d.ts.map +0 -1
  141. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.js +0 -16
  142. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.js.map +0 -1
  143. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.d.ts +0 -3
  144. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.d.ts.map +0 -1
  145. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.js +0 -55
  146. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.js.map +0 -1
  147. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.js +0 -30
  148. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.js.map +0 -1
  149. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.d.ts +0 -3
  150. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.d.ts.map +0 -1
  151. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.js +0 -12
  152. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.js.map +0 -1
  153. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.d.ts +0 -3
  154. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.d.ts.map +0 -1
  155. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.js +0 -13
  156. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.js.map +0 -1
  157. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.d.ts +0 -3
  158. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.d.ts.map +0 -1
  159. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.js +0 -12
  160. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.js.map +0 -1
  161. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.d.ts +0 -3
  162. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.d.ts.map +0 -1
  163. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.js +0 -12
  164. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.js.map +0 -1
  165. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.d.ts +0 -3
  166. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.d.ts.map +0 -1
  167. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.js +0 -46
  168. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.js.map +0 -1
  169. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.d.ts +0 -3
  170. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.d.ts.map +0 -1
  171. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.js +0 -22
  172. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.js.map +0 -1
  173. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.d.ts +0 -3
  174. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.d.ts.map +0 -1
  175. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.d.ts +0 -3
  176. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.d.ts.map +0 -1
  177. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.js +0 -20
  178. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.js.map +0 -1
  179. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.js +0 -14
  180. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.js.map +0 -1
  181. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.d.ts +0 -3
  182. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.d.ts.map +0 -1
  183. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.date.d.ts +0 -3
  184. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.date.d.ts.map +0 -1
  185. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.date.js +0 -12
  186. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.date.js.map +0 -1
  187. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.d.ts +0 -3
  188. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.d.ts.map +0 -1
  189. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.js +0 -20
  190. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.js.map +0 -1
  191. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.d.ts +0 -3
  192. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.d.ts.map +0 -1
  193. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.js +0 -12
  194. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.js.map +0 -1
  195. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.js +0 -24
  196. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.js.map +0 -1
  197. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.d.ts +0 -3
  198. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.d.ts.map +0 -1
  199. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.js +0 -12
  200. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.js.map +0 -1
  201. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.d.ts +0 -3
  202. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.d.ts.map +0 -1
  203. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.js +0 -19
  204. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.js.map +0 -1
  205. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.d.ts +0 -3
  206. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.d.ts.map +0 -1
  207. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.js +0 -12
  208. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.js.map +0 -1
  209. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.d.ts +0 -3
  210. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.d.ts.map +0 -1
  211. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.js +0 -20
  212. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.js.map +0 -1
  213. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.d.ts +0 -3
  214. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.d.ts.map +0 -1
  215. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.js +0 -16
  216. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.js.map +0 -1
  217. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.d.ts +0 -3
  218. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.d.ts.map +0 -1
  219. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.js +0 -19
  220. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.js.map +0 -1
  221. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.d.ts +0 -3
  222. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.d.ts.map +0 -1
  223. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.d.ts +0 -3
  224. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.d.ts.map +0 -1
  225. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.js +0 -20
  226. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.js.map +0 -1
  227. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.d.ts +0 -3
  228. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.d.ts.map +0 -1
  229. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.js +0 -12
  230. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.js.map +0 -1
  231. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.js +0 -22
  232. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.js.map +0 -1
  233. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.d.ts +0 -3
  234. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.d.ts.map +0 -1
  235. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.js +0 -12
  236. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.js.map +0 -1
  237. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.d.ts +0 -3
  238. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.d.ts.map +0 -1
  239. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.js +0 -14
  240. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.js.map +0 -1
  241. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.d.ts +0 -3
  242. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.d.ts.map +0 -1
  243. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.js +0 -14
  244. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.js.map +0 -1
  245. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.d.ts +0 -3
  246. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.d.ts.map +0 -1
  247. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.d.ts +0 -3
  248. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.d.ts.map +0 -1
  249. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.js +0 -20
  250. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.js.map +0 -1
  251. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.d.ts +0 -3
  252. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.d.ts.map +0 -1
  253. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.js +0 -12
  254. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.js.map +0 -1
  255. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.js +0 -22
  256. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.js.map +0 -1
  257. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.d.ts +0 -3
  258. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.d.ts.map +0 -1
  259. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.js +0 -14
  260. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.js.map +0 -1
  261. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.d.ts +0 -3
  262. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.d.ts.map +0 -1
  263. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.js +0 -12
  264. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.js.map +0 -1
  265. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.d.ts +0 -3
  266. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.d.ts.map +0 -1
  267. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.js +0 -12
  268. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.js.map +0 -1
  269. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.d.ts +0 -3
  270. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.d.ts.map +0 -1
  271. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.js +0 -22
  272. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.js.map +0 -1
  273. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.d.ts +0 -3
  274. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.d.ts.map +0 -1
  275. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.d.ts +0 -3
  276. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.d.ts.map +0 -1
  277. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.js +0 -14
  278. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.js.map +0 -1
  279. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.d.ts +0 -3
  280. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.d.ts.map +0 -1
  281. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.js +0 -20
  282. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.js.map +0 -1
  283. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.d.ts +0 -3
  284. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.d.ts.map +0 -1
  285. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.js +0 -14
  286. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.js.map +0 -1
  287. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.js +0 -28
  288. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.js.map +0 -1
  289. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.d.ts +0 -3
  290. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.d.ts.map +0 -1
  291. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.js +0 -14
  292. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.js.map +0 -1
  293. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.d.ts +0 -3
  294. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.d.ts.map +0 -1
  295. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.js +0 -15
  296. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.js.map +0 -1
  297. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.d.ts +0 -3
  298. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.d.ts.map +0 -1
  299. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.js +0 -12
  300. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.js.map +0 -1
  301. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.d.ts +0 -3
  302. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.d.ts.map +0 -1
  303. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.js +0 -14
  304. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.js.map +0 -1
  305. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.d.ts +0 -3
  306. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.d.ts.map +0 -1
  307. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.js +0 -17
  308. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.js.map +0 -1
  309. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.d.ts +0 -3
  310. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.d.ts.map +0 -1
  311. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.d.ts +0 -3
  312. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.d.ts.map +0 -1
  313. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.js +0 -20
  314. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.js.map +0 -1
  315. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.d.ts +0 -3
  316. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.d.ts.map +0 -1
  317. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.js +0 -12
  318. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.js.map +0 -1
  319. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.js +0 -20
  320. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.js.map +0 -1
  321. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.d.ts +0 -3
  322. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.d.ts.map +0 -1
  323. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.js +0 -14
  324. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.js.map +0 -1
  325. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.d.ts +0 -3
  326. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.d.ts.map +0 -1
  327. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.js +0 -12
  328. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.js.map +0 -1
  329. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.d.ts +0 -3
  330. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.d.ts.map +0 -1
  331. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.js +0 -15
  332. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.js.map +0 -1
  333. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.d.ts +0 -3
  334. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.d.ts.map +0 -1
  335. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.js +0 -24
  336. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.js.map +0 -1
  337. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.d.ts +0 -3
  338. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.d.ts.map +0 -1
  339. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.d.ts +0 -3
  340. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.d.ts.map +0 -1
  341. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.js +0 -21
  342. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.js.map +0 -1
  343. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.d.ts +0 -3
  344. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.d.ts.map +0 -1
  345. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.js +0 -20
  346. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.js.map +0 -1
  347. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.d.ts +0 -3
  348. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.d.ts.map +0 -1
  349. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.js +0 -12
  350. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.js.map +0 -1
  351. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.js +0 -26
  352. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.js.map +0 -1
  353. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.d.ts +0 -3
  354. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.d.ts.map +0 -1
  355. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.js +0 -12
  356. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.js.map +0 -1
  357. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.d.ts +0 -3
  358. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.d.ts.map +0 -1
  359. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.js +0 -15
  360. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.js.map +0 -1
  361. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.sharedmemory.d.ts +0 -3
  362. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.sharedmemory.d.ts.map +0 -1
  363. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.sharedmemory.js +0 -12
  364. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.sharedmemory.js.map +0 -1
  365. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.d.ts +0 -3
  366. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.d.ts.map +0 -1
  367. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.js +0 -12
  368. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.js.map +0 -1
  369. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.d.ts +0 -3
  370. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.d.ts.map +0 -1
  371. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.js +0 -24
  372. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.js.map +0 -1
  373. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.collection.d.ts +0 -3
  374. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.collection.d.ts.map +0 -1
  375. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.collection.js +0 -12
  376. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.collection.js.map +0 -1
  377. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.d.ts +0 -3
  378. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.d.ts.map +0 -1
  379. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.d.ts +0 -3
  380. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.d.ts.map +0 -1
  381. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.js +0 -20
  382. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.js.map +0 -1
  383. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.js +0 -16
  384. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.js.map +0 -1
  385. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.d.ts +0 -3
  386. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.d.ts.map +0 -1
  387. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.js +0 -116
  388. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.js.map +0 -1
  389. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.d.ts +0 -3
  390. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.d.ts.map +0 -1
  391. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.js +0 -30
  392. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.js.map +0 -1
  393. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.d.ts +0 -3
  394. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.d.ts.map +0 -1
  395. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.js +0 -14
  396. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.js.map +0 -1
  397. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.d.ts +0 -3
  398. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.d.ts.map +0 -1
  399. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.js +0 -24
  400. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.js.map +0 -1
  401. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.d.ts +0 -3
  402. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.d.ts.map +0 -1
  403. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.js +0 -19
  404. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.js.map +0 -1
  405. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.d.ts +0 -3
  406. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.d.ts.map +0 -1
  407. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.js +0 -22
  408. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.js.map +0 -1
  409. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.collection.d.ts +0 -3
  410. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.collection.d.ts.map +0 -1
  411. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.collection.js +0 -12
  412. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.collection.js.map +0 -1
  413. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.d.ts +0 -3
  414. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.d.ts.map +0 -1
  415. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.decorators.d.ts +0 -3
  416. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.decorators.d.ts.map +0 -1
  417. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.decorators.js +0 -17
  418. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.decorators.js.map +0 -1
  419. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.disposable.d.ts +0 -3
  420. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.disposable.d.ts.map +0 -1
  421. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.disposable.js +0 -22
  422. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.disposable.js.map +0 -1
  423. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.d.ts +0 -3
  424. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.d.ts.map +0 -1
  425. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.js +0 -20
  426. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.js.map +0 -1
  427. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.d.ts +0 -3
  428. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.d.ts.map +0 -1
  429. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.js +0 -12
  430. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.js.map +0 -1
  431. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.js +0 -18
  432. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.js.map +0 -1
  433. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.d.ts +0 -3
  434. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.d.ts.map +0 -1
  435. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.js +0 -14
  436. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.js.map +0 -1
  437. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.d.ts +0 -3
  438. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.d.ts.map +0 -1
  439. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.js +0 -12
  440. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.js.map +0 -1
  441. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.d.ts +0 -3
  442. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.d.ts.map +0 -1
  443. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.js +0 -12
  444. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.js.map +0 -1
  445. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.d.ts +0 -3
  446. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.d.ts.map +0 -1
  447. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.js +0 -15
  448. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.js.map +0 -1
  449. package/node_modules/@typescript-eslint/scope-manager/dist/lib/index.d.ts +0 -93
  450. package/node_modules/@typescript-eslint/scope-manager/dist/lib/index.d.ts.map +0 -1
  451. package/node_modules/@typescript-eslint/scope-manager/dist/lib/index.js +0 -189
  452. package/node_modules/@typescript-eslint/scope-manager/dist/lib/index.js.map +0 -1
  453. package/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.d.ts +0 -3
  454. package/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.d.ts.map +0 -1
  455. package/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.js +0 -18
  456. package/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.js.map +0 -1
  457. package/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.d.ts +0 -3
  458. package/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.d.ts.map +0 -1
  459. package/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.js +0 -24
  460. package/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.js.map +0 -1
  461. package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.d.ts +0 -3
  462. package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.d.ts.map +0 -1
  463. package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.d.ts +0 -3
  464. package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.d.ts.map +0 -1
  465. package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.js +0 -9
  466. package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.js.map +0 -1
  467. package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.d.ts +0 -3
  468. package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.d.ts.map +0 -1
  469. package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.js +0 -34
  470. package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.js.map +0 -1
  471. package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.js +0 -589
  472. package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.js.map +0 -1
  473. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.d.ts +0 -29
  474. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.d.ts.map +0 -1
  475. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.js +0 -321
  476. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.js.map +0 -1
  477. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.d.ts +0 -15
  478. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.d.ts.map +0 -1
  479. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.js +0 -84
  480. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.js.map +0 -1
  481. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.d.ts +0 -14
  482. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.d.ts.map +0 -1
  483. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.js +0 -50
  484. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.js.map +0 -1
  485. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.d.ts +0 -29
  486. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.d.ts.map +0 -1
  487. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.js +0 -108
  488. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.js.map +0 -1
  489. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.d.ts +0 -89
  490. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.d.ts.map +0 -1
  491. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.js +0 -107
  492. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.js.map +0 -1
  493. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.d.ts +0 -86
  494. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.d.ts.map +0 -1
  495. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.js +0 -539
  496. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.js.map +0 -1
  497. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.d.ts +0 -33
  498. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.d.ts.map +0 -1
  499. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.js +0 -229
  500. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.js.map +0 -1
  501. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.d.ts +0 -13
  502. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.d.ts.map +0 -1
  503. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.js +0 -41
  504. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.js.map +0 -1
  505. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.d.ts +0 -22
  506. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.d.ts.map +0 -1
  507. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.js +0 -80
  508. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.js.map +0 -1
  509. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.d.ts +0 -2
  510. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.d.ts.map +0 -1
  511. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.js +0 -6
  512. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.js.map +0 -1
  513. package/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.d.ts +0 -10
  514. package/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.d.ts.map +0 -1
  515. package/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.js +0 -12
  516. package/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.js.map +0 -1
  517. package/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.d.ts +0 -10
  518. package/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.d.ts.map +0 -1
  519. package/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.js +0 -12
  520. package/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.js.map +0 -1
  521. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.d.ts +0 -10
  522. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.d.ts.map +0 -1
  523. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.js +0 -12
  524. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.js.map +0 -1
  525. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.d.ts +0 -10
  526. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.d.ts.map +0 -1
  527. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.js +0 -12
  528. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.js.map +0 -1
  529. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.d.ts +0 -10
  530. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.d.ts.map +0 -1
  531. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.js +0 -12
  532. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.js.map +0 -1
  533. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.d.ts +0 -10
  534. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.d.ts.map +0 -1
  535. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.js +0 -12
  536. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.js.map +0 -1
  537. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.d.ts +0 -10
  538. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.d.ts.map +0 -1
  539. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.js +0 -12
  540. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.js.map +0 -1
  541. package/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.d.ts +0 -11
  542. package/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.d.ts.map +0 -1
  543. package/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.js +0 -17
  544. package/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.js.map +0 -1
  545. package/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.d.ts +0 -13
  546. package/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.d.ts.map +0 -1
  547. package/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.js +0 -36
  548. package/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.js.map +0 -1
  549. package/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.d.ts +0 -10
  550. package/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.d.ts.map +0 -1
  551. package/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.js +0 -12
  552. package/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.js.map +0 -1
  553. package/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.d.ts +0 -18
  554. package/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.d.ts.map +0 -1
  555. package/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.js +0 -39
  556. package/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.js.map +0 -1
  557. package/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.d.ts +0 -10
  558. package/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.d.ts.map +0 -1
  559. package/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.js +0 -12
  560. package/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.js.map +0 -1
  561. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.d.ts +0 -10
  562. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.d.ts.map +0 -1
  563. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.js +0 -12
  564. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.js.map +0 -1
  565. package/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.d.ts +0 -21
  566. package/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.d.ts.map +0 -1
  567. package/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.js +0 -3
  568. package/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.js.map +0 -1
  569. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.d.ts +0 -107
  570. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.d.ts.map +0 -1
  571. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.js +0 -358
  572. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.js.map +0 -1
  573. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.d.ts +0 -22
  574. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.d.ts.map +0 -1
  575. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.js +0 -25
  576. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.js.map +0 -1
  577. package/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.d.ts +0 -10
  578. package/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.d.ts.map +0 -1
  579. package/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.js +0 -12
  580. package/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.js.map +0 -1
  581. package/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.d.ts +0 -10
  582. package/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.d.ts.map +0 -1
  583. package/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.js +0 -12
  584. package/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.js.map +0 -1
  585. package/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.d.ts +0 -10
  586. package/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.d.ts.map +0 -1
  587. package/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.js +0 -12
  588. package/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.js.map +0 -1
  589. package/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.d.ts +0 -10
  590. package/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.d.ts.map +0 -1
  591. package/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.js +0 -12
  592. package/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.js.map +0 -1
  593. package/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.d.ts +0 -11
  594. package/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.d.ts.map +0 -1
  595. package/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.js +0 -22
  596. package/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.js.map +0 -1
  597. package/node_modules/@typescript-eslint/scope-manager/dist/scope/index.d.ts +0 -20
  598. package/node_modules/@typescript-eslint/scope-manager/dist/scope/index.d.ts.map +0 -1
  599. package/node_modules/@typescript-eslint/scope-manager/dist/scope/index.js +0 -36
  600. package/node_modules/@typescript-eslint/scope-manager/dist/scope/index.js.map +0 -1
  601. package/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.d.ts +0 -34
  602. package/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.d.ts.map +0 -1
  603. package/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.js +0 -12
  604. package/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.js.map +0 -1
  605. package/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.d.ts +0 -25
  606. package/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.d.ts.map +0 -1
  607. package/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.js +0 -19
  608. package/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.js.map +0 -1
  609. package/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.d.ts +0 -18
  610. package/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.d.ts.map +0 -1
  611. package/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.js +0 -33
  612. package/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.js.map +0 -1
  613. package/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.d.ts +0 -44
  614. package/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.d.ts.map +0 -1
  615. package/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.js +0 -39
  616. package/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.js.map +0 -1
  617. package/node_modules/@typescript-eslint/scope-manager/dist/variable/index.d.ts +0 -4
  618. package/node_modules/@typescript-eslint/scope-manager/dist/variable/index.d.ts.map +0 -1
  619. package/node_modules/@typescript-eslint/scope-manager/dist/variable/index.js +0 -10
  620. package/node_modules/@typescript-eslint/scope-manager/dist/variable/index.js.map +0 -1
  621. package/node_modules/@typescript-eslint/scope-manager/package.json +0 -72
  622. package/node_modules/@typescript-eslint/types/LICENSE +0 -21
  623. package/node_modules/@typescript-eslint/types/README.md +0 -12
  624. package/node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts +0 -1881
  625. package/node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts.map +0 -1
  626. package/node_modules/@typescript-eslint/types/dist/generated/ast-spec.js +0 -202
  627. package/node_modules/@typescript-eslint/types/dist/generated/ast-spec.js.map +0 -1
  628. package/node_modules/@typescript-eslint/types/dist/index.d.ts +0 -5
  629. package/node_modules/@typescript-eslint/types/dist/index.d.ts.map +0 -1
  630. package/node_modules/@typescript-eslint/types/dist/index.js +0 -24
  631. package/node_modules/@typescript-eslint/types/dist/index.js.map +0 -1
  632. package/node_modules/@typescript-eslint/types/dist/lib.d.ts +0 -3
  633. package/node_modules/@typescript-eslint/types/dist/lib.d.ts.map +0 -1
  634. package/node_modules/@typescript-eslint/types/dist/lib.js +0 -7
  635. package/node_modules/@typescript-eslint/types/dist/lib.js.map +0 -1
  636. package/node_modules/@typescript-eslint/types/dist/parser-options.d.ts +0 -40
  637. package/node_modules/@typescript-eslint/types/dist/parser-options.d.ts.map +0 -1
  638. package/node_modules/@typescript-eslint/types/dist/parser-options.js +0 -3
  639. package/node_modules/@typescript-eslint/types/dist/parser-options.js.map +0 -1
  640. package/node_modules/@typescript-eslint/types/dist/ts-estree.d.ts +0 -14
  641. package/node_modules/@typescript-eslint/types/dist/ts-estree.d.ts.map +0 -1
  642. package/node_modules/@typescript-eslint/types/dist/ts-estree.js +0 -28
  643. package/node_modules/@typescript-eslint/types/dist/ts-estree.js.map +0 -1
  644. package/node_modules/@typescript-eslint/types/package.json +0 -94
  645. package/node_modules/micro-memoize/CHANGELOG.md +0 -226
  646. package/node_modules/micro-memoize/README.md +0 -557
  647. package/node_modules/micro-memoize/dist/micro-memoize.cjs.js +0 -373
  648. package/node_modules/micro-memoize/dist/micro-memoize.cjs.js.map +0 -1
  649. package/node_modules/micro-memoize/dist/micro-memoize.esm.js +0 -371
  650. package/node_modules/micro-memoize/dist/micro-memoize.esm.js.map +0 -1
  651. package/node_modules/micro-memoize/dist/micro-memoize.js +0 -379
  652. package/node_modules/micro-memoize/dist/micro-memoize.js.map +0 -1
  653. package/node_modules/micro-memoize/dist/micro-memoize.min.js +0 -1
  654. package/node_modules/micro-memoize/index.d.ts +0 -132
  655. package/node_modules/micro-memoize/mjs/index.d.mts +0 -132
  656. package/node_modules/micro-memoize/mjs/index.mjs +0 -371
  657. package/node_modules/micro-memoize/mjs/index.mjs.map +0 -1
  658. package/node_modules/micro-memoize/package.json +0 -106
@@ -1,852 +0,0 @@
1
- import { Data, O as O$1, uniqueBy, MutRef, F } from '@eslint-react/tools';
2
- import { DefinitionType, ScopeType } from '@typescript-eslint/scope-manager';
3
- import { type, isNil } from 'rambda';
4
- import { AST_NODE_TYPES } from '@typescript-eslint/types';
5
- import { ASTUtils } from '@typescript-eslint/utils';
6
- import { toLowerCase, delimiterCase, replace } from 'string-ts';
7
- import * as eslintUtils from '@eslint-community/eslint-utils';
8
-
9
- /**
10
- * Tests if a value is a `function`.
11
- *
12
- * @param input - The value to test.
13
- *
14
- * @example
15
- * import { isFunction } from 'effect/Predicate'
16
- *
17
- * assert.deepStrictEqual(isFunction(isFunction), true)
18
- * assert.deepStrictEqual(isFunction("function"), false)
19
- *
20
- * @category guards
21
- * @since 2.0.0
22
- */
23
- const isFunction$2 = input => typeof input === "function";
24
-
25
- /**
26
- * @since 2.0.0
27
- */
28
- /**
29
- * Tests if a value is a `string`.
30
- *
31
- * @param input - The value to test.
32
- *
33
- * @example
34
- * import { isString } from "effect/Predicate"
35
- *
36
- * assert.deepStrictEqual(isString("a"), true)
37
- *
38
- * assert.deepStrictEqual(isString(1), false)
39
- *
40
- * @category guards
41
- * @since 2.0.0
42
- */
43
- const isString = input => typeof input === "string";
44
- /**
45
- * Tests if a value is a `function`.
46
- *
47
- * @param input - The value to test.
48
- *
49
- * @example
50
- * import { isFunction } from "effect/Predicate"
51
- *
52
- * assert.deepStrictEqual(isFunction(isFunction), true)
53
- *
54
- * assert.deepStrictEqual(isFunction("function"), false)
55
- *
56
- * @category guards
57
- * @since 2.0.0
58
- */
59
- const isFunction$1 = isFunction$2;
60
- const isRecordOrArray = input => typeof input === "object" && input !== null;
61
- /**
62
- * Tests if a value is an `object`.
63
- *
64
- * @param input - The value to test.
65
- *
66
- * @example
67
- * import { isObject } from "effect/Predicate"
68
- *
69
- * assert.deepStrictEqual(isObject({}), true)
70
- * assert.deepStrictEqual(isObject([]), true)
71
- *
72
- * assert.deepStrictEqual(isObject(null), false)
73
- * assert.deepStrictEqual(isObject(undefined), false)
74
- *
75
- * @category guards
76
- * @since 2.0.0
77
- */
78
- const isObject = input => isRecordOrArray(input) || isFunction$1(input);
79
- /**
80
- * A guard that succeeds when the input is `null` or `undefined`.
81
- *
82
- * @param input - The value to test.
83
- *
84
- * @example
85
- * import { isNullable } from "effect/Predicate"
86
- *
87
- * assert.deepStrictEqual(isNullable(null), true)
88
- * assert.deepStrictEqual(isNullable(undefined), true)
89
- *
90
- * assert.deepStrictEqual(isNullable({}), false)
91
- * assert.deepStrictEqual(isNullable([]), false)
92
- *
93
- * @category guards
94
- * @since 2.0.0
95
- */
96
- const isNullable = input => input === null || input === undefined;
97
-
98
- const t=Symbol.for("@ts-pattern/matcher"),e=Symbol.for("@ts-pattern/isVariadic"),n="@ts-pattern/anonymous-select-key",r=t=>Boolean(t&&"object"==typeof t),i=e=>e&&!!e[t],s=(n,o,c)=>{if(i(n)){const e=n[t](),{matched:r,selections:i}=e.match(o);return r&&i&&Object.keys(i).forEach(t=>c(t,i[t])),r}if(r(n)){if(!r(o))return !1;if(Array.isArray(n)){if(!Array.isArray(o))return !1;let t=[],r=[],a=[];for(const s of n.keys()){const o=n[s];i(o)&&o[e]?a.push(o):a.length?r.push(o):t.push(o);}if(a.length){if(a.length>1)throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");if(o.length<t.length+r.length)return !1;const e=o.slice(0,t.length),n=0===r.length?[]:o.slice(-r.length),i=o.slice(t.length,0===r.length?Infinity:-r.length);return t.every((t,n)=>s(t,e[n],c))&&r.every((t,e)=>s(t,n[e],c))&&(0===a.length||s(a[0],i,c))}return n.length===o.length&&n.every((t,e)=>s(t,o[e],c))}return Object.keys(n).every(e=>{const r=n[e];return (e in o||i(a=r)&&"optional"===a[t]().matcherType)&&s(r,o[e],c);var a;})}return Object.is(o,n)},o=e=>{var n,s,a;return r(e)?i(e)?null!=(n=null==(s=(a=e[t]()).getSelectionKeys)?void 0:s.call(a))?n:[]:Array.isArray(e)?c(e,o):c(Object.values(e),o):[]},c=(t,e)=>t.reduce((t,n)=>t.concat(e(n)),[]);function a(...t){if(1===t.length){const[e]=t;return t=>s(e,t,()=>{})}if(2===t.length){const[e,n]=t;return s(e,n,()=>{})}throw new Error(`isMatching wasn't given the right number of arguments: expected 1 or 2, received ${t.length}.`)}function u(t){return Object.assign(t,{optional:()=>l(t),and:e=>m(t,e),or:e=>y(t,e),select:e=>void 0===e?p(t):p(e,t)})}function h(t){return Object.assign((t=>Object.assign(t,{*[Symbol.iterator](){yield Object.assign(t,{[e]:!0});}}))(t),{optional:()=>h(l(t)),select:e=>h(void 0===e?p(t):p(e,t))})}function l(e){return u({[t]:()=>({match:t=>{let n={};const r=(t,e)=>{n[t]=e;};return void 0===t?(o(e).forEach(t=>r(t,void 0)),{matched:!0,selections:n}):{matched:s(e,t,r),selections:n}},getSelectionKeys:()=>o(e),matcherType:"optional"})})}const f=(t,e)=>{for(const n of t)if(!e(n))return !1;return !0},g=(t,e)=>{for(const[n,r]of t.entries())if(!e(r,n))return !1;return !0};function m(...e){return u({[t]:()=>({match:t=>{let n={};const r=(t,e)=>{n[t]=e;};return {matched:e.every(e=>s(e,t,r)),selections:n}},getSelectionKeys:()=>c(e,o),matcherType:"and"})})}function y(...e){return u({[t]:()=>({match:t=>{let n={};const r=(t,e)=>{n[t]=e;};return c(e,o).forEach(t=>r(t,void 0)),{matched:e.some(e=>s(e,t,r)),selections:n}},getSelectionKeys:()=>c(e,o),matcherType:"or"})})}function d(e){return {[t]:()=>({match:t=>({matched:Boolean(e(t))})})}}function p(...e){const r="string"==typeof e[0]?e[0]:void 0,i=2===e.length?e[1]:"string"==typeof e[0]?void 0:e[0];return u({[t]:()=>({match:t=>{let e={[null!=r?r:n]:t};return {matched:void 0===i||s(i,t,(t,n)=>{e[t]=n;}),selections:e}},getSelectionKeys:()=>[null!=r?r:n].concat(void 0===i?[]:o(i))})})}function v(t){return "number"==typeof t}function b(t){return "string"==typeof t}function w(t){return "bigint"==typeof t}const S=u(d(function(t){return !0})),O=S,j=t=>Object.assign(u(t),{startsWith:e=>{return j(m(t,(n=e,d(t=>b(t)&&t.startsWith(n)))));var n;},endsWith:e=>{return j(m(t,(n=e,d(t=>b(t)&&t.endsWith(n)))));var n;},minLength:e=>j(m(t,(t=>d(e=>b(e)&&e.length>=t))(e))),maxLength:e=>j(m(t,(t=>d(e=>b(e)&&e.length<=t))(e))),includes:e=>{return j(m(t,(n=e,d(t=>b(t)&&t.includes(n)))));var n;},regex:e=>{return j(m(t,(n=e,d(t=>b(t)&&Boolean(t.match(n))))));var n;}}),E=j(d(b)),K=t=>Object.assign(u(t),{between:(e,n)=>K(m(t,((t,e)=>d(n=>v(n)&&t<=n&&e>=n))(e,n))),lt:e=>K(m(t,(t=>d(e=>v(e)&&e<t))(e))),gt:e=>K(m(t,(t=>d(e=>v(e)&&e>t))(e))),lte:e=>K(m(t,(t=>d(e=>v(e)&&e<=t))(e))),gte:e=>K(m(t,(t=>d(e=>v(e)&&e>=t))(e))),int:()=>K(m(t,d(t=>v(t)&&Number.isInteger(t)))),finite:()=>K(m(t,d(t=>v(t)&&Number.isFinite(t)))),positive:()=>K(m(t,d(t=>v(t)&&t>0))),negative:()=>K(m(t,d(t=>v(t)&&t<0)))}),A=K(d(v)),x=t=>Object.assign(u(t),{between:(e,n)=>x(m(t,((t,e)=>d(n=>w(n)&&t<=n&&e>=n))(e,n))),lt:e=>x(m(t,(t=>d(e=>w(e)&&e<t))(e))),gt:e=>x(m(t,(t=>d(e=>w(e)&&e>t))(e))),lte:e=>x(m(t,(t=>d(e=>w(e)&&e<=t))(e))),gte:e=>x(m(t,(t=>d(e=>w(e)&&e>=t))(e))),positive:()=>x(m(t,d(t=>w(t)&&t>0))),negative:()=>x(m(t,d(t=>w(t)&&t<0)))}),P=x(d(w)),T=u(d(function(t){return "boolean"==typeof t})),k=u(d(function(t){return "symbol"==typeof t})),B=u(d(function(t){return null==t}));var _={__proto__:null,matcher:t,optional:l,array:function(...e){return h({[t]:()=>({match:t=>{if(!Array.isArray(t))return {matched:!1};if(0===e.length)return {matched:!0};const n=e[0];let r={};if(0===t.length)return o(n).forEach(t=>{r[t]=[];}),{matched:!0,selections:r};const i=(t,e)=>{r[t]=(r[t]||[]).concat([e]);};return {matched:t.every(t=>s(n,t,i)),selections:r}},getSelectionKeys:()=>0===e.length?[]:o(e[0])})})},set:function(...e){return u({[t]:()=>({match:t=>{if(!(t instanceof Set))return {matched:!1};let n={};if(0===t.size)return {matched:!0,selections:n};if(0===e.length)return {matched:!0};const r=(t,e)=>{n[t]=(n[t]||[]).concat([e]);},i=e[0];return {matched:f(t,t=>s(i,t,r)),selections:n}},getSelectionKeys:()=>0===e.length?[]:o(e[0])})})},map:function(...e){return u({[t]:()=>({match:t=>{if(!(t instanceof Map))return {matched:!1};let n={};if(0===t.size)return {matched:!0,selections:n};const r=(t,e)=>{n[t]=(n[t]||[]).concat([e]);};if(0===e.length)return {matched:!0};var i;if(1===e.length)throw new Error(`\`P.map\` wasn't given enough arguments. Expected (key, value), received ${null==(i=e[0])?void 0:i.toString()}`);const[o,c]=e;return {matched:g(t,(t,e)=>{const n=s(o,e,r),i=s(c,t,r);return n&&i}),selections:n}},getSelectionKeys:()=>0===e.length?[]:[...o(e[0]),...o(e[1])]})})},intersection:m,union:y,not:function(e){return u({[t]:()=>({match:t=>({matched:!s(e,t,()=>{})}),getSelectionKeys:()=>[],matcherType:"not"})})},when:d,select:p,any:S,_:O,string:E,number:A,bigint:P,boolean:T,symbol:k,nullish:B,instanceOf:function(t){return u(d(function(t){return e=>e instanceof t}(t)))},shape:function(t){return u(d(a(t)))}};const W={matched:!1,value:void 0};function N(t){return new $(t,W)}class ${constructor(t,e){this.input=void 0,this.state=void 0,this.input=t,this.state=e;}with(...t){if(this.state.matched)return this;const e=t[t.length-1],r=[t[0]];let i;3===t.length&&"function"==typeof t[1]?(r.push(t[0]),i=t[1]):t.length>2&&r.push(...t.slice(1,t.length-1));let o=!1,c={};const a=(t,e)=>{o=!0,c[t]=e;},u=!r.some(t=>s(t,this.input,a))||i&&!Boolean(i(this.input))?W:{matched:!0,value:e(o?n in c?c[n]:c:this.input,this.input)};return new $(this.input,u)}when(t,e){if(this.state.matched)return this;const n=Boolean(t(this.input));return new $(this.input,n?{matched:!0,value:e(this.input,this.input)}:W)}otherwise(t){return this.state.matched?this.state.value:t(this.input)}exhaustive(){return this.run()}run(){if(this.state.matched)return this.state.value;let t;try{t=JSON.stringify(this.input);}catch(e){t=this.input;}throw new Error(`Pattern matching error: no pattern matches value ${t}`)}returnType(){return this}}
99
-
100
- const NodeType = AST_NODE_TYPES;
101
- const is = ASTUtils.isNodeOfType;
102
- const isOneOf = ASTUtils.isNodeOfTypes;
103
- const isFunction = isOneOf([
104
- NodeType.ArrowFunctionExpression,
105
- NodeType.FunctionDeclaration,
106
- NodeType.FunctionExpression
107
- ]);
108
- const isFunctionType = isOneOf([
109
- NodeType.ArrowFunctionExpression,
110
- NodeType.FunctionDeclaration,
111
- NodeType.FunctionExpression,
112
- NodeType.TSCallSignatureDeclaration,
113
- NodeType.TSConstructSignatureDeclaration,
114
- NodeType.TSDeclareFunction,
115
- NodeType.TSEmptyBodyFunctionExpression,
116
- NodeType.TSFunctionType,
117
- NodeType.TSMethodSignature
118
- ]);
119
- const isClass = isOneOf([
120
- NodeType.ClassDeclaration,
121
- NodeType.ClassExpression
122
- ]);
123
- const isLoop = isOneOf([
124
- NodeType.DoWhileStatement,
125
- NodeType.ForInStatement,
126
- NodeType.ForOfStatement,
127
- NodeType.ForStatement,
128
- NodeType.WhileStatement
129
- ]);
130
- const isArrayTupleType = isOneOf([
131
- NodeType.TSArrayType,
132
- NodeType.TSTupleType
133
- ]);
134
- const isProperty = isOneOf([
135
- NodeType.PropertyDefinition,
136
- NodeType.TSIndexSignature,
137
- NodeType.TSParameterProperty,
138
- NodeType.TSPropertySignature
139
- ]);
140
- const isJSXElement = is(NodeType.JSXElement);
141
- const isJSXFragment = is(NodeType.JSXFragment);
142
- const isJSX = isOneOf([
143
- NodeType.JSXAttribute,
144
- NodeType.JSXSpreadChild,
145
- NodeType.JSXClosingElement,
146
- NodeType.JSXClosingFragment,
147
- NodeType.JSXElement,
148
- NodeType.JSXEmptyExpression,
149
- NodeType.JSXExpressionContainer,
150
- NodeType.JSXFragment,
151
- NodeType.JSXIdentifier,
152
- NodeType.JSXMemberExpression,
153
- NodeType.JSXNamespacedName,
154
- NodeType.JSXOpeningElement,
155
- NodeType.JSXOpeningFragment,
156
- NodeType.JSXSpreadAttribute,
157
- NodeType.JSXSpreadChild,
158
- NodeType.JSXText
159
- ]);
160
- const isJSXTagNameExpression = isOneOf([
161
- NodeType.JSXIdentifier,
162
- NodeType.JSXMemberExpression,
163
- NodeType.JSXNamespacedName
164
- ]);
165
- const isDestructuringPattern = isOneOf([
166
- NodeType.ArrayPattern,
167
- NodeType.AssignmentPattern,
168
- NodeType.ObjectPattern,
169
- NodeType.RestElement
170
- ]);
171
- const isTypeDeclaration = isOneOf([
172
- NodeType.TSInterfaceDeclaration,
173
- NodeType.TSTypeAliasDeclaration
174
- ]);
175
- const isLeftHandSideExpression = isOneOf([
176
- NodeType.ArrayExpression,
177
- NodeType.ArrayPattern,
178
- NodeType.ArrowFunctionExpression,
179
- NodeType.CallExpression,
180
- NodeType.ClassExpression,
181
- NodeType.FunctionExpression,
182
- NodeType.Identifier,
183
- NodeType.JSXElement,
184
- NodeType.JSXFragment,
185
- NodeType.Literal,
186
- NodeType.TemplateLiteral,
187
- NodeType.MemberExpression,
188
- NodeType.MetaProperty,
189
- NodeType.ObjectExpression,
190
- NodeType.ObjectPattern,
191
- NodeType.SequenceExpression,
192
- NodeType.Super,
193
- NodeType.TaggedTemplateExpression,
194
- NodeType.ThisExpression
195
- ]);
196
- const isLeftHandSideExpressionType = isOneOf([
197
- NodeType.ArrayExpression,
198
- NodeType.ArrayPattern,
199
- NodeType.ArrowFunctionExpression,
200
- NodeType.CallExpression,
201
- NodeType.ClassExpression,
202
- NodeType.FunctionExpression,
203
- NodeType.Identifier,
204
- NodeType.JSXElement,
205
- NodeType.JSXFragment,
206
- NodeType.Literal,
207
- NodeType.TemplateLiteral,
208
- NodeType.MemberExpression,
209
- NodeType.MetaProperty,
210
- NodeType.ObjectExpression,
211
- NodeType.ObjectPattern,
212
- NodeType.SequenceExpression,
213
- NodeType.Super,
214
- NodeType.TaggedTemplateExpression,
215
- NodeType.ThisExpression,
216
- NodeType.TSAsExpression,
217
- NodeType.TSNonNullExpression,
218
- NodeType.TSTypeAssertion
219
- ]);
220
-
221
- /**
222
- * Returns human readable node type for given AST node
223
- * @param node AST node
224
- * @returns Human readable node type
225
- */ function readableNodeType(node) {
226
- if (node.type === NodeType.Literal) {
227
- if ("regex" in node) {
228
- return "RegExp literal";
229
- }
230
- return `${type(node.value)} literal`;
231
- }
232
- if (isJSX(node)) {
233
- return `JSX ${toLowerCase(delimiterCase(replace(node.type, "JSX", ""), " "))}`;
234
- }
235
- return toLowerCase(delimiterCase(node.type, " "));
236
- }
237
-
238
- const Construction = Data.taggedEnum();
239
- const None = Construction.None();
240
- /**
241
- * Get a function that detects the construction of a given node.
242
- * @param context The rule context
243
- * @returns A function that detects the construction of a given node
244
- */ function constructionDetector(context) {
245
- /**
246
- * Detect if a node is a constructed value.
247
- * @param node The AST node to detect the construction of
248
- * @param scope The scope of the node
249
- * @returns The construction of the node
250
- */ // eslint-disable-next-line sonarjs/cognitive-complexity
251
- const detect = (node, scope = context.getScope())=>{
252
- return N(node).when(is(NodeType.ArrayExpression), (node)=>Construction.Array({
253
- node,
254
- usage: O$1.none()
255
- })).when(is(NodeType.ObjectExpression), (node)=>Construction.ObjectExpression({
256
- node,
257
- usage: O$1.none()
258
- })).when(is(NodeType.ClassExpression), (node)=>Construction.ClassExpression({
259
- node,
260
- usage: O$1.none()
261
- })).when(is(NodeType.JSXElement), (node)=>Construction.JSXElement({
262
- node,
263
- usage: O$1.none()
264
- })).when(is(NodeType.JSXFragment), (node)=>Construction.JSXFragment({
265
- node,
266
- usage: O$1.none()
267
- })).when(is(NodeType.NewExpression), (node)=>Construction.NewExpression({
268
- node,
269
- usage: O$1.none()
270
- })).when(isOneOf([
271
- NodeType.FunctionExpression,
272
- NodeType.ArrowFunctionExpression
273
- ]), (node)=>{
274
- return Construction.FunctionExpression({
275
- node,
276
- usage: O$1.none()
277
- });
278
- }).when(is(NodeType.MemberExpression), (node)=>{
279
- if (!("object" in node)) {
280
- return None;
281
- }
282
- const object = detect(node.object);
283
- if (object._tag === "None") {
284
- return object;
285
- }
286
- return {
287
- ...object,
288
- usage: O$1.some(node.object)
289
- };
290
- }).when(is(NodeType.AssignmentExpression), (node)=>{
291
- if (!("right" in node)) {
292
- return None;
293
- }
294
- const right = detect(node.right);
295
- if (right._tag === "None") {
296
- return right;
297
- }
298
- return Construction.AssignmentExpression({
299
- node: right.node,
300
- usage: O$1.some(node)
301
- });
302
- }).when(is(NodeType.LogicalExpression), (node)=>{
303
- if (!("left" in node && "right" in node)) {
304
- return None;
305
- }
306
- const left = detect(node.left);
307
- if (left._tag === "None") {
308
- return None;
309
- }
310
- return detect(node.right);
311
- }).when(is(NodeType.ConditionalExpression), (node)=>{
312
- if (!("consequent" in node && "alternate" in node && !isNil(node.alternate))) {
313
- return None;
314
- }
315
- const consequent = detect(node.consequent);
316
- if (consequent._tag === "None") {
317
- return None;
318
- }
319
- return detect(node.alternate);
320
- }).when(is(NodeType.Identifier), (node)=>{
321
- if (!("name" in node && isString(node.name))) {
322
- return None;
323
- }
324
- const maybeLatestDef = O$1.fromNullable(scope.set.get(node.name)?.defs.at(-1));
325
- if (O$1.isNone(maybeLatestDef)) {
326
- return None;
327
- }
328
- const latestDef = maybeLatestDef.value;
329
- if (latestDef.type !== DefinitionType.Variable && latestDef.type !== DefinitionType.FunctionName) {
330
- return None;
331
- }
332
- if (latestDef.node.type === NodeType.FunctionDeclaration) {
333
- return Construction.FunctionDeclaration({
334
- node: latestDef.node,
335
- usage: O$1.some(node)
336
- });
337
- }
338
- if (!("init" in latestDef.node) || latestDef.node.init === null) {
339
- return None;
340
- }
341
- return detect(latestDef.node.init);
342
- }).when(is(NodeType.Literal), (node)=>{
343
- if ("regex" in node) {
344
- return Construction.RegExpLiteral({
345
- node,
346
- usage: O$1.none()
347
- });
348
- }
349
- return None;
350
- }).when(isOneOf([
351
- NodeType.TSAsExpression,
352
- NodeType.TSTypeAssertion
353
- ]), ()=>{
354
- if (!("expression" in node) || !isObject(node.expression)) {
355
- return None;
356
- }
357
- return detect(node.expression);
358
- }).otherwise(()=>None);
359
- };
360
- return detect;
361
- }
362
-
363
- const unstableAssignmentPatternTypes = [
364
- NodeType.JSXElement,
365
- NodeType.ArrayExpression,
366
- NodeType.ObjectExpression,
367
- NodeType.FunctionExpression,
368
- NodeType.ArrowFunctionExpression,
369
- NodeType.ClassExpression,
370
- NodeType.NewExpression,
371
- NodeType.CallExpression
372
- ];
373
- /**
374
- * Check if the given node is an unstable assignment pattern (will change between assignments)
375
- * @param node The AST node to check
376
- * @param node.right The right side of the assignment
377
- */ function isUnstableAssignmentPattern(node) {
378
- const { right } = node;
379
- if (right.type === NodeType.Literal) {
380
- return "regex" in right;
381
- }
382
- return isOneOf(unstableAssignmentPatternTypes)(right);
383
- }
384
-
385
- /**
386
- * Determines whether node equals to another node
387
- * @param a node to compare
388
- * @param b node to compare
389
- * @returns `true` if node equal
390
- * @see https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/src/util/isNodeEqual.ts
391
- */ function isNodeEqual(a, b) {
392
- if (a.type !== b.type) {
393
- return false;
394
- }
395
- if (a.type === NodeType.ThisExpression && b.type === NodeType.ThisExpression) {
396
- return true;
397
- }
398
- if (a.type === NodeType.Literal && b.type === NodeType.Literal) {
399
- return a.value === b.value;
400
- }
401
- if (a.type === NodeType.Identifier && b.type === NodeType.Identifier) {
402
- return a.name === b.name;
403
- }
404
- if (a.type === NodeType.MemberExpression && b.type === NodeType.MemberExpression) {
405
- return isNodeEqual(a.property, b.property) && isNodeEqual(a.object, b.object);
406
- }
407
- return false;
408
- }
409
-
410
- // Ported from: https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/utils/src/ast-utils/eslint-utils/astUtilities.ts
411
- /**
412
- * Get the proper location of a given function node to report.
413
- * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getfunctionheadlocation}
414
- */ const getFunctionHeadLocation = eslintUtils.getFunctionHeadLocation;
415
- /**
416
- * Get the name and kind of a given function node.
417
- * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getfunctionnamewithkind}
418
- */ const getFunctionNameWithKind = eslintUtils.getFunctionNameWithKind;
419
- /**
420
- * Get the property name of a given property node.
421
- * If the node is a computed property, this tries to compute the property name by the getStringIfConstant function.
422
- * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getpropertyname}
423
- * @returns The property name of the node. If the property name is not constant then it returns `null`.
424
- */ const getPropertyName = eslintUtils.getPropertyName;
425
- /**
426
- * Get the value of a given node if it can decide the value statically.
427
- * If the 2nd parameter `initialScope` was given, this function tries to resolve identifier references which are in the
428
- * given node as much as possible. In the resolving way, it does on the assumption that built-in global objects have
429
- * not been modified.
430
- * For example, it considers `Symbol.iterator`, ` String.raw``hello`` `, and `Object.freeze({a: 1}).a` as static.
431
- * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getstaticvalue}
432
- * @returns The `{ value: any }` shaped object. The `value` property is the static value. If it couldn't compute the
433
- * static value of the node, it returns `null`.
434
- */ const getStaticValue = eslintUtils.getStaticValue;
435
- /**
436
- * Get the string value of a given node.
437
- * This function is a tiny wrapper of the getStaticValue function.
438
- * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getstringifconstant}
439
- */ const getStringIfConstant = eslintUtils.getStringIfConstant;
440
- /**
441
- * Check whether a given node has any side effect or not.
442
- * The side effect means that it may modify a certain variable or object member. This function considers the node which
443
- * contains the following types as the node which has side effects:
444
- * - `AssignmentExpression`
445
- * - `AwaitExpression`
446
- * - `CallExpression`
447
- * - `ImportExpression`
448
- * - `NewExpression`
449
- * - `UnaryExpression([operator = "delete"])`
450
- * - `UpdateExpression`
451
- * - `YieldExpression`
452
- * - When `options.considerGetters` is `true`:
453
- * - `MemberExpression`
454
- * - When `options.considerImplicitTypeConversion` is `true`:
455
- * - `BinaryExpression([operator = "==" | "!=" | "<" | "<=" | ">" | ">=" | "<<" | ">>" | ">>>" | "+" | "-" | "*" | "/" | "%" | "|" | "^" | "&" | "in"])`
456
- * - `MemberExpression([computed = true])`
457
- * - `MethodDefinition([computed = true])`
458
- * - `Property([computed = true])`
459
- * - `UnaryExpression([operator = "-" | "+" | "!" | "~"])`
460
- * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#hassideeffect}
461
- */ const hasSideEffect = eslintUtils.hasSideEffect;
462
- const isParenthesized = eslintUtils.isParenthesized;
463
-
464
- /**
465
- * Checks if the given node is a function expression or arrow function expression of a object method.
466
- * @param node The node to check.
467
- * @returns `true` if the node is a function expression or arrow function expression of a object method, `false` otherwise.
468
- */ const isFunctionOfObjectMethod = a({
469
- type: _.union([
470
- NodeType.FunctionExpression,
471
- NodeType.ArrowFunctionExpression
472
- ]),
473
- parent: {
474
- type: NodeType.Property,
475
- parent: {
476
- type: NodeType.ObjectExpression
477
- }
478
- }
479
- });
480
- /**
481
- * Checks if the given node is a function expression or arrow function expression of a class method.
482
- * @param node The node to check.
483
- * @returns `true` if the node is a function expression or arrow function expression of a class method, `false` otherwise.
484
- */ const isFunctionOfClassMethod = a({
485
- type: _.union([
486
- NodeType.FunctionExpression,
487
- NodeType.ArrowFunctionExpression
488
- ]),
489
- parent: {
490
- type: NodeType.MethodDefinition,
491
- parent: {
492
- type: NodeType.ClassBody
493
- }
494
- }
495
- });
496
- /**
497
- * Checks if the given node is a function expression or arrow function expression of a class property.
498
- * @param node The node to check.
499
- * @returns `true` if the node is a function expression or arrow function expression of a class property, `false` otherwise.
500
- */ const isFunctionOfClassProperty = a({
501
- type: _.union([
502
- NodeType.FunctionExpression,
503
- NodeType.ArrowFunctionExpression
504
- ]),
505
- parent: {
506
- type: NodeType.Property,
507
- parent: {
508
- type: NodeType.ClassBody
509
- }
510
- }
511
- });
512
-
513
- /**
514
- * Checks if a node is an identifier with a given name
515
- * @param node The AST node
516
- * @param name The name
517
- * @returns `true if the node is an identifier with the given name
518
- */ function isIdentifierWithName(node, name) {
519
- return node.type === NodeType.Identifier && node.name === name;
520
- }
521
- /**
522
- * Checks if a node is an identifier with one of names
523
- * @param node The AST node
524
- * @param name The name
525
- * @returns `true` if the node is an identifier with one of names
526
- */ function isIdentifierWithOneOfNames(node, name) {
527
- return node.type === NodeType.Identifier && name.includes(node.name);
528
- }
529
- /**
530
- * Gets FunctionDeclaration's identifier or FunctionExpression's parent identifier if it exists
531
- * @param node The AST node to check
532
- * @returns function identifier or null
533
- */ function getFunctionIdentifier(node) {
534
- if (node.id) {
535
- return node.id;
536
- }
537
- if (isOneOf([
538
- NodeType.ArrowFunctionExpression,
539
- NodeType.FunctionExpression
540
- ])(node)) {
541
- return "id" in node.parent && node.parent.id?.type === NodeType.Identifier ? node.parent.id : null;
542
- }
543
- return null;
544
- }
545
- /**
546
- * Gets class identifier from ClassDeclaration or ClassExpression
547
- * @param node The AST node to check
548
- * @returns class identifier or null
549
- */ function getClassIdentifier(node) {
550
- return N(node).with({
551
- type: NodeType.ClassDeclaration
552
- }, (x)=>x.id).with({
553
- type: NodeType.ClassExpression,
554
- parent: {
555
- id: {
556
- type: NodeType.Identifier
557
- },
558
- type: NodeType.VariableDeclarator
559
- }
560
- }, (x)=>x.parent.id).otherwise(()=>null);
561
- }
562
- /**
563
- * Gets nested identifiers in a node
564
- * @param node The AST node
565
- * @returns The nested identifiers
566
- */ function getNestedIdentifiers(node) {
567
- const identifiers = [];
568
- if (node.type === NodeType.Identifier) {
569
- identifiers.push(node);
570
- }
571
- if ("arguments" in node) {
572
- node.arguments.forEach((x)=>{
573
- identifiers.push(...getNestedIdentifiers(x));
574
- });
575
- }
576
- if ("elements" in node) {
577
- node.elements.forEach((x)=>{
578
- if (x !== null) {
579
- identifiers.push(...getNestedIdentifiers(x));
580
- }
581
- });
582
- }
583
- if ("properties" in node) {
584
- node.properties.forEach((x)=>{
585
- identifiers.push(...getNestedIdentifiers(x));
586
- });
587
- }
588
- if ("expressions" in node) {
589
- node.expressions.forEach((x)=>{
590
- identifiers.push(...getNestedIdentifiers(x));
591
- });
592
- }
593
- if (node.type === NodeType.Property) {
594
- identifiers.push(...getNestedIdentifiers(node.value));
595
- }
596
- if (node.type === NodeType.SpreadElement) {
597
- identifiers.push(...getNestedIdentifiers(node.argument));
598
- }
599
- if (node.type === NodeType.MemberExpression) {
600
- identifiers.push(...getNestedIdentifiers(node.object));
601
- }
602
- if (node.type === NodeType.UnaryExpression) {
603
- identifiers.push(...getNestedIdentifiers(node.argument));
604
- }
605
- if (node.type === NodeType.ChainExpression) {
606
- identifiers.push(...getNestedIdentifiers(node.expression));
607
- }
608
- if (node.type === NodeType.TSNonNullExpression) {
609
- identifiers.push(...getNestedIdentifiers(node.expression));
610
- }
611
- return identifiers;
612
- }
613
-
614
- function isRegExpLiteral(node) {
615
- return node.type === NodeType.Literal && "regex" in node;
616
- }
617
- function isStringLiteral(node) {
618
- return node?.type === NodeType.Literal && isString(node.value);
619
- }
620
-
621
- /**
622
- * Check if a node is multiline
623
- * @param node The AST node to check
624
- * @returns `true` if the node is multiline
625
- */ function isMultiLine(node) {
626
- return node.loc.start.line !== node.loc.end.line;
627
- }
628
- function unsafeIsToStringCall(node) {
629
- return a({
630
- type: NodeType.CallExpression,
631
- callee: {
632
- type: NodeType.MemberExpression,
633
- property: {
634
- type: NodeType.Identifier,
635
- name: "toString"
636
- }
637
- }
638
- }, node);
639
- }
640
- function unsafeIsStringCall(node) {
641
- return a({
642
- type: NodeType.CallExpression,
643
- callee: {
644
- type: NodeType.Identifier,
645
- name: "String"
646
- }
647
- }, node);
648
- }
649
- /**
650
- * Unsafe check whether given node or its parent is directly inside `Array.from` call
651
- * @param node The AST node to check
652
- * @returns `true` if node is directly inside `Array.from` call, `false` if not
653
- */ function unsafeIsArrayFromCall(node) {
654
- return a({
655
- type: NodeType.CallExpression,
656
- callee: {
657
- type: NodeType.MemberExpression,
658
- property: {
659
- name: "from"
660
- }
661
- }
662
- }, node);
663
- }
664
- /**
665
- * Unsafe check whether given node or its parent is directly inside `map` call
666
- * ```jsx
667
- * _ = <div>{items.map(item => <li />)}</div>
668
- * ` ^^^^^^^^^^^^^^ `
669
- * ```
670
- * @param node The AST node to check
671
- * @returns `true` if node is directly inside `map` call, `false` if not
672
- */ function unsafeIsMapCall(node) {
673
- return a({
674
- callee: {
675
- type: NodeType.MemberExpression,
676
- property: {
677
- name: "map"
678
- }
679
- }
680
- }, node);
681
- }
682
-
683
- function isPropertyOfObjectExpression(node) {
684
- return node.parent?.type === NodeType.Property;
685
- }
686
- function isPropertyWithIdentifierKey(node, key) {
687
- return node.type === NodeType.Property && isIdentifierWithName(node.key, key);
688
- }
689
- function findPropertyWithIdentifierKey(properties, key) {
690
- return properties.find((x)=>isPropertyWithIdentifierKey(x, key));
691
- }
692
-
693
- /**
694
- * Gets nested return statements in a node
695
- * @param node The AST node
696
- * @returns The nested return statements
697
- */ function getNestedReturnStatements(node) {
698
- const returnStatements = [];
699
- if (node.type === NodeType.ReturnStatement) {
700
- returnStatements.push(node);
701
- }
702
- if ("body" in node && !isNil(node.body)) {
703
- Array.isArray(node.body) ? node.body.forEach((x)=>{
704
- returnStatements.push(...getNestedReturnStatements(x));
705
- }) : returnStatements.push(...getNestedReturnStatements(node.body));
706
- }
707
- if ("consequent" in node) {
708
- Array.isArray(node.consequent) ? node.consequent.forEach((x)=>{
709
- returnStatements.push(...getNestedReturnStatements(x));
710
- }) : returnStatements.push(...getNestedReturnStatements(node.consequent));
711
- }
712
- if ("alternate" in node && node.alternate !== null) {
713
- Array.isArray(node.alternate) ? node.alternate.forEach((x)=>{
714
- returnStatements.push(...getNestedReturnStatements(x));
715
- }) : returnStatements.push(...getNestedReturnStatements(node.alternate));
716
- }
717
- if ("cases" in node) {
718
- node.cases.forEach((x)=>{
719
- returnStatements.push(...getNestedReturnStatements(x));
720
- });
721
- }
722
- if ("block" in node) {
723
- returnStatements.push(...getNestedReturnStatements(node.block));
724
- }
725
- if ("handler" in node && node.handler !== null) {
726
- returnStatements.push(...getNestedReturnStatements(node.handler));
727
- }
728
- if ("finalizer" in node && node.finalizer !== null) {
729
- returnStatements.push(...getNestedReturnStatements(node.finalizer));
730
- }
731
- if ("expression" in node && node.expression !== true && node.expression !== false) {
732
- returnStatements.push(...getNestedReturnStatements(node.expression));
733
- }
734
- if ("test" in node && node.test !== null) {
735
- returnStatements.push(...getNestedReturnStatements(node.test));
736
- }
737
- return returnStatements;
738
- }
739
-
740
- /**
741
- * Traverses up the AST tree until the predicate returns `true` or the root node is reached
742
- * @param node The AST node to start traversing from
743
- * @param predicate The predicate to check each node
744
- * @returns The first node that matches the predicate or `null` if no node matches
745
- */ function traverseUp(node, predicate) {
746
- const { parent } = node;
747
- if (!parent || parent.type === NodeType.Program) {
748
- return null;
749
- }
750
- return predicate(parent) ? parent : traverseUp(parent, predicate);
751
- }
752
- /**
753
- * Traverses up the AST tree until the predicate returns `true` or the root node is reached
754
- * @template T
755
- * @param node The AST node to start traversing from
756
- * @param predicate The predicate to check each node. **must be a type guard**
757
- * @returns The first node that matches the predicate or `null` if no node matches
758
- */ function traverseUpGuard(node, predicate) {
759
- const { parent } = node;
760
- if (!parent || parent.type === NodeType.Program) {
761
- return null;
762
- }
763
- return predicate(parent) ? parent : traverseUpGuard(parent, predicate);
764
- }
765
-
766
- function isDeclaredInNode({ functionNode, reference, scopeManager }) {
767
- const scope = scopeManager.acquire(functionNode);
768
- return !!scope?.set.has(reference.identifier.name);
769
- }
770
- function getExternalRefs(params) {
771
- const { node, scopeManager, sourceCode } = params;
772
- const scope = scopeManager.acquire(node);
773
- if (!scope) {
774
- return [];
775
- }
776
- const references = scope.references.filter((x)=>x.isRead() && !scope.set.has(x.identifier.name)).map((x)=>{
777
- const referenceNode = traverseUpGuard(x.identifier, isOneOf([
778
- NodeType.MemberExpression,
779
- NodeType.Identifier
780
- ]));
781
- if (!referenceNode) {
782
- return null;
783
- }
784
- return {
785
- node: referenceNode,
786
- text: sourceCode.getText(referenceNode),
787
- variable: x
788
- };
789
- }).filter((x)=>x !== null);
790
- const localRefIds = new Set([
791
- ...scope.set.values()
792
- ].map((x)=>sourceCode.getText(x.identifiers[0])));
793
- const externalRefs = references.filter((x)=>isNil(x.variable.resolved) || !localRefIds.has(x.text));
794
- return uniqueBy(externalRefs, (x)=>x.text).map((x)=>x.variable);
795
- }
796
-
797
- /**
798
- * Find a variable through a list of variables by name
799
- * @param name The name of the variable to find
800
- */ function findVariableByName(name) {
801
- /**
802
- * @param variables The variables to search through
803
- */ return (variables)=>{
804
- return O$1.fromNullable(variables.find((variable)=>variable.name === name));
805
- };
806
- }
807
- /**
808
- * Get all variables from the given scope up to the global scope
809
- * @param startScope The scope to start from
810
- */ function getVariablesUpToGlobal(startScope) {
811
- const scopeRef = MutRef.make(startScope);
812
- const variablesRef = MutRef.make(MutRef.get(scopeRef).variables);
813
- // eslint-disable-next-line functional/no-loop-statements
814
- while(MutRef.get(scopeRef).type !== ScopeType.global){
815
- MutRef.set(scopeRef, MutRef.get(scopeRef).upper);
816
- MutRef.update(variablesRef, (variables)=>variables.concat(MutRef.get(scopeRef).variables));
817
- }
818
- return MutRef.get(variablesRef).reverse();
819
- }
820
- /**
821
- * Find a variable through a list of variables by name, starting from the given scope and going up to the global scope
822
- * @param name The name of the variable to find
823
- * @param startScope The scope to start from
824
- */ function findVariableByNameUpToGlobal(name, startScope) {
825
- return findVariableByName(name)(getVariablesUpToGlobal(startScope));
826
- }
827
- function resolveDefinitionInit(def) {
828
- if ("init" in def.node && !isNullable(def.node.init)) {
829
- return O$1.some(def.node.init);
830
- }
831
- // TODO: support other types of definitions
832
- return O$1.none();
833
- }
834
- /**
835
- * Get the init node of the nth definition of a variable
836
- * @param at The index number of def in defs
837
- * @returns A function that takes a variable and returns the init node of the nth definition of that variable
838
- */ function getVariableInit(at) {
839
- return (variable)=>{
840
- return F.pipe(O$1.some(variable), O$1.flatMapNullable((v)=>v.defs.at(at)), O$1.flatMap(resolveDefinitionInit));
841
- };
842
- }
843
- function isInitExpression(node) {
844
- return node.type !== NodeType.VariableDeclaration;
845
- }
846
- function getVariableInitExpression(at) {
847
- return (variable)=>{
848
- return F.pipe(O$1.some(variable), O$1.flatMapNullable((v)=>v.defs.at(at)), O$1.flatMap(resolveDefinitionInit), O$1.filter(isInitExpression));
849
- };
850
- }
851
-
852
- export { Construction, NodeType, constructionDetector, findPropertyWithIdentifierKey, findVariableByName, findVariableByNameUpToGlobal, getClassIdentifier, getExternalRefs, getFunctionHeadLocation, getFunctionIdentifier, getFunctionNameWithKind, getNestedIdentifiers, getNestedReturnStatements, getPropertyName, getStaticValue, getStringIfConstant, getVariableInit, getVariableInitExpression, getVariablesUpToGlobal, hasSideEffect, is, isArrayTupleType, isClass, isDeclaredInNode, isDestructuringPattern, isFunction, isFunctionOfClassMethod, isFunctionOfClassProperty, isFunctionOfObjectMethod, isFunctionType, isIdentifierWithName, isIdentifierWithOneOfNames, isJSX, isJSXElement, isJSXFragment, isJSXTagNameExpression, isLeftHandSideExpression, isLeftHandSideExpressionType, isLoop, isMultiLine, isNodeEqual, isOneOf, isParenthesized, isProperty, isPropertyOfObjectExpression, isPropertyWithIdentifierKey, isRegExpLiteral, isStringLiteral, isTypeDeclaration, isUnstableAssignmentPattern, readableNodeType, resolveDefinitionInit, traverseUp, traverseUpGuard, unsafeIsArrayFromCall, unsafeIsMapCall, unsafeIsStringCall, unsafeIsToStringCall, unstableAssignmentPatternTypes };