JSHint和eclipse插件 [英] JSHint and eclipse plugin
问题描述
所以我刚刚在Eclipse Kepler
中安装了JSHint,我加载了.jshintrc文件。
So I just installed JSHint in Eclipse Kepler I loaded my .jshintrc file .
如何在JavaScript文件上运行jshint?我没有看到菜单项,也没有指定文件名的地方等等。
How do I run jshint on my javascript files? I do not see a menu item nor a place to specify filenames, etc...
有人可以帮忙吗?
推荐答案
在项目的根目录中添加 .jshintrc
文件后,您需要:
After adding a .jshintrc
file to the root of the project you need to:
在项目资源管理器视图中右键单击您的项目->属性-> JSHint->配置->选中启用。
Right-click on your project in the Project Explorer view -> properties -> JSHint -> Configuration -> Check enable.
也选择文件夹包含您的js文件(在路径中使用斜杠)。
我将js文件拆分为两个文件夹,分别为 custom
和 external
,仅检查custom(以及所有子文件夹)自定义)。
Also select the folders containing your js files (use slashes in the path).
I split my js files into two folders custom
and external
and only check on custom (and all subfolders of custom).
这篇关于JSHint和eclipse插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!