Skip to content

Commit bdef406

Browse files
committed
feat: commit conventional
1 parent 4dcee7e commit bdef406

File tree

4 files changed

+522
-0
lines changed

4 files changed

+522
-0
lines changed

.commitlintrc.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export default {
2+
extends: ['@commitlint/config-conventional'],
3+
}

.husky/commit-msg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
npx --no -- commitlint --edit ${1}

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
},
1818
"devDependencies": {
1919
"@antfu/eslint-config": "^2.6.1",
20+
"@commitlint/cli": "^18.4.3",
21+
"@commitlint/config-conventional": "^18.4.3",
2022
"@nuxt/devtools": "latest",
2123
"@nuxtjs/color-mode": "^3.3.2",
2224
"@nuxtjs/i18n": "^8.0.0",

0 commit comments

Comments
 (0)