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