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') } }