From 847b53dcf5e364c5a229c9fbfbcf62b4ca18ba14 Mon Sep 17 00:00:00 2001 From: Aurora Poppyseed Date: Fri, 4 Oct 2024 15:07:35 +0800 Subject: [PATCH] ci: using lint-staged since it only works staged files --- .husky/pre-commit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.husky/pre-commit b/.husky/pre-commit index e49d971d..0312b760 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1,4 @@ #!/usr/bin/env sh . "$(dirname -- "$0")/_/husky.sh" -npm run prettier +npx lint-staged \ No newline at end of file