We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
python --version
djlint --version
There is a false positive for H006: Img tag should have height and width attributes when these are set via a CSS class.
Img tag should have height and width attributes
Style an image's size via a CSS tag:
<!DOCTYPE HTML> <html lang="en"> <head> <style type="text/css"> .logo-img { width: 161px; height: 41px; } </style> </head> <body> <img class="logo-img" src="{{ foo_logo }}"/> </body> </html>
The linter will fail with H006 incorrectly.
[tool.djlint] ignore="T002,T003,H021,H029,H030,H031"
The text was updated successfully, but these errors were encountered:
No branches or pull requests
System Info
MacOS 14.4
python --version
)3.9.17
djlint --version
)1.34.1
jinja
Issue
There is a false positive for H006:
Img tag should have height and width attributes
when these are set via a CSS class.How To Reproduce
Style an image's size via a CSS tag:
The linter will fail with H006 incorrectly.
Contents of .djlintrc/pyproject.toml [tool.djlint]
The text was updated successfully, but these errors were encountered: