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
so users could use presets defined by the community? unibeautify:prettier would then use prettiers default config for all languages. This would also mean we need a for all langauge tag like * or _.
I would be in favor of having presets for some well-established styles. For example K&R for the famous Kernighan and Ritchie style for C-like languages. Replicating the individual settings by hand to achieve a particular style is a big effort.
On the other hand, if there are a ton of presets, or some not-very-popular ones that just happened to be convenient for the developers, then it becomes hard as a user to pick the one you want. For example, the current preset list of clang-format is: LLVM, Google, Chromium, Mozilla, WebKit. This is not the list of the most influential C styles ever - it looks more like the developers just added the ones they personally needed. Some of those styles are very similar to each other.
So I would be in favor of having a carefully curated list of presets that emphasizes:
Popularity
Longevity (styles that have been popular for e.g. a decade, not just led by one trendy project)
Variety (e.g. one with 2-space indents, another with 4-space, another with 8-space/tabs), avoiding styles with only minor differences.
But that's just my opinion.
The text was updated successfully, but these errors were encountered:
If we have an extend/inheritance mechanism (Option to extend another unibeautify config #184) then styles that are quite similar to a classic style, with minor differences, are quite easy to specify by giving the classic style as a preset followed by a few overrides for the settings that are different.
Having only classic presets is a small nudge to encourage people to stick to them, instead of making countless minor variations. On one hand, it's great to have options, on the other hand it fuels bikeshed discussion and can add friction for devs switching between projects. Compare to the license proliferation situation.
@muuvmuuv wrote in #184:
I would be in favor of having presets for some well-established styles. For example
K&R
for the famous Kernighan and Ritchie style for C-like languages. Replicating the individual settings by hand to achieve a particular style is a big effort.On the other hand, if there are a ton of presets, or some not-very-popular ones that just happened to be convenient for the developers, then it becomes hard as a user to pick the one you want. For example, the current preset list of
clang-format
is: LLVM, Google, Chromium, Mozilla, WebKit. This is not the list of the most influential C styles ever - it looks more like the developers just added the ones they personally needed. Some of those styles are very similar to each other.So I would be in favor of having a carefully curated list of presets that emphasizes:
But that's just my opinion.
The text was updated successfully, but these errors were encountered: