Files
lobehub/.husky/pre-commit

6 lines
146 B
Plaintext
Executable File

BRANCH=$(git branch --show-current)
if [ "$BRANCH" = "dev" ] || [ "$BRANCH" = "main" ]; then
npm run type-check
fi
npx --no-install lint-staged