eslint adds extra parentheses in certain scenarios, that creates a syntax error when auto fix/fix on save #11507
Labels
archived due to age
This issue has been archived; please open a new issue for any further discussion
bug
ESLint is working incorrectly
triage
An ESLint team member will look at this issue soon
Tell us about your environment
What parser (default, Babel-ESLint, etc.) are you using? Babel-ESLint
Please show your full configuration:
Configuration
What did you do?
This snippet of code below breaks when eslint does an auto fix, causing it to add extra parentheses resulting in a syntax error. Below that will be the "fixed version". this is reproducible on the eslint demo site.
Broken "fixed" code below (notice the extra parentheses created by eslint)
What did you expect to happen?
no extra parentheses to be generated creating a parsing error.
here is a link to the demo site, im not sure what rule breaks the code.
demo. Also when I remove the comments it does not cause the error. But when i ran "fix" across the whole code base a few files broke that looked similar to this code.
What actually happened? Please include the actual, raw output from ESLint.
Are you willing to submit a pull request to fix this bug?
The text was updated successfully, but these errors were encountered: