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
This pull request addresses the issue described in [Issue
#668](#668) and [Issue #1285
](#1285).
A flag UsePrettierStyleTrailingCommas is introduced which ensures a
trailing comma for anonymous object/collection/initializer/switch
expressions, list patterns and enum declarations in the case a line
break occurs.
I hope the implementation of the feature isn't too invasive. Obviously
it would be easier to implement the feature non-configurable.
I'm not sure how to deal with the tests, for now I enabled the flag and
adjusted the corresponding tests.
Thanks for any feedback!
---------
Co-authored-by: Bela VanderVoort <bela.vandervoort@optimizely.com>
Currently both including and not including the last comma in a list is allowed, such as:
This should not be ambiguous, and in accordance with Prettier the trailing comma should be enforced.
The text was updated successfully, but these errors were encountered: