Skip to content

Commit 744135b

Browse files
GabenGarljharb
authored andcommitted
[readme] flat config example for react 17+
1 parent a1273d5 commit 744135b

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,13 @@ This change log adheres to standards from [Keep a CHANGELOG](https://keepachange
1212
* [`forbid-component-props`]: add `allowedForPatterns`/`disallowedForPatterns` options ([#3805][] @Efimenko)
1313
* [`no-unstable-nested-components`]: add `propNamePattern` to support custom render prop naming conventions ([#3826][] @danreeves)
1414

15+
### Changed
16+
* [readme] flat config example for react 17+ ([#3824][] @GabenGar)
17+
1518
[#3831]: https://github.com/jsx-eslint/eslint-plugin-react/pull/3831
1619
[#3830]: https://github.com/jsx-eslint/eslint-plugin-react/pull/3830
1720
[#3826]: https://github.com/jsx-eslint/eslint-plugin-react/pull/3826
21+
[#3824]: https://github.com/jsx-eslint/eslint-plugin-react/pull/3824
1822
[#3805]: https://github.com/jsx-eslint/eslint-plugin-react/pull/3805
1923

2024
## [7.36.1] - 2024.09.12

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)