Skip to content

Commit

Permalink
build: add commit-msg hook
Browse files Browse the repository at this point in the history
  • Loading branch information
oterral committed Oct 17, 2023
1 parent cee0210 commit 3dd1dd9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
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"

yarn commitlint --edit $1
3 changes: 2 additions & 1 deletion commitlint.config.js
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
module.exports = {extends: ['@commitlint/config-conventional']}
const config = { extends: ["@commitlint/config-conventional"] };
export default config;

1 comment on commit 3dd1dd9

@vercel
Copy link

@vercel vercel bot commented on 3dd1dd9 Oct 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.