Closed
Description
opened on Jun 19, 2015
Taking this code sample:
export default class TestClass {
has
}
I'm getting an exception:
node_modules/eslint-plugin-react/lib/rules/prop-types.js:50
if (tokens[0].value === 'propTypes' || tokens[1].value === 'propTypes')
^
TypeError: Cannot read property 'value' of undefined
at isPropTypesDeclaration (node_modules/eslint-plugin-react/lib/rules/prop-types.js:50:55)
at EventEmitter.ClassProperty (node_modules/eslint-plugin-react/lib/rules/prop-types.js:221:12)
at EventEmitter.emit (events.js:107:17)
at Controller.controller.traverse.enter (node_modules/eslint/lib/eslint.js:728:25)
at Controller.__execute (node_modules/eslint/node_modules/estraverse/estraverse.js:393:31)
at Controller.traverse (node_modules/eslint/node_modules/estraverse/estraverse.js:491:28)
at EventEmitter.module.exports.api.verify (node_modules/eslint/lib/eslint.js:721:24)
at processText (node_modules/eslint/lib/cli-engine.js:201:27)
at processFile (node_modules/eslint/lib/cli-engine.js:226:12)
at node_modules/eslint/lib/cli-engine.js:322:26
Activity