The following lines have an obvious error:
const foo = null
foo = 1
Webstorm highlights the problem that foo is a read-only variable, whereas Visual Studio code does not.
Is there a way to enable this for the code editor? The default settings.json of Visual Studio Code (v1.9.0) already have:
"javascript.validate.enable": true
"eslint.enable": true