Bug: The token type of null should be Null
instead of Keyword
#11027
Labels
accepting prs
Go ahead, send a pull request that resolves this issue
AST
PRs and Issues about the AST structure
bug
Something isn't working
package: typescript-estree
Issues related to @typescript-eslint/typescript-estree
Before You File a Bug Report Please Confirm You Have Done The Following...
Relevant Package
typescript-estree
Playground Link
https://typescript-eslint.io/play/#ts=5.6.2&showAST=es&fileType=.tsx&code=HYVwNmQ&eslintrc=N4KABGBEBOCuA2BTAzpAXGYBfEWg&tsconfig=N4KABGBEDGD2C2AHAlgGwKYCcDyiAuysAdgM6QBcYoEEkJemy0eAcgK6qoDCAFutAGsylBm3TgwAXxCSgA&tokens=true
Repro Code
null
ESLint Config
tsconfig
Expected Result
.ast.tokens[0].type
should beNull
.Actual Result
.ast.tokens[0].type
isKeyword
.Additional Info
No response
Versions
@typescript-eslint/typescript-estree
The text was updated successfully, but these errors were encountered: