diff --git a/.husky/pre-commit b/.husky/pre-commit index ba4ce54d4..04bca3f87 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1,6 @@ #!/usr/bin/env sh . "$(dirname -- "$0")/_/husky.sh" +# use --no-stash with submodules. Without this it will fail if there are changes only in submodule +# https://github.com/okonet/lint-staged/issues/929#issuecomment-1177098945 npx lint-staged --allow-empty --verbose --no-stash