chore: 更新 pre-commit 钩子,添加 TypeScript 格式化设置并清理 VSCode 配置

This commit is contained in:
2024-10-19 15:41:38 +08:00
parent 3ffb874049
commit 3d03311ed7
4 changed files with 15 additions and 13 deletions

View File

@ -7,18 +7,15 @@
"scripts": {
"dev": "vite",
"build": "run-p type-check \"build-only {@}\" --",
"preview": "vite preview",
"build-only": "vite build",
"type-check": "vue-tsc --build --force",
"lint": "eslint . --fix",
"format": "prettier --write src/",
"prepare": "husky",
"dev+preview": "bunx dev-and-preview@1.0.0",
"taze": "pnpx taze",
"playwright": "playwright test",
"playwright:ui": "playwright test --ui",
"playwright:chromium": "playwright test --project=chromium",
"depcheck": "depcheck"
"playwright:chromium": "playwright test --project=chromium"
},
"lint-staged": {
"src/**/*.{js,ts,vue}": [
@ -75,6 +72,8 @@
"@vue/eslint-config-typescript": "^14.1.1",
"@vue/test-utils": "^2.4.6",
"@vue/tsconfig": "^0.5.1",
"commitizen": "^4.3.1",
"cz-conventional-changelog": "^3.3.0",
"depcheck": "^1.4.7",
"eruda": "^3.4.0",
"eslint": "^9.12.0",