Working in a mixed environment of both vscode/vim with a team configured prettier configuration, this can leave clang-format and prettier fighting each other over the formatting of arrays, both simple arrays of elements.
This review aims to add some "control knobs" to the Json formatting in clang-format to help align the two tools so they can be used interchangeably.
This will allow simply arrays [1, 2, 3] to remain on a single line but will break those arrays based on context within that array.
Happy to change the name of the option (this is the third name I tried)
Why limiting to JSON only?
Could we name it in a general fashion (we comment that it's JSON only for the time being). I believe it may be an interesting option for various languages.
How about BreakMultilineArrays, or just BreakArrays to follow the naming of existing options a bit?