Skip to content
This repository was archived by the owner on Apr 3, 2023. It is now read-only.

Commit 507e9b7

Browse files
committed
chore(deps-dev): migrate husky to v7
1 parent 1883c21 commit 507e9b7

File tree

4 files changed

+11
-8
lines changed

4 files changed

+11
-8
lines changed

.husky/.gitignore

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

.husky/commit-msg

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
yarn commitlint --edit $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+
yarn lint && yarn typescript

package.json

+2-8
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"test": "jest",
3131
"typescript": "tsc --noEmit",
3232
"lint": "eslint \"**/*.{js,ts,tsx}\"",
33-
"prepare": "bob build",
33+
"prepare": "husky install && bob build",
3434
"release": "release-it"
3535
},
3636
"dependencies": {
@@ -52,7 +52,7 @@
5252
"eslint": "7.32.0",
5353
"eslint-config-prettier": "^6.10.1",
5454
"eslint-plugin-prettier": "3.4.1",
55-
"husky": "^4.2.5",
55+
"husky": "^7.0.2",
5656
"jest": "^26.6.3",
5757
"prettier": "^2.0.5",
5858
"react-native-builder-bob": "^0.18.1",
@@ -65,12 +65,6 @@
6565
"<rootDir>/lib/"
6666
]
6767
},
68-
"husky": {
69-
"hooks": {
70-
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
71-
"pre-commit": "yarn lint && yarn typescript"
72-
}
73-
},
7468
"commitlint": {
7569
"extends": [
7670
"@commitlint/config-conventional"

0 commit comments

Comments
 (0)