Type declaration in reduce breaking formatting? #16328
-
Is this expected behavior? It's more than 80 lines wide. function longReduceExpression(text: string): string[] {
return ["a", "b"]
.map((c) =>
c
.split(/\s+/g)
.reduce<
string[]
>((someLongName, currentLongValueInC) => (someLongName.at(0)?.length ?? 0 > currentLongValueInC.length ? someLongName : [currentLongValueInC]), []),
)
.flat();
} Works fine if the Prettier version 3.2.5. |
Beta Was this translation helpful? Give feedback.
Answered by
kachkaev
May 25, 2024
Replies: 1 comment
-
👋 @RashiqAzhan! I guess that this bug is tracked in #15918. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
kachkaev
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
👋 @RashiqAzhan! I guess that this bug is tracked in #15918.