mirror of
https://github.com/mikaela/mikaela.github.io/
synced 2024-11-22 03:59:31 +01:00
fix the local prettier hook to ignore unknown files
This commit is contained in:
parent
358e3e7f43
commit
662b0d6adf
@ -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!
|
||||
|
@ -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!
|
||||
|
Loading…
Reference in New Issue
Block a user