Skip to content

Pretty print inexact#5304

Merged
lipis merged 5 commits intoprettier:masterfrom
jbrown215:pretty_print_inexact
Oct 26, 2018
Merged

Pretty print inexact#5304
lipis merged 5 commits intoprettier:masterfrom
jbrown215:pretty_print_inexact

Conversation

@jbrown215
Copy link
Copy Markdown
Contributor

Adds pretty printing for the new inexact object type flow syntax as of 0.84.0. Depends on #5303

Copy link
Copy Markdown
Member

@lydell lydell left a comment

Choose a reason for hiding this comment

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

🎉

@lydell lydell added this to the 1.15 milestone Oct 26, 2018
//@flow
type T = {
a: number,
...,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Should this have a trailing comma?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think we should remove the trailing comma here to be consistent with the rest parameters.

Copy link
Copy Markdown
Member

@j-f1 j-f1 left a comment

Choose a reason for hiding this comment

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

⬆️

Copy link
Copy Markdown
Collaborator

@existentialism existentialism left a comment

Choose a reason for hiding this comment

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

LGTM besides trailing comma!

@jbrown215
Copy link
Copy Markdown
Contributor Author

Thanks for the quick reviews!

Copy link
Copy Markdown
Member

@lipis lipis left a comment

Choose a reason for hiding this comment

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

+125 −989

@j-f1
Copy link
Copy Markdown
Member

j-f1 commented Oct 26, 2018

Looks like the lock file got changed. Are you on the latest Yarn @jbrown215?

Copy link
Copy Markdown
Member

@lipis lipis left a comment

Choose a reason for hiding this comment

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

Upgrade to the latest Yarn and update the yarn.lock

@jbrown215
Copy link
Copy Markdown
Contributor Author

jbrown215 commented Oct 26, 2018

That was from the change this depended on-- rebased onto master. #5303

Copy link
Copy Markdown
Member

@lipis lipis left a comment

Choose a reason for hiding this comment

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

Waiting for the robots now :)

@lipis lipis merged commit b861448 into prettier:master Oct 26, 2018
ikatyang added a commit to ikatyang/prettier that referenced this pull request Oct 27, 2018
@existentialism existentialism mentioned this pull request Nov 6, 2018
2 tasks
ikatyang pushed a commit that referenced this pull request Nov 7, 2018
Follows #5304 with flow inexact support in @babel/parser!
@lock lock bot added the locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting. label Jan 24, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jan 24, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants