Skip to content

Commit

Permalink
Update src/rules/newline-after-import.js
Browse files Browse the repository at this point in the history
Co-authored-by: Manuel Thalmann <m@nuth.ch>
  • Loading branch information
be5invis and manuth committed Jun 19, 2020
1 parent c36429b commit 781937c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rules/newline-after-import.js
Expand Up @@ -125,7 +125,7 @@ after ${type} statement not followed by another ${type}.`,
return
}

if (nextNode && nextNode.type !== 'ImportDeclaration' && nextNode.type !== 'TSImportEqualsDeclaration') {
if (nextNode && nextNode.type !== 'ImportDeclaration' && (nextNode.type !== 'TSImportEqualsDeclaration' || nextNode.isExport)) {
checkForNewLine(node, nextNode, 'import')
}
}
Expand Down

0 comments on commit 781937c

Please sign in to comment.