Skip to content

Separate rule that report <template v-for key> from no-template-key rule #1281

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 1 commit into from
Aug 28, 2020

Conversation

ota-meshi
Copy link
Member

This PR separates the rule reporting keys placed on <template v-for> from vue/no-template-key rule.
This PR makes the following changes.

  • Change vue/no-template-key to allow v-for key.
  • Add vue/no-v-for-template-key rule that disallow the key placed on the <template v-for>.
  • Add vue/no-v-for-template-key rule to plugin:vue/essential config.

refs #1279

@ota-meshi ota-meshi self-assigned this Aug 27, 2020
@ota-meshi ota-meshi merged commit 1c52bb9 into master Aug 28, 2020
@ota-meshi ota-meshi deleted the fix-no-template-key branch August 28, 2020 09:29
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.

None yet

1 participant