Skip to main content

strict

strict is the future stricter tier for repositories that want more opinionated Docusaurus-site enforcement.

What it configures todayโ€‹

strict includes all of recommended, plus the stricter Docusaurus page-module and site-source CSS rules:

The recommended link-semantics rules also remain enabled here, so strict covers both config/sidebar correctness and component-level routing conventions.

If you only want Docusaurus config/theme/plugin enforcement without the broader page-module and CSS architecture rules, use config instead.

Flat config exampleโ€‹

import docusaurus2 from "eslint-plugin-docusaurus-2";

export default [docusaurus2.configs.strict];

When to use itโ€‹

Use strict if you are intentionally adopting the strongest future tier and are comfortable with that preset becoming more opinionated over time.