This repository has been archived by the owner on Aug 31, 2023. It is now read-only.
Add arrowParens
formatter option
#3910
Closed
SuperchupuDev
started this conversation in
Suggestions
Replies: 1 comment
-
Implemented in #4667 🎉 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Even though it's been said in #2465 (comment) that the prettier
arrowParens
option shouldn't be added to Rome because they find these options harder to motivate, I think it would be a good idea to have it.Having no parentheses around single-argument arrow functions is much more clean and readable to some people, and it's a bit annoying that Rome doesn't currently support it and it makes migration much harder, as it requires to change the code style. I think this comment explains it well
Github Search shows that out of 46k
.prettierrc
files, 10.6k of them havearrowParens
set toavoid
, which is 23% of them using this option. It's used a lot and that's why it's important to have it in RomeBeta Was this translation helpful? Give feedback.
All reactions