Skip to content

Commit e1de25b

Browse files
committed
fix: add command to husky pre-commit hook so it doesn't spam log from lint-staged
1 parent e628bae commit e1de25b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.husky/pre-commit

+3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
#!/usr/bin/env sh
22
. "$(dirname -- "$0")/_/husky.sh"
33

4+
# https://github.com/typicode/husky/issues/968#issuecomment-1176848345
5+
exec >/dev/tty 2>&1
6+
47
npx lint-staged

0 commit comments

Comments
 (0)