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:
- Bridge only:
remarkOnly - Bridge + config quality:
recommended
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:
- Safe autofixes: accept immediately.
- Configuration cleanups: plan staged rollout.
- 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:
configFilefixquiet
Step 5: Roll out in phasesโ
Recommended rollout model:
- Enable
remarkOnlyorrecommendedin warning mode for a short baseline period. - Resolve baseline Markdown and config issues.
- Switch to error-level enforcement.
- Add stricter config-authoring rules over time.
Common rollout mistakesโ
- Enabling
allimmediately: 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โ
- Architecture and behavior: Remark Bridge
- Team standards and config conventions: Config Authoring
- Preset details: Preset Reference
- Common troubleshooting: FAQ