-
Notifications
You must be signed in to change notification settings - Fork 233
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add pre-commit git hooks to repo #474
- Loading branch information
1 parent
41f1c69
commit db5113e
Showing
2 changed files
with
8 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,7 @@ | ||
#!/bin/sh | ||
set -e | ||
set -u | ||
|
||
npm run fmt | ||
npm run lint | ||
npm run test |
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 |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
"scripts": { | ||
"fmt": "npm run prettier && npm run shfmt", | ||
"lint": "npm run shellcheck && npm run jshint", | ||
"prepare": "node _scripts/git-hooks-init.js", | ||
"test": "node _webi/test.js ./node/", | ||
"----": "------------------------------------", | ||
"jshint": "npx -p [email protected] -- jshint -c ./.jshintrc --exclude 'node_modules/**/*' */*.js */*/*.js", | ||
|