Skip to content

Commit b11f5ab

Browse files
rfermannljharb
andauthored
Update src/rules/max-dependencies.js
Co-authored-by: Jordan Harband <[email protected]>
1 parent dc6cedc commit b11f5ab

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/rules/max-dependencies.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,7 @@ module.exports = {
4343

4444
return {
4545
ImportDeclaration(node) {
46-
if (node.importKind === TYPE_IMPORT) {
47-
if (!ignoreTypeImports) {
48-
dependencies.add(node.source.value)
49-
}
50-
} else {
46+
if (node.importKind !== TYPE_IMPORT || !ignoreTypeImports) {
5147
dependencies.add(node.source.value)
5248
}
5349
lastNode = node.source

0 commit comments

Comments
 (0)