Skip to content

Commit 078cf74

Browse files
authored
fix: update husky pre-commit hook with proper shebang (#39)
1 parent 88373f2 commit 078cf74

3 files changed

Lines changed: 362 additions & 4 deletions

File tree

.husky/pre-commit

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
if git rev-parse --verify HEAD >/dev/null 2>&1; then
2+
node node_modules/lint-staged/bin/lint-staged.js
3+
else
4+
node node_modules/lint-staged/bin/lint-staged.js --diff="--cached"
5+
fi

0 commit comments

Comments
 (0)