-
Notifications
You must be signed in to change notification settings - Fork 20
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
Add rule to disallow of side-effects inside the render
method
#90
Comments
indeed, could be tricky to check for any side effects. could we start with a |
Yeah, I was thinking along the same lines. Perhaps, also, adding a check for conditional assignments inside the render? I'm unsure what all we would want to consider warnings in a first round pass |
given the nature of the problem we might want to take a narrow approach: docs link to reasoning, users can turn the rule off if they want later iterations might add acceptable cases or ignore regexp if there's demand |
Potential Rule Name:
no-render-side-effects
Disallows the use of "side-effects" inside the
render
method.@bennypowers shows a simple case in this tweet: https://twitter.com/PowersBenny/status/1387330749217611776
This could a bit trickier of a rule to implement but would be a good rule to have.
The text was updated successfully, but these errors were encountered: