Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

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

like image 563
chobo2 Avatar asked Feb 21 '11 17:02

chobo2


1 Answers

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

enter image description here

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.

like image 107
Forgotten Semicolon Avatar answered Nov 02 '22 22:11

Forgotten Semicolon