Skip to content

Commit

Permalink
feat: commit conventional
Browse files Browse the repository at this point in the history
  • Loading branch information
hywax committed Dec 30, 2023
1 parent 4dcee7e commit bdef406
Show file tree
Hide file tree
Showing 4 changed files with 522 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 @@ -17,6 +17,8 @@
},
"devDependencies": {
"@antfu/eslint-config": "^2.6.1",
"@commitlint/cli": "^18.4.3",
"@commitlint/config-conventional": "^18.4.3",
"@nuxt/devtools": "latest",
"@nuxtjs/color-mode": "^3.3.2",
"@nuxtjs/i18n": "^8.0.0",
Expand Down
Loading

0 comments on commit bdef406

Please sign in to comment.