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

Commit 0e174aa

Browse files
committed
chore(deps): Update husky
1 parent 68dfa33 commit 0e174aa

File tree

4 files changed

+49
-167
lines changed

4 files changed

+49
-167
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: 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: 39 additions & 159 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
@@ -30,11 +30,12 @@
3030
"mocks:install": "cd mocks && npm i",
3131
"mocks:ci": "cd mocks && npm run mocks:ci",
3232
"test": "jest",
33-
"test:unit": "npm run mocks:install && start-server-and-test mocks:ci tcp:3200 test"
33+
"test:unit": "npm run mocks:install && start-server-and-test mocks:ci tcp:3200 test",
34+
"prepare": "is-ci || husky install"
3435
},
3536
"dependencies": {
3637
"cross-fetch": "3.0.6",
37-
"@mocks-server/admin-api-paths": "2.0.0"
38+
"@mocks-server/admin-api-paths": "2.1.0"
3839
},
3940
"devDependencies": {
4041
"@babel/preset-env": "7.13.12",
@@ -48,7 +49,8 @@
4849
"eslint-config-prettier": "6.15.0",
4950
"eslint-plugin-prettier": "3.3.1",
5051
"eslint-plugin-react": "7.23.1",
51-
"husky": "4.3.8",
52+
"husky": "6.0.0",
53+
"is-ci": "3.0.0",
5254
"jest": "26.6.3",
5355
"lint-staged": "10.5.4",
5456
"prettier": "2.2.1",
@@ -64,11 +66,6 @@
6466
"mocks/*.js": "eslint",
6567
"mocks/mocks/*.js": "eslint"
6668
},
67-
"husky": {
68-
"hooks": {
69-
"pre-commit": "npm run lint-staged"
70-
}
71-
},
7269
"engines": {
7370
"node": "12.x || 14.x || 15.x || 16.x"
7471
}

0 commit comments

Comments
 (0)