Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikvilhelmberglund committed Aug 15, 2024
1 parent 1d0126f commit 4b8f35b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/mdsvex/src/transformers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,9 @@ export function transform_hast({
const fm =
metadata &&
`export const metadata = ${stringified};${newline}` +
`\tconst { ${Object.keys(metadata).join(', ').replace("-","_")} } = metadata;`;
`\tconst { ${Object.keys(metadata)
.join(', ')
.replace('-', '_')} } = metadata;`;

const frontmatter_layout =
metadata && (metadata.layout as string | undefined | false);
Expand Down

0 comments on commit 4b8f35b

Please sign in to comment.