| 1 | import nextVitals from "eslint-config-next/core-web-vitals"; |
| 2 | import nextTs from "eslint-config-next/typescript"; |
| 3 | |
| 4 | const eslintConfig = [ |
| 5 | { |
| 6 | ignores: [ |
| 7 | "node_modules/**", |
| 8 | ".next/**", |
| 9 | ".open-next/**", |
| 10 | ".wrangler/**", |
| 11 | ".cloudflare/**", |
| 12 | "out/**", |
| 13 | "build/**", |
| 14 | "dist/**", |
| 15 | "coverage/**", |
| 16 | "next-env.d.ts", |
| 17 | // Vendored whale-character-v2 reference (executable oracle; not edited here). |
| 18 | "vendor/whale-character-v2/**", |
| 19 | ], |
| 20 | }, |
| 21 | ...nextVitals, |
| 22 | ...nextTs, |
| 23 | { |
| 24 | rules: { |
| 25 | // Bilingual CJK content uses curly quotes intentionally |
| 26 | "react/no-unescaped-entities": "off", |
| 27 | }, |
| 28 | }, |
| 29 | { |
| 30 | files: [ |
| 31 | "components/connection-banner.tsx", |
| 32 | "components/docs-search.tsx", |
| 33 | "components/mobile-menu.tsx", |
| 34 | "components/ratatui/explorer.tsx", |
| 35 | "components/theme-toggle.tsx", |
| 36 | "components/usage-counting.tsx", |
| 37 | ], |
| 38 | rules: { |
| 39 | "react-hooks/set-state-in-effect": "warn", |
| 40 | }, |
| 41 | }, |
| 42 | { |
| 43 | files: ["app/\\[locale\\]/page.tsx"], |
| 44 | rules: { |
| 45 | "react-hooks/purity": "off", |
| 46 | }, |
| 47 | }, |
| 48 | { |
| 49 | files: ["vendor/legal-documents/**"], |
| 50 | rules: { |
| 51 | "@next/next/no-html-link-for-pages": "off", |
| 52 | }, |
| 53 | }, |
| 54 | ]; |
| 55 | |
| 56 | export default eslintConfig; |
| 57 |