Skip to content

Commit

Permalink
feat(automations): add commitlint
Browse files Browse the repository at this point in the history
  • Loading branch information
hywax committed Dec 29, 2023
1 parent 35a7e7b commit 0615815
Show file tree
Hide file tree
Showing 4 changed files with 632 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .commitlintrc.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default {
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 --no -- commitlint --edit ${1}
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
},
"devDependencies": {
"@antfu/eslint-config": "^2.6.1",
"@commitlint/cli": "^18.4.3",
"@commitlint/config-conventional": "^18.4.3",
"@types/node": "^20.10.5",
"@vitest/coverage-v8": "^1.1.0",
"camelcase": "^8.0.0",
Expand Down
Loading

0 comments on commit 0615815

Please sign in to comment.