Prettier support for pre-commit has been moved into https://github.com/pre-commit/mirrors-prettier.
Mirror of Prettier package for pre-commit.
- Prettier: https://github.com/prettier/prettier
- pre-commit: https://github.com/pre-commit/pre-commit
Using Prettier with pre-commit
Add this to your .pre-commit-config.yaml
:
- repo: https://github.com/prettier/pre-commit
rev: main
hooks:
- id: prettier
If you want use specific version of Prettier, use rev
:
- repo: https://github.com/prettier/pre-commit
# Use the sha or branch you want to point at
rev: v2.0.0
hooks:
- id: prettier
All available versions can be found here.
If you can't find the version you want, please open an issue.