Skip to main content

Getting Started

This guide gets you from zero to a production-safe Remark-in-ESLint baseline.

Prerequisitesโ€‹

  • ESLint with Flat Config
  • Remark installed in the same project
  • A Remark config file if you want project-specific Remark plugins, for example remark.config.mjs

Step 1: Install dependenciesโ€‹

npm install --save-dev eslint-plugin-remark eslint remark

Install any Remark plugins your config uses as normal project dependencies.

Step 2: Start with one presetโ€‹

Pick one adoption mode:

Example eslint.config.mjs:

import remark from "eslint-plugin-remark";

export default [...remark.configs.recommended];

Step 3: Run lint once and apply fixesโ€‹

npx eslint . --fix

Review the PR diff and categorize findings:

  1. Safe autofixes: accept immediately.
  2. Configuration cleanups: plan staged rollout.
  3. Markdown content findings: fix or suppress with rationale.

Step 4: Configure the bridge rule intentionallyโ€‹

If your project needs a specific Remark config, tune the remark rule.

Common options include:

  • configFile
  • fix
  • quiet

Step 5: Roll out in phasesโ€‹

Recommended rollout model:

  1. Enable remarkOnly or recommended in warning mode for a short baseline period.
  2. Resolve baseline Markdown and config issues.
  3. Switch to error-level enforcement.
  4. Add stricter config-authoring rules over time.

Common rollout mistakesโ€‹

  • Enabling all immediately: higher noise and slower adoption.
  • Running separate Remark and ESLint gates with overlapping output without clear ownership.
  • Skipping the autofix pass before triage.

Where to go nextโ€‹