From 728a55f1d8f27ad67f577c776fee4e860970f8d1 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Sun, 8 Mar 2026 08:06:50 +0000 Subject: [PATCH] fix: simplify frontend lint command in lefthook configuration --- lefthook.yml | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/lefthook.yml b/lefthook.yml index adffe086..619d4d87 100644 --- a/lefthook.yml +++ b/lefthook.yml @@ -101,15 +101,7 @@ pre-commit: frontend-lint: glob: "frontend/**/*.{ts,tsx,js,jsx}" - run: | - cd frontend && npm run lint -- --fix; lint_exit=$? - cd .. - if ! git diff --quiet -- {all_files}; then - git add {all_files} - echo "ESLint: auto-fixed files and re-staged — review changes and commit again." - exit 1 - fi - exit $lint_exit + run: cd frontend && npm run lint # ============================================================