-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issues with husky and pre commit hook
- Loading branch information
Sruthi Sanigarapu
committed
Nov 19, 2024
1 parent
da188be
commit b441d50
Showing
3 changed files
with
532 additions
and
507 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.