forked from svrjs/svrjs
build: add husky and commitlint for commit validation
This commit is contained in:
parent
ae04419988
commit
d555b2af80
4 changed files with 1156 additions and 1 deletions
1
.husky/commit-msg
Normal file
1
.husky/commit-msg
Normal file
|
@ -0,0 +1 @@
|
||||||
|
npx --no -- commitlint --edit "$1"
|
3
commitlint.config.js
Normal file
3
commitlint.config.js
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
module.exports = {
|
||||||
|
extends: ["@commitlint/config-conventional"]
|
||||||
|
};
|
1147
package-lock.json
generated
1147
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -11,9 +11,12 @@
|
||||||
"test": "jest",
|
"test": "jest",
|
||||||
"test:coverage": "jest --coverage",
|
"test:coverage": "jest --coverage",
|
||||||
"test:middleware": "jest tests/middleware",
|
"test:middleware": "jest tests/middleware",
|
||||||
"test:utils": "jest tests/utils"
|
"test:utils": "jest tests/utils",
|
||||||
|
"prepare": "husky"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@commitlint/cli": "^19.4.1",
|
||||||
|
"@commitlint/config-conventional": "^19.4.1",
|
||||||
"@eslint/js": "^9.9.0",
|
"@eslint/js": "^9.9.0",
|
||||||
"archiver": "^7.0.1",
|
"archiver": "^7.0.1",
|
||||||
"ejs": "^3.1.10",
|
"ejs": "^3.1.10",
|
||||||
|
@ -24,6 +27,7 @@
|
||||||
"eslint-plugin-jest": "^28.8.0",
|
"eslint-plugin-jest": "^28.8.0",
|
||||||
"eslint-plugin-prettier": "^5.2.1",
|
"eslint-plugin-prettier": "^5.2.1",
|
||||||
"globals": "^15.9.0",
|
"globals": "^15.9.0",
|
||||||
|
"husky": "^9.1.5",
|
||||||
"jest": "^29.7.0",
|
"jest": "^29.7.0",
|
||||||
"node-mocks-http": "^1.15.1",
|
"node-mocks-http": "^1.15.1",
|
||||||
"prettier": "^3.3.3"
|
"prettier": "^3.3.3"
|
||||||
|
|
Reference in a new issue