Closed LouisCuvelier closed 4 years ago
@LouisCuvelier the prettier-twig-craft-cms
package that @twbartel was experimenting with is not one you'd want to use. I haven't tried installing prettier-plugin-twig-melody
globally, but using this package locally to the project should work.
Oh ... shame on me. Sorry for the waste of time ... Moreover, after a rebooting, everything is working fine now 😄
Thanks @chasegiunta for taking care!
Hi,
I tried to use this plugin with Prettier installed globally. The folder is
~/.config/yarn/global/
and my .prettierrc.js is in it. Here's the config :I did the command
prettier --write "**/*.twig"
and it returnedCould not load plugin path ~/.config/yarn/global/node_modules/prettier-twig-craft-cms
I also tried to specify in the config the plugin path, but it changes nothing.
Any clue ?