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
Then executing eslint blah.js crashes eslint with below error:
/usr/local/lib/node_modules/eslint/lib/rules/no-undef.js:59
return parent.type === "UnaryExpression" && parent.operator === "typeof";
^
TypeError: Cannot read property 'type' of undefined
at hasTypeOfOperator (/usr/local/lib/node_modules/eslint/lib/rules/no-undef.js:59:18)
at /usr/local/lib/node_modules/eslint/lib/rules/no-undef.js:84:21
at Array.forEach (native)
at EventEmitter.Program:exit (/usr/local/lib/node_modules/eslint/lib/rules/no-undef.js:80:33)
at EventEmitter.emit (events.js:129:20)
at NodeEventGenerator.leaveNode (/usr/local/lib/node_modules/eslint/lib/util/node-event-generator.js:51:22)
at CommentEventGenerator.leaveNode (/usr/local/lib/node_modules/eslint/lib/util/comment-event-generator.js:111:23)
at Controller.controller.traverse.leave (/usr/local/lib/node_modules/eslint/lib/eslint.js:785:36)
at Controller.__execute (/usr/local/lib/node_modules/eslint/node_modules/estraverse/estraverse.js:397:31)
at Controller.traverse (/usr/local/lib/node_modules/eslint/node_modules/estraverse/estraverse.js:485:28)
When I remove "react/forbid-prop-types" from .eslintrc, this error doesn't occur.
Versions
Node v0.12.4
eslint 1.6.0
eslint-plugin-react 3.5.1
The text was updated successfully, but these errors were encountered:
I've made code as short as possible from my app.
And my shortened
.eslintrc
is:Then executing
eslint blah.js
crashes eslint with below error:When I remove
"react/forbid-prop-types"
from.eslintrc
, this error doesn't occur.The text was updated successfully, but these errors were encountered: