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-constant-condition issues #9210

Merged
merged 1 commit into from
Aug 13, 2020

Conversation

whymarrh
Copy link
Contributor

Refs #8982

See no-constant-condition for more information.

This change enables no-constant-condition and fixes the issues raised by the rule.

See [`no-constant-condition`](https://eslint.org/docs/rules/no-constant-condition) for more information.

This change enables `no-constant-condition` and fixes the issues raised by the rule.
@whymarrh whymarrh requested a review from a team as a code owner August 12, 2020 23:59
@whymarrh whymarrh requested a review from danjm August 12, 2020 23:59
Copy link
Member

@Gudahtt Gudahtt left a comment

Choose a reason for hiding this comment

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

LGTM!

while (true) { does seem easier to read than for (;;) { but 🤷 I don't care strongly about this case. Infinite loops should probably be avoided either way.

@whymarrh
Copy link
Contributor Author

We can update the rule to disable the check for loops if we change our minds.

@whymarrh whymarrh merged commit 954df6e into MetaMask:develop Aug 13, 2020
@whymarrh whymarrh deleted the enable-no-constant-condition branch August 13, 2020 00:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants