Run prettier formatting on commit for frontend code#42470
Run prettier formatting on commit for frontend code#42470jacobshandling merged 8 commits intomainfrom
Conversation
✅ Actions performedReview triggered.
|
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (2)
WalkthroughA new 🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #42470 +/- ##
==========================================
- Coverage 66.65% 66.65% -0.01%
==========================================
Files 2530 2530
Lines 202378 202378
Branches 9149 9149
==========================================
- Hits 134895 134894 -1
- Misses 55290 55291 +1
Partials 12193 12193
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Claude Code Review
This repository is configured for manual code reviews. Comment @claude review to trigger a review.
Tip: disable this comment in your organization's Code Review settings.
There was a problem hiding this comment.
Pull request overview
Adds automated Prettier formatting on commit for the frontend by introducing Husky + lint-staged configuration at the repo root, integrating formatting into the existing JS toolchain.
Changes:
- Add Husky install via
preparescript and include Husky as a devDependency. - Add lint-staged as a devDependency and configure it to run
prettier --writeon staged frontend JS/TS files. - Add a pre-commit hook that runs lint-staged.
Reviewed changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| package.json | Adds Husky/lint-staged tooling plus a lint-staged rule to format staged frontend JS/TS via Prettier. |
| .husky/pre-commit | Introduces a pre-commit hook to run lint-staged. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Undoes #42470, which overwrites local git hook configuration
Summary by CodeRabbit