Skip to content

Commit

Permalink
Update src/rules/max-dependencies.js
Browse files Browse the repository at this point in the history
Co-authored-by: Jordan Harband <ljharb@gmail.com>
  • Loading branch information
rfermann and ljharb authored Aug 16, 2020
1 parent dc6cedc commit b11f5ab
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/rules/max-dependencies.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,7 @@ module.exports = {

return {
ImportDeclaration(node) {
if (node.importKind === TYPE_IMPORT) {
if (!ignoreTypeImports) {
dependencies.add(node.source.value)
}
} else {
if (node.importKind !== TYPE_IMPORT || !ignoreTypeImports) {
dependencies.add(node.source.value)
}
lastNode = node.source
Expand Down

0 comments on commit b11f5ab

Please sign in to comment.