- 新增 .kiro/settings/kiro.json 配置文件,设置 AI 助手语言为中文 - 新增 .kiro/steering/chinese-commit-messages.md 文档,规范化项目 Git 提交消息格式 - 更新 .vscode/settings.json,添加 Kiro AI 助手和 Git 相关配置 - 优化 QuestionConfigCard.vue 中时间选项的排序逻辑 - 重新启用 cover/index.vue 中的 watch 监听器并优化代码格式 - 优化 teams/index.vue 的代码结构和可读性
59 lines
1.4 KiB
JSON
59 lines
1.4 KiB
JSON
{
|
|
// 1. 禁用原生格式化,避免冲突
|
|
"editor.formatOnSave": false,
|
|
|
|
// 2. 核心配置:保存时触发 ESLint 修复动作
|
|
"editor.codeActionsOnSave": {
|
|
"source.fixAll.eslint": "explicit",
|
|
"source.organizeImports": "never"
|
|
},
|
|
|
|
// 3. 必须:强制所有相关文件使用 ESLint 插件作为格式化器
|
|
"[vue]": {
|
|
"editor.defaultFormatter": "Vue.volar"
|
|
},
|
|
"[typescript]": {
|
|
"editor.defaultFormatter": "rvest.vs-code-prettier-eslint"
|
|
},
|
|
"[javascript]": {
|
|
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
|
|
},
|
|
|
|
// 4. 必须:显式声明需要校验的文件类型
|
|
"eslint.validate": [
|
|
"javascript",
|
|
"typescript",
|
|
"vue",
|
|
"html",
|
|
"json",
|
|
"jsonc"
|
|
],
|
|
|
|
// 5. 必须:指定工作区目录(让 Windsurf 知道去哪里加载每个包的配置)
|
|
"eslint.workingDirectories": [
|
|
{ "mode": "auto" },
|
|
"./apps/admin",
|
|
"./apps/user",
|
|
"./packages/eslint-config"
|
|
],
|
|
"totvsLanguageServer.welcomePage": false,
|
|
"cSpell.words": [
|
|
"activityinfo",
|
|
"Echarts",
|
|
"Typeit"
|
|
],
|
|
|
|
// Kiro AI 助手配置
|
|
"kiroAgent.configureMCP": "Disabled",
|
|
"kiro.ai.language": "zh-CN",
|
|
"kiro.ai.commitMessage.language": "chinese",
|
|
"kiro.git.commitMessageLanguage": "zh-CN",
|
|
"kiro.assistant.locale": "zh-CN",
|
|
|
|
// Git 配置
|
|
"git.inputValidationLength": 72,
|
|
|
|
// GitHub Copilot 语言设置(如果安装了)
|
|
"github.copilot.chat.localeOverride": "zh-CN"
|
|
}
|