Repository Public
1import { defineConfig, globalIgnores } from "eslint/config";2import nextVitals from "eslint-config-next/core-web-vitals";3import nextTs from "eslint-config-next/typescript";45export default defineConfig([6 ...nextVitals,7 ...nextTs,8 globalIgnores([".next/**", ".next-preview/**", "node_modules/**", "next-env.d.ts", "data/**", "docs/screenshots/**", "test-results/**", "e2e/.tmp/**", ".scratch/**"]),9 {10 rules: {11 // French interface copy is full of apostrophes and guillemets; JSX text is escaped by React anyway.12 "react/no-unescaped-entities": "off",13 // Reading a browser-only capability (text tracks, Picture-in-Picture support, stored preferences) has to14 // happen after hydration, in an effect. The components that do so are written to render once more.15 "react-hooks/set-state-in-effect": "off",16 },17 },18]);19