Ignore not ignoring line(s) with server side code

Aug 30, 2011 at 8:29 PM
Edited Jan 23, 2012 at 2:01 AM

When using server side code in JS, the JSLint plugin is not honoring the Ignore attributes, i.e.,

records = <%= JsonRecords %>; //ignore jslint
or
/*ignore jslint start*/
records = <%= JsonRecords %>;
/*ignore jslint end*/

or

/*ignore jslint start*/
records = <%= JsonRecords %>; //ignore jslint
/*ignore jslint end*/


JSLint expresses a warning of "Expected expression" regardless of any type of ignore attributes I add. Any suggestions for getting around this scenario?

EDIT: Updated the /*ignore jslint start*/ to /*ignore jslint end*/ as noted by intrepidis. Was a typo when originally posted.

Jan 22, 2012 at 8:00 PM

You have put /*ignore jslint start*/ where /*ignore jslint end*/ should be. However that will not fix it, because I'm having the same problem. JSLint for VS2010 does not seem to honour the ignore directives. Can anyone help?

Jan 23, 2012 at 2:01 AM
Edited Jan 23, 2012 at 2:01 AM

Good catch intrepdis. I've updated the original question as noted. Was a typo when originally posted. Hopefully this will be fixed soon.