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

bracePosition: nextLine does not work when passing objects as arguments #611

Open
stevenh-gh opened this issue Feb 9, 2024 · 0 comments

Comments

@stevenh-gh
Copy link

stevenh-gh commented Feb 9, 2024

Describe the bug
Unsure if this is an intended feature or not, but passing objects as arguments, for example fetch or json stringify, the braces stay on the same line instead of moving down to the next line (and the same for the braces of nested objects).

dprint-plugin-typescript version: 0.88.10

Input Code

fetch('some/api/', {
  method: 'delete'
});

Expected Output

fetch('some/api/',
{
  method: 'delete'
});

Actual Output

fetch('some/api/', {
  method: 'delete'
});

Input Code

JSON.stringify({
  name: name
})

Expected Output

JSON.stringify(
{
  name: name
})

Actual Output

JSON.stringify({
  name: name
})
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