Skip to main content

minimal

minimal is the smallest preset exposed by eslint-plugin-docusaurus-2.

What it configures todayโ€‹

  • TypeScript file globs
  • @typescript-eslint/parser
  • ecmaVersion: "latest"
  • sourceType: "module"
  • plugin registration under "docusaurus-2"
  • no bundled rules by design

minimal intentionally stays empty even though the plugin ships stable rules in the broader presets. That lets repositories adopt the package, parser setup, and public preset contract before enabling any bundled Docusaurus rules.

Flat config exampleโ€‹

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

export default [docusaurus2.configs.minimal];

When to use itโ€‹

Use minimal when you want to adopt the package early, keep future churn low, and opt into stricter Docusaurus-specific rules later in a controlled rollout.