From 34d61853469415d2ba5bfe242336f15b6a064ad5 Mon Sep 17 00:00:00 2001 From: LASER-Yi Date: Mon, 29 Aug 2022 21:33:22 +0800 Subject: [PATCH] no log: Add pattern parameter to the pretty-quick hook to limit the effective scope --- frontend/.husky/pre-commit | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/.husky/pre-commit b/frontend/.husky/pre-commit index 3f1364f9c..71a781c99 100755 --- a/frontend/.husky/pre-commit +++ b/frontend/.husky/pre-commit @@ -3,5 +3,5 @@ [ -n "$CI" ] && exit 0 -cd frontend -npx pretty-quick --staged +cd frontend || exit +npx pretty-quick --staged --pattern "frontend/**/*.*"