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
fix(linter): ignore script tag in code comment (#15202)
Partial loader tries parsing the `<script>` tag in the code comment
incorrectly
For example, we have a `.vue` file
```vue
<!-- <script setup lang="tsx"> -->
<script setup lang="ts">
const count = ref(0)
</script>
```
And the loader will regard these as script part
```
-->
<script setup lang="ts">
const count = ref(0)
```
So this PR added some `Finder`s for code comment to ignore the
`<script>` in code comment, also works on `.svelte` and `.astro` files
0 commit comments