JSPM

  • Created
  • Published
  • Downloads 181603
  • Score
    100M100P100Q163747F
  • License MIT

Prettier Java Plugin

Package Exports

  • prettier-plugin-java

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (prettier-plugin-java) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Join the chat at https://gitter.im/jlongster/prettier npm Build Status Coverage Status Dependency status styled with prettier

Prettier Java

Prettier Banner

Status

  • Working version released
  • Please file any bugs

ToDos

  • Make everything more prettier ;)
  • Increase performance (It's already fast though)

Install

yarn add --dev --exact prettier prettier-plugin-java

Use

prettier --write "**/*.java"

Attention

If you're interested in contributing to the development of Prettier for Java, you can follow the CONTRIBUTING guide from Prettier, as it all applies to this repository too.

To test it out on a Java file:

  • Clone this repository.
  • Run yarn.
  • Create a file called test.java.
  • Run yarn prettier test.java to check the output.
  • Run test.sh ../some_project/**/*.java it on your whole project and check for issues, check test_files/*.error (and compare with the .java and the prettier output *.prettier)
  • Check PREVIEW.md for current status of how how certain parts look like (generated automatically from the test cases)

Testing

  • You can call yarn testto test against all regular tests