prettier icon indicating copy to clipboard operation
prettier copied to clipboard

Add parenthesis around leading multiline comment in return statement

Open auvred opened this issue 2 years ago • 0 comments

Description

Fixes https://github.com/prettier/prettier/issues/15013

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

Checklist

  • [x] 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).
  • [x] (If the change is user-facing) I’ve added my changes to changelog_unreleased/*/XXXX.md file following changelog_unreleased/TEMPLATE.md.
  • [x] I’ve read the contributing guidelines.

Try the playground for this PR

auvred avatar Jul 08 '23 09:07 auvred