flowts
flowts copied to clipboard
It removes an empty line between type definitions
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.