Overview
eslint-plugin-remark bridges Remark into ESLint and adds static rules for maintainable Remark configuration.
The plugin has two complementary surfaces:
remarkruns Remark against Markdown files from ESLint.- Config-authoring rules inspect
remark.config.*and.remarkrc.*modules so Remark setup stays deterministic.
Rule catalogโ
| Rule | Purpose |
|---|---|
remark | Run Remark from ESLint and forward Remark diagnostics. |
prefer-remark-plugins-array | Prefer explicit array syntax for plugins. |
disallow-remark-duplicate-plugins | Remove duplicated string plugin entries. |
sort-remark-plugins | Keep statically analyzable plugin lists sorted. |
disallow-remark-relative-plugin-paths | Avoid local relative plugin paths in shared configs. |
require-remark-plugins-packages-installed | Ensure referenced plugin packages are declared in package metadata. |
require-remark-config-file-naming-convention | Prefer canonical remark.config.* names for shared config files. |
Choosing a presetโ
- Start with
remark.configs.remarkOnlyif you only want Markdown linting through ESLint. - Start with
remark.configs.recommendedif you want bridge behavior plus practical config hygiene. - Use
remark.configs.configurationwhen Markdown linting is handled elsewhere but Remark config files should still be checked. - Use
remark.configs.allwhen the repository is ready for every shipped rule.