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

Adjust dprint configuration to be closer to prettier #3824

Merged
merged 3 commits into from
Jan 30, 2020

Conversation

ry
Copy link
Member

@ry ry commented Jan 30, 2020

merge on approval

@ry ry requested a review from bartlomieju January 30, 2020 02:38
cli/fmt.rs Show resolved Hide resolved
@nayeemrmn
Copy link
Collaborator

@dsherret How about an option / change in behaviour for new lines in empty blocks?

function f() {}
// Shouldn't turn into:
// function f() {
// }

@dsherret
Copy link
Member

@nayeemrmn I do that for expressions right now, but not declarations. I was actually thinking about changing that to just be left alone yesterday. I don't know if that needs to be a configuration value and leaving declarations alone in that case is probably not a big deal. Generally I prefer to leave certain things up to the developer so I've opened https://github.com/dsherret/dprint/issues/65

cli/fmt.rs Show resolved Hide resolved
Copy link
Member

@bartlomieju bartlomieju left a comment

Choose a reason for hiding this comment

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

LGTM

@bartlomieju bartlomieju merged commit 8e3bc77 into denoland:master Jan 30, 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.

4 participants