Bug: Website ESQuery doesn't work for typescript nodes #8896
Labels
accepting prs
Go ahead, send a pull request that resolves this issue
bug
Something isn't working
website: playground
Before You File a Bug Report Please Confirm You Have Done The Following...
Relevant Package
website
Playground Link
https://typescript-eslint.io/play/#ts=5.4.3&showAST=es&fileType=.tsx&esQuery=N4IgZglgNgLgpgJxALhAFQMpoJ4Ac4CCAdkQPYwCGMEpRIANCAM5xRwDGMpSyoMecFCAgATOEWqREDEADcKUAK6DUmHPmJlK1WiAC%2BeoA&code=FAYw9gdgzgLgBLATgLgTRBLCBzOBeOAcgBYAmQoA&eslintrc=N4KABGBEBOCuA2BTAzpAXGYBfEWg&tsconfig=N4KABGBEDGD2C2AHAlgGwKYCcDyiAuysAdgM6QBcYoEEkJemy0eAcgK6qoDCAFutAGsylBm3TgwAXxCSgA&tokens=false
Repro Code
ESLint Config
tsconfig
Expected Result
I expected to find the node when looking for it using the esquery query
TSTypeAnnotation
Actual Result
I get an empty list
Additional Info
Probably we need to pass the visitorKeys as options to match (https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/website/src/components/ast/ASTViewer.tsx#L27)
Versions
/
The text was updated successfully, but these errors were encountered: