-
-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
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
Svelte 5 runes support #587
Comments
MEMO: When using sveltejs/svelte-eslint-parser#226 input: <script lang="ts">
type EventInfo = {
start_at: Date | number
}
let info: EventInfo | null = null
const lightFormat = (i: Date | number) => i.toString()
fetch('/fakeurl').then(() => { info = { start_at: 0 } }).catch(console.error)
const startDate = $derived(info?.start_at ? lightFormat(info.start_at) : null)
const endDate = () => (info?.start_at ? lightFormat(info.start_at) : null)
</script>
{startDate}{endDate} error:
Reproduce: |
FYI @dummdidumm |
Hmm... |
I think the quickest solution is to either add known globals to eslint so that it knows that |
We have started work on Svelte v5 support.
Additional configuration is required if you want to support for Update
|
I've migrated almost all of our rather large eslint config to the new flat style and My Is this something that's been solved already, or is the recommendation still to manually add the runes to |
Is the |
Thanks, it was on a |
Description
There's a few places it'd be helpful such as in linting the Svelte 5 repo and component party examples (matschik/component-party.dev#186)
I don't think there's any rush on this and the syntax may change, but I thought it'd be helpful to have a place to track it
The text was updated successfully, but these errors were encountered: