import { defineConfig, globalIgnores } from "eslint/config"; import nextVitals from "eslint-config-next/core-web-vitals"; import nextTs from "eslint-config-next/typescript"; const eslintConfig = defineConfig([ ...nextVitals, ...nextTs, { rules: { // Temporarily a warning: ~80 pre-existing violations from the React Compiler rules that // eslint-config-next 16 enabled. Everything else stays an error so CI can gate on lint // now; flip this back to "error" once the backlog is cleared (docs/40-DEPLOYMENT.md ยง7). "react-hooks/set-state-in-effect": "warn", }, }, // Override default ignores of eslint-config-next. globalIgnores([ // Default ignores of eslint-config-next: ".next/**", "out/**", "build/**", "next-env.d.ts", ]), ]); export default eslintConfig;