54409a0702
* docs: fix readme * chore: scaffold prettier plugin * chore(prettier): switch to cjs * test(prettier): scaffold prettier tests * test(prettier): add simple prettier tests * feat(prettier): first pass * refactor: expose parser as CJS export * test(prettier): add long expression * refactor(prettier): use Astro parser + built-in prettier doc for prettier plugin * chore: remove parser from git * chore: add prettier-plugin-astro `build` to workflow * chore: update package-lock * chore: do not build prettier-plugin-astro * fix: update engines * chore: remove NPM restriction * chore: fix workflow paths * chore: update build script * test: fix prettier expr test * chore: fix parser build on windows * refactor: add parser tsconfig, extending base config * chore: relax ban-ts-comment * chore: fix lint issue Co-authored-by: Nate Moore <nate@skypack.dev>
24 lines
419 B
Text
24 lines
419 B
Text
---
|
|
import Color from "../components/Color.jsx";
|
|
|
|
let title = "My Site";
|
|
|
|
const colors = ["red", "yellow", "blue"];
|
|
---
|
|
|
|
<html lang="en">
|
|
<head>
|
|
<title>My site</title>
|
|
</head>
|
|
<body>
|
|
<h1>{title}</h1>
|
|
|
|
{"I'm some super long text and oh boy I sure do hope this formatter doesn't break me!"}
|
|
|
|
{colors.map((color) => (
|
|
<div>
|
|
<Color name={color} />
|
|
</div>
|
|
))}
|
|
</body>
|
|
</html>
|