I have format on save
enabled, and it works fine in .js files but when I try to save code in my .jsx files everything gets messed up. How can I configure my prettier to avoid this problem without disabling format on save
?
If you are using VS Code, try adding this to your settings.json file:
{
"editor.formatOnSave": false,
"[javascriptreact]": {
"editor.formatOnSave": true
}
}
for anyone who encounter this, you probably have some other VS Code plugin installed, such as Beautify
which is recommended by vscode. Uninstall it and prettier should works now.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With