Skip to content

Fix arrow-parens converter #347

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

Merged

Conversation

Zip753
Copy link
Contributor

@Zip753 Zip753 commented Mar 16, 2020

PR Checklist

Overview

arrow-parens converter now handles "ban-single-arg-parens" in semantically proper way, according to each rule's definition:
https://palantir.github.io/tslint/rules/arrow-parens/
https://eslint.org/docs/rules/arrow-parens

Tests have also been updated, since only two possible argument sets are either "ban-single-arg-parens" or no arguments.

@Zip753 Zip753 marked this pull request as ready for review March 16, 2020 20:32
Copy link
Member

@JoshuaKGoldberg JoshuaKGoldberg left a comment

Choose a reason for hiding this comment

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

Great catch. Thanks @Zip753!

@JoshuaKGoldberg JoshuaKGoldberg merged commit 0f69d9d into typescript-eslint:master Mar 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

arrow-parens converter has incorrect behavior
2 participants