remark-lint is a modular linting system for Markdown files, built on the unified ecosystem. It provides a plugin for remark that enables configuration comments to selectively enable/disable rules inline. This package is part of the remark-lint monorepo (v10.0.1) which includes 60+ individual lint rules and presets like `remark-preset-lint-recommended`. It requires Node.js 16+ and is ESM-only. Released under MIT license by Titus Wormer. Unlike other Markdown linters (e.g., markdownlint), it integrates directly with the unified processor pipeline, making it extensible and composable.
npm install remark-lintNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates setting up a full unified pipeline to lint a Markdown file using remark-lint, including reading, parsing, linting, stringifying, and reporting warnings.
Use import syntax (ESM) and ensure project is configured for ESM (e.g., type: module in package.json).
Install a preset like remark-preset-lint-recommended or individual rules such as remark-lint-heading-increment.
Update to latest version; use import remarkLint from 'remark-lint'.
Convert to import statement or use dynamic import() inside CJS.
Use .use(remarkLint) in a unified processor, e.g., unified().use(remarkLint).
Run 'npm install remark-lint' and ensure node_modules exists. It has built-in types.