Skip to content

Commit a2d11ce

Browse files
committed
Ignore yaml and json in prettier pre-commit hook
The .prettierignore file appears to not be respected, but I think this is the only relevant discrepancy with .prettierignore, as we either won't change the remaining files or they're already in .gitignore.
1 parent 9b35015 commit a2d11ce

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.pre-commit-config.yaml.sample

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ repos:
1313
- id: prettier
1414
additional_dependencies:
1515
- [email protected] # SEE: https://github.com/pre-commit/pre-commit/issues/3133
16+
exclude_types: # .prettierignore ignored apparently ...
17+
- yaml
18+
- json
1619
- repo: https://github.com/pre-commit/pre-commit-hooks
1720
rev: v4.5.0 # Use the ref you want to point at
1821
hooks:

0 commit comments

Comments
 (0)