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

13
.vscode/settings.json vendored
View File

@ -3,17 +3,12 @@
"source.fixAll": "explicit"
},
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"[vue]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescript]":{
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"typescript.tsdk": "node_modules/typescript/lib",
"typescript.preferences.autoImportFileExcludePatterns": ["vue-router/auto$"],
// https://github.com/antfu/vscode-file-nesting-config
"explorer.fileNesting.enabled": true,
"explorer.fileNesting.patterns": {
"tsconfig.json": "tsconfig.*.json, env.d.ts",
"vite.config.*": "jsconfig*, vitest.config.*, cypress.config.*, playwright.config.*",
"package.json": "package-lock.json, pnpm*, .yarnrc*, yarn*, .eslint*, eslint*, .prettier*, prettier*, .editorconfig"
}
"typescript.preferences.autoImportFileExcludePatterns": ["vue-router/auto$"]
}