From ec5578d4e43b02a98caeb85e705c006ae54710ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E7=90=A6?= Date: Mon, 19 Oct 2026 16:22:50 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=85=B3=E9=97=AD=20lefthook=20git=20?= =?UTF-8?q?=E6=8F=90=E4=BA=A4=E6=A3=80=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lefthook.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/lefthook.yml b/lefthook.yml index 5b35b80a..9300dc90 100644 --- a/lefthook.yml +++ b/lefthook.yml @@ -1,10 +1,9 @@ -# Git hooks 已关闭(按业务需要临时禁用 pre-commit / commit-msg / post-merge) -# 恢复检查时:把下方 jobs 从历史版本抄回,并执行 pnpm exec lefthook install -# 也可临时用环境变量 LEFTHOOK=0 跳过单次提交 +# Git hooks disabled (pre-commit / commit-msg / post-merge). +# To restore: restore jobs from git history, then run: pnpm exec lefthook install +# One-off skip: LEFTHOOK=0 # -# 原配置含:oxlint / oxfmt / eslint / stylelint / checkType / commitlint / post-merge install +# Previously: oxlint / oxfmt / eslint / stylelint / checkType / commitlint / post-merge install -# 空配置:lefthook 仍可被 install,但不会跑任何检查 pre-commit: jobs: []