Skip to content

Rule proposal: Require alt attribute for image tag #466

@TheAlexLichter

Description

@TheAlexLichter

Please describe what the rule should do:

Ensure there is a non-empty alt attribute when using the <img> tag.

What category of rule is this? (place an "X" next to just one item)

[X] Enforces code style
[ ] Warns about a potential error
[ ] Suggests an alternate way of doing something
[ ] Other (please specify:)

Provide 2-3 code examples that this rule will warn about:

<img src="path/to/my/src" alt="">

<img src="path/to/my/src">

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions