feedback icon indicating copy to clipboard operation
feedback copied to clipboard

Enable Prettier on SQL Cell

Open dvdsgl opened this issue 3 years ago • 1 comments

Is your feature request related to a problem? Please describe.

Prettier is already used to wonderful effect on JavaScript cells. Prettier supports SQL, so it would also be nice to enable Prettier on SQL Cells to keep our queries pretty.

Describe the solution you'd like

Enable Prettier on SQL Cells.

Describe alternatives you've considered

Currently, I copy-paste my SQL Cell content into VS Code and use a formatter there, before copying back into Observable.

Additional context

  • https://www.npmjs.com/package/prettier-plugin-sql

dvdsgl avatar Jul 20 '22 14:07 dvdsgl

Thanks for logging it here!

CobusT avatar Jul 20 '22 14:07 CobusT