Skip to content

Commit

Permalink
Merge pull request #187 from xjamundx/patch-1
Browse files Browse the repository at this point in the history
Fix object rest/spread handling
  • Loading branch information
yannickcr committed Aug 13, 2015
2 parents 13fa214 + 87a42c9 commit 93cbbe7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rules/prop-types.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ module.exports = function(context) {

// Special case for class properties
// (babel-eslint does not expose property name so we have to rely on tokens)
if (node.type === 'ClassProperty') {
if (node && node.type === 'ClassProperty') {
var tokens = context.getFirstTokens(node, 2);
if (
tokens[0].value === 'propTypes' ||
Expand Down

0 comments on commit 93cbbe7

Please sign in to comment.