Skip to content
This repository was archived by the owner on Mar 28, 2022. It is now read-only.

Commit fc2fb47

Browse files
committed
chore(deps): Update husky
1 parent 266bec4 commit fc2fb47

4 files changed

Lines changed: 48 additions & 115 deletions

File tree

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

package-lock.json

Lines changed: 38 additions & 107 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626
"scripts": {
2727
"lint": "eslint *.js src test",
2828
"lint-staged": "lint-staged",
29-
"test:e2e": "jest --runInBand"
29+
"test:e2e": "jest --runInBand",
30+
"prepare": "is-ci || husky install"
3031
},
3132
"peerDependencies": {
3233
"@mocks-server/core": "2.x"
@@ -40,10 +41,11 @@
4041
"@mocks-server/core": "2.0.0",
4142
"cross-fetch": "3.0.6",
4243
"eslint": "7.20.0",
43-
"eslint-plugin-no-only-tests": "2.4.0",
4444
"eslint-config-prettier": "7.2.0",
45+
"eslint-plugin-no-only-tests": "2.4.0",
4546
"eslint-plugin-prettier": "3.3.1",
46-
"husky": "4.3.8",
47+
"husky": "6.0.0",
48+
"is-ci": "3.0.0",
4749
"jest": "26.6.3",
4850
"lint-staged": "10.5.4",
4951
"prettier": "2.2.1",
@@ -55,11 +57,6 @@
5557
"test/**/*.js": "eslint",
5658
"*.js": "eslint"
5759
},
58-
"husky": {
59-
"hooks": {
60-
"pre-commit": "npm run lint-staged"
61-
}
62-
},
6360
"engines": {
6461
"node": "12.x || 14.x || 15.x || 16.x"
6562
}

0 commit comments

Comments
 (0)