Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nebulab/erb-formatter-vscode
VSCode extension for ERB::Formatter (Format ERB files with speed and precision)
https://github.com/nebulab/erb-formatter-vscode
erb formatter html ruby ruby-on-rails vscode-extension
Last synced: 2 months ago
JSON representation
VSCode extension for ERB::Formatter (Format ERB files with speed and precision)
- Host: GitHub
- URL: https://github.com/nebulab/erb-formatter-vscode
- Owner: nebulab
- License: mit
- Created: 2022-04-05T14:26:43.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-11-03T14:19:10.000Z (over 1 year ago)
- Last Synced: 2024-11-01T19:36:16.220Z (4 months ago)
- Topics: erb, formatter, html, ruby, ruby-on-rails, vscode-extension
- Language: JavaScript
- Homepage: https://marketplace.visualstudio.com/items?itemName=elia.erb-formatter
- Size: 92.8 KB
- Stars: 9
- Watchers: 4
- Forks: 2
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# ERB::Formatter 🪜 (for VSCode)
VSCode extension for the `ERB::Formatter` gem (https://github.com/nebulab/erb-formatter#readme).
## Features
- very fast
- attempts to limit length (configurable)
- tries to have an output similar to prettier for HTML
- indents correctly ruby blocks (e.g. `if`/`elsif`/`do`/`end`)
- designed to be integrated into editors and commit hooks
- gives meaningful output in case of errors (most of the time)
- will use multiline values for `class` and `data-action` attributes## Requirements
Only requires the `erb` language to be defined, usually added by https://github.com/rubyide/vscode-ruby.
## Extension Settings
This extension contributes the following settings:
* `erb-formatter.commandPath`: Customize the full command for the ERB Formatter, includes bundler or any extra option.
* `erb-formatter.lineLength`: Customize the line length where the formatter will start breaking lines. Defaults to 80.## Release Notes
VSCode extension: https://github.com/nebulab/erb-formatter-vscode/releases
ERB::Formatter https://github.com/nebulab/erb-formatter/releases## Releasing
```bash
bin/release
```