From 7884dff4d76228f368e266245c5fe0e178105d30 Mon Sep 17 00:00:00 2001 From: Aymeric Wibo Date: Thu, 4 Jul 2024 16:55:22 +0200 Subject: [PATCH] hooks: Make pre-commit hook actually check formatting instead of just trying to write --- .git-template/hooks/pre-commit | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.git-template/hooks/pre-commit b/.git-template/hooks/pre-commit index 0db8362..7f4194e 100644 --- a/.git-template/hooks/pre-commit +++ b/.git-template/hooks/pre-commit @@ -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