Disallows duplicated classes on same element

Rule ID:
no-dup-class
Category:
HTML Syntax and concepts
Standards:
-

Prevents unnecessary duplication of class names.

Rule details

Examples of incorrect code for this rule:

<div class="foo bar foo"></div>
error: Class "foo" duplicated (no-dup-class) at inline:1:21:
> 1 | <div class="foo bar foo"></div>
    |                     ^^^


1 error found.

Examples of correct code for this rule:

<div class="foo bar"></div>