oakmac/standard-clojure-style-js

Remove blank behaviour in different cases

Open

#156 建立於 2024年11月10日

在 GitHub 查看
 (4 留言) (0 反應) (0 負責人)Clojure (7 fork)github user discovery
bughelp wanted

倉庫指標

Star
 (132 star)
PR 合併指標
 (PR 指標待抓取)

描述

Hi, just watched your conj talk, this is cool - your efforts are appreciated.

Came across two different cases in different editors Pic instead code block because it shows blankspaces.

In first case, which by default in my vscode setup will be formatted to

(cond
  :cond-1
  :do-1
  :cond-2
  :do-2
  :cond-3
  :do-)

but(which default in my cursive setup) will be formatted with respect to blank lines to

(cond
  :cond-1
  :do-1

  :cond-2
  :do-2

  :cond-3
  :do-)

I would personally prefer to respect empty lines, but I wonder which behavior is considered preferable and whether the formatter behaves correctly in both cases?

貢獻者指南