When setting up prettier with vscode and pnpm, you need to make sure vscode uses local prettier instead of prettier from vscode extension.
You can do so by providing the prettier path in prettier.prettierPath settings which is usually ./node_modules/prettier.
But with pnpm the binary isn't located in node_modules by default. But you can set public-hoist-pattern[]=prettier in .npmrc and reinstall, so that pnpm installs prettier in node_modules.
