Skip to content

Commit c83a7d3

Browse files
devongovettljharb
authored andcommitted
Exclude flow typeof imports from extraneous dependencies
1 parent 1031e1c commit c83a7d3

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
@@ -128,7 +128,7 @@ function getModuleRealName(resolved) {
128128

129129
function reportIfMissing(context, deps, depsOptions, node, name) {
130130
// Do not report when importing types
131-
if (node.importKind === 'type' || (node.parent && node.parent.importKind === 'type')) {
131+
if (node.importKind === 'type' || (node.parent && node.parent.importKind === 'type') || node.importKind === 'typeof') {
132132
return;
133133
}
134134

0 commit comments

Comments
 (0)