chore: run commitlint in commit-msg hook #22
Executable
+2
@@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
npx --no-install commitlint --edit "$1" --strict
|
||||||
+2
-1
@@ -9,7 +9,8 @@
|
|||||||
"verify": "git diff --check",
|
"verify": "git diff --check",
|
||||||
"release:preview": "release-it --dry-run --ci",
|
"release:preview": "release-it --dry-run --ci",
|
||||||
"release:prepare": "release-it --ci",
|
"release:prepare": "release-it --ci",
|
||||||
"commitlint": "commitlint"
|
"commitlint": "commitlint",
|
||||||
|
"prepare": "git config core.hooksPath .githooks"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@commitlint/cli": "21.2.2",
|
"@commitlint/cli": "21.2.2",
|
||||||
|
|||||||
Reference in New Issue
Block a user