Skip to content

Instantly share code, notes, and snippets.

@mtavkhelidze
Last active March 17, 2024 07:42
Show Gist options
  • Save mtavkhelidze/ec33d52b0c489c61c60d4806c4f263ee to your computer and use it in GitHub Desktop.
Save mtavkhelidze/ec33d52b0c489c61c60d4806c4f263ee to your computer and use it in GitHub Desktop.
Dot scalafmt.conf
align.preset = none
# From https://scalameta.org/scalafmt/docs/configuration.html
#
# Keep in mind that 80 characters fit perfectly on a split laptop
# screen with regular resolution.
#
# GitHub mobile view only shows 80 characters and sometimes you might
# review code on your phone.
#
# Consider refactoring your code before choosing a value above 100.
maxColumn = 80
rewrite.scala3.convertToNewSyntax = true
rewrite.scala3.insertEndMarkerMinLines = 5
rewrite.scala3.removeOptionalBraces = true
runner.dialect = scala3
trailingCommas = always
version = 3.8.0
fileOverride {
"glob:**.sbt" {
runner.dialect = scala212source3
}
"glob:**/project/**.*" {
runner.dialect = scala212source3
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment