// Minimal flat config — procoder's lint domain checks .ts/.tsx with this. // Report-only by default (see .procoder/config.toml policy); add rules as needed. import tseslint from "typescript-eslint"; export default tseslint.config( { ignores: [ ".next/**", "node_modules/**", "src/payload-types.ts", // generated — do not lint "src/migrations/**", "media/**", "files-uploads/**", ], }, ...tseslint.configs.recommended.map((c) => ({ ...c, files: ["**/*.{ts,tsx,mjs,cjs}"], })), { rules: { // Generated Payload types use `any` in payload-types.ts; local code may pass // narrow unknowns. Keep the floor permissive until a lint pass is scheduled. "@typescript-eslint/no-explicit-any": "off", "@typescript-eslint/no-unused-vars": [ "error", { argsIgnorePattern: "^_", varsIgnorePattern: "^_" }, ], }, }, );