You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using HTMX or Alpine, sometimes we write a tiny bit of code inside double quotes on HTML tag attributes. These pieces of code might include the = sign which is triggering the H012 rule.
How To Reproduce
Check that these code snippets all fall into the H012 rule but none of them should.
System Info
3.10.4
)1.11.1
)django
Issue
When using HTMX or Alpine, sometimes we write a tiny bit of code inside double quotes on HTML tag attributes. These pieces of code might include the
=
sign which is triggering the H012 rule.How To Reproduce
Check that these code snippets all fall into the H012 rule but none of them should.
<button x-on:click="myVariable = {{ myObj.id }}" class="text-red-600 hover:text-red-800">
<span x-text="showSource == true ? 'Hide source' : 'Show source'"></span>
<button x-on:click="open = !open" class="flex items-center mt-2">
The text was updated successfully, but these errors were encountered: