nene / prettier-plugin-sql-cst

Prettier SQL plugin that uses sql-parser-cst
https://nene.github.io/prettier-sql-playground/
GNU General Public License v3.0
123 stars 7 forks source link

Move prettier to peerDependencies? #21

Closed mmkal closed 7 months ago

mmkal commented 7 months ago

Hi there! I've only tried out the demo so far, but it looks great. I am looking for a formatter along these lines to use outside of a prettier context. So I'd love to know if a prettier-independent version is something you'd consider. But short of that, moving prettier to peerDependencies might help make it possible to use outside of prettier (maybe? I haven't tried).

What do you think?

nene commented 7 months ago

That's not possible. This plugin relies completely on Prettier library. It builds up a Doc object using Prettier API and then passes that to Prettier, which implements the core of the formatting algorithm.

mmkal commented 7 months ago

Got it, thanks.