+ import reactCompiler from "eslint-plugin-react-compiler" import react from "eslint-plugin-react" export default [ // Your existing config { ...pluginReact.configs.flat.recommended, settings: { react: { version
Install eslint-plugin-react-compiler version 19.0.0-beta-bafa41b-20250307 AddreactCompiler.configs.recommendedto eslint.config.js (with@ts-checkenabled) npx tsc -b Error: eslint.config.js:11:3 - error TS2345: Argument of type '{ plugins: { 'react-compiler': { rules: { 'react-compiler...
types/eslint-plugin-react-compiler.d.ts declare module 'eslint-plugin-react-compiler' { import type { ESLint } from 'eslint'; let plugin: ESLint.Plugin; export default plugin; } Svish commented Oct 24, 2024 I use this workaround instead, so that I'm informed when they do add types...
eslint-plugin-react-compiler is a pure-CJS library ESLint loads TypeScript configs with Jiti Jiti uses @babel/plugin-transform-modules-commonjs during its Babel transform step When your config-loader.js sets interopDefault: false, the Babel plugin turns off its importInterop setting which breaks...
babel-plugin-react-compiler (build issue installing or using the Babel plugin) eslint-plugin-react-compiler (build issue installing or using the eslint plugin) react-compiler-healthcheck (build issue installing or using the healthcheck script) Link to repro npm install eslint-plugin-react-compiler...
t-hamano changed the title ESLint: Bump to latest beta ESLint: Bump eslint-plugin-react-compiler to latest beta Apr 19, 2025 t-hamano force-pushed the update/eslint-plugin-react-compiler-20250411 branch from f06cfb7 to a3976de Compare April 19, 2025 07:49 ESLint: Bump eslint-plugin...
Summary Recently ESLint released defineConfig utility to work with flat configs. Now when using recommended config from eslint-plugin-react-compiler, a typing error appears because the severity for...
"eslint-plugin-import": "^2.29.1", "eslint-plugin-prettier": "^5.1.3", "eslint-plugin-react": "^7.34.2", "eslint-plugin-react-compiler": "0.0.0-experimental-c8b3f72-20240517", "eslint-plugin-react-compiler": "0.0.0-experimental-a97cca1-20240529", "eslint-plugin-react-hooks"...
eslint-plugin-react-compiler version: 19.0.0-beta-37ed2a7-20241206 (which is the latest on NPM) Steps To Reproduce In general, to reproduce the issue, run eslint-plugin-react-compiler on a TS file that contains an import attribute. To re...
Context The React Compiler optimizes code that follows the rules of React. In order to make it easier to write React compliant code, the React team released an ESLint plugin that reports broken React rules: eslint-plugin-react-compiler. ...