Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 5 additions & 15 deletions biome.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://biomejs.dev/schemas/2.1.3/schema.json",
"$schema": "https://biomejs.dev/schemas/2.4.8/schema.json",
"vcs": {
"enabled": true,
"clientKind": "git",
Expand Down Expand Up @@ -28,25 +28,15 @@
"quoteStyle": "double"
}
},
"html": {
"experimentalFullSupportEnabled": true
},
"assist": {
"enabled": true,
"actions": {
"source": {
"organizeImports": "on"
}
}
},
"overrides": [
{
"includes": ["**/*.astro", "**/*.vue", "**/*.svelte"],
"linter": {
"rules": {
"correctness": {
"noUnusedVariables": "off",
"noUnusedImports": "off"
}
}
}
}
]
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"type": "module",
"packageManager": "pnpm@10.30.1",
"devDependencies": {
"@biomejs/biome": "2.1.3",
"@biomejs/biome": "2.4.8",
"@types/node": "^25.3.5",
"@typescript/native-preview": "^7.0.0-dev",
"tsdown": "^0.21.0",
Expand Down
6 changes: 3 additions & 3 deletions packages/core/fixtures/dev/alpinejs/src/pages/basic.astro
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ interface Props {
const { initialCount } = Astro.props;
---

<html>
<html lang="en">
<head></head>
<body>
<div class="counter" x-data={`{ count: ${initialCount} }`}>
<button x-on:click="count--">-</button>
<button type="button" x-on:click="count--">-</button>
<pre x-text="count">{ initialCount }</pre>
<button x-on:click="count++">+</button>
<button type="button" x-on:click="count++">+</button>
</div>
</body>
</html>
2 changes: 1 addition & 1 deletion packages/core/fixtures/dev/basic/src/pages/imgTag.astro
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
import sampleImg from "../assets/sample.png";
---

<img src={sampleImg.src} width={sampleImg.width} height={sampleImg.height} />
<img src={sampleImg.src} width={sampleImg.width} height={sampleImg.height} alt="" />
2 changes: 1 addition & 1 deletion packages/core/fixtures/dev/basic/src/pages/page.astro
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const { title } = Astro.props;
---


<html>
<html lang="en">
<head>
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion packages/core/fixtures/dev/basic/src/pages/styles.astro
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<html>
<html lang="en">
<head>
</head>
<body>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import StyleChild from "../components/StyleChild.astro";
---

<html>
<html lang="en">
<head>
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion packages/core/fixtures/dev/partytown/src/pages/basic.astro
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<html>
<html lang="en">
<head></head>
<body>
PartyTown demo
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ interface Props {
const { title } = Astro.props;
---

<html>
<html lang="en">
<head></head>
<body>
<Counter client:load title={title} />
Expand Down
2 changes: 1 addition & 1 deletion packages/core/fixtures/start/basic/src/pages/imgTag.astro
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
import sampleImg from "../assets/sample.png";
---

<img src={sampleImg.src} width={sampleImg.width} height={sampleImg.height} />
<img src={sampleImg.src} width={sampleImg.width} height={sampleImg.height} alt="" />
2 changes: 1 addition & 1 deletion packages/core/fixtures/start/basic/src/pages/page.astro
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<html>
<html lang="en">
<head>
</head>
<body>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<html>
<html lang="en">
<head>
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion packages/core/fixtures/start/basic/src/pages/styles.astro
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<html>
<html lang="en">
<head>
</head>
<body>
Expand Down
4 changes: 3 additions & 1 deletion packages/core/src/utils/injectTagsIntoHead.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ export function injectTagsIntoHead(
visit(tree, "element", (node) => {
if (node.tagName === "head" && node.position) {
hasHead = true;
children.forEach((child) => node.children.push(child));
children.forEach((child) => {
node.children.push(child);
});
return EXIT;
}
});
Expand Down
2 changes: 1 addition & 1 deletion packages/core/tests/dev/basic.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ describe("dev basic fixture", () => {
expect(response.status).toBe(200);

expect(response.content).toBe(
'<!DOCTYPE html><html><head><script type="module" src="http://host-placeholder.test/@vite/client"></script></head> <body> <p>Hello World</p> </body></html>',
'<!DOCTYPE html><html lang="en"><head><script type="module" src="http://host-placeholder.test/@vite/client"></script></head> <body> <p>Hello World</p> </body></html>',
);
});

Expand Down
4 changes: 2 additions & 2 deletions packages/core/tests/start/basic.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ describe("start basic fixture", () => {
expect(response).toEqual({
status: 200,
content:
"<!DOCTYPE html><html><head></head> <body> <p>Hello World!</p> </body></html>",
'<!DOCTYPE html><html lang="en"><head></head> <body> <p>Hello World!</p> </body></html>',
});
});

Expand Down Expand Up @@ -96,7 +96,7 @@ describe("start basic fixture", () => {
expect(response.status).toBe(200);

const imageSrc = response.content.match(
/<img src="([^"]+)" width="96" height="96">/,
/<img src="([^"]+)" width="96" height="96" alt="">/,
)?.[1] as string;
expect(imageSrc).toMatch(/^\/_astro\//);

Expand Down
6 changes: 3 additions & 3 deletions packages/docs/src/components/starlight/Hero.astro
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ const PAGE_TITLE_ID = "_top";
({
attrs: { class: className, ...attrs } = {},
icon,
link: href,
link,
text,
variant,
}) => (
<LinkButton
{href}
{variant}
href={link}
variant={variant}
icon={icon?.name}
class:list={[className]}
{...attrs}
Expand Down
7 changes: 6 additions & 1 deletion packages/docs/src/components/starlight/SiteTitle.astro
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,15 @@ import MightyLogo from "@/assets/mighty.svg";
const { siteTitle, siteTitleHref } = Astro.locals.starlightRoute;

const anchorHref = Astro.url.pathname === "/" ? "/#" : siteTitleHref;

const titleClassList = {
"sr-only": config.logo?.replacesTitle,
};
---

<a href={anchorHref} class="site-title sl-flex">
<MightyLogo class="site-title-logo" />
<span class:list={{ "sr-only": config.logo?.replacesTitle }} translate="no">
<span class:list={titleClassList} translate="no">
{siteTitle}
</span>
</a>
Expand Down Expand Up @@ -50,6 +54,7 @@ const anchorHref = Astro.url.pathname === "/" ? "/#" : siteTitleHref;
}

.site-title-rotate-after-view-transition svg path {
/* biome-ignore lint/complexity/noImportantStyles: required here to work with view transitions */
transition: none !important;
transform: rotateY(540deg);
cursor: pointer;
Expand Down
5 changes: 1 addition & 4 deletions packages/docs/src/styles/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,10 @@
}

@view-transition {
/* biome-ignore lint/correctness/noUnknownProperty: View Transitions navigation is valid CSS. */
navigation: auto;
}

/* biome-ignore lint/correctness/noUnknownTypeSelector: View Transitions pseudo-elements are valid CSS. */
::view-transition-old(root),
/* biome-ignore lint/correctness/noUnknownTypeSelector: View Transitions pseudo-elements are valid CSS. */
::view-transition-new(root) {
::view-transition-new(root) {
animation: none;
}
76 changes: 38 additions & 38 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading