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

▼魔方 西西 提交于 2019-11-27 23:19:24

问题


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 jquery 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


回答1:


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

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.



来源:https://stackoverflow.com/questions/5069136/how-can-i-change-jslintvs-2010-extension-to-ignore-files

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!