Files
reader-star/.vscode/settings.json

59 lines
1.4 KiB
JSON
Raw Normal View History

2026-01-16 13:06:44 +08:00
{
// 1. 禁用原生格式化,避免冲突
"editor.formatOnSave": false,
// 2. 核心配置:保存时触发 ESLint 修复动作
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit",
"source.organizeImports": "never"
},
// 3. 必须:强制所有相关文件使用 ESLint 插件作为格式化器
"[vue]": {
"editor.defaultFormatter": "Vue.volar"
2026-01-16 13:06:44 +08:00
},
"[typescript]": {
"editor.defaultFormatter": "rvest.vs-code-prettier-eslint"
2026-01-16 13:06:44 +08:00
},
"[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"
2026-01-16 13:06:44 +08:00
}