Joshua Steele

Joined

950 Experience
9 Lessons Completed
0 Questions Solved

Activity

Posted in Format erb files on save?

I haven't worked with erb in a while, and now I'm getting back to it. I use Vim as my editor (https://github.com/joshukraine/dotfiles), and I also use coc.nvim for code completion, etc. With JavaScript files, for example, I use Prettier to immediately fix trivial formatting issues when I save the file. However as best I can tell, Prettier does not currently support erb. (https://github.com/prettier/plugin-ruby/issues/371) What's the best solution these days for quickly formatting .html.erb files?

Thanks in advance for any suggestions!