add switch case generated node whitespace
This commit is contained in:
@@ -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") {
|
||||
|
||||
Reference in New Issue
Block a user