From f95ab260a0b2ad339755bbd4434ffd87cfdd4351 Mon Sep 17 00:00:00 2001 From: Tu Nguyen Date: Fri, 7 Jun 2024 16:29:57 +0700 Subject: [PATCH] add import scala.language.implicitConversions (#125) --- .changeset/neat-beds-peel.md | 5 +++++ packages/scalawind/src/generate/templates/scalawind.hbs | 1 + packages/scalawind/tests/cases/basic/expected.txt | 1 + packages/scalawind/tests/cases/full/expected.txt | 1 + 4 files changed, 8 insertions(+) create mode 100644 .changeset/neat-beds-peel.md diff --git a/.changeset/neat-beds-peel.md b/.changeset/neat-beds-peel.md new file mode 100644 index 0000000..1dd0420 --- /dev/null +++ b/.changeset/neat-beds-peel.md @@ -0,0 +1,5 @@ +--- +"scalawind": patch +--- + +add import scala.language.implicitConversions diff --git a/packages/scalawind/src/generate/templates/scalawind.hbs b/packages/scalawind/src/generate/templates/scalawind.hbs index c4436ee..c1e996c 100644 --- a/packages/scalawind/src/generate/templates/scalawind.hbs +++ b/packages/scalawind/src/generate/templates/scalawind.hbs @@ -2,6 +2,7 @@ package {{packageName}} import scala.quoted.* import scala.annotation.unused +import scala.language.implicitConversions {{#if laminar}} import com.raquo.laminar.api.L.cls diff --git a/packages/scalawind/tests/cases/basic/expected.txt b/packages/scalawind/tests/cases/basic/expected.txt index 7493664..20fb016 100644 --- a/packages/scalawind/tests/cases/basic/expected.txt +++ b/packages/scalawind/tests/cases/basic/expected.txt @@ -2,6 +2,7 @@ package scalawind import scala.quoted.* import scala.annotation.unused +import scala.language.implicitConversions import japgolly.scalajs.react.vdom.html_<^.* object clx: diff --git a/packages/scalawind/tests/cases/full/expected.txt b/packages/scalawind/tests/cases/full/expected.txt index 5b8d101..229e155 100644 --- a/packages/scalawind/tests/cases/full/expected.txt +++ b/packages/scalawind/tests/cases/full/expected.txt @@ -2,6 +2,7 @@ package scalawind import scala.quoted.* import scala.annotation.unused +import scala.language.implicitConversions import com.raquo.laminar.api.L.cls object clx: