Unibeautify / beautifier-prettier

Prettier beautifier for Unibeautify
MIT License
3 stars 4 forks source link

Can we use prettier plugins (such as https://github.com/prettier/plugin-ruby) #141

Open khuongduybui opened 5 years ago

khuongduybui commented 5 years ago

I guess I'm asking for two things here:

  1. Supporting prettier plugins
  2. Supporting Ruby language via prettier plugin for Ruby

I will gladly accept a stop gap provider for Ruby with a different beautifier over no providers at all.' However, I think the ability to use all prettier plugins will come in handy.

stevenzeck commented 5 years ago

Hi @khuongduybui, it doesn't support it yet, but it can be done. It would be similar to what we did with https://github.com/Unibeautify/beautifier-eslint and eslint-plugin-react. I moved it to this repo because that's where the relevant change would be.

khuongduybui commented 5 years ago

Anything I can do to help speed things up?

Glavin001 commented 5 years ago

@khuongduybui Pull Requests welcome!

Similar code from beautifier-eslint:

Plugins will be optional. If they are installed and found then they are used. If the plugin is not available then everything should continue without it, and not support the related languages/options added by the plugin.

Let me know if you have any questions!