Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

arrow-parens: fix invalid code produced by fixer #3247

Merged
merged 2 commits into from Sep 26, 2017
Merged

arrow-parens: fix invalid code produced by fixer #3247

merged 2 commits into from Sep 26, 2017

Conversation

ajafff
Copy link
Contributor

@ajafff ajafff commented Sep 25, 2017

PR checklist

  • Addresses an existing issue: #0000
  • New feature, bugfix, or enhancement
    • Includes tests
  • Documentation update

Overview of change:

Fixing avoid-single-arg-parens could lead to invalid code if there were trailing commas and/or the close paren is on the next line or parameter is on another line than the async keyword.

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

CHANGELOG.md entry:

[bugfix] arrow-parens with option "ban-single-arg-parens" no longer produces invalid code when fixed

Fixing `avoid-single-arg-parens` could lead to invalid code if there were trailing commas and/or the close paren is on the next line.

[bugfix] `arrow-parens` with option `"ban-single-arg-parens"` no longer produces invalid code when fixed
@ajafff ajafff merged commit 8c76496 into palantir:master Sep 26, 2017
@ajafff ajafff deleted the bugfix/arrow-parens branch September 26, 2017 13:19
HyphnKnight pushed a commit to HyphnKnight/tslint that referenced this pull request Apr 9, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants