-
Notifications
You must be signed in to change notification settings - Fork 6
/
.scalafmt.conf
38 lines (29 loc) · 821 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
version = 3.8.3
runner.dialect = scala211
continuationIndent.callSite = 2
continuationIndent.defnSite = 2
docstrings.style = Asterisk
indentOperator.include = ".*"
indentOperator.exclude = "^$"
newlines.avoidForSimpleOverflow=[tooLong, punct, slc]
newlines.avoidInResultType = true
newlines.neverBeforeJsNative = true
newlines.sometimesBeforeColonInMethodReturnType = false
newlines.neverBeforeJsNative = true
newlines.source = fold
binPack.parentConstructors = Oneline
binPack.unsafeCallSite = oneline
binPack.unsafeDefnSite = oneline
rewrite.rules = [RedundantBraces]
rewrite.redundantBraces.stringInterpolation = true
rewrite.redundantBraces.ifElseExpressions = true
rewriteTokens = {
"⇒": "=>"
"→": "->"
"←": "<-"
}
fileOverride {
"glob:**/build.sbt" {
runner.dialect = sbt1
}
}