Skip to content

Commit 902ad94

Browse files
committed
chore: husky 5
1 parent 7847c2f commit 902ad94

3 files changed

Lines changed: 8 additions & 8 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+
npx lint-staged

package.json

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"setup": "npm run clean && npm install",
88
"setup:yarn": "yarn run clean && yarn",
99
"setup:pnpm": "pnpm run clean && pnpm install",
10-
"postinstall": "ts-patch install && nx run core:setup",
10+
"postinstall": "ts-patch install && husky install && nx run core:setup",
1111
"start": "nps",
1212
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s"
1313
},
@@ -44,9 +44,9 @@
4444
"eslint-config-prettier": "~6.11.0",
4545
"eslint-plugin-prettier": "^3.3.1",
4646
"gonzales": "^1.0.7",
47-
"husky": "^4.2.5",
47+
"husky": "^5.1.3",
4848
"jest": "~26.2.2",
49-
"lint-staged": "^10.2.11",
49+
"lint-staged": "^10.5.0",
5050
"mocha": "^8.0.1",
5151
"mocha-typescript": "^1.1.17",
5252
"module-alias": "^2.2.2",
@@ -67,11 +67,6 @@
6767
"webpack": "~4.44.1",
6868
"webpack-cli": "~3.3.12"
6969
},
70-
"husky": {
71-
"hooks": {
72-
"pre-commit": "npx lint-staged"
73-
}
74-
},
7570
"lint-staged": {
7671
"**/*": [
7772
"nx format:write --files"

0 commit comments

Comments
 (0)