-
Notifications
You must be signed in to change notification settings - Fork 8
/
.scalafmt.conf
27 lines (22 loc) · 673 Bytes
/
.scalafmt.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Test upgrades: $ scripts/scalafmt --test 2> diff.txt
version = 3.8.2
runner.dialect = scala213source3
preset = default
# JavaDoc style (ported from Java)
docstrings.style = Asterisk
assumeStandardLibraryStripMargin = true
project.git = true
# This creates less of a diff but is not default
# but is more aligned with Scala.js syntax.
newlines.beforeCurlyLambdaParams = multilineWithCaseOnly
# Keep control sites more streamlined
indent.ctrlSite = 4
danglingParentheses.ctrlSite = false
# Default is not recommended
indentOperator.exemptScope = aloneEnclosed
# allow dialect for Scala 3
fileOverride {
"glob:**/scala-3/**.scala" {
runner.dialect = scala3
}
}