{
  // === 格式化设置 ===
  "editor.defaultFormatter": "esbenp.prettier-vscode",
  "editor.formatOnSave": true,

  // === ESLint 自动修正 ===
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": "explicit"
  },

  // === 让 VS Code 识别 Astro, JS, TS 文件中的 ESLint ===
  "eslint.validate": ["javascript", "typescript", "astro"],

  // === 自动检测 ESLint 配置文件路径 ===
  "eslint.workingDirectories": [{ "mode": "auto" }]
}
