We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
lint/style/noCommaOperator will alert on a for loop with three or more update expressions.
lint/style/noCommaOperator
for (let i = 0, j = 1, k = 2; i < 100; i++, j++, k++) {}
this will alert on the comma after i++ with default settings.
i++
https://biomejs.dev/playground/?code=ZgBvAHIAIAAoAGwAZQB0ACAAaQAgAD0AIAAwACwAIABqACAAPQAgADEALAAgAGsAIAA9ACAAMgA7ACAAaQAgADwAIAAxADAAMAA7ACAAaQArACsALAAgAGoAKwArACwAIABrACsAKwApACAAewB9AA%3D%3D
lint/style/noCommaOperator should not apply to the top level of for loop update expressions.
The text was updated successfully, but these errors were encountered:
Conaclos
Successfully merging a pull request may close this issue.
What happened?
lint/style/noCommaOperator
will alert on a for loop with three or more update expressions.this will alert on the comma after
i++
with default settings.https://biomejs.dev/playground/?code=ZgBvAHIAIAAoAGwAZQB0ACAAaQAgAD0AIAAwACwAIABqACAAPQAgADEALAAgAGsAIAA9ACAAMgA7ACAAaQAgADwAIAAxADAAMAA7ACAAaQArACsALAAgAGoAKwArACwAIABrACsAKwApACAAewB9AA%3D%3D
Expected result
lint/style/noCommaOperator
should not apply to the top level of for loop update expressions.Code of Conduct
The text was updated successfully, but these errors were encountered: