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
Update: Fix no-extra-parens
false negative (fixes #7229)
#7231
Update: Fix no-extra-parens
false negative (fixes #7229)
#7231
Conversation
@not-an-aardvark, thanks for your PR! By analyzing the annotation information on this pull request, we identified @vitorbal, @mysticatea and @kaicataldo to be potential reviewers |
LGTM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just want another set of eyes on this. (Also, since this isn't a regression from 3.6.0, we may want to hold off until we know if there will be a patch release.)
Mind adding a test to ensure non-nested |
5ce94f0
to
1ebd39f
Compare
LGTM |
Added some more tests for |
Sorry, one last thing I didn't notice the first time around: the commit message should start with "Fix" instead of "Update", since this is a bug fix. Other than that, LGTM. Thanks for contributing! |
@kaicataldo This will introduce more warnings-- bugfixes with more warnings are Updates and semver-minor, I believe. |
Agreed that this is a semver-minor change, but didn't realize we actually label them differently. In that case, LGTM. |
Ah, I see. From http://eslint.org/docs/developer-guide/contributing/pull-requests#step-2-make-your-changesa-namestep2a
Makes sense, just something I didn't know. TIL! |
Might be an artifact of eslint-release using those tags to determine On Sep 24, 2016 4:56 PM, "Kai Cataldo" notifications@github.com wrote:
|
@platinumazure you're correct! eslint-release uses those tags to determine which type of release it should be. |
LGTM. Thanks for contributing to ESLint! |
What is the purpose of this pull request? (put an "X" next to item)
[ ] Documentation update
[x] Bug fix (template)
[ ] New rule (template)
[ ] Changes an existing rule (template)
[ ] Add autofixing to a rule
[ ] Add a CLI option
[ ] Add something to the core
[ ] Other, please explain:
See #7229 for more info on the bug.
Please check each item to ensure your pull request is ready:
What changes did you make? (Give an overview)
Previously, the
nestedBinaryExpressions: false
option would causeno-extra-parens
to ignore all binary expressions, even non-nested ones.Is there anything you'd like reviewers to focus on?