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
/usr/local/node_modules/eslint/lib/rules/no-unused-vars.js:406
if (target.type === "VariableDeclarator") {
^
TypeError: Cannot read property 'type' of undefined
at isForInRef (/usr/local/node_modules/eslint/lib/rules/no-unused-vars.js:406:23)
at variable.references.some.ref (/usr/local/node_modules/eslint/lib/rules/no-unused-vars.js:443:21)
at Array.some (native)
at isUsedVariable (/usr/local/node_modules/eslint/lib/rules/no-unused-vars.js:442:40)
at collectUnusedVariables (/usr/local/node_modules/eslint/lib/rules/no-unused-vars.js:565:26)
at Program:exit (/usr/local/node_modules/eslint/lib/rules/no-unused-vars.js:617:36)
at listeners.(anonymous function).forEach.listener (/usr/local/node_modules/eslint/lib/util/safe-emitter.js:47:58)
at Array.forEach (native)
at Object.emit (/usr/local/node_modules/eslint/lib/util/safe-emitter.js:47:38)
at NodeEventGenerator.applySelector (/usr/local/node_modules/eslint/lib/util/node-event-generator.js:251:26)
at NodeEventGenerator.applySelectors (/usr/local/node_modules/eslint/lib/util/node-event-generator.js:280:22)
Bug Template
Actual Behavior
Currently on channel/eslint-4 we get:
Expected Behavior
Shouldn't have exception.
Steps to reproduce
Use channel/eslint-4
With babel and babel-eslint
Relevant links
This commit bumped eslint to 4.15.0: 0594439
However without updating babel-eslint to 8.1.1 we'll hit this issue: eslint/eslint#9767
Currently babel-eslint has just been left on ^8.0.0
The text was updated successfully, but these errors were encountered: