You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently prettier strips out brackets around single parameter arrow functions.
[0, 1, 2].forEach((num) => console.log(num));
outputs to
[0, 1, 2].forEach(num => console.log(num));
Some teams prefer the consistency of having the brackets always surrounding the parameters. Can this be a config option? With some guidance, I'd be interested in contributing this project by adding support for this config option.
The text was updated successfully, but these errors were encountered:
Currently prettier strips out brackets around single parameter arrow functions.
outputs to
Some teams prefer the consistency of having the brackets always surrounding the parameters. Can this be a config option? With some guidance, I'd be interested in contributing this project by adding support for this config option.
The text was updated successfully, but these errors were encountered: