Skip to content

Commit

Permalink
chore(prettier): actually apply svelte prettier plugin [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
metonym committed Dec 28, 2023
1 parent 4c9a65d commit 784ff06
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,10 @@
"svelte components",
"highlight.js",
"syntax highlight"
]
],
"prettier": {
"plugins": [
"prettier-plugin-svelte"
]
}
}
4 changes: 2 additions & 2 deletions tests/e2e/SvelteHighlight.test.svelte
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<script>
import { HighlightSvelte } from "svelte-highlight";
import atomOneDark from "svelte-highlight/styles/atom-one-dark";
const code = `<button on:click={() => { console.log(0); }}>Click me</button>`;
</script>

<svelte:head>
{@html atomOneDark}
</svelte:head>

<HighlightSvelte {code} />
<HighlightSvelte {code} />
4 changes: 2 additions & 2 deletions www/components/ListSearch.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
function getSearchParamValue() {
if (typeof window !== "undefined") {
const query = new URLSearchParams(window.location.search).get(
SEARCH_PARAM
SEARCH_PARAM,
);
return query ?? "";
Expand Down Expand Up @@ -72,7 +72,7 @@
$: filtered = normalizedItems.filter(
(item) =>
item.normalized_name.includes(normalizedValue) ||
item.normalized_moduleName.includes(normalizedValue)
item.normalized_moduleName.includes(normalizedValue),
);
$: filteredIds = new Set(filtered.map((item) => item.name));
</script>
Expand Down
2 changes: 1 addition & 1 deletion www/components/LogoGithub.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@
fill-rule="evenodd"
d="M16,2a14,14,0,0,0-4.43,27.28c.7.13,1-.3,1-.67s0-1.21,0-2.38c-3.89.84-4.71-1.88-4.71-1.88A3.71,3.71,0,0,0,6.24,22.3c-1.27-.86.1-.85.1-.85A2.94,2.94,0,0,1,8.48,22.9a3,3,0,0,0,4.08,1.16,2.93,2.93,0,0,1,.88-1.87c-3.1-.36-6.37-1.56-6.37-6.92a5.4,5.4,0,0,1,1.44-3.76,5,5,0,0,1,.14-3.7s1.17-.38,3.85,1.43a13.3,13.3,0,0,1,7,0c2.67-1.81,3.84-1.43,3.84-1.43a5,5,0,0,1,.14,3.7,5.4,5.4,0,0,1,1.44,3.76c0,5.38-3.27,6.56-6.39,6.91a3.33,3.33,0,0,1,.95,2.59c0,1.87,0,3.38,0,3.84s.25.81,1,.67A14,14,0,0,0,16,2Z"
/>
</svg>
</svg>

0 comments on commit 784ff06

Please sign in to comment.