mirror of
https://github.com/Hopiu/djLint.git
synced 2026-05-19 10:31:07 +00:00
docs(pre-commit): fixed pre-commit docs for custom extensions
closes #421
This commit is contained in:
parent
2280c09aef
commit
319ebf3300
3 changed files with 3 additions and 0 deletions
|
|
@ -49,6 +49,7 @@ repos:
|
|||
hooks:
|
||||
- id: djlint-handlebars
|
||||
files: "\\.html"
|
||||
types_or: ['html']
|
||||
```
|
||||
|
||||
You can use the `files` or `exclude` parameters to constrain each hook to its own directory, allowing you to support multiple template languages within the same repo.
|
||||
|
|
|
|||
|
|
@ -49,6 +49,7 @@ repos:
|
|||
hooks:
|
||||
- id: djlint-handlebars
|
||||
files: "\\.html"
|
||||
types_or: ['html']
|
||||
```
|
||||
|
||||
Vous pouvez utiliser les paramètres `files` ou `exclude` pour contraindre chaque hook à son propre répertoire, ce qui vous permet de supporter plusieurs langages de template dans le même repo.
|
||||
|
|
|
|||
|
|
@ -49,6 +49,7 @@ repos:
|
|||
hooks:
|
||||
- id: djlint-handlebars
|
||||
files: "\\.html"
|
||||
types_or: ['html']
|
||||
```
|
||||
|
||||
Вы можете использовать параметры `files` или `exclude`, чтобы ограничить каждый хук своим каталогом, что позволит вам поддерживать несколько языков шаблонов в одном репозитории.
|
||||
|
|
|
|||
Loading…
Reference in a new issue