From 2e142be178405227704a555b063a0f3908d43085 Mon Sep 17 00:00:00 2001 From: Rohan Sircar Date: Sun, 27 Dec 2020 20:39:57 +0530 Subject: [PATCH] Added scalafix --- build.sbt | 9 +++++++++ project/plugins.sbt | 1 + 2 files changed, 10 insertions(+) diff --git a/build.sbt b/build.sbt index b220042..b348fb9 100644 --- a/build.sbt +++ b/build.sbt @@ -123,3 +123,12 @@ copyFastOptJS := { preserveExecutable = true ) } + +ThisBuild / scalafixDependencies += "com.github.liancheng" %% "organize-imports" % "0.4.3" +inThisBuild( + List( + scalaVersion := scalaVersion.value, // 2.11.12, or 2.13.3 + semanticdbEnabled := true, // enable SemanticDB + semanticdbVersion := "4.4.2" // use Scalafix compatible version + ) +) diff --git a/project/plugins.sbt b/project/plugins.sbt index 86bdbb4..f204f80 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -2,3 +2,4 @@ addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.3.0") addSbtPlugin("ch.epfl.scala" % "sbt-scalajs-bundler" % "0.20.0") resolvers += Resolver.bintrayRepo("oyvindberg", "converter") addSbtPlugin("org.scalablytyped.converter" % "sbt-converter" % "1.0.0-beta29.1") +addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.9.23")