Skip to content

Commit 0fcf7b6

Browse files
committed
build(deps-dev): upgrade husky to v7
1 parent a0cd8b1 commit 0fcf7b6

File tree

4 files changed

+11
-8
lines changed

4 files changed

+11
-8
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+
npx --no-install commitlint --edit $1

.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+
npx --no-install lint-staged

.huskyrc

Lines changed: 0 additions & 6 deletions
This file was deleted.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@
3838
"test:update": "npm run test -- --u",
3939
"test:watch": "npm run test -- --watch",
4040
"type-check": "tsc --noEmit",
41-
"semantic-release": "semantic-release"
41+
"semantic-release": "semantic-release",
42+
"prepare": "husky install"
4243
},
4344
"dependencies": {
4445
"@typescript-eslint/experimental-utils": "^4.24.0"
@@ -60,7 +61,7 @@
6061
"eslint-plugin-node": "^11.1.0",
6162
"eslint-plugin-prettier": "^3.4.0",
6263
"eslint-plugin-promise": "^5.1.0",
63-
"husky": "^4.3.8",
64+
"husky": "^7.0.0",
6465
"jest": "^27.0.4",
6566
"lint-staged": "^10.5.4",
6667
"prettier": "2.3.2",

0 commit comments

Comments
 (0)