Freemium
Freemium

Reputation: 460

Disable lint on single line within django template in vs code

Given this html

<div class="img-background" style="background-image: url({% static '/img/information_juniors.jpg' %});">
   <div class="content">
      <h5>Juniors</h5>
      <p>{{ page.juniors }}</p>
   </div>
</div>

Is it possible to disable linting on the single line containing the django tag in VS Code?

It is bringing up these errors

) expected css-rparentexpected
semi-colon expected css-semicolonexpected
at-rule or selector expected css-ruleorselectorexpected
at-rule or selector expected css-ruleorselectorexpected

I have this for my args, but I can't find any info on linting and django templates

"python.linting.pylintArgs": [
  "--load-plugins=pylint_django",
  "--disable=C0111", // missing docstring
]

Upvotes: 0

Views: 1197

Answers (1)

Freemium
Freemium

Reputation: 460

For some reason I thought the pylint_django plugin would affect template linting, I installed django-html and the flagged problems went away

Upvotes: 1

Related Questions