benjie / prettier-plugin-pg

[WIP] Plugin for prettier to support formatting of PostgreSQL-flavour SQL, including function bodies in SQL, pgSQL, PLV8, plpython, etc.
MIT License
277 stars 5 forks source link

Alternative formatters before this is ready #28

Open karlhorky opened 10 months ago

karlhorky commented 10 months ago

While we're waiting for prettier-plugin-pg to be ready (see https://github.com/benjie/prettier-plugin-pg/issues/10) here are some alternatives that you may have success with already today:

  1. prettier-plugin-embed and prettier-plugin-sql by @JounQin and @Sec-ant - uses sql-formatter by @nene
  2. eslint-plugin-sql and eslint-plugin-unicorn by @gajus, @sindresorhus, @fregante, @mmkal, @fisker and @npdev45, but very opinionated / not so configurable - uses pg-formatter by @gajus
  3. @potygen/prettier-plugin-pgsql by @ivank - uses custom Prettier AST formatter