un-ts / prettier

:package: Opinionated but Incredible Prettier plugins.
https://prettier.vercel.app
MIT License
261 stars 23 forks source link

prettier-sql: How to configure it? #309

Closed jehon closed 7 months ago

jehon commented 7 months ago

Reading through the website, I don´t understand how to configure the prettier through the prettierrc file.

Any place where I could find the information?

Thanks a lot

jehon commented 7 months ago

Sorry, I found out...

Using the readme for the keys: https://www.npmjs.com/package/prettier-plugin-sql

Storing configuration in .prettierrc.json:

{
  "plugins": [
    "prettier-plugin-sql"
  ],
{
  "overrides": [
    {
      "files": "*.sql",
      "options": {
        "keywordCase": "upper"
      }
    }
  ]
}