Skip to content

Commit 3627939

Browse files
committed
feat: add husky
1 parent ac23bbc commit 3627939

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

package.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
"@types/jest": "^26.0.21",
4343
"@types/react": "^16.9.53",
4444
"babel-jest": "^26.6.3",
45+
"husky": "^7.0.2",
4546
"isomorphic-fetch": "^3.0.0",
4647
"jest": "^26.6.3",
4748
"microbundle": "^0.12.3",
@@ -56,5 +57,11 @@
5657
"repository": {
5758
"type": "git",
5859
"url": "https://github.com/lalit2005/use-web3forms.git"
60+
},
61+
"husky": {
62+
"hooks": {
63+
"pre-commit": "yarn format && yarn test",
64+
"pre-push": "yarn format && yarn test"
65+
}
5966
}
6067
}

yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3660,6 +3660,11 @@ human-signals@^2.1.0:
36603660
resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-2.1.0.tgz#dc91fcba42e4d06e4abaed33b3e7a3c02f514ea0"
36613661
integrity sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==
36623662

3663+
husky@^7.0.2:
3664+
version "7.0.2"
3665+
resolved "https://registry.yarnpkg.com/husky/-/husky-7.0.2.tgz#21900da0f30199acca43a46c043c4ad84ae88dff"
3666+
integrity sha512-8yKEWNX4z2YsofXAMT7KvA1g8p+GxtB1ffV8XtpAEGuXNAbCV5wdNKH+qTpw8SM9fh4aMPDR+yQuKfgnreyZlg==
3667+
36633668
iconv-lite@0.4.24, iconv-lite@^0.4.24:
36643669
version "0.4.24"
36653670
resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.24.tgz#2022b4b25fbddc21d2f524974a474aafe733908b"

0 commit comments

Comments
 (0)