Skip to content

Commit bcaedf4

Browse files
chore(husky): move hooks to husky.hook
This change was done using `husky-upgrade`.
1 parent ca3b486 commit bcaedf4

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

package.json

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,7 @@
88
"lint": "tslint --project .",
99
"lint-fix": "tslint --project . --fix",
1010
"pretest": "yarn lint && tsc --project .",
11-
"test": "mocha \"test/**/*Test.js\"",
12-
"commitmsg": "commitlint -e $GIT_PARAMS",
13-
"precommit": "lint-staged",
14-
"postmerge": "yarnhook",
15-
"postcheckout": "yarnhook",
16-
"postrewrite": "yarnhook"
11+
"test": "mocha \"test/**/*Test.js\""
1712
},
1813
"lint-staged": {
1914
"*.ts": [
@@ -93,5 +88,14 @@
9388
"repository": {
9489
"type": "git",
9590
"url": "https://github.com/square/babel-codemod.git"
91+
},
92+
"husky": {
93+
"hooks": {
94+
"commit-msg": "commitlint -e $GIT_PARAMS",
95+
"post-checkout": "yarnhook",
96+
"post-merge": "yarnhook",
97+
"post-rewrite": "yarnhook",
98+
"pre-commit": "lint-staged"
99+
}
96100
}
97-
}
101+
}

0 commit comments

Comments
 (0)