You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 19, 2019. It is now read-only.
The no-unused-vars core rule's code of ESLint crashes.
Additional Info
Stack trace:
TypeError: Cannot read property 'type' of undefined
at isForInRef (D:\project\node_modules\eslint\lib\rules\no-unused-vars.js:436:18)
at variable.references.some (D:\project\node_modules\eslint\lib\rules\no-unused-vars.js:474:13)
at Array.some (<anonymous>)
at isUsedVariable (D:\project\node_modules\eslint\lib\rules\no-unused-vars.js:473:34)
at collectUnusedVariables (D:\project\node_modules\eslint\lib\rules\no-unused-vars.js:613:14)
at collectUnusedVariables (D:\project\node_modules\eslint\lib\rules\no-unused-vars.js:623:9)
at collectUnusedVariables (D:\project\node_modules\eslint\lib\rules\no-unused-vars.js:623:9)
at Program:exit (D:\project\node_modules\eslint\lib\rules\no-unused-vars.js:673:28)
at listeners.(anonymous function).forEach.listener (D:\project\node_modules\eslint\lib\util\safe-emitter.js:45:58)
at Array.forEach (<anonymous>)
Versions
package
version
eslint
5.9.0
eslint-plugin-typescript
0.14.0
typescript-eslint-parser
21.0.1
typescript
3.1.6
The text was updated successfully, but these errors were encountered:
Repro
Expected Result
No error.
Actual Result
The
no-unused-vars
core rule's code of ESLint crashes.Additional Info
Stack trace:
Versions
eslint
5.9.0
eslint-plugin-typescript
0.14.0
typescript-eslint-parser
21.0.1
typescript
3.1.6
The text was updated successfully, but these errors were encountered: