Open jcao219 opened 5 years ago
What is the error you're getting?
I believe the preferred indentation for this would be four spaces:
const {fieldFoo, fieldBar, fieldBaz,
fieldLast} = myObject;
I believe technically Google style allows (but discourages) more than 4 spaces, though I don't think there's any way to configure ESLint to allow that (without writing a custom plugin).
For your example, I'm getting:
error Expected indentation of 2 spaces but found 4 indent
By the way, I tend to like to write line continuations like this for my personal visual preference, but I'm not sure if it's best:
doStuffWithThese(longArgumentName, quiteAFewArguments, probablyCodeSmell
longArgumentNameAgain);
nextLine();
someMoreWork();
I think, unfortunately, ESLint is not able to detect the difference between a line continuation in an object block and normal block indentation.
Raises an error, but since this a continuation, I believe this syntax should be allowed?