ESLint v10 incompatibility with eslint-plugin-react causing TypeError: contextOrFilename.getFilename is not a function
Upgrading ESLint to v10 in a Next.js project causes linting to fail with a TypeError originating from eslint-plugin-react's version detection logic, which calls a removed or changed `getFilename` method on the rule context.
