clang-format already removes lines trailing at the end of blocks:
function x() { foo(); // next line will be removed. }
However because JS arrow functions are parsed as expressions, the existing logic
to remove empty lines in UnwrappedLineFormatter doesn't handle them. This code
special cases arrow functions in ContinuationIndenter to remove any trailing
spaces:
x = () => { foo(); // next line will (now) be removed. };