Skip to content
This repository was archived by the owner on Aug 18, 2025. It is now read-only.

Commit af6b4a9

Browse files
authored
chore: upgrade husky to version 6 (#215)
1 parent c79c1cf commit af6b4a9

File tree

4 files changed

+15
-11
lines changed

4 files changed

+15
-11
lines changed

.husky/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

.husky/pre-commit

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env bash
2+
3+
source "$(dirname "$0")/_/husky.sh"
4+
5+
set -euo pipefail
6+
7+
yarn lint-staged

package.json

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,16 @@
33
"fmt": "prettier --check '**/*.{json,md,yaml,yml}'",
44
"fmt:fix": "prettier --write '**/*.{json,md,yaml,yml}'",
55
"lint": "markdownlint '**/*.md'",
6-
"lint:fix": "markdownlint --fix '**/*.md'"
6+
"lint:fix": "markdownlint --fix '**/*.md'",
7+
"prepare": "husky install"
78
},
89
"devDependencies": {
910
"all-contributors-cli": "^6.20.0",
10-
"husky": "^5.2.0",
11+
"husky": "^6.0.0",
1112
"lint-staged": "^10.5.4",
1213
"markdownlint-cli": "^0.27.1",
1314
"prettier": "^2.2.1"
1415
},
15-
"husky": {
16-
"hooks": {
17-
"pre-commit": "lint-staged"
18-
}
19-
},
2016
"lint-staged": {
2117
"*.{json,yaml,yml}": "prettier --write",
2218
"*.md": [

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -413,10 +413,10 @@ human-signals@^1.1.1:
413413
resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-1.1.1.tgz#c5b1cd14f50aeae09ab6c59fe63ba3395fe4dfa3"
414414
integrity sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw==
415415

416-
husky@^5.2.0:
417-
version "5.2.0"
418-
resolved "https://registry.yarnpkg.com/husky/-/husky-5.2.0.tgz#fc5e1c2300d34855d47de4753607d00943fc0802"
419-
integrity sha512-AM8T/auHXRBxlrfPVLKP6jt49GCM2Zz47m8G3FOMsLmTv8Dj/fKVWE0Rh2d4Qrvmy131xEsdQnb3OXRib67PGg==
416+
husky@^6.0.0:
417+
version "6.0.0"
418+
resolved "https://registry.yarnpkg.com/husky/-/husky-6.0.0.tgz#810f11869adf51604c32ea577edbc377d7f9319e"
419+
integrity sha512-SQS2gDTB7tBN486QSoKPKQItZw97BMOd+Kdb6ghfpBc0yXyzrddI0oDV5MkDAbuB4X2mO3/nj60TRMcYxwzZeQ==
420420

421421
iconv-lite@^0.4.24:
422422
version "0.4.24"

0 commit comments

Comments
 (0)