lobehub/.husky/pre-commit

5 lines
146 B
Text
Executable file

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