Description
prettier: 3.4.2
pretier-plugin-java: 2.6.6
The formatting is not stable with the following code structure and needs to be run twice to get to a stable state:
$ cat initial.java
package main;
class Main {
public static void main(String[] args) {
return MyClass
// comment
.doSomething();
}
}
$ yarn -s prettier --plugin prettier-plugin-java initial.java | tee first.java
package main;
class Main {
public static void main(String[] args) {
return MyClass// comment
.doSomething();
}
}
$ yarn -s prettier --plugin prettier-plugin-java first.java | tee second.java
package main;
class Main {
public static void main(String[] args) {
return MyClass.doSomething(); // comment
}
}
Maybe related #592
Metadata
Metadata
Assignees
Labels
No labels