Skip to content

Commit a78b9d1

Browse files
crutchcornsatya164
authored andcommitted
feat: upgrade husky to v6
1 parent 8bac4d4 commit a78b9d1

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
yarn commitlint -E HUSKY_GIT_PARAMS
Lines changed: 4 additions & 0 deletions
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

packages/create-react-native-library/templates/common/$package.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
"eslint": "^7.2.0",
5858
"eslint-config-prettier": "^7.0.0",
5959
"eslint-plugin-prettier": "^3.1.3",
60-
"husky": "^4.2.5",
60+
"husky": "^6.0.0",
6161
"jest": "^26.0.1",
6262
"pod-install": "^0.1.0",
6363
"prettier": "^2.0.5",
@@ -78,12 +78,6 @@
7878
"<rootDir>/lib/"
7979
]
8080
},
81-
"husky": {
82-
"hooks": {
83-
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
84-
"pre-commit": "yarn lint && yarn typescript"
85-
}
86-
},
8781
"commitlint": {
8882
"extends": [
8983
"@commitlint/config-conventional"

0 commit comments

Comments
 (0)