Skip to content

Commit

Permalink
feat(commitlint): verify commit messages using commitlint
Browse files Browse the repository at this point in the history
  • Loading branch information
djcsdy committed Apr 15, 2022
1 parent 96ebfef commit b0cb90a
Show file tree
Hide file tree
Showing 4 changed files with 252 additions and 81 deletions.
5 changes: 5 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
. "$(dirname "$0")/common.sh"

yarn commitlint --edit $1
2 changes: 2 additions & 0 deletions commitlint.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
"use strict";
module.exports = {extends: ["@commitlint/config-conventional"]};
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
"tslib": "2.3.1"
},
"devDependencies": {
"@commitlint/cli": "16.2.3",
"@commitlint/config-conventional": "16.2.1",
"@commitlint/cz-commitlint": "16.2.3",
"@softwareventures/eslint-config": "5.1.5",
"@softwareventures/precise-commits": "2.0.18",
"@softwareventures/prettier-config": "3.0.0",
Expand Down
Loading

0 comments on commit b0cb90a

Please sign in to comment.