From aebf4ea8d867652a728dcdc6a5643e1ff8d24a80 Mon Sep 17 00:00:00 2001 From: Allan Bowe <4420615+allanbowe@users.noreply.github.com> Date: Tue, 10 May 2022 12:22:40 +0100 Subject: [PATCH] Update pre-commit --- .git-hooks/pre-commit | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.git-hooks/pre-commit b/.git-hooks/pre-commit index a7262ae..ddec82b 100755 --- a/.git-hooks/pre-commit +++ b/.git-hooks/pre-commit @@ -1,6 +1,8 @@ #!/bin/sh -# Silent mode prevents `commit-msg` err in log window +# Using `--silent` helps for showing any errs in the first line of the response +# The first line is picked up by the VS Code GIT UI popup when rc is not 0 + npm run --silent lint:fix exit 0