Skip to content

Commit 5da5259

Browse files
committed
feat: add husky commit-msg
1 parent 6611adf commit 5da5259

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.husky/commit-msg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
npx --no -- commitlint --edit ${1}

.husky/pre-commit

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#!/bin/sh
22
. "$(dirname "$0")/_/husky.sh"
33

4-
npx lint-staged
4+
# we currently don't lint-staged config in package.json and this file is redundant for now, but we may add more tasks later
5+
# so we keep it for future use. I just added npx to ensure it works on all systems
6+
npx

0 commit comments

Comments
 (0)