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

[Fix] no-render-return-value should warn when used in assignment expression. #2462

Merged
merged 1 commit into from Oct 12, 2019

Conversation

@jichu4n
Copy link
Contributor

jichu4n commented Oct 11, 2019

Addresses #2461 .

With this PR, the no-render-return-value plugin will warn for usages like this:

this.x = ReactDOM.render(...);

or

let y;
...
y = ReactDOM.render(...);
…xpression

Fixes #2461.
@ljharb
ljharb approved these changes Oct 12, 2019
Copy link
Collaborator

ljharb left a comment

Thanks!

@ljharb ljharb merged commit da2c7d2 into yannickcr:master Oct 12, 2019
2 checks passed
2 checks passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
coverage/coveralls Coverage decreased (-0.004%) to 97.552%
Details
@jichu4n jichu4n deleted the jichu4n:render-assignment branch Oct 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.