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
I always thought that indenting chained functions was problematic, since as far as the parser is concerned, there is no block until it encounters the ..
That's why I prefer
fn().then(foo=>bar()).finally(cleanup)
indenting would mean this code style:
fn().then(foo=>bar()).finally(cleanup)
...which is of course terrible because the . is easy to miss at the end of the line and you need to manage it when moving lines around.
Hence: please make chaining indentation configurable.
The text was updated successfully, but these errors were encountered:
I always thought that indenting chained functions was problematic, since as far as the parser is concerned, there is no block until it encounters the
.
.That's why I prefer
indenting would mean this code style:
...which is of course terrible because the
.
is easy to miss at the end of the line and you need to manage it when moving lines around.Hence: please make chaining indentation configurable.
The text was updated successfully, but these errors were encountered: