Skip to content

Commit b2fdb2e

Browse files
committed
chore: upgrade husky
1 parent 15cb8b9 commit b2fdb2e

File tree

4 files changed

+14
-45
lines changed

4 files changed

+14
-45
lines changed

.husky/commit-msg

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

.husky/pre-commit

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-staged

package.json

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,11 @@
1515
"build": "yarn ncc-build --minify --no-source-map-register",
1616
"build:watch": "yarn ncc-build --watch",
1717
"lint": "eslint . --ignore-pattern '!.eslintrc.js'",
18-
"prepare": "yarn build",
18+
"prepare": " husky install && yarn build",
1919
"prettylint": "prettier README.md package.json --check",
2020
"test": "jest",
2121
"typecheck": "tsc -p ."
2222
},
23-
"husky": {
24-
"hooks": {
25-
"pre-commit": "lint-staged",
26-
"commit-msg": "commitlint -e $HUSKY_GIT_PARAMS"
27-
}
28-
},
2923
"commitlint": {
3024
"extends": [
3125
"@commitlint/config-conventional"
@@ -75,7 +69,7 @@
7569
"eslint-plugin-prettier": "^4.0.0",
7670
"eslint-plugin-react": "^7.16.0",
7771
"eslint-plugin-react-hooks": "^4.0.2",
78-
"husky": "^4.2.5",
72+
"husky": "^7.0.0",
7973
"ink": "^3.2.0",
8074
"jest": "^27.0.0",
8175
"jest-util": "^27.0.0",

yarn.lock

Lines changed: 4 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -2082,11 +2082,6 @@ compare-func@^2.0.0:
20822082
array-ify "^1.0.0"
20832083
dot-prop "^5.1.0"
20842084

2085-
compare-versions@^3.6.0:
2086-
version "3.6.0"
2087-
resolved "https://registry.yarnpkg.com/compare-versions/-/compare-versions-3.6.0.tgz#1a5689913685e5a87637b8d3ffca75514ec41d62"
2088-
integrity sha512-W6Af2Iw1z4CB7q4uU4hv646dW9GQuBM+YpC0UvUCWSD8w90SJjp+ujJuXaEMtAXBtSqGfMPuFOVn4/+FlaqfBA==
2089-
20902085
20912086
version "0.0.1"
20922087
resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b"
@@ -3406,21 +3401,10 @@ humanize-ms@^1.2.1:
34063401
dependencies:
34073402
ms "^2.0.0"
34083403

3409-
husky@^4.2.5:
3410-
version "4.3.8"
3411-
resolved "https://registry.yarnpkg.com/husky/-/husky-4.3.8.tgz#31144060be963fd6850e5cc8f019a1dfe194296d"
3412-
integrity sha512-LCqqsB0PzJQ/AlCgfrfzRe3e3+NvmefAdKQhRYpxS4u6clblBoDdzzvHi8fmxKRzvMxPY/1WZWzomPZww0Anow==
3413-
dependencies:
3414-
chalk "^4.0.0"
3415-
ci-info "^2.0.0"
3416-
compare-versions "^3.6.0"
3417-
cosmiconfig "^7.0.0"
3418-
find-versions "^4.0.0"
3419-
opencollective-postinstall "^2.0.2"
3420-
pkg-dir "^5.0.0"
3421-
please-upgrade-node "^3.2.0"
3422-
slash "^3.0.0"
3423-
which-pm-runs "^1.0.0"
3404+
husky@^7.0.4:
3405+
version "7.0.4"
3406+
resolved "https://registry.yarnpkg.com/husky/-/husky-7.0.4.tgz#242048245dc49c8fb1bf0cc7cfb98dd722531535"
3407+
integrity sha512-vbaCKN2QLtP/vD4yvs6iz6hBEo6wkSzs8HpRah1Z6aGmF2KW5PdYuAd7uX5a+OyBZHBhd+TFLqgjUgytQr4RvQ==
34243408

34253409
34263410
version "0.4.24"
@@ -5367,11 +5351,6 @@ open@^7.4.2:
53675351
is-docker "^2.0.0"
53685352
is-wsl "^2.1.1"
53695353

5370-
opencollective-postinstall@^2.0.2:
5371-
version "2.0.3"
5372-
resolved "https://registry.yarnpkg.com/opencollective-postinstall/-/opencollective-postinstall-2.0.3.tgz#7a0fff978f6dbfa4d006238fbac98ed4198c3259"
5373-
integrity sha512-8AV/sCtuzUeTo8gQK5qDZzARrulB3egtLzFgteqB2tcT4Mw7B8Kt7JcDHmltjz6FOAHsvTevk70gZEbhM4ZS9Q==
5374-
53755354
opener@^1.5.2:
53765355
version "1.5.2"
53775356
resolved "https://registry.yarnpkg.com/opener/-/opener-1.5.2.tgz#5d37e1f35077b9dcac4301372271afdeb2a13598"
@@ -5663,13 +5642,6 @@ pkg-dir@^4.2.0:
56635642
dependencies:
56645643
find-up "^4.0.0"
56655644

5666-
pkg-dir@^5.0.0:
5667-
version "5.0.0"
5668-
resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-5.0.0.tgz#a02d6aebe6ba133a928f74aec20bafdfe6b8e760"
5669-
integrity sha512-NPE8TDbzl/3YQYY7CSS228s3g2ollTFnc+Qi3tqmqJp9Vg2ovUpixcJEo2HJScN2Ez+kEaal6y70c0ehqJBJeA==
5670-
dependencies:
5671-
find-up "^5.0.0"
5672-
56735645
please-upgrade-node@^3.2.0:
56745646
version "3.2.0"
56755647
resolved "https://registry.yarnpkg.com/please-upgrade-node/-/please-upgrade-node-3.2.0.tgz#aeddd3f994c933e4ad98b99d9a556efa0e2fe942"
@@ -7123,11 +7095,6 @@ which-boxed-primitive@^1.0.2:
71237095
is-string "^1.0.5"
71247096
is-symbol "^1.0.3"
71257097

7126-
which-pm-runs@^1.0.0:
7127-
version "1.1.0"
7128-
resolved "https://registry.yarnpkg.com/which-pm-runs/-/which-pm-runs-1.1.0.tgz#35ccf7b1a0fce87bd8b92a478c9d045785d3bf35"
7129-
integrity sha512-n1brCuqClxfFfq/Rb0ICg9giSZqCS+pLtccdag6C2HyufBrh3fBOiy9nb6ggRMvWOVH5GrdJskj5iGTZNxd7SA==
7130-
71317098
which@^1.2.9:
71327099
version "1.3.1"
71337100
resolved "https://registry.yarnpkg.com/which/-/which-1.3.1.tgz#a45043d54f5805316da8d62f9f50918d3da70b0a"

0 commit comments

Comments
 (0)