Skip to content
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

Add husky (git commit hooks) #348

Merged
merged 2 commits into from
Nov 29, 2024
Merged

Add husky (git commit hooks) #348

merged 2 commits into from
Nov 29, 2024

Conversation

benjaminpjones
Copy link
Collaborator

Fixes #290

Git hooks is something I find personally useful, and I notice a lot of "fix lints" commits so I wonder if it would help others too. If you think this would be a bother, let me know and we can make it opt-in (likely by removing it from the "postinstall" script.)

A couple things to know about using husky:

  • If we call it in "postinstall" it will be propagated to all developers during yarn install
  • Devs can add -n/--no-verify flag during git commit to skip the check

@benjaminpjones benjaminpjones merged commit f4fa6a8 into main Nov 29, 2024
3 checks passed
@benjaminpjones benjaminpjones deleted the husky branch November 29, 2024 13:06
benjaminpjones added a commit that referenced this pull request Nov 29, 2024
benjaminpjones added a commit that referenced this pull request Nov 29, 2024
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.

Use husky to set up pre-commit hooks
2 participants