Skip to content

Commit 70ba425

Browse files
committed
fix: check for parent importKind
1 parent f6982fa commit 70ba425

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rules/no-extraneous-dependencies.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ function optDepErrorMessage(packageName) {
111111

112112
function reportIfMissing(context, deps, depsOptions, node, name) {
113113
// Do not report when importing types
114-
if (node.importKind === 'type') {
114+
if (node.importKind === 'type' || node.parent.importKind === 'type') {
115115
return
116116
}
117117

0 commit comments

Comments
 (0)