Skip to content

Commit

Permalink
fix the local prettier hook to ignore unknown files
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikaela committed Jun 6, 2024
1 parent 358e3e7 commit 662b0d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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!
Expand Down
2 changes: 1 addition & 1 deletion n/prettier.md
Original file line number Diff line number Diff line change
Expand Up @@ -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!
Expand Down

0 comments on commit 662b0d6

Please sign in to comment.