rickvanlieshout.com/.husky/pre-commit

7 lines
115 B
Bash
Executable File

#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
npx --no-install commitlint --edit "$1"
npm run lint:staged
npm run test