Skip to content

Commit 525af5f

Browse files
jbrower2ljharb
authored andcommitted
[Fix] jsx-curly-newline: Update error messages
The error messages for 'unexpected' curlys use the opposite curly.
1 parent a686079 commit 525af5f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ This change log adheres to standards from [Keep a CHANGELOG](http://keepachangel
2222
* [`jsx-no-target-blank`]: Allow rel="noreferrer" when `allowReferrer` is true ([#2925][] @edemaine)
2323
* [`boolean-prop-naming`]: add check for typescript "boolean" type ([#2930][] @vedadeepta)
2424
* version detection: Add tests that verify versioning works for sibling and child projects ([#2943][] @jcrosetto)
25+
* [`jsx-curly-newline`]: Update error messages ([#2933][] @jbrower2)
2526

2627
### Changed
2728
* [Docs] [`jsx-no-constructed-context-values`][]: fix invalid example syntax ([#2910][] @kud)
@@ -30,6 +31,7 @@ This change log adheres to standards from [Keep a CHANGELOG](http://keepachangel
3031

3132
[#2943]: https://github.com/yannickcr/eslint-plugin-react/pull/2943
3233
[#2935]: https://github.com/yannickcr/eslint-plugin-react/pull/2935
34+
[#2933]: https://github.com/yannickcr/eslint-plugin-react/pull/2933
3335
[#2930]: https://github.com/yannickcr/eslint-plugin-react/pull/2930
3436
[#2929]: https://github.com/yannickcr/eslint-plugin-react/pull/2929
3537
[#2925]: https://github.com/yannickcr/eslint-plugin-react/pull/2925

lib/rules/jsx-curly-newline.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ module.exports = {
6767
messages: {
6868
expectedBefore: 'Expected newline before \'}\'.',
6969
expectedAfter: 'Expected newline after \'{\'.',
70-
unexpectedBefore: 'Unexpected newline before \'{\'.',
71-
unexpectedAfter: 'Unexpected newline after \'}\'.'
70+
unexpectedBefore: 'Unexpected newline before \'}\'.',
71+
unexpectedAfter: 'Unexpected newline after \'{\'.'
7272
}
7373
},
7474

0 commit comments

Comments
 (0)