standardrb / vscode-standard-ruby

The official VS Code extension for the Standard Ruby linter and code formatter
Other
101 stars 7 forks source link

Dynamic class names changed to `[object Object]` #6

Closed archonic closed 1 year ago

archonic commented 1 year ago

I noticed the same thing using @prettier/plugin-ruby.

This:

<div class="<%= dynamic_class %>">...</div>

Is formatting to this:

<div class="[object Object]">...</div>
searls commented 1 year ago

Huh, that's interesting. Was this in an erb file? Could you share a sample file listing?

archonic commented 1 year ago

I think I might have had prettier/plugin-ruby still present. I tried creating a minimal reproduction and this extension isn't formatting ERB at all. Is this extension meant to have any handling of erb files?

searls commented 1 year ago

Correct, rubocop and standard do not format or lint ERB files in fact

archonic commented 1 year ago

Ok, that explains it. I would love it if they did. Closing!