Sign inSign up

tmknom/prettier

By tmknom

•Updated over 1 year ago

An opinionated code formatter.

Image
3

500K+

tmknom/prettier repository overview

⁠Prettier

An opinionated code formatter.

⁠Description

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.

⁠Docker registries

You can pull from Docker Hub or GitHub Packages, whichever you prefer.

⁠Docker Hub
docker pull tmknom/prettier

For more information, see Docker Hub⁠.

⁠GitHub Packages
docker pull ghcr.io/tmknom/dockerfiles/prettier

For more information, see GitHub Packages⁠.

⁠Usage

⁠Format markdown
docker run --rm -v $(pwd):/work tmknom/prettier --write --parser=markdown README.md
⁠Check format markdown
docker run --rm -v $(pwd):/work tmknom/prettier --check --parser=markdown README.md
⁠Help
docker run --rm tmknom/prettier --help

⁠Supported platforms

  • linux/amd64
  • linux/arm64

⁠Source repository

⁠License

Apache 2 Licensed. See LICENSE⁠ for full details.

Tag summary

Content type

Image

Digest

sha256:31684fd95…

Size

57.7 MB

Last updated

over 1 year ago

docker pull tmknom/prettier