Skip to content

Commit

Permalink
ci(lint-staged): fix husky and lint-staged issues
Browse files Browse the repository at this point in the history
Fix the excess amount of the same logs, which blows up the terminal/cmd on windows while running
lint-staged from husky

Fixes #123

Signed-off-by: Niloy Sikdar <niloysikdar30@gmail.com>
  • Loading branch information
niloysikdar committed Oct 15, 2022
1 parent e305035 commit b0dc0fa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

if [ -t 2 ]; then
exec >/dev/tty 2>&1
fi

yarn test
yarn lint-staged && git add -A .
yarn lint-staged

0 comments on commit b0dc0fa

Please sign in to comment.