I use jshint extension in VSCode. Even for the simplest JS file like this
{
"use strict";
let a = "Hello world!";
console.log(a);
}
I get the warning:
Expected an assignment or function call and instead saw an expression. jshint(W030) [Ln 2, Col 5]
How to suppress this warning?
you can try adding at the end of the line with that problem this comment //jshint ignore:line
For instance: