✅ The extends: 'recommended'
property in a configuration file enables this rule.
The title
attribute is a useful way to give users extra context for a link. However, this content should be complementary content and should not be exactly the same as or part of the link text.
This rule checks links for the presence of a title
attribute and ensures that it is not the same as or part of the link text.
This rule forbids the following:
This rule allows the following:
- If the
title
attribute value is the same as or part of the link text, it's better to leave it out.