-
-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prettier formatting breaks JSDoc comments #454
Labels
Comments
github-actions
bot
added
👋 phase/new
Post is being triaged automatically
🤞 phase/open
Post is being triaged manually
and removed
👋 phase/new
Post is being triaged automatically
labels
Jul 7, 2024
Thanks for sharing @karlhorky! |
Duplicate of #415 |
This comment has been minimized.
This comment has been minimized.
remcohaszing
added
👯 no/duplicate
Déjà vu
👀 no/external
This makes more sense somewhere else
labels
Jul 8, 2024
This comment was marked as resolved.
This comment was marked as resolved.
github-actions
bot
added
👎 phase/no
Post cannot or will not be acted on
and removed
👯 no/duplicate
Déjà vu
🤞 phase/open
Post is being triaged manually
labels
Jul 8, 2024
This comment was marked as resolved.
This comment was marked as resolved.
5 tasks
WorkaroundIgnore any JSDoc comments until MDX v2+ comments w. JSDoc support or MDX v3 support added: {/* prettier-ignore-start */}
{/**
* @typedef Props
* @property {string} name
* Who to greet.
*/}
{/* prettier-ignore-end */}
# Hello {props.name} Also added an PR to document this in the readme here: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Initial checklist
Affected packages and versions
[email protected], @mdx-js/[email protected], [email protected], react@^18
Link to runnable example
No response
Steps to reproduce
Prettier Input/Output:
Input:
Output:
Kapture.2024-07-07.at.22.17.37.mp4
Companion issue in
prettier/prettier
I've also reported this as an issue in
prettier/prettier
:If it's desired to only track it in
prettier/prettier
, then this issue can be closed.Expected behavior
No problems with Prettier formatting using MDX comments with JSDoc
Actual behavior
Problems with Prettier formatting using MDX comments with JSDoc
Runtime
Node v20
Package manager
No response
OS
macOS
Build and bundle tools
No response
The text was updated successfully, but these errors were encountered: