From 415635fe9cd4ea0f72a184c0a654f629dc82831d Mon Sep 17 00:00:00 2001 From: Brian McIntyre Date: Mon, 19 Dec 2022 13:52:02 -0500 Subject: [PATCH] [Docs] `prefer-exact-props`: fix example flow syntax --- CHANGELOG.md | 4 +++- docs/rules/prefer-exact-props.md | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0d242f583b..6c1eaf38e2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/docs/rules/prefer-exact-props.md b/docs/rules/prefer-exact-props.md index c9878f7b7a..a24b101320 100644 --- a/docs/rules/prefer-exact-props.md +++ b/docs/rules/prefer-exact-props.md @@ -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

{this.props.bar}

;