Skip to main content

remark.configs.remarkOnly

Enable only the Remark bridge rule for Markdown files.

Use this preset when you want the smallest adoption surface: Markdown files are processed by Remark through ESLint, but Remark config files are not checked by the config-authoring rules.

Configurationโ€‹

import remark from "eslint-plugin-remark";

export default [remark.configs.remarkOnly];

This preset applies remark/remark to **/*.{md,mdx,markdown} with the plugin's internal full-document Markdown parser. The parser intentionally produces an empty ESTree program while preserving context.sourceCode.text, so the Remark bridge receives the complete Markdown document on both ESLint 9 and ESLint 10.

Best fitโ€‹

  • Repositories that already have stable Remark config conventions.
  • Incremental migrations from a standalone Remark CLI command.
  • Teams that want to evaluate bridge diagnostics before enforcing config rules.

Rollout notesโ€‹

Start here when Markdown diagnostics are the only immediate goal. Move to recommended when you also want deterministic Remark config authoring.

Rule matrixโ€‹

This table is generated from runtime plugin metadata for remark.configs.remarkOnly.

Fix legend:

  • ๐Ÿ”ง = autofixable
  • โ€” = report only
RuleFixThis presetAlso enabled in
remark๐Ÿ”ง๐Ÿ“ Enabled๐ŸŸก ๐ŸŸฃ
prefer-remark-plugins-array๐Ÿ”งโ€”๐ŸŸก ๐Ÿ”ง ๐ŸŸฃ
disallow-unknown-remark-config-properties๐Ÿ”งโ€”๐ŸŸก ๐Ÿ”ง ๐ŸŸฃ
require-remark-settings-objectโ€”โ€”๐ŸŸก ๐Ÿ”ง ๐ŸŸฃ
disallow-empty-remark-config-values๐Ÿ”งโ€”๐ŸŸก ๐Ÿ”ง ๐ŸŸฃ
disallow-empty-remark-plugin-specifiers๐Ÿ”งโ€”๐ŸŸก ๐Ÿ”ง ๐ŸŸฃ
disallow-invalid-remark-plugin-tuplesโ€”โ€”๐ŸŸก ๐Ÿ”ง ๐ŸŸฃ
trim-remark-plugin-specifiers๐Ÿ”งโ€”๐ŸŸก ๐Ÿ”ง ๐ŸŸฃ
disallow-remark-duplicate-plugins๐Ÿ”งโ€”๐ŸŸก ๐Ÿ”ง ๐ŸŸฃ
sort-remark-plugins๐Ÿ”งโ€”๐ŸŸก ๐Ÿ”ง ๐ŸŸฃ
disallow-remark-relative-plugin-pathsโ€”โ€”๐ŸŸก ๐Ÿ”ง ๐ŸŸฃ
require-remark-plugins-packages-installedโ€”โ€”๐ŸŸก ๐Ÿ”ง ๐ŸŸฃ
require-remark-config-file-naming-conventionโ€”โ€”๐ŸŸก ๐Ÿ”ง ๐ŸŸฃ