Skip to content

Commit 8259898

Browse files
committed
Chore(repo): Migrate git hooks to Husky v9
1 parent 6eb9830 commit 8259898

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

.husky/commit-msg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
#!/bin/sh
12
yarn commitlint --edit $1

.husky/pre-commit

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/usr/bin/env sh
2-
. "$(dirname -- "$0")/_/husky.sh"
3-
41
yarn pretty-quick --staged

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@
3030
"lint:text": "textlint ./",
3131
"lint:text:fix": "yarn lint:text --fix",
3232
"lint:md": "remark ./ --quiet",
33-
"version": "yarn format:fix:changelog"
33+
"version": "yarn format:fix:changelog",
34+
"prepare": "is-ci || husky"
3435
},
3536
"devDependencies": {
3637
"commitlint-cli": "1.1.3",

0 commit comments

Comments
 (0)