Skip to content

Commit

Permalink
[Refactor] no-unresolved: moduleVisitor usage
Browse files Browse the repository at this point in the history
  • Loading branch information
jablko committed Sep 21, 2021
1 parent 4f0f560 commit 3d0262d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rules/no-unresolved.js
Expand Up @@ -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;
}

Expand Down

0 comments on commit 3d0262d

Please sign in to comment.