Skip to content

Commit

Permalink
ScalafmtConfig: no dangling parens for scala.js
Browse files Browse the repository at this point in the history
That style uses either config style (which preserves or forces dangling
regardless of the setting) or binpacking without dangling. Currently,
binpacking ignores the dangling setting but is about to use it.
  • Loading branch information
kitbellew committed Dec 22, 2021
1 parent 91fd2b1 commit 073b571
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ object ScalafmtConfig {
unsafeCallSite = BinPack.Unsafe.Always,
parentConstructors = BinPack.ParentCtors.Always
),
danglingParentheses = DanglingParentheses(false, false),
indent = Indents(callSite = 4, defnSite = 4),
importSelectors = ImportSelectors.binPack,
newlines = default.newlines.copy(
Expand Down

0 comments on commit 073b571

Please sign in to comment.