chore: add husky hook for commitlint

This commit is contained in:
Christopher Willis-Ford 2024-03-08 18:09:52 -08:00
parent a3d685e2a5
commit 81c2209a87
3 changed files with 19 additions and 0 deletions

1
.husky/commit-msg Normal file
View file

@ -0,0 +1 @@
npx --no-install commitlint --edit "$1"

16
package-lock.json generated
View file

@ -16,6 +16,7 @@
"@commitlint/cli": "19.0.3",
"@commitlint/config-conventional": "19.0.3",
"@types/jest": "29.5.12",
"husky": "9.0.11",
"jest": "29.7.0",
"webpack": "5.90.3"
},
@ -4755,6 +4756,21 @@
"node": ">=10.17.0"
}
},
"node_modules/husky": {
"version": "9.0.11",
"resolved": "https://registry.npmjs.org/husky/-/husky-9.0.11.tgz",
"integrity": "sha512-AB6lFlbwwyIqMdHYhwPe+kjOC3Oc5P3nThEoW/AaO2BX3vJDjWPFxYLxokUZOo6RNX20He3AaT8sESs9NJcmEw==",
"dev": true,
"bin": {
"husky": "bin.mjs"
},
"engines": {
"node": ">=18"
},
"funding": {
"url": "https://github.com/sponsors/typicode"
}
},
"node_modules/import-fresh": {
"version": "3.3.0",
"resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz",

View file

@ -5,6 +5,7 @@
"main": "src/index.cjs",
"type": "commonjs",
"scripts": {
"prepare": "husky || true",
"test": "jest"
},
"repository": {
@ -29,6 +30,7 @@
"@commitlint/cli": "19.0.3",
"@commitlint/config-conventional": "19.0.3",
"@types/jest": "29.5.12",
"husky": "9.0.11",
"jest": "29.7.0",
"webpack": "5.90.3"
},