-
Notifications
You must be signed in to change notification settings - Fork 30
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
feat: added husky precommit hook #828
Conversation
@hugosenari please review my PR. |
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npx --no-install commitlint --edit |
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.
Can we make it consistent on where husky is configured? Your change make commitlint running as sh
, but the sh
for pre-commit is now empty and moved to package.json. What's the rationale?
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.
I have used this article for implementation with minor modifications.
@Samridhi-98 Thanks for your contribution so far! I feel like this is an unsuitable ticket for the first ticket in this repo as I have many questions before this PR can be merged (one example is the husky version downgrade). I worry that it'll create a lot more work for you in the end. Thanks a lot for your attempt 🙏 |
Description
package.json
Issue
Fixes #545