Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to make resolveConfig synchronous? #20

Open
adil62 opened this issue Feb 12, 2024 · 0 comments
Open

How to make resolveConfig synchronous? #20

adil62 opened this issue Feb 12, 2024 · 0 comments

Comments

@adil62
Copy link

adil62 commented Feb 12, 2024

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant