Skip to content

Commit

Permalink
feat: add husky commitlint
Browse files Browse the repository at this point in the history
  • Loading branch information
a-honey committed Dec 7, 2023
1 parent 81ed487 commit be0583f
Show file tree
Hide file tree
Showing 5 changed files with 18,683 additions and 1,210 deletions.
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx --no-install commitlint --edit $1
6 changes: 6 additions & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
extends: ["@commitlint/config-conventional"],
rules: {
"scope-enum": [2, "always", []],
},
};
Loading

0 comments on commit be0583f

Please sign in to comment.