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 1 commit into from Oct 12, 2019


Copy link

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(...);


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

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

ljharb left a comment


@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
coverage/coveralls Coverage decreased (-0.004%) to 97.552%
@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
None yet
2 participants
You can’t perform that action at this time.