warnings that should be ignored sometiems suppress legitimate warnings
kaizhu256 opened this issue · comments
kai zhu commented
Describe the bug
- A clear and concise description of what the bug is.
jslint directive `... //jslint-ignore-line
-
Jslint edition:
v2022.7.1-beta -
Code snippet (if applicable):
foo(); // bug - legitimate warning "Undeclared 'foo'." is suppressed
function bar() {
let baz = 0;
baz.aa = baz.bb = function () { //jslint-ignore-line
return;
};
}
Expected behavior
in above code-snippet, jslint should warn Undeclared 'foo'.
but the warning was suppressed by directive //jslint-ignore-line