Re: [whatwg/streams] Add @@asyncIterator to ReadableStream (#980)

MattiasBuelens commented on this pull request.



> @@ -160,7 +160,16 @@
     "id-blacklist": "off",
     "id-length": "off",
     "id-match": "off",
-    "indent": ["error", 2, { "SwitchCase": 1 }],
+    "indent": ["error", 2, {
+      "SwitchCase": 1,
+      "MemberExpression": 2,
+      "FunctionDeclaration": { "parameters": "first" },

The `.catch` indentation is controlled by `MemberExpression`. I could set it to `0` to keep the current style, but then it might look weird in other places...

Alternatively, I can change all of those:
```js
promise.then(() => {
  /* ... */
})
.catch(rethrowAssertionErrorRejection);
```
to:
```js
promise.then(() => {
  /* ... */
}).catch(rethrowAssertionErrorRejection);
```
and avoid the problem entirely. 😛 

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/pull/980#discussion_r253408020

Received on Monday, 4 February 2019 10:12:59 UTC