flowts
flowts copied to clipboard
Recast doesn't stop it from messing with this comment
Input:
// @flow
(a, b) =>
// comment
x
Output with --no-prettier, with or without recast:
(a, b) => // comment
x;
It didn't need to change that. I was hoping recast would stop babel-plugin-flow-to-typescript from messing with this line.
If you let it run prettier, it gets worse:
(
a,
b, // comment
) => x;