remark-preset-lint-metarhia

raw JSON →
2.0.1 verified Fri May 01 auth: no javascript

Opinionated remark-lint preset for Markdown linting, originally extracted from metarhia-jstp. Version 2.0.1 is stable with a low release cadence. Provides a shared, opinionated configuration for remark-lint, enforcing consistent Markdown style. Differentiates from other presets (e.g., remark-preset-lint-consistent) by reflecting Metarhia's coding conventions and being minimal, relying on remark-cli for execution.

error Cannot find module 'remark-preset-lint-metarhia'
cause Missing local installation or running without installing the preset.
fix
Run: npm install -D remark-cli remark-preset-lint-metarhia
error MissingPreset: preset remark-preset-lint-metarhia not found
cause Preset not installed or misconfigured in .remarkrc.
fix
Ensure the preset is installed and listed under 'plugins' array in .remarkrc.
gotcha This preset does not include all remark-lint rules; only opinionated subset. Do not assume it covers all linting needs.
fix Consider combining with other presets or adding custom rules if needed.
npm install remark-preset-lint-metarhia
yarn add remark-preset-lint-metarhia
pnpm add remark-preset-lint-metarhia

Shows how to configure remark-lint with this preset using .remarkrc file and run it via CLI.

// .remarkrc
{
  "plugins": ["remark-preset-lint-metarhia"]
}

// Then run: npx remark .