prettier/plugin-ruby is a Backend project on GitHub, written primarily in JavaScript. It has 1.5k stars. Prettier Ruby Plugin
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
@prettier/plugin-ruby is a prettier plugin for the Ruby programming language and its ecosystem. prettier is an opinionated code formatter that supports multiple languages and integrates with most editors. The idea is to eliminate discussions of style in code review and allow developers to get back to thinking about code design instead.
when run through @prettier/plugin-ruby will generate:
d = [
30_644_250_780,
9_003_106_878,
30_636_278_846,
66_641_217_692,
4_501_790_980,
671_24_603036,
131_61973916,
66_606629_920,
30_642_677_916,
30_643_069_058
]
a, s = [], $*[0]
s.each_byte { |b| a << ("%036b" % d[b.chr.to_i]).scan(/\d{6}/) }
a.transpose.each do |a|
a.join.each_byte { |i| print i == 49 ? ($*[1] || "#") : 32.chr }
puts
end
Getting started
The @prettier/plugin-ruby plugin for prettier is a small wrapper around the Syntax Tree gem that provides a Ruby formatter for prettier. It does this by keeping a Ruby server running in that background that prettier can communicate with when it needs to format a Ruby file. This means that in order to function, you will need to have both the requisite node and ruby dependencies installed. Because of this configuration, there are a couple of ways that you can get setup to use this plugin.
If you're already using prettier in your project to format other files in your project and want to install this as a plugin, you can install it using npm.
If you're not using prettier yet in your project, then we recommend using the Syntax Tree gem directly instead of using this plugin.
Note that this plugin also ships a gem named prettier which is a wrapper around the prettier CLI and includes this plugin by default, but we no longer recommend its use. If you're using that gem, you should migrate to using Syntax Tree instead.
To run prettier with the Ruby plugin as an npm package, you're going to need ruby (version 2.7 or newer) and node (version 16 or newer).
If you're using the npm CLI, then add the plugin by:
Sometimes you want to leave your formatting in place and have prettier not format it, but continue to format the rest of the file. prettier has the ability to do this with prettier-ignore comments, but because the underlying formatter for this plugin is Syntax Tree, you instead would use a stree-ignore comment.
Usage with RuboCop
RuboCop and Prettier for Ruby serve different purposes, but there is overlap with some of RuboCop's functionality. Prettier provides a RuboCop configuration file to disable the rules which would clash. To enable this file, add the following configuration at the top of your project's .rubocop.yml:
For supported editor integrations, you should follow the instructions for installing the integration, then install the npm version of this plugin as a development dependency of your project. For most integrations, that should be sufficient. For convenience, the instructions for integrating with VSCode are used as an example below:
Install the Prettier - Code Formatter extension.
Add the npm @prettier/plugin-ruby package to your project as described above.
Configure in your settings.json (formatOnSave is optional):
No homepage URL was recorded for prettier/plugin-ruby in TopGit's last sync. The README tab above frequently contains screenshots and demo links, or check the repository description on GitHub.
Is prettier/plugin-ruby open source?
Yes — prettier/plugin-ruby ships under the MIT license, which makes its source code freely readable (and, depending on license terms, forkable and reusable). Source: github.com/prettier/plugin-ruby.
What else is in the Backend space?
prettier/plugin-ruby is tracked by TopGit under the Backend category, alongside 3 GitHub-tagged topics. Trending and Topics pages list peer repositories of comparable stars and language.
What is prettier/plugin-ruby?
prettier/plugin-ruby (prettier/plugin-ruby) is a JavaScript project on GitHub. From the project's own README: Prettier Ruby Plugin
What license does prettier/plugin-ruby use?
prettier/plugin-ruby is released under the MIT license. Always verify the LICENSE file directly on GitHub for the authoritative terms — license strings can be edited out of sync with a project's actual stance.
Where do I read more about prettier/plugin-ruby?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/prettier/plugin-ruby is the definitive source.
Why is prettier/plugin-ruby categorized under Backend?
TopGit places prettier/plugin-ruby in the Backend category based on its GitHub topics and description (tagged: "prettier", "prettier-plugin", "ruby"). Categories are assigned from real repository metadata, not editorial guesswork.
Read full README in the tab above.
Curious whether plugin-ruby is right for you?
Let ChatGPT, Claude, or Perplexity look into it — click below and see what AI actually says about plugin-ruby.