Skip to main content

attr-no-duplication

The same attribute can't be specified twice.

Level: error

Config value

  1. true: enable rule
  2. false: disable rule

The following pattern are not considered violations:

<img src="a.png" />

The following pattern is considered violation:

<img src="a.png" src="b.png" />