no-extra-parens have false positive about for-of statement #9755
Labels
accepted
There is consensus among the team that this change meets the criteria for inclusion
archived due to age
This issue has been archived; please open a new issue for any further discussion
bug
ESLint is working incorrectly
rule
Relates to ESLint's core rules
Tell us about your environment
What parser (default, Babel-ESLint, etc.) are you using?
Please show your full configuration:
What did you do? Please include the actual source code causing the issue, as well as the command that you used to run ESLint.
What did you expect to happen?
ESLint reports an error:
3:11 - Gratuitous parentheses around expression. (no-extra-parens)
Because
for (a of b, c);
is syntax error. (related to acornjs/acorn#642)What actually happened? Please include the actual, raw output from ESLint.
ESLint reports 2 errors:
3:11 - Gratuitous parentheses around expression. (no-extra-parens)
4:11 - Gratuitous parentheses around expression. (no-extra-parens)
The text was updated successfully, but these errors were encountered: