question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature request: Preserve comments

See original GitHub issue

It 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:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:7

github_iconTop GitHub Comments

1reaction
ayusharmacommented, Dec 1, 2020

Just a note here: We are working on the issue and found a really nice solution to solve the problem.

1reaction
Retsamcommented, Oct 20, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found