Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

prettier-plugin-erb

adamzapasnik12.2kMIT0.4.0

Prettier plugin for .html.erb files

plugin, prettier, erb, ruby, html-erb

readme

Prettier ERB Plugin

How to install?

  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

How to deal with bugs?

Your code wasn't formatted correctly or there was an error? Add the problematic file to .prettierignore and submit an Issue.

changelog

Changelog

All notable changes to the prettier-plugin-erb will be documented in this file.

v0.4.0 - 24 June 2021

Bug fixes

  • Fix [object Object]

v0.3.0 - 3 June 2021

Bug fixes

  • Fix formatting of expressions inside elements

v0.2.0 - 25 May 2021

Features

  • Format singleline expressions (block expressions aren't formatted)

Bug fixes

  • Return non 0 exit status when error formatting is unsuccessful
  • Use print function instead of embed to fix error logging
  • Fix formatting of files that consist of only a single expression
  • Fix formatting of singline and multiline comments
  • Specify prettier version to be lowar than 2.3

v0.1.0 - 7 February 2021

Initial release