feat: git提交规范

This commit is contained in:
WANGFAN\wangf 2025-03-23 14:32:23 +08:00
parent 971d0d7bd2
commit 43dfded847
4 changed files with 4 additions and 2 deletions

1
.husky/commit-msg Normal file
View File

@ -0,0 +1 @@
npx --no-install commitlint --edit "$1"

1
.husky/pre-commit Normal file
View File

@ -0,0 +1 @@
npm run lint:lint-staged

View File

@ -28,7 +28,7 @@
"lint:prettier": "prettier --write \"src/**/*.{js,ts,json,tsx,css,less,scss,vue,html,md}\"",
"lint:lint-staged": "lint-staged",
"fix": "eslint src --fix",
"prepare": "husky install",
"prepare": "husky",
"preinstall": "npx only-allow pnpm"
},
"dependencies": {

View File

@ -48,7 +48,7 @@ export default defineConfig(({ mode }) => {
}
}
},
// https://cn.vitejs.dev/config/dep-optimization-options.html#dep-optimization-options
// 依赖预加载 https://cn.vitejs.dev/config/dep-optimization-options.html#dep-optimization-options
optimizeDeps: {
include
},