no-empty-footer-link-columns
Disallow footer link columns whose items arrays are statically empty.
Targeted pattern scopeโ
This rule targets docusaurus.config.* files and inspects themeConfig.footer.links column objects.
What this rule reportsโ
This rule reports footer columns whose items arrays resolve statically to [].
Why this rule existsโ
Empty footer columns take up space, add visual noise, and often indicate unfinished or copy/pasted configuration.
โ Incorrectโ
export default {
themeConfig: {
footer: {
links: [{ title: "Docs", items: [] }],
},
},
};
โ Correctโ
export default {
themeConfig: {
footer: {
links: [
{
title: "Docs",
items: [{ label: "Overview", to: "/docs" }],
},
],
},
},
};
Behavior and migration notesโ
This rule autofixes by removing empty footer columns from static themeConfig.footer.links arrays.
When not to use itโ
Do not use this rule if your footer intentionally includes placeholder columns for later runtime population.
Rule catalog ID: R067