Skip to content

⭐️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

Merged
merged 5 commits into from
Jul 14, 2018
Merged

⭐️New: Add vue/no-v-html rule #435

merged 5 commits into from
Jul 14, 2018

Conversation

n-zeplo
Copy link
Contributor

@n-zeplo n-zeplo commented Mar 18, 2018

This PR adds vue/no-v-html rule.
This implements rule proposed in #434

@michalsnik michalsnik self-assigned this Mar 22, 2018
@michalsnik michalsnik changed the title [New]: Add vue/no-v-html rule ⭐️New: Add vue/no-v-html rule Apr 1, 2018
Copy link
Member

@michalsnik michalsnik left a 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 :)

meta: {
docs: {
description: 'disallow use of v-html to prevent XSS attack',
category: 'security enhancement',
Copy link
Member

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.

Copy link
Contributor Author

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.

@n-zeplo
Copy link
Contributor Author

n-zeplo commented Jul 12, 2018

Thanks @michalsnik! Made the change you have requested.

@michalsnik michalsnik merged commit 83aa39a into vuejs:master Jul 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants