Skip to content
This repository was archived by the owner on Jul 15, 2023. It is now read-only.
This repository was archived by the owner on Jul 15, 2023. It is now read-only.

react-a11y-anchors should warn when there is no href attribute #434

@astorije

Description

@astorije

At the moment, this plugin warns on <a href="#">Foobar</a> but it doesn't warn on <a>Foobar</a>. Thoughts on making it warn for this case as well?

For comparison, eslint-plugin-jsx-a11y's anchor-is-valid warns on those:

<a />
<a href={undefined} />
<a href={null} />

Metadata

Metadata

Assignees

No one assigned

    Labels

    Difficulty: EasySomeone with little to no experience in TSLint should be able to send a pull request for this issue.Domain: AccessibilityRules around accessibility verification, commonly react-a11y-*.Status: Accepting PRsType: Rule FeatureAdding a feature to an existing rule.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions