List forcing new line on all arguments except only on the breaking one - Bug: fn-map removes code
Having this config:
```
{:map {:comma? false
:force-nl? true}
:list {:hang? false
:force-nl? false}}
```
Our desired formatting is this:
```
(rf/reg-event-fx
:application/initialize-failure
(fn [{db :db} [_ result]]
(->
{:db db
:fx []}
(update :fx conj [:log! [{:level :error
:data result} "Application is initialized"]]))))
```
Where map inside update is broken into a new level due to a key
but rest of the list inside update stays on the same level
What I get instead is this:
```
(rf/reg-event-fx
:application/initialize-failure
(fn [{db :db} [_ result]]
(->
{:db db
:fx []}
(update
:fx
conj
[:log!
[{:level :error
:data result}
"Application is initialized"]]))))
```
关闭于 2025-05-20 16 条评论