biomejs/biome

๐Ÿ“ Chained function are forced on new line when there is an operation as parameter

Closed this issue ยท 2 comments

In the playground links, you can see that Prettier's behavior is the same, so it looks to me like this is by design. If I'm not mistaken, the rationale is that there shouldn't be too much information on a single line.

There are different heuristics inside a "member chain". One of them checks where the chain contains complex expressions, and if so, the whole chain goes on multiple lines regardless of the line width.