Skip to content
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

jsx-fragments: improve message text #2032

Merged
merged 2 commits into from Dec 27, 2018

Conversation

alexzherdev
Copy link
Contributor

No description provided.

@@ -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.'
Copy link
Member

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”?

@alexzherdev
Copy link
Contributor Author

alexzherdev commented Oct 31, 2018

@ljharb our tests for ESLint 3 are broken due to eslint/typescript-eslint-parser#526 (when I fix typescript-eslint-parser to 20.0.0 they pass). Is this an example of peerDep changes being semver-major?

@ljharb
Copy link
Member

ljharb commented Oct 31, 2018

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.

Copy link
Collaborator

@EvHaus EvHaus left a 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"
Copy link
Member

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

Copy link
Contributor Author

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?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, good call

@ljharb ljharb merged commit 7d07c37 into jsx-eslint:master Dec 27, 2018
@alexzherdev alexzherdev deleted the jsx-fragments-message branch December 27, 2018 21:57
This was referenced Jan 4, 2019
@ghost ghost mentioned this pull request Jan 12, 2019
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

3 participants