Skip to content

Commit a317643

Browse files
xerialclaude
andauthored
Update scalafmt configuration for Scala 3 (#679)
- 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 <[email protected]>
1 parent 561320e commit a317643

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

.scalafmt.conf

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
version = 3.9.4
2-
runner.dialect = scala213source3
3-
maxColumn = 180
2+
project.layout = StandardConvention
3+
runner.dialect = scala3
4+
maxColumn = 100
45
style = defaultWithAlign
5-
optIn.breaksInsideChains = true
6+
docstrings.blankFirstLine = yes
7+
rewrite.scala3.convertToNewSyntax = true
8+
rewrite.scala3.removeOptionalBraces = yes
9+
rewrite.scala3.insertEndMarkerMinLines = 30
10+
# Add a new line before case class
11+
newlines.topLevelStatementBlankLines = [
12+
{
13+
blanks { after = 1 }
14+
}
15+
]
16+
newlines.source = unfold

0 commit comments

Comments
 (0)