It would be good to have a JVM-only version of JSON formatters, without needing to have `prettier` installed. I'd be happy to contribute this, for Gradle - would it be best to raise a PR to add this formatter, or shall I create it as a separate project?
Activity
nedtwigg commentedon Apr 22, 2021
JVM-only json formatter is very welcome! If you can implement it without any third-party dependencies, then it can live in
liblike the sql formatter.If it needs just third-party dependencies then it should live in lib-extra.
spotless/lib-extra/build.gradle
Lines 11 to 18 in 59173b0
If the dependencies you need cause a lot of conflicts (ala #587), then we can always pull it out into a third-party lib later on.
Add JVM-based JSON formatter
Add Gradle bindings for JSON formatter
Add JVM-based JSON formatter
Add Gradle bindings for JSON formatter
Add JVM-based JSON formatter
Add Gradle bindings for JSON formatter
Add JVM-based JSON formatter
Add Gradle bindings for JSON formatter
Add JVM-based JSON formatter
Add Gradle bindings for JSON formatter
WIP: rew! Add JVM-based JSON formatter
Add Gradle bindings for JSON formatter
Add JVM-based JSON formatter
Add Gradle bindings for JSON formatter
WIP: Add JVM-based JSON formatter
WIP: Add Gradle bindings for JSON formatter
Add simple JVM-based JSON formatter
WIP: Add Gradle bindings for JSON formatter
Add simple JVM-based JSON formatter
WIP: Add Gradle bindings for JSON formatter
Add Gradle bindings for JSON formatter
Add Gradle bindings for JSON formatter
Add Gradle bindings for JSON formatter