red-ui/.husky/pre-commit
2022-07-12 12:17:31 +03:00

7 lines
278 B
Bash
Executable File

#!/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