Skip to content

Commit 6003e5b

Browse files
committed
feat: support React 17
1 parent 2db57df commit 6003e5b

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-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

.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 run lint-staged

package.json

+3-8
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
"version": "yarn run build",
1616
"coverage": "jest --runInBand --coverage --coverageDirectory '../coverage'",
1717
"commit": "git-cz",
18-
"semantic-release": "semantic-release"
18+
"semantic-release": "semantic-release",
19+
"prepare": "husky install"
1920
},
2021
"engines": {
2122
"node": ">=10"
@@ -47,12 +48,6 @@
4748
"prettier --write"
4849
]
4950
},
50-
"husky": {
51-
"hooks": {
52-
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
53-
"pre-commit": "lint-staged"
54-
}
55-
},
5651
"volta": {
5752
"node": "14.11.0",
5853
"yarn": "1.22.4"
@@ -90,7 +85,7 @@
9085
},
9186
"dependencies": {},
9287
"peerDependencies": {
93-
"react": "^16.11.0"
88+
"react": ">=16.0.0"
9489
},
9590
"config": {
9691
"commitizen": {

0 commit comments

Comments
 (0)