mill icon indicating copy to clipboard operation
mill copied to clipboard

Support Spotless `Prettier` formatter

Open asarkar opened this issue 3 months ago • 5 comments

The default choice PalantirJavaFormat has literally hundreds of open issues that no one looks at or responds to. Both Spotless Maven and Gradle plugins support Prettier, which is a strong alternative, but not supported by mill mill.javalib.spotless.Format.

asarkar avatar Sep 02 '25 22:09 asarkar

Link, please.

lefou avatar Sep 03 '25 07:09 lefou

Are you asking for one of the following?

https://github.com/jhipster/prettier-java

https://github.com/diffplug/spotless/tree/main/plugin-maven

asarkar avatar Sep 03 '25 07:09 asarkar

The default choice PalantirJavaFormat has literally hundreds of open issues that no one looks at or responds to.

Could be, because they require signing a CLA, which turns potential contributors down.

lefou avatar Sep 03 '25 07:09 lefou

I'm not talking about PRs, just triage of issues. I understand requiring a CLA might dissuade some people, but existing maintainers don't seem to respond to the tickets much, if at all. I found 3 tickets all logged for the same issue, and you'd think on an active repo someone would be happy to close 2 of those as duplicates.

asarkar avatar Sep 03 '25 08:09 asarkar

prettier-java requires node / rpm which just adds to the stack. Not exactly a "strictly better" option.

re-thc avatar Sep 25 '25 14:09 re-thc