Skip to content

Commit

Permalink
chore: update husky hooks to v8
Browse files Browse the repository at this point in the history
Signed-off-by: Francisco Buceta <[email protected]>
  • Loading branch information
frbuceta committed May 9, 2022
1 parent f0b37fd commit 5580f4f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
8 changes: 5 additions & 3 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx --no-install commitlint --edit "$1"
[ -n "$CI" ] && exit 0

npx --no -- commitlint --edit "$1"
10 changes: 6 additions & 4 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

[ -n "$CI" ] && exit 0
if [ "$LINT_STAGED" = "0" ]; then
echo "lint-staged disabled via LINT_STAGED env var"
else
npx --no-install lint-staged
exit 0
fi

npx --no lint-staged

0 comments on commit 5580f4f

Please sign in to comment.