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
Hello
It looks like (using version 0.4.0) prettier plugin erb is not handling correctly things like
<%== 'something' %>
when running prettier it will signal files containing that code and when --write option is passed it will attempt to rewrite it to
--write
<%= = 'something' %>
<%== is a valid html.erb thing (check https://edgeguides.rubyonrails.org/active_support_core_extensions.html#safe-strings ) and it simply is an equivalent of raw method.
<%==
html.erb
raw
The workaround is to use
<%= raw('something') %>
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello
It looks like (using version 0.4.0) prettier plugin erb is not handling correctly things like
<%== 'something' %>
when running prettier it will signal files containing that code and when
--write
option is passed it will attempt to rewrite it to<%==
is a validhtml.erb
thing (check https://edgeguides.rubyonrails.org/active_support_core_extensions.html#safe-strings )and it simply is an equivalent of
raw
method.The workaround is to use
The text was updated successfully, but these errors were encountered: