require-base-url-issue-banner-enabled
Require baseUrlIssueBanner to be explicitly enabled (true) in Docusaurus site config.
Targeted pattern scopeโ
This rule targets docusaurus.config.* files and inspects the top-level baseUrlIssueBanner field.
What this rule reportsโ
This rule reports when baseUrlIssueBanner is:
- missing,
- explicitly
false, or - a static non-boolean value.
Why this rule existsโ
baseUrlIssueBanner surfaces base URL mismatch warnings in non-production environments. Keeping it explicitly enabled makes deployment/path mismatches easier to catch before release.
โ Incorrectโ
export default {
baseUrl: "/docs/",
};
export default {
baseUrlIssueBanner: false,
};
โ Correctโ
export default {
baseUrlIssueBanner: true,
};
Behavior and migration notesโ
This rule autofixes direct false boolean literals to true.
For missing properties or non-literal/dynamic expressions, it reports without autofixing.
When not to use itโ
Do not use this rule if your project intentionally disables the local base URL mismatch banner.
Rule catalog ID: R048