-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add HTMLFormatter in formatter.exs templates #4793
Add HTMLFormatter in formatter.exs templates #4793
Conversation
According to this commit we also need to add Can you please do so? Thank you! |
Sure! |
Co-authored-by: José Valim <jose.valim@gmail.com>
💚 💙 💜 💛 ❤️ |
For the plugin to work as expected in an umbrella project, the plugin needs to be also added to the top level |
Thanks @michallepicki just pushed a PR #4800 |
@leandrocp can you check the integration tests on master? I get failures locally on our tests that ensure the generated code is formatted. It fails on layout files and phx.gen.html files, because presumably they have minor tweaks with the formatter. Thanks! |
This reverts commit 9480b9b.
Sure. I can reproduce, working on it. |
@chrismccord one of the changes is adding parens to template functions, eg:
<%= live_title_tag(assigns[:page_title] || "app", suffix: " · Phoenix Framework") %> I'm wondering if such functions should be added to |
parens is fine. We'll probably convert this to a function component for v1.7. Thanks! |
That's an attempt to close #4749
The config is added only if
@html
and Elixir >= 1.13.4 to meet formatter requirements.