yarn add -D prettier @prettier/plugin-ruby prettier-plugin-erb
@prettier/plugin-ruby
is used for formatting multiline expressions
Available configuration options for plugin-ruby are available here
Your code wasn't formatted correctly or there was an error? Add the problematic file to .prettierignore and submit an Issue.