flowts icon indicating copy to clipboard operation
flowts copied to clipboard

Recast doesn't stop it from messing with this comment

Open nickretallack opened this issue 5 years ago • 1 comments

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;

nickretallack avatar Apr 05 '20 21:04 nickretallack