diff --git a/lib/rules/no-typos.js b/lib/rules/no-typos.js index 98a161eac0..5720503736 100644 --- a/lib/rules/no-typos.js +++ b/lib/rules/no-typos.js @@ -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)); } }