We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When using Vue generic component, oxc misinterprets the closing tag if using another generic inside the generic attribute.
generic
Here is an example:
<script setup lang="ts" generic="T extends Record<string, string>"> defineProps<{ value: T }>() </script>
In the above example, generic includes Record<string, string>. Since it has >, it looks like that oxc interprets that > as the closing tag of script.
Record<string, string>
>
script
Here is the result of oxlint:
❯ npx oxlint@latest × Unterminated string ╭─[src/components/Sample.vue:1:1] 1 │ "> · ─── 2 │ defineProps<{ value: T }>() ╰────
The text was updated successfully, but these errors were encountered:
It looks like the vue loader doesn't currently support the generic syntax.
Sorry, something went wrong.
I didn't know this is a thing.
We'll have to parse the html attributes now :-)
feat(linter): support vue generic component
91b7e8c
closes #1938
feat(linter): support vue generic component (#1989)
b7ea4e5
feat(linter): support vue generic component (oxc-project#1989)
d094e74
closes oxc-project#1938
Successfully merging a pull request may close this issue.
When using Vue generic component, oxc misinterprets the closing tag if using another generic inside the
generic
attribute.Here is an example:
In the above example,
generic
includesRecord<string, string>
. Since it has>
, it looks like that oxc interprets that>
as the closing tag ofscript
.Here is the result of oxlint:
The text was updated successfully, but these errors were encountered: