prettier
prettier copied to clipboard
Add parenthesis around leading multiline comment in return statement
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.mdfile followingchangelog_unreleased/TEMPLATE.md. - [x] I’ve read the contributing guidelines.