Created
December 2, 2020 18:08
-
-
Save Daenyth/cb043aa7afec6fd58fe888878eed6fc5 to your computer and use it in GitHub Desktop.
My scalafmt preference (for now)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version = "2.7.1" | |
align = some | |
align.arrowEnumeratorGenerator = true | |
align.openParenCallSite = true | |
align.tokens = [caseArrow] | |
binPack.parentConstructors = true | |
comments.wrap = standalone | |
danglingParentheses.callSite = false | |
includeCurlyBraceInSelectChains = false | |
lineEndings = unix | |
maxColumn = 100 | |
newlines.alwaysBeforeMultilineDef = false | |
newlines.alwaysBeforeTopLevelStatements = true | |
newlines.implicitParamListModifierPrefer = before | |
optIn.breakChainOnFirstMethodDot = false | |
project.excludeFilters = [ | |
"\\.metals" // .metals contains *.scala files that shouldn't be touched | |
] | |
rewrite.rules = [ | |
RedundantBraces, | |
RedundantParens, | |
PreferCurlyFors, | |
SortModifiers | |
] | |
rewriteTokens = {"⇒": "=>", "←": "<-"} | |
runner.optimizer.forceConfigStyleOnOffset = 150 | |
trailingCommas = preserve |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment