unibest/.husky/pre-commit
2024-11-10 22:32:20 +08:00

13 lines
272 B
Bash
Executable File

#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
# Load nvm
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
# Use the correct Node.js version
# nvm use v20.15.1
# Run the pre-commit hook
npx --no-install -- lint-staged