Say I have this piece of code:
/** @type {string} */
const foo = '123';
const bar = foo.map((c) => c + 1);
Then I'd like ESLint to tell me I've got an error here: map is not a function of a string type
I use WebStorm as my IDE and it recognizes the issue, but I'd like to be able to recognize these issues using my linter from the command line.