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

Fix: no-extra-parens ExpressionStatement restricted prods (fixes #4902) #4903

Merged
merged 1 commit into from
Jan 11, 2016

Conversation

michaelficarra
Copy link
Member

Fixes #4902.

// special cases
"(a + b) * (c + d) == e",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is only removed because it's not a special case and it's already covered by two separate tests above.

@ilyavolodin
Copy link
Member

I wonder if this should be marked as breaking due to (function(){})?

@nzakas
Copy link
Member

nzakas commented Jan 10, 2016

@ilyavolodin why would that be breaking?

@michaelficarra
Copy link
Member Author

It shouldn't be a breaking change. The rule is now making strictly fewer reports.

@ilyavolodin
Copy link
Member

Before (function(){}) was marked as invalid, now it's valid. I guess less restrictive change is not breaking.

@michaelficarra
Copy link
Member Author

Even the other way around (if it was reporting things that it previously wasn't) would not necessarily be breaking. It's not breaking if the user asked for those errors but was not getting them.

@nzakas
Copy link
Member

nzakas commented Jan 11, 2016

Yeah, this was a bug plain and simple, I don't see any breaking change here.

nzakas added a commit that referenced this pull request Jan 11, 2016
Fix: no-extra-parens ExpressionStatement restricted prods (fixes #4902)
@nzakas nzakas merged commit 4682ac4 into eslint:master Jan 11, 2016
@michaelficarra michaelficarra deleted the GH-4902 branch January 11, 2016 21:13
@eslint-deprecated eslint-deprecated bot locked and limited conversation to collaborators Feb 6, 2018
@eslint-deprecated eslint-deprecated bot added the archived due to age This issue has been archived; please open a new issue for any further discussion label Feb 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
archived due to age This issue has been archived; please open a new issue for any further discussion
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants