erb-formatter icon indicating copy to clipboard operation
erb-formatter copied to clipboard

Format ERB files with speed and precision

Results 24 erb-formatter issues
Sort by recently updated
recently updated
newest added

In normal usage of `javascript_tag`, the contents of the block are javascript, and not HTML. `erb-formatter` attempts to format these contents, which can mangle whitespace and make inline scripts hard...

looking for contributions

The [readme](https://github.com/nebulab/erb-formatter#installation) says we should be able to use this extension with `gem install erb-formatter`. I've done that and `which erb-format` works, but the extension seems unable to find it...

question

Consider joining forces with https://github.com/davidwessman/syntax_tree-erb as the project has done an awesome job already and with a few fixes we could get feature parity. Currently trying to run it on...

My code base had a few places where html had been temporarily commented out using syntax like so: ```erb ``` I don't want the comments to be formatted (other than...

looking for contributions

When one file has an parse error, I would prefer that formatting continues for all of the other files that have no issue (after printing the error message). There should...

looking for contributions

The following ERB : ``` ... ``` Raise the following error : ``` ==> FORMATTED: ... ==> STACK: [["div", ""], ["%erb%", "@myarray.each { |element|"], ["%erb%", ""]] ==> ERROR: Unmatched close...

looking for contributions

- Improve the indentation of multiline code by taking into account the size of the opening ERB tag. - Improve the limiting of line length by adjusting for the indentation...

Hello! Similar to the other `yield` issue that was fixed in 0.7.3, it seems that the formatter is not happy with this in a layout: ``` ``` It's still unhappy...

Currently, unquoted and name-only attributes are placed on a new line, even when they could fit on the same line. This PR modifies this behavior to keep them on the...

CSS classes cannot begin with digits. For this reason, Tailwind uses `\3` to escape them. For instance, `2xl:col-span-10` is transformed into `.\32xl\:col-span-10 { grid-column: span 10 / span 10; }`...