jslint-org / jslint

JSLint, The JavaScript Code Quality and Coverage Tool

Home Page:https://www.jslint.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

warnings that should be ignored sometiems suppress legitimate warnings

kaizhu256 opened this issue · comments

Describe the bug

  1. A clear and concise description of what the bug is.

jslint directive `... //jslint-ignore-line

  1. Jslint edition:
    v2022.7.1-beta

  2. 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