Skip to content
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

Add parenthesis around leading multiline comment in return statement #15037

Merged
merged 3 commits into from Jul 16, 2023

Conversation

auvred
Copy link
Contributor

@auvred auvred commented Jul 8, 2023

Description

Fixes #15013

There is no such problem with JSX (playground), so I excluded it from the condition to avoid duplicate parenthesis

Checklist

  • I’ve added tests to confirm my change works.
  • (If changing the API or CLI) I’ve documented the changes I’ve made (in the docs/ directory).
  • (If the change is user-facing) I’ve added my changes to changelog_unreleased/*/XXXX.md file following changelog_unreleased/TEMPLATE.md.
  • I’ve read the contributing guidelines.

Try the playground for this PR

@sosukesuzuki sosukesuzuki merged commit 8da37cc into prettier:main Jul 16, 2023
29 checks passed
medikoo pushed a commit to medikoo/prettier-elastic that referenced this pull request Feb 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

jsdoc comment parenthesis removal breaks return in some case
3 participants