Open nickretallack opened 4 years ago
Input:
// @flow (a, b) => // comment x
Output with --no-prettier, with or without recast:
--no-prettier
(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.
recast
babel-plugin-flow-to-typescript
If you let it run prettier, it gets worse:
( a, b, // comment ) => x;
I filed an issue on prettier for its role in this as well.
Input:
Output with
--no-prettier
, with or without recast:It didn't need to change that. I was hoping
recast
would stopbabel-plugin-flow-to-typescript
from messing with this line.If you let it run prettier, it gets worse: