Configure mdx/remark rules via Remark configuration
masterThe mdx/remark rule integrates with remark-lint plugins. Because these rules are handled by the remark engine, you cannot disable or change their severity directly in your ESLint configuration. Instead, you must modify your remark configuration file.
To change severity, use the array syntax in your remark config (e.g., [rule-name, [severity]] where 2 is error and 0 is disabled).
{
"plugins": [
"@1stg/remark-config",
// change to error severity, notice `[]` is required
["lint-no-duplicate-headings", [2]],
// disable following plugin
[
"lint-no-multiple-toplevel-headings",
[0], // or false
],
],
}