We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This is from a new Rails 7 + devise + simple_form. Running prettier-plugin-erb produces the following output:
diff --git a/app/views/devise/registrations/new.html.erb b/app/views/devise/registrations/new.html.erb index bcebb40..22c7d25 100644 --- a/app/views/devise/registrations/new.html.erb +++ b/app/views/devise/registrations/new.html.erb @@ -11,8 +11,8 @@ <div class="field"> <%= f.label :password %> <% if @minimum_password_length %> - <em>(<%= @minimum_password_length %> characters minimum)</em> - <% end %><br /> + <em>(<%= @minimum_password_length %> characters minimum)</em> </eext8 + ><br /> <%= f.password_field :password, autocomplete: "new-password" %> </div>
Running it again correctly complains and results in error code 2.
app/views/devise/registrations/new.html.erb [error] app/views/devise/registrations/new.html.erb: Missing closing expression
<h2>Sign up</h2> <%= simple_form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| %> <%= render "devise/shared/error_messages", resource: resource %> <%= f.input :email, autofocus: true, as: :email %> <%= f.input :password, as: :password %> <%= f.input :password_confirmation, as: :password %> <% if false %> <div class="field"> <%= f.label :password %> <% if @minimum_password_length %> <em>(<%= @minimum_password_length %> characters minimum)</em> <% end %><br /> <%= f.password_field :password, autocomplete: "new-password" %> </div> <div class="field"> <%= f.label :password_confirmation %><br /> <%= f.password_field :password_confirmation, autocomplete: "new-password" %> </div> <% end %> <div class="actions"> <%= f.button :submit %> </div> <% end %> <%= render "devise/shared/links" %>
The text was updated successfully, but these errors were encountered:
Currently prettier 2.3 and above isn't supported yet which is causing this issue. See #49 and linked issues for more info
Sorry, something went wrong.
No branches or pull requests
This is from a new Rails 7 + devise + simple_form. Running prettier-plugin-erb produces the following output:
Running it again correctly complains and results in error code 2.
Source code that breaks
The text was updated successfully, but these errors were encountered: