From 8ea81ad6a9338464987b3430791b3cad831df934 Mon Sep 17 00:00:00 2001 From: CleanDev-Fix <219162456+CleanDev-Fix@users.noreply.github.com> Date: Thu, 30 Jul 2026 01:56:56 -0400 Subject: [PATCH] chore: guard lint-staged pre-commit hook --- .husky/pre-commit | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.husky/pre-commit b/.husky/pre-commit index 2312dc58..d658dae4 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1 +1,6 @@ -npx lint-staged +if [ ! -x ./node_modules/.bin/lint-staged ]; then + echo "lint-staged is not installed locally. Run 'npm install' before committing." >&2 + exit 1 +fi + +./node_modules/.bin/lint-staged