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

no-constant-condition allows while (true) by default #1475

Closed
samreid opened this issue Sep 26, 2024 · 2 comments
Closed

no-constant-condition allows while (true) by default #1475

samreid opened this issue Sep 26, 2024 · 2 comments

Comments

@samreid
Copy link
Member

samreid commented Sep 26, 2024

Discovered in #1451, https://eslint.org/docs/latest/rules/no-constant-condition says:

This is a string option having following values:

"all" - Disallow constant expressions in all loops.
"allExceptWhileTrue" (default) - Disallow constant expressions in all loops except while loops with expression true.
"none" - Allow constant expressions in loops.

This is a recent change that removed the need to put disable directives on our while(true) loops. I think it is OK to go with the new default but I opened this issue to check with @zepumph

@samreid
Copy link
Member Author

samreid commented Sep 26, 2024

Committed locally but not pushed yet

samreid added a commit to phetsims/circuit-construction-kit-common that referenced this issue Sep 26, 2024
@samreid
Copy link
Member Author

samreid commented Sep 26, 2024

We agreed this is good, closing.

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

No branches or pull requests

1 participant