style: 使用prettier格式化项目

This commit is contained in:
2025-12-20 13:23:55 +08:00
parent 0de433e8d4
commit 16b65653bb
4 changed files with 21 additions and 20 deletions

14
src/app.d.ts vendored
View File

@ -1,13 +1,13 @@
// See https://svelte.dev/docs/kit/types#app.d.ts
// for information about these interfaces
declare global {
namespace App {
// interface Error {}
// interface Locals {}
// interface PageData {}
// interface PageState {}
// interface Platform {}
}
namespace App {
// interface Error {}
// interface Locals {}
// interface PageData {}
// interface PageState {}
// interface Platform {}
}
}
export {};

View File

@ -1,11 +1,11 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
%sveltekit.head%
</head>
<body data-sveltekit-preload-data="hover">
<div style="display: contents">%sveltekit.body%</div>
</body>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
%sveltekit.head%
</head>
<body data-sveltekit-preload-data="hover">
<div style="display: contents">%sveltekit.body%</div>
</body>
</html>

View File

@ -1,8 +1,8 @@
<script lang="ts">
import "./layout.css";
import favicon from "$lib/assets/favicon.svg";
import './layout.css';
import favicon from '$lib/assets/favicon.svg';
let { children } = $props();
let { children } = $props();
</script>
<svelte:head><link rel="icon" href={favicon} /></svelte:head>

View File

@ -1,5 +1,6 @@
<h1>Welcome to SvelteKit</h1>
<p>
Visit <a href="https://svelte.dev/docs/kit">svelte.dev/docs/kit</a> to read the
documentation
Visit <a class="text-orange-400" href="https://svelte.dev/docs/kit"
>svelte.dev/docs/kit</a
> to read the documentation
</p>