You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hey, I am now working on this issue, so you mentioned <meta> elements should not contain same name or property, do you mean the property attribute or properties in general, my guess here is property attribute here.
Also, I have to edit these files shown in screenshot right
Hi @tausiq2003 Thank you for sharing this while you're working on it.
At first, I came up with a simple rule that reports tags under the <head> element if they have duplicate values in either the name or property attributes.
However, on second thought, there are some tags that shouldn't be duplicated under the <head> element even if they don't use name or property—such as <title>, <base>, or <link rel="stylesheet"> tags with the same href, and so on. Ultimately, it would be nice to handle these cases as well, but it's not necessary to cover everything in the initial implementation.
I think no-duplicate-in-head would be a good name for the rule.
yeonjuan
changed the title
[FEATURE] Add no-duplicate-meta rule
[FEATURE] Add no-duplicate-in-head rule
May 12, 2025
Is your feature request related to a problem? Please describe.
The no-duplicate-meta rule would ensure that
<meta>
elements within the<head>
section do not duplicate the samename
orproperty
Additional context
Add any other context or screenshots about the feature request here.
Incorrect example
correct example
The text was updated successfully, but these errors were encountered: