Skip to content

Commit c8c73c3

Browse files
authored
Allow error_tracker_dashboard without parens (#33)
This is consistent with how other packages such as Phoenix LiveDashboard or Oban work when mounting resources on the router.
1 parent 12da0c3 commit c8c73c3

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.formatter.exs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Used by "mix format"
2+
locals_without_parens = [error_tracker_dashboard: 1, error_tracker_dashboard: 2]
3+
24
[
35
import_deps: [:ecto, :ecto_sql, :plug, :phoenix],
46
inputs: ["{mix,.formatter,dev,dev.*}.exs", "{config,lib,test}/**/*.{heex,ex,exs}"],
5-
plugins: [Phoenix.LiveView.HTMLFormatter]
7+
plugins: [Phoenix.LiveView.HTMLFormatter],
8+
locals_without_parens: locals_without_parens,
9+
export: [locals_without_parens: locals_without_parens]
610
]

dev.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ defmodule ErrorTrackerDevWeb.Router do
109109
get "/exit", ErrorTrackerDevWeb.PageController, :exit
110110

111111
scope "/dev" do
112-
error_tracker_dashboard("/errors")
112+
error_tracker_dashboard "/errors"
113113
end
114114
end
115115
end

0 commit comments

Comments
 (0)