All Projects → iamsolankiamit → Prettier Ruby

iamsolankiamit / Prettier Ruby

Prettier for ruby

Programming Languages

javascript
184084 projects - #8 most used programming language
ruby
36898 projects - #4 most used programming language

Labels

Projects that are alternatives of or similar to Prettier Ruby

Expo Disneyplus
Disney+ UI Clone with React Native & Expo
Stars: ✭ 130 (-33.67%)
Mutual labels:  prettier
Eslint Plugin Prettier
ESLint plugin for Prettier formatting
Stars: ✭ 2,228 (+1036.73%)
Mutual labels:  prettier
Doctorpretty
Wadler's "A prettier printer" embedded pretty-printer DSL for Swift
Stars: ✭ 186 (-5.1%)
Mutual labels:  prettier
React Native Boilerplate
A React Native boilerplate with Expo, Redux, React Navigation, Styled Components and some 💕 included.
Stars: ✭ 135 (-31.12%)
Mutual labels:  prettier
Spotless
Keep your code spotless
Stars: ✭ 2,285 (+1065.82%)
Mutual labels:  prettier
Poetic
Automatically install and maintain ESLint, Prettier, EditorConfig and Airbnb rules for JavaScript, TypeScript and React.
Stars: ✭ 165 (-15.82%)
Mutual labels:  prettier
Pretty Quick
⚡ Get Pretty Quick
Stars: ✭ 1,766 (+801.02%)
Mutual labels:  prettier
Mullet
Mullet Stack: Facebook in the front. Walmart in the back. (React, Hapijs, Node)
Stars: ✭ 194 (-1.02%)
Mutual labels:  prettier
Prettier Plugin Solidity
Prettier plugin for Solidity
Stars: ✭ 156 (-20.41%)
Mutual labels:  prettier
React Conf 17 Videos
Find that one presentation you missed!
Stars: ✭ 182 (-7.14%)
Mutual labels:  prettier
Prettier Plugin Apex
Code formatter for the Apex Programming Language
Stars: ✭ 138 (-29.59%)
Mutual labels:  prettier
Pettier
Prettier config that randomizes options and arbitrarily switches between spaces and tabs 🙄
Stars: ✭ 149 (-23.98%)
Mutual labels:  prettier
Lad
👦 Lad is the best Node.js framework. Made by a former Express TC and Koa team member.
Stars: ✭ 2,112 (+977.55%)
Mutual labels:  prettier
Nextjs Ts
Opinionated Next JS project boilerplate with TypeScript and Redux
Stars: ✭ 134 (-31.63%)
Mutual labels:  prettier
Stylelint Prettier
Stylelint plugin for Prettier formatting
Stars: ✭ 188 (-4.08%)
Mutual labels:  prettier
Prettier Schematic
Add Prettier to an Angular project
Stars: ✭ 129 (-34.18%)
Mutual labels:  prettier
Prettier Stylelint
code > prettier > stylelint > formatted code
Stars: ✭ 162 (-17.35%)
Mutual labels:  prettier
Prettier Plugin Tailwind
Sort tailwind classes in HTML with Prettier.
Stars: ✭ 192 (-2.04%)
Mutual labels:  prettier
Init.nvim
An Opinionated Neovim Config for the Minimalists
Stars: ✭ 194 (-1.02%)
Mutual labels:  prettier
Eslint Config Wesbos
No-Sweat™ Eslint and Prettier Setup - with or without VS Code
Stars: ✭ 2,293 (+1069.9%)
Mutual labels:  prettier

Please Check the official repo here prettier-plugin-ruby

This repo is deprecated


Prettier Ruby Plugin

All Contributors

🚧 Work in Progress! 🚧

WORK IN PROGRESS

Please note that this plugin is under active development, and might not be ready to run on production code yet.

How it works

Prettier-Ruby relies on Ripper, the official parser of Ruby to understand your code. Once your code has been read and parsed, it is then reformatted using the formatting commands provided by Prettier.

Contributing

If you're interested in contributing to the development of Prettier for Ruby:

  • Clone this repository
  • Run yarn to install dependencies
  • Ensure all tests run with yarn run test

You will find it useful to read the CONTRIBUTING guide from Prettier, as it all applies to this repository too.

Development

Prettier-Ruby makes use of Ruby's official lexer and parser, Ripper. You can see the output of Ripper's tokens, sexpressions, the intermediate representation that prettier-ruby uses, as well as the final prettier-ruby result by appending DEBUG=true when running tests:

DEBUG=true yarn run test --watch

You should now see some useful debug output in your console:

Debug mode enabled, showing the parsed Ruby tokens and more

You can run the Ruby AST Exporter directly with a given string too:

$ ruby vendor/ruby/astexport.rb "puts 'hello world'"

To run an individual test folder:

DEBUG=true yarn run test tests/defs --watch

Usage

Until this package is officially released to npm you must clone it yourself, and run it directly:

  • Clone this repository
  • Run yarn to install dependencies
  • Run yarn prettier test.rb to check the output of a single file
  • Run on multiple files with yarn prettier your_folder/**/*.rb
  • Save the result with yarn prettier your_folder/**/*.rb --write

Contributors

Thanks goes to these wonderful people (emoji key):

🤔 🤔 💡 👀 ⚠️

This project follows the all-contributors specification. Contributions of any kind welcome!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].