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 // See https://svelte.dev/docs/kit/types#app.d.ts
// for information about these interfaces // for information about these interfaces
declare global { declare global {
namespace App { namespace App {
// interface Error {} // interface Error {}
// interface Locals {} // interface Locals {}
// interface PageData {} // interface PageData {}
// interface PageState {} // interface PageState {}
// interface Platform {} // interface Platform {}
} }
} }
export {}; export {};

View File

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

View File

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

View File

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