Prettier-Java 2.7.5
Playground link
Input:
record Foo(Loooooong a, Looooooooooong b) implements Longer {
@Override
public String toString() {
return "";
}
}
Output:
record Foo(Loooooong a, Looooooooooong b) implements
Longer {
@Override
public String toString() {
return "";
}
}
Expected behavior:
I don't like that Longer is indented the same as the code below it. And perhaps even an empty line could be added. I believe that would be better:
record Foo(Loooooong a, Looooooooooong b) implements
Longer {
@Override
public String toString() {
return "";
}
}
This is my personal preference though. Not sure how to simulate that in Prettier for JS. My tries fail miserably - Prettier doesn't want to wrap the extends line, very strange.
Prettier-Java 2.7.5
Playground link
Input:
Output:
Expected behavior:
I don't like that
Longeris indented the same as the code below it. And perhaps even an empty line could be added. I believe that would be better:This is my personal preference though. Not sure how to simulate that in Prettier for JS. My tries fail miserably - Prettier doesn't want to wrap the
extendsline, very strange.