feat: precommit checks updated: added ESLint and Svelte checks for frontend - #171
Conversation
📝 WalkthroughWalkthroughAdds two frontend pre-commit hooks (eslint and svelte-check) to Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches🧪 Generate unit tests (beta)
No actionable comments were generated in the recent review. 🎉 Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In @.pre-commit-config.yaml:
- Around line 25-31: The ESLint pre-commit hook (id: eslint-frontend) is passing
the now-unsupported CLI flag `--ext .ts,.svelte` in the entry command; remove
that flag so the entry reads the flat-config-managed patterns (i.e., change the
entry string from "bash -c 'cd frontend && npx eslint src --ext .ts,.svelte'" to
simply run ESLint via "bash -c 'cd frontend && npx eslint src'"), relying on the
existing pre-commit `files` pattern and the flat config in
frontend/eslint.config.js to determine targets.
|



Summary by cubic
Adds ESLint and Svelte Check as pre-commit hooks for the frontend to catch issues before commits, aligned with CI. Also removes the ESLint --ext flag to match CI and avoid mismatched linting.
New Features
Bug Fixes
Written for commit 119e086. Summary will update on new commits.
Summary by CodeRabbit
Chores
Documentation