+2
-8
@@ -35,16 +35,10 @@ else
|
||||
fi
|
||||
|
||||
# Set up pre-commit hook
|
||||
setup_husky_hook "pre-commit" "#!/bin/sh
|
||||
. \"\$(dirname \"\$0\")/_/husky.sh\"
|
||||
|
||||
npx --no-install lint-staged"
|
||||
setup_husky_hook "pre-commit" "npx --no-install lint-staged"
|
||||
|
||||
# Set up commit-msg hook
|
||||
setup_husky_hook "commit-msg" "#!/bin/sh
|
||||
. \"\$(dirname \"\$0\")/_/husky.sh\"
|
||||
|
||||
npx --no-install commitlint --edit \"\$1\""
|
||||
setup_husky_hook "commit-msg" "npx --no-install commitlint --edit \"\$1\""
|
||||
|
||||
# Function to globally install an npm package if not installed
|
||||
install_global_package() {
|
||||
|
||||
Reference in New Issue
Block a user