Skip to content

Commit b09e967

Browse files
committed
chore: use new husky api
1 parent 75edf29 commit b09e967

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
],
1313
"scripts": {
1414
"build": "tsc",
15-
"precommit": "lint-staged",
1615
"prepublishOnly": "npm run build",
1716
"test": "jest",
1817
"prettier": "prettier --write src/**/*.ts spec/transform.spec.ts jest.config.js **/tsconfig.json ; prettier-package-json --write package.json"
@@ -35,6 +34,11 @@
3534
"ttypescript": "^1.5.8",
3635
"typescript": "^3.7.2"
3736
},
37+
"husky": {
38+
"hooks": {
39+
"pre-commit": "lint-staged"
40+
}
41+
},
3842
"lint-staged": {
3943
"src/**/*.ts": [
4044
"prettier --write",

0 commit comments

Comments
 (0)