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>
This commit is contained in:
committed by
GitHub
parent
4bb92ac9d0
commit
efa553c8d5
@@ -13,6 +13,15 @@ const eslintConfig = defineConfig([
|
|||||||
"build/**",
|
"build/**",
|
||||||
"next-env.d.ts",
|
"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;
|
export default eslintConfig;
|
||||||
|
|||||||
Reference in New Issue
Block a user