twbs / grunt-bootlint

A Grunt wrapper for Bootlint, the HTML linter for Bootstrap projects

Home Page:https://www.npmjs.com/package/grunt-bootlint

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ignore templating code

joris974 opened this issue · comments

<div class="row">
  <div class="col-xs-11"></div>
  <% if (condition) { %>
    <div class="col-xs-1"></div>
  <% } %>
</div>

This code raises errors E013 and E014 and I don't want to relax those errors on the entire project.
Is it possible to have bootlint ignore templating code?

Nope. See twbs/bootlint#183
Lint your final rendered HTML instead.