javascriptreactjsvisual-studiovisual-studio-codeeditor

Red Squiggly Lines in VS Code


My Visual Studio code editor keeps underlining my code incorrectly and I don't know how to stop it.

Here is an example of my JavaScript being squiggled: enter image description here

I have tried installing prettier, eslint but it does nothing to solve this.

How can I stop these squiggly lines from appearing incorrectly? I want them IF they are correct.

If I click on the problems tab, it shows this: enter image description here


Solution

  • Solved! Thanks to zscoop98's answer, I was able to find this page which showed there exists an option standard.enable in settings.json that, after setting that from true to false, it solved the issue and there are no longer these annoying red squiggly lines.