Skip to content

Commit

Permalink
add husky + pre-commit/push hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
atomicpages committed Jun 24, 2021
1 parent 009be5e commit cf85d71
Show file tree
Hide file tree
Showing 5 changed files with 925 additions and 2 deletions.
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no-install lint-staged
4 changes: 4 additions & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run ts-check && npm t && npm run lint
Loading

0 comments on commit cf85d71

Please sign in to comment.