-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.scalafmt.conf
33 lines (33 loc) · 862 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
31
32
33
version = 3.5.0
runner.dialect = scala3
style = defaultWithAlign
maxColumn = 120
lineEndings = unix
align {
preset = most
openParenCallSite = false
openParenDefnSite = false
tokens = [
{code = "<-"},
{code = "=>", owner = "Case"},
{code = "%", owner = "Term.ApplyInfix"},
{code = "%%", owner = "Term.ApplyInfix"},
{code = "//"}
]
}
continuationIndent {
defnSite = 2
extendSite = 4
}
rewrite {
rules = [RedundantBraces, RedundantParens, SortImports, SortModifiers, PreferCurlyFors]
sortModifiers.order = ["override", "private", "protected", "implicit", "final", "sealed", "abstract", "lazy"]
}
newlines.sometimesBeforeColonInMethodReturnType = false
spaces.inImportCurlyBraces = false
danglingParentheses {
defnSite = true
callSite = false
}
includeCurlyBraceInSelectChains = false
assumeStandardLibraryStripMargin = true