Skip to content

Commit 39b9c56

Browse files
authored
Fix ESLint plugin version. (#7768)
* Fix ESLint plugin version. * Update react-compiler-rc.md
1 parent 740016e commit 39b9c56

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/content/blog/2025/04/21/react-compiler-rc.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ During the RC period, we encourage all React users to try the compiler and provi
5757
As noted in the Beta announcement, React Compiler is compatible with React 17 and up. If you are not yet on React 19, you can use React Compiler by specifying a minimum target in your compiler config, and adding `react-compiler-runtime` as a dependency. You can find docs on this [here](https://react.dev/learn/react-compiler#using-react-compiler-with-react-17-or-18).
5858

5959
## Migrating from eslint-plugin-react-compiler to eslint-plugin-react-hooks {/*migrating-from-eslint-plugin-react-compiler-to-eslint-plugin-react-hooks*/}
60-
If you have already installed eslint-plugin-react-compiler, you can now remove it and use `eslint-plugin-react-hooks@^6.0.0-rc.1`. Many thanks to [@michaelfaith](https://bsky.app/profile/michael.faith) for contributing to this improvement!
60+
If you have already installed eslint-plugin-react-compiler, you can now remove it and use `[email protected]`. Many thanks to [@michaelfaith](https://bsky.app/profile/michael.faith) for contributing to this improvement!
6161

6262
To install:
6363

@@ -89,6 +89,8 @@ export default [
8989
];
9090
```
9191

92+
To enable the React Compiler rule, add `'react-hooks/react-compiler': 'error'` to your ESLint configuration.
93+
9294
The linter does not require the compiler to be installed, so there's no risk in upgrading eslint-plugin-react-hooks. We recommend everyone upgrade today.
9395

9496
## swc support (experimental) {/*swc-support-experimental*/}

0 commit comments

Comments
 (0)