- Next.js 15.5.12 → 16.1.6 avec Turbopack par défaut - ESLint 8 → 9 + migration flat config (eslint.config.mjs) - eslint-config-next 15 → 16, eslint-config-prettier 9 → 10 - @types/node 18 → 22 (aligné avec nodejs_22 du flake.nix) - middleware.ts → proxy.ts (nouvelle convention Next.js 16) - global-error.tsx : import dynamique de Sentry (fix prerendering Turbopack) - CSS : @import Google Fonts déplacé en tête de fichier (requis par Turbopack) - .prettierignore : ajout next-env.d.ts et .clever.json (fichiers auto-générés)
31 lines
719 B
JavaScript
31 lines
719 B
JavaScript
import { defineConfig, globalIgnores } from 'eslint/config'
|
|
import nextVitals from 'eslint-config-next/core-web-vitals'
|
|
import prettier from 'eslint-config-prettier/flat'
|
|
|
|
const eslintConfig = defineConfig([
|
|
...nextVitals,
|
|
prettier,
|
|
{
|
|
// TODO: fix these react-hooks issues then remove these overrides
|
|
rules: {
|
|
'react-hooks/error-boundaries': 'warn',
|
|
'react-hooks/set-state-in-effect': 'warn',
|
|
'react-hooks/refs': 'warn',
|
|
},
|
|
},
|
|
globalIgnores([
|
|
'.next/**',
|
|
'out/**',
|
|
'build/**',
|
|
'next-env.d.ts',
|
|
'frontend/**',
|
|
'api/**',
|
|
'ruby-backend/**',
|
|
'debats-elixir/**',
|
|
'content/**',
|
|
'docs/**',
|
|
'scripts/**',
|
|
]),
|
|
])
|
|
|
|
export default eslintConfig
|