Skip to content

Commit 781937c

Browse files
be5invismanuth
andauthored
Update src/rules/newline-after-import.js
Co-authored-by: Manuel Thalmann <[email protected]>
1 parent c36429b commit 781937c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/rules/newline-after-import.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ after ${type} statement not followed by another ${type}.`,
125125
return
126126
}
127127

128-
if (nextNode && nextNode.type !== 'ImportDeclaration' && nextNode.type !== 'TSImportEqualsDeclaration') {
128+
if (nextNode && nextNode.type !== 'ImportDeclaration' && (nextNode.type !== 'TSImportEqualsDeclaration' || nextNode.isExport)) {
129129
checkForNewLine(node, nextNode, 'import')
130130
}
131131
}

0 commit comments

Comments
 (0)