-
-
Notifications
You must be signed in to change notification settings - Fork 450
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
Support prettier option pluginSearchDirs
#2881
Comments
FYI: Prettier is removing this option. |
@fisker any other ideas on how to solve those issues mentioned above (plugin(s) not detectable by vscode)? |
Put |
Yeah, tried that :/ but not working when installing with pnpm :/ |
If it doesn't work, it's bug in prettier, you can open an issue on prettier repo. You can also try // prettier.config.cjs
module.exports = {
plugins: [require("your-plugin")]
}; OR // prettier.config.cjs
module.exports = {
plugins: [require.resolve("your-plugin")]
}; |
@fisker thanks for the suggestions, I will try those as well :) |
The option
pluginSearchDirs
is supported by prettier's configuration file: https://prettier.io/docs/en/plugins.html#using-plugins.Setting this option directly in the vscode extension will allow to manage the prettier's plugin discovery, definitely useful to workaround these issues:
prettier/prettier#8056
withastro/prettier-plugin-astro#97
Think about this. Thank you. 😉
The text was updated successfully, but these errors were encountered: