JSLint: control comments (selective ignore)

后端 未结 9 1833
一生所求
一生所求 2020-12-01 06:16

Does JSLint have anything like JavaScript Lint\'s control comments (e.g. /*jsl:fallthru*/) to make it ignore certain passages?

9条回答
  •  悲哀的现实
    2020-12-01 06:55

    You can also: ......

    ignoreThis(); // jslint ignore:line

    Is there a way to suppress JSHint warning for one given line?

提交回复
热议问题