diff --git a/CHANGELOG.md b/CHANGELOG.md index 9c8a8322f1..10026c0a00 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ This change log adheres to standards from [Keep a CHANGELOG](https://keepachange * [`hook-use-state`]: Allow UPPERCASE setState setter prefixes ([#3244][] @duncanbeevers) * `propTypes`: add `VFC` to react generic type param map ([#3230][] @dlech) * [`no-unused-state`]: avoid a crash ([#3258][] @WillyLiaoWH @ljharb) +* [`jsx-no-useless-fragment`]: use proper apostrophe in error message ([#3266][] @develohpanda) ### Changed * [readme] remove global usage and eslint version from readme ([#3254][] @aladdin-add) @@ -21,6 +22,7 @@ This change log adheres to standards from [Keep a CHANGELOG](https://keepachange * [Docs] [`no-unused-prop-types`]: fix syntax errors ([#3259][] @mrdulin) * [Refactor] improve performance for detecting function components ([#3265][] @golopot) +[#3266]: https://github.com/yannickcr/eslint-plugin-react/pull/3266 [#3265]: https://github.com/yannickcr/eslint-plugin-react/pull/3265 [#3261]: https://github.com/yannickcr/eslint-plugin-react/pull/3261 [#3260]: https://github.com/yannickcr/eslint-plugin-react/pull/3260 diff --git a/lib/rules/jsx-no-useless-fragment.js b/lib/rules/jsx-no-useless-fragment.js index ac197e9da9..56c6baea70 100644 --- a/lib/rules/jsx-no-useless-fragment.js +++ b/lib/rules/jsx-no-useless-fragment.js @@ -79,7 +79,7 @@ function containsCallExpression(node) { } const messages = { - NeedsMoreChildren: 'Fragments should contain more than one child - otherwise, there‘s no need for a Fragment at all.', + NeedsMoreChildren: 'Fragments should contain more than one child - otherwise, there’s no need for a Fragment at all.', ChildOfHtmlElement: 'Passing a fragment to an HTML element is useless.', };