no-conflicting-footer-html-item-props
Disallow footer HTML pass-through items from mixing html with label, to, or href.
Targeted pattern scopeโ
This rule focuses on docusaurus.config.* files and specifically on footer link items authored under themeConfig.footer.links.
It targets footer items that declare:
html
and also declare any of:
labeltohref
What this rule reportsโ
This rule reports footer HTML pass-through items that also try to behave like normal footer links.
Why this rule existsโ
Docusaurus footer HTML items are an escape hatch for raw custom markup.
When a footer item mixes html with normal link fields, the object becomes ambiguous and no longer matches the documented footer-item shape.
This rule keeps footer HTML pass-through items separate from standard footer links.
โ Incorrectโ
export default {
themeConfig: {
footer: {
links: [
{
html: "<strong>Docs</strong>",
href: "https://example.com",
},
],
},
},
};
โ Correctโ
export default {
themeConfig: {
footer: {
links: [
{
html: "<strong>Docs</strong>",
},
{
label: "Docs",
href: "https://example.com",
},
],
},
},
};
Behavior and migration notesโ
This rule reports only. It does not autofix.
Maintainers still have to decide whether the item should be a normal footer link or a raw HTML fragment.
When not to use itโ
Do not use this rule if your project intentionally permits mixed footer HTML/link objects and you do not want linting to enforce the documented Docusaurus footer-item shape.
Rule catalog ID: R033