'Advice for simpleTraverse usage from "@typescript-eslint/typescript-estree"
👋
I'm parsing AST with typescript-estree's parse function and traversing the tree with simpleTraverse to identify and collect metadata about different nodes. I read in this issue discussion that simpleTraverse is intentionally not documented as it's only intended for usage by other ESlint packages, which makes sense.
My question is whether it's fine to use as is, or whether there's another tool I should be using. I have tried other common traversal tools, but the types are incomplete and / or conflict with what's provided by @typescript-eslint/typescript-estree. Another option is to copy the simpleTraverse code.
Thanks in advance! I really appreciate this project and the community supporting it. ❤️
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
