我怎样才能改变的JSLint(VS 2010扩展)忽略文件? [英] How can I change jslint(VS 2010 extension) to ignore files?

查看:156
本文介绍了我怎样才能改变的JSLint(VS 2010扩展)忽略文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装在VS 2010中通过扩展管理器扩展的js皮棉。

I have js lint installed in Vs 2010 as a extension through the extension manager.

它发现很多错误,但他们都是来自外部插件或从jQuery库。我不会去和在外部插​​件或jQuery的文件修复的东西。那么,如何才能得到它不检查这些文件?

It finds lots of errors but they are all from external plugins or from the jquery library. I am not going to go and fix stuff in an external plugin or jquery file. So how can I get it to not check these files?

我也想知道怎样才能得到它忽略检查HREF链接。我使用asp.net mvc的,所以我的链接是这样的

I am also wondering how can I get it to ignore checking href links. I am using asp.net mvc so my links are like this

<a href="/account/reg">reg </a>

所以,因为它是路径控制器的操作方法不是一个文件无法找到这条路。那么,如何才能得到它不看这些?

So it can't find this path as it is the path to the controller action method not a file. So how can I get it to not look at these?

感谢

推荐答案

您可以排除从JSLint的验证过程的文件(外部插件,jQuery的,等等)。

You can exclude files (external plugins, jquery, etc.) from the JSLint validation process.

对于href问题,如果你没有任何JS在你的意见,你可以使用上述方法以及排除这些。

For the href issue, if you don't have any JS in your views, you could exclude those as well using the method above.

这篇关于我怎样才能改变的JSLint(VS 2010扩展)忽略文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆