Is JSLint available for offline use?

前端 未结 17 1822
暖寄归人
暖寄归人 2020-12-29 23:36

I\'d like to use JSLint, but I am wary of tools that have access to my unfiltered source code. Is there an offline version or is there another similar tool that does \"

17条回答
  •  长发绾君心
    2020-12-30 00:02

    JSLint can be run offline with either WSH or Rhino:

    http://www.jslint.com/lint.html#try

    Edit: In the two years since this question was asked, JSLint has dropped support for Rhino and WSH. I encourage anyone interested in linting their code to also check out JSHint. It's a fork of JSLint which aims to be more flexible than the original, but also happens to support Node, Rhino, and WSH (in addition to browsers, of course).

提交回复
热议问题