Skip to content

Commit

Permalink
chore(site): run prettier on .svelte files (#10971)
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann authored Nov 2, 2023
1 parent 8c4b74c commit a02cc58
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 5 deletions.
13 changes: 13 additions & 0 deletions pnpm-lock.yaml

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

5 changes: 3 additions & 2 deletions sites/kit.svelte.dev/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"private": true,
"version": "0.0.1",
"scripts": {
"lint": "prettier --check . --config ../../.prettierrc --ignore-path .gitignore --ignore-path .prettierignore",
"format": "prettier --write . --config ../../.prettierrc --ignore-path .gitignore --ignore-path .prettierignore",
"lint": "prettier --plugin prettier-plugin-svelte --check . --config ../../.prettierrc --ignore-path .gitignore --ignore-path .prettierignore",
"format": "prettier --plugin prettier-plugin-svelte --write . --config ../../.prettierrc --ignore-path .gitignore --ignore-path .prettierignore",
"update": "node scripts/types",
"dev": "pnpm run update && vite dev",
"build": "pnpm run update && vite build",
Expand All @@ -24,6 +24,7 @@
"lightningcss": "^1.21.8",
"marked": "^9.0.0",
"prettier": "^3.0.3",
"prettier-plugin-svelte": "^3.0.3",
"prism-svelte": "^0.5.0",
"prismjs": "^1.29.0",
"shiki-twoslash": "^3.1.2",
Expand Down
5 changes: 4 additions & 1 deletion sites/kit.svelte.dev/src/routes/docs/[slug]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@
<div class="text content" use:copy_code_descendants>
<h1>{data.page.title}</h1>

<a class="edit" href="https://github.com/sveltejs/kit/edit/master/documentation/docs/{data.page.file}">
<a
class="edit"
href="https://github.com/sveltejs/kit/edit/master/documentation/docs/{data.page.file}"
>
<Icon size={50} name="edit" /> Edit this page on GitHub
</a>

Expand Down
4 changes: 3 additions & 1 deletion sites/kit.svelte.dev/src/routes/home/Hero.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,9 @@
.cta:hover {
text-decoration: none;
box-shadow: 0px 0.8px 3.8px rgba(0, 0, 0, 0.115), 0px 6px 30px rgba(0, 0, 0, 0.23);
box-shadow:
0px 0.8px 3.8px rgba(0, 0, 0, 0.115),
0px 6px 30px rgba(0, 0, 0, 0.23);
}
@media (min-width: 400px) {
Expand Down
9 changes: 8 additions & 1 deletion sites/kit.svelte.dev/src/routes/search/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,14 @@
<main>
<h1>Search</h1>
<form>
<input name="q" value={data.query} type="search" aria-label="Search" placeholder="Search" spellcheck="false" />
<input
name="q"
value={data.query}
type="search"
aria-label="Search"
placeholder="Search"
spellcheck="false"
/>
</form>

<SearchResults results={data.results} query={data.query} />
Expand Down

0 comments on commit a02cc58

Please sign in to comment.