The following lines have an obvious error:
<code>const foo = null
foo = 1
</code>
<code>const foo = null
foo = 1
</code>
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:
<code>"javascript.validate.enable": true
"eslint.enable": true
</code>
<code>"javascript.validate.enable": true
"eslint.enable": true
</code>
"javascript.validate.enable": true
"eslint.enable": true