在 vs 代码中的 django 模板中的单行上禁用 lint
Disable lint on single line within django template in vs code
鉴于此 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>
是否可以在 VS Code 中禁用包含 django 标记的单行代码检查?
它出现了这些错误
) 预期 css-rparentexpected
预期分号 css-预期分号
预期规则或选择器 css预期规则或选择器
预期规则或选择器 css预期规则或选择器
我有这个作为我的 args,但我找不到任何关于 linting 和 django 模板的信息
"python.linting.pylintArgs": [
"--load-plugins=pylint_django",
"--disable=C0111", // missing docstring
]
出于某种原因,我认为 pylint_django
插件会影响模板 linting,我安装了 django-html
标记的问题消失了
鉴于此 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>
是否可以在 VS Code 中禁用包含 django 标记的单行代码检查?
它出现了这些错误
) 预期 css-rparentexpected
预期分号 css-预期分号
预期规则或选择器 css预期规则或选择器
预期规则或选择器 css预期规则或选择器
我有这个作为我的 args,但我找不到任何关于 linting 和 django 模板的信息
"python.linting.pylintArgs": [
"--load-plugins=pylint_django",
"--disable=C0111", // missing docstring
]
出于某种原因,我认为 pylint_django
插件会影响模板 linting,我安装了 django-html
标记的问题消失了