Skip to content

Instantly share code, notes, and snippets.

@Daenyth
Created December 2, 2020 18:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Daenyth/cb043aa7afec6fd58fe888878eed6fc5 to your computer and use it in GitHub Desktop.
Save Daenyth/cb043aa7afec6fd58fe888878eed6fc5 to your computer and use it in GitHub Desktop.
My scalafmt preference (for now)
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