Skip to content

[BUG] [Linter] H026 False positive on data-id #711

@silverwind

Description

@silverwind

System Info

  • OS: macOS 15
  • Python Version: 3.11
  • djLint Version: 1.31.1
  • template language: golang

Issue

H026 is likely only meant to match on id and class atttributes but matches on data-id as well which seems a unintended parser error.

How To Reproduce

<div data-id=""></div>

Contents of .djlintrc/pyproject.toml [tool.djlint]

[tool.djlint]
profile="golang"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions