go-wxhelper-web/.husky/pre-commit
2024-01-15 14:56:42 +08:00

11 lines
210 B
Bash

#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
. "$(dirname "$0")/common.sh"
[ -n "$CI" ] && exit 0
# Format and submit code according to lintstagedrc.js configuration
npm run lint:lint-staged
npm run lint:pretty