Closed bounceme closed 8 years ago
The first example is definitely the "expected" behavior: the continuation extends to the last opening delimiter in the line above, as in
someVeryLongFunctionCall(arg1,
arg2);
(Personally, I don't like it, and always prefer a constant &sw
indentation for continuations, but that's what this indenter does.)
The second one is just busted, yeah.
Well, i think that this is actually recommended for npm style code: https://docs.npmjs.com/misc/coding-style but the returned text,and also the ending delimiter if it is on it's own line, should be aligned to the opening delimiter.Could be different though, depending on comma placement
this is closable,having the vertical alignment seems like a benefit if it is what npm recommends.I'd like this indent script also vertically align the terminal delimiter however but that is another issue.Thank you!
These examples show that there can be situations where a line is indented from some offset based on the preceding characters, rather than depending on the users ts and sw choices. Also the second example is just very broken looking in general