-
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add optional Git hook to run lint before pushing
Say you've completed work on your branch and now you want to create a pull request, but unbeknownst to you, some code doesn't pass the lint step. It's nice to address those lint violations now, otherwise you will end up waiting until CI runs and puts an X on your PR. Some of us on the Shared Libraries team have been testing using a Git hook to run the lint step in the `core` repo, and it has been working well so far, so this commit brings the same idea over. The Git hook runs before each push, allowing commit creation to remain speedy, and it is a completely optional part of setting up your development environment. You can install it by running `yarn sync-git-hooks`.
- Loading branch information
Showing
3 changed files
with
22 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters