Microsoft/TypeScript
Double slash comment `//` will be wrongly removed in the trailing position of the object attribute
オープン
#56,055 opened on 2023/10/10
Domain: Comment EmitHelp WantedPossible Improvement
Repository metrics
- Stars
- (108,860 個のスター)
- PR merge metrics
- (PR metrics pending)
説明
🔎 Search Terms
- comment removal
- removeComments
🕗 Version & Regression Information
- This is the behavior in every version I tried.
⏯ Playground Link
💻 Code
export const foo = {
foo: 'foo', // this comment will be removed, however this should be kept
bar: 'bar' // this comment will be kept, works well
}
🙁 Actual behavior
export const foo = {
foo: 'foo',
bar: 'bar' // this comment will be kept, works well
}
🙂 Expected behavior
export const foo = {
foo: 'foo', // this comment will be removed, however this should be kept
bar: 'bar' // this comment will be kept, works well
}
Additional information about the issue
No response