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.
Common errors
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.
Warnings
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.
Install
npm install remark-preset-lint-metarhia yarn add remark-preset-lint-metarhia pnpm add remark-preset-lint-metarhia Imports
- remark-preset-lint-metarhia wrong
require('remark-preset-lint-metarhia') - this preset is consumed via configuration, not imported directlycorrectUse in .remarkrc or package.json: "plugins": ["remark-preset-lint-metarhia"]
Quickstart
// .remarkrc
{
"plugins": ["remark-preset-lint-metarhia"]
}
// Then run: npx remark .