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
in a script block:
```js
const x = `<script>var x = ${50}</script>`
```
in markup:
{@html`<script>var x = ${50}</script>`}
What did you expect to happen?
svelte eslint to ignore the script block in the string literals. when the parent script is SSR'd the template literal is evaluated, so the underlying script is then valid.
What actually happened?
It seems like svelte-eslint is just looking for any script tag pair in the source files regardless of if its actual syntax or in a string literal.
Link to GitHub Repo with Minimal Reproducible Example
just paste those snippets into any svelte repo and itll break.
Additional comments
No response
The text was updated successfully, but these errors were encountered:
Before You File a Bug Report Please Confirm You Have Done The Following...
What version of ESLint are you using?
8.57.0
What version of
eslint-plugin-svelte
are you using?2.35.1
What did you do?
Configuration
in markup:
What did you expect to happen?
svelte eslint to ignore the script block in the string literals. when the parent script is SSR'd the template literal is evaluated, so the underlying script is then valid.
What actually happened?
It seems like svelte-eslint is just looking for any script tag pair in the source files regardless of if its actual syntax or in a string literal.
Link to GitHub Repo with Minimal Reproducible Example
just paste those snippets into any svelte repo and itll break.
Additional comments
No response
The text was updated successfully, but these errors were encountered: