un-ts / prettier

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

[warn] embeddedSqlIdentifiers is deprecated. #348

Closed MrSwitch closed 9 months ago

MrSwitch commented 9 months ago

Getting the following

[warn] embeddedSqlIdentifiers is deprecated.

Is there another setting which should be used which isn't mentioned in the documentation?

Here's the .prettierrc.js file

const config = require('@5app/prettier-config');
config.plugins ??= [];
module.exports = {
    ...config,
    embeddedSqlIdentifiers: ['SQL'],
    plugins: [
        ...config.plugins,
        'prettier-plugin-embed',
        'prettier-plugin-sql'
    ],
}

Running Prettier@3.2.4

JounQin commented 9 months ago

I believe you mean

https://github.com/Sec-ant/prettier-plugin-embed?tab=readme-ov-file#embeddedsqlidentifiers

And PR welcome to update related document.

https://github.com/un-ts/prettier/tree/master/packages/sql#sql-in-js-with-prettier-plugin-embed