Skip to content

lppedd/prettier-java

 
 

Repository files navigation

🚧 Work in Progress! 🚧

Build Status

Prettier Java

Prettier Banner

How it works

A Prettier plugin must first parse the source code of the target language into an Abstract Syntax Tree and then print out the AST in a "pretty" style.

Prettier-Java uses a Java-Parser implemented in JavaScript using the Chevrotain Parser Building Toolkit for JavaScript. What this means is that unlike many other prettier plugins, prettier-java has no additional runtime pre-requisites, It could even be used inside a browser.

Status

  • Re-architecture and re-write in progress.
  • pre-alpha version (previous architecture) released.

Install

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

Use

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

Contributing

Contributions are very welcome. See the contribution guide to get started.

About

Prettier Java Plugin

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • JavaScript 62.8%
  • Java 34.4%
  • CSS 2.0%
  • Other 0.8%