Currently map literals ([key1 => value1, key2 => value2]) are formatted according to the wrapping.arrayWrap configuration. As far as I can tell, there is no way to format map literals different from array literals, which can definitely be a sensible thing to do (for example: leave array mapping as default, but use onePerLine for map literals).
Describe the Feature
Currently map literals (
[key1 => value1, key2 => value2]
) are formatted according to thewrapping.arrayWrap
configuration. As far as I can tell, there is no way to format map literals different from array literals, which can definitely be a sensible thing to do (for example: leave array mapping as default, but useonePerLine
for map literals).Sample of desired output