rufo
rufo copied to clipboard
Support native erb comments
I'm using Rufo together with the Herb formatter in Zed and I've noticed that Rufo changes code like <%# locals: (item:, variant:) %> to <% # locals: (item:, variant:) %> and then Herb's linter complains that there shouldn't be any space for the comment: https://herb-tools.dev/linter/rules/erb-comment-syntax
It'd be great if Rufo supported the erb's comments (<%#) instead
FWIW, ActionView expects the "Strict Locals" to be defined using <%#:
https://guides.rubyonrails.org/action_view_overview.html#strict-locals