In your vs code go to settings, search for javascript.validation and uncheck the checkbox close and reopen your vs code, if required.