import { defineConfig, globalIgnores } from "eslint/config"; import nextVitals from "eslint-config-next/core-web-vitals"; import nextTs from "eslint-config-next/typescript"; // Next.js 16's own flat configs, as Cross Events. Run with `npm run lint`. export default defineConfig([ ...nextVitals, ...nextTs, { rules: { "react-hooks/exhaustive-deps": ["warn", { additionalHooks: "^useExternalEffect$" }], // Logos and QR codes are small and come from the church's own settings. "@next/next/no-img-element": "off", }, }, globalIgnores([".next/**", "out/**", "next-env.d.ts"]), ]);