summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorGuillaume Galy <guilgaly@users.noreply.github.com>2019-05-19 05:23:18 +0200
committerLi Haoyi <haoyi.sg@gmail.com>2019-05-19 11:23:18 +0800
commit052af24a530f8bc0532b368a2d360ff30f67d7b8 (patch)
treecd512450fbdf61a3928e3950c5caffb028aae0de /docs
parentc4a65baab92890d2d5682329a87469bec605fe5d (diff)
downloadmill-052af24a530f8bc0532b368a2d360ff30f67d7b8.tar.gz
mill-052af24a530f8bc0532b368a2d360ff30f67d7b8.tar.bz2
mill-052af24a530f8bc0532b368a2d360ff30f67d7b8.zip
Switch from scalafmt-cli to scalafmt-dynamic (#600)
Diffstat (limited to 'docs')
-rw-r--r--docs/pages/2 - Configuring Mill.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/pages/2 - Configuring Mill.md b/docs/pages/2 - Configuring Mill.md
index dbcbcee4..f6ca86a0 100644
--- a/docs/pages/2 - Configuring Mill.md
+++ b/docs/pages/2 - Configuring Mill.md
@@ -237,6 +237,12 @@ Now you can reformat code with `mill foo.reformat` command.
You can also reformat your project's code globally with `mill mill.scalalib.scalafmt.ScalafmtModule/reformatAll __.sources` command.
It will reformat all sources that matches `__.sources` query.
+If you add a `.scalafmt.conf` file at the root of you project, it will be used
+to configure formatting. It can contain a `version` key to specify the scalafmt
+version used to format your code. See the
+[scalafmt configuration documentation](https://scalameta.org/scalafmt/docs/configuration.html)
+for details.
+
## Common Configuration
```scala