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

It removes an empty line between type definitions #12

Open
nickretallack opened this issue Apr 5, 2020 · 0 comments
Open

It removes an empty line between type definitions #12

nickretallack opened this issue Apr 5, 2020 · 0 comments
Labels
formatting Unexpected code formatting changes

Comments

@nickretallack
Copy link

nickretallack commented Apr 5, 2020

This isn't bad but it's a pointless delta. I was hoping recast would suppress it.

Input:

// @flow
type a = string;

type b = string;

Output is the same with and without recast.

type a = string;
type b = string;

But if there's something else there, like this, recast doesn't change anything.

// @flow
type a = string;
x;

type b = string;

Ditto if it's like this:

// @flow
type a = string;

x;
type b = string;

Prettier has no effect on this.

@nickretallack nickretallack changed the title Removes a newline between type definitions Removes an empty line between type definitions Apr 7, 2020
@nickretallack nickretallack changed the title Removes an empty line between type definitions It removes an empty line between type definitions Apr 7, 2020
@zxbodya zxbodya added the formatting Unexpected code formatting changes label Apr 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
formatting Unexpected code formatting changes
Projects
None yet
Development

No branches or pull requests

2 participants