Comments not emitted in chaining calls
See original GitHub issuebefore:
request
.post('/version') // comment 1
.set('Prefer', 'plurality=singular') /* comment 2 */
.send()
.end((error, response) => {});
after:
request
.post('/version')
.set('Prefer', 'plurality=singular')
.send()
.end((error, response) => {});
Related issues:
https://github.com/jlongster/prettier/issues/31 https://github.com/jlongster/prettier/issues/87
Issue Analytics
- State:
- Created 7 years ago
- Reactions:2
- Comments:8 (7 by maintainers)
Top Results From Across the Web
Method chaining - why is it a good practice, or not?
I think it's generally good practice to always write very short and concise lines. Every line should just make one method call. Prefer...
Read more >Optional chaining is emitting not recognizable JavaScript code ...
In the TypeScript design goal it writes Emit clean, idiomatic, recognizable JavaScript code, but the optional chaining breaks this.
Read more >Behavior Chain in ABA
A behavior chain (chaining) is a type of teaching procedure used to connect individual behaviors to form more complex responses.
Read more >Optional chaining (?.) - JavaScript - MDN Web Docs - Mozilla
The optional chaining (?.) operator accesses an object's property or calls a function. If the object accessed or function called is ...
Read more >RxJs Error Handling: Complete Practical Guide
As we can see, the stream emitted no value and it immediately errored out. After the error, no completion occurred. Limitations of the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks @dmnd, this is a known issue and there’s a fix in https://github.com/jlongster/prettier/pull/469
Also, awesome job on dedent package, it makes template literals usable!
@amasad for this, I have a fix that I need to properly extract out before we can release it. I want it in before I do the next release