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
TypeError: Cannot read property 'type' of undefined
at isRedundantSuperCall (<project directory>/node_modules/eslint-plugin-react/lib/rules/prefer-stateless-function.js:67:32)
at <project directory>/node_modules/eslint-plugin-react/lib/rules/prefer-stateless-function.js:124:9
at Array.some (native)
at hasOtherProperties (<project directory>/node_modules/eslint-plugin-react/lib/rules/prefer-stateless-function.js:117:23)
at EventEmitter.Program:exit (<project directory>/node_modules/eslint-plugin-react/lib/rules/prefer-stateless-function.js:223:11)
at emitOne (events.js:82:20)
at EventEmitter.emit (events.js:169:7)
at NodeEventGenerator.leaveNode (<project directory>/node_modules/eslint/lib/util/node-event-generator.js:51:22)
at CodePathAnalyzer.leaveNode (<project directory>/node_modules/eslint/lib/code-path-analysis/code-path-analyzer.js:629:23)
at CommentEventGenerator.leaveNode (<project directory>/node_modules/eslint/lib/util/comment-event-generator.js:112:23)
If I add "react/prefer-stateless-function": 0 to my .eslintrc's rules block, eslint works as usual.
The text was updated successfully, but these errors were encountered:
Afraid I don't have time right now to write a really detailed report. Let me know if you need more information...
Node version: 5.3.0 (bit old now, I'll try upgrading in a bit and see if it helps)
Project is based on https://github.com/ryanflorence/react-project
Relevant bits of
package.json
:.eslintrc
:Stack trace:
If I add
"react/prefer-stateless-function": 0
to my.eslintrc
'srules
block, eslint works as usual.The text was updated successfully, but these errors were encountered: