Parsing error when </script>
is present in a string literal of a component script
#562
Closed
2 tasks done
Before You File a Bug Report Please Confirm You Have Done The Following...
What version of ESLint are you using?
8.47.0
What version of
eslint-plugin-svelte
are you using?2.32.4
What did you do?
When a string literal in a svelte component script contains "</script>" the eslint plugin produces a parser error.
Configuration
What did you expect to happen?
Not receiving a parser error for a valid svelte component :)
What actually happened?
[4:0]: Parsing error: </script> attempted to close an element that was not open
Link to GitHub Repo with Minimal Reproducible Example
https://sveltejs.github.io/eslint-plugin-svelte/playground/#eJyrVkrOT0lVslKyKU4uyiwosYvJiylJzs8rLlEoLkpWsFVQt9GHyqjDpPJzUvVy8tM1gAo0Y/Lg8kDpPJsMQzvXisTcgpxUG30gOyZPqRYAykAitA==
Additional comments
No response
The text was updated successfully, but these errors were encountered: