Skip to content

Instantly share code, notes, and snippets.

@HarshadRanganathan
Created April 21, 2020 17:55
Show Gist options
  • Save HarshadRanganathan/e27f638dc5b0805060e983149041cb62 to your computer and use it in GitHub Desktop.
Save HarshadRanganathan/e27f638dc5b0805060e983149041cb62 to your computer and use it in GitHub Desktop.
Scalafmt Recommended Configuration
style = defaultWithAlign
align.openParenCallSite = false
align.openParenDefnSite = false
align.tokens = [{code = "->"}, {code = "<-"}, {code = "=>", owner = "Case"}]
continuationIndent.callSite = 2
continuationIndent.defnSite = 2
danglingParentheses = true
indentOperator = spray
maxColumn = 100
newlines.alwaysBeforeTopLevelStatements = true
project.excludeFilters = [".*\\.sbt"]
rewrite.rules = [RedundantParens, SortImports]
spaces.inImportCurlyBraces = false
unindentTopLevelOperators = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment