From 781937c5ec17315bcb1d413f75958c6bbb20f490 Mon Sep 17 00:00:00 2001 From: Belleve Invis Date: Fri, 19 Jun 2020 02:42:07 -0700 Subject: [PATCH] Update src/rules/newline-after-import.js Co-authored-by: Manuel Thalmann --- src/rules/newline-after-import.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rules/newline-after-import.js b/src/rules/newline-after-import.js index 17a2657dcf..0336b0dc25 100644 --- a/src/rules/newline-after-import.js +++ b/src/rules/newline-after-import.js @@ -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') } }