Skip to content

Commit eb4072d

Browse files
authored
fix: correct MDX comment syntax and exclude from prettier (#10556)
Prettier incorrectly escapes JSX comment markers (\`/* */\` → \`\/* *\/\`) inside these two MDX files' code blocks, breaking the comment syntax. Excludes both files from prettier and fixes the existing bad escaping. Split out of the Node 24 branch (#10555), where it was an unrelated change picked up along the way.
1 parent b8b8dbb commit eb4072d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.prettierignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
fixtures
22
e2e/fixtures
3-
components/legacy/e2e-helper/excluded-fixtures
3+
components/legacy/e2e-helper/excluded-fixtures
4+
# MDX files with JSX comments that prettier incorrectly escapes
5+
scopes/react/aspect-docs/react/react.mdx
6+
scopes/react/ui/loader-fallback/loader-fallback.docs.mdx

0 commit comments

Comments
 (0)