add switch case generated node whitespace
This commit is contained in:
parent
59d918ea67
commit
0544e98fb1
@ -80,6 +80,10 @@ Node.prototype.needsWhitespace = function (type) {
|
||||
if (t.isProperty(node) && parent.properties[0] === node) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (t.isSwitchCase(node) && parent.cases[0] === node) {
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
if (type === "after") {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user