Closed payne-chris-r closed 7 years ago
I'm not sure what this means. Is this a formatting issue?
Yes. Formatting. All should look like this:
doAsyncSomething()
.then()
.then()
.catch()
NOT
doAsyncSomething().then()
OR
doAsyncSomething()
.then()
.catch()
Agreed. @ga-wdi-boston/core without objection?
Agreed.
Per @jrhorn424 we need to make this consistent across other repos.
(props to @raq929 for catching that we were parsing @payne-chris-r's comment differently)
As it currently reads to me, in English, to me:
Formatting for Promise chains should be either flush or indented two spaces, not all on one line.
As it currently reads to @raq929, with correct English (😉):
Formatting for Promise chains should not be all on one line nor flush, but instead indented with two spaces.
Turns out, "nor" versus "or" is a thing.
Fun party game: try to guess whether it was a traumatic English class, or a traumatic formal logic class, which forced me to learn the difference. (<-- good job, me, on parallel construction and favoring "which" over "that")
The example code uses several different .then syntaxes. Use one. Stick to it.