2024-01-08 08:58:03 +01:00
|
|
|
---
|
2024-05-18 18:58:57 +02:00
|
|
|
layout: mini
|
2024-01-08 08:58:03 +01:00
|
|
|
permalink: /n/prettier.html
|
|
|
|
sitemap: false
|
2024-05-30 08:05:52 +02:00
|
|
|
lang: en
|
2024-01-08 08:58:03 +01:00
|
|
|
---
|
|
|
|
|
|
|
|
Links to prettier packages I use with `pre-commit` for easier checking of
|
|
|
|
latest versions for manual updates, especially when autoupdate uses unstable
|
|
|
|
versions.
|
|
|
|
|
|
|
|
- [prettier](https://www.npmjs.com/package/prettier)
|
|
|
|
- [prettier-plugin-nginx](https://www.npmjs.com/package/prettier-plugin-nginx)
|
2024-01-08 11:47:02 +01:00
|
|
|
- [@prettier/plugin-ruby](https://www.npmjs.com/package/@prettier/plugin-ruby)
|
2024-01-08 08:58:03 +01:00
|
|
|
- [prettier-plugin-toml](https://www.npmjs.com/package/prettier-plugin-toml)
|
2024-01-08 11:47:02 +01:00
|
|
|
- [@prettier/plugin-xml](https://www.npmjs.com/package/@prettier/plugin-xml)
|
2024-01-09 07:15:10 +01:00
|
|
|
|
|
|
|
## sample pre-commit-config.yaml
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
repos:
|
|
|
|
- repo: https://github.com/pre-commit/mirrors-prettier
|
|
|
|
rev: "v4.0.0-alpha.8"
|
|
|
|
hooks:
|
|
|
|
- id: prettier
|
2024-01-11 08:49:24 +01:00
|
|
|
#exclude_types: [json]
|
2024-01-09 07:15:10 +01:00
|
|
|
additional_dependencies: [
|
|
|
|
# https://aminda.eu/n/prettier
|
|
|
|
"prettier@3.1.1",
|
|
|
|
"prettier-plugin-nginx@1.0.3",
|
|
|
|
"@prettier/plugin-ruby@4.0.4",
|
|
|
|
"prettier-plugin-toml@2.0.1",
|
|
|
|
"@prettier/plugin-xml@3.2.2",
|
|
|
|
]
|
|
|
|
```
|