Skip to content
This repository has been archived by the owner. It is now read-only.

Commit e44f29e

Browse files
committed
chore: update husky
1 parent f449f03 commit e44f29e

File tree

4 files changed

+45
-163
lines changed

4 files changed

+45
-163
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: 36 additions & 156 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@
3333
"test": "jest",
3434
"test:e2e": "cd test-e2e && npm run test:ci",
3535
"test:e2e:ci": "cd test-e2e && npm i && npm run apps:install && npm run test:ci",
36-
"test:unit": "npm run test"
36+
"test:unit": "npm run test",
37+
"prepare": "husky install"
3738
},
3839
"dependencies": {
3940
"@mocks-server/admin-api-client": "3.0.0"
@@ -43,7 +44,8 @@
4344
"eslint": "7.23.0",
4445
"eslint-config-prettier": "7.2.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",
@@ -60,11 +62,6 @@
6062
"src/**/*.js": "eslint",
6163
"test/**/*.js": "eslint"
6264
},
63-
"husky": {
64-
"hooks": {
65-
"pre-commit": "npm run lint-staged"
66-
}
67-
},
6865
"engines": {
6966
"node": "12.x || 14.x || 15.x || 16.x"
7067
}

0 commit comments

Comments
 (0)