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: arrow-parens supports type annotations (fixes #7406) #7436

Merged
merged 1 commit into from Nov 5, 2016

Conversation

mysticatea
Copy link
Member

What is the purpose of this pull request? (put an "X" next to item)

[X] Bug fix (template)

See #7406 for the template.

What changes did you make? (Give an overview)

If there is a type annotation, we cannot remove parentheses around parameters of arrow functions. But arrow-parens has warned those.

(a: T) => a;
(a): T => a;

This PR fixes the bug.
I generated the ASTs with type annotations by http://astexplorer.net/

Is there anything you'd like reviewers to focus on?

Nothing in particular.

@mysticatea mysticatea added bug ESLint is working incorrectly rule Relates to ESLint's core rules accepted There is consensus among the team that this change meets the criteria for inclusion labels Oct 23, 2016
@mention-bot
Copy link

@mysticatea, thanks for your PR! By analyzing the history of the files in this pull request, we identified @nfroidure, @vitorbal and @not-an-aardvark to be potential reviewers.

@eslintbot
Copy link

LGTM

Copy link
Member

@platinumazure platinumazure left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

Copy link
Member

@vitorbal vitorbal left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks, @mysticatea!

@nzakas
Copy link
Member

nzakas commented Oct 31, 2016

Just a heads up: we have moved to a new CLA checker on pull requests. Even if you've previously signed our CLA, we will need to you sign the new one. To do so, look at the status checks for licence/cla and click the "Details" link. Sorry for the inconvenience.

@nzakas nzakas removed the CLA: Valid label Oct 31, 2016
@mysticatea mysticatea merged commit c0f4937 into master Nov 5, 2016
@mysticatea mysticatea deleted the issue7406 branch November 5, 2016 07:12
@joemckie
Copy link

Any idea when this'll make it into a release? :)

@ilyavolodin
Copy link
Member

@joemckie We usually do release every two weeks on Friday. So this PR will be released today.

@joemckie
Copy link

Awesome, thank you!

christophehurpeau added a commit to christophehurpeau/eslint-config-pob that referenced this pull request May 14, 2017
BREAKING CHANGE: enabled rule arrow-parens
@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
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

9 participants