Underscore (and jQuery) template inspection warnings Follow
I am running across a lot of inspection warnings because I'm using Underscore templates in my project. For example:
<script type="text/template" id="row-template">
<a href="#items/<%=id%>"><%=transactionDate %></a>
<br><p>Make: <%=itemMake %> Model: <%=itemModel %></p>
<p ><%=itemDesc %></p>
Every HTML attribute gets an inspection warning (and worse yet, a commit warning) because it is inside a script tag. Is there a way to ignore just these, or set up a custom inspection so I don't have to see these?
I saw this bug report but it doesn't seem to be resolved anywhere.
The same seems to happen with jQuery template blocks (text/x-jquery-tmpl), so it's not just an Underscore thing.
Please sign in to leave a comment.
Unfortunately not at the moment. :( IDE does not understand "text/template" fragments properly. Can you please submit a bug and we'll fix it in WebStorm 6 release?
Thanks, I never found those in my searching.