import { defineConfig } from "vite-plus";

export default defineConfig({
  fmt: {
    ignorePatterns: [
      "node_modules/**",
      "**/node_modules/**",
      ".agents/skills/**",
      "repos/**",
      "scripts/**",
      "apps/daemon/**",
      "apps/desktop/**",
      "apps/native/**",
      "apps/tui/**",
      "apps/web/build/**",
      "apps/web/.react-router/**",
      "apps/native/.expo/**",
      "apps/native/dist/**",
      "apps/native/web-build/**",
      "packages/backend/convex/_generated/**",
    ],
    semi: true,
    singleQuote: false,
    sortPackageJson: true,
  },
  lint: {
    ignorePatterns: [
      "node_modules/**",
      "**/node_modules/**",
      ".agents/skills/**",
      "repos/**",
      "scripts/**",
      "apps/daemon/**",
      "apps/desktop/**",
      "apps/native/**",
      "apps/tui/**",
      "apps/web/build/**",
      "apps/web/.react-router/**",
      "apps/native/.expo/**",
      "apps/native/dist/**",
      "apps/native/web-build/**",
      "packages/backend/convex/_generated/**",
    ],
    options: {
      typeAware: false,
      typeCheck: false,
    },
  },
  staged: {
    "*.{js,ts,jsx,tsx,vue,svelte,json,jsonc,css,md}": "vp check --fix",
  },
});
