Skip to content

Commit

Permalink
chore: 🧑‍💻 enforce Conventional Commits using commitlint pre-commit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
meisZWFLZ committed Nov 26, 2023
1 parent a286c3d commit 60f14d0
Show file tree
Hide file tree
Showing 5 changed files with 882 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .commitlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": ["@commitlint/config-conventional"]
}
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 commitlint --edit $1
3 changes: 2 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
.husky
.github

# dot files
# config files
.prettierignore
.eslintrc.js
webpack.config.js
.commitlintrc.json

# source maps
*.js.map
Expand Down
Loading

0 comments on commit 60f14d0

Please sign in to comment.