From efa553c8d52b2e7595318b5e4897baf13b4d847d Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 7 Apr 2026 09:56:19 +0000 Subject: [PATCH] fix(lint): specify explicit React version to fix ESLint 10 compatibility eslint-plugin-react (bundled in eslint-config-next) calls context.getFilename() during React version detection ('detect' mode). This API was removed in ESLint 10. Specifying an explicit version string bypasses the detection code path. Agent-Logs-Url: https://github.com/christianlouis/InboxConverge/sessions/b58e009c-5bb7-4a25-b0e2-89b2d08a5778 Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com> --- frontend/eslint.config.mjs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/frontend/eslint.config.mjs b/frontend/eslint.config.mjs index 05e726d..41b28c4 100644 --- a/frontend/eslint.config.mjs +++ b/frontend/eslint.config.mjs @@ -13,6 +13,15 @@ const eslintConfig = defineConfig([ "build/**", "next-env.d.ts", ]), + // Specify explicit React version to avoid eslint-plugin-react calling the + // removed context.getFilename() API when using version: 'detect' with ESLint 10. + { + settings: { + react: { + version: "19", + }, + }, + }, ]); export default eslintConfig;