-
Notifications
You must be signed in to change notification settings - Fork 1
/
.scalafmt.conf
30 lines (30 loc) · 1001 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
28
29
30
version = 3.8.4-RC3
runner.dialect = "scala213source3"
fileOverride {
"glob:**/scala-3/**" {
runner.dialect = scala3
}
}
style = defaultWithAlign
align.openParenCallSite = true
align.openParenDefnSite = true
align.arrowEnumeratorGenerator = true
maxColumn = 180
continuationIndent.defnSite = 2
assumeStandardLibraryStripMargin = true
danglingParentheses.defnSite = true
danglingParentheses.callSite = true
rewrite.rules = [AvoidInfix, ExpandImportSelectors, RedundantParens, SortModifiers]
docstrings = JavaDoc
newlines.afterCurlyLambda = preserve
docstrings.style = Asterisk
docstrings.oneline = unfold
trailingCommas = "preserve"
optIn.breaksInsideChains = true
includeCurlyBraceInSelectChains = true
align.preset = most
rewrite.scala3.convertToNewSyntax = true
runner.dialectOverride.allowAsForImportRename = true
runner.dialectOverride.allowStarWildcardImport = true
runner.dialectOverride.allowPostfixStarVarargSplices = true
runner.dialectOverride.allowQuestionMarkAsTypeWildcard = true