I am facing an issue with Visual Studio Code not following my eslint rules for my typescript project, particularly with quoting. More information about the configurations of my project can be found here: Typescript: Why doesn't Visual Studio Code report the same errors that the command line tsc does?
The problem lies in how Visual Studio Code handles certain strings. For example, when I have a string like "<<link \" \">>'
, it changes it to '<<link " ">>'
. Similarly, a string like 'a\'s'
is formatted as "a's"
Despite its intentions to assist, this behavior leads to eslint flagging errors due to mismatched quote rules as soon as the document is formatted.
While investigating, I noticed that Visual Studio Code may be conflicting with eslint in certain settings:
https://i.sstatic.net/STO9r.png
Based on the described issue, it is evident that Visual Studio Code is not adhering to the specified settings. How can I make Visual Studio Code respect my eslint quote rules? I have tried restarting the TS Server and the editor but to no avail.