Skip to content

Commit

Permalink
feat: use newlines.beforeCurlyLambdaParams for scalafmt (#326)
Browse files Browse the repository at this point in the history
  • Loading branch information
hseeberger authored Nov 16, 2021
1 parent da3ec47 commit 601a6d3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 14 deletions.
15 changes: 8 additions & 7 deletions .scalafmt.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ version = "3.1.1"
preset = "defaultWithAlign"
runner.dialect = "scala213"

maxColumn = 100
indentOperator.preset = "spray"
unindentTopLevelOperators = true
spaces.inImportCurlyBraces = true
rewrite.rules = ["AsciiSortImports", "RedundantBraces", "RedundantParens"]
docstrings.blankFirstLine = true
trailingCommas = "preserve"
maxColumn = 100
indentOperator.preset = "spray"
unindentTopLevelOperators = true
spaces.inImportCurlyBraces = true
rewrite.rules = ["AsciiSortImports", "RedundantBraces", "RedundantParens"]
docstrings.blankFirstLine = true
trailingCommas = "preserve"
newlines.beforeCurlyLambdaParams = "multilineWithCaseOnly"
15 changes: 8 additions & 7 deletions src/main/scala/de/heikoseeberger/sbtfresh/Template.scala
Original file line number Diff line number Diff line change
Expand Up @@ -204,12 +204,13 @@ private object Template {
|preset = "defaultWithAlign"
|runner.dialect = "scala3"
|
|maxColumn = 100
|indentOperator.preset = "spray"
|unindentTopLevelOperators = true
|spaces.inImportCurlyBraces = true
|rewrite.rules = ["AsciiSortImports", "RedundantBraces", "RedundantParens"]
|docstrings.blankFirstLine = true
|trailingCommas = "preserve"
|maxColumn = 100
|indentOperator.preset = "spray"
|unindentTopLevelOperators = true
|spaces.inImportCurlyBraces = true
|rewrite.rules = ["AsciiSortImports", "RedundantBraces", "RedundantParens"]
|docstrings.blankFirstLine = true
|trailingCommas = "preserve"
|newlines.beforeCurlyLambdaParams = "multilineWithCaseOnly"
|""".stripMargin
}

0 comments on commit 601a6d3

Please sign in to comment.