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

[Ugly] Method chaining that would fit into one line broken up over multiples #3951

Closed
queicherius opened this issue Feb 11, 2018 · 1 comment
Labels
lang:javascript Issues affecting JS locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting. type:duplicate Issues that are a duplicate of a previous issue

Comments

@queicherius
Copy link

Prettier 1.10.2
Playground link

--no-semi
--single-quote

Input:

const apiCurrencies = api().currencies().all()

Output:

const apiCurrencies = api()
  .currencies()
  .all()

Expected behavior:

const apiCurrencies = api().currencies().all()
@j-f1
Copy link
Member

j-f1 commented Feb 12, 2018

Thanks for pointing this out! It looks like it’s a duplicate of #3621.

@j-f1 j-f1 added type:duplicate Issues that are a duplicate of a previous issue lang:javascript Issues affecting JS labels Feb 12, 2018
@j-f1 j-f1 closed this as completed Feb 12, 2018
@j-f1 j-f1 marked this as a duplicate of #3621 Feb 12, 2018
@lock lock bot added the locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting. label Jul 5, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Jul 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lang:javascript Issues affecting JS locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting. type:duplicate Issues that are a duplicate of a previous issue
Projects
None yet
Development

No branches or pull requests

2 participants