chore: add commitlint

This commit is contained in:
2023-02-16 22:11:44 +08:00
parent 7b33d17118
commit e17f43ecac
4 changed files with 840 additions and 1 deletions
+21
View File
@@ -0,0 +1,21 @@
{
"extends": [
"@commitlint/config-conventional"
],
"rules": {
"type-enum": [
2,
"always",
[
"feat",
"fix",
"refactor",
"test",
"build",
"docs",
"chore"
]
],
"subject-max-length": [1,"always", 150]
}
}
+4
View File
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
pnpm exec commitlint -e "$1"
+6 -1
View File
@@ -7,13 +7,18 @@
"author": "aibayanyu",
"main": "index.js",
"scripts": {
"test": "vitest"
"test": "vitest",
"prepare": "husky install"
},
"devDependencies": {
"@commitlint/cli": "^17.4.3",
"@commitlint/config-conventional": "^17.4.3",
"@mistjs/eslint-config-vue-jsx": "^0.0.3",
"@mistjs/tsconfig": "^1.0.0",
"@mistjs/tsconfig-vue": "^0.0.3",
"@types/node": "^18.13.0",
"eslint": "^8.34.0",
"husky": "^8.0.3",
"prettier": "^2.8.4",
"typescript": "^4.9.5",
"vite": "^4.1.1",
+809
View File
File diff suppressed because it is too large Load Diff