diff --git a/README.md b/README.md index df80e45..a83b2f7 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,8 @@ linters: enabled: true GitHub::Accessibility::ImageHasAlt: enabled: true + GitHub::Accessibility::LinkHasHrefCounter: + enabled: true GitHub::Accessibility::NoAriaLabelMisuseCounter: enabled: true GitHub::Accessibility::NoPositiveTabIndex: @@ -47,6 +49,7 @@ linters: - [GitHub::Accessibility::AvoidGenericLinkTextCounter](./docs/rules/accessibility/avoid-generic-link-text-counter.md) - [GitHub::Accessibility::IframeHasTitle](./docs/rules/accessibility/iframe-has-title.md) - [GitHub::Accessibility::ImageHasAlt](./docs/rules/accessibility/image-has-alt.md) +- [GitHub::Accessibility::LinkHasHrefCounter](./docs/rules/accessibility/link_has_href-counter.md) - [GitHub::Accessibility::NoAriaLabelMisuseCounter](./docs/rules/accessibility/no-aria-label-misuse-counter.md) - [GitHub::Accessibility::NoPositiveTabIndex](./docs/rules/accessibility/no-positive-tab-index.md) - [GitHub::Accessibility::NoRedundantImageAlt](./docs/rules/accessibility/no-redundant-image-alt.md) diff --git a/docs/rules/accessibility/link-has-href-counter.md b/docs/rules/accessibility/link-has-href-counter.md new file mode 100644 index 0000000..e902dd9 --- /dev/null +++ b/docs/rules/accessibility/link-has-href-counter.md @@ -0,0 +1,27 @@ +# Link Has Href counter + +## Rule Details + +An `` element that has an href attribute represents a hyperlink (a hypertext anchor) labeled by its contents. Links, `` elements, should go somewhere, you probably want to use a `