Skip to content

require-accessible-name ​

Require accessible name on interactive elements.

Severity ​

error

❌ Incorrect ​

html
<img src="a.png">

✅ Correct ​

html
<img src="a.png" alt="photo">

Reference ​

Configuration ​

json
{
  "rules": {
    "require-accessible-name": "error"
  }
}

Released under the MIT License.