From 011932af2d732d41a0eac1deff0b676fa5e7bbb3 Mon Sep 17 00:00:00 2001 From: Dan Percic Date: Tue, 12 Jul 2022 12:17:31 +0300 Subject: [PATCH] RED-3800: update lint staged description --- .husky/pre-commit | 2 ++ 1 file changed, 2 insertions(+) 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