Skip to content

Commit cccfa6f

Browse files
authored
docs: flat config example for react 17+
1 parent 9668ee0 commit cccfa6f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ const reactPlugin = require('eslint-plugin-react');
221221
module.exports = [
222222
223223
reactPlugin.configs.flat.recommended, // This is not a plugin object, but a shareable config object
224+
reactPlugin.configs.flat["jsx-runtime"], // Add this if you are using React 17+
224225
225226
];
226227
```

0 commit comments

Comments
 (0)