prettier / prettier-synchronized

Synchronous version of Prettier
MIT License
24 stars 7 forks source link

How to make resolveConfig synchronous? #20

Open adil62 opened 7 months ago

adil62 commented 7 months ago

We have a custom ESLINT rule and it gets the prettier config using the below code (prettier 2.0.8).

      const printWidth =
        resolveConfig.sync(context.getFilename(), {
          useCache: true,
          editorconfig: true,
        })?.printWidth || 80;

I need to upgrade prettier to version 3.2.5, since resolveConfig.sync is removed in the latest version of Prettier how do I get the config using prettier-synchronized?

Also what is prettierEntry ?