Skip to main content

Overview

eslint-plugin-remark bridges Remark into ESLint and adds static rules for maintainable Remark configuration.

The plugin has two complementary surfaces:

  1. remark runs Remark against Markdown files from ESLint.
  2. Config-authoring rules inspect remark.config.* and .remarkrc.* modules so Remark setup stays deterministic.

Rule catalogโ€‹

RulePurpose
remarkRun Remark from ESLint and forward Remark diagnostics.
prefer-remark-plugins-arrayPrefer explicit array syntax for plugins.
disallow-remark-duplicate-pluginsRemove duplicated string plugin entries.
sort-remark-pluginsKeep statically analyzable plugin lists sorted.
disallow-remark-relative-plugin-pathsAvoid local relative plugin paths in shared configs.
require-remark-plugins-packages-installedEnsure referenced plugin packages are declared in package metadata.
require-remark-config-file-naming-conventionPrefer canonical remark.config.* names for shared config files.

Choosing a presetโ€‹