Skip to content

Commit 327275a

Browse files
committed
chore: add husky, lint-staged, commithelper, and release-it
1 parent 0456d72 commit 327275a

File tree

5 files changed

+5586
-227
lines changed

5 files changed

+5586
-227
lines changed

.husky/commit-msg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npm exec commithelper -- check --file $1 --fix

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
node_modules/lint-staged/bin/lint-staged.js

.husky/prepare-commit-msg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
exec < /dev/tty && npm exec commithelper -- prompt --file $1

0 commit comments

Comments
 (0)