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
| Rule | Fix | This preset | Also 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 | โ | โ | ๐ก ๐ง ๐ฃ |