flowts icon indicating copy to clipboard operation
flowts copied to clipboard

It removes an empty line between type definitions

Open nickretallack opened this issue 6 years ago • 0 comments

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 avatar Apr 05 '20 22:04 nickretallack