-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Husky to enforce pre-push yarn fmt-check (#50)
* Add Husky to enforce pre-push yarn fmt-check * move husky to .config/.husky * Move husky from .husky to husky * hook test
- Loading branch information
1 parent
e7469eb
commit e3cff00
Showing
4 changed files
with
25 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
echo "************************************************************************" | ||
echo "** Running sim-core's 'yarn fmt-check' **" | ||
echo "************************************************************************" | ||
|
||
cd apps/sim-core/ | ||
yarn fmt-check | ||
|
||
if [ $? -ne 0 ]; then | ||
echo "************************************************************************" | ||
echo "** Formatting failed; Run 'yarn fmt' and commit before pushing. **" | ||
echo "************************************************************************" | ||
|
||
exit 1 | ||
fi |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
test change |
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