We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
seems auto-format doesn't work whenever there's a {anything here} declaration
{anything here}
<script> let { children } = $props(); </script> <div class="outer"> <div class="inner"> <div class="container"> {@render children()} </div> </div> </div>
^will not auto format, comment out the line <!-- {@render children()} --> allows it to work again
<!-- {@render children()} -->
expect auto format, in the case of the example, extra lines between the divs should be removed
No response
The text was updated successfully, but these errors were encountered:
in addition, I closed and reopened vs code and now am getting a red squiggly on that line:
'children' is of type 'unknown'
everything still works, just a ts false error (not sure if should file separate bug)
wasn't there for the last 2 hrs
Sorry, something went wrong.
Duplicate of #2338. Svelte 5 currently require a workspace version of prettier-plugin-svelte and a prettier config file.
https://github.com/sveltejs/kit/blob/main/packages/create-svelte/shared/%2Bprettier/.prettierrc
As for the second issue, in SveltKit's route files, the snippet children props may have auto-typing, but it needs explicit typing in other components.
children
<script> /** * @type {{children: import('svelte').Snippet}} */ const { children } = $props(); </script>
No branches or pull requests
Describe the bug
seems auto-format doesn't work whenever there's a
{anything here}
declarationReproduction
^will not auto format, comment out the line
<!-- {@render children()} -->
allows it to work againExpected behaviour
expect auto format, in the case of the example, extra lines between the divs should be removed
System Info
Which package is the issue about?
No response
Additional Information, eg. Screenshots
No response
The text was updated successfully, but these errors were encountered: