Skip to content

Commit

Permalink
[readme] flat config example for react 17+
Browse files Browse the repository at this point in the history
  • Loading branch information
GabenGar authored and ljharb committed Sep 14, 2024
1 parent a1273d5 commit 744135b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,13 @@ This change log adheres to standards from [Keep a CHANGELOG](https://keepachange
* [`forbid-component-props`]: add `allowedForPatterns`/`disallowedForPatterns` options ([#3805][] @Efimenko)
* [`no-unstable-nested-components`]: add `propNamePattern` to support custom render prop naming conventions ([#3826][] @danreeves)

### Changed
* [readme] flat config example for react 17+ ([#3824][] @GabenGar)

[#3831]: https://github.com/jsx-eslint/eslint-plugin-react/pull/3831
[#3830]: https://github.com/jsx-eslint/eslint-plugin-react/pull/3830
[#3826]: https://github.com/jsx-eslint/eslint-plugin-react/pull/3826
[#3824]: https://github.com/jsx-eslint/eslint-plugin-react/pull/3824
[#3805]: https://github.com/jsx-eslint/eslint-plugin-react/pull/3805

## [7.36.1] - 2024.09.12
Expand Down
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 744135b

Please sign in to comment.