Skip to content

Commit 854621c

Browse files
committed
fix for unexpected ASI insertion
1 parent a41ae74 commit 854621c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/print/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ export const printer: Printer<Node | undefined> = {
3232
return estreePrinter.getVisitorKeys?.(node, nonTraversableKeys) || [];
3333
},
3434

35+
printPrettierIgnored(path: AstPath<Node | undefined>, options: Options) {
36+
return printRawText(path, options);
37+
},
38+
3539
print(
3640
path: AstPath<Node | undefined>,
3741
options: Options,

tests/unit-tests/config/__snapshots__/semi-false.test.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -871,7 +871,7 @@ export interface Signature {
871871
}
872872
873873
// prettier-ignore
874-
;<template>
874+
<template>
875875
what
876876
</template> as TemplateOnlyComponent<Signature>
877877
"

0 commit comments

Comments
 (0)