Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 49161fc

Browse files
committedAug 24, 2024·
fix: remove ts-expect-error option creating extra lines
1 parent 9aa4938 commit 49161fc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ function removeIgnoreErrors(files: SourceFile[]) {
1212
file.replaceWithText(
1313
file
1414
.getText()
15+
.replaceAll(/\n( |\t)+\/\/ @ts-expect-error.*/g, "")
1516
.replaceAll(/\/\/ @ts-expect-error.*/g, "")
1617
.replaceAll(/\/\* @ts-expect-error.*\*\//g, ""),
1718
);

0 commit comments

Comments
 (0)
Please sign in to comment.