We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
allow
vue/no-v-text-v-html-on-component
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
What rule do you want to change?
Does this change cause the rule to produce more or fewer warnings?
No (by default).
How will the change be implemented? (New option, new default behavior, etc.)?
New option to white list the list of components for which this rule doesn't apply, something like:
"vue/no-v-text-v-html-on-component": [ "error", { allow: ["router-link", "nuxt-link"] } ]
Please provide some example code that this change will affect:
<template> <router-link to="/page" v-html="knowinglySafeHtmlComingFromServer" /> </template>
What does the rule currently do for this code?
Currently, the rule always disallows v-text/v-html on custom components.
What will the rule do after it's changed?
It will allow to use v-text/v-html on custom elements that are known to support them.
Additional context
The text was updated successfully, but these errors were encountered:
Pull request is welcome 🙂
Sorry, something went wrong.
So how does one know if a component supports v-html and v-text?
v-html
v-text
Successfully merging a pull request may close this issue.
What rule do you want to change?
vue/no-v-text-v-html-on-component
Does this change cause the rule to produce more or fewer warnings?
No (by default).
How will the change be implemented? (New option, new default behavior, etc.)?
New option to white list the list of components for which this rule doesn't apply, something like:
Please provide some example code that this change will affect:
What does the rule currently do for this code?
Currently, the rule always disallows v-text/v-html on custom components.
What will the rule do after it's changed?
It will allow to use v-text/v-html on custom elements that are known to support them.
Additional context
The text was updated successfully, but these errors were encountered: