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

Update: add allowParens option to no-confusing-arrow #5500

Merged
merged 1 commit into from
Mar 10, 2016
Merged

Conversation

BYK
Copy link
Member

@BYK BYK commented Mar 7, 2016

Fixes #5332

@mention-bot
Copy link

By analyzing the blame information on this pull request, we identified @michaelficarra, @lukekarrys and @jrvidal to be potential reviewers

@eslintbot
Copy link

LGTM

1. `true` relaxes the rule and accepts parenthesis as a valid "confusion-preventing" syntax.
2. `false` warns even if the expression is wrapped in parenthesis

When `allowParens` is set to `true` following patterns are no longer considered as warnings:
Copy link
Member

Choose a reason for hiding this comment

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

Can you reformat this to follow the example set by @pedrottimark in #5454?

Copy link
Member Author

Choose a reason for hiding this comment

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

Shouldn't we separate two things? Looks like @pedrottimark haven't yet come to no-confusing-arrow so I'm not breaking anything. I'd prefer we continue changing these through his patches and keep this one specific to the problem at hand.

ilyavolodin added a commit that referenced this pull request Mar 10, 2016
Update: add `allowParens` option to `no-confusing-arrow`
@ilyavolodin ilyavolodin merged commit 13c440f into master Mar 10, 2016
@alberto alberto deleted the issue-5332 branch March 29, 2016 22:58
@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.

4 participants