Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 1 addition & 10 deletions src/content/learn/react-compiler/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,16 +176,7 @@ Install the ESLint plugin:
npm install -D eslint-plugin-react-hooks@rc
</TerminalBlock>

Then enable the compiler rule in your ESLint configuration:

```js {3}
// .eslintrc.js
module.exports = {
rules: {
'react-hooks/react-compiler': 'error',
},
};
```
If you haven't already configured eslint-plugin-react-hooks, follow the [installation instructions in the readme](https://github.com/facebook/react/blob/main/packages/eslint-plugin-react-hooks/README.md#installation). The compiler rule is enabled by default in the latest RC, so no additional configuration is needed.

The ESLint rule will:
- Identify violations of the [Rules of React](/reference/rules)
Expand Down