You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pre-commit applies prettier with single quotes (per .pre-commit-config.yaml) but if prettier is applied in VSCode it will invariably apply double quotes (even when changing settings.json). The only way to make VSCode apply single quotes when applying Prettier is to add quote_type = single
Additional details
Host system configuration:
Cookiecutter 2.1.1
Ventura 13.5
Python 3.11.4
Docker version 24.0.2, build cb74dfc
Docker Compose version v2.19.1
The text was updated successfully, but these errors were encountered:
Hi Bruno,
Although it is a “proposed property”, it works ok in VSCode (tried it with 1.81.1). I haven’t tried setting a Prettier config file, but others in online forums have reported that alternative to be ignored when an .editorconfig files exists. If you delete the .editorconfig files, then the VSCode setting is considered though.
Regards,
Alan
On 14 Aug 2023 9:25 -0300, Bruno Alla ***@***.***>, wrote:
Thanks for the report
> The only way to make VSCode apply single quotes when applying Prettier is to add quote_type = single
Where should one set this? In editorconfig? That seems that it's a "proposed property"...
Have you tried to create a Prettier config file?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
What happened?
Pre-commit applies prettier with single quotes (per .pre-commit-config.yaml) but if prettier is applied in VSCode it will invariably apply double quotes (even when changing settings.json). The only way to make VSCode apply single quotes when applying Prettier is to add
quote_type = single
Additional details
The text was updated successfully, but these errors were encountered: