You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<script>
let workaround =setInitialClassState.toString();functionsetInitialClassState() {// does something }
</script>
<svelte:head>
<!-- This causes the new eslint-plugin-svelte to throw a parsing error -->
{@html`<script nonce="%sveltekit.nonce%">(${setInitialClassState.toString()})();</script>`}
<!-- This is works -->
{@html`<script nonce="%sveltekit.nonce%">(`+workaround+`)();</script>`}
</svelte:head>
What did you expect to happen?
I migrated over to this plugin from the now deprecated eslint-plugin-svelte3. The previous one didn't throw this parsing error.
Before You File a Bug Report Please Confirm You Have Done The Following...
What version of ESLint are you using?
8.41.0
What version of
eslint-plugin-svelte
are you using?2.29.0
What did you do?
Configuration
What did you expect to happen?
I migrated over to this plugin from the now deprecated
eslint-plugin-svelte3
. The previous one didn't throw this parsing error.What actually happened?
/parsing-error-eslint-plugin-svelte/src/routes/+page.svelte 11:45 error Parsing error: ')' expected ✖ 1 problem (1 error, 0 warnings)
Link to GitHub Repo with Minimal Reproducible Example
https://github.com/AdrianGonz97/parsing-error-eslint-plugin-svelte
Additional comments
No response
The text was updated successfully, but these errors were encountered: