Skip to content

Commit 8992a2b

Browse files
develohpandaljharb
authored andcommitted
[Fix] jsx-no-useless-fragment: use proper apostrophe in error message
1 parent c8397ad commit 8992a2b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,15 @@ This change log adheres to standards from [Keep a CHANGELOG](https://keepachange
1414
* [`hook-use-state`]: Allow UPPERCASE setState setter prefixes ([#3244][] @duncanbeevers)
1515
* `propTypes`: add `VFC` to react generic type param map ([#3230][] @dlech)
1616
* [`no-unused-state`]: avoid a crash ([#3258][] @WillyLiaoWH @ljharb)
17+
* [`jsx-no-useless-fragment`]: use proper apostrophe in error message ([#3266][] @develohpanda)
1718

1819
### Changed
1920
* [readme] remove global usage and eslint version from readme ([#3254][] @aladdin-add)
2021
* [Refactor] fix linter errors ([#3261][] @golopot)
2122
* [Docs] [`no-unused-prop-types`]: fix syntax errors ([#3259][] @mrdulin)
2223
* [Refactor] improve performance for detecting function components ([#3265][] @golopot)
2324

25+
[#3266]: https://github.com/yannickcr/eslint-plugin-react/pull/3266
2426
[#3265]: https://github.com/yannickcr/eslint-plugin-react/pull/3265
2527
[#3261]: https://github.com/yannickcr/eslint-plugin-react/pull/3261
2628
[#3260]: https://github.com/yannickcr/eslint-plugin-react/pull/3260

lib/rules/jsx-no-useless-fragment.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ function containsCallExpression(node) {
7979
}
8080

8181
const messages = {
82-
NeedsMoreChildren: 'Fragments should contain more than one child - otherwise, theres no need for a Fragment at all.',
82+
NeedsMoreChildren: 'Fragments should contain more than one child - otherwise, theres no need for a Fragment at all.',
8383
ChildOfHtmlElement: 'Passing a fragment to an HTML element is useless.',
8484
};
8585

0 commit comments

Comments
 (0)