forked from Alkaar/resy-booking-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.scalafmt.conf
43 lines (43 loc) · 1.39 KB
/
.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
version = 3.5.8
runner.dialect = scala3
# Only format files tracked by git
project.git = true
# Because our monitors are wide and names are verbose
maxColumn = 100
# Pretty alignment
align = more
align = default
align.tokens = [
{code = "=>", owner = "Case"}
{code = "extends", owner = "Defn.(Class|Trait|Object)"}
{code = "//", owner = ".*"}
{code = "{", owner = "Template"}
{code = "}", owner = "Template"}
{code = "%", owner = "Term.ApplyInfix"}
{code = "%%", owner = "Term.ApplyInfix"}
{code = "%%%", owner = "Term.ApplyInfix"}
{code = "⇒", owner = "Case"}
{code = "<-", owner = "Enumerator.Generator"}
{code = "←", owner = "Enumerator.Generator"}
{code = "->", owner = "Term.ApplyInfix"}
{code = "→", owner = "Term.ApplyInfix"}
{code = "=", owner = "(Enumerator.Val|Defn.(Va(l|r)|Def|Type))|Term.Assign"}
]
# Align stripMargin |s with the opening quote
assumeStandardLibraryStripMargin = true
# For consistency with the call-site: indent args by 2 spaces
continuationIndent.defnSite = 2
# Newlines before toplevel statements for readability
newlines.topLevelStatements = [before]
# Keep short Scaladoc comments compact
docstrings.oneline = fold
docstrings.removeEmpty = true
# Wrap long comments if they overflow maxColumn
comments.wrap = trailing
comments.wrapStandaloneSlcAsSlc = true
# Basic syntactic rewrites
rewrite.rules = [
SortImports
SortModifiers
PreferCurlyFors
]