Skip to content

Commit cf85d71

Browse files
committed
add husky + pre-commit/push hooks
1 parent 009be5e commit cf85d71

File tree

5 files changed

+925
-2
lines changed

5 files changed

+925
-2
lines changed

.husky/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

.husky/pre-commit

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx --no-install lint-staged

.husky/pre-push

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npm run ts-check && npm t && npm run lint

0 commit comments

Comments
 (0)