From fa4dc2a5b2c553d2856f1ee174a70f6c280ece23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=94=AF=E7=84=B6?= Date: Mon, 23 Oct 2023 16:40:27 +0800 Subject: [PATCH] chore: add pre-commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 已经有了 lint-staged, 但是并没有在pre-commit时执行,很容易忘记执行, 所以添加了pre-commit --- .husky/pre-commit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.husky/pre-commit b/.husky/pre-commit index 65ff70b82..5ba764e80 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1,4 @@ #!/usr/bin/env sh . "$(dirname -- "$0")/_/husky.sh" -#pnpx lint-staged +pnpx lint-staged