Prettier-Java 2.10.1
Playground link
Input:
var a = b
? c.c().c(A.class).c()
: c.c().c(A.class).c();
Output:
var a = b
? c
.c()
.c(A.class)
.c()
: c
.c()
.c(A.class)
.c();
Expected behavior:
Unchanged because Prettier for JS does that. Note that it's because of the class keyword. If you change it to something else, the output becomes correct.
Prettier-Java 2.10.1
Playground link
Input:
Output:
Expected behavior:
Unchanged because Prettier for JS does that. Note that it's because of the
classkeyword. If you change it to something else, the output becomes correct.