Prettier 2.2.1
Playground link
Input:
const getAccountCount = async () =>
(await
((await (
await focusOnSection(BOOKMARKED_PROJECTS_SECTION_NAME)
).findItem("My bookmarks")) as TreeItem
).getChildren()
).length
Output:
const getAccountCount = async () =>
(
await ((await (
await focusOnSection(BOOKMARKED_PROJECTS_SECTION_NAME)
).findItem("My bookmarks")) as TreeItem).getChildren()
).length;
Expected behavior:
I would expect something more akin to the input, albeit I don't really like that one either. However, I find the output of prettier a bit worse, because it puts two awaits on a single line and that makes it harder to read imho.
Prettier 2.2.1
Playground link
Input:
Output:
Expected behavior:
I would expect something more akin to the input, albeit I don't really like that one either. However, I find the output of prettier a bit worse, because it puts two awaits on a single line and that makes it harder to read imho.