You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I followed this setup for my project: http://www.scala-js.org/doc/project/cross-build.html
With this, I can build for both the JVM and Scala.js, and have common source files along with target-dedicated source files.
Then I added the latest neo-sbt-scalafmt (1.14), and the following config in build.sbt:
lazyvalfoo= crossProject.in(file(".")).
settings(
scalafmtVersion in ThisBuild:="1.3.0",
scalafmtOnCompile in ThisBuild:=true,
scalafmtTestOnCompile in ThisBuild:=true,
ignoreErrors in (ThisBuild, scalafmt) :=false,
// other settings
).
jvmSettings(
// other settings
).
jsSettings(
// other settings
)
Hi!
I followed this setup for my project: http://www.scala-js.org/doc/project/cross-build.html
With this, I can build for both the JVM and Scala.js, and have common source files along with target-dedicated source files.
Then I added the latest
neo-sbt-scalafmt
(1.14
), and the following config inbuild.sbt
:And here is my
.scalafmt.conf
file:When I do
scalafmt
in my SBT console, scalafmt runs correctly on files located injvm/src
andjs/src
, but not inshared/src
!Do you have any idea on how to change this behavior? (Or how to investigate more deeply what happens)
The text was updated successfully, but these errors were encountered: