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

[FR] prettier.pluginsPath #3488

Closed
wenfangdu opened this issue Aug 1, 2024 · 2 comments
Closed

[FR] prettier.pluginsPath #3488

wenfangdu opened this issue Aug 1, 2024 · 2 comments

Comments

@wenfangdu
Copy link

Currently, prettier-vscode reads plugins from the project root node_modules folder, which might not be the actual plugins location.

["ERROR" - 1:52:33 PM] Error handling text editor change
["ERROR" - 1:52:33 PM] Error resolve node module 'prettier-plugin-lint-md'
Error: Error resolve node module 'prettier-plugin-lint-md'

Similar to prettier.prettierPath, prettier.pluginsPath is needed to rectify this issue.

@ntotten
Copy link
Member

ntotten commented Aug 14, 2024

Happy to take a PR

@wenfangdu
Copy link
Author

wenfangdu commented Sep 5, 2024

After looking at the source code, I found a workaround:

.prettierrc

{
  "plugins": ["./tests/node_modules/prettier-plugin-lint-md/dist/prettier-plugin-lint-md.js"]
}

P.S. using pnpm.

@ntotten ntotten closed this as completed Sep 5, 2024
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

2 participants