diff --git a/src/rules/no-unresolved.js b/src/rules/no-unresolved.js index 408b6ff5e6..5491018976 100644 --- a/src/rules/no-unresolved.js +++ b/src/rules/no-unresolved.js @@ -26,9 +26,9 @@ module.exports = { create(context) { const options = context.options[0] || {}; - function checkSourceValue(source) { + function checkSourceValue(source, node) { // ignore type-only imports - if (source.parent && source.parent.importKind === 'type') { + if (node.importKind === 'type') { return; }