{
  // We use Biome for linting and formatting.
  "eslint.enable": false,
  // Prettier is enabled only for Astro template formatting (biome handles frontmatter).
  "prettier.enable": true,
  "editor.formatOnSave": true,

  // Auto fix
  "editor.codeActionsOnSave": {
    // Auto fix all Biome issues on save.
    "source.fixAll.biome": "always",
    "source.organizeImports.biome": "always",
    "source.action.useSortedProperties.biome": "always",
    // Disable built-in organize imports to avoid conflicts with Biome.
    "source.organizeImports": "never"
  },

  "biome.requireConfiguration": true,
  "editor.defaultFormatter": "biomejs.biome",
  "js/ts.tsdk.path": "node_modules/typescript/lib",
  // Built-in CSS validation overlaps Biome; disable it for CSS diagnostics only.
  "css.validate": false,

  "[astro]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[typescriptreact]": {
    "editor.defaultFormatter": "biomejs.biome"
  },
  "[css]": {
    "editor.defaultFormatter": "biomejs.biome"
  }
}
