An opinionated code formatter.
This image is Prettier wrapper. It enforces a consistent style by parsing your code and re-printing it with its own rules that take the maximum line length into account, wrapping code when necessary.
It is a useful tool, but there is no official image. Therefore, this repository distributes a lightweight image based on alpine.
You can pull from Docker Hub or GitHub Packages, whichever you prefer.
docker pull tmknom/prettier
For more information, see Docker Hub.
docker pull ghcr.io/tmknom/dockerfiles/prettier
For more information, see GitHub Packages.
docker run --rm -v $(pwd):/work tmknom/prettier --write --parser=markdown README.md
docker run --rm -v $(pwd):/work tmknom/prettier --check --parser=markdown README.md
docker run --rm tmknom/prettier --help
Apache 2 Licensed. See LICENSE for full details.
Content type
Image
Digest
sha256:31684fd95…
Size
57.7 MB
Last updated
over 1 year ago
docker pull tmknom/prettier