fix: simplify frontend lint command in lefthook configuration

This commit is contained in:
GitHub Actions
2026-03-08 08:06:50 +00:00
parent d3ef8d83b3
commit 728a55f1d8

View File

@@ -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
# ============================================================