在 Eclipse 中使用 JSHint 检查 JavaScript 代码

JSHint Home: http://www.jshint.com/

JSHint Options: http://www.jshint.com/options/

JSHint For Eclipse: http://github.eclipsesource.com/jshint-eclipse/

安装方法

最新稳定版本更新网址:

http://github.eclipsesource.com/jshint-eclipse/updates/

在Eclipse主菜单,点击: Help > Install New Software…

输入上面的URL,然后选择 JSHint Eclipse Integration

后面的安装过程很简单,往下按确定就可以了

更新方法

如果已经安装了,则可以更新:

在Eclipse主菜单,点击: Help > Check for Updates

卸载方法

按如下方式即可卸载:

在Eclipse主菜单,点击: Help > About Eclipse > Installation Details

选择 JSHint Eclipse Integration,点击 Uninstall

使用方法

选择要启用校验的项目,右键->属性,选择JSHint 项,配置启用校验的文件和文件夹,配置文件的示例如下:

原文  http://www.html5cn.org/portal.php?mod=view&aid=5523

原文地址:https://www.cnblogs.com/tancp/p/4650465.html