If you're waiting for a more open-minded code formatter to come around, here's a workaround (let me know if one already exists).
First, locate and open the following file:
(where %USERPROFILE%
typically represents C:\Users\YourUsernameHere\
)
Next, search for
case "AssignmentExpression":
(there are several instances) until you find
this section of code. Change the displayed
return true
to
return false
. I located this on line
41587
, but remember that it may shift in future Prettier versions, so rely on Ctrl + F to navigate.
After saving the file, restart VSCode and witness the magic.
I noticed that meddling with the internal workings of VSCode on macOS might trigger some undesired responses. Look for a settings icon in any error messages, choose to ignore the error, then restart VSCode for normal functionality.