From 065c783cdb0a49de564db0dbca463f3fecc6763a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Cl=C3=A9ment=20Pit-Claudel?= <clement.pit-claudel@epfl.ch>
Date: Sun, 8 Dec 2024 01:03:59 +0100
Subject: [PATCH] build: Add scalaFmt

---
 .scalafmt.conf      | 14 ++++++++++++++
 project/plugins.sbt |  1 +
 2 files changed, 15 insertions(+)
 create mode 100644 .scalafmt.conf

diff --git a/.scalafmt.conf b/.scalafmt.conf
new file mode 100644
index 0000000..bc38b37
--- /dev/null
+++ b/.scalafmt.conf
@@ -0,0 +1,14 @@
+version = "3.8.3"
+maxColumn = 90
+runner.dialect = scala3
+rewrite.scala3.convertToNewSyntax = yes
+rewrite.scala3.removeOptionalBraces = yes
+rewrite.scala3.removeEndMarkerMaxLines = 16384
+newlines.source = keep
+docstrings.wrapMaxColumn = 80
+docstrings.oneline = fold
+
+project {
+  excludePaths = [
+  ]
+}
diff --git a/project/plugins.sbt b/project/plugins.sbt
index 462b355..fce5a54 100644
--- a/project/plugins.sbt
+++ b/project/plugins.sbt
@@ -1,3 +1,4 @@
+addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.0")
 addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.16.0")
 addSbtPlugin("org.portable-scala" % "sbt-scalajs-crossproject" % "1.3.2")
 
-- 
GitLab