ts-migrate icon indicating copy to clipboard operation
ts-migrate copied to clipboard

reignore swallows comments on ts-ignores

Open NickHeiner opened this issue 4 years ago • 0 comments

When I ran ts-migrate reignore, it helpfully upgraded ts-ignores to ts-expect-errors. However, in doing so, it removed some of the comments I had on the ts-ignores:

- // @ts-ignore: Custom message
+ // @ts-expect-error ts-migrate(2339) FIXME: ...

I can't use this tool on my codebase if it means I'll lose these custom messages, so I'll have to manually fix these spots, or submit a PR to this project. :smile:

NickHeiner avatar Jan 27 '21 00:01 NickHeiner