Skip to content

Commit

Permalink
Exclude flow typeof imports from extraneous dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
devongovett committed Nov 2, 2019
1 parent 112a0bf commit 575f458
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rules/no-extraneous-dependencies.js
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.importKind === 'typeof') {
return
}

Expand Down

0 comments on commit 575f458

Please sign in to comment.