From 015117686bd5202a9b27f3eafba53e82e829904c Mon Sep 17 00:00:00 2001 From: Nicolas Cantu Date: Mon, 5 Jan 2026 22:52:42 +0100 Subject: [PATCH] Remove deprecated eslint config from next.config.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit **Motivations:** - Fix Next.js 16.1.1 warning about unsupported eslint configuration - Remove deprecated eslint option from next.config.js **Root causes:** - Next.js 16+ no longer supports eslint configuration in next.config.js - The eslint option has been moved to command-line options or .eslintrc.json **Correctifs:** - Removed eslint configuration block from next.config.js - Added comment explaining the change and alternatives **Evolutions:** - None **Pages affectées:** - next.config.js --- next.config.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/next.config.js b/next.config.js index 9574ab8..3d7c303 100644 --- a/next.config.js +++ b/next.config.js @@ -1,11 +1,8 @@ /** @type {import('next').NextConfig} */ const nextConfig = { reactStrictMode: true, - eslint: { - // Désactiver ESLint lors du build pour permettre le déploiement - // Les erreurs doivent être corrigées mais n'empêchent pas le build - ignoreDuringBuilds: true, - }, + // Note: eslint configuration in next.config.js is no longer supported in Next.js 16+ + // Use 'next lint --ignore-build-errors' or configure in .eslintrc.json instead typescript: { // Désactiver la vérification TypeScript lors du build ignoreBuildErrors: true,