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

Odd extra indent in multiline call expression / binary expression #657

Open
jakebailey opened this issue Aug 21, 2024 · 0 comments
Open

Comments

@jakebailey
Copy link
Contributor

Describe the bug

dprint-plugin-typescript version: 0.91.6

A little weird, but this call expression gets indented an extra two times for some reason.

Input Code

const a = !foo || bar(
  baz,
  qux
).prop?.blah === 1234;

const a = !foo || bar(
  baz,
  qux
).prop?.blah;

Expected Output

const a = !foo || bar(
  baz,
  qux
).prop?.blah === 1234;

const a = !foo || bar(
  baz,
  qux
).prop?.blah;

Actual Output

const a = !foo || bar(
      baz,
      qux,
    ).prop?.blah === 1234;

const a = !foo || bar(
  baz,
  qux,
).prop?.blah;
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

No branches or pull requests

1 participant