1.5 KiB
1.5 KiB
TypeScript: Print comment following a JSX element with generic (#6209 by @duailibe)
Previous versions would not print this comment, this has been fixed in this version.
// Input
const comp = (
<Foo<number>
// This comment goes missing
value={4}
>
Test
</Foo>
);
// Output (Prettier stable)
const comp = <Foo<number> value={4}>Test</Foo>;
// Output (Prettier master)
const comp = (
<Foo<number>
// This comment goes missing
value={4}
>
Test
</Foo>
);