-
-
Notifications
You must be signed in to change notification settings - Fork 681
⭐️New: Add vue/no-v-html
rule
#435
New issue
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
Conversation
vue/no-v-html
rulevue/no-v-html
rule
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GJ! One comment though :)
lib/rules/no-v-html.js
Outdated
meta: { | ||
docs: { | ||
description: 'disallow use of v-html to prevent XSS attack', | ||
category: 'security enhancement', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use undefined
as category. We're going to assign categories in major releases, as it results in automatic generation of sharable configs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've updated the PR with this change.
Thanks @michalsnik! Made the change you have requested. |
This PR adds vue/no-v-html rule.
This implements rule proposed in #434