Skip to content

Commit 001488e

Browse files
golopotljharb
andauthored
Apply suggestions: improve message text
Co-Authored-By: Jordan Harband <[email protected]>
1 parent 7ec383f commit 001488e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ module.exports = {
1818
url: docsUrl('jsx-no-useless-fragment')
1919
},
2020
messages: {
21-
NeedsMoreChidren: 'Fragments should contain more than one child.',
22-
ChildOfHtmlElement: 'Fragment in a html element is useless.'
21+
NeedsMoreChidren: 'Fragments should contain more than one child - otherwise, there‘s no need for a Fragment at all.',
22+
ChildOfHtmlElement: 'Passing a fragment to an HTML element is useless.'
2323
}
2424
},
2525

0 commit comments

Comments
 (0)