remark preset that configures remark-lint rules to enforce consistency in Markdown style, such as blockquote indentation, emphasis marker, heading style, list marker style, and table cell padding. Current stable version is 6.0.1. Part of the remark-lint monorepo, released on npm with ESM-only support since v4. Key differentiator: it provides a zero-config preset for consistent Markdown formatting, complementing other presets like remark-preset-lint-recommended and remark-preset-lint-markdown-style-guide. Actively maintained by the unified collective.
npm install remark-preset-lint-consistentNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Process a Markdown file with the preset to check for consistency issues and report them.
Switch to ESM imports and ensure Node.js version >=16.
To enforce a specific style, use individual remark-lint rules with explicit options instead of the preset.
Always pin exact versions of remark-lint packages to avoid unexpected warnings.
Ensure remark-lint is in your dependencies: npm install remark-lint
Use the preset as a unified plugin: .use(remarkPresetLintConsistent) without additional configuration.
Convert your project to ESM (add 'type': 'module' to package.json) or use dynamic import: const m = await import('remark-preset-lint-consistent');Use default import: import remarkPresetLintConsistent from 'remark-preset-lint-consistent'; then .use(remarkPresetLintConsistent)
Run: npm install remark-lint