-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Labels
deno fmtRelated to the "deno fmt" subcommand or dprintRelated to the "deno fmt" subcommand or dprint
Description
export const Layout = (props: Props) => html`
<html>
<body>
${props.title.endsWith("example")
? html`
<a href="/">Reactive Mastro examples</a>
<h1>${props.title}</h1>
`
: ""}
<main>${props.children}</main>
</body>
</html>
`;
formats as follows in deno 2.3.1:
export const Layout = (props: Props) =>
html`
<html>
<body>
${props.title.endsWith("example")
? html`
<a href="/">Reactive Mastro examples</a>
<h1>${props.title}</h1>
`
: ""}
<main>${props.children}</main>
</body>
</html>
`;
Notice how the ternary expression is indented too little.
EthanThatOneKid and codingjoe
Metadata
Metadata
Assignees
Labels
deno fmtRelated to the "deno fmt" subcommand or dprintRelated to the "deno fmt" subcommand or dprint