Skip to content

Commit

Permalink
n/prettier.md: add sample config
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikaela committed Jan 9, 2024
1 parent 88ee1ba commit 9c8a0ab
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions n/prettier.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,22 @@ versions.
- [@prettier/plugin-ruby](https://www.npmjs.com/package/@prettier/plugin-ruby)
- [prettier-plugin-toml](https://www.npmjs.com/package/prettier-plugin-toml)
- [@prettier/plugin-xml](https://www.npmjs.com/package/@prettier/plugin-xml)

## sample pre-commit-config.yaml

```yaml
repos:
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v4.0.0-alpha.8"
hooks:
- id: prettier
exclude_types: [json]
additional_dependencies: [
# https://aminda.eu/n/prettier
"[email protected]",
"[email protected]",
"@prettier/[email protected]",
"[email protected]",
"@prettier/[email protected]",
]
```

0 comments on commit 9c8a0ab

Please sign in to comment.