import baseConfig from "@mintel/eslint-config";
import { nextConfig } from "@mintel/eslint-config/next";

export default [
  {
    ignores: [
      "packages/cms-infra/extensions/**",
      "**/index.js",
      "**/*.db",
      "**/build/**",
      "**/data/**",
      "**/reference/**",
      "**/dist/**",
      "**/.next/**",
    ],
  },
  ...baseConfig,
  ...nextConfig.map((config) => ({
    ...config,
    files: [
      "apps/sample-website/**/*.{ts,tsx}",
      "packages/gatekeeper/**/*.{ts,tsx}",
      "../klz-2026/**/*.{ts,tsx}",
    ],
  })),
];
