Closed dashed closed 6 years ago
FYI, we're waiting for the flow-parser@0.77
release (#4869).
@ikatyang Ah I see. Thanks for the prompt response! 👍
I see this was successfully setup for 1.14.1 - any idea on release? This is killin me right now and i have to turn off prettier for the whole team or it breaks almost everything since we depend on that feature now.
Appreciate y'all being prompt on getting it going though!! Awesome as usual team!
@bradennapier We’re currently working on a PR (#4869), and we’ll probably release the new version soon after we finish that PR.
@bradennapier As a temporary workaround, you could put an ignore comment in front of it:
Prettier 1.14.0 Playground link
--parser babylon
Input:
// prettier-ignore
type Sample = {
[[call]]: $npm$styledComponents$Call<NativeComponentListKeys>
}
Output:
// prettier-ignore
type Sample = {
[[call]]: $npm$styledComponents$Call<NativeComponentListKeys>
}
Prettier 1.13.7 Playground link
Input:
Output:
Expected behavior:
[[call]]
property shouldn't be stripped out for flow types.