Skip to content

Commit cbfa98c

Browse files
committed
chore: make sure that husky hooks are executed
1 parent ab9d59a commit cbfa98c

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

.husky/commit-msg

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env sh
2+
3+
. "$(dirname "$0")/_/husky.sh"
4+
5+
npx commitlint --edit $1
6+
7+
exit 0

.husky/pre-commit

-1
This file was deleted.

package.json

-7
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,11 @@
99
"typecheck": "pnpm run -r typecheck",
1010
"prepare": "husky"
1111
},
12-
"lint-staged": {},
1312
"commitlint": {
1413
"extends": [
1514
"@commitlint/config-conventional"
1615
]
1716
},
18-
"husky": {
19-
"hooks": {
20-
"pre-commit": "lint-staged",
21-
"commit-msg": "commitlint --edit $1"
22-
}
23-
},
2417
"engines": {
2518
"node": "20.15.1",
2619
"pnpm": "9.4.0"

0 commit comments

Comments
 (0)