https://github.com/prettier/pre-commit
Mirror of Prettier package for pre-commit.
https://github.com/prettier/pre-commit
pre-commit prettier
Last synced: 3 months ago
JSON representation
Mirror of Prettier package for pre-commit.
- Host: GitHub
- URL: https://github.com/prettier/pre-commit
- Owner: prettier
- Archived: true
- Created: 2020-08-06T12:44:08.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-11-16T09:56:32.000Z (about 5 years ago)
- Last Synced: 2025-09-16T06:36:49.694Z (4 months ago)
- Topics: pre-commit, prettier
- Language: JavaScript
- Homepage:
- Size: 44.9 KB
- Stars: 7
- Watchers: 6
- Forks: 6
- Open Issues: 6
-
Metadata Files:
- Readme: readme.md
- Funding: .github/funding.yml
Awesome Lists containing this project
README
# Prettier support for pre-commit has been moved into .
# Prettier Mirror
[](https://github.com/prettier/pre-commit/actions?query=branch%3Amain+workflow%3ATest)
[](https://github.com/prettier/prettier)
> Mirror of Prettier package for pre-commit.
- Prettier:
- pre-commit:
## Usage
> Using Prettier with pre-commit
Add this to your `.pre-commit-config.yaml`:
```yaml
- repo: https://github.com/prettier/pre-commit
rev: main
hooks:
- id: prettier
```
## Versions
If you want use specific version of Prettier, use [`rev`](https://pre-commit.com/#pre-commit-configyaml---repos):
```yaml
- 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](https://github.com/prettier/pre-commit/branches/all).
If you can't find the version you want, please [open an issue](https://github.com/prettier/pre-commit/issues/new?title=Prettier@{{version}}%20is%20missing&labels=bug).