Skip to content

Commit

Permalink
docs: flat config example for react 17+
Browse files Browse the repository at this point in the history
  • Loading branch information
GabenGar authored Sep 14, 2024
1 parent 9668ee0 commit cccfa6f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ const reactPlugin = require('eslint-plugin-react');
module.exports = [
reactPlugin.configs.flat.recommended, // This is not a plugin object, but a shareable config object
reactPlugin.configs.flat["jsx-runtime"], // Add this if you are using React 17+
];
```
Expand Down

0 comments on commit cccfa6f

Please sign in to comment.