Apply quokka single_node rule

This commit is contained in:
Claudio Ortolina
2025-05-28 19:50:06 +01:00
parent 774f1c82e5
commit ae34909c1f
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -4,6 +4,6 @@
plugins: [Phoenix.LiveView.HTMLFormatter, Quokka], plugins: [Phoenix.LiveView.HTMLFormatter, Quokka],
inputs: ["*.{heex,ex,exs}", "{config,lib,test}/**/*.{heex,ex,exs}", "priv/*/seeds.exs"], inputs: ["*.{heex,ex,exs}", "{config,lib,test}/**/*.{heex,ex,exs}", "priv/*/seeds.exs"],
quokka: [ quokka: [
only: [:module_directives, :pipes] only: [:module_directives, :pipes, :single_node]
] ]
] ]
+2 -2
View File
@@ -37,7 +37,7 @@ defmodule LastFm.API do
{"#{key}[#{index}]", value} {"#{key}[#{index}]", value}
end) end)
end) end)
|> Enum.into(%{}) |> Map.new()
params = Map.merge(params, track_params) params = Map.merge(params, track_params)
@@ -68,7 +68,7 @@ defmodule LastFm.API do
params = params =
config config
|> base_params() |> base_params()
|> Keyword.merge(method: "artist.getInfo") |> Keyword.put(:method, "artist.getInfo")
|> put_musicbrainz_id_or_name(id_or_name_option) |> put_musicbrainz_id_or_name(id_or_name_option)
config config
+1 -1
View File
@@ -10,7 +10,7 @@ defmodule DiscogsTest do
expected_info = expected_info =
Fixtures.Artist.get_artist() Fixtures.Artist.get_artist()
Req.Test.stub(Discogs.API, fn conn = %{request_path: "/artists/discogs_id"} -> Req.Test.stub(Discogs.API, fn %{request_path: "/artists/discogs_id"} = conn ->
Req.Test.json(conn, Fixtures.Artist.get_artist()) Req.Test.json(conn, Fixtures.Artist.get_artist())
end) end)