pockethost/.husky/pre-commit
2023-10-12 04:17:13 -07:00

11 lines
171 B
Bash
Executable File

#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
branch="$(git rev-parse --abbrev-ref HEAD)"
if [ "$branch" = "master" ]; then
yarn check:types
yarn lint
fi