javascript - JSLint on Visual Studio/ASP.NET MVC Projects -


i'm using visual studio 2012 , jslint plugin.

is there better way use jslint inline javascript in cshtml files?

  • if try select javascript text , run tools on selection bunch of errors related spacing (e.g. "var should on column 13, not 9"). happens because ide indents javascript code inside <script>tags.
  • i errors on variables rendered razor code this: result = @html.raw(jsonconvert.serializeobject(model));

i copy code onto empty .js file , run tool there, it's kinda of nuisance switching.

what best configuration (or alternate plugin) work easier jslint validation on scenario?

resharper best tool i've used javascript coding. works , highlights majority of issues you'd looking jslint, though it's not comprehensive of course.

on other hand, i'd concerned amount of javascript you're writing in view. if have much, perhaps should consider moving out of views standalone files.


Comments

Popular posts from this blog

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -