fix: exclude MDX files with JSX comments from prettier - #10556
Conversation
Prettier incorrectly escapes JSX comment markers (/* */) inside these MDX files' code blocks, breaking the comment syntax. Exclude them from prettier and fix the existing escaping.
PR Summary by QodoFix MDX JSX comment escaping and exclude affected docs from Prettier
AI Description
Diagram
High-Level Assessment
Files changed (3)
|
Code Review by Qodo
1.
|
The mdx files already had correct, unescaped JSX comments matching master. Only the prettierignore protection against prettier's corruption bug was needed.
|
Code review by qodo was updated up to the latest commit 235f6d7 |
Prettier corrupts JSX comment markers (`/* */` → `/* */`) when it reformats these two MDX files, breaking their comment syntax and any build depending on it. Excludes both files from prettier so their existing, correct content is left untouched.
Split out of the Node 24 branch (#10555), where it was an unrelated change picked up along the way.