-
Notifications
You must be signed in to change notification settings - Fork 63
/
Copy path.scalafmt.conf
52 lines (38 loc) · 925 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
version = "3.8.6"
runner.dialect = scala213Source3
maxColumn = 96
includeCurlyBraceInSelectChains = true
includeNoParensInSelectChains = true
optIn {
breakChainOnFirstMethodDot = false
forceBlankLineBeforeDocstring = true
}
binPack.literalArgumentLists = true
danglingParentheses {
defnSite = false
callSite = false
ctrlSite = false
}
newlines {
afterCurlyLambda=squash
implicitParamListModifierPrefer = before
sometimesBeforeColonInMethodReturnType = true
}
align.preset = none
align.stripMargin = true
assumeStandardLibraryStripMargin = true
docstrings.style = Asterisk
trailingCommas = never
rewrite {
# we really want to use RedundantBraces here, but it causes idempotency issues
rules = [PreferCurlyFors, RedundantBraces, RedundantParens, SortImports]
redundantBraces {
maxLines = 1
stringInterpolation = true
}
}
rewriteTokens {
"⇒": "=>"
"→": "->"
"←": "<-"
}