prettier/tests/switch/empty_lines.js

71 lines
620 B
JavaScript

switch (foo) {
case "bar":
doSomething();
case "baz":
doOtherThing();
}
switch (foo) {
case "bar":
doSomething();
case "baz":
doOtherThing();
}
switch (foo) {
case "bar":
doSomething();
case "baz":
doOtherThing();
}
switch (foo) {
case "bar":
doSomething();
case "baz":
doOtherThing();
}
switch (x) {
case y:
call();
break;
case z:
call();
break;
}
switch (a) {
case b:
if (1) {};
c;
}
switch (a) {
case x:
case y:
call();
case z:
call();
}
switch (a) {
case x: case y:
call();
case z:
call();
}