Skip to content Skip to sidebar Skip to footer

Disable VS Code Javascript Check

I am passing a twig object to javascript via script tags in a .html.twig file, and VS Code complains that 'Property assignment expected. js [17, 38]'. Is it possible to turn this o

Solution 1:

There is another setting in VS Code for Javascript inside script tags:

in settings.json, set

"html.validate.scripts": false

Solution 2:


Post a Comment for "Disable VS Code Javascript Check"