Underscore (and jQuery) template inspection warnings

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>
    </script>



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.

Thanks.
0
4 comments
Avatar
Permanently deleted user

Hi Jonathan,

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?

http://youtrack.jetbrains.com/issues/WEB

Thanks,
Kirill

0
Avatar
Permanently deleted user

Thanks Andriy!

0

Thanks, I never found those in my searching.

0

Please sign in to leave a comment.