开发者

How can I change jslint(VS 2010 extension) to ignore files?

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

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 jque开发者_如何转开发ry file. So how can I get it to not check these files?

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?

Thanks


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

How can I change jslint(VS 2010 extension) to ignore files?

From here.

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜