diff --git a/src/compiler/pre-transform/codemods/export-const-to-define-meta.ts b/src/compiler/pre-transform/codemods/export-const-to-define-meta.ts index f91e05b..fe75800 100644 --- a/src/compiler/pre-transform/codemods/export-const-to-define-meta.ts +++ b/src/compiler/pre-transform/codemods/export-const-to-define-meta.ts @@ -22,7 +22,9 @@ export function transformExportMetaToDefineMeta( ): VariableDeclaration { const { declaration, leadingComments, start, end } = exportMeta; if (!declaration || declaration.type !== 'VariableDeclaration') { - throw new Error("Invalid syntax - 'export meta' declaration was empty or not a variable declaration"); + throw new Error( + "Invalid syntax - 'export meta' declaration was empty or not a variable declaration" + ); } const { declarations } = declaration; const { init } = declarations[0]; diff --git a/src/compiler/pre-transform/codemods/legacy-story.test.ts b/src/compiler/pre-transform/codemods/legacy-story.test.ts index dc3b20f..7cf4966 100644 --- a/src/compiler/pre-transform/codemods/legacy-story.test.ts +++ b/src/compiler/pre-transform/codemods/legacy-story.test.ts @@ -133,7 +133,6 @@ describe(transformLegacyStory.name, () => { it("transforms 'template' prop to 'children' and text expression becomes expression tag with identifier to snippet", async ({ expect, }) => { - // TODO: Check if warning was emitted? const code = `