import { defineConfig, globalIgnores } from "eslint/config"; import nextVitals from "eslint-config-next/core-web-vitals"; import nextTs from "eslint-config-next/typescript"; export default defineConfig([ ...nextVitals, ...nextTs, { files: ["components/Throwit.tsx"], rules: { // Throwit intentionally synchronizes mutable WebRTC/browser state from effects. // The component owns those external resources and performs explicit cleanup. "react-hooks/set-state-in-effect": "off", "@next/next/no-html-link-for-pages": "off", }, }, globalIgnores([".next/**", "out/**", "coverage/**", "next-env.d.ts"]), ]);