TypeError: Cannot read property 'length' of undefined #2439
Labels
bug
Something isn't working
external
This issue is with another package, not typescript-eslint itself
package: parser
Issues related to @typescript-eslint/parser
Repro
I was writing a custom rule to work along side the
typescript-eslint
plugin but I ran into an issue caused by the parser.eslint-plugin-test/index.js
project/.eslintrc.json
project/index.ts
Expected Result
I expect it to lint the code, without errors.
Actual Result
Additional Info
Here's the debug output.
I have no idea how any of
typescript-eslint
works, but I definitely know esquery tries to access an array that doesn't exist, and it only does this when the code to be linted is using typescript specific features. This also only happens with the adjacent sibling operator followed by a wildcard.Versions
@typescript-eslint/parser
3.10.1
TypeScript
4.0.2
ESLint
7.7.0
node
14.9.0
Thanks.
The text was updated successfully, but these errors were encountered: