Skip to content

no-duplicate-dt

Detect duplicate dt names in dl.

Severity

error

❌ Incorrect

html
<dl>
  <dt>Name</dt><dd>A</dd>
  <dt>Name</dt><dd>B</dd>
</dl>

✅ Correct

html
<dl>
  <dt>Name</dt><dd>A</dd>
  <dt>Other</dt><dd>B</dd>
</dl>

Reference

Configuration

json
{
  "rules": {
    "no-duplicate-dt": "error"
  }
}

Released under the MIT License.