Skip to content

Commit

Permalink
[Docs] prefer-exact-props: fix example flow syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
smackfu authored and ljharb committed Dec 19, 2022
1 parent 8b51eef commit 415635f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,16 @@ This change log adheres to standards from [Keep a CHANGELOG](https://keepachange
* [`jsx-newline`]: No newline between comments and jsx elements ([#3493][] @justmejulian)
* [`jsx-no-leaked-render`]: Don't report errors on empty strings if React >= v18 ([#3488][] @himanshu007-creator)
* [`no-invalid-html-attribute`]: convert autofix to suggestion ([#3474][] @himanshu007-creator @ljharb)
* [`jsx-no-leaked-render`]: fix removing parentheses for conditionals ([#3502][] @akulsr0)
* [`jsx-no-leaked-render`]: fix removing parentheses for conditionals ([#3502][] @akulsr0)

### Changed
* [Docs] [`jsx-no-leaked-render`]: Remove mentions of empty strings for React 18 ([#3468][] @karlhorky)
* [Docs] update `eslint-doc-generator` to v1.0.0 ([#3499][] @bmish)
* [meta] add issue template ([#3483][] @ROSSROSALES)
* [Docs] Use emoji for jsx-runtime config and config file for eslint-doc-generator ([#3504][] @bmish)[
* [Docs] [`prefer-exact-props`]: fix example flow syntax ([#3510][] @smackfu)

[#3510]: https://github.com/jsx-eslint/eslint-plugin-react/pull/3510
[#3504]: https://github.com/jsx-eslint/eslint-plugin-react/pull/3504
[#3499]: https://github.com/jsx-eslint/eslint-plugin-react/pull/3499
[#3494]: https://github.com/jsx-eslint/eslint-plugin-react/pull/3494
Expand Down
2 changes: 1 addition & 1 deletion docs/rules/prefer-exact-props.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ In this case, one could instead enforce only the exact props being used by using
class Foo extends React.Component {
props: {|
bar: string
}|
|}

render() {
return <p>{this.props.bar}</p>;
Expand Down

0 comments on commit 415635f

Please sign in to comment.