Pre-commit hook to run prettier with plugins
- JavaScript 100%
| .gitignore | ||
| .pre-commit-config.yaml | ||
| .pre-commit-hooks.yaml | ||
| package.json | ||
| README.md | ||
| run-prettier.js | ||
Pre-commit prettier
This project provide a pre-commit hook to run prettier with plugins on your project.
This hook handle installation of prettier in an environment manage by pre-commit. To use plugins, you have to add them in the additional_dependencies key on the hook in your .pre-commit-config.yaml and explicitly require its usage with an argument --plugin=....
Usage
---
repos:
- repo: https://gitea.zionetrix.net/bn8/pre-commit-pylint.git
rev: v3.8.2
hooks:
- id: prettier
additional_dependencies:
- "prettier@3.8.2"
- "@prettier/plugin-php@0.25.0"
args:
- "--plugin=@prettier/plugin-php"