-
-
Notifications
You must be signed in to change notification settings - Fork 111
Closed
Description
Prettier-Java 2.7.5
--print-width 55Input:
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.
Metadata
Metadata
Assignees
Labels
No labels