Skip to content

Commit e46422d

Browse files
committed
fix: update husky usage
1 parent c416620 commit e46422d

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

.husky/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

.husky/pre-commit

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
node script/prevent-translation-commits.js

.husky/pre-push

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npm run prevent-pushes-to-main

package.json

+1-7
Original file line numberDiff line numberDiff line change
@@ -209,11 +209,5 @@
209209
"engines": {
210210
"node": ">= 16.0.0"
211211
},
212-
"repository": "https://github.com/github/docs",
213-
"husky": {
214-
"hooks": {
215-
"pre-commit": "node script/prevent-translation-commits.js",
216-
"pre-push": "npm run prevent-pushes-to-main"
217-
}
218-
}
212+
"repository": "https://github.com/github/docs"
219213
}

0 commit comments

Comments
 (0)