Skip to content

Commit dd8aac5

Browse files
chore: update commitlint configuration with husky
1 parent 843dd33 commit dd8aac5

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
@@ -6,7 +6,6 @@
66
},
77
"scripts": {
88
"type-check": "tsc --noEmit",
9-
"commitmsg": "commitlint -e $GIT_PARAMS",
109
"license": "license-checker --onlyAllow 'Apache-2.0; Apache License, Version 2.0; BSD; BSD-2-Clause; BSD-3-Clause; ISC; MIT; Unlicense; WTFPL; CC-BY-3.0; CC0-1.0' --production --summary",
1110
"type-check:watch": "npm run type-check -- --watch",
1211
"lint:ts": "eslint . --ext .js,.ts",
@@ -93,5 +92,10 @@
9392
"extends": [
9493
"@commitlint/config-conventional"
9594
]
95+
},
96+
"husky": {
97+
"hooks": {
98+
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
99+
}
96100
}
97101
}

0 commit comments

Comments
 (0)