diff options
| author | Jiuyang Liu | 2022-01-10 10:37:17 -0800 |
|---|---|---|
| committer | Jack Koenig | 2022-01-10 15:53:55 -0800 |
| commit | dd36f97a82746cec0b25b94651581fe799e24579 (patch) | |
| tree | 18640ff326855bfeba4da942e73f539ab270fb2f /.scalafmt.conf | |
| parent | 92e77a97af986629766ac9038f0ebc8ab9a48fa1 (diff) | |
Add scalafmt config, SBT plugin, and mill support
Can be run in two ways:
* sbt scalaFmtAll
* mill mill.scalalib.scalafmt.ScalafmtModule/reformatAll __.sources
Diffstat (limited to '.scalafmt.conf')
| -rw-r--r-- | .scalafmt.conf | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/.scalafmt.conf b/.scalafmt.conf new file mode 100644 index 00000000..f74e5504 --- /dev/null +++ b/.scalafmt.conf @@ -0,0 +1,26 @@ +version = 2.6.4 + +maxColumn = 120 +align = most +continuationIndent.defnSite = 2 +assumeStandardLibraryStripMargin = true +docstrings = ScalaDoc +lineEndings = preserve +includeCurlyBraceInSelectChains = false +danglingParentheses = true + +align.tokens.add = [ + { + code = ":" + } +] + +newlines.alwaysBeforeCurlyBraceLambdaParams = false +newlines.alwaysBeforeMultilineDef = false +newlines.implicitParamListModifierForce = [before] + +verticalMultiline.atDefnSite = true + +optIn.annotationNewlines = true + +rewrite.rules = [SortImports, PreferCurlyFors, AvoidInfix] |
