revert and update .prettierignore

pull/9609/head
baseballyama 3 years ago
parent 87c1ba38a3
commit cba043c786

@ -37,3 +37,7 @@ sites/svelte.dev/src/lib/generated
.changeset
pnpm-lock.yaml
pnpm-workspace.yaml
# Temporarily ignore this file to avoid merge conflicts.
# see: https://github.com/sveltejs/svelte/pull/9609
documentation/docs/05-misc/03-typescript.md

@ -177,11 +177,9 @@ You cannot use TypeScript in your template's markup. For example, the following
let count = 10;
</script>
<!-- ❌ Does not work -->
<h1>Count as string: {count as string}!</h1>
<h1>Count as string: {count as string}!</h1> <!-- ❌ Does not work -->
{#if count > 4}
<!-- ❌ Does not work -->
{@const countString: string = count}
{@const countString: string = count} <!-- ❌ Does not work -->
{countString}
{/if}
```

Loading…
Cancel
Save