Update README.md#182
Conversation
|
Does the string approach work in both versions? If so let's just document that one 👍 |
|
Both options definitely work in both versions of Prettier (I tested this myself before release and again just now): https://github.com/prettier/prettier/blob/79d8a3983842d1d8a077f177ed8b983c1c596088/src/main/plugins/load-plugin.js#L28-L34 The |
I'm using Nuxt, where using 'require' gives me a Prettier config error. Could be my setup thou but after trying to debug, changing it to a string import is the only thing that solved it. |
|
@lirobinxc what kind of setup are you using with Nuxt and Prettier? (Do you have a repro? I'd love to take a look). I just did a barebones install with a prettier config file and it works. But in this case Nuxt wouldn't really be involved anywhere. They just happen to be installed in the same project. |
|
I got an error from the prettier vscode plugin when using the require version, but everything worked when I ran it using |
|
Going to document just the string approach for now and wait for someone to find a situation where that breaks 🙃 Thanks! |
* Update README.md * Update README.md --------- Co-authored-by: Adam Wathan <[email protected]>
Using Prettier v3.x, this doesn't work.
This does work:
See docs: https://prettier.io/docs/en/plugins.html