don't do pretty variable declaration formatting if retainLines is enabled
This commit is contained in:
parent
fc2be81c43
commit
f441a7cae8
@ -191,7 +191,7 @@ export function VariableDeclaration(node, print, parent) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var sep = ",";
|
var sep = ",";
|
||||||
if (!this.format.compact && hasInits) {
|
if (!this.format.compact && hasInits && !this.format.retainLines) {
|
||||||
sep += `\n${repeating(" ", node.kind.length + 1)}`;
|
sep += `\n${repeating(" ", node.kind.length + 1)}`;
|
||||||
} else {
|
} else {
|
||||||
sep += " ";
|
sep += " ";
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user