mirror of
https://github.com/mikaela/mikaela.github.io/
synced 2024-11-22 12:09:28 +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:
|
hooks:
|
||||||
- id: pnpm-prettier
|
- id: pnpm-prettier
|
||||||
name: prettier
|
name: prettier
|
||||||
entry: pnpm exec prettier --write
|
entry: pnpm exec prettier --cache --ignore-unknown --write
|
||||||
language: system
|
language: system
|
||||||
# Better handled by pretty-format-json from pre-commit-hooks.
|
# Better handled by pretty-format-json from pre-commit-hooks.
|
||||||
# Remember to have *.json in .prettierignore!
|
# Remember to have *.json in .prettierignore!
|
||||||
|
@ -62,7 +62,7 @@ repos:
|
|||||||
hooks:
|
hooks:
|
||||||
- id: pnpm-prettier
|
- id: pnpm-prettier
|
||||||
name: prettier
|
name: prettier
|
||||||
entry: pnpm exec prettier --write
|
entry: pnpm exec prettier --cache --ignore-unknown --write
|
||||||
language: system
|
language: system
|
||||||
# Better handled by pretty-format-json from pre-commit-hooks.
|
# Better handled by pretty-format-json from pre-commit-hooks.
|
||||||
# Remember to have *.json in .prettierignore!
|
# Remember to have *.json in .prettierignore!
|
||||||
|
Loading…
Reference in New Issue
Block a user