Automatic documentation generator for ESLint plugins and rules v3.3.2 (stable, monthly releases). Generates README rules/configs tables, rule doc titles, notices, and option lists from rule metadata. Key differentiator: eliminates custom documentation scripts and tests by providing a single CLI tool that enforces consistent documentation conventions across ESLint plugins. Supports configurable output formats, badges, emoji suggestions (including AI-powered), and integration with prettier/markdownlint. Ships TypeScript declarations.
npm install eslint-doc-generatorVerified import paths — ran on the pinned version, not inferred.
Shows programmatic usage via generate() with common options and CLI fallback.
Add explicit badge definitions for each config in your configuration file or use --config-badge flag.
Upgrade to Node.js 20, 22.13.0+, or 24+. Run `nvm install 22` or update your CI Node version.
Run `eslint-doc-generator` to regenerate rule docs. If you prefer the old format, use `--rule-doc-title-format desc-name`.
Ensure rule meta.deprecated follows the new format (object with `message` and `replacedBy`). If using old flat string, update rules.
Use `--config-badge` with explicit badge names, or omit to get no badge. For rule count, use `--config-format name` (no count).
Always run `eslint-doc-generator` without `--check` to regenerate docs, then commit. Use `--check` only in CI to catch staleness.
Run `npm install eslint-doc-generator --save-dev` and ensure dependencies are installed.
Pass a valid directory: `await generate({ cwd: process.cwd() })`.Install prettier: `npm install prettier --save-dev` or set `--no-prettier` if using a different formatter.
Use `import` syntax or switch to dynamic `import('eslint-doc-generator')`. Upgrade Node to >=20.