-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
jsx-fragments
: improve message text
#2032
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
lib/rules/jsx-fragments.js
Outdated
@@ -47,7 +47,8 @@ module.exports = { | |||
if (!versionUtil.testReactVersion(context, '16.2.0')) { | |||
context.report({ | |||
node, | |||
message: 'Fragments are only supported starting from React v16.2' | |||
message: 'Fragments are only supported starting from React v16.2. ' | |||
+ 'Please disable the `react/jsx-fragments` rule or upgrade your version of React.' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe it’s worth adding “in eslint settings”?
@ljharb our tests for ESLint 3 are broken due to eslint/typescript-eslint-parser#526 (when I fix |
a5450cb
to
d6f7e1e
Compare
Yes, technically that linked commit is a semver-major, and it'd be great if you filed an issue on that repo about it. We'll have to peg to v20 of that dep in the meantime, then. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks for adding that in there.
package.json
Outdated
@@ -39,7 +39,7 @@ | |||
"istanbul": "^0.4.5", | |||
"mocha": "^5.2.0", | |||
"typescript": "^3.1.3", | |||
"typescript-eslint-parser": "^20.0.0" | |||
"typescript-eslint-parser": "20.0.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think this is now fixed, so now we can use ^
again
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, but should we say ^20.1.1
now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, good call
58e3be7
to
5014b76
Compare
5014b76
to
7d2eb6a
Compare
No description provided.