We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
website
https://typescript-eslint.io/play/#ts=5.4.3&showAST=es&fileType=.tsx&esQuery=N4IgZglgNgLgpgJxALhAFQMpoJ4Ac4CCAdkQPYwCGMEpRIANCAM5xRwDGMpSyoMecFCAgATOEWqREDEADcKUAK6DUmHPmJlK1WiAC%2BeoA&code=FAYw9gdgzgLgBLATgLgTRBLCBzOBeOAcgBYAmQoA&eslintrc=N4KABGBEBOCuA2BTAzpAXGYBfEWg&tsconfig=N4KABGBEDGD2C2AHAlgGwKYCcDyiAuysAdgM6QBcYoEEkJemy0eAcgK6qoDCAFutAGsylBm3TgwAXxCSgA&tokens=false
const str: string = '42'
module.exports = { parser: "@typescript-eslint/parser", };
{ "compilerOptions": { } }
I expected to find the node when looking for it using the esquery query TSTypeAnnotation
TSTypeAnnotation
I get an empty list
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)
/
The text was updated successfully, but these errors were encountered:
It appears to be just on existing node types and works fine for new node types? https://typescript-eslint.io/play/#ts=5.4.3&showAST=es&fileType=.tsx&esQuery=N4IgZglgNgLgpgJxALhAFQMoZgiA7AcwGk4BPAdwHsEATEAGhAGc4o4BjGalUGUgBzgoQEGnDwwIkRAxAA3AIZQArkNSZsuQiQrU6AX31A&code=C4TwDgpgBMULxQM7AE4EsB2BzA3AKAGMB7DZJVALnPW3igHIAWAJnrwDMBXDA4NEqOyJEAFAEMUWKshpYAlNNSYsUAN5QAvniA&eslintrc=N4KABGBEBOCuA2BTAzpAXGYBfEWg&tsconfig=N4KABGBEDGD2C2AHAlgGwKYCcDyiAuysAdgM6QBcYoEEkJemy0eAcgK6qoDCAFutAGsylBm3TgwAXxCSgA&tokens=false
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
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: