SPB Git
960 B · 24 lines javascript
1import { defineConfig, globalIgnores } from "eslint/config";2import nextVitals from "eslint-config-next/core-web-vitals";3import nextTs from "eslint-config-next/typescript";45const eslintConfig = defineConfig([6  ...nextVitals,7  ...nextTs,8  globalIgnores([".next/**", "out/**", "build/**", "next-env.d.ts", "scripts/**", "public/sw.js", "e2e-shots/**"]),9  {10    rules: {11      // French UI copy is full of apostrophes; JSX text is already escaped by React.12      "react/no-unescaped-entities": "off",13      // Images come from our own authenticated API (dynamic, private) — next/image optimisation is not applicable.14      "@next/next/no-img-element": "off",15      "@typescript-eslint/no-explicit-any": "warn",16      // download links to our own API routes are plain <a href> on purpose (no client navigation)17      "@next/next/no-html-link-for-pages": "off",18      "react-hooks/set-state-in-effect": "warn",19    },20  },21]);2223export default eslintConfig;24
Files · 1be886b9ab69f18d9076a76b5999fb34716871c9
Menu

Theme