no log: Add pattern parameter to the pretty-quick hook to limit the effective scope

This commit is contained in:
LASER-Yi 2022-08-29 21:33:22 +08:00
parent c2c0cbda0b
commit 34d6185346
1 changed files with 2 additions and 2 deletions

View File

@ -3,5 +3,5 @@
[ -n "$CI" ] && exit 0
cd frontend
npx pretty-quick --staged
cd frontend || exit
npx pretty-quick --staged --pattern "frontend/**/*.*"