Skip to content

Commit

Permalink
Fix TypeError for undefined node in PropType.shape
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Richmond authored and ljharb committed Oct 27, 2017
1 parent a7bc91b commit d61a096
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rules/no-typos.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ module.exports = {
}

function checkValidPropObject (node) {
if (node.type === 'ObjectExpression') {
if (node && node.type === 'ObjectExpression') {
node.properties.forEach(prop => checkValidProp(prop.value));
}
}
Expand Down

0 comments on commit d61a096

Please sign in to comment.