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

[flow] Do not break on empty type parameters #3281

Merged
merged 1 commit into from Nov 16, 2017

Conversation

vjeux
Copy link
Contributor

@vjeux vjeux commented Nov 16, 2017

Not only does breaking look bad but when you have trailing comma enabled, it puts a comma there which is not valid.

Not only does breaking look bad but when you have trailing comma enabled, it puts a comma there which is not valid.
(n[paramsKey][0].type === "TSTypeReference" &&
shouldHugType(n[paramsKey][0].typeName)) ||
n[paramsKey][0].type === "NullableTypeAnnotation");
n[paramsKey].length === 0 ||
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I just added this line, the rest is just indented differently...

@vjeux vjeux merged commit 4b070c3 into prettier:master Nov 16, 2017
@suchipi suchipi added this to the 1.9 milestone Nov 28, 2017
@lock lock bot added the locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting. label Jan 19, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jan 19, 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.

None yet

3 participants