From 1e982c1e6d33e03d3f0939cf66c79db7adb1df08 Mon Sep 17 00:00:00 2001 From: Puru Vijay Date: Wed, 5 Apr 2023 15:51:47 +0530 Subject: [PATCH] chore: Run prettier --- sites/svelte.dev/src/routes/docs/+page.svelte | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/sites/svelte.dev/src/routes/docs/+page.svelte b/sites/svelte.dev/src/routes/docs/+page.svelte index ec6a29bfa8..f6ef383623 100644 --- a/sites/svelte.dev/src/routes/docs/+page.svelte +++ b/sites/svelte.dev/src/routes/docs/+page.svelte @@ -130,7 +130,7 @@ 'accessibility-warnings-a11y-role-supports-aria-props', 'accessibility-warnings-a11y-structure', 'accessibility-warnings-a11y-unknown-aria-attribute', - 'accessibility-warnings-a11y-unknown-role', + 'accessibility-warnings-a11y-unknown-role' ]; /** @type {Map}*/ @@ -154,7 +154,7 @@ [/template-syntax-(const|debug|html)$/i, 'special-tags#$1'], [ /template-syntax-(tags|attributes-and-props|text-expressions|comments)$/i, - 'dot-svelte-files#$1', + 'dot-svelte-files#$1' ], // !!!! This one should stay at the bottom of `template-syntax`, or it may end up hijacking logic blocks and special tags [/template-syntax-(.+)/i, 'special-elements#$1'], @@ -164,7 +164,7 @@ [/run-time-(client-side-component-api)-?(.*)/i, '$1#$2'], [ /run-time-(svelte-easing|server-side-component-api|custom-element-api|svelte-register)$/i, - '$1', + '$1' ], // Catch all, should be at the end or will include store, motion, transition and other modules starting with svelte [/run-time-(svelte)(?:-(.+))?/i, '$1#$2'], @@ -173,7 +173,7 @@ [/compile-time-?(.*)/i, 'svelte-compiler#$1'], // Accessibility warnings - [/(accessibility-warnings)-?(.+)/i, '$1#$2'], + [/(accessibility-warnings)-?(.+)/i, '$1#$2'] ]); function get_old_new_ids_map() { @@ -199,7 +199,6 @@ } function getURlToRedirectTo() { - console.log(get_old_new_ids_map()); const hash = $page.url.hash.replace(/^#/i, ''); if (!hash) return '/docs/introduction'; @@ -212,5 +211,8 @@ return `/docs/${old_new_map.get(hash)}`; } - onMount(() => goto(getURlToRedirectTo(), { replaceState: true })); + onMount(() => { + console.log(get_old_new_ids_map()); + goto(getURlToRedirectTo(), { replaceState: true }); + });