diff --git a/lib/rule-notices.ts b/lib/rule-notices.ts index 59c2ea13..6fcbaeb2 100644 --- a/lib/rule-notices.ts +++ b/lib/rule-notices.ts @@ -115,7 +115,7 @@ const RULE_NOTICES: { */ function ruleNamesToList(ruleNames: readonly string[]) { return ruleNames - .map((ruleName) => `[${ruleName}](${ruleName}.md)`) + .map((ruleName) => `[\`${ruleName}\`](${ruleName}.md)`) .join(', '); } diff --git a/test/lib/__snapshots__/generator-test.ts.snap b/test/lib/__snapshots__/generator-test.ts.snap index 03901ab3..4c2e737d 100644 --- a/test/lib/__snapshots__/generator-test.ts.snap +++ b/test/lib/__snapshots__/generator-test.ts.snap @@ -203,7 +203,7 @@ exports[`generator #generate deprecated rules updates the documentation 1`] = ` exports[`generator #generate deprecated rules updates the documentation 2`] = ` "# Description (\`test/no-foo\`) -❌ This rule is deprecated. It was replaced by [no-bar](no-bar.md). +❌ This rule is deprecated. It was replaced by [\`no-bar\`](no-bar.md). "