Skip to content

Commit

Permalink
Add husky Git hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
i-like-robots committed Jan 9, 2024
1 parent 03709f8 commit 8af113a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .husky/pre-commit
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm test
npx lint-staged && npm run type-check
4 changes: 4 additions & 0 deletions .husky/pre-push
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm test
5 changes: 0 additions & 5 deletions .huskyrc.js

This file was deleted.

1 change: 0 additions & 1 deletion .npmignore
Expand Up @@ -5,7 +5,6 @@
.editorconfig
.eslintignore
.eslintrc.cjs
.huskyrc.js
.lintstagedrc
.prettierignore
.prettierrc.json

0 comments on commit 8af113a

Please sign in to comment.