From a317643ef9b88f282c11a13d62a335d9af84216d Mon Sep 17 00:00:00 2001 From: "Taro L. Saito" Date: Sat, 19 Jul 2025 11:46:59 -0700 Subject: [PATCH] Update scalafmt configuration for Scala 3 (#679) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Change dialect from scala213source3 to scala3 - Add StandardConvention project layout - Reduce maxColumn from 180 to 100 for better readability - Add Scala 3 specific rewrite rules for modern syntax - Configure newlines and docstring formatting 🤖 Generated with [Claude Code](https://claude.ai/code) Co-authored-by: Claude --- .scalafmt.conf | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/.scalafmt.conf b/.scalafmt.conf index c1127d6..39be2f7 100644 --- a/.scalafmt.conf +++ b/.scalafmt.conf @@ -1,5 +1,16 @@ version = 3.9.4 -runner.dialect = scala213source3 -maxColumn = 180 +project.layout = StandardConvention +runner.dialect = scala3 +maxColumn = 100 style = defaultWithAlign -optIn.breaksInsideChains = true +docstrings.blankFirstLine = yes +rewrite.scala3.convertToNewSyntax = true +rewrite.scala3.removeOptionalBraces = yes +rewrite.scala3.insertEndMarkerMinLines = 30 +# Add a new line before case class +newlines.topLevelStatementBlankLines = [ + { + blanks { after = 1 } + } +] +newlines.source = unfold