disallows duplicated classes on same element (no-dup-class)

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:13:
> 1 | <div class="foo bar foo"></div>
    |             ^^^^^^^^^^^


1 error found.

Examples of correct code for this rule:

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