Skip to content

feat: precommit checks updated: added ESLint and Svelte checks for frontend - #171

Merged
HardMax71 merged 2 commits into
mainfrom
fix/precommit
Feb 12, 2026
Merged

feat: precommit checks updated: added ESLint and Svelte checks for frontend#171
HardMax71 merged 2 commits into
mainfrom
fix/precommit

Conversation

@HardMax71

@HardMax71 HardMax71 commented Feb 12, 2026

Copy link
Copy Markdown
Owner

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

    • Adds eslint and svelte-check hooks for frontend/src (.ts, .svelte), using the same commands as CI.
    • Updates CONTRIBUTING.md to list the new checks.
  • Bug Fixes

    • Removes unnecessary --ext from the ESLint hook to align with CI.

Written for commit 119e086. Summary will update on new commits.

Summary by CodeRabbit

  • Chores

    • Added frontend pre-commit hooks to run linting and type-checking for frontend files to enforce code quality during development.
  • Documentation

    • Updated contribution guidelines to document the new frontend pre-commit quality checks.

@coderabbitai

coderabbitai Bot commented Feb 12, 2026

Copy link
Copy Markdown
📝 Walkthrough

Walkthrough

Adds two frontend pre-commit hooks (eslint and svelte-check) to .pre-commit-config.yaml and updates CONTRIBUTING.md to document these hooks for TypeScript and Svelte files under frontend/src/.

Changes

Cohort / File(s) Summary
Frontend pre-commit config & docs
\.pre-commit-config.yaml, CONTRIBUTING.md
Added eslint-frontend and svelte-check-frontend hooks targeting `frontend/src/.*.(ts

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Poem

🐰
Hop, I found a lint and a check,
Svelte and TS now shipwrecks… less!
Pre-commit hops in, neat and spry,
Catching bugs before they fly. 🐇✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and specifically summarizes the main change: adding ESLint and Svelte checks to pre-commit configuration for frontend code quality.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix/precommit

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 2 files

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread .pre-commit-config.yaml
@sonarqubecloud

Copy link
Copy Markdown

@HardMax71
HardMax71 merged commit 38c4e1e into main Feb 12, 2026
9 checks passed
@HardMax71
HardMax71 deleted the fix/precommit branch February 12, 2026 07:04
@coderabbitai coderabbitai Bot mentioned this pull request Feb 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant