Skip to content

Commit

Permalink
Fix issues with husky and pre commit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
Sruthi Sanigarapu committed Nov 19, 2024
1 parent da188be commit b441d50
Show file tree
Hide file tree
Showing 3 changed files with 532 additions and 507 deletions.
7 changes: 6 additions & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx lint-staged
# use npx22 if available else use npx
if command -v /usr/local/cpanel/3rdparty/bin/npx22 >/dev/null 2>&1; then
/usr/local/cpanel/3rdparty/bin/npx22 lint-staged
else
npx lint-staged
fi
Loading

0 comments on commit b441d50

Please sign in to comment.