Skip to content

Commit

Permalink
hooks: Make pre-commit hook actually check formatting instead of just…
Browse files Browse the repository at this point in the history
… trying to write
  • Loading branch information
obiwac committed Jul 4, 2024
1 parent 8b4bf27 commit 7884dff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .git-template/hooks/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ fi

git diff-index --check --cached $against --

# Run `pnpm format` and fail if it fails.
# Run `pnpm format:check` and fail if it fails.

exec pnpm format
exec pnpm format:check

0 comments on commit 7884dff

Please sign in to comment.