Feature request: Preserve comments
See original GitHub issueIt would be lovely if it comments inside the imports could be preseved. This becomes a problem with long imports when only a single item is imported (and there is an eslint rule about max-line-length in place).
For example:
// eslint-disable-next-line max-len
import { UpdateCheckoutShippingAddress_checkoutEmailUpdate_checkoutErrors as CheckoutError } from '@api-sdk/mutations/types/UpdateCheckoutShippingAddress';
import BusinessForm, { BusinessFormValues } from './Forms/BusinessForm';
import ProfileForm, { ProfileFormValues } from './Forms/ProfileForm';
currently always becomes this:
import { UpdateCheckoutShippingAddress_checkoutEmailUpdate_checkoutErrors as CheckoutError } from '@saleor-sdk/mutations/types/UpdateCheckoutShippingAddress';
import BusinessForm, { BusinessFormValues } from './Forms/BusinessForm';
import ProfileForm, { ProfileFormValues } from './Forms/ProfileForm';
// eslint-disable-next-line max-len
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:7
Top Results From Across the Web
[Feature Request] Preserve comments when using Extract ...
I'd like it if the fields of the mapped type could somehow preserve the comments of the fields of T , even after...
Read more >10 Tips for Responding Graciously to Customer Feature ...
1. Be open and honest · 2. Be grateful for their effort · 3. Be courteous, not scripted · 4. Don't make promises...
Read more >[Feature Request] Save Comment Reply (premium) - Reddit
One of the features I liked in RedditIsFun was that when you was writing a comment reply, you could save the comment for...
Read more >Keep comments as you update link to prototype
I wish you could keep comments as you update the link to a prototype. I don't believe that's possible now. It's good to...
Read more >Feature request: draft comments - LessWrong
It would be nice if I could easily make and save a bunch of hidden comments on the post itself. They'd be essentially...
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

Just a note here: We are working on the issue and found a really nice solution to solve the problem.
Trying to use this plugin myself, and it appears to be losing all the comments in the TS files, which causes the formatting to fail, due to some of the prettier validation.