Files
copilot-swe-agent[bot] efa553c8d5 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>
2026-04-07 09:56:19 +00:00

28 lines
705 B
JavaScript

import { defineConfig, globalIgnores } from "eslint/config";
import nextVitals from "eslint-config-next/core-web-vitals";
import nextTs from "eslint-config-next/typescript";
const eslintConfig = defineConfig([
...nextVitals,
...nextTs,
// Override default ignores of eslint-config-next.
globalIgnores([
// Default ignores of eslint-config-next:
".next/**",
"out/**",
"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;