From c17ef715f5186bc189e6ef4ef89f0d78013fc032 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Sat, 5 Oct 2024 10:20:03 +0200 Subject: [PATCH] Switch to format:check and simplify comments --- .husky/pre-commit | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.husky/pre-commit b/.husky/pre-commit index 3dcf4656f..4bf77522a 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,7 +1,6 @@ -# Run lint and abort if there are any lint errors -# --quiet will supress warnings which would cause this check to fail too -# this is temporary until all warnings are fixed +# Run linting and stop the commit process if any errors are found +# --quiet suppresses warnings (temporary until all warnings are fixed) npm run lint --quiet || exit 1 -# Run format:check on modified and uncommitted files and abort if there are any formatting errors -npm run format:write --uncommitted || exit 1 +# Check formatting on modified and uncommitted files, stop the commit if issues are found +npm run format:check --uncommitted || exit 1