Shopify / erb-lint

Lint your ERB or HTML files
MIT License
592 stars 113 forks source link

Improve comment syntax suggestions #324

Open sambostock opened 1 year ago

sambostock commented 1 year ago

This adds handling for <%- #, and clarifies that <%#= is just a comment starting with =, as opposed to some special construct.

Original Replacement Notes
<% # <%#
<%= # <%# If the = was there unintentionally, it can be removed.
<%= # <%#= If temporarily commenting out the line, with the intent of restoring it.
<%- # <%-# - affect whitespace, so we it should be kept, even if this is a comment.