forked from typelevel/cats-mtl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.scalafmt.conf
50 lines (37 loc) · 884 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
version = "2.7.5"
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 = JavaDoc
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 {
"⇒": "=>"
"→": "->"
"←": "<-"
}