no-extra-parens incorrectly reports returned IIFE #9140
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?
default
Please show your full configuration:
Configuration
node node_modules/eslint/bin/eslint.js --no-eslintrc --rule '{"wrap-iife": [2, "any"], "no-extra-parens": 2, "no-trailing-spaces": 2, "quotes":[2, "double"]}' --fix test/compiled.js
What did you do? Please include the actual source code causing the issue.
What did you expect to happen?
Fix option to be executed on nested iife
What actually happened? Please include the actual, raw output from ESLint.
When applying the command line above on the code above, quotes fix is applied on the top iife but not on the neted iife.
Without the
wrap-iife
everything is fine.I haven't tested if the fix is not applied only for those specified rules.
On v4.5.0 here is the output
On v3.19.0 here is the output
The text was updated successfully, but these errors were encountered: