Prettier-vscode: How to config prettier to using global node module

Created on 24 Aug 2017  路  9Comments  路  Source: prettier/prettier-vscode

I need to use the same version with my team (0.1.0) but can't find any place to configure it. Beside of that, is it possible to downgrade to version 0.1.0?

locked

All 9 comments

Install that version as a Dev dependency and we will use that package instead.

Which 0.1.0?
Prettier has no 0.1.0 version 0.0.10 -> 0.11.0
and our 0.1.0 doesn't load local prettier. It's packed with [email protected] :scream:

@CiGit seem that I confuse between prettier and prettier-vscode version, I get it from here https://marketplace.visualstudio.com/items/esbenp.prettier-vscode/changelog.
Anyway, I have installed prettier-vscode extension and it using prettier somewhere else, not in my global node_module (module install with -g option) and I want to config that.

We don't load your global modules. To use a specific version @RobinMalfait 's answer is how to do it

Install that version as a Dev dependency and we will use that package instead.

If you have a prettier installed yourself locally we will use that one. If you don't have anything installed, we use the prettier that's bundled with this prettier-vscode extension.

We don't use the global one.

I was not sure, edited my comment ^^

I got the idea, thank you guys

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings