Skip to content

Commit

Permalink
fix: check for parent importKind
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandopasik committed Jun 12, 2020
1 parent f6982fa commit 70ba425
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rules/no-extraneous-dependencies.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ function optDepErrorMessage(packageName) {

function reportIfMissing(context, deps, depsOptions, node, name) {
// Do not report when importing types
if (node.importKind === 'type') {
if (node.importKind === 'type' || node.parent.importKind === 'type') {
return
}

Expand Down

0 comments on commit 70ba425

Please sign in to comment.