-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
431-fix: Correct behavior of husky precommit #432
Conversation
Lighthouse Report:
|
Lighthouse Report:
|
WalkthroughWalkthroughThe changes introduce a clearer workflow for pre-commit tasks within a project using Husky. A pre-commit hook is added to ensure that linting is executed before commits, while the previous automatic build step is removed. This adjustment aims to prevent style issues from being committed by ensuring that all code is appropriately linted prior to finalizing any commits, enhancing overall code quality. Changes
Assessment against linked issues
Recent review detailsConfiguration used: .coderabbit.yaml Files selected for processing (3)
Files skipped from review due to trivial changes (1)
Additional comments not posted (2)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Outside diff range, codebase verification and nitpick comments (1)
.husky/prepare-commit-msg (1)
41-41
: Remove redundant echo statement.The echo statement on line 41 is redundant and can be removed to clean up the script.
- echo "-"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can delete the concurrently
dependency
npm uninstall concurrently
What type of PR is this? (select all that apply)
Description
Correct behavior of husky precommit, now it runs npx lint-staged and changes files before making the commit itself.
Related Tickets & Documents
Screenshots, Recordings
Added/updated tests?
[optional] Are there any post deployment tasks we need to perform?
no
[optional] What gif best describes this PR or how it makes you feel?
Summary by CodeRabbit
New Features
Changes