fix the local prettier hook to ignore unknown files

This commit is contained in:
Aminda Suomalainen 2024-06-06 17:35:22 +03:00
parent 358e3e7f43
commit 662b0d6adf
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
2 changed files with 2 additions and 2 deletions

View File

@ -89,7 +89,7 @@ repos:
hooks:
- id: pnpm-prettier
name: prettier
entry: pnpm exec prettier --write
entry: pnpm exec prettier --cache --ignore-unknown --write
language: system
# Better handled by pretty-format-json from pre-commit-hooks.
# Remember to have *.json in .prettierignore!

View File

@ -62,7 +62,7 @@ repos:
hooks:
- id: pnpm-prettier
name: prettier
entry: pnpm exec prettier --write
entry: pnpm exec prettier --cache --ignore-unknown --write
language: system
# Better handled by pretty-format-json from pre-commit-hooks.
# Remember to have *.json in .prettierignore!